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
d6aad06fb3b1704192488df9ee5b725a3a2f6541
Wordpress Stackexchange Q: Get the current post ID as a variable in Javascript I'm trying to echo the post ID in a post Javascript and not having any luck. var post_id = '123'; // works fine var post_id = '<?php global $post; echo $post->ID; ?>'; // echos 'ID; ?>' var post_id = '<?php echo $post->ID;?>'; // echos 'ID; ?>' Is there a correct way to echo the post ID? A: It is available in the post_ID hidden field for both published and new posts. You can get it by using this simple jQuery code. jQuery("#post_ID").val()
Q: Get the current post ID as a variable in Javascript I'm trying to echo the post ID in a post Javascript and not having any luck. var post_id = '123'; // works fine var post_id = '<?php global $post; echo $post->ID; ?>'; // echos 'ID; ?>' var post_id = '<?php echo $post->ID;?>'; // echos 'ID; ?>' Is there a correct way to echo the post ID? A: It is available in the post_ID hidden field for both published and new posts. You can get it by using this simple jQuery code. jQuery("#post_ID").val() A: I use this - document.querySelector('.status-publish').getAttribute('id'); This gives you post-xxx where xxx is the post number. You can then replace post- with an empty string. var id = document.querySelector('.status-publish').getAttribute('id').replace("post-", ""); A: Ok, got it. Maybe this'll help someone. In theme functions.php: function pid() { global $current_screen; $type = $current_screen->post_type; ?> <script type="text/javascript"> var post_id = '<?php global $post; echo $post->ID; ?>'; </script> <?php } add_action('wp_head','pid'); A: You can pass variables to javascript using wp_localize_script function: https://codex.wordpress.org/Function_Reference/wp_localize_script Add the following to functions.php if(!function_exists('load_my_script')){ function load_my_script() { global $post; $deps = array('jquery'); $version= '1.0'; $in_footer = true; wp_enqueue_script('my-script', get_stylesheet_directory_uri() . '/js/my-script.js', $deps, $version, $in_footer); wp_localize_script('my-script', 'my_script_vars', array( 'postID' => $post->ID ) ); } } add_action('wp_enqueue_scripts', 'load_my_script'); And your js file (theme-name/js/my-script.js): jQuery(document).ready(function($) { alert( my_script_vars.postID ); }); Note: If you are trying to pass integers you will need to call the JavaScript parseInt() function. A: to frontend postID = jQuery('article').attr('id').slice(5); to backend post_ID = jQuery('#post_ID').val(); A: NB. As of WP 4.5 it is recommended to use wp_add_inline_script(), rather than wp_localize_script() - the later being intended for localization. See: wp_localize_script() > More Info wp_add_inline_script() A: On the post edit screens when Gutenberg is enabled, you may use a JS variable set by the wp.media object. wp.media.view.settings.post.id, On the front end, the best approach was already outlined above.
wordpress
{ "language": "en", "length": 307, "provenance": "stackexchange_00019.jsonl.gz:461532", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/211831" }
[ 0.0343017578125, -0.012542724609375, -0.0053863525390625, 0.00412750244140625, 0.00775909423828125, -0.03228759765625, 0.031768798828125, -0.015625, -0.007049560546875, 0.01116943359375, -0.0305633544921875, 0.005336761474609375, -0.03448486328125, -0.01465606689453125, 0.005970001220703125, -0.0308685302734375, 0.0599365234375, -0.06231689453125, 0.004962921142578125, -0.0027179718017578125, -0.002777099609375, 0.0213470458984375, 0.04742431640625, 0.046051025390625, 0.046783447265625, -0.009307861328125, 0.05511474609375, -0.0185699462890625, 0.0294647216796875, -0.00966644287109375, 0.032073974609375, -0.0187835693359375, 0.004955291748046875, -0.002437591552734375, 0.00894927978515625, 0.006229400634765625, 0.0164031982421875, 0.00251007080078125, 0.0311279296875, 0.003528594970703125, 0.01284027099609375, -0.0023441314697265625, 0.0097503662109375, -0.01457977294921875, -0.0192718505859375, -0.017181396484375, -0.0135650634765625, -0.030059814453125, 0.01371002197265625, 0.0433349609375, 0.01113128662109375, 0.036041259765625, 0.0017652511596679688, 0.021820068359375, 0.0014171600341796875, 0.0113677978515625, 0.00804901123046875, -0.022491455078125, 0.05828857421875, 0.0029239654541015625, -0.03509521484375, -0.04833984375, 0.039581298828125, -0.05548095703125, 0.0092010498046875, 0.006153106689453125, 0.03387451171875, 0.02227783203125, -0.04974365234375, -0.0012331008911132812, 0.020599365234375, -0.0262603759765625, 0.019866943359375, -0.0197601318359375, -0.032806396484375, -0.043304443359375, 0.027099609375, -0.030609130859375, -0.0231781005859375, -0.004024505615234375, -0.0258941650390625, 0.00968170166015625, -0.08154296875, 0.04620361328125, -0.05560302734375, 0.034027099609375, -0.0280914306640625, -0.019378662109375, -0.048858642578125, -0.0450439453125, -0.0296478271484375, -0.01849365234375, -0.0592041015625, -0.0205230712890625, -0.0202484130859375, -0.030181884765625, 0.0192108154296875, 0.060028076171875, -0.026824951171875, -0.006145477294921875, -0.017608642578125, -0.017303466796875, 0.005344390869140625, -0.0268096923828125, -0.027587890625, 0.0225830078125, 0.037353515625, 0.034912109375, -0.0099639892578125, 0.004913330078125, -0.026214599609375, -0.047210693359375, -0.004070281982421875, 0.04437255859375, -0.04779052734375, -0.0226898193359375, -0.055206298828125, -0.0026187896728515625, -0.03466796875, 0.0144805908203125, 0.0171051025390625, 0.01100921630859375, 0.022857666015625, 0.033416748046875, 0.0008363723754882812, 0.02081298828125, -0.03912353515625, -0.031829833984375, -0.040924072265625, 0.004547119140625, -0.03564453125, 0.005474090576171875, 0.0953369140625, 0.06390380859375, 0.01678466796875, -0.029296875, 0.01387786865234375, -0.042205810546875, 0.000640869140625, 0.005462646484375, -0.02520751953125, -0.0218658447265625, 0.023834228515625, -0.039459228515625, -0.0266265869140625, 0.0408935546875, 0.0098876953125, -0.00795745849609375, -0.0075836181640625, -0.042144775390625, -0.0221710205078125, -0.055572509765625, 0.01548004150390625, 0.019561767578125, 0.02362060546875, -0.018463134765625, 0.027740478515625, -0.033538818359375, 0.0298004150390625, -0.027862548828125, 0.038909912109375, 0.00733184814453125, 0.01371002197265625, 0.0223846435546875, -0.006805419921875, -0.0173492431640625, -0.033416748046875, -0.0161590576171875, 0.018280029296875, 0.06890869140625, 0.00928497314453125, -0.026397705078125, -0.00965118408203125, -0.0137939453125, -0.0341796875, -0.026031494140625, -0.01277923583984375, -0.045257568359375, 0.0457763671875, 0.00493621826171875, -0.029266357421875, -0.027587890625, -0.01125335693359375, 0.011199951171875, -0.007213592529296875, 0.041656494140625, 0.0183258056640625, 0.0235443115234375, -0.0161895751953125, -0.001979827880859375, 0.0367431640625, 0.031219482421875, -0.059356689453125, 0.0278472900390625, -0.00011974573135375977, -0.00635528564453125, -0.01032257080078125, 0.004047393798828125, -0.0150146484375, -0.006168365478515625, 0.01824951171875, -0.006687164306640625, -0.0198516845703125, 0.03564453125, -0.043060302734375, -0.02960205078125, -0.0003190040588378906, 0.00739288330078125, -0.005191802978515625, -0.018463134765625, 0.0214080810546875, -0.034759521484375, 0.00868988037109375, -0.037445068359375, -0.040771484375, 0.032073974609375, -0.040679931640625, 0.0102996826171875, -0.0401611328125, 0.0452880859375, -0.070556640625, -0.0019388198852539062, -0.053375244140625, 0.00405120849609375, 0.0465087890625, -0.0006265640258789062, -0.0157012939453125, -0.039215087890625, 0.032257080078125, 0.0162506103515625, -0.048614501953125, 0.01087188720703125, -0.0119781494140625, 0.04229736328125, -0.0074005126953125, -0.033203125, -0.0249786376953125, -0.0849609375, 0.04473876953125, 0.06219482421875, 0.0379638671875, 0.020782470703125, 0.00737762451171875, -0.0032444000244140625, 0.03411865234375, -0.0016193389892578125, 0.034912109375, -0.037811279296875, 0.046142578125, 0.059295654296875, -0.037200927734375, -0.00040650367736816406, 0.0307464599609375, -0.02294921875, 0.00359344482421875, 0.055450439453125, -0.0165863037109375, 0.044342041015625, -0.0306549072265625, 0.003108978271484375, -0.0256500244140625, -0.04486083984375, 0.0034618377685546875, -0.045074462890625, 0.040283203125, 0.007541656494140625, 0.048675537109375, 0.040557861328125, -0.02685546875, -0.0038433074951171875, 0.01374053955078125, 0.0068817138671875, 0.01389312744140625, 0.031280517578125, -0.007373809814453125, 0.0031261444091796875, -0.03277587890625, -0.021575927734375, 0.046142578125, 0.0235443115234375, -0.00469970703125, -0.0084686279296875, 0.0027008056640625, -0.005756378173828125, 0.0229949951171875, -0.020965576171875, 0.0269775390625, 0.01555633544921875, 0.01239013671875, 0.01102447509765625, 0.0277557373046875, 0.04656982421875, -0.0144500732421875, 0.061859130859375, -0.0225372314453125, -0.0065765380859375, 0.06634521484375, -0.045562744140625, 0.0274505615234375, -0.0161590576171875, 0.06787109375, 0.053131103515625, -0.01531982421875, 0.030609130859375, -0.004150390625, 0.01174163818359375, -0.00119781494140625, -0.00817108154296875, -0.00528717041015625, -0.007297515869140625, -0.01678466796875, 0.0460205078125, 0.0157318115234375, 0.043701171875, -0.0160064697265625, -0.0504150390625, -0.01183319091796875, 0.000018298625946044922, -0.11993408203125, -0.11810302734375, 0.030731201171875, -0.05609130859375, -0.0252227783203125, -0.024627685546875, -0.035186767578125, 0.002208709716796875, 0.0158538818359375, -0.01019287109375, -0.006744384765625, -0.01258087158203125, -0.07763671875, -0.03790283203125, -0.07684326171875, 0.00626373291015625, -0.0246124267578125, 0.01806640625, 0.0041656494140625, -0.0012502670288085938, 0.005138397216796875, -0.038543701171875, -0.00017690658569335938, 0.044097900390625, -0.01392364501953125, -0.0197296142578125, 0.00405120849609375, -0.02508544921875, -0.006244659423828125, 0.017822265625, -0.0296783447265625, 0.004817962646484375, 0.0154876708984375, -0.021453857421875, -0.0265350341796875, 0.0135650634765625, 0.01387786865234375, 0.0311431884765625, 0.03466796875, 0.031524658203125, 0.055877685546875, -0.019256591796875, -0.0226898193359375, -0.044891357421875, -0.060394287109375, 0.0098114013671875, 0.01476287841796875, 0.031097412109375, -0.0264434814453125, 0.0252838134765625, -0.008544921875, -0.034820556640625, -0.01184844970703125, -0.03692626953125, 0.0355224609375, 0.0130462646484375, 0.035888671875, 0.01221466064453125, 0.00665283203125, -0.023101806640625, 0.02984619140625, -0.0028667449951171875, 0.0063018798828125, 0.000051021575927734375, -0.0266571044921875, -0.0235443115234375, -0.05133056640625, 0.0281524658203125, 0.0075531005859375, -0.009918212890625, 0.0008187294006347656, -0.0276641845703125, 0.0306243896484375, 0.07061767578125, -0.0166168212890625, -0.0101318359375, -0.004970550537109375, -0.01264190673828125, -0.032623291015625, -0.029693603515625, -0.07147216796875, -0.0015039443969726562, -0.006984710693359375, 0.0103302001953125, -0.0225067138671875, 0.016082763671875, -0.0382080078125, 0.0850830078125, -0.00908660888671875, -0.0172119140625, 0.033935546875, -0.0687255859375, 0.01468658447265625, -0.0042877197265625, -0.0037784576416015625, -0.022369384765625, -0.021728515625, -0.041534423828125, -0.04498291015625, -0.01094818115234375, -0.0013904571533203125, 0.0283355712890625, -0.0058441162109375, -0.0170745849609375, -0.012298583984375, 0.023681640625, -0.0284271240234375, 0.01035308837890625, 0.0004987716674804688, 0.033477783203125, -0.0166778564453125, -0.0189666748046875, -0.01018524169921875, -0.033538818359375, -0.0176239013671875, -0.0189361572265625, -0.0066070556640625, -0.00797271728515625, -0.036529541015625, -0.054656982421875, -0.007129669189453125, -0.00943756103515625, -0.07196044921875, -0.0098419189453125, 0.018310546875, 0.02923583984375, -0.018341064453125, 0.0129852294921875, -0.010101318359375, -0.071044921875, 0.06463623046875, 0.0301361083984375, -0.0220184326171875, -0.0238189697265625, 0.05462646484375, 0.0171356201171875, -0.042205810546875, 0.00958251953125, -0.012451171875, 0.0511474609375, -0.014801025390625, 0.043914794921875, 0.020538330078125, -0.04913330078125, 0.0970458984375, 0.01702880859375, -0.031280517578125, -0.00533294677734375, 0.059112548828125, -0.0011873245239257812, 0.0018024444580078125, -0.01093292236328125, -0.0153656005859375, 0.01702880859375, -0.00441741943359375, -0.044097900390625, 0.000004947185516357422, -0.0014858245849609375, 0.033416748046875, -0.05645751953125, 0.08135986328125, -0.019134521484375, -0.07562255859375, 0.0219879150390625, -0.012451171875, 0.028656005859375, 0.0204010009765625, -0.0007562637329101562, 0.06719970703125, 0.0389404296875, -0.0028228759765625, 0.01042938232421875, 0.00040841102600097656, 0.0202178955078125, 0.0213775634765625, 0.01122283935546875, -8.940696716308594e-7, 0.0010251998901367188, -0.007259368896484375, 0.026763916015625, -0.01355743408203125, -0.037078857421875, -0.00982666015625, -0.01325225830078125, -0.01108551025390625, 0.007457733154296875, -0.0360107421875, 0.013275146484375, 0.060516357421875, -0.0240020751953125, -0.00334930419921875, 0.002376556396484375, 0.005908966064453125, -0.0310516357421875, -0.00789642333984375, 0.0107269287109375, -0.0016183853149414062, 0.0204620361328125, 0.0623779296875, 0.0179443359375, 0.0338134765625, -0.041015625, 0.03533935546875, -0.00232696533203125, 0.05096435546875, 0.01324462890625, -0.017242431640625, -0.0109710693359375, 0.0361328125, -0.04437255859375, -0.00684356689453125, 0.01517486572265625, 0.01200103759765625, 0.032989501953125, -0.0177154541015625, -0.01074981689453125, 0.00873565673828125, -0.037261962890625, -0.0086212158203125, 0.00917816162109375, -0.0224456787109375, -0.039337158203125, -0.0157470703125, 0.03314208984375, 0.039093017578125, 0.0136871337890625, 0.009857177734375, 0.0006866455078125, -0.0189666748046875, 0.014862060546875, -0.035980224609375, 0.021759033203125, -0.02972412109375, -0.0281524658203125, -0.01334381103515625, -0.00971221923828125, -0.01446533203125, -0.0105438232421875, -0.0104522705078125, -0.0131683349609375, -0.0262908935546875, 0.0545654296875, 0.031890869140625, 0.017913818359375, -0.0245208740234375, -0.045196533203125, 0.01531219482421875, -0.034423828125, 0.07598876953125, 0.01535797119140625, -0.017578125, -0.0028934478759765625, -0.046234130859375, -0.0208740234375, 0.04949951171875, 0.004669189453125, -0.03125, -0.017974853515625, 0.00933837890625, 0.02239990234375, 0.004192352294921875, 0.0177154541015625, 0.00511932373046875, 0.03668212890625, 0.0011081695556640625, 0.07830810546875, 0.0013322830200195312, 0.03338623046875, 0.0124969482421875, 0.043121337890625, -0.0034389495849609375, -0.0021762847900390625, -0.0299224853515625, -0.02069091796875, 0.0014371871948242188, 0.0026454925537109375, 0.004375457763671875, 0.0192413330078125, 0.01416778564453125, -0.07159423828125, -0.033599853515625, -0.007171630859375, 0.018646240234375, 0.031951904296875, 0.01456451416015625, -0.0021457672119140625, -0.082763671875, 0.059234619140625, 0.003536224365234375, 0.042144775390625, -0.02764892578125, -0.03350830078125, 0.017120361328125, 0.043975830078125, -0.0246124267578125, -0.015960693359375, -0.034820556640625, 0.01395416259765625, 0.00958251953125, 0.025360107421875, 0.0745849609375, 0.006221771240234375, 0.05657958984375, 0.012664794921875, 0.028656005859375, 0.01953125, 0.059478759765625, -0.0186309814453125, -0.0474853515625, 0.0599365234375, 0.0301361083984375, -0.0258636474609375, 0.0251312255859375, -0.0389404296875, -0.01113128662109375, 0.00800323486328125, 0.0253448486328125, -0.0394287109375, 0.00965118408203125, 0.0007152557373046875, -0.0211334228515625, 0.006866455078125, 0.016571044921875, 0.0117645263671875, 0.00312042236328125, 0.01552581787109375, 0.01503753662109375, -0.0014743804931640625, 0.0318603515625, 0.003093719482421875, -0.01983642578125, -0.043365478515625, 0.0214080810546875, 0.00826263427734375, -0.06060791015625, 0.0231170654296875, 0.03692626953125, -0.027679443359375, -0.027099609375, -0.004253387451171875, 0.039794921875, -0.024658203125, -0.07037353515625, 0.04296875, 0.00711822509765625, -0.01010894775390625, 0.0091094970703125, 0.012359619140625, -0.003940582275390625, 0.027191162109375, -0.0034885406494140625, -0.01308441162109375, 0.001720428466796875, -0.01166534423828125, 0.00362396240234375, -0.027069091796875, 0.0029621124267578125, 0.04119873046875, -0.0258941650390625, 0.0194549560546875, 0.013641357421875, -0.01541900634765625, -0.01107025146484375, -0.003940582275390625, 0.062103271484375, -0.03857421875, -0.0098876953125, 0.03851318359375, 0.04461669921875, -0.035308837890625, -0.0110321044921875, -0.02032470703125, -0.01416015625, 0.039520263671875, -0.0178680419921875, 0.0205535888671875, 0.026824951171875, -0.006031036376953125, -0.051605224609375, 0.0777587890625, -0.0011701583862304688, 0.0117950439453125, 0.01245880126953125, 0.030975341796875, -0.0321044921875, 0.0005521774291992188, -0.032257080078125, 0.04052734375, -0.053131103515625, 0.0347900390625, -0.053955078125, -0.00011223554611206055, -0.00013005733489990234, 0.0150146484375, 0.05218505859375, -0.003948211669921875, 0.018524169921875, -0.00965118408203125, 0.05096435546875, 0.05926513671875, 0.006988525390625, -0.0243377685546875, 0.024261474609375, 0.049102783203125, 0.052093505859375, -0.0484619140625, 0.0262451171875, -0.031982421875, 0.0013170242309570312, 0.039031982421875, 0.025421142578125, 0.02447509765625, 0.0166015625, 0.0105438232421875, -0.030548095703125, 0.02142333984375, 0.032501220703125, -0.005809783935546875, -0.0010833740234375, 0.0721435546875, 0.048004150390625, -0.016876220703125, -0.0272216796875, -0.0272674560546875, 0.04742431640625, 0.004131317138671875, -0.009307861328125, 0.0164337158203125, 0.0206451416015625, -0.005878448486328125, 0.00473785400390625, -0.002620697021484375, 0.0288848876953125, -0.0129241943359375, 0.0465087890625, 0.039215087890625, 0.01371002197265625, -0.0484619140625, -0.02203369140625, 0.07806396484375, 0.0894775390625, -0.04107666015625, 0.004932403564453125, 0.0155029296875, 0.018218994140625, 0.01007080078125, -0.03839111328125, 0.033447265625, 0.039886474609375, 0.030364990234375, -0.02947998046875, 0.00140380859375, 0.053802490234375, 0.03692626953125, 0.0298614501953125, 0.048736572265625, -0.0894775390625, -0.017333984375, -0.07208251953125, -0.013031005859375, 0.031341552734375, 0.08270263671875, 0.061981201171875, 0.045440673828125, -0.01061248779296875, -0.048309326171875, 0.0028076171875, 0.0186767578125, 0.0504150390625, -0.01137542724609375, -0.0120391845703125, 0.00841522216796875, 0.00547027587890625, 0.01947021484375, 0.00850677490234375, 0.050872802734375, 0.040435791015625, -0.00811004638671875, -0.038970947265625, -0.0153961181640625, 0.024383544921875, -0.036285400390625, 0.02276611328125, -0.0103759765625, 0.016754150390625, -0.0056610107421875, -0.01229095458984375, -0.005321502685546875, 0.05035400390625, 0.0026493072509765625, -0.02667236328125, 0.046417236328125, 0.0013027191162109375, -0.00383758544921875, 0.00223541259765625, -0.01044464111328125, 0.0263671875, -0.01354217529296875, -0.032562255859375, -0.0025787353515625, -0.03912353515625, -0.0306854248046875, 0.01885986328125, 0.0233306884765625, -0.0028324127197265625, 0.017120361328125, -0.01256561279296875, -0.011322021484375, -0.005252838134765625, 0.0023021697998046875, 0.0300140380859375, 0.040618896484375, 0.0019102096557617188, 0.0276031494140625, -0.035552978515625, -0.0196533203125, -0.017913818359375, 0.0090484619140625, 0.050506591796875, -0.0638427734375, 0.04095458984375, 0.0479736328125, -0.0155792236328125, 0.03369140625, -0.07891845703125, -0.005664825439453125, 0.0203704833984375, -0.0256500244140625, 0.00841522216796875, 0.01024627685546875, -0.060791015625, 0.0611572265625, -0.003955841064453125, 0.04638671875, 0.0704345703125, -0.053192138671875, 0.0036163330078125, 0.02056884765625, 0.043243408203125, 0.00485992431640625, -0.0208587646484375, -0.0086517333984375, 0.0092315673828125, 0.038848876953125, 0.0635986328125, -0.00640869140625, 0.01177978515625, 0.0296783447265625, -0.0272216796875, 0.0006704330444335938, 0.0012063980102539062, 0.01316070556640625, 0.038360595703125, -0.0069732666015625, 0.00940704345703125, -0.0081024169921875, -0.01416015625, -0.0032444000244140625, 0.01519775390625, 0.0030517578125, -0.0213623046875, 0.0106048583984375, -0.0034046173095703125, 0.01145172119140625, 0.057037353515625, 0.009521484375, 0.0221405029296875, -0.00948333740234375, -0.0004949569702148438, -0.002811431884765625, -0.0004088878631591797, -0.002597808837890625, -0.00308990478515625, -0.01312255859375, 0.022674560546875, 0.006778717041015625, 0.021209716796875, 0.006237030029296875, -0.0220489501953125, -0.0183868408203125, -0.0229949951171875, 0.0084686279296875, -0.0017786026000976562, 0.0012865066528320312, -0.01654052734375, -0.041107177734375, 0.0249481201171875, -0.0171661376953125, 0.0191192626953125, -0.03759765625, -0.01641845703125, -0.024261474609375, 0.00913238525390625, -0.00595855712890625, 0.023468017578125, -0.01629638671875, -0.007549285888671875, 0.01666259765625, 0.041839599609375, 0.0015201568603515625, 0.077392578125, 0.035491943359375, -0.022308349609375, -0.0110626220703125, 0.012359619140625, -0.041229248046875, -0.02679443359375, 0.052337646484375, -0.058197021484375, -0.051116943359375, -0.058319091796875, 0.0460205078125, 0.043701171875, -0.007659912109375, -0.0258941650390625, 0.046722412109375, -0.02734375, -0.0248565673828125, 0.0262908935546875, 0.005584716796875, 0.02142333984375, -0.02093505859375, 0.005794525146484375, -0.058990478515625, -0.034271240234375, -0.01107025146484375, 0.0214080810546875, 0.0325927734375, 0.0228729248046875, 0.0001380443572998047, -0.0604248046875, -0.0026912689208984375, -0.03302001953125, 0.0321044921875, -0.0172119140625, 0.021575927734375, -0.017578125, 0.0014791488647460938, -0.053466796875, -0.001911163330078125, -0.0170745849609375, 0.06097412109375, -0.03253173828125, -0.041259765625, -0.03515625, 0.000881195068359375, 0.0762939453125, 0.0672607421875, 0.01560211181640625, -0.04888916015625, -0.0043182373046875, -0.037139892578125, -0.04876708984375, 0.00290679931640625, 0.03271484375, -0.073974609375, 0.0015954971313476562, 0.039459228515625, 0.0029201507568359375, -0.0310211181640625, -0.007152557373046875, -0.03271484375, -0.0167694091796875, -0.00150299072265625, 0.005237579345703125, -0.038055419921875, 0.0176239013671875, 0.056884765625, -0.0293731689453125, 0.00677490234375, 0.0139617919921875, -0.0016946792602539062, 0.057647705078125, 0.01690673828125, 0.0012359619140625, 0.0087738037109375, -0.0299072265625, -0.01153564453125, 0.00841522216796875, 0.035675048828125, 0.006717681884765625, -0.01800537109375, -0.02899169921875, 0.028289794921875, 0.007686614990234375, 0.0220947265625, -0.00901031494140625, 0.0162200927734375, 0.0155792236328125, 0.03887939453125, -0.041229248046875, 0.02178955078125, -0.0289764404296875, 0.034637451171875, -0.01544952392578125, 0.01253509521484375, 0.0301666259765625, -0.0193939208984375, -0.0111541748046875, 0.026092529296875, 0.002956390380859375, -0.01483917236328125, 0.029693603515625, 0.02764892578125, -0.0006923675537109375, 0.0172119140625 ]
0b2c0504bf2f3d645b6bc4572bf4e777af3c21ac
Wordpress Stackexchange Q: Product categories don't appear as option to build menu I am trying to add my product categories as top level categories in the navigation bar on my site. Under the "categories" option in appearance > menus, the only thing that appears under categories is "uncategorized". My product categories do exist in the system as do products. What do I need to fix or change to be able to add them to the menu structure? A: On the Menus page, click the Screen Options tab at top right. Then tick the boxes for products and product categories. That will make them available to be added to your menus.
Q: Product categories don't appear as option to build menu I am trying to add my product categories as top level categories in the navigation bar on my site. Under the "categories" option in appearance > menus, the only thing that appears under categories is "uncategorized". My product categories do exist in the system as do products. What do I need to fix or change to be able to add them to the menu structure? A: On the Menus page, click the Screen Options tab at top right. Then tick the boxes for products and product categories. That will make them available to be added to your menus.
wordpress
{ "language": "en", "length": 108, "provenance": "stackexchange_00019.jsonl.gz:461534", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/211836" }
[ 0.025482177734375, 0.00015103816986083984, 0.00027298927307128906, 0.016815185546875, 0.0198822021484375, -0.043731689453125, 0.0631103515625, -0.0300750732421875, -0.0145721435546875, -0.0155487060546875, -0.0237579345703125, -0.0134429931640625, -0.06719970703125, -0.037567138671875, -0.00798797607421875, -0.0672607421875, 0.0195770263671875, 0.00955963134765625, 0.01186370849609375, -0.015869140625, -0.00021827220916748047, 0.005767822265625, -0.00833892822265625, 0.039794921875, 0.031463623046875, -0.01153564453125, 0.0020809173583984375, -0.018768310546875, 0.006725311279296875, -0.0169677734375, 0.0207977294921875, 0.01236724853515625, -0.00243377685546875, -0.029296875, 0.102294921875, 0.053375244140625, 0.01169586181640625, 0.0029888153076171875, 0.051239013671875, -0.024871826171875, 0.0321044921875, -0.00914764404296875, 0.09814453125, 0.004795074462890625, 0.0567626953125, -0.037109375, 0.043975830078125, -0.0811767578125, 0.0025234222412109375, -0.06146240234375, 0.0201263427734375, 0.023284912109375, 0.04754638671875, -0.0865478515625, -0.01800537109375, 0.004817962646484375, -0.024810791015625, -0.003086090087890625, 0.0270233154296875, 0.0268096923828125, -0.0107574462890625, -0.0202178955078125, 0.01200103759765625, -0.0498046875, 0.010467529296875, 0.0113983154296875, 0.046661376953125, 0.0023479461669921875, -0.0307159423828125, 0.010772705078125, 0.028594970703125, -0.0262603759765625, 0.0225982666015625, 0.0305328369140625, -0.0021038055419921875, -0.07037353515625, 0.00855255126953125, -0.0243072509765625, 0.03387451171875, 0.01605224609375, 0.014892578125, 0.041748046875, 0.017486572265625, -0.06036376953125, 0.00951385498046875, -0.051422119140625, -0.007389068603515625, -0.01461029052734375, -0.01023101806640625, 0.00962066650390625, -0.0024166107177734375, 0.0277099609375, -0.050689697265625, 0.0535888671875, 0.0207366943359375, -0.01354217529296875, 0.0276031494140625, 0.048828125, 0.0236663818359375, 0.035430908203125, -0.0249176025390625, -0.03759765625, 0.0264892578125, -0.06500244140625, 0.0235748291015625, 0.0230712890625, -0.03485107421875, 0.00556182861328125, 0.0592041015625, 0.03741455078125, 0.009521484375, 0.0288543701171875, 0.00966644287109375, -0.032196044921875, -0.01092529296875, -0.006519317626953125, -0.02581787109375, 0.03900146484375, 0.027374267578125, 0.0026416778564453125, 0.012115478515625, 0.052459716796875, -0.01059722900390625, -0.0283050537109375, -0.011199951171875, -0.0135955810546875, -0.007904052734375, -0.02069091796875, -0.01425933837890625, -0.0201568603515625, -0.0070343017578125, 0.046112060546875, -0.0008559226989746094, 0.0157012939453125, -0.0166168212890625, 0.0164642333984375, 0.0242767333984375, -0.001667022705078125, 0.0052490234375, -0.01401519775390625, 0.0184326171875, 0.0264739990234375, 0.0204010009765625, -0.00832366943359375, 0.023284912109375, -0.004299163818359375, 0.00962066650390625, 0.027374267578125, 0.039581298828125, -0.0130462646484375, 0.0171356201171875, -0.007633209228515625, 0.018402099609375, 0.04266357421875, -0.034332275390625, 0.0181884765625, 0.004817962646484375, -0.0259246826171875, -0.0106353759765625, -0.0430908203125, 0.0053253173828125, 0.01226806640625, 0.04644775390625, -0.0567626953125, -0.03790283203125, -0.0408935546875, -0.082275390625, -0.0082244873046875, 0.018646240234375, 0.004108428955078125, 0.019805908203125, -0.01519012451171875, 0.0250091552734375, -0.0038738250732421875, -0.006656646728515625, 0.005107879638671875, 0.0036678314208984375, 0.01132965087890625, 0.0168609619140625, 0.02459716796875, -0.005222320556640625, -0.048065185546875, 0.0277862548828125, -0.00658416748046875, -0.036956787109375, 0.018890380859375, 0.018402099609375, 0.0665283203125, -0.01036834716796875, 0.02630615234375, 0.0379638671875, 0.01512908935546875, -0.0277862548828125, -0.0291900634765625, 0.004695892333984375, -0.031005859375, 0.01390838623046875, -0.0189056396484375, -0.0014066696166992188, 0.0276031494140625, -0.015716552734375, 0.0270843505859375, -0.00876617431640625, 0.005870819091796875, -0.01030731201171875, 0.00891876220703125, -0.0079498291015625, 0.05218505859375, 0.054718017578125, -0.01212310791015625, -0.022552490234375, -0.04150390625, 0.0302276611328125, -0.051116943359375, -0.052734375, 0.0290985107421875, -0.009246826171875, 0.0252532958984375, 0.01306915283203125, 0.0013866424560546875, 0.00615692138671875, 0.00702667236328125, 0.01166534423828125, 0.0002033710479736328, 0.04644775390625, 0.03497314453125, -0.035888671875, -0.0063934326171875, 0.03656005859375, 0.0249786376953125, -0.04278564453125, 0.01470184326171875, 0.0174407958984375, 0.01491546630859375, -0.0281982421875, 0.0169525146484375, 0.00319671630859375, -0.01214599609375, -0.011016845703125, 0.0228271484375, 0.0236663818359375, 0.05792236328125, -0.003520965576171875, 0.01268768310546875, 0.07196044921875, -0.033355712890625, -0.0176849365234375, 0.005573272705078125, -0.03167724609375, 0.01934814453125, 0.055908203125, 0.0152740478515625, 0.006511688232421875, 0.01114654541015625, -0.0009245872497558594, 0.013275146484375, -0.020965576171875, -0.01052093505859375, 0.01226806640625, -0.005382537841796875, 0.0153961181640625, 0.01103973388671875, -0.01458740234375, 0.0017881393432617188, 0.046966552734375, 0.0034160614013671875, 0.041259765625, 0.03704833984375, -0.023468017578125, -0.0096893310546875, 0.01422882080078125, 0.0269012451171875, -0.013275146484375, 0.01824951171875, 0.019378662109375, -0.01439666748046875, -0.0173187255859375, -0.00830078125, -0.004543304443359375, -0.0005002021789550781, -0.007476806640625, 0.045562744140625, 0.03271484375, -0.0165252685546875, -0.01351165771484375, -0.06591796875, 0.0058441162109375, -0.0212860107421875, -0.0209808349609375, -0.0230255126953125, 0.0182342529296875, 0.01415252685546875, -0.0181732177734375, 0.015777587890625, -0.044097900390625, -0.015289306640625, -0.001499176025390625, 0.0106658935546875, 0.005016326904296875, 0.00890350341796875, 0.03021240234375, 0.058807373046875, 0.0098724365234375, 0.002628326416015625, 0.009552001953125, 0.0156707763671875, 0.0260162353515625, 0.007762908935546875, 0.00025343894958496094, 0.01093292236328125, -0.038116455078125, 0.00714874267578125, 0.0206298828125, -0.04254150390625, 0.037078857421875, -0.00499725341796875, 0.0013475418090820312, -0.01024627685546875, -0.06549072265625, -0.038909912109375, -0.006740570068359375, -0.048919677734375, 0.05029296875, 0.00885009765625, -0.00795745849609375, -0.055328369140625, 0.06573486328125, 0.01525115966796875, 0.0021648406982421875, -0.0233917236328125, -0.011962890625, -0.03704833984375, -0.04071044921875, 0.0023956298828125, -0.0014886856079101562, 0.0010280609130859375, -0.0079193115234375, 0.03936767578125, -0.0065155029296875, -0.0794677734375, -0.0182952880859375, 0.00717926025390625, 0.01275634765625, 0.050537109375, 0.040252685546875, -0.0159759521484375, 0.026397705078125, 0.0129852294921875, 0.01076507568359375, 0.05780029296875, -0.053863525390625, -0.022430419921875, -0.033538818359375, -0.0084991455078125, -0.0013608932495117188, 0.0205841064453125, 0.050994873046875, 0.02703857421875, 0.04351806640625, -0.0090484619140625, -0.005443572998046875, 0.016204833984375, -0.0167388916015625, -0.04766845703125, -0.021942138671875, 0.0068511962890625, -0.029541015625, 0.015716552734375, -0.0150146484375, 0.0034999847412109375, 0.02801513671875, -0.0229644775390625, -0.029632568359375, -0.0305328369140625, -0.047637939453125, -0.0009860992431640625, 0.0266876220703125, -0.0277099609375, 0.04229736328125, 0.0081634521484375, -0.0172882080078125, -0.022003173828125, 0.0263519287109375, -0.0218048095703125, -0.0178985595703125, 0.020538330078125, -0.0247802734375, 0.0159912109375, -0.00555419921875, -0.0152130126953125, 0.021026611328125, 0.08001708984375, -0.03057861328125, -0.0186309814453125, -0.004741668701171875, 0.0286865234375, -0.0249481201171875, -0.049072265625, -0.03253173828125, -0.022308349609375, -0.08184814453125, 0.02752685546875, 0.0285186767578125, -0.03887939453125, -0.01519012451171875, 0.0133209228515625, -0.045166015625, -0.0210723876953125, 0.0472412109375, -0.029998779296875, 0.020111083984375, -0.002834320068359375, -0.006671905517578125, -0.01474761962890625, -0.03155517578125, -0.0005359649658203125, -0.0289154052734375, -0.01015472412109375, 0.005756378173828125, 0.00814056396484375, -0.0180816650390625, 0.0362548828125, -0.0272216796875, 0.029937744140625, 0.030487060546875, -0.0265655517578125, 0.03192138671875, 0.01605224609375, -0.004119873046875, -0.053619384765625, -0.020172119140625, -0.061065673828125, -0.017333984375, -0.028656005859375, 0.003940582275390625, 0.048309326171875, 0.003871917724609375, 0.042205810546875, -0.0019931793212890625, 0.00067138671875, -0.021148681640625, -0.0245361328125, -0.0192413330078125, -0.0074310302734375, -0.009368896484375, -0.0002715587615966797, -0.0186614990234375, -0.0254974365234375, 0.0163421630859375, -0.0258636474609375, -0.00574493408203125, 0.00624847412109375, 0.0214080810546875, 0.003276824951171875, -0.0090789794921875, 0.019012451171875, 0.005672454833984375, 0.031280517578125, -0.0134735107421875, 0.027374267578125, 0.01468658447265625, -0.01239776611328125, 0.0250091552734375, 0.0016584396362304688, 0.035552978515625, -0.01264190673828125, 0.032470703125, 0.0005168914794921875, -0.00774383544921875, 0.020233154296875, 0.0113525390625, -0.004673004150390625, 0.0208892822265625, 0.00629425048828125, -0.0137786865234375, -0.0205230712890625, 0.01003265380859375, 0.01174163818359375, -0.0158233642578125, -0.0062408447265625, 0.030731201171875, -0.0160980224609375, 0.004909515380859375, 0.056243896484375, 0.0312347412109375, 0.0024051666259765625, -0.02880859375, -0.0085601806640625, 0.005947113037109375, -0.0110626220703125, -0.0478515625, -0.030029296875, 0.0087127685546875, -0.01751708984375, -0.01187896728515625, 0.03363037109375, -0.0025634765625, 0.01995849609375, -0.01515960693359375, -0.049591064453125, -0.0104217529296875, -0.009124755859375, 0.03131103515625, 0.031494140625, 0.0208587646484375, -0.0164947509765625, -0.00931549072265625, 0.0025539398193359375, -0.003326416015625, -0.025360107421875, 0.02630615234375, -0.0114898681640625, 0.0251007080078125, 0.0119781494140625, -0.004680633544921875, -0.01148223876953125, 0.048919677734375, -0.0182037353515625, 0.0181121826171875, -0.0005588531494140625, -0.0174407958984375, 0.014373779296875, 0.0183868408203125, 0.018280029296875, -0.004547119140625, -0.0091705322265625, 0.003505706787109375, 0.047576904296875, -0.032135009765625, -0.0221710205078125, 0.0166778564453125, 0.01448822021484375, -0.00653839111328125, -0.00540924072265625, 0.01480865478515625, 0.01085662841796875, -0.02569580078125, 0.0112762451171875, -0.0428466796875, -0.05853271484375, -0.026031494140625, 0.0027103424072265625, 0.0185546875, -0.009857177734375, -0.032684326171875, 0.0167694091796875, -0.0562744140625, -0.008544921875, 0.06597900390625, -0.03857421875, 0.017822265625, 0.0162811279296875, -0.03265380859375, -0.0293426513671875, 0.007617950439453125, -0.076416015625, -0.004638671875, -0.0131378173828125, -0.01275634765625, 0.0285797119140625, -0.0024356842041015625, 0.031524658203125, -0.0238494873046875, -0.0172576904296875, 0.024871826171875, -0.006847381591796875, 0.037567138671875, 0.0106964111328125, -0.05047607421875, -0.027008056640625, -0.030853271484375, -0.034942626953125, 0.007556915283203125, 0.01806640625, -0.0491943359375, -0.005710601806640625, 0.0127410888671875, 0.0306243896484375, -0.01139068603515625, -0.035003662109375, -0.032562255859375, 0.006988525390625, 0.031982421875, 0.02471923828125, -0.0037708282470703125, 0.0231781005859375, -0.0211944580078125, 0.034454345703125, -0.0037212371826171875, -0.007793426513671875, -0.024200439453125, -0.00682830810546875, -0.0255889892578125, -0.029144287109375, 0.00917816162109375, 0.001522064208984375, -0.00626373291015625, 0.037353515625, 0.07830810546875, 0.02093505859375, 0.0178375244140625, -0.02813720703125, 0.0179443359375, -0.013458251953125, 0.035888671875, -0.049652099609375, -0.042724609375, 0.07855224609375, -0.032867431640625, 0.02935791015625, 0.0007190704345703125, 0.0074920654296875, 0.017364501953125, -0.0280914306640625, 0.0477294921875, 0.01511383056640625, -0.0762939453125, 0.07562255859375, 0.03912353515625, -0.0002474784851074219, 0.00994873046875, -0.0230560302734375, -0.0023345947265625, -0.029144287109375, -0.0247802734375, -0.00010406970977783203, 0.0190582275390625, -0.0010957717895507812, -0.029205322265625, -0.0038585662841796875, 0.003826141357421875, -0.0184173583984375, -0.0218963623046875, 0.07452392578125, 0.04791259765625, -0.0926513671875, -0.0132904052734375, -0.00527191162109375, -0.012542724609375, -0.006023406982421875, 0.0145416259765625, -0.007785797119140625, -0.0237579345703125, -0.00023746490478515625, -0.0298919677734375, -0.0289459228515625, -0.00994110107421875, -0.00804901123046875, 0.00882720947265625, 0.015655517578125, 0.0168914794921875, 0.00112152099609375, -0.0094146728515625, -0.0543212890625, 0.0035877227783203125, -0.01409912109375, -0.0236358642578125, -0.01290130615234375, 0.03326416015625, -0.0106201171875, -0.0034999847412109375, 0.09515380859375, -0.0300140380859375, 0.055694580078125, 0.0367431640625, -0.0217437744140625, -0.0227203369140625, 0.0277252197265625, -0.031219482421875, 0.0265045166015625, -0.0049896240234375, -0.0472412109375, 0.1248779296875, 0.0227203369140625, 0.02703857421875, -0.034027099609375, -0.0263519287109375, -0.040069580078125, -0.0124969482421875, 0.01134490966796875, -0.021484375, -0.0010709762573242188, 0.08099365234375, -0.033355712890625, -0.018707275390625, 0.021759033203125, 0.0293121337890625, -0.00751495361328125, 0.006832122802734375, 0.0219573974609375, 0.0159912109375, 0.074951171875, 0.003101348876953125, 0.0760498046875, 0.0138092041015625, 0.0243682861328125, -0.0304107666015625, -0.00598907470703125, -0.053619384765625, 0.0216827392578125, 0.036376953125, -0.00939178466796875, 0.0167999267578125, -0.01355743408203125, -0.01230621337890625, 0.0242462158203125, 0.01201629638671875, 0.0333251953125, -0.024566650390625, -0.030792236328125, 0.0216064453125, 0.061553955078125, -0.0021190643310546875, -0.0018453598022460938, -0.0248260498046875, 0.0129852294921875, 0.030517578125, 0.0257568359375, 0.010711669921875, 0.0301666259765625, -0.0233306884765625, -0.08154296875, 0.008544921875, 0.0270233154296875, 0.019866943359375, 0.0186920166015625, -0.0182647705078125, -0.00432586669921875, 0.01232147216796875, 0.0256195068359375, -0.001613616943359375, 0.033599853515625, 0.053466796875, -0.022796630859375, -0.028961181640625, -0.004241943359375, -0.014678955078125, 0.022125244140625, -0.0177001953125, -0.036285400390625, -0.007747650146484375, -0.032379150390625, 0.0254669189453125, -0.00003886222839355469, 0.01385498046875, 0.00982666015625, 0.01412200927734375, 0.0235443115234375, -0.001163482666015625, 0.0038204193115234375, 0.03662109375, -0.033050537109375, 0.05120849609375, 0.03363037109375, 0.030242919921875, -0.023162841796875, 0.0007772445678710938, 0.059173583984375, 0.0711669921875, -0.0291900634765625, -0.0745849609375, 0.01186370849609375, 0.0153961181640625, 0.0057525634765625, 0.034271240234375, 0.0247802734375, 0.00800323486328125, 0.07464599609375, -0.020477294921875, -0.0015115737915039062, 0.038238525390625, 0.024749755859375, 0.0170745849609375, 0.0227203369140625, -0.0171356201171875, -0.0074462890625, -0.053558349609375, 0.039886474609375, 0.01079559326171875, 0.07421875, 0.005084991455078125, 0.0740966796875, -0.0560302734375, -0.0445556640625, -0.01074981689453125, 0.0276031494140625, -0.034881591796875, 0.0232086181640625, -0.05865478515625, -0.054840087890625, -0.005340576171875, 0.048858642578125, -0.01373291015625, 0.00818634033203125, 0.022247314453125, 0.060394287109375, 0.00763702392578125, -0.01543426513671875, 0.08587646484375, 0.0009756088256835938, -0.04022216796875, -0.017669677734375, 0.06610107421875, 0.08624267578125, 0.038116455078125, -0.0016183853149414062, 0.0673828125, 0.067626953125, -0.03570556640625, 0.034759521484375, -0.0110015869140625, -0.034332275390625, 0.0014801025390625, -0.0206756591796875, 0.06561279296875, 0.0016183853149414062, -0.036773681640625, -0.0147857666015625, -0.033599853515625, -0.01479339599609375, 0.035614013671875, 0.03350830078125, -0.004547119140625, 0.0175018310546875, 0.00832366943359375, -0.0200958251953125, -0.006591796875, 0.024505615234375, 0.0012969970703125, 0.0379638671875, 0.040985107421875, 0.016845703125, -0.01105499267578125, 0.0198974609375, 0.01276397705078125, -0.01407623291015625, 0.006664276123046875, 0.028778076171875, 0.023162841796875, 0.007495880126953125, -0.0216217041015625, 0.042205810546875, -0.065673828125, -0.0194549560546875, 0.0262908935546875, -0.011688232421875, -0.0162506103515625, 0.005352020263671875, -0.032958984375, -0.01416015625, 0.06915283203125, -0.034698486328125, 0.01134490966796875, -0.0031719207763671875, 0.01265716552734375, -0.08544921875, 0.052520751953125, 0.00007194280624389648, -0.0116729736328125, -0.01141357421875, -0.0132904052734375, 0.03704833984375, 0.05548095703125, -0.0007615089416503906, 0.0128326416015625, 0.0007658004760742188, -0.00823211669921875, 0.0087127685546875, -0.00274658203125, -0.00211334228515625, 0.029693603515625, 0.033294677734375, 0.04266357421875, 0.05816650390625, -0.00472259521484375, 0.048797607421875, 0.0189056396484375, -0.0014486312866210938, 0.04376220703125, -0.0296478271484375, 0.038726806640625, 0.07080078125, 0.05126953125, -0.01201629638671875, -0.00574493408203125, 0.0648193359375, -0.04754638671875, -0.014923095703125, -0.005672454833984375, -0.058380126953125, -0.0426025390625, -0.0005826950073242188, 0.00885772705078125, -0.0119781494140625, -0.04559326171875, -0.07550048828125, 0.039093017578125, 0.04803466796875, 0.015106201171875, -0.07293701171875, 0.0623779296875, -0.02716064453125, 0.055084228515625, -0.01105499267578125, -0.0179595947265625, 0.0137939453125, 0.01432037353515625, -0.05596923828125, 0.05072021484375, -0.017578125, -0.0645751953125, 0.005802154541015625, -0.0009179115295410156, -0.0002015829086303711, 0.0004563331604003906, 0.0025959014892578125, -0.0008873939514160156, -0.0091400146484375, 0.05743408203125, 0.0401611328125, -0.0379638671875, -0.045379638671875, 0.023345947265625, -0.007389068603515625, 0.003753662109375, 0.03314208984375, -0.04278564453125, -0.026153564453125, 0.00870513916015625, -0.006626129150390625, 0.018524169921875, -0.023651123046875, -0.042877197265625, 0.042938232421875, 0.0082855224609375, -0.03240966796875, -0.00601959228515625, -0.01824951171875, -0.053924560546875, 0.08001708984375, -0.0067291259765625, -0.01654052734375, 0.01177215576171875, 0.04833984375, 0.00904083251953125, 0.017303466796875, 0.0256195068359375, -0.01708984375, -0.042388916015625, -0.0186309814453125, -0.012115478515625, 0.0017986297607421875, 0.03179931640625, -0.01666259765625, 0.00811767578125, 0.0232086181640625, -0.050506591796875, -0.058563232421875, -0.041717529296875, -0.0036258697509765625, 0.0657958984375, -0.01812744140625, -0.068115234375, -0.09033203125, -0.0277252197265625, -0.021728515625, 0.0069580078125, 0.05810546875, -0.01000213623046875, -0.0190887451171875, -0.01543426513671875, 0.007099151611328125, 0.01812744140625, -0.046417236328125, 0.00798797607421875, 0.01319122314453125, -0.005054473876953125, -0.00887298583984375, 0.00875091552734375, -0.021270751953125, -0.01007843017578125, 0.00710296630859375, -0.012603759765625, -0.030853271484375, -0.044952392578125, -0.0301666259765625, -0.0152130126953125, -0.1036376953125, 0.0199737548828125, 0.019561767578125, -0.09930419921875, 0.0146484375, -0.016876220703125, -0.0271759033203125, 0.01241302490234375, 0.0161285400390625, -0.0048370361328125, 0.03460693359375, -0.0020847320556640625, -0.006969451904296875, -0.01812744140625, 0.03350830078125, 0.0131988525390625, 0.029449462890625, -0.029296875, 0.08575439453125, 0.03717041015625, 0.0445556640625, -0.00852203369140625, -0.0396728515625, -0.0261688232421875, 0.039642333984375, -0.0063934326171875, -0.0020198822021484375, 0.039154052734375, -0.021331787109375, 0.004154205322265625, 0.00634765625, -0.05029296875, -0.02020263671875, -0.00823974609375, 0.010467529296875, -0.034271240234375, 0.005603790283203125 ]
427d2885e939129841f0b028d4c5ec976f5d2464
Wordpress Stackexchange Q: Prevent WordPress from adding image' title automatically I wrote a plugin that set default title for all non-set (empty) titles and leaves the titles set manually (non-empty). The problem is when I upload new photos (to gallery), WordPress by default set the title to file's name. How Can I disable it and force WordPress to use empty string as default image title? A: You can try the following to clear the image attachment's title when it's inserted but not updated: /** * Empty the image attachment's title only when inserted not updated */ add_filter( 'wp_insert_attachment_data', function( $data, $postarr ) { if( empty( $postarr['ID'] ) && isset( $postarr['post_mime_type'] ) && wp_match_mime_types( 'image', $postarr['post_mime_type'] ) ) $data['post_title'] = ''; return $data; }, 10, 2 ); Here we use the wp_insert_attachment_data filter to override the attachment's title if the attachment's ID is empty and the mime type is an image type according to wp_match_mime_types(). A simple 'image' === substr( $postarr['post_mime_type'], 0, 5 ) check might work as well. You could even target a given mime type, like image/jpeg.
Q: Prevent WordPress from adding image' title automatically I wrote a plugin that set default title for all non-set (empty) titles and leaves the titles set manually (non-empty). The problem is when I upload new photos (to gallery), WordPress by default set the title to file's name. How Can I disable it and force WordPress to use empty string as default image title? A: You can try the following to clear the image attachment's title when it's inserted but not updated: /** * Empty the image attachment's title only when inserted not updated */ add_filter( 'wp_insert_attachment_data', function( $data, $postarr ) { if( empty( $postarr['ID'] ) && isset( $postarr['post_mime_type'] ) && wp_match_mime_types( 'image', $postarr['post_mime_type'] ) ) $data['post_title'] = ''; return $data; }, 10, 2 ); Here we use the wp_insert_attachment_data filter to override the attachment's title if the attachment's ID is empty and the mime type is an image type according to wp_match_mime_types(). A simple 'image' === substr( $postarr['post_mime_type'], 0, 5 ) check might work as well. You could even target a given mime type, like image/jpeg.
wordpress
{ "language": "en", "length": 176, "provenance": "stackexchange_00019.jsonl.gz:461542", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/211865" }
[ 0.03857421875, 0.01361846923828125, 0.0105743408203125, -0.0019321441650390625, 0.01132965087890625, -0.016082763671875, 0.058074951171875, -0.04766845703125, -0.00440216064453125, -0.005962371826171875, -0.015777587890625, -0.003509521484375, -0.0117645263671875, -0.04058837890625, 0.0095977783203125, -0.029693603515625, 0.015960693359375, -0.0014810562133789062, 0.01427459716796875, -0.00460052490234375, -0.0034160614013671875, -0.001392364501953125, 0.004627227783203125, -0.01354217529296875, -0.0274658203125, 0.0335693359375, 0.0982666015625, -0.031829833984375, -0.027069091796875, -0.03961181640625, 0.0110015869140625, 0.01947021484375, 0.005733489990234375, 0.061492919921875, -0.0413818359375, 0.07794189453125, 0.01568603515625, 0.0303192138671875, 0.024444580078125, 0.01898193359375, 0.014984130859375, -0.005657196044921875, 0.0286712646484375, -0.027313232421875, -0.008575439453125, -0.00788116455078125, 0.0119171142578125, -0.016876220703125, 0.02886962890625, -0.005615234375, 0.0023193359375, 0.007328033447265625, 0.0195770263671875, 0.01409149169921875, -0.02734375, -0.0164642333984375, -0.016998291015625, 0.0154266357421875, 0.0306243896484375, -0.00472259521484375, -0.0294342041015625, -0.017608642578125, 0.01364898681640625, -0.0273284912109375, 0.0280303955078125, -0.013671875, 0.032257080078125, 0.04022216796875, -0.06500244140625, 0.0214691162109375, 0.04437255859375, -0.045074462890625, -0.005756378173828125, -0.060333251953125, -0.0201873779296875, 0.0693359375, -0.032012939453125, -0.026123046875, 0.0190582275390625, -0.031158447265625, 0.04461669921875, -0.02484130859375, 0.0233154296875, 0.0163116455078125, 0.032470703125, 0.050445556640625, 0.0084991455078125, -0.03509521484375, -0.03515625, -0.0074005126953125, -0.02618408203125, 0.0008625984191894531, -0.01983642578125, -0.02923583984375, -0.0101165771484375, -0.02520751953125, 0.005527496337890625, 0.037384033203125, -0.02447509765625, 0.005550384521484375, -0.0096588134765625, -0.0208740234375, 0.0167694091796875, -0.037841796875, 0.01163482666015625, 0.025146484375, -0.0020885467529296875, -0.073974609375, 0.0033740997314453125, 0.01558685302734375, -0.0211639404296875, 0.0169525146484375, 0.00942230224609375, 0.0209197998046875, -0.0328369140625, 0.006603240966796875, -0.0300140380859375, 0.03814697265625, -0.00885009765625, 0.0570068359375, -0.0043487548828125, 0.01904296875, 0.006378173828125, -0.00400543212890625, 0.03411865234375, 0.033416748046875, -0.0110626220703125, -0.0233612060546875, -0.03399658203125, -0.0013685226440429688, -0.03424072265625, 0.027587890625, 0.08404541015625, 0.0272064208984375, 0.0176544189453125, -0.02032470703125, -0.01031494140625, -0.0251007080078125, -0.0157012939453125, 0.00936126708984375, 0.003353118896484375, -0.029754638671875, 0.00836944580078125, 0.0008573532104492188, -0.021270751953125, 0.019500732421875, -0.005260467529296875, 0.021575927734375, 0.0093841552734375, -0.074462890625, 0.040802001953125, -0.0787353515625, 0.040191650390625, 0.0091552734375, -0.038116455078125, -0.023712158203125, 0.023468017578125, -0.0157318115234375, -0.0267333984375, -0.059417724609375, 0.006977081298828125, -0.01412200927734375, -0.01387786865234375, -0.008453369140625, -0.0302886962890625, 0.02056884765625, 0.01200103759765625, -0.003849029541015625, 0.01374053955078125, 0.01102447509765625, 0.0030727386474609375, 0.0204925537109375, 0.0013980865478515625, -0.006683349609375, -0.008758544921875, -0.0236663818359375, 0.028839111328125, -0.0095367431640625, 0.006702423095703125, 0.053924560546875, -0.0012044906616210938, -0.01959228515625, 0.043914794921875, -0.0273284912109375, -0.0567626953125, 0.0038299560546875, 0.003162384033203125, 0.0291748046875, 0.038818359375, 0.00991058349609375, 0.05035400390625, 0.01416015625, -0.06658935546875, -0.018402099609375, -0.0013933181762695312, -0.0012464523315429688, 0.0178985595703125, -0.00568389892578125, 0.006870269775390625, 0.0309295654296875, -0.007076263427734375, 0.0120849609375, -0.033355712890625, 0.004634857177734375, -0.0322265625, -0.0386962890625, 0.0036640167236328125, 0.020294189453125, -0.044769287109375, 0.0231781005859375, 0.025604248046875, -0.01288604736328125, -0.02996826171875, 0.00884246826171875, 0.02276611328125, -0.0217437744140625, -0.00258636474609375, 0.0190887451171875, -0.0260009765625, 0.0455322265625, -0.05535888671875, -0.031524658203125, -0.04705810546875, 0.007762908935546875, 0.045166015625, 0.01230621337890625, -0.02825927734375, -0.0146026611328125, 0.04608154296875, 0.00916290283203125, -0.004974365234375, 0.024932861328125, -0.0178680419921875, -0.04534912109375, -0.0643310546875, -0.027801513671875, -0.0615234375, -0.09027099609375, 0.004810333251953125, 0.09814453125, 0.019622802734375, 0.0034999847412109375, -0.0183258056640625, 0.01255035400390625, 0.052001953125, 0.01456451416015625, 0.0234527587890625, -0.0098724365234375, 0.01073455810546875, 0.0298309326171875, -0.050140380859375, -0.00275421142578125, 0.02691650390625, -0.059967041015625, 0.006439208984375, 0.050445556640625, -0.01654052734375, -0.042816162109375, 0.0142059326171875, 0.00865936279296875, 0.00811767578125, -0.0015697479248046875, -0.01177978515625, 0.0081329345703125, 0.038909912109375, 0.028045654296875, 0.0234832763671875, 0.016143798828125, -0.05438232421875, 0.034210205078125, 0.01202392578125, -0.0276641845703125, 0.0008101463317871094, 0.02874755859375, 0.056243896484375, -0.0003211498260498047, -0.032470703125, -0.017181396484375, 0.029083251953125, 0.025390625, -0.03546142578125, -0.0264892578125, -0.0328369140625, -0.01168060302734375, 0.01861572265625, -0.052276611328125, 0.0156402587890625, -0.0269775390625, -0.0233001708984375, -0.0251922607421875, 0.0012083053588867188, 0.0220489501953125, -0.019805908203125, 0.028717041015625, 0.0144805908203125, -0.0259552001953125, -0.0140838623046875, -0.051605224609375, 0.049713134765625, -0.047576904296875, 0.061859130859375, 0.0799560546875, -0.03271484375, 0.0357666015625, 0.0002446174621582031, -0.00025391578674316406, -0.0341796875, 0.006702423095703125, -0.0200347900390625, 0.002498626708984375, -0.08563232421875, 0.0009927749633789062, 0.0006170272827148438, 0.0246429443359375, -0.03668212890625, -0.052734375, -0.01508331298828125, -0.0010509490966796875, -0.040191650390625, -0.011688232421875, 0.0310516357421875, -0.007038116455078125, -0.01910400390625, 0.0278167724609375, 0.0035343170166015625, -0.022674560546875, 0.050933837890625, -0.02264404296875, -0.031646728515625, -0.0150146484375, -0.0148773193359375, -0.06256103515625, -0.018280029296875, -0.032196044921875, -0.003849029541015625, -0.005413055419921875, -0.0007338523864746094, 0.0758056640625, 0.01666259765625, -0.040771484375, 0.00665283203125, 0.02392578125, -0.002895355224609375, 0.0055999755859375, 0.01116180419921875, -0.0098876953125, 0.03216552734375, -0.00809478759765625, -0.0014781951904296875, 0.04302978515625, -0.02191162109375, -0.0113372802734375, -0.006252288818359375, -0.0121917724609375, -0.0189208984375, 0.050811767578125, 0.0277557373046875, 0.00946807861328125, 0.024444580078125, -0.034576416015625, -0.01387786865234375, -0.018157958984375, -0.0455322265625, 0.023193359375, 0.01061248779296875, 0.00620269775390625, 0.005771636962890625, 0.016815185546875, -0.017486572265625, 0.01220703125, -0.01474761962890625, -0.0243988037109375, 0.05218505859375, -0.0207061767578125, -0.01387786865234375, -0.0010528564453125, 0.056732177734375, -0.0054931640625, 0.0218353271484375, 0.0293121337890625, 0.0187225341796875, 0.005542755126953125, -0.0195465087890625, -0.045440673828125, -0.02471923828125, 0.0183868408203125, -0.0733642578125, 0.050872802734375, -0.0794677734375, -0.00536346435546875, -0.042510986328125, 0.06640625, -0.0347900390625, -0.02838134765625, -0.0162506103515625, 0.02313232421875, -0.0178680419921875, -0.06427001953125, 0.01226806640625, -0.011505126953125, -0.0153656005859375, 0.00905609130859375, -0.017578125, -0.01180267333984375, 0.00531005859375, -0.04266357421875, 0.017303466796875, -0.044830322265625, 0.0249176025390625, -0.0181884765625, 0.014678955078125, 0.01210784912109375, -0.01360321044921875, 0.00698089599609375, -0.01197052001953125, -0.036102294921875, -0.1304931640625, -0.034149169921875, 0.029266357421875, 0.0684814453125, -0.06536865234375, 0.0443115234375, -0.052947998046875, 0.06201171875, -0.012176513671875, -0.0018367767333984375, -0.0025157928466796875, 0.0002906322479248047, -0.01244354248046875, 0.04034423828125, -0.0004489421844482422, -0.00905609130859375, -0.00447845458984375, -0.0234527587890625, -0.05023193359375, -0.032470703125, -0.0019741058349609375, -0.006221771240234375, 0.030548095703125, -0.0225372314453125, -0.0254974365234375, -0.040435791015625, 0.011474609375, 0.02227783203125, 0.0202484130859375, -0.0086669921875, -0.05255126953125, -0.02362060546875, 0.042755126953125, -0.0264129638671875, 0.007038116455078125, 0.003292083740234375, 0.08404541015625, 0.0029773712158203125, -0.00992584228515625, -0.0352783203125, 0.0267791748046875, 0.0262298583984375, -0.0012178421020507812, 0.02288818359375, -0.01209259033203125, -0.01263427734375, 0.041839599609375, -0.01367950439453125, 0.02801513671875, -0.030181884765625, 0.0340576171875, -0.046295166015625, -0.07122802734375, 0.066162109375, -0.04541015625, 0.007549285888671875, 0.0228271484375, 0.0004296302795410156, -0.00455474853515625, -0.015777587890625, -0.00594329833984375, -0.00021064281463623047, 0.00991058349609375, 0.00952911376953125, -0.01209259033203125, 0.0102081298828125, 0.047576904296875, -0.006011962890625, -0.0008130073547363281, 0.0111083984375, -0.040557861328125, -0.022979736328125, 0.0012407302856445312, -0.007659912109375, 0.0281219482421875, 0.0129547119140625, 0.05096435546875, 0.0066986083984375, 0.01849365234375, -0.038299560546875, -0.0046234130859375, -0.036590576171875, 0.0078125, -0.0115203857421875, -0.0215911865234375, 0.0205230712890625, 0.06256103515625, -0.00559234619140625, 0.0263214111328125, 0.0217132568359375, 0.00698089599609375, -0.00885772705078125, 0.01030731201171875, -0.0005841255187988281, 0.03240966796875, -0.036224365234375, -0.001857757568359375, 0.017181396484375, -0.020843505859375, 0.019561767578125, 0.007144927978515625, 0.035430908203125, -0.01812744140625, -0.0191192626953125, -0.004119873046875, 0.023223876953125, 0.033599853515625, 0.003528594970703125, 0.015899658203125, -0.04339599609375, 0.06866455078125, 0.0304107666015625, -0.0687255859375, -0.02154541015625, 0.02520751953125, 0.063232421875, -0.015380859375, -0.04547119140625, 0.0213623046875, -0.038055419921875, 0.0142364501953125, 0.020965576171875, -0.044036865234375, -0.0572509765625, -0.029815673828125, 0.0023956298828125, 0.053375244140625, -0.0482177734375, -0.03948974609375, 0.0117950439453125, -0.00698089599609375, 0.02130126953125, 0.0266571044921875, -0.057281494140625, 0.033233642578125, 0.035491943359375, -0.0017747879028320312, -0.0280609130859375, -0.0167388916015625, 0.01434326171875, 0.02862548828125, -0.035858154296875, -0.030517578125, 0.03680419921875, -0.0205535888671875, 0.006404876708984375, -0.028472900390625, 0.02667236328125, -0.0218353271484375, 0.0261383056640625, 0.00576019287109375, -0.010009765625, 0.036895751953125, -0.032135009765625, -0.05267333984375, -0.04376220703125, -0.0073394775390625, -0.024322509765625, -0.01331329345703125, -0.006683349609375, 0.0094146728515625, 0.036651611328125, -0.033172607421875, -0.03118896484375, -0.01468658447265625, 0.016265869140625, 0.0247039794921875, 0.093994140625, -0.0244903564453125, 0.00032258033752441406, 0.0139312744140625, -0.0129241943359375, -0.031402587890625, -0.043792724609375, 0.00025653839111328125, 0.0168914794921875, -0.020721435546875, -0.056488037109375, 0.0203094482421875, 0.0249786376953125, 0.007171630859375, 0.0208587646484375, 0.01300811767578125, 0.02618408203125, 0.00579071044921875, -0.007049560546875, -0.007480621337890625, -0.02093505859375, 0.0285491943359375, -0.0048828125, 0.0266876220703125, -0.0013256072998046875, -0.0166473388671875, 0.04974365234375, -0.0161895751953125, -0.0213470458984375, 0.018310546875, -0.043609619140625, 0.01094818115234375, 0.0418701171875, -0.0016355514526367188, 0.0267486572265625, 0.041656494140625, -0.035736083984375, 0.0266571044921875, 0.0140380859375, 0.00301361083984375, 0.044952392578125, 0.0034332275390625, 0.0277099609375, -0.0271148681640625, 0.05657958984375, -0.003917694091796875, 0.0000762939453125, 0.04510498046875, -0.016265869140625, 0.01171112060546875, 0.0438232421875, 0.06622314453125, -0.036407470703125, 0.00521087646484375, 0.0164337158203125, -0.005588531494140625, 0.0362548828125, -0.028228759765625, 0.0005350112915039062, -0.01439666748046875, 0.058837890625, -0.03826904296875, -0.042938232421875, -0.0116119384765625, -0.015533447265625, -0.00015819072723388672, 0.004673004150390625, 0.054779052734375, 0.0135955810546875, -0.01395416259765625, -0.052093505859375, 0.0367431640625, -0.0478515625, 0.005950927734375, 0.006343841552734375, -0.0122528076171875, -0.034576416015625, -0.07916259765625, -0.046905517578125, -0.01161956787109375, -0.0335693359375, 0.0002944469451904297, 0.0230712890625, 0.048095703125, 0.03826904296875, 0.006885528564453125, -0.01216888427734375, 0.029632568359375, -0.049163818359375, -0.0208892822265625, -0.051300048828125, -0.004638671875, 0.053314208984375, -0.0341796875, 0.03033447265625, 0.0008687973022460938, -0.01123809814453125, 0.004425048828125, -0.0254364013671875, 0.0306243896484375, -0.041473388671875, -0.0027904510498046875, 0.035064697265625, 0.01824951171875, 0.00005036592483520508, 0.01224517822265625, 0.02349853515625, -0.0350341796875, -0.03289794921875, 0.012908935546875, -0.05999755859375, -0.026153564453125, 0.007232666015625, -0.08612060546875, 0.0809326171875, -0.01806640625, 0.06109619140625, 0.0023288726806640625, 0.00859832763671875, -0.016998291015625, -0.0248260498046875, -0.0037593841552734375, 0.0311279296875, -0.0265960693359375, 0.010284423828125, -0.014678955078125, -0.0009775161743164062, 0.009246826171875, 0.0223846435546875, 0.029510498046875, -0.00533294677734375, 0.01294708251953125, 0.004425048828125, 0.05908203125, 0.0277252197265625, -0.003971099853515625, 0.004940032958984375, 0.0003437995910644531, -0.01096343994140625, 0.02838134765625, 0.0080718994140625, 0.0288543701171875, -0.0163116455078125, -0.00818634033203125, 0.0262298583984375, 0.0036716461181640625, 0.0124053955078125, 0.038787841796875, -0.004367828369140625, -0.007381439208984375, 0.0122222900390625, 0.01678466796875, -0.0318603515625, 0.04156494140625, 0.0253143310546875, 0.09234619140625, -0.06298828125, -0.01041412353515625, -0.021148681640625, 0.0673828125, 0.02362060546875, -0.00786590576171875, 0.057159423828125, 0.005443572998046875, 0.02764892578125, 0.00557708740234375, 0.00179290771484375, -0.00861358642578125, 0.0291290283203125, -0.019256591796875, -0.008941650390625, 0.0117645263671875, -0.03436279296875, 0.0011472702026367188, 0.0625, -0.003917694091796875, -0.01374053955078125, -0.0093231201171875, 0.0234222412109375, -0.00873565673828125, -0.03656005859375, -0.0292205810546875, -0.0294036865234375, -0.055511474609375, -0.012725830078125, -0.0248260498046875, 0.0234832763671875, 0.05810546875, 0.032928466796875, 0.004001617431640625, 0.01424407958984375, -0.0753173828125, -0.00021374225616455078, -0.0196075439453125, 0.0034580230712890625, 0.0187225341796875, 0.039764404296875, -0.0232391357421875, 0.04864501953125, -0.022186279296875, 0.0025424957275390625, -0.01024627685546875, 0.017547607421875, -0.0183563232421875, 0.0251617431640625, -0.05438232421875, -0.05810546875, 0.026336669921875, 0.044036865234375, 0.048309326171875, 0.020416259765625, 0.08929443359375, 0.043426513671875, -0.049530029296875, 0.005558013916015625, -0.044952392578125, -0.03485107421875, 0.01232147216796875, 0.0027561187744140625, 0.0197601318359375, 0.032073974609375, -0.0196685791015625, -0.003448486328125, 0.048187255859375, 0.0408935546875, -0.051116943359375, 0.00496673583984375, -0.00807952880859375, -0.03558349609375, 0.07086181640625, -0.0208892822265625, 0.05230712890625, -0.0170440673828125, -0.0614013671875, -0.01284027099609375, -0.0268707275390625, -0.0611572265625, 0.0347900390625, 0.043670654296875, -0.030731201171875, 0.0103302001953125, -0.0174407958984375, 0.003143310546875, 0.007099151611328125, -0.027557373046875, -0.000637054443359375, 0.0163116455078125, 0.019622802734375, 0.00038552284240722656, -0.0140838623046875, 0.0005922317504882812, -0.0026531219482421875, 0.0240936279296875, 0.00818634033203125, 0.037078857421875, -0.006298065185546875, 0.02978515625, -0.005268096923828125, 0.033782958984375, -0.034942626953125, -0.004322052001953125, -0.00139617919921875, 0.0016756057739257812, 0.0194854736328125, -0.01259613037109375, -0.020355224609375, -0.0030117034912109375, 0.0239410400390625, -0.019256591796875, 0.02587890625, -0.0660400390625, 0.03265380859375, -0.016571044921875, 0.0325927734375, -0.0277862548828125, 0.002346038818359375, -0.053955078125, -0.04541015625, 0.053802490234375, 0.01459503173828125, 0.004261016845703125, 0.043243408203125, -0.005634307861328125, -0.005153656005859375, 0.041839599609375, -0.069091796875, 0.0694580078125, 0.0367431640625, -0.04559326171875, -0.01355743408203125, -0.04022216796875, -0.0223846435546875, -0.01019287109375, -0.0023479461669921875, -0.0024051666259765625, -0.0167236328125, -0.0148162841796875, -0.0140228271484375, -0.041595458984375, -0.0012636184692382812, -0.048614501953125, -0.0090179443359375, -0.004566192626953125, 0.01080322265625, -0.024078369140625, -0.009307861328125, -0.005115509033203125, -0.0386962890625, -0.017852783203125, 0.0038166046142578125, -0.035491943359375, -0.0325927734375, 0.0089569091796875, 0.00005936622619628906, 0.032318115234375, 0.004978179931640625, -0.047637939453125, 0.05804443359375, -0.038116455078125, -0.01263427734375, 0.010772705078125, -0.047698974609375, -0.006664276123046875, 0.0053558349609375, 0.0009899139404296875, -0.057342529296875, -0.0458984375, 0.04022216796875, -0.055419921875, 0.0259857177734375, 0.053253173828125, -0.0296173095703125, -0.02294921875, -0.029022216796875, 0.006755828857421875, 0.023590087890625, -0.013519287109375, -0.0283203125, -0.005344390869140625, -0.00974273681640625, -0.02545166015625, -0.015716552734375, 0.0241546630859375, -0.054534912109375, -0.047943115234375, -0.04913330078125, 0.0007510185241699219, -0.0012922286987304688, -0.03887939453125, -0.037322998046875, 0.0390625, -0.007373809814453125, -0.0202484130859375, -0.016876220703125, 0.027374267578125, -0.0452880859375, 0.06842041015625, 0.00934600830078125, -0.0203704833984375, 0.058563232421875, 0.038909912109375, -0.003177642822265625, -0.01360321044921875, 0.0389404296875, -0.0274658203125, 0.018218994140625, 0.00563812255859375, 0.0189208984375, -0.043212890625, 0.035003662109375, -0.044158935546875, 0.063720703125, 0.039398193359375, -0.036163330078125, 0.046051025390625, -0.00003457069396972656, -0.016387939453125, -0.0228424072265625, -0.01080322265625, -0.03631591796875, 0.0032939910888671875, 0.10211181640625, 0.0687255859375, 0.0183563232421875, -0.0426025390625, 0.0198822021484375, -0.009918212890625, -0.026885986328125, -0.0022411346435546875, 0.01166534423828125, -0.0328369140625, -0.0173492431640625, 0.0021114349365234375, -0.005596160888671875, -0.046875, -0.01195526123046875, -0.037384033203125, -0.0243988037109375, -0.029083251953125, -0.00193023681640625, -0.0017070770263671875, 0.01251220703125, 0.056854248046875, -0.033111572265625, 0.021575927734375, -0.00899505615234375, 0.00567626953125, 0.0325927734375, -0.01432037353515625, 0.0146942138671875, 0.02545166015625, -0.0245819091796875, -0.01406097412109375, 0.0341796875, -0.03240966796875, 0.00820159912109375, -0.0170135498046875, -0.007354736328125, 0.019195556640625, 0.003314971923828125, 0.0242462158203125, -0.017974853515625, 0.06475830078125, 0.0286102294921875, 0.004611968994140625, 0.008514404296875, -0.061767578125, -0.010894775390625, 0.01617431640625, 0.0018510818481445312, -0.0280303955078125, 0.0292816162109375, -0.0300140380859375, 0.0093536376953125, 0.00783538818359375, -0.006366729736328125, -0.03668212890625, 0.006130218505859375, -0.049468994140625, 0.0053558349609375, 0.01206207275390625 ]
912597a17afb9259e9be70643e7af3d71ed1f72a
Wordpress Stackexchange Q: Is is possible to crop an image after uploading I'm trying to build a plugin, and part of it requires to upload (or choose an already uploaded one) an image, and when it's done uploading to crop it (a bit like how you change a header image in the WP_Customizer). I currently have this code code: Index.php: <div class="imagearea"> <div class="noimage"> <a class="select-image button button-primary button-large">Selecteer een foto</a> </div> </div> imageUpload.js: jQuery(document).ready(function (){ jQuery(".select-image").click(function() { var custom_uploader = wp.media({ title: 'Selecteer een afbeelding', button: { text: 'Selecteer' }, multiple: false }) .on('select', function() { var cropper = wp.cropper().open(); }).open(); }); }); But I then get the error: Uncaught ReferenceError: wp.cropper is not defined It seems like wp.cropper is not the correct name, while /wp-includes/crop/cropper.js does seem to suggest that on line 39. I've also tried some variations of the name (wp.Cropper, WP.cropper, Cropper, etc...) I'm on Wordpress 4.4 A: Untested, but I believe this should work: jQuery(document).ready(function (){ jQuery(".select-image").click(function() { var custom_uploader = wp.media({ title: 'Selecteer een afbeelding', button: { text: 'Selecteer' }, multiple: false }); custom_uploader.on('select', function() { custom_uploader.Jcrop(); }); custom_uploader.open(); }); });
Q: Is is possible to crop an image after uploading I'm trying to build a plugin, and part of it requires to upload (or choose an already uploaded one) an image, and when it's done uploading to crop it (a bit like how you change a header image in the WP_Customizer). I currently have this code code: Index.php: <div class="imagearea"> <div class="noimage"> <a class="select-image button button-primary button-large">Selecteer een foto</a> </div> </div> imageUpload.js: jQuery(document).ready(function (){ jQuery(".select-image").click(function() { var custom_uploader = wp.media({ title: 'Selecteer een afbeelding', button: { text: 'Selecteer' }, multiple: false }) .on('select', function() { var cropper = wp.cropper().open(); }).open(); }); }); But I then get the error: Uncaught ReferenceError: wp.cropper is not defined It seems like wp.cropper is not the correct name, while /wp-includes/crop/cropper.js does seem to suggest that on line 39. I've also tried some variations of the name (wp.Cropper, WP.cropper, Cropper, etc...) I'm on Wordpress 4.4 A: Untested, but I believe this should work: jQuery(document).ready(function (){ jQuery(".select-image").click(function() { var custom_uploader = wp.media({ title: 'Selecteer een afbeelding', button: { text: 'Selecteer' }, multiple: false }); custom_uploader.on('select', function() { custom_uploader.Jcrop(); }); custom_uploader.open(); }); });
wordpress
{ "language": "en", "length": 185, "provenance": "stackexchange_00019.jsonl.gz:461555", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/211909" }
[ 0.0130615234375, 0.003849029541015625, 0.01079559326171875, 0.0004558563232421875, 0.0095977783203125, -0.017608642578125, 0.038360595703125, -0.06048583984375, 0.0404052734375, -0.0056304931640625, -0.032562255859375, -0.00414276123046875, -0.0198822021484375, -0.0307159423828125, -0.0192413330078125, -0.0252227783203125, 0.050567626953125, -0.0309906005859375, 0.035064697265625, -0.0132904052734375, 0.02154541015625, 0.035491943359375, -0.004840850830078125, 0.0655517578125, 0.004611968994140625, 0.029296875, 0.037322998046875, 0.0281829833984375, -0.029449462890625, -0.01666259765625, 0.0113372802734375, 0.0141143798828125, 0.026153564453125, 0.0289306640625, -0.0360107421875, 0.0004305839538574219, -0.00316619873046875, 0.00991058349609375, 0.00835418701171875, 0.0198822021484375, 0.0144805908203125, -0.0009202957153320312, -0.029876708984375, 0.00511932373046875, -0.040924072265625, -0.036773681640625, 0.0041961669921875, -0.035003662109375, 0.0260467529296875, 0.060272216796875, -0.0121307373046875, -0.0257720947265625, -0.0186004638671875, 0.01267242431640625, -0.004184722900390625, -0.00522613525390625, -0.01451873779296875, 0.035919189453125, 0.017974853515625, 0.058746337890625, -0.00447845458984375, 0.038848876953125, -0.011138916015625, -0.035614013671875, -0.01317596435546875, 0.0013418197631835938, -0.006198883056640625, -0.006359100341796875, -0.0178985595703125, -0.004467010498046875, 0.0177764892578125, -0.018646240234375, 0.0144500732421875, -0.02734375, 0.0035533905029296875, -0.00955963134765625, 0.00344085693359375, -0.039642333984375, 0.0025081634521484375, 0.010833740234375, 0.023345947265625, -0.0272216796875, -0.044464111328125, 0.0176239013671875, 0.0201568603515625, 0.049713134765625, 0.0035877227783203125, -0.0290069580078125, -0.04833984375, 0.0272674560546875, -0.034210205078125, 0.0078277587890625, -0.0097198486328125, 0.0017070770263671875, -0.0226898193359375, 0.0269012451171875, -0.0048828125, -0.00801849365234375, -0.0345458984375, -0.0017786026000976562, 0.01467132568359375, -0.02838134765625, 0.046112060546875, -0.0260162353515625, 0.01230621337890625, 0.027069091796875, 0.01102447509765625, 0.0032062530517578125, 0.0249481201171875, 0.006191253662109375, -0.0159454345703125, 0.00879669189453125, -0.007732391357421875, -0.01276397705078125, -0.023895263671875, -0.0145111083984375, -0.0455322265625, 0.0162811279296875, 0.0015382766723632812, -0.0021152496337890625, -0.0150909423828125, -0.0022678375244140625, -0.009063720703125, -0.032379150390625, 0.0265045166015625, -0.0013360977172851562, -0.0016183853149414062, 0.0015859603881835938, -0.00627899169921875, 0.01425933837890625, -0.0184173583984375, 0.032745361328125, 0.03143310546875, -0.0110321044921875, -0.0149993896484375, 0.0011548995971679688, 0.04217529296875, -0.01227569580078125, 0.019805908203125, 0.002307891845703125, -0.00946807861328125, -0.00484466552734375, 0.0279693603515625, -0.00855255126953125, 0.01340484619140625, 0.0210723876953125, -0.0029468536376953125, 0.0093841552734375, 0.0121917724609375, -0.04205322265625, 0.043701171875, -0.0367431640625, 0.025726318359375, 0.01297760009765625, -0.0009570121765136719, -0.062744140625, 0.0158233642578125, -0.046966552734375, 0.0271759033203125, -0.049591064453125, 0.0662841796875, -0.00396728515625, -0.031524658203125, 0.0031585693359375, -0.0282440185546875, -0.0016345977783203125, -0.05157470703125, -0.001567840576171875, 0.0279998779296875, -0.006988525390625, 0.0081024169921875, 0.01435089111328125, 0.05804443359375, 0.04498291015625, 0.021453857421875, 0.027557373046875, 0.024261474609375, -0.003620147705078125, 0.0075836181640625, 0.0190277099609375, 0.01119232177734375, -0.018310546875, 0.054962158203125, -0.01558685302734375, -0.031341552734375, -0.014404296875, 0.01502227783203125, 0.035308837890625, 0.0157623291015625, 0.021453857421875, 0.0289764404296875, 0.0125885009765625, 0.0013723373413085938, 0.032318115234375, -0.0022487640380859375, -0.012786865234375, -0.060211181640625, -0.0008678436279296875, -0.0240478515625, -0.001247406005859375, -0.016326904296875, 0.01010894775390625, -0.01479339599609375, 0.0205078125, -0.02374267578125, -0.0156097412109375, -0.006496429443359375, 0.0144195556640625, 0.0005116462707519531, -0.001434326171875, 0.0170440673828125, -0.0126953125, -0.0182037353515625, -0.015228271484375, -0.03668212890625, -0.0001628398895263672, 0.0014743804931640625, 0.03668212890625, -0.00801849365234375, 0.039581298828125, -0.02557373046875, -0.060333251953125, -0.022247314453125, 0.022216796875, 0.040252685546875, 0.0341796875, -0.02581787109375, -0.0010805130004882812, 0.0305633544921875, 0.0157623291015625, -0.00556182861328125, 0.0335693359375, 0.006252288818359375, 0.058380126953125, -0.0194549560546875, -0.0357666015625, -0.01763916015625, -0.0487060546875, 0.0303955078125, 0.036407470703125, 0.0036296844482421875, 0.047088623046875, -0.0167388916015625, 0.032806396484375, 0.0609130859375, 0.0005230903625488281, -0.00018405914306640625, 0.0183868408203125, -0.0018215179443359375, 0.0031642913818359375, -0.01280975341796875, -0.007415771484375, 0.0288543701171875, -0.022430419921875, 0.009033203125, 0.0416259765625, -0.01226043701171875, -0.00006222724914550781, -0.030609130859375, 0.01849365234375, 0.003936767578125, 0.002201080322265625, -0.0196380615234375, 0.000278472900390625, 0.047943115234375, -0.021881103515625, 0.050384521484375, 0.0266571044921875, -0.046478271484375, 0.0021419525146484375, 0.027313232421875, 0.015777587890625, -0.001827239990234375, 0.032806396484375, 0.034393310546875, 0.0302886962890625, -0.034759521484375, -0.02301025390625, 0.0173797607421875, 0.0203399658203125, -0.01398468017578125, 0.01384735107421875, -0.08111572265625, -0.0237579345703125, -0.0047149658203125, -0.035614013671875, -0.0209503173828125, 0.0023365020751953125, -0.0081939697265625, 0.0043182373046875, 0.021820068359375, 0.053436279296875, -0.01320648193359375, 0.050262451171875, -0.027984619140625, -0.0023784637451171875, 0.0137481689453125, -0.044219970703125, 0.0328369140625, -0.01128387451171875, 0.0628662109375, 0.07769775390625, 0.005645751953125, 0.0236968994140625, 0.01186370849609375, -0.044891357421875, 0.00768280029296875, 0.036468505859375, 0.005939483642578125, -0.026153564453125, -0.0199127197265625, 0.0188446044921875, 0.0223541259765625, 0.0643310546875, -0.03564453125, -0.04522705078125, -0.0167388916015625, 0.0191192626953125, -0.0323486328125, -0.02020263671875, 0.01084136962890625, -0.084228515625, 0.0161590576171875, -0.0010890960693359375, -0.0194549560546875, -0.0175933837890625, 0.0219573974609375, 0.004619598388671875, -0.021697998046875, -0.00920867919921875, 0.028289794921875, -0.037872314453125, -0.035430908203125, -0.0411376953125, 0.01165771484375, 0.017852783203125, 0.0206756591796875, -0.032135009765625, -0.00040531158447265625, -0.032562255859375, 0.00803375244140625, 0.03436279296875, 0.0005612373352050781, 0.002941131591796875, 0.043212890625, 0.0025787353515625, 0.0282745361328125, -0.002063751220703125, 0.003993988037109375, 0.0648193359375, -0.06640625, -0.03253173828125, -0.050628662109375, -0.0246429443359375, -0.057403564453125, 0.07318115234375, 0.08905029296875, -0.0518798828125, -0.01102447509765625, -0.05950927734375, 0.013580322265625, -0.043365478515625, -0.030609130859375, 0.03729248046875, 0.01450347900390625, -0.00724029541015625, 0.0008864402770996094, 0.01271820068359375, 0.05938720703125, 0.037689208984375, -0.0214080810546875, 0.0159149169921875, 0.024200439453125, 0.00980377197265625, 0.048614501953125, -0.02301025390625, -0.000007271766662597656, -0.0154266357421875, 0.01580810546875, -0.0105133056640625, 0.0161590576171875, 0.00681304931640625, 0.0031681060791015625, -0.0238189697265625, -0.06036376953125, 0.03717041015625, 0.0132293701171875, -0.01067352294921875, 0.005645751953125, -0.033935546875, 0.039581298828125, 0.0760498046875, -0.028656005859375, 0.0045013427734375, -0.033355712890625, -0.0182647705078125, 0.0019817352294921875, -0.01012420654296875, -0.054351806640625, 0.01486968994140625, -0.0631103515625, -0.0218505859375, 0.00827789306640625, -0.059295654296875, 0.0064544677734375, 0.014129638671875, -0.045013427734375, -0.0322265625, 0.037353515625, -0.05255126953125, 0.0008635520935058594, -0.0203399658203125, -0.01788330078125, -0.0289764404296875, 0.0002751350402832031, -0.04339599609375, -0.0977783203125, -0.00783538818359375, -0.006832122802734375, 0.043548583984375, -0.043365478515625, 0.05963134765625, -0.0518798828125, 0.042449951171875, 0.02044677734375, 0.035491943359375, -0.01334381103515625, -0.0151214599609375, 0.0167999267578125, -0.0150604248046875, -0.003780364990234375, -0.0186309814453125, -0.01406097412109375, -0.038818359375, -0.046661376953125, -0.0411376953125, -0.0294036865234375, -0.026092529296875, -0.0038318634033203125, -0.0193328857421875, -0.004669189453125, -0.00977325439453125, -0.05712890625, 0.00873565673828125, -0.049591064453125, -0.00925445556640625, -0.0234832763671875, -0.019805908203125, 0.0282440185546875, -0.058624267578125, 0.0106658935546875, 0.01035308837890625, 0.08721923828125, 0.0081329345703125, 0.0178375244140625, -0.049896240234375, -0.0284423828125, 0.039031982421875, 0.00762939453125, 0.032501220703125, 0.0313720703125, -0.053558349609375, 0.08056640625, 0.0133819580078125, -0.0261077880859375, -0.0233612060546875, 0.0618896484375, -0.007595062255859375, -0.024871826171875, 0.01534271240234375, -0.0130157470703125, 0.0146026611328125, 0.0281524658203125, -0.034271240234375, 0.0343017578125, -0.026336669921875, -0.0009393692016601562, -0.023712158203125, 0.009674072265625, -0.00960540771484375, -0.044464111328125, 0.01192474365234375, -0.07159423828125, 0.061248779296875, -0.02001953125, 0.01161956787109375, 0.03826904296875, 0.06134033203125, 0.006687164306640625, -0.0302886962890625, 0.0006418228149414062, -0.0035190582275390625, 0.0222930908203125, 0.0182952880859375, 0.0191802978515625, -0.0255889892578125, 0.01806640625, -0.0223388671875, 0.040740966796875, 0.0055084228515625, -0.07794189453125, 0.0207672119140625, -0.0135498046875, -0.0931396484375, 0.0278167724609375, 0.043365478515625, 0.033355712890625, 0.0096282958984375, -0.0091094970703125, 0.01044464111328125, 0.03399658203125, -0.037811279296875, 0.027252197265625, 0.02044677734375, -0.0274200439453125, 0.0214385986328125, -0.032257080078125, 0.00559234619140625, -0.034027099609375, 0.00756072998046875, 0.04931640625, 0.046051025390625, 0.026031494140625, 0.006824493408203125, -0.0214385986328125, -0.0218658447265625, 0.0188140869140625, -0.01506805419921875, -0.01425933837890625, 0.01482391357421875, 0.00882720947265625, 0.01531219482421875, -0.0267333984375, -0.037567138671875, 0.041259765625, -0.0101165771484375, -0.0350341796875, 0.010589599609375, -0.00566864013671875, -0.027557373046875, -0.0146942138671875, 0.0294189453125, 0.0277099609375, 0.0299072265625, -0.0325927734375, 0.00940704345703125, -0.022979736328125, -0.002300262451171875, 0.007495880126953125, -0.06903076171875, 0.0341796875, 0.053924560546875, 0.0114288330078125, -0.0086212158203125, -0.021636962890625, -0.016754150390625, 0.007083892822265625, -0.0305633544921875, -0.0233306884765625, 0.08966064453125, -0.047882080078125, -0.0177764892578125, -0.038330078125, 0.03814697265625, -0.0841064453125, 0.032501220703125, 0.002529144287109375, -0.0057220458984375, 0.014251708984375, -0.027923583984375, -0.05718994140625, -0.04840087890625, -0.01558685302734375, 0.02398681640625, -0.0360107421875, 0.0115203857421875, -0.02899169921875, 0.03253173828125, -0.010101318359375, 0.026275634765625, -0.002635955810546875, 0.01433563232421875, -0.01285552978515625, 0.045166015625, 0.017974853515625, -0.019439697265625, -0.01073455810546875, 0.030517578125, 0.0250091552734375, 0.0185089111328125, 0.020965576171875, -0.057769775390625, -0.04638671875, -0.063232421875, 0.0159912109375, 0.0250244140625, 0.0015659332275390625, 0.07037353515625, 0.06793212890625, 0.02362060546875, 0.05340576171875, -0.0059661865234375, 0.004791259765625, -0.0146636962890625, -0.019989013671875, -0.0308074951171875, 0.01093292236328125, 0.054779052734375, -0.037628173828125, 0.051544189453125, 0.003398895263671875, 0.0173187255859375, 0.015533447265625, -0.07794189453125, 0.028289794921875, 0.05194091796875, 0.0286865234375, 0.005992889404296875, 0.053314208984375, -0.0380859375, 0.0143585205078125, 0.0230712890625, -0.0213623046875, 0.04693603515625, 0.017578125, 0.0018014907836914062, -0.0198211669921875, 0.046142578125, 0.0020999908447265625, -0.007259368896484375, 0.009063720703125, -0.00940704345703125, 0.0192718505859375, 0.017913818359375, 0.065185546875, -0.04534912109375, 0.0157470703125, 0.03887939453125, -0.006954193115234375, 0.012298583984375, 0.0153045654296875, -0.00905609130859375, 0.01531219482421875, 0.01107025146484375, -0.036102294921875, -0.0105743408203125, 0.01244354248046875, 0.009185791015625, -0.0289459228515625, 0.01641845703125, -0.0272369384765625, 0.0038547515869140625, -0.040435791015625, -0.005825042724609375, 0.025421142578125, -0.0322265625, -0.01418304443359375, 0.039337158203125, -0.0053558349609375, 0.01160430908203125, -0.01422882080078125, 0.0484619140625, -0.00763702392578125, -0.024383544921875, 0.0150909423828125, 0.0160369873046875, 0.04119873046875, 0.06768798828125, 0.012359619140625, -0.01763916015625, 0.032440185546875, 0.01568603515625, 0.027252197265625, -0.01042938232421875, 0.03131103515625, 0.00974273681640625, -0.0682373046875, 0.01242828369140625, -0.019317626953125, 0.0116729736328125, -0.0086517333984375, 0.006072998046875, 0.04815673828125, 0.0030422210693359375, -0.036041259765625, 0.050048828125, 0.0209808349609375, -0.03009033203125, 0.01520538330078125, 0.0229339599609375, -0.08074951171875, -0.05743408203125, 0.01763916015625, -0.06317138671875, 0.0003604888916015625, 0.0206146240234375, -0.05059814453125, 0.0994873046875, 0.01387786865234375, 0.038177490234375, 0.00988006591796875, 0.03424072265625, -0.0111541748046875, 0.0292205810546875, -0.032989501953125, 0.040130615234375, -0.043731689453125, 0.048248291015625, -0.0802001953125, 0.0007920265197753906, -0.01244354248046875, 0.040130615234375, 0.004695892333984375, -0.0175018310546875, -0.01016998291015625, -0.007213592529296875, 0.03924560546875, 0.0567626953125, 0.02130126953125, 0.004604339599609375, 0.007678985595703125, -0.0187530517578125, 0.023345947265625, -0.00499725341796875, 0.0172576904296875, 0.01062774658203125, -0.0087127685546875, 0.04656982421875, 0.0217132568359375, 0.04486083984375, 0.002414703369140625, 0.0177459716796875, -0.042816162109375, -0.003627777099609375, 0.043426513671875, -0.0221405029296875, 0.00042510032653808594, 0.052459716796875, 0.017913818359375, 0.006099700927734375, -0.031280517578125, -0.01079559326171875, 0.0185089111328125, -0.0108642578125, 0.038299560546875, -0.01184844970703125, 0.0010700225830078125, 0.00543975830078125, 0.01038360595703125, 0.01313018798828125, 0.0391845703125, -0.0229034423828125, 0.007808685302734375, -0.004627227783203125, 0.0078887939453125, -0.031982421875, 0.0361328125, 0.01142120361328125, -0.00963592529296875, -0.033172607421875, -0.04217529296875, 0.009735107421875, -0.026214599609375, -0.0012722015380859375, -0.0251922607421875, -0.0303955078125, -0.07598876953125, -0.054107666015625, -0.0218353271484375, 0.0030803680419921875, 0.05615234375, 0.032806396484375, 0.033599853515625, 0.0418701171875, -0.0833740234375, -0.0430908203125, -0.0213165283203125, -0.0234527587890625, -0.015167236328125, 0.034759521484375, 0.043212890625, -0.0067596435546875, -0.014801025390625, -0.01270294189453125, -0.01366424560546875, 0.059783935546875, -0.0008611679077148438, 0.0026721954345703125, 0.01134490966796875, -0.014678955078125, -0.0126495361328125, 0.00008970499038696289, -0.0003924369812011719, 0.032989501953125, 0.045562744140625, 0.0114898681640625, -0.030548095703125, 0.00023293495178222656, -0.00859832763671875, -0.0418701171875, -0.025543212890625, -0.005535125732421875, 0.0207061767578125, 0.037109375, 0.0165557861328125, -0.001850128173828125, 0.039398193359375, 0.04339599609375, -0.0308074951171875, 0.06414794921875, -0.0031108856201171875, -0.036590576171875, 0.03167724609375, -0.0243988037109375, 0.1470947265625, -0.004608154296875, -0.10174560546875, -0.02001953125, -0.060333251953125, -0.032318115234375, 0.055206298828125, 0.053009033203125, -0.006275177001953125, 0.0163116455078125, -0.022064208984375, -0.035858154296875, 0.029937744140625, -0.0006127357482910156, -0.0078125, 0.009979248046875, -0.0069732666015625, -0.0243072509765625, -0.025115966796875, 0.0017595291137695312, -0.0030651092529296875, 0.00232696533203125, 0.01100921630859375, 0.035888671875, -0.00811004638671875, 0.0146484375, 0.0253448486328125, 0.03851318359375, -0.006076812744140625, -0.00121307373046875, 0.0458984375, 0.00943756103515625, 0.01995849609375, -0.0316162109375, 0.0304718017578125, 0.00620269775390625, 0.0172576904296875, -0.0360107421875, -0.012176513671875, 0.00225830078125, 0.007549285888671875, 0.031951904296875, 0.0292205810546875, -0.0283966064453125, -0.0287933349609375, -0.04205322265625, -0.0152130126953125, 0.0286407470703125, -0.00010895729064941406, -0.0430908203125, 0.01201629638671875, 0.025848388671875, 0.007598876953125, 0.006824493408203125, 0.0214080810546875, 0.01490020751953125, 0.04345703125, -0.020843505859375, -0.0307159423828125, 0.0084075927734375, 0.0009074211120605469, -0.026275634765625, 0.027923583984375, 0.00372314453125, -0.0026092529296875, -0.006622314453125, 0.0294647216796875, 0.014801025390625, 0.023468017578125, -0.045989990234375, -0.01126861572265625, 0.02752685546875, 0.00799560546875, 0.007061004638671875, -0.0203704833984375, -0.006206512451171875, -0.02508544921875, -0.01117706298828125, 0.020538330078125, -0.005401611328125, 0.00835418701171875, -0.01593017578125, 0.01265716552734375, 0.032257080078125, 0.0287017822265625, -0.08721923828125, 0.0582275390625, -0.0163421630859375, 0.00567626953125, -0.0018558502197265625, 0.0009870529174804688, -0.0146026611328125, 0.01319122314453125, -0.01389312744140625, -0.0506591796875, -0.0301666259765625, 0.039825439453125, -0.021148681640625, 0.0288238525390625, 0.03839111328125, -0.029144287109375, -0.02728271484375, 0.0152587890625, 0.03607177734375, 0.06317138671875, 0.03143310546875, -0.00827789306640625, 0.0206298828125, -0.024932861328125, -0.039398193359375, -0.033843994140625, 0.007511138916015625, -0.05426025390625, -0.0292510986328125, -0.01258087158203125, -0.01971435546875, -0.032501220703125, -0.0721435546875, -0.12939453125, 0.059112548828125, -0.0266876220703125, -0.04437255859375, -0.005115509033203125, 0.01374053955078125, 0.007381439208984375, 0.018951416015625, 0.0048980712890625, -0.035614013671875, -0.02874755859375, -0.00730133056640625, 0.005138397216796875, 0.01250457763671875, 0.01393890380859375, 0.007904052734375, -0.0195159912109375, 0.005428314208984375, 0.002605438232421875, -0.0261077880859375, -0.0065765380859375, -0.01033782958984375, 0.040740966796875, 0.05584716796875, 0.0159759521484375, -0.032958984375, 0.0309600830078125, -0.06671142578125, 0.01392364501953125, 0.002132415771484375, -0.07086181640625, -0.01186370849609375, 0.05963134765625, 0.057098388671875, 0.034576416015625, -0.0224456787109375, -0.003032684326171875, -0.0250701904296875, -0.00994110107421875, -0.0108184814453125, 0.016510009765625, -0.05657958984375, 0.003086090087890625, 0.0247650146484375, -0.019775390625, -0.024810791015625, 0.005603790283203125, -0.06524658203125, -0.01418304443359375, -0.054290771484375, -0.019500732421875, -0.085693359375, 0.04791259765625, 0.09063720703125, -0.055023193359375, 0.006778717041015625, 0.004100799560546875, -0.01305389404296875, 0.067626953125, 0.008056640625, 0.01464080810546875, -0.0190887451171875, -0.017425537109375, 0.01139068603515625, 0.0092315673828125, 0.0220794677734375, -0.00853729248046875, -0.0305938720703125, -0.0007686614990234375, 0.0167999267578125, -0.026397705078125, 0.0245513916015625, 0.0072174072265625, 0.00856781005859375, -0.006320953369140625, 0.00513458251953125, -0.022552490234375, 0.0279541015625, -0.016204833984375, 0.01331329345703125, 0.017822265625, 0.0065155029296875, 0.044464111328125, -0.00891876220703125, 0.024383544921875, -0.0026607513427734375, -0.01226043701171875, 0.003482818603515625, 0.0018968582153320312, 0.009033203125, -0.0384521484375, -0.0018157958984375 ]
a51e3fce20aadec22590b5822950b280f2494dc0
Wordpress Stackexchange Q: Is there any difference between the_title() and echo get_the_title()? Just a small question. Is there any difference in using <?php the_title() ?> or <?= get_the_title() ?> Yeah, I know somebody can consider using short echo tag a bad practice, I just want to know is there any difference in result of calling these two functions. A: the_title() will echo the title for you and can only be used within 'the loop' https://codex.wordpress.org/Function_Reference/the_title get_the_title() without the echo or <?= will simply return the title. So you could store it in a variable and manipulate it if you needed to https://codex.wordpress.org/Function_Reference/get_the_title
Q: Is there any difference between the_title() and echo get_the_title()? Just a small question. Is there any difference in using <?php the_title() ?> or <?= get_the_title() ?> Yeah, I know somebody can consider using short echo tag a bad practice, I just want to know is there any difference in result of calling these two functions. A: the_title() will echo the title for you and can only be used within 'the loop' https://codex.wordpress.org/Function_Reference/the_title get_the_title() without the echo or <?= will simply return the title. So you could store it in a variable and manipulate it if you needed to https://codex.wordpress.org/Function_Reference/get_the_title A: The two are not 100% identical, though they are close. * *the_title() will echo content by default but the third parameter can be used to change that default. *the_title() prepends the optional $before and appends the optional $after arguments. If theme or plugin code uses these arguments the output of the two functions will be different. If you take a look at the source, the differences are easy to spot: 32 /** 33 * Display or retrieve the current post title with optional content. 34 * 35 * @since 0.71 36 * 37 * @param string $before Optional. Content to prepend to the title. 38 * @param string $after Optional. Content to append to the title. 39 * @param bool $echo Optional, default to true.Whether to display or return. 40 * @return string|void String if $echo parameter is false. 41 */ 42 function the_title( $before = '', $after = '', $echo = true ) { 43 $title = get_the_title(); 44 45 if ( strlen($title) == 0 ) 46 return; 47 48 $title = $before . $title . $after; 49 50 if ( $echo ) 51 echo $title; 52 else 53 return $title; 54 } You can see that the_title() pulls data using get_the_title() on its first line, so at that point the two are the same. But the_title() then does additional manipulation, potentially. The same is true of some of the other "echo"/"not echo" functions such as the_content() and get_the_content(). While close, they are not exactly the same.
wordpress
{ "language": "en", "length": 349, "provenance": "stackexchange_00019.jsonl.gz:461576", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212012" }
[ 0.0112457275390625, -0.014739990234375, 0.0287017822265625, 0.002529144287109375, -0.02325439453125, -0.0091094970703125, 0.05712890625, -0.029510498046875, -0.004764556884765625, 0.026275634765625, -0.0102691650390625, 0.0043792724609375, -0.023040771484375, -0.0267181396484375, 0.01189422607421875, -0.054656982421875, 0.047698974609375, -0.04595947265625, 0.033966064453125, -0.0018396377563476562, 0.0015811920166015625, 0.0469970703125, 0.035980224609375, 0.0762939453125, 0.033416748046875, -0.10821533203125, 0.08203125, -0.001312255859375, 0.026885986328125, -0.0181732177734375, 0.033447265625, 0.0111541748046875, 0.02593994140625, 0.033447265625, -0.048492431640625, 0.04095458984375, 0.00726318359375, -0.00836181640625, 0.005558013916015625, 0.0156097412109375, -0.0024261474609375, 0.01279449462890625, -0.022247314453125, -0.013336181640625, -0.0305328369140625, -0.004802703857421875, -0.0103912353515625, -0.0199127197265625, -0.0295562744140625, 0.0019245147705078125, 0.05474853515625, -0.018096923828125, 0.052947998046875, 0.008392333984375, 0.0123748779296875, 0.0224761962890625, -0.00168609619140625, 0.00945281982421875, 0.035491943359375, -0.07379150390625, -0.04522705078125, -0.01058197021484375, 0.054351806640625, 0.0228118896484375, 0.005603790283203125, 0.053985595703125, 0.038238525390625, -0.001445770263671875, -0.0079803466796875, -0.0063018798828125, -0.01465606689453125, -0.045440673828125, 0.005046844482421875, -0.04046630859375, -0.050079345703125, 0.01053619384765625, -0.013916015625, -0.049468994140625, 0.0189056396484375, -0.038177490234375, 0.007404327392578125, -0.0377197265625, -0.05084228515625, 0.016326904296875, 0.0250244140625, 0.04180908203125, -0.002178192138671875, -0.01529693603515625, -0.01129150390625, -0.0218963623046875, -0.0192718505859375, -0.034454345703125, -0.015655517578125, 0.0180511474609375, 0.01102447509765625, -0.03668212890625, 0.01318359375, 0.0428466796875, -0.01776123046875, 0.005889892578125, -0.0284881591796875, -0.00250244140625, -0.035614013671875, -0.01137542724609375, 0.00376129150390625, 0.0026416778564453125, -0.020599365234375, -0.0234527587890625, 0.02630615234375, 0.032928466796875, -0.0186767578125, -0.00783538818359375, -0.01560211181640625, -0.0188751220703125, 0.01030731201171875, 0.0367431640625, -0.053009033203125, 0.04656982421875, 0.00203704833984375, 0.06317138671875, 0.0169830322265625, -0.0019235610961914062, 0.05865478515625, 0.00479888916015625, -0.0152587890625, 0.0008120536804199219, -0.02557373046875, -0.05560302734375, -0.02313232421875, 0.034637451171875, -0.0072784423828125, -0.01004791259765625, 0.0038604736328125, 0.034942626953125, 0.001739501953125, -0.03436279296875, -0.07745361328125, 0.0011415481567382812, 0.01290130615234375, -0.0170745849609375, -0.032440185546875, -0.0056304931640625, 0.048492431640625, -0.0266265869140625, -0.02545166015625, 0.0015354156494140625, 0.0035552978515625, 0.02838134765625, -0.023834228515625, -0.051361083984375, 0.0215911865234375, -0.0196533203125, -0.01593017578125, 0.0056610107421875, 0.038787841796875, -0.0024585723876953125, -0.023345947265625, -0.0184783935546875, 0.06634521484375, -0.0007023811340332031, 0.0245361328125, -0.01003265380859375, -0.0318603515625, 0.01311492919921875, -0.039794921875, 0.00757598876953125, 0.005313873291015625, -0.01055145263671875, 0.0088958740234375, -0.00647735595703125, 0.036712646484375, 0.01407623291015625, -0.0301666259765625, -0.0162353515625, -0.00005739927291870117, -0.017822265625, -0.0222930908203125, -0.005466461181640625, 0.034942626953125, -0.0214691162109375, -0.061767578125, -0.050445556640625, 0.005687713623046875, -0.023956298828125, -0.040985107421875, -0.0136566162109375, 0.0121307373046875, 0.0179901123046875, 0.046142578125, 0.02398681640625, 0.0231475830078125, 0.0018758773803710938, -0.0276641845703125, 0.0142822265625, 0.0126953125, -0.0211639404296875, -0.008514404296875, -0.02752685546875, 0.0016775131225585938, -0.0080413818359375, 0.0207672119140625, -0.02386474609375, 0.01407623291015625, 0.0263214111328125, -0.020355224609375, -0.0148468017578125, -0.00167083740234375, 0.0120697021484375, -0.029205322265625, 0.01416778564453125, 0.009124755859375, -0.015533447265625, -0.004962921142578125, -0.0270538330078125, -0.01255035400390625, -0.0074462890625, -0.0552978515625, -0.04595947265625, 0.00202178955078125, -0.004909515380859375, 0.019317626953125, 0.04364013671875, -0.01102447509765625, 0.00838470458984375, 0.0977783203125, -0.0190277099609375, 0.0090484619140625, -0.0306243896484375, 0.0960693359375, 0.0025997161865234375, -0.02978515625, 0.0019626617431640625, 0.024627685546875, 0.036407470703125, -0.022735595703125, -0.0167388916015625, -0.01525115966796875, -0.074462890625, 0.01763916015625, 0.072509765625, 0.02947998046875, 0.0262298583984375, -0.01517486572265625, -0.0034027099609375, 0.03350830078125, -0.050506591796875, 0.00542449951171875, -0.0232086181640625, -0.000926971435546875, 0.016998291015625, 0.043853759765625, 0.0017671585083007812, 0.0218963623046875, 0.0006718635559082031, -0.02813720703125, 0.041900634765625, -0.0103607177734375, 0.0048065185546875, -0.0316162109375, -0.002681732177734375, -0.011138916015625, -0.06390380859375, 0.0038700103759765625, -0.0362548828125, -0.0138397216796875, 0.00971221923828125, -0.0016202926635742188, 0.01751708984375, -0.01357269287109375, -0.007640838623046875, 0.0244598388671875, 0.043212890625, 0.01033782958984375, 0.054595947265625, -0.002872467041015625, 0.01076507568359375, -0.0177459716796875, -0.015960693359375, -0.01152801513671875, 0.0045318603515625, -0.0252838134765625, -0.003070831298828125, -0.034423828125, -0.0181732177734375, -0.0017499923706054688, -0.032135009765625, 0.01001739501953125, 0.02679443359375, 0.01380157470703125, -0.001461029052734375, 0.02435302734375, 0.032318115234375, -0.024383544921875, 0.031524658203125, 0.005084991455078125, -0.0001685619354248047, 0.049774169921875, -0.019134521484375, 0.0377197265625, -0.0232086181640625, 0.04638671875, 0.04656982421875, -0.0176239013671875, -0.006805419921875, 0.022491455078125, -0.0290985107421875, 0.0308380126953125, -0.0126953125, -0.02557373046875, 0.038909912109375, -0.11968994140625, -0.0035877227783203125, 0.01409149169921875, 0.061859130859375, 0.01357269287109375, -0.03558349609375, 0.010650634765625, 0.042694091796875, -0.07830810546875, -0.07080078125, 0.043975830078125, -0.0693359375, 0.0025348663330078125, -0.01435089111328125, -0.0258026123046875, -0.01433563232421875, 0.0299224853515625, -0.00629425048828125, 0.06207275390625, -0.0116424560546875, -0.0306396484375, 0.0040740966796875, -0.05975341796875, -0.0277862548828125, 0.00235748291015625, 0.0131988525390625, 0.0024623870849609375, 0.00010031461715698242, 0.00799560546875, -0.004177093505859375, 0.01132965087890625, 0.040313720703125, 0.028045654296875, 0.00952911376953125, 0.034759521484375, -0.0028133392333984375, -0.012451171875, 0.02716064453125, -0.05010986328125, 0.00975799560546875, 0.0005269050598144531, -0.05584716796875, 0.0169219970703125, 0.035797119140625, 0.049560546875, 0.06158447265625, -0.0309906005859375, 0.06365966796875, 0.06494140625, -0.0185089111328125, -0.055145263671875, -0.00814056396484375, -0.06768798828125, 0.06689453125, 0.0687255859375, -0.007259368896484375, -0.00287628173828125, 0.026519775390625, -0.0212249755859375, 0.020355224609375, -0.045562744140625, -0.0160980224609375, 0.0440673828125, 0.0060272216796875, 0.016876220703125, 0.0440673828125, -0.0180816650390625, -0.01461029052734375, 0.0012884140014648438, -0.019927978515625, 0.0160064697265625, 0.00991058349609375, -0.02960205078125, -0.0218963623046875, -0.008209228515625, 0.038116455078125, -0.05584716796875, 0.00457763671875, -0.0113983154296875, -0.020599365234375, 0.0093536376953125, 0.06329345703125, -0.01107025146484375, -0.0173187255859375, 0.007495880126953125, 0.033050537109375, -0.051513671875, -0.03546142578125, -0.0447998046875, -0.005504608154296875, -0.06622314453125, 0.006198883056640625, -0.0298309326171875, 0.0006499290466308594, -0.00439453125, 0.09930419921875, -0.01111602783203125, -0.02288818359375, -0.0004284381866455078, -0.034515380859375, -0.0011968612670898438, 0.0123291015625, -0.0284271240234375, 0.00641632080078125, -0.0009407997131347656, -0.0478515625, -0.039703369140625, -0.0094146728515625, 0.0257720947265625, 0.01093292236328125, -0.023468017578125, 0.01035308837890625, -0.009063720703125, 0.0225372314453125, 0.016448974609375, 0.021881103515625, 0.018829345703125, -0.0195159912109375, 0.0263519287109375, 0.0281829833984375, 0.027496337890625, -0.0201568603515625, -0.0028705596923828125, -0.0330810546875, -0.055877685546875, 0.0274658203125, -0.0164794921875, 0.0782470703125, -0.0352783203125, -0.0173187255859375, -0.06890869140625, -0.00955963134765625, 0.037567138671875, -0.0232086181640625, 0.024749755859375, 0.001003265380859375, 0.0232391357421875, -0.04638671875, 0.053253173828125, 0.0672607421875, -0.031494140625, -0.021240234375, 0.05511474609375, 0.023529052734375, -0.07080078125, 0.0016937255859375, -0.037109375, 0.04052734375, -0.06573486328125, 0.042724609375, 0.0158538818359375, -0.054656982421875, 0.10516357421875, -0.0218658447265625, 0.01279449462890625, 0.016876220703125, 0.03125, 0.00568389892578125, -0.00554656982421875, 0.00928497314453125, 0.00229644775390625, -0.022674560546875, 0.003711700439453125, -0.004405975341796875, -0.01137542724609375, 0.0249481201171875, 0.004985809326171875, -0.017059326171875, 0.0450439453125, 0.0137176513671875, -0.02056884765625, 0.0033016204833984375, 0.0203094482421875, 0.0160675048828125, 0.0084228515625, 0.01502227783203125, -0.0234527587890625, 0.0183258056640625, 0.0109710693359375, -0.0208587646484375, 0.004177093505859375, 0.0023345947265625, 0.035980224609375, -0.023712158203125, 0.00832366943359375, -0.032562255859375, -0.0104217529296875, 0.0200958251953125, 0.01197052001953125, -0.01552581787109375, -0.0075531005859375, -0.0171661376953125, 0.0540771484375, 0.007843017578125, 0.024749755859375, 0.0225067138671875, 0.038818359375, 0.02374267578125, 0.01274871826171875, 0.01113128662109375, 0.04498291015625, -0.005096435546875, 0.0089111328125, 0.023345947265625, -0.01430511474609375, 0.00505828857421875, 0.06695556640625, -0.030303955078125, 0.050628662109375, -0.0230712890625, 0.0308837890625, 0.01873779296875, 0.0249481201171875, 0.0007081031799316406, 0.0022373199462890625, 0.003429412841796875, 0.012664794921875, -0.00675201416015625, -0.0087432861328125, 0.0010309219360351562, 0.0230865478515625, 0.021148681640625, -0.00653839111328125, -0.016204833984375, 0.029266357421875, -0.0036525726318359375, -0.00975799560546875, 0.0276947021484375, 0.0167999267578125, -0.0081024169921875, -0.034912109375, -0.0025882720947265625, 0.04742431640625, 0.014801025390625, 0.0005793571472167969, 0.0031032562255859375, 0.00742340087890625, 0.038299560546875, -0.002063751220703125, -0.005054473876953125, 0.0197601318359375, 0.0165863037109375, 0.00522613525390625, -0.0217742919921875, 0.01140594482421875, 0.007755279541015625, 0.020843505859375, -0.031982421875, -0.0209808349609375, 0.041656494140625, 0.01885986328125, 0.06353759765625, -0.08258056640625, -0.01103973388671875, -0.044342041015625, -0.02685546875, 0.07562255859375, 0.0450439453125, -0.04559326171875, 0.030609130859375, -0.05438232421875, 0.007686614990234375, -0.037445068359375, -0.0667724609375, -0.03564453125, -0.031341552734375, -0.019866943359375, 0.0110931396484375, -0.0050201416015625, 0.04791259765625, -0.0161590576171875, 0.04473876953125, -0.01268768310546875, 0.06341552734375, -0.0243377685546875, 0.0063934326171875, 0.0899658203125, 0.017120361328125, 0.00553131103515625, -0.009979248046875, -0.00786590576171875, -0.0208740234375, 0.018157958984375, -0.039947509765625, -0.042388916015625, -0.020233154296875, 0.0230560302734375, -0.010284423828125, -0.0174713134765625, -0.0166473388671875, -0.01332855224609375, 0.0234222412109375, 0.005641937255859375, -0.011322021484375, -0.0121917724609375, 0.052734375, -0.05279541015625, 0.0228118896484375, -0.029449462890625, 0.0211181640625, 0.00763702392578125, -0.01629638671875, 0.04486083984375, -0.017181396484375, 0.012298583984375, 0.0433349609375, -0.0178375244140625, 0.0467529296875, 0.0736083984375, -0.005023956298828125, 0.031097412109375, 0.01505279541015625, -0.01485443115234375, 0.0140228271484375, 0.002109527587890625, 0.03271484375, -0.01137542724609375, 0.06512451171875, 0.005031585693359375, -0.0193939208984375, 0.044403076171875, -0.042572021484375, 0.006778717041015625, 0.0297393798828125, 0.05419921875, -0.038238525390625, -0.01023101806640625, 0.0374755859375, 0.006885528564453125, -0.0278778076171875, 0.01427459716796875, -0.0151519775390625, -0.061279296875, 0.06298828125, -0.019744873046875, 0.01029205322265625, 0.0284423828125, -0.026397705078125, 0.0020751953125, -0.046478271484375, 0.04632568359375, 0.004276275634765625, -0.0653076171875, 0.003223419189453125, 0.01971435546875, -0.01898193359375, -0.015838623046875, -0.00838470458984375, 0.01090240478515625, -0.043914794921875, -0.054412841796875, 0.01654052734375, 0.0108184814453125, -0.0174560546875, -0.001277923583984375, 0.039154052734375, 0.0042572021484375, 0.07440185546875, -0.0112762451171875, 0.018310546875, 0.0484619140625, -0.035614013671875, -0.0284423828125, -0.006336212158203125, 0.003238677978515625, 0.027618408203125, -0.0190582275390625, 0.01165008544921875, -0.0360107421875, 0.0120697021484375, 0.0103607177734375, -0.021942138671875, 0.0328369140625, -0.00841522216796875, -0.03741455078125, 0.004241943359375, -0.038360595703125, 0.0042266845703125, -0.011138916015625, 0.05584716796875, -0.034210205078125, 0.0300750732421875, 0.0092926025390625, 0.004261016845703125, -0.028472900390625, 0.005462646484375, -0.0711669921875, 0.0743408203125, 0.007694244384765625, 0.02520751953125, 0.004886627197265625, 0.00791168212890625, -0.0279083251953125, -0.03228759765625, -0.0280914306640625, 0.041900634765625, -0.02008056640625, 0.0308685302734375, -0.03460693359375, -0.0143280029296875, 0.01213836669921875, 0.0156097412109375, 0.020111083984375, -0.007476806640625, 0.01183319091796875, -0.0028228759765625, 0.0753173828125, 0.062744140625, 0.02056884765625, -0.01320648193359375, 0.0377197265625, 0.048431396484375, 0.0513916015625, -0.03179931640625, 0.0135650634765625, -0.0004792213439941406, 0.0002663135528564453, 0.06231689453125, 0.0234527587890625, -0.01329803466796875, 0.0245208740234375, -0.0163421630859375, -0.04254150390625, 0.0031871795654296875, 0.0203704833984375, 0.00582122802734375, -0.004383087158203125, 0.052398681640625, 0.0128326416015625, -0.0304107666015625, 0.00766754150390625, -0.0482177734375, 0.048004150390625, -0.01641845703125, 0.0192108154296875, 0.043853759765625, 0.0037784576416015625, 0.04901123046875, 0.008941650390625, 0.01227569580078125, -0.004138946533203125, 0.0257568359375, 0.022735595703125, 0.01122283935546875, -0.005992889404296875, -0.0625, -0.016937255859375, 0.04901123046875, 0.055816650390625, -0.03863525390625, 0.020233154296875, 0.0232696533203125, -0.004169464111328125, -0.0092620849609375, -0.06646728515625, -0.0179595947265625, 0.0201263427734375, 0.0068511962890625, -0.01134490966796875, -0.002567291259765625, 0.0728759765625, -0.0239410400390625, 0.0261383056640625, 0.0275115966796875, -0.011932373046875, 0.0146636962890625, -0.037261962890625, 0.035430908203125, 0.0307464599609375, 0.05859375, -0.0015048980712890625, 0.0645751953125, -0.04998779296875, -0.0275726318359375, 0.012786865234375, 0.039764404296875, -0.02557373046875, 0.00128936767578125, -0.049713134765625, -0.064453125, 0.01117706298828125, 0.038787841796875, 0.09466552734375, 0.018707275390625, 0.07061767578125, 0.0219879150390625, -0.00974273681640625, 0.03216552734375, 0.0000959634780883789, -0.0012884140014648438, -0.003978729248046875, 0.013763427734375, 0.0019779205322265625, 0.034759521484375, -0.0228424072265625, 0.0034809112548828125, 0.0264892578125, 0.0293121337890625, -0.038482666015625, 0.06341552734375, -0.014678955078125, -0.02850341796875, 0.00862884521484375, 0.0027446746826171875, 0.06402587890625, -0.0252227783203125, -0.01010894775390625, -0.0024089813232421875, 0.01465606689453125, -0.0191192626953125, -0.008087158203125, 0.024261474609375, -0.009765625, 0.0277862548828125, -0.02276611328125, 0.00847625732421875, -0.003589630126953125, 0.01520538330078125, -0.00627899169921875, 0.005039215087890625, 0.021331787109375, 0.0008931159973144531, -0.0460205078125, -0.01175689697265625, -0.03466796875, 0.014739990234375, 0.043609619140625, 0.0043182373046875, 0.017333984375, 0.044586181640625, -0.0174102783203125, 0.0139923095703125, -0.0574951171875, -0.01161956787109375, 0.03656005859375, -0.038665771484375, -0.01363372802734375, 0.00437164306640625, -0.05865478515625, 0.02392578125, 0.043182373046875, 0.012420654296875, 0.052490234375, -0.032379150390625, 0.010162353515625, -0.031585693359375, 0.0206451416015625, -0.0155029296875, -0.006717681884765625, 0.0157012939453125, 0.00835418701171875, 0.0185699462890625, 0.01250457763671875, -0.01465606689453125, -0.039337158203125, 0.00653076171875, -0.050018310546875, 0.02294921875, 0.0040130615234375, 0.006923675537109375, 0.032745361328125, 0.0009531974792480469, -0.034820556640625, -0.015899658203125, -0.0025768280029296875, 0.019378662109375, 0.024932861328125, 0.00612640380859375, 0.01270294189453125, 0.007457733154296875, -0.0732421875, -0.04705810546875, 0.0125579833984375, -0.01617431640625, 0.0138092041015625, -0.041229248046875, 0.00754547119140625, -0.029144287109375, -0.032501220703125, -0.015655517578125, -0.0482177734375, -0.005252838134765625, 0.01885986328125, -0.005725860595703125, 0.0060882568359375, 0.0137786865234375, -0.0247650146484375, -0.01134490966796875, -0.018157958984375, 0.0367431640625, -0.0204315185546875, -0.0258026123046875, -0.04449462890625, -0.027557373046875, -0.0172576904296875, 0.011138916015625, 0.025177001953125, -0.0450439453125, -0.00923919677734375, -0.055938720703125, -0.0302886962890625, -0.0487060546875, 0.0217437744140625, 0.045928955078125, -0.0382080078125, -0.03656005859375, 0.033905029296875, 0.027313232421875, 0.0748291015625, 0.0026302337646484375, -0.041534423828125, -0.020965576171875, 0.0170135498046875, 0.002079010009765625, -0.01800537109375, 0.026611328125, -0.0290069580078125, -0.0295562744140625, 0.003307342529296875, -0.01000213623046875, -0.00360107421875, -0.02886962890625, -0.0297088623046875, 0.05316162109375, 0.00905609130859375, -0.01016998291015625, -0.015106201171875, -0.005115509033203125, -0.00850677490234375, 0.0245208740234375, 0.00775146484375, -0.019287109375, -0.0225830078125, 0.0034275054931640625, 0.016937255859375, 0.0379638671875, 0.010528564453125, 0.00621795654296875, -0.031402587890625, 0.0126800537109375, 0.0006051063537597656, 0.0012426376342773438, -0.00960540771484375, -0.0208740234375, 0.0019369125366210938, -0.01113128662109375, -0.04669189453125, 0.006290435791015625, -0.0020084381103515625, 0.044281005859375, -0.04327392578125, -0.01476287841796875, 0.0134124755859375, 0.006587982177734375, 0.0220947265625, 0.06475830078125, -0.0010137557983398438, -0.051177978515625, -0.00909423828125, 0.034271240234375, -0.028778076171875, -0.00568389892578125, 0.041656494140625, -0.07794189453125, -0.04595947265625, -0.00666046142578125, -0.042999267578125, -0.0115814208984375, -0.0173492431640625, -0.059967041015625, -0.0084991455078125, -0.06219482421875, -0.0036106109619140625, -0.01116180419921875, -0.04669189453125, 0.0660400390625, -0.048492431640625, -0.023529052734375, 0.020660400390625, 0.0291595458984375, 0.0079193115234375, -0.00029754638671875, 0.01751708984375, 0.0458984375, -0.003734588623046875, 0.0096435546875, 0.017364501953125, 0.0189666748046875, -0.0089569091796875, -0.01068115234375, -0.0031490325927734375, 0.03009033203125, -0.0027103424072265625, 0.0224151611328125, -0.01290130615234375, 0.070556640625, 0.02685546875, 0.033447265625, 0.0098876953125, 0.0450439453125, -0.0028209686279296875, 0.05517578125, -0.01300811767578125, -0.037261962890625, -0.017486572265625, -0.012176513671875, 0.0023860931396484375, 0.0193328857421875, 0.033294677734375, -0.031005859375, 0.028167724609375, -0.019561767578125, 0.0253448486328125, 0.013580322265625 ]
fcf6d6632e7efc251d1796d1558bf794c9d78ab7
Wordpress Stackexchange Q: Call a custom field in an audio shortcode? I'm attempting to call a custom field in an audio shortcode. The field I'm calling, enclosure, defines MP3 files that are associated with my respective posts. I'm using the PHP template editor in Wordpress. Here's what I have. <?php echo do_shortcode('[audio src="enclosure"]');?> I would like to insert the following code in place of the word "enclosure." <?php echo get_post_meta($post->ID, 'enclosure', true); ?> I either get the code displayed as text or nothing at all when I paste these snippets together. What am I missing? A: Try using PHP's string concatenation: <?php echo do_shortcode('[audio src="'. get_post_meta($post->ID, 'enclosure', true) .'"]');?> or: <?php $enclosure = get_post_meta($post->ID, 'enclosure', true); echo do_shortcode('[audio src="'. $enclosure . '"]'; ?>
Q: Call a custom field in an audio shortcode? I'm attempting to call a custom field in an audio shortcode. The field I'm calling, enclosure, defines MP3 files that are associated with my respective posts. I'm using the PHP template editor in Wordpress. Here's what I have. <?php echo do_shortcode('[audio src="enclosure"]');?> I would like to insert the following code in place of the word "enclosure." <?php echo get_post_meta($post->ID, 'enclosure', true); ?> I either get the code displayed as text or nothing at all when I paste these snippets together. What am I missing? A: Try using PHP's string concatenation: <?php echo do_shortcode('[audio src="'. get_post_meta($post->ID, 'enclosure', true) .'"]');?> or: <?php $enclosure = get_post_meta($post->ID, 'enclosure', true); echo do_shortcode('[audio src="'. $enclosure . '"]'; ?>
wordpress
{ "language": "en", "length": 121, "provenance": "stackexchange_00019.jsonl.gz:461597", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212077" }
[ 0.01503753662109375, -0.02313232421875, -0.01314544677734375, -0.050537109375, -0.0236663818359375, 0.00677490234375, -0.006923675537109375, -0.004150390625, -0.022125244140625, 0.01467132568359375, -0.00310516357421875, 0.0185394287109375, -0.051483154296875, -0.0271453857421875, 0.0033702850341796875, -0.030181884765625, 0.0157623291015625, 0.0073394775390625, 0.03936767578125, -0.0149688720703125, 0.004535675048828125, -0.01099395751953125, 0.005504608154296875, -0.051513671875, -0.003192901611328125, 0.00772857666015625, 0.094970703125, -0.02105712890625, 0.00868988037109375, -0.0146484375, 0.0205535888671875, -0.027252197265625, 0.03704833984375, 0.04840087890625, -0.0755615234375, 0.08123779296875, -0.00803375244140625, 0.030242919921875, -0.00909423828125, 0.044189453125, 0.0419921875, -0.0229339599609375, -0.007701873779296875, 0.007404327392578125, -0.0207977294921875, -0.03472900390625, 0.04193115234375, -0.0218963623046875, -0.004619598388671875, -0.02734375, 0.0260009765625, 0.02728271484375, 0.038909912109375, -0.032958984375, -0.0116119384765625, 0.0230255126953125, -0.045867919921875, -0.01404571533203125, 0.0059051513671875, 0.0233306884765625, 0.032623291015625, 0.006683349609375, 0.004974365234375, 0.0139312744140625, -0.0038433074951171875, 0.006603240966796875, -0.01232147216796875, 0.0252227783203125, -0.026763916015625, -0.037109375, 0.003215789794921875, -0.0330810546875, -0.0141754150390625, -0.042327880859375, 0.007904052734375, 0.01297760009765625, 0.00567626953125, -0.0189361572265625, -0.0121002197265625, 0.00952911376953125, 0.036590576171875, 0.03289794921875, 0.01227569580078125, 0.01142120361328125, -0.0144805908203125, 0.01071929931640625, -0.0166168212890625, -0.0278167724609375, 0.03619384765625, -0.0192413330078125, 0.0002593994140625, 0.01165771484375, 0.029449462890625, 0.0273590087890625, -0.033782958984375, -0.01776123046875, 0.018035888671875, 0.050628662109375, 0.0165252685546875, 0.017059326171875, 0.0161590576171875, -0.04656982421875, 0.0438232421875, -0.049072265625, 0.01534271240234375, 0.017669677734375, -0.033721923828125, -0.04095458984375, 0.033538818359375, 0.040252685546875, -0.0058441162109375, -0.023712158203125, -0.0295867919921875, -0.029449462890625, -0.037139892578125, 0.01279449462890625, -0.052886962890625, -0.02691650390625, -0.0032520294189453125, -0.03924560546875, 0.0149383544921875, 0.01508331298828125, 0.041656494140625, -0.025634765625, -0.00948333740234375, -0.0141754150390625, -0.04351806640625, -0.03857421875, -0.007781982421875, 0.021820068359375, -0.02783203125, 0.0183868408203125, 0.0309295654296875, 0.00814056396484375, -0.009002685546875, -0.00688934326171875, 0.033050537109375, -0.005321502685546875, 0.0178985595703125, -0.00870513916015625, 0.007480621337890625, 0.0030384063720703125, 0.00794219970703125, -0.0056304931640625, -0.01080322265625, -0.0018072128295898438, 0.0179290771484375, 0.044830322265625, -0.030426025390625, -0.04217529296875, 0.016937255859375, 0.025543212890625, 0.00629425048828125, 0.027557373046875, 0.0325927734375, 0.0199432373046875, 0.0657958984375, -0.02313232421875, -0.0157470703125, -0.040771484375, 0.034820556640625, -0.024169921875, -0.01120758056640625, -0.0290069580078125, -0.04803466796875, 0.023193359375, -0.03875732421875, -0.0084228515625, 0.0221099853515625, 0.06610107421875, 0.0192108154296875, -0.031982421875, -0.059356689453125, 0.0196380615234375, 0.0008502006530761719, -0.0028705596923828125, 0.0013055801391601562, 0.01439666748046875, 0.043121337890625, -0.03515625, -0.0489501953125, -0.04779052734375, 0.0692138671875, -0.04791259765625, -0.026580810546875, 0.04400634765625, 0.003787994384765625, 0.029052734375, 0.0018968582153320312, 0.00513458251953125, 0.0263824462890625, 0.040618896484375, -0.01071929931640625, 0.01274871826171875, -0.0108184814453125, -0.035491943359375, -0.0134735107421875, -0.0093231201171875, -0.0109710693359375, 0.02862548828125, -0.033599853515625, -0.0170440673828125, 0.0180816650390625, 0.021942138671875, 0.0176849365234375, 0.0127105712890625, -0.01085662841796875, 0.0199432373046875, -0.06915283203125, -0.039398193359375, 0.03302001953125, -0.0400390625, -0.005542755126953125, -0.01256561279296875, -0.0001556873321533203, 0.01525115966796875, -0.04437255859375, 0.052581787109375, -0.015777587890625, 0.064697265625, -0.007610321044921875, -0.06561279296875, 0.0038299560546875, -0.00888824462890625, 0.00397491455078125, -0.0198516845703125, -0.00266265869140625, -0.01015472412109375, 0.015228271484375, 0.0196075439453125, -0.0138702392578125, -0.0109405517578125, 0.0435791015625, 0.004665374755859375, -0.03125, 0.0021114349365234375, 0.011077880859375, -0.0212860107421875, -0.00814056396484375, 0.04083251953125, 0.042236328125, 0.050140380859375, 0.0092010498046875, -0.0106353759765625, 0.06866455078125, -0.003971099853515625, 0.015869140625, -0.034942626953125, -0.0111541748046875, 0.0279998779296875, 0.007740020751953125, 0.024261474609375, -0.0038204193115234375, -0.03271484375, 0.0047149658203125, 0.043243408203125, -0.03228759765625, -0.049407958984375, 0.03216552734375, -0.026397705078125, 0.00992584228515625, -0.059326171875, -0.029327392578125, -0.025665283203125, 0.033172607421875, 0.0172271728515625, 0.026214599609375, 0.0166015625, -0.045684814453125, 0.035003662109375, 0.01508331298828125, -0.0218353271484375, 0.0011854171752929688, 0.01535797119140625, 0.01139068603515625, 0.00396728515625, -0.0296783447265625, -0.0057830810546875, 0.028167724609375, 0.005855560302734375, 0.00205230712890625, 0.038116455078125, -0.062744140625, -0.01163482666015625, -0.00661468505859375, -0.05743408203125, -0.0233154296875, 0.034881591796875, -0.032196044921875, -0.0198974609375, -0.01142120361328125, 0.062744140625, 0.0240936279296875, 0.0060882568359375, 0.0406494140625, 0.018798828125, -0.0269622802734375, -0.00942230224609375, 0.024383544921875, -0.0150604248046875, -0.01001739501953125, 0.0599365234375, 0.0119781494140625, -0.001735687255859375, -0.00782012939453125, 0.003429412841796875, -0.030853271484375, 0.0164947509765625, -0.006587982177734375, -0.021636962890625, -0.0209503173828125, 0.0271759033203125, 0.0252685546875, 0.039581298828125, -0.0182647705078125, -0.0275115966796875, -0.0148162841796875, 0.033843994140625, -0.044281005859375, -0.0189971923828125, 0.0533447265625, -0.0811767578125, 0.0182342529296875, -0.03900146484375, -0.047393798828125, -0.0237579345703125, 0.005908966064453125, 0.00783538818359375, 0.046722412109375, -0.01103973388671875, -0.031982421875, -0.01192474365234375, -0.068115234375, -0.037750244140625, 0.006984710693359375, -0.00266265869140625, 0.0159912109375, 0.0081939697265625, -0.0065765380859375, -0.0181121826171875, 0.031890869140625, 0.006305694580078125, 0.006988525390625, 0.01497650146484375, 0.043121337890625, -0.0777587890625, -0.00562286376953125, -0.0227813720703125, 0.004932403564453125, 0.0231170654296875, -0.00266265869140625, -0.003787994384765625, -0.0301513671875, 0.0240325927734375, 0.00151824951171875, 0.068359375, 0.026397705078125, 0.0032501220703125, 0.051544189453125, -0.029052734375, -0.0030574798583984375, 0.0202178955078125, 0.0030975341796875, -0.032958984375, -0.004016876220703125, -0.0257415771484375, -0.02154541015625, 0.031646728515625, -0.0230560302734375, -0.01251983642578125, 0.0286712646484375, -0.053253173828125, 0.0172119140625, -0.0024013519287109375, -0.0034465789794921875, 0.0017709732055664062, 0.01244354248046875, -0.033660888671875, -0.0224456787109375, -0.0120391845703125, 0.005519866943359375, 0.0007715225219726562, -0.01226806640625, -0.00439453125, -0.04705810546875, 0.047821044921875, -0.00228118896484375, 0.03411865234375, -0.0241851806640625, -0.03424072265625, -0.0160369873046875, 0.08123779296875, -0.06463623046875, -0.0015516281127929688, 0.01100921630859375, -0.00897979736328125, 0.0043182373046875, -0.0014362335205078125, -0.0755615234375, -0.0119171142578125, 0.0017185211181640625, 0.012725830078125, -0.0030460357666015625, 0.0036468505859375, -0.0169525146484375, 0.00777435302734375, 0.0070648193359375, -0.00928497314453125, 0.04827880859375, -0.0211334228515625, 0.022979736328125, 0.0172576904296875, 0.0250244140625, -0.040618896484375, -0.0267181396484375, -0.0052032470703125, -0.08843994140625, -0.0163421630859375, 0.0297393798828125, 0.0423583984375, -0.015655517578125, -0.036651611328125, -0.0418701171875, 0.05755615234375, 0.013519287109375, 0.02117919921875, 0.003429412841796875, 0.0159759521484375, -0.031585693359375, 0.01062774658203125, 0.0160980224609375, -0.0173797607421875, -0.001575469970703125, 0.03363037109375, 0.0246734619140625, 0.06732177734375, -0.0384521484375, -0.041473388671875, -0.0133819580078125, -0.049163818359375, -0.029571533203125, -0.0347900390625, -0.017333984375, -0.018890380859375, -0.026824951171875, 0.0008397102355957031, -0.0093841552734375, -0.0119171142578125, -0.00905609130859375, 0.0211639404296875, -0.035797119140625, 0.030059814453125, 0.028106689453125, 0.01413726806640625, -0.0203094482421875, -0.10498046875, 0.04095458984375, 0.04608154296875, -0.02996826171875, 0.04473876953125, 0.036651611328125, -0.021209716796875, 0.0333251953125, 0.0018091201782226562, 0.01401519775390625, -0.03778076171875, 0.04669189453125, -0.0041656494140625, -0.01036834716796875, 0.029815673828125, -0.0140838623046875, 0.01154327392578125, -0.0016336441040039062, -0.0278472900390625, 0.006534576416015625, -0.0130615234375, 0.0260162353515625, -0.01528167724609375, 0.026397705078125, -0.0207061767578125, -0.07305908203125, 0.01378631591796875, -0.0251312255859375, 0.01383209228515625, 0.0322265625, -0.0142974853515625, 0.05682373046875, 0.0036411285400390625, 0.0223388671875, 0.036376953125, 0.0184326171875, -0.0279998779296875, 0.042327880859375, 0.0189056396484375, -0.006465911865234375, 0.0265045166015625, -0.0032405853271484375, -0.002841949462890625, 0.002498626708984375, -0.06591796875, -0.002895355224609375, 0.02716064453125, 0.04266357421875, -0.0204315185546875, -0.0012454986572265625, -0.02056884765625, 0.040008544921875, 0.004669189453125, 0.042816162109375, 0.010894775390625, 0.047088623046875, 0.00528717041015625, 0.0241241455078125, 0.0225982666015625, -0.00792694091796875, -0.0290374755859375, 0.047454833984375, 0.019500732421875, -0.005157470703125, -0.011199951171875, 0.0156402587890625, 0.0081939697265625, 0.055023193359375, 0.021759033203125, -0.0557861328125, 0.00389862060546875, 0.013702392578125, -0.0189056396484375, -0.045318603515625, 0.033538818359375, 0.0018339157104492188, 0.058074951171875, -0.0299835205078125, -0.062225341796875, 0.04254150390625, -0.06390380859375, -0.0023059844970703125, 0.03515625, -0.0194854736328125, -0.050018310546875, -0.0184326171875, 0.0211181640625, 0.0472412109375, -0.043975830078125, -0.01009368896484375, 0.044403076171875, 0.01369476318359375, 0.07293701171875, -0.034576416015625, 0.0302276611328125, 0.012847900390625, 0.0017747879028320312, 0.00783538818359375, -0.02978515625, -0.0153350830078125, -0.0457763671875, -0.00909423828125, -0.0198822021484375, -0.00004363059997558594, 0.05804443359375, -0.01629638671875, 0.00795745849609375, -0.02679443359375, -0.0033550262451171875, -0.0033740997314453125, -0.00173187255859375, 0.0308990478515625, -0.0029048919677734375, -0.047088623046875, 0.005268096923828125, -0.0162811279296875, -0.00876617431640625, 0.036865234375, -0.0222320556640625, -0.0231781005859375, -0.03253173828125, -0.0237274169921875, 0.024169921875, 0.005649566650390625, 0.035858154296875, 0.0141754150390625, 0.0010995864868164062, -0.05322265625, 0.007282257080078125, 0.01055145263671875, -0.03680419921875, 0.023162841796875, 0.0036334991455078125, 0.0045166015625, -0.0167236328125, 0.011260986328125, -0.03839111328125, 0.0079345703125, -0.0003330707550048828, -0.010894775390625, 0.01163482666015625, 0.005710601806640625, -0.03851318359375, 0.011199951171875, -0.00775146484375, 0.0406494140625, -0.04473876953125, -0.01556396484375, -0.0272369384765625, 0.062255859375, -0.0849609375, 0.0292205810546875, -0.0230865478515625, -0.0631103515625, -0.00937652587890625, 0.016754150390625, -0.03204345703125, 0.09912109375, -0.04376220703125, 0.05963134765625, 0.039154052734375, -0.021881103515625, 0.033843994140625, 0.044219970703125, -0.0143280029296875, 0.037322998046875, 0.0190887451171875, -0.00029850006103515625, -0.0034046173095703125, 0.05657958984375, 0.00972747802734375, -0.041259765625, 0.0892333984375, 0.0222625732421875, -0.036773681640625, 0.04193115234375, -0.035125732421875, 0.011810302734375, 0.0091552734375, 0.043853759765625, -0.0010776519775390625, -0.00611114501953125, 0.004055023193359375, -0.033294677734375, 0.0250244140625, -0.0156097412109375, -0.0209503173828125, -0.0284271240234375, 0.07330322265625, 0.01561737060546875, -0.0025539398193359375, 0.04376220703125, 0.007625579833984375, 0.01214599609375, -0.0266876220703125, 0.0401611328125, 0.0178680419921875, 0.0143585205078125, -0.00908660888671875, -0.0238189697265625, 0.028350830078125, -0.013427734375, 0.02294921875, -0.04620361328125, -0.007236480712890625, -0.0306396484375, -0.0004878044128417969, 0.0030155181884765625, 0.00402069091796875, 0.0010290145874023438, 0.00728607177734375, 0.0262451171875, 0.0293426513671875, -0.01004791259765625, 0.0091400146484375, -0.006938934326171875, 0.0052337646484375, 0.0248565673828125, -0.033203125, -0.01192474365234375, 0.041046142578125, -0.09423828125, 0.0088653564453125, -0.01448822021484375, 0.041107177734375, -0.006465911865234375, 0.0251007080078125, 0.1134033203125, -0.07177734375, -0.0198822021484375, 0.00400543212890625, 0.0423583984375, 0.003902435302734375, 0.003231048583984375, 0.0012750625610351562, -0.078369140625, -0.02630615234375, -0.004611968994140625, -0.0357666015625, -0.0036258697509765625, 0.002109527587890625, -0.0797119140625, 0.13134765625, 0.05029296875, 0.0245208740234375, -0.0162353515625, 0.058319091796875, -0.043792724609375, 0.0341796875, -0.0171051025390625, 0.0189056396484375, 0.048583984375, -0.0026950836181640625, -0.01161956787109375, -0.0222320556640625, 0.0009312629699707031, 0.049896240234375, 0.01457977294921875, 0.002227783203125, -0.004650115966796875, 0.0152587890625, 0.043731689453125, -0.00673675537109375, -0.024200439453125, 0.038787841796875, 0.0304107666015625, 0.05035400390625, 0.03607177734375, -0.01220703125, 0.033843994140625, -0.00405120849609375, -0.01345062255859375, 0.053192138671875, -0.000759124755859375, -0.013641357421875, -0.01523590087890625, 0.047576904296875, -0.030914306640625, -0.01082611083984375, 0.02911376953125, -0.047454833984375, -0.01078033447265625, 0.050201416015625, 0.0171661376953125, -0.048248291015625, -0.005489349365234375, -0.035552978515625, 0.052215576171875, -0.0245361328125, 0.040985107421875, -0.0038356781005859375, 0.02587890625, -0.0245819091796875, -0.015899658203125, 0.02838134765625, 0.0203857421875, -0.0576171875, 0.030914306640625, 0.0200347900390625, -0.007602691650390625, 0.0023956298828125, 0.08514404296875, 0.0278167724609375, 0.02630615234375, -0.063232421875, -0.0232696533203125, 0.023956298828125, 0.0228424072265625, 0.0003261566162109375, -0.01508331298828125, -0.006275177001953125, 0.0008249282836914062, 0.0189666748046875, -0.05255126953125, 0.02703857421875, 0.03277587890625, 0.035858154296875, 0.01318359375, 0.021484375, -0.094482421875, -0.0034618377685546875, -0.022064208984375, -0.004467010498046875, 0.0092315673828125, 0.033477783203125, 0.0263214111328125, 0.02734375, -0.01561737060546875, -0.01125335693359375, -0.016845703125, 0.0304718017578125, 0.0184783935546875, -0.00530242919921875, -0.01318359375, -0.0217437744140625, 0.0026493072509765625, 0.0193939208984375, -0.016571044921875, 0.025909423828125, 0.012115478515625, 0.002773284912109375, -0.01708984375, -0.007236480712890625, 0.035919189453125, -0.0238494873046875, -0.01678466796875, -0.051666259765625, 0.00962066650390625, 0.0284576416015625, 0.019500732421875, 0.01149749755859375, -0.0271453857421875, 0.0745849609375, -0.00255584716796875, 0.054534912109375, -0.00621795654296875, 0.022674560546875, 0.0078887939453125, -0.035919189453125, 0.0020275115966796875, 0.0162200927734375, -0.026641845703125, -0.01245880126953125, -0.0227508544921875, -0.057037353515625, 0.033721923828125, 0.050811767578125, 0.00102996826171875, 0.004413604736328125, -0.0024814605712890625, -0.0160064697265625, -0.0006885528564453125, -0.00212860107421875, 0.0186004638671875, -0.00640869140625, 0.00669097900390625, -0.01494598388671875, 0.005512237548828125, -0.01120758056640625, -0.0112152099609375, 0.044525146484375, 0.02459716796875, 0.049346923828125, -0.032623291015625, 0.03302001953125, -0.005451202392578125, -0.004810333251953125, -0.007656097412109375, -0.0182342529296875, 0.0164947509765625, -0.034423828125, -0.0036754608154296875, -0.007171630859375, 0.00540924072265625, 0.036407470703125, 0.035308837890625, -0.018768310546875, 0.004413604736328125, 0.01473236083984375, 0.0152130126953125, -0.004253387451171875, 0.020233154296875, -0.035491943359375, -0.0498046875, -0.04486083984375, -0.0027294158935546875, -0.0032501220703125, -0.0084991455078125, -0.013885498046875, 0.015350341796875, 0.04168701171875, 0.0163726806640625, 0.03125, 0.00821685791015625, 0.07208251953125, 0.044342041015625, -0.03271484375, -0.0025234222412109375, 0.0016727447509765625, -0.020660400390625, 0.03369140625, -0.00540924072265625, 0.03021240234375, 0.01039886474609375, -0.040283203125, -0.01018524169921875, 0.0158233642578125, 0.011871337890625, -0.01102447509765625, -0.0070953369140625, 0.0124359130859375, -0.0253448486328125, -0.003543853759765625, -0.0233001708984375, -0.03973388671875, -0.070068359375, 0.032928466796875, 0.02484130859375, -0.01263427734375, -0.01047515869140625, -0.0312347412109375, -0.026275634765625, -0.006591796875, -0.009185791015625, -0.0115203857421875, -0.0196380615234375, 0.027496337890625, -0.013336181640625, -0.007904052734375, 0.007549285888671875, -0.015716552734375, 0.017059326171875, -0.0284423828125, -0.053558349609375, -0.0333251953125, 0.046905517578125, -0.040435791015625, 0.0286865234375, 0.043487548828125, -0.0211639404296875, -0.0406494140625, 0.03424072265625, 0.0271453857421875, 0.06768798828125, 0.0048370361328125, -0.036773681640625, -0.0076751708984375, 0.010498046875, -0.006130218505859375, -0.01276397705078125, 0.022003173828125, -0.0301971435546875, -0.016326904296875, -0.0306243896484375, 0.0243377685546875, 0.0198822021484375, -0.038665771484375, -0.0533447265625, -0.01255035400390625, 0.0079803466796875, -0.03668212890625, -0.048065185546875, 0.03192138671875, 0.0301361083984375, 0.018280029296875, -0.0142974853515625, -0.0235137939453125, -0.045196533203125, -0.00634002685546875, 0.0234222412109375, -0.00775909423828125, 0.043243408203125, 0.0298919677734375, -0.0406494140625, 0.006565093994140625, -0.0098114013671875, -0.0178680419921875, 0.0032215118408203125, -0.0255584716796875, -0.01549530029296875, -0.0080108642578125, -0.06671142578125, -0.12188720703125, -0.022064208984375, 0.0263519287109375, 0.0006723403930664062, -0.0545654296875, -0.08258056640625, -0.03143310546875, 0.0762939453125, 0.07720947265625, 0.0274810791015625, -0.033233642578125, -0.04266357421875, -0.0008935928344726562, 0.01055145263671875, -0.0550537109375, 0.0131988525390625, -0.10296630859375, -0.047943115234375, -0.01751708984375, 0.0093841552734375, -0.0137176513671875, -0.03741455078125, -0.0267333984375, -0.0090789794921875, 0.0097198486328125, 0.01195526123046875, 0.002521514892578125, -0.045501708984375, 0.08038330078125, -0.0416259765625, -0.004180908203125, -0.00244903564453125, 0.03521728515625, 0.027587890625, -0.01165008544921875, 0.0140380859375, 0.007717132568359375, -0.00685882568359375, -0.008087158203125, 0.0260009765625, 0.0157470703125, 0.021575927734375, -0.012451171875, 0.0005049705505371094, 0.0301971435546875, -0.029937744140625, 0.01410675048828125, -0.007411956787109375, 0.06927490234375, 0.009552001953125, 0.056640625, -0.0201263427734375, -0.04888916015625, -0.031463623046875, 0.005817413330078125, 0.01316070556640625, 0.007160186767578125, 0.061614990234375, -0.00881195068359375, 0.01338958740234375, -0.0030193328857421875, -0.02703857421875, -0.0112152099609375, -0.004974365234375, -0.0165557861328125, -0.026092529296875, -0.0035381317138671875 ]
7197db1fd77393039ed99abb2635c9a761b8ac4d
Wordpress Stackexchange Q: Wp-cli-ssh global installation problem Global installation of wp-cli-ssh returns following error: $ composer global require x-team/wp-cli-ssh dev-master Changed current directory to /Users/name/.composer ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. **Problem 1 - The requested package xwp/wp-cli-ssh could not be found in any version, there may be a typo in the package name.** Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see **https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion** for more details. Read **https://getcomposer.org/doc/articles/troubleshooting.md** for further common problems The composer.json file looks like the following: { "minimum-stability":"dev", "require":{ }, "config":{ "bin-dir":"bin", "vendor-dir":"vendor" }, "repositories":{ "wp-cli":{ "type":"composer", "url":"http://wp-cli.org/package-index/ " } } } Looking forward for a guidance on What I am missing in this.
Q: Wp-cli-ssh global installation problem Global installation of wp-cli-ssh returns following error: $ composer global require x-team/wp-cli-ssh dev-master Changed current directory to /Users/name/.composer ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. **Problem 1 - The requested package xwp/wp-cli-ssh could not be found in any version, there may be a typo in the package name.** Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see **https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion** for more details. Read **https://getcomposer.org/doc/articles/troubleshooting.md** for further common problems The composer.json file looks like the following: { "minimum-stability":"dev", "require":{ }, "config":{ "bin-dir":"bin", "vendor-dir":"vendor" }, "repositories":{ "wp-cli":{ "type":"composer", "url":"http://wp-cli.org/package-index/ " } } } Looking forward for a guidance on What I am missing in this.
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:461619", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212167" }
[ -0.0221710205078125, -0.033050537109375, -0.061279296875, -0.061309814453125, -0.0145721435546875, -0.01239776611328125, -0.0218505859375, 0.052001953125, 0.041900634765625, 0.0189971923828125, -0.0372314453125, 0.00228118896484375, -0.0255126953125, -0.00798797607421875, -0.0280303955078125, -0.0166778564453125, 0.0195159912109375, 0.0012798309326171875, 0.004718780517578125, -0.0193023681640625, -0.015838623046875, -0.00530242919921875, 0.0031757354736328125, 0.03619384765625, 0.01399993896484375, 0.03570556640625, 0.023834228515625, -0.006526947021484375, -0.021636962890625, -0.00498199462890625, 0.019378662109375, -0.01024627685546875, 0.0274505615234375, -0.003871917724609375, -0.007663726806640625, -0.053924560546875, -0.030731201171875, 0.0138702392578125, -0.0194244384765625, 0.01180267333984375, -0.031158447265625, 0.007122039794921875, 0.048553466796875, 0.003490447998046875, -0.006443023681640625, -0.0143585205078125, -0.0171356201171875, -0.03570556640625, 0.0214996337890625, 0.0095672607421875, -0.017181396484375, 0.019439697265625, -0.0009584426879882812, -0.0037384033203125, 0.01309967041015625, 0.005458831787109375, 0.00026607513427734375, 0.038909912109375, 0.0184783935546875, -0.038665771484375, -0.032562255859375, 0.0123138427734375, 0.0267486572265625, 0.01549530029296875, 0.0189056396484375, -0.0278167724609375, 0.033050537109375, 0.041717529296875, -0.0899658203125, 0.0035839080810546875, 0.059539794921875, -0.018096923828125, 0.01312255859375, 0.00653839111328125, 0.01200103759765625, -0.0576171875, 0.0212860107421875, -0.02618408203125, 0.0180206298828125, 0.027557373046875, 0.0284271240234375, -0.00572967529296875, 0.0040130615234375, -0.01837158203125, 0.031707763671875, 0.0208282470703125, -0.00537872314453125, -0.01812744140625, -0.0005550384521484375, -0.031890869140625, -0.006885528564453125, 0.0203857421875, -0.0556640625, 0.0243682861328125, -0.01190948486328125, -0.00981903076171875, -0.0080108642578125, -0.044036865234375, -0.01531219482421875, 0.0223541259765625, 0.0214080810546875, -0.0322265625, 0.0714111328125, -0.0095367431640625, -0.00675201416015625, 0.05401611328125, 0.004924774169921875, 0.02203369140625, 0.017242431640625, 0.01678466796875, -0.0076446533203125, 0.004871368408203125, 0.022705078125, 0.005001068115234375, -0.0189666748046875, -0.01324462890625, -0.032684326171875, 0.02545166015625, 0.0016384124755859375, 0.04034423828125, 0.0269317626953125, 0.01306915283203125, 0.004978179931640625, 0.016265869140625, 0.01041412353515625, 0.0245361328125, -0.006298065185546875, -0.04742431640625, -0.044219970703125, 0.0207672119140625, 0.004764556884765625, 0.0177154541015625, 0.038238525390625, 0.0325927734375, -0.0018901824951171875, -0.004238128662109375, 0.004871368408203125, 0.0286865234375, 0.016143798828125, 0.004482269287109375, 0.0078887939453125, -0.04083251953125, 0.00702667236328125, 0.0206298828125, 0.031707763671875, 0.0019016265869140625, 0.027801513671875, 0.0196075439453125, -0.006927490234375, 0.00087738037109375, -0.0108489990234375, 0.036163330078125, 0.005748748779296875, 0.0278778076171875, 0.06097412109375, 0.004604339599609375, 0.0712890625, -0.049713134765625, 0.0062713623046875, -0.007770538330078125, -0.0136260986328125, -0.0242156982421875, -0.0134735107421875, -0.000048100948333740234, 0.0006260871887207031, 0.035369873046875, 0.0125732421875, 0.0162353515625, 0.025238037109375, 0.038116455078125, 0.0192718505859375, -0.02001953125, 0.02996826171875, -0.005641937255859375, -0.01861572265625, 0.0040435791015625, 0.038482666015625, -0.0196380615234375, 0.006099700927734375, 0.060089111328125, 0.0018291473388671875, -0.0149688720703125, 0.0545654296875, -0.031585693359375, -0.05694580078125, 0.00362396240234375, 0.01456451416015625, 0.049896240234375, 0.059051513671875, 0.01186370849609375, 0.016021728515625, -0.012664794921875, 0.0169830322265625, 0.039154052734375, -0.045013427734375, -0.040863037109375, -0.0241851806640625, 0.016357421875, -0.044647216796875, 0.01080322265625, 0.0291748046875, -0.0114898681640625, 0.00605010986328125, -0.0145111083984375, -0.04742431640625, -0.01065826416015625, -0.01004791259765625, 0.01031494140625, 0.0172576904296875, -0.01067352294921875, 0.004764556884765625, 0.0017871856689453125, 0.01190948486328125, -0.05401611328125, -0.044036865234375, 0.041473388671875, -0.0697021484375, 0.04534912109375, -0.0176849365234375, 0.09991455078125, -0.054290771484375, -0.0221099853515625, -0.037139892578125, -0.0762939453125, -0.0131683349609375, 0.0269927978515625, -0.005802154541015625, 0.0259246826171875, 0.0177764892578125, 0.042816162109375, 0.049652099609375, -0.031524658203125, -0.0165863037109375, 0.039642333984375, -0.020477294921875, 0.025665283203125, 0.0167388916015625, 0.04443359375, 0.00036716461181640625, -0.010986328125, 0.0404052734375, 0.04083251953125, -0.007595062255859375, -0.0347900390625, 0.103515625, 0.001354217529296875, 0.0195159912109375, -0.04168701171875, -0.05181884765625, -0.0091705322265625, 0.05413818359375, 0.0043182373046875, -0.00830841064453125, -0.0328369140625, -0.0120697021484375, 0.0202789306640625, -0.00595855712890625, -0.007503509521484375, -0.0301666259765625, -0.01503753662109375, 0.01885986328125, -0.0760498046875, -0.0712890625, -0.004680633544921875, -0.023223876953125, -0.0249176025390625, -0.0229644775390625, -0.021881103515625, 0.017364501953125, -0.021942138671875, 0.030181884765625, -0.054168701171875, 0.037109375, 0.0195465087890625, -0.00787353515625, 0.053009033203125, -0.00402069091796875, -0.0209197998046875, 0.058807373046875, 0.01397705078125, -0.016326904296875, 0.039306640625, -0.01128387451171875, -0.00742340087890625, -0.049652099609375, -0.0241851806640625, 0.0338134765625, 0.040496826171875, -0.002155303955078125, 0.005344390869140625, 0.004878997802734375, 0.03985595703125, -0.0015459060668945312, 0.035125732421875, 0.001071929931640625, -0.006988525390625, 0.0714111328125, 0.01406097412109375, -0.006412506103515625, -0.0024662017822265625, 0.03466796875, 0.0246734619140625, 0.00911712646484375, -0.026092529296875, 0.00043272972106933594, 0.0496826171875, 0.0268096923828125, -0.0283050537109375, -0.0216064453125, 0.0026760101318359375, -0.045989990234375, -0.00946807861328125, 0.016387939453125, -0.031280517578125, -0.00763702392578125, -0.03729248046875, -0.043487548828125, -0.032867431640625, -0.154541015625, -0.1109619140625, 0.01529693603515625, -0.05377197265625, -0.002529144287109375, 0.0166473388671875, -0.035919189453125, -0.0114288330078125, 0.039337158203125, 0.00778961181640625, 0.02825927734375, -0.052703857421875, -0.055633544921875, -0.0799560546875, -0.0950927734375, -0.034698486328125, -0.0019178390502929688, 0.0052032470703125, -0.004589080810546875, 0.0572509765625, -0.00913238525390625, -0.044586181640625, -0.00579071044921875, 0.0440673828125, 0.01352691650390625, 0.01445770263671875, 0.0079498291015625, -0.02197265625, 0.0550537109375, -0.0170440673828125, 0.003688812255859375, 0.04425048828125, -0.017913818359375, -0.0100250244140625, 0.0506591796875, -0.03619384765625, 0.002376556396484375, 0.05181884765625, -0.0377197265625, -0.06097412109375, -0.0191802978515625, -0.097900390625, 0.00397491455078125, -0.01274871826171875, -0.0061187744140625, 0.064208984375, 0.005794525146484375, -0.006885528564453125, -0.009552001953125, 0.03302001953125, -0.0187530517578125, 0.0016450881958007812, 0.0081787109375, -0.00389862060546875, 0.04718017578125, -0.019073486328125, -0.030059814453125, -0.01837158203125, 0.03466796875, -0.0184783935546875, -0.034820556640625, -0.00006538629531860352, -0.0239410400390625, -0.0231170654296875, -0.005859375, -0.0116729736328125, -0.0252838134765625, 0.033416748046875, -0.0116424560546875, 0.0390625, -0.054656982421875, -0.0259857177734375, -0.036834716796875, 0.053131103515625, -0.012481689453125, -0.042938232421875, 0.0169830322265625, 0.0180816650390625, -0.022003173828125, -0.0103607177734375, 0.0011692047119140625, -0.0321044921875, -0.0169677734375, 0.0011415481567382812, -0.0097503662109375, -0.01383209228515625, 0.0235595703125, -0.06256103515625, 0.01245880126953125, -0.043609619140625, 0.0252685546875, -0.047149658203125, 0.02886962890625, 0.022705078125, -0.01198577880859375, 0.0195770263671875, -0.036285400390625, -0.043060302734375, -0.084716796875, -0.0113067626953125, -0.03167724609375, 0.0517578125, -0.049285888671875, 0.08404541015625, -0.045867919921875, 0.03369140625, 0.0582275390625, 0.0391845703125, -0.004169464111328125, -0.05474853515625, 0.032196044921875, 0.034332275390625, 0.025146484375, 0.016815185546875, -0.01062774658203125, 0.01346588134765625, -0.035614013671875, 0.0265655517578125, 0.00910186767578125, -0.00664520263671875, 0.055023193359375, -0.05474853515625, -0.046661376953125, -0.0264129638671875, -0.0275115966796875, 0.035858154296875, -0.0220794677734375, 0.00982666015625, -0.049896240234375, -0.069091796875, 0.0509033203125, -0.00592803955078125, -0.008880615234375, 0.004383087158203125, 0.049530029296875, 0.00719451904296875, -0.02569580078125, -0.030426025390625, 0.03564453125, 0.020355224609375, -0.0104827880859375, 0.06011962890625, 0.03326416015625, 0.031524658203125, -0.0264892578125, -0.012542724609375, 0.013275146484375, 0.016448974609375, -0.0272674560546875, 0.0196685791015625, -0.01097869873046875, -0.00634002685546875, 0.0288848876953125, -0.01169586181640625, -0.01123809814453125, -0.00417327880859375, 0.0172576904296875, 0.018096923828125, -0.001953125, -0.0247344970703125, 0.011322021484375, 0.002288818359375, -0.07147216796875, 0.035125732421875, -0.10723876953125, 0.01050567626953125, -0.0002982616424560547, -0.0021114349365234375, 0.0217742919921875, -0.01045989990234375, -0.0013837814331054688, -0.00930023193359375, 0.01227569580078125, -0.01318359375, 0.027008056640625, -0.0231475830078125, -0.0231475830078125, -0.00980377197265625, -0.016845703125, 0.10699462890625, 0.03070068359375, -0.0288848876953125, 0.030670166015625, -0.026214599609375, -0.0211639404296875, -0.0158233642578125, 0.0264892578125, 0.032623291015625, -0.0213775634765625, -0.0185546875, -0.02020263671875, -0.00814056396484375, -0.0309906005859375, -0.04803466796875, 0.0109100341796875, 0.012786865234375, -0.0364990234375, -0.0167694091796875, -0.00412750244140625, 0.0007104873657226562, -0.042144775390625, 0.005939483642578125, 0.01403045654296875, 0.03118896484375, -0.01357269287109375, -0.005321502685546875, 0.045654296875, 0.0309906005859375, -0.05462646484375, 0.05224609375, -0.030426025390625, -0.008392333984375, 0.0230560302734375, 0.0426025390625, -0.004810333251953125, -0.036224365234375, 0.0200958251953125, -0.031951904296875, 0.0017461776733398438, -0.0098876953125, 0.01352691650390625, 0.0159912109375, -0.00962066650390625, 0.005359649658203125, 0.0151214599609375, 0.01349639892578125, -0.0224151611328125, -0.00263214111328125, -0.0300750732421875, -0.0041046142578125, 0.0574951171875, -0.03314208984375, -0.004444122314453125, -0.00391387939453125, -0.0276336669921875, -0.0148773193359375, -0.0105438232421875, -0.045623779296875, -0.04302978515625, -0.003879547119140625, -0.00031948089599609375, 0.027740478515625, -0.0169677734375, -0.011688232421875, -0.006500244140625, -0.006954193115234375, -0.0650634765625, 0.01229095458984375, 0.0307769775390625, 0.023345947265625, -0.024749755859375, 0.00626373291015625, -0.021331787109375, -0.025848388671875, 0.0211639404296875, -0.0274658203125, -0.0672607421875, -0.0185699462890625, 0.0276031494140625, -0.01543426513671875, 0.02484130859375, -0.023223876953125, -0.060394287109375, 0.03857421875, 0.06512451171875, -0.004489898681640625, -0.00733184814453125, -0.01047515869140625, -0.01224517822265625, 0.01299285888671875, -0.020660400390625, -0.0241241455078125, 0.02978515625, -0.0210723876953125, 0.0013570785522460938, -0.0169219970703125, 0.00928497314453125, -0.0299835205078125, 0.02398681640625, -0.004352569580078125, 0.039031982421875, 0.0020847320556640625, -0.0220794677734375, 0.006801605224609375, -0.01551055908203125, -0.00959014892578125, 0.045257568359375, 0.058685302734375, 0.009429931640625, 0.0340576171875, -0.044525146484375, 0.05059814453125, 0.0295562744140625, 0.0234832763671875, 0.004070281982421875, -0.0537109375, 0.032867431640625, 0.036956787109375, -0.03472900390625, 0.055999755859375, 0.078857421875, -0.0118408203125, 0.046844482421875, 0.0093231201171875, -0.000759124755859375, 0.01029205322265625, 0.0206756591796875, -0.046875, -0.00603485107421875, 0.02081298828125, 0.00415802001953125, -0.0231781005859375, 0.01490020751953125, -0.020050048828125, 0.005702972412109375, 0.00731658935546875, 0.055816650390625, 0.01082611083984375, -0.01064300537109375, 0.024383544921875, -0.028289794921875, -0.0090179443359375, 0.0016851425170898438, -0.0200958251953125, -0.0416259765625, 0.0352783203125, -0.0011568069458007812, -0.01776123046875, 0.00519561767578125, 0.0077972412109375, 0.00014257431030273438, -0.021026611328125, 0.02545166015625, 0.003055572509765625, -0.00882720947265625, 0.0034847259521484375, -0.0081024169921875, -0.005519866943359375, -0.0032100677490234375, 0.00878143310546875, -0.038177490234375, -0.01390838623046875, -0.037811279296875, -0.0277252197265625, -0.02557373046875, -0.031341552734375, 0.0439453125, 0.01468658447265625, 0.0274810791015625, 0.048248291015625, -0.004199981689453125, 0.00647735595703125, 0.016265869140625, -0.008575439453125, 0.01947021484375, 0.005123138427734375, 0.031402587890625, 0.031341552734375, -0.08380126953125, 0.0156402587890625, -0.049713134765625, 0.03961181640625, 0.0027561187744140625, 0.033538818359375, 0.055267333984375, 0.0203094482421875, -0.04388427734375, 0.054168701171875, -0.004543304443359375, -0.033203125, 0.0291900634765625, 0.046661376953125, -0.04888916015625, -0.0311431884765625, 0.052734375, 0.003726959228515625, -0.0257415771484375, 0.06475830078125, -0.0013189315795898438, 0.07513427734375, 0.020904541015625, -0.043243408203125, 0.007350921630859375, 0.044097900390625, -0.033538818359375, 0.0325927734375, -0.005992889404296875, 0.002315521240234375, -0.0006909370422363281, 0.0277252197265625, -0.0000928044319152832, -0.0008797645568847656, 0.02886962890625, 0.043701171875, 0.0221099853515625, 0.0027637481689453125, -0.00788116455078125, -0.01410675048828125, 0.022857666015625, 0.01175689697265625, -0.0024127960205078125, 0.036163330078125, 0.01055145263671875, -0.01470947265625, -0.0029277801513671875, 0.00620269775390625, 0.04632568359375, -0.0733642578125, -0.0184326171875, 0.007663726806640625, 0.03192138671875, 0.04150390625, 0.0017986297607421875, 0.00946044921875, -0.02020263671875, 0.00885772705078125, 0.01291656494140625, 0.0399169921875, 0.045989990234375, -0.023956298828125, -0.029144287109375, 0.07049560546875, 0.03924560546875, 0.00036716461181640625, 0.01806640625, -0.0238800048828125, 0.0015010833740234375, 0.01103973388671875, 0.0137176513671875, -0.015411376953125, 0.0157012939453125, -0.0004119873046875, 0.0367431640625, 0.0017347335815429688, 0.0243072509765625, 0.0246734619140625, 0.060791015625, 0.0027103424072265625, 0.033203125, 0.00191497802734375, 0.0115814208984375, -0.0369873046875, -0.075439453125, 0.016845703125, 0.0265960693359375, 0.0076141357421875, 0.0192413330078125, -0.008880615234375, -0.03582763671875, 0.056915283203125, -0.060821533203125, 0.0274200439453125, 0.0426025390625, 0.0005927085876464844, -0.0032634735107421875, -0.0377197265625, -0.0167999267578125, 0.034576416015625, -0.0292510986328125, 0.030731201171875, 0.037384033203125, 0.0161590576171875, -0.023345947265625, 0.040069580078125, 0.0116119384765625, -0.0000934600830078125, -0.00389862060546875, 0.0262603759765625, 0.061798095703125, -0.023956298828125, -0.00019359588623046875, -0.01477813720703125, 0.04925537109375, 0.00965118408203125, 0.018524169921875, -0.0028018951416015625, 0.0184783935546875, 0.0241241455078125, -0.02093505859375, -0.00511932373046875, 0.052886962890625, -0.01422882080078125, -0.04010009765625, 0.0176544189453125, -0.021636962890625, 0.023162841796875, -0.0230560302734375, -0.0097198486328125, 0.04718017578125, 0.0179901123046875, -0.03106689453125, 0.038787841796875, -0.01413726806640625, -0.01451873779296875, 0.0163116455078125, -0.00151824951171875, 0.040008544921875, 0.0036258697509765625, -0.01142120361328125, 0.0223541259765625, -0.061798095703125, -0.0102996826171875, -0.003490447998046875, 0.007617950439453125, -0.004299163818359375, 0.048065185546875, -0.00634002685546875, -0.0221710205078125, -0.010589599609375, 0.0294036865234375, 0.002941131591796875, -0.049896240234375, 0.00875091552734375, -0.030120849609375, -0.00785064697265625, -0.0279693603515625, -0.0343017578125, 0.06610107421875, 0.006267547607421875, 0.09539794921875, -0.06427001953125, 0.037689208984375, -0.030487060546875, -0.007373809814453125, 0.0030307769775390625, 0.00042700767517089844, -0.0088043212890625, 0.03558349609375, -0.00013959407806396484, -0.0218658447265625, -0.05902099609375, 0.038055419921875, 0.0170440673828125, -0.00717926025390625, 0.038604736328125, -0.01039886474609375, 0.02288818359375, -0.01337432861328125, 0.00370025634765625, -0.0391845703125, -0.035980224609375, -0.0276641845703125, 0.00439453125, 0.00969696044921875, 0.0123748779296875, 0.005702972412109375, -0.00852203369140625, -0.0157928466796875, -0.03424072265625, 0.0031147003173828125, 0.01441192626953125, -0.0253753662109375, 0.0015544891357421875, 0.010498046875, -0.0169830322265625, -0.022552490234375, -0.023162841796875, -0.032135009765625, 0.0165252685546875, 0.01032257080078125, -0.0299224853515625, 0.01552581787109375, -0.02178955078125, 0.03045654296875, 0.0292510986328125, -0.02325439453125, 0.01544189453125, 0.004901885986328125, -0.0194549560546875, 0.01068115234375, -0.0258331298828125, 0.001148223876953125, -0.041473388671875, -0.0133514404296875, 0.01439666748046875, -0.019989013671875, 0.0006527900695800781, 0.004894256591796875, -0.00975799560546875, 0.013824462890625, -0.0018711090087890625, -0.0064697265625, 0.013153076171875, -0.023773193359375, -0.007762908935546875, -0.0039043426513671875, 0.0062713623046875, -0.0184326171875, -0.0300140380859375, -0.036102294921875, -0.02923583984375, -0.0423583984375, 0.050750732421875, -0.0150909423828125, -0.0155181884765625, 0.034027099609375, 0.00507354736328125, -0.0248870849609375, -0.0198974609375, -0.0364990234375, 0.025238037109375, -0.0455322265625, -0.005695343017578125, -0.00687408447265625, 0.0172119140625, -0.036376953125, -0.08251953125, 0.00791168212890625, -0.047393798828125, -0.0077056884765625, -0.0237579345703125, 0.0196533203125, 0.024261474609375, -0.053009033203125, -0.1322021484375, 0.06292724609375, -0.03497314453125, -0.033966064453125, -0.05169677734375, -0.0269317626953125, -0.021026611328125, 0.0748291015625, -0.00965118408203125, -0.036285400390625, -0.03375244140625, 0.048187255859375, -0.006305694580078125, 0.022674560546875, 0.0280914306640625, -0.0192718505859375, -0.0192718505859375, -0.01435089111328125, -0.007778167724609375, -0.007411956787109375, -0.0030670166015625, 0.01336669921875, 0.001560211181640625, 0.03656005859375, -0.01041412353515625, -0.0006647109985351562, -0.01192474365234375, -0.03204345703125, -0.0033016204833984375, -0.0212249755859375, 0.0117340087890625, -0.004878997802734375, -0.0187225341796875, 0.03851318359375, -0.009368896484375, -0.0187835693359375, -0.03399658203125, 0.006526947021484375, 0.04962158203125, -0.0233154296875, -0.006191253662109375, -0.0478515625, -0.0270538330078125, -0.03338623046875, 0.00982666015625, 0.0233612060546875, -0.01166534423828125, 0.0157318115234375, -0.02288818359375, -0.00795745849609375, -0.0225830078125, 0.0034732818603515625, -0.0572509765625, 0.0240325927734375, -0.0142974853515625, 0.020294189453125, -0.010955810546875, 0.0340576171875, 0.0164337158203125, 0.0254364013671875, -0.053802490234375, 0.0124969482421875, -0.020751953125, 0.0318603515625, -0.03955078125, 0.03662109375, -0.056365966796875, 0.032440185546875, 0.01039886474609375, 0.01806640625, -0.0204010009765625, 0.022369384765625, 0.0033473968505859375, 0.041290283203125, -0.0202178955078125, 0.054443359375, -0.0256195068359375, -0.0535888671875, -0.0419921875, 0.03125, -0.004180908203125, 0.004261016845703125, 0.010467529296875, 0.032501220703125, 0.01065826416015625, -0.00199127197265625, -0.0155487060546875, -0.002079010009765625, -0.00290679931640625, 0.05938720703125, -0.0208740234375, 0.0031375885009765625 ]
90c899994d78acb41d3a80ae837e82ef65be5e7b
Wordpress Stackexchange Q: Woocommerce hook after creating order? I am looking for a hook which will be triggered after someone submit checkout form and order placed ( no matter he made the payment or not ) . I tried woocommerce_new_order But it's not working. A: I found the solution. An old order already exists in my order list. So when I am adding new items in order, woocommerce just updating my old unpaid order. So I use woocommerce_resume_order action too. Now it's fine.
Q: Woocommerce hook after creating order? I am looking for a hook which will be triggered after someone submit checkout form and order placed ( no matter he made the payment or not ) . I tried woocommerce_new_order But it's not working. A: I found the solution. An old order already exists in my order list. So when I am adding new items in order, woocommerce just updating my old unpaid order. So I use woocommerce_resume_order action too. Now it's fine. A: Try woocommerce_thankyou hook. This will trigger after recieving order successfully, no matter how user made payment. $hook_to = 'woocommerce_thankyou'; $what_to_hook = 'wl8OrderPlacedTriggerSomething'; $prioriy = 111; $num_of_arg = 1; add_action($hook_to, $what_to_hook, $prioriy, $num_of_arg); function wl8OrderPlacedTriggerSomething($order_id){ //do something... } For more reference dig into woocommerce/templates/checkout/thankyou.php
wordpress
{ "language": "en", "length": 125, "provenance": "stackexchange_00019.jsonl.gz:461690", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212400" }
[ 0.08770751953125, -0.00609588623046875, 0.007785797119140625, -0.03265380859375, 0.0106658935546875, -0.045318603515625, 0.0270233154296875, -0.0180816650390625, 0.020721435546875, 0.02581787109375, -0.0399169921875, 0.002910614013671875, 0.0157012939453125, -0.016387939453125, 0.00826263427734375, -0.01042938232421875, 0.028350830078125, -0.026153564453125, 0.00965118408203125, 0.003955841064453125, 0.005649566650390625, 0.025970458984375, 0.007717132568359375, 0.029388427734375, 0.0092010498046875, 0.0209197998046875, 0.075927734375, -0.0312042236328125, 0.054229736328125, 0.021270751953125, 0.03289794921875, -0.10113525390625, 0.041778564453125, 0.01080322265625, -0.0506591796875, 0.0347900390625, -0.016021728515625, 0.00201416015625, -0.01337432861328125, 0.0244598388671875, 0.0706787109375, -0.05780029296875, -0.01340484619140625, 0.01473236083984375, 0.006603240966796875, -0.046356201171875, 0.06060791015625, -0.047607421875, 0.040435791015625, 0.01340484619140625, 0.0020198822021484375, 0.0391845703125, -0.00902557373046875, 0.024444580078125, -0.0098419189453125, 0.00394439697265625, -0.0704345703125, 0.05706787109375, 0.0178375244140625, 0.04229736328125, -0.0022411346435546875, -0.00046634674072265625, -0.00969696044921875, -0.03631591796875, 0.02294921875, 0.0016412734985351562, -0.0404052734375, 0.036285400390625, -0.038848876953125, 0.026702880859375, 0.0221710205078125, -0.061431884765625, -0.0250091552734375, 0.0146942138671875, -0.0118255615234375, -0.05328369140625, 0.03204345703125, -0.033416748046875, 0.006587982177734375, 0.056365966796875, 0.0158538818359375, -0.0208892822265625, -0.0200653076171875, -0.0310821533203125, 0.01316070556640625, -0.02978515625, 0.00128936767578125, 0.01108551025390625, -0.0682373046875, -0.03460693359375, -0.04949951171875, -0.03173828125, -0.045196533203125, -0.03582763671875, -0.0396728515625, -0.0222320556640625, 0.0033321380615234375, 0.02752685546875, -0.01291656494140625, 0.017822265625, 0.0017023086547851562, -0.026611328125, 0.0277252197265625, -0.0257415771484375, 0.01053619384765625, -0.0015621185302734375, 0.006977081298828125, -0.060791015625, 0.0095672607421875, 0.0077972412109375, -0.034271240234375, 0.0361328125, -0.00597381591796875, -0.016448974609375, 0.0229949951171875, -0.0234222412109375, -0.060791015625, 0.06353759765625, -0.00565338134765625, 0.0203094482421875, -0.00008255243301391602, 0.004695892333984375, 0.045501708984375, -0.031890869140625, -0.0025157928466796875, -0.01131439208984375, -0.0185699462890625, -0.049652099609375, 0.00881195068359375, -0.0306549072265625, -0.032440185546875, 0.01393890380859375, 0.049957275390625, 0.0626220703125, 0.01898193359375, -0.004337310791015625, -0.0183868408203125, 0.0225067138671875, 0.0103302001953125, -0.0238037109375, 0.0305023193359375, -0.0283203125, -0.0219268798828125, 0.03155517578125, 0.0377197265625, 0.0027141571044921875, -0.0026264190673828125, 0.0086517333984375, 0.038818359375, 0.038787841796875, -0.0222930908203125, -0.0181121826171875, 0.0235748291015625, 0.00786590576171875, 0.018310546875, 0.02252197265625, 0.0219268798828125, -0.0002639293670654297, -0.032379150390625, -0.012237548828125, -0.02984619140625, -0.033203125, 0.00566864013671875, -0.075439453125, -0.0863037109375, 0.048248291015625, -0.04046630859375, -0.01203155517578125, 0.0380859375, 0.01544952392578125, 0.041534423828125, -0.0193634033203125, 0.028228759765625, 0.0036067962646484375, -0.01068878173828125, 0.005741119384765625, 0.0022487640380859375, -0.007534027099609375, 0.041778564453125, -0.005619049072265625, -0.0277862548828125, -0.0289154052734375, 0.05047607421875, -0.0258026123046875, -0.0679931640625, 0.0484619140625, 0.034698486328125, 0.0821533203125, -0.0144805908203125, 0.01335906982421875, 0.07086181640625, 0.0245513916015625, -0.03948974609375, 0.042327880859375, -0.01071929931640625, 0.0161895751953125, 0.0033283233642578125, 0.039154052734375, -0.0060272216796875, -0.057708740234375, 0.01027679443359375, -0.0043487548828125, 0.0283050537109375, -0.0226898193359375, -0.01300048828125, 0.0074920654296875, -0.0265350341796875, 0.028533935546875, -0.025787353515625, 0.005619049072265625, 0.022979736328125, -0.0035552978515625, -0.03839111328125, 0.0015125274658203125, 0.005115509033203125, 0.003330230712890625, -0.044921875, 0.0782470703125, 0.005916595458984375, 0.0736083984375, -0.003772735595703125, -0.05035400390625, 0.01172637939453125, -0.039459228515625, -0.0026531219482421875, -0.000988006591796875, -0.0232696533203125, -0.016082763671875, -0.022125244140625, 0.00531005859375, -0.013214111328125, 0.02911376953125, 0.0269927978515625, 0.00852203369140625, -0.030487060546875, -0.00826263427734375, -0.0250396728515625, -0.101806640625, 0.0022296905517578125, 0.072998046875, 0.0122528076171875, 0.03564453125, 0.01666259765625, 0.057708740234375, 0.049102783203125, 0.001781463623046875, 0.03302001953125, -0.005214691162109375, -0.0178985595703125, 0.007648468017578125, -0.00406646728515625, 0.029541015625, 0.021392822265625, 0.01041412353515625, -0.00537872314453125, 0.042999267578125, -0.011199951171875, -0.01050567626953125, -0.0164031982421875, -0.009002685546875, 0.01230621337890625, -0.0222625732421875, -0.0216217041015625, -0.00846099853515625, 0.047943115234375, -0.0116729736328125, 0.045989990234375, 0.006252288818359375, -0.0242156982421875, -0.0195770263671875, 0.0173492431640625, -0.0147247314453125, 0.0213165283203125, 0.0220794677734375, -0.044342041015625, 0.01003265380859375, -0.015716552734375, -0.006221771240234375, 0.028533935546875, 0.0086517333984375, -0.04400634765625, -0.0335693359375, -0.006954193115234375, -0.004108428955078125, 0.00811004638671875, -0.06097412109375, 0.033355712890625, -0.0283966064453125, 0.0155487060546875, -0.01218414306640625, 0.012908935546875, 0.01702880859375, -0.0265960693359375, 0.05712890625, 0.010345458984375, -0.04168701171875, -0.022369384765625, 0.007061004638671875, 0.0247955322265625, -0.041229248046875, -0.0094757080078125, 0.045806884765625, -0.0227203369140625, 0.01251983642578125, 0.0167083740234375, -0.0478515625, 0.0234832763671875, -0.010498046875, -0.01517486572265625, 0.016021728515625, -0.05328369140625, 0.034454345703125, 0.038330078125, 0.09967041015625, -0.00420379638671875, -0.0284576416015625, 0.0204925537109375, 0.048492431640625, 0.0166168212890625, -0.06781005859375, -0.096435546875, -0.02606201171875, 0.01534271240234375, -0.0178985595703125, 0.016326904296875, 0.02081298828125, -0.02655029296875, 0.0225830078125, -0.021484375, -0.0054168701171875, -0.013519287109375, -0.0345458984375, -0.0285186767578125, 0.011688232421875, -0.0017108917236328125, 0.006008148193359375, -0.001941680908203125, 0.0662841796875, -0.00323486328125, -0.01445770263671875, 0.0017023086547851562, -0.037933349609375, -0.00637054443359375, 0.0163726806640625, -0.0038814544677734375, -0.016845703125, 0.016387939453125, -0.00978851318359375, 0.00616455078125, 0.0036296844482421875, 0.002666473388671875, -0.0216522216796875, -0.00222015380859375, -0.026092529296875, -0.00713348388671875, 0.0277252197265625, -0.004764556884765625, -0.06561279296875, 0.0079345703125, -0.075927734375, 0.00392913818359375, -0.0007014274597167969, -0.0243988037109375, -0.015167236328125, -0.0117950439453125, -0.0106353759765625, -0.0107269287109375, 0.022003173828125, -0.006099700927734375, 0.00389862060546875, 0.01023101806640625, -0.02880859375, -0.007843017578125, -0.01096343994140625, -0.02764892578125, -0.01392364501953125, 0.025177001953125, -0.004261016845703125, -0.0015859603881835938, -0.0034694671630859375, 0.019256591796875, -0.0311279296875, 0.04364013671875, -0.07183837890625, -0.06610107421875, 0.02191162109375, -0.0745849609375, 0.018218994140625, -0.053436279296875, -0.006969451904296875, 0.0005159378051757812, 0.10687255859375, -0.01015472412109375, -0.015228271484375, 0.01442718505859375, 0.0095367431640625, -0.02703857421875, -0.00399017333984375, -0.0226898193359375, -0.00972747802734375, -0.0491943359375, 0.01442718505859375, 0.0171966552734375, -0.0302886962890625, 0.007091522216796875, -0.059722900390625, -0.02294921875, -0.0299224853515625, 0.04736328125, -0.043182373046875, 0.0254364013671875, 0.053070068359375, 0.0008153915405273438, 0.0248260498046875, -0.03369140625, -0.033538818359375, -0.020050048828125, 0.0086822509765625, -0.0273284912109375, -0.0088348388671875, 0.007778167724609375, 0.00644683837890625, -0.0247955322265625, -0.00914764404296875, -0.0228271484375, 0.08575439453125, -0.0311279296875, 0.033935546875, 0.003398895263671875, -0.056854248046875, -0.014923095703125, -0.0247344970703125, -0.01493072509765625, -0.0191497802734375, -0.0088653564453125, 0.0271453857421875, -0.01959228515625, 0.0285186767578125, -0.002498626708984375, -0.016357421875, -0.09136962890625, -0.0472412109375, -0.004673004150390625, 0.0040283203125, -0.0006031990051269531, 0.0009908676147460938, -0.032806396484375, -0.0692138671875, -0.0243988037109375, -0.085205078125, -0.02691650390625, 0.0266571044921875, 0.035736083984375, 0.0247344970703125, 0.043975830078125, 0.035675048828125, 0.028076171875, 0.037109375, 0.050750732421875, -0.0273590087890625, -0.0309600830078125, -0.0301666259765625, 0.004581451416015625, 0.0235443115234375, -0.0061492919921875, -0.003787994384765625, 0.050872802734375, -0.022064208984375, -0.040283203125, 0.018890380859375, -0.0438232421875, 0.0038776397705078125, -0.0027313232421875, -0.0206146240234375, 0.01702880859375, 0.019683837890625, 0.0038356781005859375, -0.0438232421875, 0.037384033203125, 0.00910186767578125, -0.0269927978515625, 0.006023406982421875, 0.021514892578125, 0.01081085205078125, 0.0120391845703125, 0.00792694091796875, -0.00982666015625, -0.01016998291015625, 0.01297760009765625, -0.035736083984375, -0.03106689453125, -0.033172607421875, 0.0264892578125, -0.034576416015625, 0.00736236572265625, -0.00200653076171875, -0.014678955078125, 0.050811767578125, 0.0142364501953125, -0.03204345703125, -0.0073089599609375, -0.0225982666015625, -0.023406982421875, 0.0037994384765625, -0.0538330078125, 0.0156707763671875, 0.019500732421875, 0.0036258697509765625, 0.0161895751953125, -0.04864501953125, -0.0146026611328125, -0.03497314453125, 0.002475738525390625, 0.0037097930908203125, -0.00257110595703125, 0.028839111328125, 0.032379150390625, 0.048187255859375, 0.03240966796875, -0.0250396728515625, 0.049591064453125, 0.0271148681640625, 0.0009508132934570312, 0.0237579345703125, 0.0162811279296875, -0.0028400421142578125, -0.0177459716796875, -0.0117340087890625, -0.056854248046875, -0.0032024383544921875, 0.01418304443359375, 0.0059814453125, -0.021148681640625, -0.033050537109375, 0.06414794921875, 0.01129150390625, -0.01250457763671875, 0.00783538818359375, 0.011871337890625, -0.01035308837890625, -0.01511383056640625, 0.01654052734375, 0.00989532470703125, 0.01212310791015625, -0.026153564453125, 0.0227203369140625, -0.039886474609375, 0.0156707763671875, -0.0286407470703125, -0.0053253173828125, -0.004741668701171875, -0.00792694091796875, -0.0211181640625, 0.006008148193359375, 0.02313232421875, -0.034637451171875, -0.03387451171875, -0.006267547607421875, -0.0130767822265625, 0.044830322265625, -0.03082275390625, 0.033660888671875, -0.026641845703125, -0.00423431396484375, -0.06591796875, 0.0255889892578125, 0.0361328125, 0.035003662109375, -0.004608154296875, -0.01214599609375, -0.036834716796875, -0.03314208984375, -0.040313720703125, -0.027008056640625, -0.00640106201171875, 0.0026397705078125, 0.0128936767578125, 0.0193023681640625, -0.01416778564453125, -0.043212890625, -0.0213775634765625, -0.0277862548828125, 0.030609130859375, -0.04150390625, 0.005077362060546875, 0.052703857421875, -0.01079559326171875, 0.050140380859375, 0.01073455810546875, -0.00969696044921875, -0.041473388671875, 0.005352020263671875, -0.01024627685546875, -0.023101806640625, -0.0275421142578125, -0.0128936767578125, -0.01016998291015625, 0.0645751953125, 0.0765380859375, -0.01422119140625, 0.0216217041015625, -0.004486083984375, 0.0086822509765625, -0.00811767578125, -0.01097869873046875, -0.0183868408203125, -0.05059814453125, 0.05999755859375, -0.03662109375, 0.01544952392578125, 0.038543701171875, 0.0275421142578125, 0.01255035400390625, -0.037353515625, 0.026611328125, 0.0163726806640625, -0.031707763671875, 0.0187225341796875, 0.010467529296875, -0.0230712890625, 0.00858306884765625, -0.0156402587890625, -0.0006608963012695312, 0.00876617431640625, 0.0361328125, 0.0064239501953125, -0.0217132568359375, 0.0673828125, 0.01320648193359375, -0.0252532958984375, 0.047607421875, -0.0296783447265625, 0.022705078125, 0.0682373046875, 0.0897216796875, -0.1217041015625, 0.018585205078125, 0.0322265625, 0.02886962890625, 0.02301025390625, -0.0118408203125, -0.0100860595703125, -0.033416748046875, 0.06976318359375, -0.02325439453125, -0.00826263427734375, 0.02886962890625, -0.030242919921875, 0.00745391845703125, 0.01479339599609375, 0.02899169921875, 0.011199951171875, -0.03753662109375, -0.02386474609375, 0.037322998046875, -0.016845703125, -0.03851318359375, 0.0032062530517578125, 0.0203857421875, 0.01091766357421875, -0.0230560302734375, 0.050323486328125, -0.0256805419921875, 0.03466796875, 0.025115966796875, -0.0174713134765625, 0.0196075439453125, 0.0025424957275390625, -0.006618499755859375, -0.0195465087890625, -0.02239990234375, -0.01326751708984375, -0.052459716796875, -0.0240631103515625, 0.0084991455078125, 0.05487060546875, -0.04229736328125, 0.038360595703125, -0.03424072265625, 0.005565643310546875, 0.0055694580078125, 0.00847625732421875, -0.0077362060546875, -0.0116729736328125, -0.015777587890625, 0.035888671875, 0.00464630126953125, 0.004261016845703125, 0.0297393798828125, 0.032012939453125, -0.004566192626953125, 0.0101776123046875, 0.0211181640625, -0.00809478759765625, -0.02239990234375, 0.03265380859375, -0.0667724609375, 0.067138671875, -0.00928497314453125, -0.005702972412109375, -0.020751953125, 0.037261962890625, 0.00115203857421875, 0.02386474609375, -0.061004638671875, 0.05133056640625, -0.03497314453125, 0.08734130859375, -0.059234619140625, -0.0103302001953125, 0.0222930908203125, 0.03289794921875, 0.01300048828125, -0.00583648681640625, -0.0042877197265625, 0.0045318603515625, 0.046417236328125, -0.006771087646484375, -0.0078582763671875, 0.03106689453125, -0.0100555419921875, -0.03558349609375, 0.032135009765625, -0.01497650146484375, 0.024383544921875, -0.018463134765625, -0.003997802734375, -0.00675201416015625, -0.00984954833984375, -0.038970947265625, 0.01384735107421875, 0.0196685791015625, -0.03485107421875, 0.027740478515625, 0.011077880859375, 0.047149658203125, 0.0183258056640625, -0.00042748451232910156, 0.0166168212890625, 0.03680419921875, 0.0169525146484375, -0.0047607421875, 0.04742431640625, 0.0159149169921875, 0.0122222900390625, 0.0007987022399902344, 0.025146484375, 0.0673828125, -0.06378173828125, -0.01593017578125, 0.006496429443359375, -0.037261962890625, 0.0249176025390625, 0.01381683349609375, 0.00849151611328125, -0.026031494140625, 0.0118560791015625, 0.01546478271484375, 0.02801513671875, -0.025299072265625, 0.03753662109375, -0.0027217864990234375, -0.00981903076171875, 0.01548004150390625, -0.039886474609375, 0.054107666015625, -0.035186767578125, -0.07147216796875, -0.0231170654296875, -0.008453369140625, 0.0112457275390625, 0.06280517578125, -0.007038116455078125, 0.0236663818359375, -0.087646484375, -0.04150390625, -0.01515960693359375, 0.033111572265625, 0.0117950439453125, 0.0205230712890625, -0.049713134765625, 0.0643310546875, -0.0207977294921875, 0.00997161865234375, 0.0102996826171875, 0.0119476318359375, 0.012359619140625, -0.0105438232421875, -0.021697998046875, -0.0242462158203125, 0.01375579833984375, 0.032958984375, -0.01003265380859375, 0.08343505859375, 0.048553466796875, 0.04095458984375, 0.016387939453125, -0.0004792213439941406, 0.057861328125, -0.03338623046875, -0.04132080078125, -0.0234375, 0.0037746429443359375, 0.0307159423828125, 0.004009246826171875, 0.018768310546875, 0.01520538330078125, 0.0211181640625, -0.0305023193359375, 0.006732940673828125, -0.001789093017578125, -0.07086181640625, 0.01202392578125, 0.0240631103515625, 0.1009521484375, 0.00847625732421875, -0.03271484375, -0.015960693359375, -0.0208282470703125, 0.0513916015625, -0.0206146240234375, 0.019378662109375, -0.00193023681640625, 0.050384521484375, 0.02996826171875, -0.0301971435546875, -0.01454925537109375, 0.032806396484375, 0.01849365234375, -0.0214385986328125, 0.0015697479248046875, -0.002025604248046875, -0.050384521484375, -0.01027679443359375, 0.00540924072265625, 0.0009655952453613281, 0.003662109375, -0.019500732421875, 0.0477294921875, 0.0113677978515625, 0.019775390625, -0.019012451171875, 0.01904296875, -0.021484375, 0.0635986328125, -0.0200653076171875, -0.03497314453125, -0.008514404296875, -0.00696563720703125, -0.013763427734375, 0.039154052734375, -0.0166778564453125, -0.0121917724609375, -0.02825927734375, 0.04071044921875, 0.0114288330078125, 0.0247802734375, -0.030181884765625, -0.027618408203125, -0.00972747802734375, -0.004878997802734375, -0.003803253173828125, 0.017791748046875, 0.037750244140625, 0.03326416015625, -0.039154052734375, -0.01140594482421875, -0.00760650634765625, -0.0193023681640625, -0.025726318359375, 0.015838623046875, -0.007389068603515625, 0.0172882080078125, -0.02593994140625, -0.0209503173828125, 0.00029921531677246094, 0.0147705078125, -0.0218963623046875, 0.00667572021484375, -0.0438232421875, 0.058929443359375, 0.0367431640625, 0.0594482421875, 0.0006337165832519531, 0.008209228515625, 0.0204315185546875, -0.00811004638671875, 0.0106201171875, 0.00720977783203125, -0.01763916015625, -0.0051422119140625, 0.0005741119384765625, -0.006591796875, 0.040252685546875, -0.0299072265625, 0.021484375, -0.02325439453125, 0.03375244140625, 0.0100860595703125, -0.03857421875, -0.0028438568115234375, -0.0084228515625, 0.0292205810546875, 0.001316070556640625, -0.00878143310546875, 0.0241546630859375, 0.03619384765625, -0.029205322265625, 0.0004982948303222656, -0.0083770751953125, -0.005962371826171875, -0.0036792755126953125, -0.031829833984375, 0.01096343994140625, -0.0094146728515625, -0.061065673828125, -0.033203125, -0.01116943359375, 0.0107421875, 0.015899658203125, -0.036590576171875, -0.02020263671875, 0.01678466796875, 0.0188751220703125, -0.0291595458984375, 0.0021114349365234375, -0.029876708984375, -0.0098419189453125, -0.040008544921875, 0.01422119140625, 0.00836181640625, -0.045806884765625, -0.09423828125, 0.06298828125, -0.0283203125, -0.0255279541015625, -0.050506591796875, 0.0013751983642578125, -0.0167694091796875, 0.0306549072265625, -0.0223388671875, -0.01320648193359375, -0.01513671875, 0.045135498046875, -0.037872314453125, 0.0247955322265625, 0.0128021240234375, -0.056396484375, 0.006534576416015625, -0.025970458984375, 0.0005908012390136719, -0.0166778564453125, 0.0309295654296875, -0.0396728515625, 0.043975830078125, 0.03302001953125, -0.03314208984375, -0.0200347900390625, 0.0170745849609375, -0.0270538330078125, -0.0032978057861328125, -0.0269012451171875, 0.029083251953125, 0.0301361083984375, 0.0265960693359375, 0.0037174224853515625, -0.00653076171875, -0.030364990234375, 0.0088348388671875, -0.03692626953125, -0.047637939453125, -0.015228271484375, 0.006381988525390625, -0.028411865234375, 0.0177154541015625, -0.01306915283203125, -0.02130126953125, -0.04229736328125, 0.032257080078125, -0.057586669921875, -0.020263671875, -0.00289154052734375, 0.008544921875, -0.05560302734375, -0.051300048828125, 0.05279541015625, -0.035125732421875, -0.0100250244140625, 0.017425537109375, 0.03125, 0.00595855712890625, 0.00252532958984375, 0.031768798828125, 0.0198516845703125, -0.034912109375, 0.00891876220703125, 0.027435302734375, 0.0260772705078125, -0.01483154296875, -0.0247802734375, -0.0164337158203125, 0.0165557861328125, 0.0035839080810546875, -0.01473236083984375, -0.006969451904296875, 0.0555419921875, 0.00989532470703125, 0.0665283203125, -0.02154541015625, 0.036834716796875, -0.0255889892578125, 0.068603515625, 0.00681304931640625, -0.01284027099609375, 0.044677734375, -0.02294921875, 0.016510009765625, -0.009063720703125, 0.011505126953125, -0.0175323486328125, 0.004913330078125, 0.03375244140625, -0.0082550048828125, 0.0163116455078125 ]
33b0df7566c9fd085296a6b87a4e9382d7cc7dca
Wordpress Stackexchange Q: how can I check if I have sitemap? maybe it's a very stupid question but I'm just getting into wordpress and I installed a plugin Google XML Sitemaps and activated it, but I'm not quite sure that it really provides me with sitemap.xml how can I check that? when I go to mywebsite.com/sitemap.xml I can see site map information, so I guess it works? A: Yes. Then it works. Add a new post and see if it changes. You can submit your sitemap to search engines but they will eventually pick it up regardless. Just give it time to see results -- it's not instant. Use Google Console https://www.google.com/webmasters/tools/sitemap-list to make sure it's getting picked up.
Q: how can I check if I have sitemap? maybe it's a very stupid question but I'm just getting into wordpress and I installed a plugin Google XML Sitemaps and activated it, but I'm not quite sure that it really provides me with sitemap.xml how can I check that? when I go to mywebsite.com/sitemap.xml I can see site map information, so I guess it works? A: Yes. Then it works. Add a new post and see if it changes. You can submit your sitemap to search engines but they will eventually pick it up regardless. Just give it time to see results -- it's not instant. Use Google Console https://www.google.com/webmasters/tools/sitemap-list to make sure it's getting picked up.
wordpress
{ "language": "en", "length": 117, "provenance": "stackexchange_00019.jsonl.gz:461703", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212458" }
[ 0.0018815994262695312, 0.0131988525390625, 0.05303955078125, 0.07623291015625, -0.01739501953125, -0.006038665771484375, 0.06756591796875, -0.0784912109375, 0.021759033203125, -0.0076904296875, -0.0673828125, 0.01043701171875, -0.042816162109375, -0.01666259765625, -0.01070404052734375, -0.055511474609375, 0.048309326171875, -0.036895751953125, 0.0193939208984375, -0.01043701171875, 0.00911712646484375, 0.0267333984375, 0.03863525390625, 0.076171875, 0.0150604248046875, 0.004901885986328125, 0.05560302734375, 0.0010099411010742188, -0.0008339881896972656, -0.02734375, 0.006103515625, 0.00734710693359375, 0.014434814453125, -0.0027008056640625, 0.016815185546875, 0.013458251953125, -0.0078277587890625, 0.0081329345703125, 0.01534271240234375, 0.01067352294921875, -0.006511688232421875, 0.002185821533203125, 0.01277923583984375, -0.0194244384765625, 0.0011568069458007812, -0.027923583984375, -0.020965576171875, -0.0439453125, -0.028778076171875, -0.050811767578125, 0.0140380859375, 0.000606536865234375, 0.05523681640625, -0.0413818359375, -0.01477813720703125, 0.003185272216796875, 0.01267242431640625, 0.0133209228515625, 0.017181396484375, -0.02593994140625, -0.01409912109375, 0.0265960693359375, 0.01331329345703125, 0.0267486572265625, -0.008880615234375, 0.0177001953125, -0.02508544921875, 0.01039886474609375, -0.0364990234375, -0.0203857421875, 0.0130767822265625, -0.039337158203125, -0.0243072509765625, 0.0191650390625, -0.0127410888671875, -0.033294677734375, 0.0011072158813476562, -0.058929443359375, -0.0004253387451171875, 0.04852294921875, 0.028350830078125, 0.004703521728515625, 0.0101470947265625, -0.01515960693359375, 0.01299285888671875, 0.008209228515625, -0.0031528472900390625, -0.01556396484375, -0.031341552734375, -0.0386962890625, -0.0178375244140625, 0.011444091796875, -0.06341552734375, -0.0199737548828125, -0.014434814453125, -0.033782958984375, 0.05206298828125, 0.11968994140625, -0.04791259765625, -0.017822265625, -0.018890380859375, -0.0300140380859375, -0.01454925537109375, -0.049530029296875, -0.00800323486328125, 0.01326751708984375, 0.022430419921875, 0.0247802734375, 0.024017333984375, 0.0137786865234375, -0.00894927978515625, 0.03863525390625, 0.01654052734375, -0.006130218505859375, -0.03839111328125, -0.0277557373046875, -0.007457733154296875, -0.0098419189453125, 0.0006685256958007812, -0.03253173828125, -0.006656646728515625, 0.0204620361328125, -0.01392364501953125, 0.005077362060546875, 0.004428863525390625, 0.0097198486328125, -0.007843017578125, -0.0029850006103515625, -0.011932373046875, 0.0230712890625, -0.0120391845703125, 0.03753662109375, -0.0062713623046875, -0.0352783203125, -0.05621337890625, -0.00795745849609375, 0.004711151123046875, -0.01434326171875, -0.019561767578125, 0.006011962890625, 0.00308990478515625, 0.00539398193359375, 0.03857421875, -0.03472900390625, 0.0362548828125, -0.01375579833984375, 0.0026226043701171875, 0.05322265625, 0.0077056884765625, -0.026458740234375, 0.06402587890625, -0.0017147064208984375, -0.00783538818359375, -0.01318359375, 0.04522705078125, -0.048370361328125, -0.02740478515625, -0.00963592529296875, 0.058837890625, 0.00501251220703125, 0.018218994140625, 0.00814056396484375, 0.0204315185546875, -0.02484130859375, -0.0260162353515625, -0.019317626953125, -0.044921875, -0.002941131591796875, 0.0162200927734375, -0.0139312744140625, 0.0120849609375, 0.031707763671875, 0.05352783203125, 0.0118865966796875, 0.0047149658203125, 0.01023101806640625, 0.038238525390625, 0.01947021484375, 0.0066986083984375, 0.04888916015625, 0.0204925537109375, -0.007266998291015625, 0.08233642578125, -0.033294677734375, -0.04217529296875, 0.045013427734375, 0.01340484619140625, 0.0716552734375, -0.0003113746643066406, 0.026458740234375, 0.026214599609375, 0.03143310546875, -0.0267486572265625, 0.054412841796875, 0.00786590576171875, -0.0249786376953125, -0.004283905029296875, 0.01062774658203125, -0.016082763671875, -0.0628662109375, -0.00717926025390625, -0.0142822265625, 0.021759033203125, 0.003734588623046875, 0.0015430450439453125, -0.007259368896484375, -0.005756378173828125, 0.016815185546875, 0.053863525390625, 0.01120758056640625, -0.0234222412109375, -0.025970458984375, -0.0013360977172851562, -0.00885009765625, -0.04290771484375, 0.027923583984375, -0.016265869140625, -0.0229339599609375, -0.024810791015625, -0.01220703125, -0.026885986328125, -0.0037555694580078125, -0.031463623046875, 0.0266571044921875, 0.00128173828125, -0.0012235641479492188, -0.02728271484375, -0.007183074951171875, -0.0196380615234375, 0.01953125, -0.019989013671875, 0.0186614990234375, 0.03167724609375, 0.021881103515625, -0.00927734375, -0.006839752197265625, -0.00542449951171875, -0.081787109375, 0.0034656524658203125, 0.0635986328125, 0.0271148681640625, 0.037445068359375, -0.00531768798828125, 0.0007662773132324219, 0.0416259765625, -0.0085906982421875, 0.032257080078125, -0.0189361572265625, 0.00823974609375, 0.050933837890625, -0.0443115234375, -0.00335693359375, 0.01352691650390625, -0.01371002197265625, -0.0283660888671875, 0.038848876953125, -0.00439453125, 0.01305389404296875, -0.041778564453125, 0.039947509765625, -0.0202789306640625, 0.0439453125, 0.0214691162109375, 0.004192352294921875, 0.06561279296875, 0.0460205078125, 0.07373046875, 0.07659912109375, -0.03662109375, 0.0247650146484375, -0.002086639404296875, 0.01514434814453125, 0.0027980804443359375, 0.042022705078125, 0.0712890625, 0.0672607421875, -0.031036376953125, -0.031402587890625, 0.0146636962890625, 0.06365966796875, -0.040496826171875, -0.03314208984375, -0.0693359375, -0.00859832763671875, -0.01285552978515625, -0.03802490234375, 0.0196075439453125, 0.01287078857421875, 0.0015745162963867188, 0.01104736328125, 0.017974853515625, 0.00847625732421875, -0.0246124267578125, 0.0556640625, -0.023834228515625, -0.0237579345703125, 0.052764892578125, -0.06304931640625, 0.0484619140625, -0.030548095703125, 0.048797607421875, 0.0721435546875, -0.00908660888671875, 0.025360107421875, -0.0072479248046875, 0.0030269622802734375, 0.003833770751953125, -0.0103302001953125, -0.0208740234375, -0.00537872314453125, -0.06878662109375, -0.00603485107421875, -0.00235748291015625, -0.02978515625, 0.01493072509765625, -0.036865234375, -0.0197296142578125, -0.0224761962890625, -0.1234130859375, -0.0577392578125, 0.0040130615234375, -0.044647216796875, 0.0007443428039550781, 0.0183868408203125, -0.01395416259765625, -0.0120849609375, 0.050048828125, 0.01032257080078125, -0.034698486328125, -0.048370361328125, -0.0574951171875, -0.094482421875, -0.0772705078125, 0.0081329345703125, 0.0086822509765625, 0.0269927978515625, 0.0080108642578125, 0.018035888671875, 0.01910400390625, -0.03955078125, 0.0217742919921875, 0.040374755859375, -0.008636474609375, 0.00843048095703125, -0.046539306640625, -0.0165557861328125, 0.000006854534149169922, 0.00048542022705078125, 0.0283660888671875, 0.0013914108276367188, 0.01641845703125, -0.00450897216796875, 0.043060302734375, 0.01218414306640625, 0.0271453857421875, -0.04669189453125, -0.04071044921875, -0.0005517005920410156, -0.024871826171875, -0.05438232421875, -0.013153076171875, 0.006748199462890625, -0.0399169921875, -0.004978179931640625, 0.0093841552734375, -0.024658203125, 0.00649261474609375, -0.027496337890625, 0.04022216796875, 0.0099945068359375, 0.042877197265625, 0.00264739990234375, 0.01259613037109375, -0.007617950439453125, 0.0032329559326171875, -0.064697265625, 0.0008244514465332031, -0.040496826171875, 0.034698486328125, -0.004093170166015625, -0.03924560546875, -0.0283660888671875, 0.0174102783203125, -0.007556915283203125, -0.01071929931640625, 0.021942138671875, -0.005840301513671875, 0.02337646484375, -0.001972198486328125, -0.01421356201171875, 0.0013628005981445312, 0.05572509765625, -0.00464630126953125, -0.0231475830078125, 0.0093536376953125, 0.013214111328125, -0.0213623046875, 0.001384735107421875, -0.026763916015625, -0.01544952392578125, -0.06988525390625, -0.007350921630859375, -0.003772735595703125, -0.039276123046875, -0.01039886474609375, -0.0377197265625, -0.060455322265625, -0.03289794921875, 0.007781982421875, -0.006931304931640625, 0.0272369384765625, -0.01403045654296875, -0.007587432861328125, -0.0166015625, 0.0030231475830078125, -0.0380859375, -0.041717529296875, -0.024566650390625, -0.0026092529296875, 0.059844970703125, 0.0189208984375, -0.0452880859375, 0.00899505615234375, 0.0513916015625, 0.0238800048828125, 0.0047760009765625, 0.0040130615234375, -0.036651611328125, 0.03875732421875, 0.01910400390625, -0.005863189697265625, -0.007293701171875, -0.01349639892578125, 0.0157470703125, -0.01189422607421875, -0.00493621826171875, -0.003589630126953125, -0.052276611328125, 0.04632568359375, -0.04058837890625, -0.0016155242919921875, -0.00908660888671875, -0.011627197265625, -0.01096343994140625, -0.0250091552734375, -0.0037212371826171875, 0.01708984375, -0.00334930419921875, 0.022125244140625, -0.0220184326171875, -0.00901031494140625, 0.03717041015625, 0.06207275390625, -0.002132415771484375, 0.0035419464111328125, -0.06768798828125, 0.0092010498046875, 0.025665283203125, 0.043670654296875, 0.02508544921875, 0.0009889602661132812, -0.005420684814453125, 0.0013828277587890625, 0.01263427734375, -0.010162353515625, 0.030242919921875, 0.04315185546875, 0.0276336669921875, 0.0215301513671875, -0.02117919921875, 0.0251007080078125, -0.031646728515625, 0.032318115234375, -0.0178375244140625, -0.0299530029296875, -0.00876617431640625, 0.050506591796875, -0.03369140625, 0.05291748046875, -0.038116455078125, -0.00847625732421875, 0.01454925537109375, -0.0042572021484375, 0.03558349609375, 0.0191802978515625, -0.012420654296875, 0.0048980712890625, 0.019622802734375, -0.0205078125, 0.0167388916015625, 0.059722900390625, 0.0060882568359375, 0.0169830322265625, 0.01415252685546875, -0.039459228515625, -0.03729248046875, -0.020721435546875, 0.11865234375, 0.0049591064453125, -0.07763671875, 0.023681640625, -0.0286865234375, 0.00250244140625, 0.02923583984375, -0.000614166259765625, 0.044586181640625, 0.03448486328125, -0.0246734619140625, -0.0122222900390625, -0.02960205078125, 0.0141448974609375, -0.061065673828125, -0.03155517578125, -0.03228759765625, -0.004070281982421875, 0.031951904296875, 0.01947021484375, -0.0574951171875, 0.03338623046875, 0.003971099853515625, 0.0018930435180664062, -0.0283966064453125, 0.060211181640625, -0.00568389892578125, -0.022674560546875, -0.00013065338134765625, 0.038848876953125, 0.02752685546875, -0.0169219970703125, -0.041015625, -0.00453948974609375, 0.01806640625, -0.018096923828125, 0.0166168212890625, 0.0230255126953125, 0.016143798828125, -0.0226898193359375, 0.01064300537109375, -0.033477783203125, -0.0645751953125, -0.017730712890625, -0.0126495361328125, -0.01366424560546875, -0.04473876953125, 0.00893402099609375, 0.0197601318359375, 0.036041259765625, 0.041778564453125, -0.01491546630859375, -0.029052734375, 0.0174713134765625, 0.041748046875, -0.00800323486328125, -0.0174713134765625, 0.00791168212890625, -0.0270843505859375, 0.022064208984375, -0.0382080078125, -0.019805908203125, 0.042755126953125, -0.0400390625, 0.00754547119140625, -0.0169525146484375, 0.009796142578125, 0.00809478759765625, 0.01125335693359375, 0.018646240234375, -0.00347137451171875, -0.01025390625, -0.0173492431640625, -0.088623046875, -0.049530029296875, 0.01213836669921875, 0.0531005859375, -0.032012939453125, 0.00774383544921875, 0.005954742431640625, 0.01387786865234375, 0.0083770751953125, 0.016693115234375, 0.0125274658203125, 0.0377197265625, 0.006381988525390625, 0.0202178955078125, -0.0159912109375, 0.04248046875, 0.0225372314453125, 0.032867431640625, -0.002532958984375, -0.001926422119140625, -0.0291748046875, -0.0017671585083007812, 0.00843048095703125, -0.038726806640625, -0.0330810546875, -0.00951385498046875, -0.01309967041015625, 0.01496124267578125, 0.0013055801391601562, -0.00237274169921875, -0.01983642578125, 0.0020427703857421875, 0.01477813720703125, 0.001605987548828125, 0.0239715576171875, 0.04388427734375, -0.034576416015625, 0.06646728515625, -0.0330810546875, 0.0062255859375, -0.01140594482421875, -0.0293731689453125, 0.035614013671875, -0.01509857177734375, 0.011322021484375, 0.0290069580078125, -0.0087890625, 0.0257415771484375, 0.0445556640625, -0.0008921623229980469, 0.02691650390625, 0.052581787109375, 0.0130157470703125, -0.0203094482421875, 0.00814056396484375, -0.0255279541015625, -0.02520751953125, 0.0221099853515625, 0.0078887939453125, 0.0255279541015625, 0.038604736328125, -0.0034770965576171875, -0.0011196136474609375, 0.01043701171875, 0.01141357421875, -0.052642822265625, 0.0162506103515625, -0.0184173583984375, 0.0245361328125, 0.045623779296875, -0.0029468536376953125, -0.0289764404296875, -0.038116455078125, 0.036224365234375, -0.0283050537109375, -0.0228729248046875, -0.0016498565673828125, -0.003894805908203125, -0.00414276123046875, -0.0251312255859375, 0.0806884765625, 0.0288848876953125, -0.0537109375, 0.0258331298828125, 0.03192138671875, 0.004390716552734375, -0.017730712890625, 0.020263671875, -0.0128021240234375, -0.006732940673828125, -0.0274658203125, 0.036651611328125, -0.00756072998046875, 0.0187225341796875, 0.015960693359375, 0.02166748046875, 0.04888916015625, 0.04815673828125, 0.0013628005981445312, -0.0209503173828125, 0.0296478271484375, -0.01143646240234375, 0.044525146484375, -0.0127716064453125, 0.0229339599609375, 0.019500732421875, 0.0102996826171875, 0.0007891654968261719, 0.01177978515625, -0.0200347900390625, -0.0167388916015625, 0.0221405029296875, 0.05224609375, -0.02313232421875, -0.01361846923828125, 0.02130126953125, 0.041656494140625, 0.00251007080078125, -0.006183624267578125, 0.0184173583984375, -0.0165863037109375, 0.04351806640625, 0.016998291015625, 0.0266265869140625, -0.022979736328125, 0.01273345947265625, -0.011566162109375, 0.06219482421875, -0.0202484130859375, -0.036163330078125, 0.0004515647888183594, 0.05145263671875, -0.00669097900390625, 0.034271240234375, -0.0026302337646484375, 0.032867431640625, -0.01073455810546875, 0.03460693359375, -0.06793212890625, -0.017547607421875, 0.0029888153076171875, 0.058074951171875, -0.006404876708984375, -0.0012693405151367188, -0.02978515625, -0.01511383056640625, -0.01513671875, 0.0019426345825195312, -0.00650787353515625, 0.0404052734375, -0.00327301025390625, 0.04669189453125, 0.036407470703125, -0.0841064453125, 0.0198822021484375, -0.0345458984375, 0.00986480712890625, 0.00508880615234375, -0.01277923583984375, -0.04547119140625, 0.00890350341796875, -0.0234222412109375, -0.0037860870361328125, 0.004726409912109375, -0.028839111328125, 0.04669189453125, 0.00315093994140625, -0.00052642822265625, -0.0194549560546875, -0.053558349609375, -0.0247802734375, -0.0194244384765625, 0.0178070068359375, -0.0369873046875, 0.024261474609375, 0.01369476318359375, 0.01241302490234375, 0.03680419921875, 0.015838623046875, 0.0178375244140625, 0.0494384765625, -0.025390625, 0.041015625, 0.071044921875, 0.0161895751953125, 0.0198974609375, 0.016021728515625, 0.040863037109375, 0.0528564453125, -0.031829833984375, 0.002140045166015625, 0.0091705322265625, -0.0009627342224121094, -0.0185394287109375, -0.0191497802734375, 0.008758544921875, 0.03814697265625, 0.03265380859375, 0.00698089599609375, 0.00827789306640625, 0.01328277587890625, 0.0095672607421875, 0.0103607177734375, 0.0499267578125, -0.0310516357421875, 0.0212860107421875, -0.01837158203125, -0.01629638671875, -0.006427764892578125, 0.048370361328125, 0.0298614501953125, 0.01873779296875, -0.0264434814453125, -0.022308349609375, -0.0118408203125, 0.0014848709106445312, 0.001934051513671875, 0.0269622802734375, -0.049072265625, -0.026397705078125, 0.029937744140625, 0.053680419921875, -0.0166473388671875, 0.00861358642578125, 0.006031036376953125, 0.04290771484375, 0.01129913330078125, -0.0140838623046875, 0.0753173828125, -0.01239776611328125, -0.03363037109375, -0.036407470703125, 0.013092041015625, 0.046112060546875, 0.0223388671875, 0.03436279296875, -0.0016717910766601562, 0.06060791015625, -0.037933349609375, 0.0289764404296875, -0.01029205322265625, -0.021209716796875, 0.05377197265625, -0.00496673583984375, 0.06884765625, -0.0023441314697265625, -0.040008544921875, -0.0200653076171875, 0.03546142578125, -0.025054931640625, -0.0360107421875, 0.0226287841796875, -0.0036468505859375, 0.00836181640625, -0.007122039794921875, -0.00014126300811767578, 0.023223876953125, -0.01116180419921875, -0.0208740234375, 0.036376953125, 0.032623291015625, 0.0026340484619140625, 0.00032401084899902344, -0.01184844970703125, 0.018341064453125, 0.039306640625, -0.0166778564453125, 0.0249481201171875, -0.005786895751953125, 0.003276824951171875, 0.00733184814453125, -0.0004100799560546875, -0.006927490234375, -0.00844573974609375, 0.030975341796875, -0.031890869140625, -0.0170745849609375, -0.00897979736328125, -0.039825439453125, 0.0205078125, 0.018768310546875, -0.034210205078125, 0.00681304931640625, 0.00018966197967529297, 0.005985260009765625, -0.007556915283203125, 0.0041351318359375, -0.0355224609375, -0.070068359375, -0.03436279296875, 0.025238037109375, 0.00042819976806640625, 0.0005555152893066406, -0.0283355712890625, 0.04931640625, -0.0139312744140625, -0.037933349609375, -0.00396728515625, -0.07049560546875, -0.006649017333984375, 0.042083740234375, -0.00673675537109375, -0.004638671875, 0.003692626953125, -0.015777587890625, 0.0134429931640625, 0.01560211181640625, -0.007678985595703125, 0.01470947265625, -0.027496337890625, 0.00913238525390625, -0.01210784912109375, -0.00653076171875, -0.0531005859375, -0.00954437255859375, 0.023162841796875, 0.01525115966796875, 0.01444244384765625, -0.04229736328125, -0.007457733154296875, -0.02264404296875, -0.01222991943359375, 0.031585693359375, -0.0147552490234375, 0.0187835693359375, -0.00356292724609375, 0.015899658203125, 0.05291748046875, -0.00952911376953125, -0.045166015625, 0.035675048828125, -0.053924560546875, 0.018463134765625, 0.00911712646484375, 0.0038585662841796875, 0.008819580078125, 0.0167388916015625, -0.0321044921875, 0.0161895751953125, 0.00007367134094238281, -0.0167236328125, 0.037567138671875, 0.02313232421875, 0.0210113525390625, -0.033416748046875, -0.00841522216796875, -0.003887176513671875, 0.0204620361328125, 0.036529541015625, 0.02471923828125, -0.03363037109375, 0.02142333984375, -0.0418701171875, -0.005252838134765625, 0.0086517333984375, 0.02294921875, -0.08978271484375, -0.04779052734375, -0.072998046875, 0.03546142578125, 0.018798828125, -0.0521240234375, -0.1199951171875, 0.046661376953125, -0.050048828125, -0.0274810791015625, -0.04376220703125, -0.018157958984375, 0.005481719970703125, -0.038360595703125, -0.036224365234375, 0.00426483154296875, -0.040496826171875, 0.046966552734375, 0.009490966796875, 0.0535888671875, -0.021453857421875, 0.0080108642578125, -0.016876220703125, 0.050994873046875, 0.041595458984375, 0.00867462158203125, 0.046966552734375, -0.0268707275390625, 0.03924560546875, 0.0633544921875, -0.0191650390625, -0.03997802734375, -0.01140594482421875, -0.040283203125, -0.0191802978515625, -0.0031414031982421875, -0.048187255859375, -0.0026569366455078125, 0.0858154296875, 0.08343505859375, 0.027252197265625, -0.043853759765625, -0.0283050537109375, -0.036712646484375, -0.00807952880859375, -0.038177490234375, 0.01214599609375, -0.0716552734375, -0.0072021484375, -0.002742767333984375, -0.01406097412109375, -0.0106964111328125, 0.008056640625, -0.042724609375, -0.0090179443359375, 0.018524169921875, 0.002155303955078125, -0.0287933349609375, 0.0015544891357421875, 0.060394287109375, -0.0296783447265625, 0.0307464599609375, -0.035797119140625, 0.02685546875, 0.0447998046875, -0.049041748046875, 0.023895263671875, 0.05743408203125, -0.047088623046875, -0.050994873046875, 0.0362548828125, 0.008056640625, 0.0380859375, -0.0251007080078125, -0.00848388671875, -0.01029205322265625, 0.019256591796875, -0.026275634765625, -0.0377197265625, -0.005397796630859375, -0.00626373291015625, 0.01910400390625, 0.04754638671875, 0.07159423828125, -0.0007748603820800781, 0.08349609375, -0.0218658447265625, -0.049957275390625, -0.0325927734375, -0.034820556640625, 0.00753021240234375, -0.006443023681640625, 0.006072998046875, -0.0765380859375, 0.041259765625, -0.05426025390625, -0.0019435882568359375, 0.0318603515625 ]
5539bd6012b8d26f972bd062dbc53a7b577fc647
Wordpress Stackexchange Q: Filter by custom field in custom post type on admin page I've used Advanced Custom Fields to create custom fields for Competition name, answers etc. I've made a custom post type for competitions as shown on the image and I used Wordpress functions.php to create the columns from my custom fields values. I'm trying to get a "Filter by"-dropdown box with the competitions different names/labels like shown below, but I can only find solutions using taxonomies, which I rather not use if possible because I've only used custom fields for everything else. Is it possible to make a custom "Filter by" dropdown using only custom fields? A: And for displaying result for Filter then try this code add_filter( 'parse_query', 'prefix_parse_filter' ); function prefix_parse_filter($query) { global $pagenow; $current_page = isset( $_GET['post_type'] ) ? $_GET['post_type'] : ''; if ( is_admin() && 'competition' == $current_page && 'edit.php' == $pagenow && isset( $_GET['competition-name'] ) && $_GET['competition-name'] != '' ) { $competition_name = $_GET['competition-name']; $query->query_vars['meta_key'] = 'competition_name'; $query->query_vars['meta_value'] = $competition_name; $query->query_vars['meta_compare'] = '='; } } Change the meta key and meta value as required. I have taken "competition name as meta_key and "competition-name" as select drop down name.
Q: Filter by custom field in custom post type on admin page I've used Advanced Custom Fields to create custom fields for Competition name, answers etc. I've made a custom post type for competitions as shown on the image and I used Wordpress functions.php to create the columns from my custom fields values. I'm trying to get a "Filter by"-dropdown box with the competitions different names/labels like shown below, but I can only find solutions using taxonomies, which I rather not use if possible because I've only used custom fields for everything else. Is it possible to make a custom "Filter by" dropdown using only custom fields? A: And for displaying result for Filter then try this code add_filter( 'parse_query', 'prefix_parse_filter' ); function prefix_parse_filter($query) { global $pagenow; $current_page = isset( $_GET['post_type'] ) ? $_GET['post_type'] : ''; if ( is_admin() && 'competition' == $current_page && 'edit.php' == $pagenow && isset( $_GET['competition-name'] ) && $_GET['competition-name'] != '' ) { $competition_name = $_GET['competition-name']; $query->query_vars['meta_key'] = 'competition_name'; $query->query_vars['meta_value'] = $competition_name; $query->query_vars['meta_compare'] = '='; } } Change the meta key and meta value as required. I have taken "competition name as meta_key and "competition-name" as select drop down name. A: The restrict_manage_posts action triggers the add_extra_tablenav() function, which is how you add additional dropdowns to your desired List Table. In the example below, we first ensure that the Post Type is correct, and then we grab all DB values stored against the competition_name key in the postmeta table (you must change the key name as required). The query is fairly basic and only checks to see if the Competition is published, takes only unique values (you don't want duplication in the dropdown) and then orders them alphabetically. Next we check for results (no point outputting the dropdown for nothing), and then construct the options (including a defualt to show all). Finally the dropdown is output. As stated in my comment, this isn't the end of the story though; you'll need some logic to tell the List Table to only show your desired results when the filter is active, but I'll leave you to have a look at that and then start another question if you require further assistance. Hint - check out the file /wp-admin/includes/class-wp-posts-list-table.php, and it's parent .../wp-class-list-table.php /** * Add extra dropdowns to the List Tables * * @param required string $post_type The Post Type that is being displayed */ add_action('restrict_manage_posts', 'add_extra_tablenav'); function add_extra_tablenav($post_type){ global $wpdb; /** Ensure this is the correct Post Type*/ if($post_type !== 'competition') return; /** Grab the results from the DB */ $query = $wpdb->prepare(' SELECT DISTINCT pm.meta_value FROM %1$s pm LEFT JOIN %2$s p ON p.ID = pm.post_id WHERE pm.meta_key = "%3$s" AND p.post_status = "%4$s" AND p.post_type = "%5$s" ORDER BY "%6$s"', $wpdb->postmeta, $wpdb->posts, 'competition_name', // Your meta key - change as required 'publish', // Post status - change as required $post_type, 'competition_name' ); $results = $wpdb->get_col($query); /** Ensure there are options to show */ if(empty($results)) return; // get selected option if there is one selected if (isset( $_GET['competition-name'] ) && $_GET['competition-name'] != '') { $selectedName = $_GET['competition-name']; } else { $selectedName = -1; } /** Grab all of the options that should be shown */ $options[] = sprintf('<option value="-1">%1$s</option>', __('All Competitions', 'your-text-domain')); foreach($results as $result) : if ($result == $selectedName) { $options[] = sprintf('<option value="%1$s" selected>%2$s</option>', esc_attr($result), $result); } else { $options[] = sprintf('<option value="%1$s">%2$s</option>', esc_attr($result), $result); } endforeach; /** Output the dropdown menu */ echo '<select class="" id="competition-name" name="competition-name">'; echo join("\n", $options); echo '</select>'; } A: If this isn't working for anyone, my solution was needing to add the Column I was trying to filter by to the list of Sortable columns for my custom post type. // Make Custom Post Type Custom Columns Sortable function cpt_custom_columns_sortable( $columns ) { // Add our columns to $columns array $columns['item_number'] = 'item_number'; $columns['coat_school'] = 'coat_school'; return $columns; } add_filter( 'manage_edit-your-custom-post-type-slug_sortable_columns', 'cpt_custom_columns_sortable' ); A: Replace the query below to correct the wpdb:prepare error: $query = $wpdb->prepare(' SELECT DISTINCT pm.meta_value FROM %1$s pm LEFT JOIN %2$s p ON p.ID = pm.post_id WHERE pm.meta_key = "%3$s" AND p.post_status = "%4$s" AND p.post_type = "%5$s" ORDER BY "%3$s"', $wpdb->postmeta, $wpdb->posts, 'competition_name', // Your meta key - change as required 'publish', // Post status - change as required $post_type, 'competition_name' //this is needed a second time to define "%3$s" in ORDER BY ); A: I ave faced the same issue when I was trying to filter custom-post-type with custom-field but I have resolved this issue in the following steps. Converted custom-field name from writer to _writer and then I have updated following code inside callback function of parse_query hook that I can add custom-field meta_query like $query->set( 'meta_query', array( array( 'key' => '_writer', 'compare' => '=', 'value' => $_GET['_writer'], 'type' => 'numeric', ) ) ); This Above Solution Worked for me. Documentation https://developer.wordpress.org/reference/hooks/pre_get_posts/ Helpful Links https://developer.wordpress.org/reference/hooks/pre_get_posts/#comment-2571 https://stackoverflow.com/questions/47869905/how-can-i-filter-records-in-custom-post-type-list-in-admin-based-on-user-id-that
wordpress
{ "language": "en", "length": 805, "provenance": "stackexchange_00019.jsonl.gz:461722", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212519" }
[ 0.0244293212890625, -0.026397705078125, 0.02490234375, -0.03924560546875, -0.008453369140625, 0.0010557174682617188, 0.0296783447265625, 0.01190948486328125, -0.0203704833984375, 0.01117706298828125, 0.0142669677734375, -0.0252532958984375, -0.017822265625, -0.04583740234375, -0.0028533935546875, -0.044097900390625, 0.01113128662109375, 0.0037288665771484375, 0.011199951171875, -0.0200653076171875, 0.0085906982421875, -0.0235137939453125, 0.018707275390625, 0.034515380859375, 0.01078033447265625, -0.0293731689453125, 0.032806396484375, -0.02752685546875, 0.01244354248046875, -0.01216888427734375, 0.0028667449951171875, 0.01158905029296875, -0.0062713623046875, -0.0007262229919433594, 0.055694580078125, 0.065185546875, 0.03521728515625, 0.007389068603515625, 0.04974365234375, 0.0167388916015625, 0.036834716796875, -0.032745361328125, -0.0384521484375, 0.0139617919921875, -0.0113067626953125, -0.058746337890625, 0.06365966796875, -0.041290283203125, 0.0046539306640625, 0.0292816162109375, 0.0013093948364257812, 0.0199737548828125, 0.00344085693359375, -0.0189208984375, -0.0000426173210144043, -0.0225982666015625, 0.00637054443359375, -0.0005984306335449219, 0.015655517578125, -0.0037059783935546875, -0.020111083984375, 0.0111236572265625, 0.01377105712890625, -0.0016889572143554688, -0.01153564453125, 0.004810333251953125, -0.0016164779663085938, 0.007015228271484375, -0.0050048828125, -0.01678466796875, 0.004032135009765625, -0.01000213623046875, 0.00838470458984375, -0.0106658935546875, -0.0288238525390625, -0.033538818359375, 0.01497650146484375, -0.041748046875, 0.006114959716796875, 0.00665283203125, 0.0011892318725585938, -0.0178985595703125, -0.01049041748046875, 0.039398193359375, -0.03460693359375, 0.03802490234375, -0.02484130859375, -0.015167236328125, 0.00759124755859375, -0.0207672119140625, 0.0029850006103515625, -0.03729248046875, -0.04315185546875, 0.053192138671875, 0.0102386474609375, -0.0140533447265625, 0.03643798828125, 0.03179931640625, 0.011505126953125, 0.01172637939453125, -0.00970458984375, -0.033355712890625, 0.02825927734375, -0.033172607421875, -0.00106048583984375, 0.02191162109375, -0.00930023193359375, 0.051513671875, 0.039459228515625, 0.037261962890625, 0.0094146728515625, -0.0465087890625, -0.04388427734375, 0.026885986328125, -0.054443359375, 0.007564544677734375, -0.042510986328125, -0.0477294921875, -0.04168701171875, -0.0184173583984375, 0.032196044921875, 0.0170135498046875, 0.04998779296875, -0.034912109375, 0.014801025390625, 0.00014829635620117188, -0.05810546875, -0.036651611328125, -0.01297760009765625, 0.0233154296875, -0.027008056640625, 0.025115966796875, 0.0665283203125, 0.030853271484375, 0.0014944076538085938, -0.01448822021484375, 0.049560546875, -0.047637939453125, 0.00966644287109375, -0.0010824203491210938, 0.0277252197265625, 0.0006780624389648438, -0.0124664306640625, 0.006938934326171875, -0.0106048583984375, 0.026885986328125, 0.02313232421875, -0.007541656494140625, -0.010986328125, -0.03570556640625, -0.040313720703125, 0.00948333740234375, 0.049774169921875, 0.0179290771484375, -0.04876708984375, 0.0280303955078125, 0.037506103515625, -0.0230560302734375, -0.06036376953125, -0.036407470703125, 0.018646240234375, 0.0221710205078125, 0.023162841796875, -0.00873565673828125, -0.0134735107421875, -0.01861572265625, -0.0251312255859375, -0.01103973388671875, 0.0078887939453125, -0.036590576171875, 0.037841796875, 0.0203399658203125, 0.009613037109375, -0.00919342041015625, 0.0115966796875, -0.0233154296875, 0.0175323486328125, 0.0089263916015625, 0.02490234375, -0.000926971435546875, -0.02001953125, -0.03466796875, 0.07421875, -0.036712646484375, -0.0458984375, 0.034759521484375, -0.004222869873046875, 0.0257415771484375, 0.01090240478515625, 0.0008406639099121094, 0.020751953125, 0.01210784912109375, 0.0147857666015625, 0.005451202392578125, -0.018585205078125, -0.048614501953125, 0.002185821533203125, -0.00655364990234375, -0.023284912109375, 0.038665771484375, -0.0018320083618164062, 0.007282257080078125, 0.01457977294921875, 0.01544952392578125, -0.038299560546875, 0.0289764404296875, -0.0357666015625, 0.036346435546875, -0.035980224609375, -0.0038471221923828125, 0.03851318359375, -0.0109710693359375, -0.035400390625, 0.00677490234375, -0.01421356201171875, -0.016448974609375, -0.004421234130859375, 0.0011148452758789062, -0.006916046142578125, 0.000904083251953125, -0.0017337799072265625, -0.031829833984375, -0.0279693603515625, -0.0031223297119140625, 0.033447265625, -0.0175018310546875, -0.020355224609375, -0.018951416015625, 0.0265045166015625, -0.01739501953125, 0.0083160400390625, 0.06329345703125, 0.0245819091796875, 0.030181884765625, 0.01033782958984375, -0.000934600830078125, 0.040191650390625, -0.06951904296875, 0.0171051025390625, 0.02728271484375, 0.0272369384765625, 0.0380859375, -0.003261566162109375, 0.0134429931640625, 0.06341552734375, -0.03369140625, -0.006458282470703125, 0.01273345947265625, 0.006870269775390625, 0.05657958984375, -0.022369384765625, 0.0115509033203125, -0.001041412353515625, -0.022491455078125, 0.00949859619140625, 0.0269927978515625, -0.01525115966796875, -0.0013856887817382812, 0.00820159912109375, 0.00518035888671875, -0.0189666748046875, -0.005413055419921875, 0.0006241798400878906, 0.0027484893798828125, 0.05853271484375, -0.00196075439453125, 0.05322265625, 0.034698486328125, -0.0246124267578125, 0.00621795654296875, 0.01000213623046875, -0.0005793571472167969, -0.0156097412109375, -0.033599853515625, 0.014984130859375, -0.0282440185546875, -0.0455322265625, 0.0419921875, 0.00905609130859375, -0.04150390625, 0.01380157470703125, 0.0548095703125, -0.0294342041015625, -0.01082611083984375, -0.005947113037109375, -0.056549072265625, -0.00637054443359375, 0.0248565673828125, 0.0191650390625, -0.0435791015625, -0.00018274784088134766, -0.01364898681640625, -0.04345703125, 0.061309814453125, 0.01593017578125, -0.062744140625, 0.0093994140625, -0.007232666015625, 0.0273590087890625, -0.00498199462890625, 0.04339599609375, 0.06903076171875, -0.0209503173828125, 0.046234130859375, -0.0007734298706054688, -0.004291534423828125, -0.01213836669921875, 0.0035953521728515625, -0.0190582275390625, -0.005741119384765625, -0.0677490234375, -0.01108551025390625, 0.0287628173828125, 0.0330810546875, 0.035552978515625, -0.0129241943359375, 0.028411865234375, 0.043212890625, -0.0015554428100585938, -0.031005859375, -0.06573486328125, 0.0086212158203125, -0.01873779296875, -0.01751708984375, 0.011932373046875, 0.037841796875, -0.06207275390625, 0.00971221923828125, 0.00838470458984375, -0.01204681396484375, -0.057464599609375, -0.0222320556640625, -0.0472412109375, 0.04644775390625, 0.002178192138671875, 0.007205963134765625, -0.0018682479858398438, 0.1114501953125, 0.0230255126953125, -0.0694580078125, 0.01275634765625, 0.04351806640625, -0.0458984375, 0.020477294921875, 0.0146331787109375, -0.05914306640625, 0.0673828125, -0.0128021240234375, 0.0421142578125, 0.03875732421875, -0.017608642578125, -0.01233673095703125, -0.0078277587890625, 0.022918701171875, 0.041900634765625, -0.0292205810546875, -0.020843505859375, 0.041351318359375, 0.037017822265625, -0.01715087890625, -0.016387939453125, 0.007236480712890625, -0.0012531280517578125, 0.0506591796875, -0.00897979736328125, -0.0158843994140625, 0.004810333251953125, 0.063720703125, 0.00789642333984375, -0.00044846534729003906, -0.0028533935546875, -0.050537109375, 0.0277557373046875, 0.0239410400390625, 0.06390380859375, 0.0169830322265625, 0.0026493072509765625, -0.040435791015625, 0.06854248046875, 0.0229949951171875, 0.01108551025390625, 0.043609619140625, -0.0204315185546875, 0.03765869140625, -0.08062744140625, 0.06365966796875, -0.004016876220703125, -0.0269317626953125, -0.00725555419921875, -0.03717041015625, 0.0227508544921875, 0.09014892578125, -0.037933349609375, -0.0187530517578125, 0.0052032470703125, -0.007366180419921875, 0.017425537109375, 0.0165863037109375, -0.0180816650390625, -0.0222320556640625, -0.09564208984375, 0.00948333740234375, -0.028472900390625, -0.0172119140625, -0.04583740234375, 0.0283660888671875, -0.075439453125, -0.04229736328125, 0.01496124267578125, -0.06048583984375, 0.0181732177734375, 0.0024204254150390625, -0.039794921875, -0.007083892822265625, -0.0044097900390625, -0.05535888671875, -0.044921875, -0.00804901123046875, -0.018463134765625, 0.0309906005859375, -0.003520965576171875, 0.0229949951171875, -0.0147705078125, 0.031402587890625, 0.0399169921875, -0.0006475448608398438, -0.00719451904296875, -0.04815673828125, -0.0197906494140625, 0.020294189453125, 0.002834320068359375, -0.0236358642578125, -0.005069732666015625, -0.0181884765625, -0.006999969482421875, -0.005298614501953125, -0.028594970703125, -0.020355224609375, -0.01488494873046875, -0.02691650390625, -0.082763671875, -0.03741455078125, -0.0238800048828125, -0.0252227783203125, -0.019287109375, -0.0243377685546875, 0.003932952880859375, -0.062164306640625, 0.04412841796875, 0.0197601318359375, -0.002742767333984375, 0.002880096435546875, 0.049102783203125, 0.01049041748046875, -0.03570556640625, -0.061553955078125, -0.007022857666015625, 0.0290985107421875, -0.00838470458984375, 0.0416259765625, 0.004505157470703125, -0.00791168212890625, 0.0634765625, -0.0124359130859375, -0.0051422119140625, -0.01424407958984375, 0.02935791015625, -0.0001233816146850586, -0.0248870849609375, 0.0188140869140625, -0.0076904296875, 0.032684326171875, 0.0071868896484375, -0.019439697265625, -0.0262451171875, -0.0017995834350585938, 0.06256103515625, -0.01514434814453125, 0.01444244384765625, -0.048065185546875, -0.0008778572082519531, 0.0082244873046875, 0.0032215118408203125, 0.016632080078125, 0.016448974609375, -0.01053619384765625, -0.01495361328125, -0.040985107421875, 0.019989013671875, -0.0155487060546875, 0.0176544189453125, -0.0178680419921875, 0.0258331298828125, 0.0005488395690917969, 0.013092041015625, -0.01436614990234375, -0.002349853515625, 0.06744384765625, -0.0008440017700195312, -0.0305328369140625, 0.011810302734375, -0.006534576416015625, 0.0165252685546875, 0.0224151611328125, -0.01433563232421875, -0.0064849853515625, 0.042510986328125, -0.0008478164672851562, 0.033905029296875, 0.007793426513671875, 0.0175323486328125, -0.01360321044921875, -0.014251708984375, 0.0040130615234375, -0.00921630859375, -0.0220184326171875, 0.072509765625, -0.011444091796875, 0.033721923828125, -0.01200103759765625, 0.036895751953125, 0.035888671875, 0.01074981689453125, 0.019195556640625, -0.017181396484375, 0.01332855224609375, -0.01898193359375, 0.0005917549133300781, -0.01094818115234375, -0.0172576904296875, -0.009796142578125, 0.00498199462890625, -0.007022857666015625, 0.0115966796875, 0.040618896484375, 0.006725311279296875, -0.02862548828125, 0.00244140625, 0.03460693359375, 0.016204833984375, -0.04052734375, -0.048065185546875, 0.01337432861328125, 0.040435791015625, -0.0248260498046875, 0.021759033203125, -0.0394287109375, 0.0278778076171875, -0.016754150390625, 0.01401519775390625, -0.0159149169921875, -0.030303955078125, -0.02166748046875, -0.0077972412109375, 0.00006192922592163086, -0.0335693359375, -0.0225372314453125, -0.0126190185546875, -0.01251220703125, 0.07080078125, -0.0264739990234375, 0.01554107666015625, -0.0362548828125, 0.0261383056640625, -0.0577392578125, 0.006908416748046875, 0.019134521484375, -0.006603240966796875, -0.0032501220703125, -0.007503509521484375, -0.00879669189453125, -0.022979736328125, 0.0072784423828125, -0.00792694091796875, 0.007511138916015625, -0.0172882080078125, 0.0029144287109375, 0.00972747802734375, 0.0176544189453125, 0.007659912109375, -0.018951416015625, 0.00559234619140625, 0.0010013580322265625, -0.0066375732421875, -0.004558563232421875, 0.039794921875, -0.005451202392578125, 0.0372314453125, 0.001361846923828125, 0.0014705657958984375, -0.0168914794921875, -0.0139923095703125, -0.0019245147705078125, -0.0987548828125, -0.0350341796875, 0.00543975830078125, -0.051116943359375, 0.0745849609375, 0.038726806640625, -0.0069122314453125, 0.0301666259765625, -0.0167694091796875, 0.00473785400390625, -0.0240478515625, -0.029449462890625, -0.030853271484375, 0.0030002593994140625, 0.0126495361328125, -0.051055908203125, -0.007144927978515625, 0.010406494140625, -0.02313232421875, 0.0430908203125, -0.0245513916015625, 0.0261688232421875, 0.040985107421875, -0.01358795166015625, 0.018310546875, 0.030487060546875, 0.024200439453125, 0.032989501953125, -0.002285003662109375, 0.0247802734375, -0.00855255126953125, 0.0041656494140625, -0.01491546630859375, -0.01346588134765625, 0.06829833984375, 0.01552581787109375, -0.0264739990234375, 0.06549072265625, -0.033172607421875, -0.0037994384765625, 0.05474853515625, 0.03515625, -0.10516357421875, 0.0014657974243164062, 0.008544921875, 0.00884246826171875, 0.0179901123046875, 0.03387451171875, -0.00800323486328125, 0.0245361328125, -0.06036376953125, -0.01233673095703125, -0.04180908203125, -0.00708770751953125, 0.050140380859375, -0.004650115966796875, -0.01013946533203125, 0.06402587890625, -0.0033817291259765625, 0.004070281982421875, -0.01715087890625, -0.01560211181640625, -0.001636505126953125, -0.025390625, 0.0196990966796875, -0.010711669921875, -0.0198822021484375, -0.07672119140625, -0.0229034423828125, -0.0212249755859375, -0.01372528076171875, 0.01345062255859375, 0.043670654296875, 0.036590576171875, 0.055908203125, 0.0169677734375, -0.01058197021484375, 0.0178985595703125, 0.00266265869140625, -0.0141448974609375, -0.0257568359375, -0.019500732421875, 0.0006070137023925781, -0.035247802734375, 0.010772705078125, -0.0379638671875, -0.009674072265625, -0.01218414306640625, 0.01227569580078125, 0.093994140625, -0.00943756103515625, -0.045013427734375, 0.009735107421875, -0.00959014892578125, -0.00823211669921875, 0.034271240234375, -0.017974853515625, -0.0204315185546875, -0.039794921875, -0.0146331787109375, -0.100830078125, -0.00522613525390625, -0.007381439208984375, -0.07330322265625, 0.01788330078125, 0.016632080078125, 0.03411865234375, 0.01302337646484375, -0.007732391357421875, -0.0189208984375, -0.0273284912109375, -0.02386474609375, 0.029876708984375, -0.01003265380859375, 0.0499267578125, -0.06304931640625, -0.01462554931640625, 0.006839752197265625, 0.060882568359375, 0.0300140380859375, 0.006870269775390625, 0.01149749755859375, -0.0164642333984375, 0.050445556640625, 0.045989990234375, -0.0035724639892578125, -0.011627197265625, 0.0120849609375, 0.0703125, 0.0587158203125, -0.0361328125, 0.0257110595703125, -0.01287841796875, 0.0012407302856445312, 0.050506591796875, 0.0014371871948242188, 0.022491455078125, 0.009368896484375, -0.006999969482421875, 0.0157928466796875, -0.01462554931640625, 0.00295257568359375, -0.03961181640625, 0.006320953369140625, 0.039886474609375, 0.061431884765625, -0.04693603515625, -0.046234130859375, -0.0227813720703125, 0.0484619140625, 0.023651123046875, 0.044952392578125, 0.05352783203125, 0.024566650390625, 0.07904052734375, -0.03106689453125, 0.034332275390625, -0.0013093948364257812, -0.005405426025390625, 0.03936767578125, -0.01137542724609375, 0.00585174560546875, -0.044677734375, 0.033477783203125, 0.0026493072509765625, 0.029266357421875, -0.04949951171875, -0.0458984375, -0.0034694671630859375, 0.004993438720703125, 0.0079803466796875, 0.01558685302734375, 0.0077362060546875, 0.052520751953125, 0.0458984375, -0.06591796875, 0.0250091552734375, 0.038665771484375, -0.0087738037109375, -0.0255126953125, 0.0015468597412109375, -0.0062103271484375, 0.03424072265625, -0.023834228515625, -0.032257080078125, 0.019866943359375, 0.05572509765625, 0.018218994140625, 0.0147857666015625, -0.03765869140625, -0.015472412109375, -0.03790283203125, 0.01313018798828125, 0.02520751953125, 0.033355712890625, -0.036102294921875, 0.01522064208984375, -0.01093292236328125, 0.0445556640625, 0.0026454925537109375, 0.05035400390625, 0.0335693359375, 0.006275177001953125, -0.005092620849609375, 0.0005612373352050781, 0.0157470703125, -0.044189453125, 0.00970458984375, -0.04840087890625, 0.0333251953125, 0.01123809814453125, 0.00661468505859375, -0.0099334716796875, 0.01214599609375, 0.02130126953125, 0.00873565673828125, 0.018096923828125, 0.01214599609375, -0.027984619140625, 0.002162933349609375, -0.01666259765625, 0.031463623046875, 0.016021728515625, -0.1259765625, -0.0291290283203125, -0.0209503173828125, -0.07281494140625, 0.06597900390625, 0.07147216796875, -0.009521484375, -0.0271453857421875, 0.0273590087890625, -0.042633056640625, -0.00302886962890625, 0.0284271240234375, 0.03167724609375, 0.00560760498046875, -0.0306243896484375, -0.007312774658203125, -0.005130767822265625, -0.004230499267578125, 0.042572021484375, 0.003047943115234375, 0.003574371337890625, 0.0286407470703125, -0.00833892822265625, 0.01276397705078125, -0.018157958984375, -0.017547607421875, 0.01096343994140625, -0.022308349609375, 0.0496826171875, 0.000034928321838378906, -0.038421630859375, -0.0082244873046875, 0.03765869140625, 0.019866943359375, 0.03070068359375, -0.0726318359375, 0.01213836669921875, -0.027435302734375, 0.0036163330078125, -0.037872314453125, -0.00655364990234375, -0.01312255859375, -0.00818634033203125, 0.0003256797790527344, -0.0161590576171875, 0.02996826171875, 0.04376220703125, -0.00432586669921875, 0.032501220703125, 0.008544921875, 0.00717926025390625, 0.038482666015625, -0.0287017822265625, 0.06976318359375, 0.040771484375, -0.033966064453125, -0.00556182861328125, 0.048828125, -0.0038967132568359375, 0.01080322265625, 0.033172607421875, 0.006237030029296875, 0.03656005859375, -0.05364990234375, 0.032257080078125, 0.0032138824462890625, 0.040985107421875, -0.0160064697265625, -0.0016231536865234375, 0.021514892578125, -0.003162384033203125, -0.0010280609130859375, -0.031951904296875, -0.0185546875, -0.00548553466796875, -0.0277252197265625, 0.00496673583984375, 0.0015344619750976562, -0.05792236328125, -0.0242156982421875, -0.00040650367736816406, 0.030426025390625, -0.0038394927978515625, -0.0298919677734375, 0.00794219970703125, -0.04266357421875, 0.01000213623046875, 0.006877899169921875, -0.001537322998046875, 0.01557159423828125, 0.06707763671875, 0.01129913330078125, -0.002140045166015625, -0.0017175674438476562, 0.0206451416015625, 0.009613037109375, -0.02325439453125, 0.032073974609375, 0.01357269287109375, -0.08013916015625, -0.0245208740234375, -0.0310821533203125, 0.00403594970703125, -0.0310821533203125, -0.016754150390625, 0.00026035308837890625, 0.01360321044921875, -0.039093017578125, -0.089599609375, 0.0271759033203125, -0.06353759765625, -0.0046844482421875, 0.042633056640625, 0.0032215118408203125, 0.03857421875, -0.01125335693359375, -0.07989501953125, 0.028472900390625, -0.00295257568359375, -0.03875732421875, -0.0285797119140625, -0.00981903076171875, -0.0026149749755859375, 0.0287017822265625, 0.004482269287109375, -0.051727294921875, -0.044342041015625, 0.0072784423828125, 0.0163116455078125, 0.0024089813232421875, 0.03759765625, 0.0177764892578125, -0.08740234375, -0.004146575927734375, -0.02508544921875, 0.02069091796875, 0.00392913818359375, -0.021240234375, 0.0125274658203125, 0.01511383056640625, -0.046539306640625, -0.078125, -0.00676727294921875, -0.0064849853515625, 0.0256500244140625, -0.0295257568359375, -0.0885009765625, -0.06298828125, 0.0543212890625, 0.024658203125, 0.02777099609375, 0.0090789794921875, -0.034637451171875, -0.0377197265625, -0.0198974609375, -0.04205322265625, 0.0173492431640625, -0.08673095703125, -0.022064208984375, 0.010284423828125, -0.005344390869140625, 0.01500701904296875, -0.005863189697265625, -0.0089569091796875, 0.005352020263671875, 0.042327880859375, 0.0036373138427734375, -0.037933349609375, 0.01560211181640625, 0.038726806640625, -0.0452880859375, -0.055877685546875, 0.00954437255859375, 0.005107879638671875, -0.0276031494140625, -0.030670166015625, -0.01099395751953125, -0.0302276611328125, 0.01166534423828125, 0.027374267578125, 0.00803375244140625, -0.005275726318359375, 0.00785064697265625, -0.01204681396484375, -0.023406982421875, 0.032012939453125, -0.00759124755859375, 0.025787353515625, -0.043914794921875, 0.08758544921875, 0.0323486328125, 0.07794189453125, -0.015777587890625, 0.031341552734375, -0.0007839202880859375, 0.01038360595703125, 0.01461029052734375, -0.00568389892578125, 0.04791259765625, -0.0128936767578125, -0.001529693603515625, -0.0513916015625, -0.0300445556640625, -0.047882080078125, -0.00118255615234375, 0.048858642578125, -0.032135009765625, 0.03369140625 ]
476b27e1179649746f342ee4d2d1fcb43fcca901
Wordpress Stackexchange Q: Get_term_by only returns one item from array I am trying to retreive a term id based on the term name using the "get_term_by" function that is build into Wordpress. However, this function only retrieves one item from the array that i get them from. But there are multiple items in this array. This is my current code: $filter_terms = get_term_by( 'name', $widget['select'], 'portfolio-categories'); This is what is inside $widget['select'] when I dump it: array(2) { [0]=> string(5) "Beard" [1]=> string(3) "Tag" } So in this array "Beard" and "Tag" are two terms where I want to get the ID from, however, if I dump $filter_terms I get this: object(WP_Term)#634 (10) { ["term_id"]=> int(14) ["name"]=> string(5) "Beard" ["slug"]=> string(5) "beard" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14) ["taxonomy"]=> string(20) "portfolio-categories" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(2) ["filter"]=> string(3) "raw" } So how do i get the above information from both of the terms, except from only one? A: try this.. $filter_terms = array(); foreach ($widget['select'] as $key => $name) { $filter_terms[$key] = get_term_by( 'name', $name, 'portfolio-categories'); }
Q: Get_term_by only returns one item from array I am trying to retreive a term id based on the term name using the "get_term_by" function that is build into Wordpress. However, this function only retrieves one item from the array that i get them from. But there are multiple items in this array. This is my current code: $filter_terms = get_term_by( 'name', $widget['select'], 'portfolio-categories'); This is what is inside $widget['select'] when I dump it: array(2) { [0]=> string(5) "Beard" [1]=> string(3) "Tag" } So in this array "Beard" and "Tag" are two terms where I want to get the ID from, however, if I dump $filter_terms I get this: object(WP_Term)#634 (10) { ["term_id"]=> int(14) ["name"]=> string(5) "Beard" ["slug"]=> string(5) "beard" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14) ["taxonomy"]=> string(20) "portfolio-categories" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(2) ["filter"]=> string(3) "raw" } So how do i get the above information from both of the terms, except from only one? A: try this.. $filter_terms = array(); foreach ($widget['select'] as $key => $name) { $filter_terms[$key] = get_term_by( 'name', $name, 'portfolio-categories'); }
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:461739", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212580" }
[ 0.0223388671875, 0.01357269287109375, -0.017486572265625, -0.034759521484375, 0.025634765625, -0.033447265625, 0.0323486328125, -0.002162933349609375, 0.0139923095703125, 0.035186767578125, -0.057525634765625, -0.01352691650390625, -0.031341552734375, -0.005405426025390625, -0.048828125, -0.06427001953125, 0.012664794921875, -0.01099395751953125, 0.0021533966064453125, -0.0174560546875, 0.01806640625, -0.013519287109375, 0.00826263427734375, 0.0066375732421875, 0.02374267578125, -0.049652099609375, 0.02972412109375, -0.035400390625, 0.0164337158203125, -0.023040771484375, 0.00800323486328125, 0.00347900390625, 0.01324462890625, -0.0234527587890625, 0.03448486328125, 0.01800537109375, 0.027313232421875, -0.00945281982421875, 0.014495849609375, 0.0279998779296875, 0.04669189453125, -0.0248870849609375, -0.04754638671875, 0.039031982421875, -0.050048828125, -0.0276031494140625, 0.032745361328125, 0.004665374755859375, 0.025970458984375, -0.0289154052734375, 0.057403564453125, 0.0302734375, 0.07135009765625, 0.0121612548828125, -0.0153350830078125, 0.023681640625, 0.0083160400390625, -0.01163482666015625, 0.0203399658203125, -0.0059967041015625, -0.03955078125, -0.006954193115234375, 0.0268707275390625, -0.023223876953125, 0.000804901123046875, 0.0202484130859375, 0.002979278564453125, 0.007965087890625, -0.032257080078125, -0.013885498046875, 0.0250396728515625, -0.037628173828125, 0.01424407958984375, -0.00562286376953125, -0.050567626953125, -0.052490234375, 0.0178680419921875, -0.042572021484375, 0.011566162109375, -0.0077056884765625, -0.0264739990234375, -0.04351806640625, -0.09771728515625, 0.06646728515625, -0.033660888671875, 0.08154296875, -0.0165863037109375, -0.0246124267578125, -0.004852294921875, -0.0067291259765625, -0.01142120361328125, -0.01556396484375, -0.02886962890625, 0.04095458984375, -0.0004258155822753906, -0.0199737548828125, -0.0014934539794921875, 0.04278564453125, -0.02862548828125, 0.0020465850830078125, 0.003376007080078125, -0.03375244140625, 0.01122283935546875, -0.0389404296875, -0.01413726806640625, -0.005710601806640625, 0.00908660888671875, 0.07867431640625, 0.0606689453125, 0.037841796875, 0.00728607177734375, 0.0438232421875, -0.025970458984375, -0.0131988525390625, -0.0196990966796875, 0.0019245147705078125, -0.034027099609375, -0.01435089111328125, 0.004119873046875, -0.030975341796875, -0.006855010986328125, 0.005016326904296875, -0.0093231201171875, 0.03472900390625, 0.01499176025390625, 0.0236663818359375, -0.0006704330444335938, -0.0156097412109375, -0.0010890960693359375, -0.0249176025390625, -0.032958984375, 0.044097900390625, 0.0506591796875, 0.00611114501953125, 0.0011625289916992188, -0.001575469970703125, 0.0167236328125, 0.017364501953125, 0.01116180419921875, -0.00388336181640625, 0.0152740478515625, 0.0229339599609375, 0.0479736328125, -0.00458526611328125, 0.0028934478759765625, -0.0099029541015625, 0.01593017578125, 0.020660400390625, -0.004611968994140625, -0.0058746337890625, 0.005245208740234375, -0.006988525390625, 0.03558349609375, 0.0305023193359375, -0.023529052734375, 0.0126495361328125, 0.0411376953125, -0.0285186767578125, -0.02996826171875, -0.05859375, 0.0430908203125, -0.01299285888671875, -0.05108642578125, 0.0137481689453125, -0.025177001953125, 0.004573822021484375, 0.017730712890625, 0.0024166107177734375, 0.0187530517578125, -0.0002498626708984375, 0.072509765625, -0.0163726806640625, 0.006999969482421875, 0.0201416015625, 0.01161956787109375, 0.007556915283203125, -0.039276123046875, 0.0177459716796875, 0.0257568359375, -0.0262603759765625, -0.036773681640625, -0.057159423828125, 0.0010251998901367188, 0.0021533966064453125, -0.0275726318359375, 0.034271240234375, 0.00748443603515625, 0.05389404296875, -0.011871337890625, 0.025604248046875, 0.030059814453125, 0.04522705078125, -0.0394287109375, -0.01160430908203125, 0.0133209228515625, -0.0028324127197265625, -0.016632080078125, -0.004444122314453125, -0.0017681121826171875, 0.006927490234375, 0.08929443359375, -0.051239013671875, 0.0268096923828125, -0.062744140625, -0.10821533203125, -0.0297698974609375, -0.0341796875, 0.0078582763671875, -0.036285400390625, 0.035308837890625, 0.043121337890625, 0.0173187255859375, -0.07257080078125, 0.07293701171875, 0.004512786865234375, -0.022491455078125, -0.0301971435546875, 0.0016021728515625, -0.0157928466796875, -0.00971221923828125, -0.00887298583984375, -0.0048370361328125, -0.026885986328125, 0.032196044921875, 0.0589599609375, 0.0164031982421875, -0.018585205078125, 0.0014085769653320312, 0.0477294921875, 0.0191802978515625, -0.033477783203125, 0.027191162109375, 0.00185394287109375, 0.03411865234375, 0.0010356903076171875, 0.0025424957275390625, 0.0169677734375, -0.05413818359375, 0.01678466796875, 0.0287628173828125, 0.028778076171875, 0.0297698974609375, -0.01336669921875, -0.0159912109375, 0.09112548828125, -0.055816650390625, -0.03826904296875, 0.01137542724609375, 0.017120361328125, 0.043975830078125, 0.00457000732421875, 0.00960540771484375, 0.01541900634765625, -0.02392578125, 0.019195556640625, 0.040863037109375, -0.027069091796875, 0.01194000244140625, 0.01080322265625, -0.00209808349609375, -0.029449462890625, -0.052978515625, 0.006671905517578125, -0.03289794921875, -0.0242919921875, 0.0283966064453125, -0.00589752197265625, 0.003475189208984375, -0.03680419921875, 0.00872802734375, 0.02587890625, 0.01522064208984375, -0.01039886474609375, 0.027740478515625, 0.040008544921875, -0.0108642578125, -0.006320953369140625, -0.0010213851928710938, -0.03179931640625, -0.004329681396484375, 0.040283203125, 0.07916259765625, 0.0069427490234375, -0.007537841796875, -0.0003647804260253906, -0.021697998046875, -0.0017328262329101562, 0.02191162109375, -0.045318603515625, -0.0159912109375, -0.000423431396484375, 0.058685302734375, -0.0077056884765625, 0.0175323486328125, -0.0305633544921875, 0.0181732177734375, -0.00031280517578125, 0.00817108154296875, 0.005405426025390625, -0.0243682861328125, 0.0241241455078125, 0.0227203369140625, -0.0214080810546875, -0.008453369140625, -0.00698089599609375, -0.03179931640625, -0.0029144287109375, -0.0191192626953125, -0.03448486328125, -0.0006961822509765625, -0.084228515625, 0.0173187255859375, -0.0006246566772460938, 0.07110595703125, -0.042633056640625, -0.037689208984375, -0.031158447265625, 0.01141357421875, -0.04217529296875, -0.043060302734375, 0.022247314453125, -0.039398193359375, -0.0178985595703125, -0.0223388671875, -0.0290069580078125, -0.0019989013671875, -0.0246124267578125, 0.0031890869140625, 0.03216552734375, -0.0272064208984375, -0.08013916015625, -0.032379150390625, -0.06292724609375, 0.0295562744140625, -0.016387939453125, -0.0059661865234375, 0.02996826171875, 0.01849365234375, 0.0302734375, -0.0184326171875, 0.06475830078125, 0.08203125, -0.017059326171875, 0.0369873046875, -0.028778076171875, -0.0185089111328125, -0.0313720703125, -0.00038242340087890625, -0.0396728515625, -0.035186767578125, 0.0264892578125, -0.00286102294921875, 0.0227508544921875, 0.015533447265625, 0.06402587890625, -0.0010509490966796875, -0.045654296875, 0.05938720703125, 0.08135986328125, -0.0070953369140625, -0.00255584716796875, -0.039215087890625, -0.03851318359375, 0.027191162109375, 0.030426025390625, 0.00567626953125, 0.00443267822265625, -0.0012235641479492188, -0.049163818359375, -0.016937255859375, -0.035247802734375, -0.05426025390625, 0.045440673828125, 0.00913238525390625, 0.00012373924255371094, 0.040557861328125, 0.0135040283203125, -0.0418701171875, 0.018798828125, 0.00815582275390625, 0.006954193115234375, 0.0087890625, -0.01470184326171875, -0.006519317626953125, -0.047271728515625, 0.03564453125, -0.031890869140625, -0.00016689300537109375, -0.033172607421875, -0.01134490966796875, -0.021270751953125, 0.057525634765625, -0.03936767578125, -0.00019943714141845703, -0.01154327392578125, 0.0202178955078125, 0.00904083251953125, -0.06787109375, -0.015472412109375, -0.0231781005859375, -0.07073974609375, 0.01102447509765625, -0.00392913818359375, -0.0164031982421875, -0.014007568359375, -0.005832672119140625, -0.0399169921875, -0.035797119140625, 0.032623291015625, -0.058746337890625, 0.025360107421875, -0.008270263671875, -0.0010919570922851562, -0.0157012939453125, -0.017913818359375, -0.0293731689453125, -0.0173797607421875, -0.01079559326171875, 0.0672607421875, -0.0117340087890625, -0.0390625, 0.032684326171875, -0.0095672607421875, 0.044281005859375, 0.027557373046875, -0.025360107421875, 0.0296478271484375, 0.004268646240234375, -0.00859832763671875, 0.021148681640625, 0.01003265380859375, -0.02734375, -0.051544189453125, -0.07183837890625, 0.00937652587890625, -0.021942138671875, -0.026641845703125, 0.01023101806640625, -0.0308074951171875, 0.01399993896484375, -0.038116455078125, -0.024993896484375, -0.017791748046875, -0.002056121826171875, -0.028564453125, 0.001697540283203125, -0.0206146240234375, -0.04595947265625, 0.045562744140625, 0.0290679931640625, -0.01446533203125, -0.0028934478759765625, 0.10089111328125, 0.0284576416015625, -0.0338134765625, -0.028167724609375, 0.0009293556213378906, 0.040679931640625, -0.017974853515625, 0.0312347412109375, 0.006290435791015625, -0.0267333984375, 0.08544921875, 0.002559661865234375, 0.0216217041015625, -0.0019969940185546875, 0.0285491943359375, 0.0037822723388671875, -0.0408935546875, 0.026580810546875, 0.024505615234375, -0.027130126953125, 0.0183563232421875, -0.04388427734375, -0.00667572021484375, -0.00597381591796875, 0.042755126953125, -0.0290069580078125, 0.037872314453125, -0.0364990234375, -0.0285797119140625, 0.00804901123046875, -0.00909423828125, 0.04083251953125, -0.01318359375, 0.0084991455078125, 0.00945281982421875, 0.02520751953125, 0.01568603515625, -0.01250457763671875, 0.0291748046875, -0.041717529296875, 0.023895263671875, -0.00446319580078125, -0.01824951171875, -0.027862548828125, -0.01514434814453125, 0.032501220703125, -0.004131317138671875, -0.046142578125, 0.060791015625, -0.0206146240234375, 0.007781982421875, 0.046356201171875, -0.0005664825439453125, -0.0199432373046875, 0.01519775390625, -0.004291534423828125, 0.01210784912109375, 0.0098724365234375, 0.037689208984375, -0.0014810562133789062, 0.017547607421875, -0.023529052734375, 0.00447845458984375, -0.0167236328125, 0.07757568359375, -0.01401519775390625, 0.027496337890625, -0.0181732177734375, 0.004337310791015625, -0.00911712646484375, 0.0400390625, 0.0272674560546875, -0.0390625, 0.01861572265625, 0.0213623046875, 0.0114593505859375, -0.048187255859375, -0.01800537109375, 0.04376220703125, 0.03387451171875, 0.0011854171752929688, -0.00612640380859375, 0.01300048828125, 0.00925445556640625, -0.0159149169921875, 0.0132904052734375, -0.00337982177734375, -0.01470184326171875, -0.0190887451171875, -0.01049041748046875, 0.0197601318359375, 0.01088714599609375, -0.0160064697265625, 0.008941650390625, 0.004772186279296875, 0.0244140625, -0.005397796630859375, -0.01800537109375, 0.0158843994140625, 0.01666259765625, -0.002559661865234375, -0.005584716796875, 0.0082550048828125, -0.029296875, -0.0352783203125, -0.0041046142578125, -0.007038116455078125, 0.085693359375, -0.0016307830810546875, 0.05657958984375, -0.02960205078125, -0.0330810546875, -0.0265655517578125, 0.0003631114959716797, 0.04180908203125, 0.0233306884765625, -0.02056884765625, -0.0163421630859375, -0.0261993408203125, -0.0094451904296875, 0.039093017578125, -0.02197265625, 0.013519287109375, -0.0142669677734375, -0.049346923828125, 0.006988525390625, 0.0357666015625, 0.08050537109375, 0.029205322265625, 0.0030460357666015625, -0.06646728515625, -0.0289764404296875, -0.00382232666015625, -0.02630615234375, 0.033966064453125, 0.00476837158203125, 0.001102447509765625, -0.040374755859375, -0.0103607177734375, -0.01477813720703125, -0.0079803466796875, -0.07220458984375, 0.008758544921875, -0.0005140304565429688, -0.03997802734375, -0.0035915374755859375, -0.0026569366455078125, 0.00585174560546875, 0.02532958984375, -0.0015268325805664062, -0.00586700439453125, 0.0013952255249023438, -0.034149169921875, 0.017578125, -0.01059722900390625, 0.03460693359375, -0.037872314453125, 0.006626129150390625, 0.016876220703125, 0.00447845458984375, 0.02728271484375, -0.02960205078125, 0.02484130859375, 0.017791748046875, 0.004245758056640625, 0.0174102783203125, 0.003131866455078125, -0.03106689453125, 0.005615234375, 0.004894256591796875, 0.01012420654296875, 0.0141143798828125, 0.023529052734375, -0.034332275390625, -0.00016605854034423828, 0.06134033203125, 0.005527496337890625, -0.0216064453125, 0.050018310546875, -0.04888916015625, -0.017791748046875, -0.03643798828125, -0.009918212890625, 0.0299530029296875, 0.0153656005859375, 0.0091094970703125, -0.0278167724609375, -0.0275726318359375, 0.03582763671875, -0.0277557373046875, 0.0035305023193359375, -0.01617431640625, 0.0005788803100585938, -0.0227813720703125, 0.0267181396484375, 0.0408935546875, 0.014068603515625, -0.01238250732421875, 0.0555419921875, 0.0023956298828125, -0.0202789306640625, -0.0185089111328125, 0.01436614990234375, 0.005413055419921875, -0.040863037109375, -0.0152130126953125, 0.00409698486328125, -0.0217132568359375, -0.0970458984375, -0.0104522705078125, -0.0297698974609375, 0.0216217041015625, -0.00258636474609375, 0.0009965896606445312, 0.0182952880859375, 0.0207977294921875, 0.003398895263671875, -0.034515380859375, 0.003833770751953125, -0.039794921875, -0.0297088623046875, 0.0034008026123046875, -0.00704193115234375, 0.0036754608154296875, -0.02825927734375, 0.01544952392578125, -0.0609130859375, 0.02740478515625, -0.01715087890625, -0.032989501953125, 0.026397705078125, 0.0204010009765625, -0.02325439453125, 0.035888671875, 0.0284576416015625, -0.026092529296875, 0.004825592041015625, -0.004573822021484375, -0.06683349609375, -0.0340576171875, 0.00948333740234375, -0.03662109375, 0.0120697021484375, 0.006534576416015625, -0.05828857421875, 0.095947265625, -0.021697998046875, 0.027435302734375, 0.0202178955078125, 0.0310211181640625, -0.034423828125, 0.002017974853515625, -0.07159423828125, 0.01042938232421875, 0.0518798828125, 0.04302978515625, -0.035125732421875, -0.01403045654296875, -0.0010623931884765625, 0.034210205078125, 0.06707763671875, 0.01776123046875, -0.0185394287109375, -0.01629638671875, 0.059783935546875, 0.0176544189453125, -0.024139404296875, 0.039764404296875, 0.06390380859375, 0.0443115234375, 0.0733642578125, 0.005954742431640625, 0.03936767578125, -0.031341552734375, 0.0190582275390625, 0.09381103515625, -0.0032100677490234375, 0.007732391357421875, -0.0041961669921875, 0.0182952880859375, -0.0166015625, -0.01812744140625, 0.0187835693359375, -0.01690673828125, 0.0272369384765625, 0.0162200927734375, 0.0545654296875, -0.0601806640625, 0.0159149169921875, -0.0284423828125, 0.051177978515625, 0.012176513671875, 0.024810791015625, 0.057952880859375, 0.0300445556640625, 0.045379638671875, -0.0283966064453125, 0.0230560302734375, 0.01580810546875, -0.0362548828125, 0.01165008544921875, -0.028228759765625, 0.01873779296875, -0.034088134765625, 0.046630859375, 0.014434814453125, 0.0228424072265625, -0.0390625, -0.0596923828125, 0.0117950439453125, -0.0023212432861328125, 0.0029506683349609375, 0.046966552734375, 0.0264739990234375, 0.05279541015625, 0.08172607421875, -0.04345703125, 0.01488494873046875, 0.037628173828125, 0.0185089111328125, -0.006458282470703125, -0.01021575927734375, -0.0270233154296875, 0.0036029815673828125, -0.03155517578125, 0.01763916015625, 0.0196075439453125, 0.05010986328125, -0.00927734375, 0.062225341796875, -0.07147216796875, -0.01540374755859375, -0.01343536376953125, 0.01401519775390625, -0.00164794921875, 0.0222320556640625, -0.01300811767578125, 0.00637054443359375, -0.00868988037109375, 0.00994873046875, 0.0229339599609375, 0.0221405029296875, 0.05029296875, 0.035308837890625, -0.0167236328125, 0.0112152099609375, 0.0501708984375, -0.021240234375, -0.037811279296875, -0.01224517822265625, -0.0163116455078125, 0.033355712890625, 0.01136016845703125, -0.00669097900390625, 0.017913818359375, 0.0396728515625, -0.02197265625, 0.07513427734375, -0.0115509033203125, 0.018218994140625, 0.011962890625, -0.00984954833984375, 0.01085662841796875, 0.01148223876953125, -0.08642578125, 0.003795623779296875, -0.00281524658203125, -0.07147216796875, -0.0030460357666015625, 0.035064697265625, -0.028106689453125, 0.0234222412109375, 0.000522613525390625, -0.0128936767578125, 0.0123291015625, 0.00449371337890625, 0.0172576904296875, -0.02032470703125, -0.0019626617431640625, -0.0193328857421875, -0.030914306640625, 0.023895263671875, 0.03265380859375, -0.039581298828125, 0.01690673828125, 0.0304107666015625, 0.032989501953125, -0.0103302001953125, -0.02471923828125, 0.031768798828125, -0.04998779296875, -0.034515380859375, 0.04827880859375, -0.01629638671875, -0.0184783935546875, 0.0037326812744140625, -0.01282501220703125, 0.008758544921875, 0.047943115234375, -0.0521240234375, 0.01548004150390625, -0.01165008544921875, 0.006755828857421875, -0.045135498046875, 0.050567626953125, -0.01103973388671875, -0.006649017333984375, -0.044342041015625, -0.05755615234375, 0.075439453125, 0.08624267578125, 0.05145263671875, 0.021331787109375, 0.0197906494140625, -0.0263214111328125, 0.02166748046875, -0.0209808349609375, 0.0258941650390625, 0.0080718994140625, 0.00685882568359375, -0.01494598388671875, -0.02764892578125, -0.0176849365234375, -0.027587890625, 0.0180206298828125, -0.005954742431640625, -0.0223236083984375, 0.01007843017578125, 0.0110015869140625, 0.01302337646484375, 0.035369873046875, -0.022369384765625, 0.0208282470703125, 0.03302001953125, -0.005950927734375, -0.013885498046875, -0.02813720703125, -0.01336669921875, -0.027923583984375, -0.0159912109375, -4.172325134277344e-7, 0.01873779296875, -0.050079345703125, 0.01739501953125, 0.00759124755859375, 0.034881591796875, 0.00897216796875, -0.0206146240234375, 0.0212554931640625, -0.0246429443359375, -0.002193450927734375, 0.0101318359375, -0.0250091552734375, 0.0169219970703125, 0.005290985107421875, -0.057769775390625, -0.0014905929565429688, -0.0209503173828125, -0.0181427001953125, -0.019866943359375, 0.0018320083618164062, 0.0187225341796875, -0.0089263916015625, -0.0186309814453125, 0.0290374755859375, -0.0017995834350585938, 0.0638427734375, -0.01390838623046875, -0.01265716552734375, 0.003391265869140625, -0.00183868408203125, -0.0281982421875, -0.0308380126953125, 0.033416748046875, -0.029083251953125, -0.038726806640625, 0.040130615234375, -0.031036376953125, -0.0055084228515625, -0.05682373046875, -0.08392333984375, 0.04095458984375, 0.0171661376953125, -0.05841064453125, -0.048065185546875, -0.026702880859375, -0.01031494140625, 0.012908935546875, -0.01020050048828125, -0.0240020751953125, -0.0241851806640625, 0.04791259765625, 0.0216217041015625, -0.01403045654296875, 0.03607177734375, -0.0025463104248046875, -0.06915283203125, 0.029876708984375, 0.01541900634765625, 0.01490020751953125, -0.0226287841796875, 0.019500732421875, 0.021881103515625, 0.050201416015625, 0.007488250732421875, 0.0074920654296875, 0.029571533203125, -0.049285888671875, 0.009307861328125, -0.01849365234375, -0.047149658203125, -0.006977081298828125, 0.01617431640625, 0.060302734375, 0.00766754150390625, -0.0250091552734375, -0.035736083984375, -0.034576416015625, -0.0271453857421875, -0.0206298828125, 0.0212860107421875, -0.09649658203125, -0.023101806640625, 0.04229736328125, -0.0504150390625, 0.02239990234375, -0.009613037109375, -0.06378173828125, 0.017852783203125, -0.030059814453125, -0.0015478134155273438, -0.0443115234375, 0.0009069442749023438, -0.025482177734375, -0.029266357421875, -0.04510498046875, -0.024139404296875, 0.0165557861328125, -0.052093505859375, -0.01500701904296875, -0.015167236328125, 0.0027370452880859375, 0.03912353515625, 0.01490020751953125, 0.031707763671875, -0.053314208984375, 0.04180908203125, 0.0182647705078125, -0.0271148681640625, -0.0029506683349609375, 0.00879669189453125, -0.0298919677734375, -0.03668212890625, 0.01404571533203125, 0.005954742431640625, 0.049224853515625, -0.001285552978515625, 0.04852294921875, 0.005298614501953125, 0.039825439453125, -0.004047393798828125, -0.017425537109375, 0.01513671875, -0.005245208740234375, -0.004131317138671875, 0.0023326873779296875, -0.0247344970703125, -0.053466796875, 0.01444244384765625, 0.005584716796875, -0.020904541015625, 0.0257415771484375 ]
05556696469069bccbee970f891df814d91fcfcd
Wordpress Stackexchange Q: How to work around "that email address has already been used" error? The following error may occur if a previous registration remains pending with a conflicting email address. That email address has already been used. Please check your inbox for an activation email. It will become available in a couple of days if you do nothing. The related username error looks like the following. That username is currently reserved but may be available in a couple of days. A: When I add a new user with a different email address, I get the error message: That username is currently reserved but may be available in a couple of days. For me, I removed the row from the database in the table wp_signups where user_login equaled the username. Essentially: delete from wp_signups where user_login = 'abc'; Then I was able to re-add the user. Edit suggestion by @aubreypwd: Additionally, admins (network admins only in an MU or network install) have the option to add users without sending an email. If you check that option, it avoids this process.
Q: How to work around "that email address has already been used" error? The following error may occur if a previous registration remains pending with a conflicting email address. That email address has already been used. Please check your inbox for an activation email. It will become available in a couple of days if you do nothing. The related username error looks like the following. That username is currently reserved but may be available in a couple of days. A: When I add a new user with a different email address, I get the error message: That username is currently reserved but may be available in a couple of days. For me, I removed the row from the database in the table wp_signups where user_login equaled the username. Essentially: delete from wp_signups where user_login = 'abc'; Then I was able to re-add the user. Edit suggestion by @aubreypwd: Additionally, admins (network admins only in an MU or network install) have the option to add users without sending an email. If you check that option, it avoids this process. A: * *Login as WordPress administrator *Navigate to add a new user *Check box to bypass email confirmation *Add the user with a different email address *Edit the user's email address to the desired result For the similar username error, see How can I un-reserve a pending username registration? The timeout period is 2 days following a conflict, and trac tickets to clarify this process currently exist here and here. A: To work around the "that email address has already been used" error, we can create a plugin that effectively bypasses the check. The plugin will work in three parts, utilizing three different hooks. pre_user_login filters a username after it has been sanitized. We'll use this hook to grab the user, of particular interest is the email. pre_user_email filters a user’s email before the user is created or updated. We'll use this hook to modify the email to some random characters. user_register fires immediately after a new user is registered. We'll use this hook to manually update the user email after the user is registered. add_filter( 'pre_user_email', [ new wpse_212671(), 'pre_user_login' ] ); class wpse_212671 { protected $user; public function pre_user_login( $user ) { $this->user = $user; if( isset( $user[ 'ID' ] ) || ! get_user_by( 'email', $user[ 'user_email' ] ) { return $user; } add_filter( 'pre_user_email', [ $this, 'pre_user_email' ] ); add_action( 'user_register', [ $this, 'user_register' ] ); } public function pre_user_email( $email ) { return $this->generate_random_string(); } public function user_register( $user_id ) { global $wpdb; $table = $wpdb->prefix . 'users'; $wpdb->query( $wpdb->prepare( "UPDATE %s SET user_email = %s WHERE user_login = %s", $table, $this->user[ 'user_email' ], $this->user[ 'user_login' ] ) ); } //* Code slightly modified from http://stackoverflow.com/a/13212994/6077935 protected function generate_random_string( $length = 40 ) { return substr( str_shuffle( str_repeat( $x='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', ceil( $length / strlen( $x ) ) ) ), 1, $length ); } } A: If you're comfortable working directly in MySQL and would rather not write code or install a plugin just for this task, you can fix this issue pretty simply. Inside your site's MySQL database, there will be a table named { $wpdb->prefix }_signups, where $wpdb->prefix is whatever prefix you have configured WP to use for its database datables. (By default, that is wp_.) Query that table by the email address that's locked up to find the signup record for it: SELECT * FROM {$wpdb->prefix}_signups WHERE user_email = '{ email address }'; That should bring back the record of the signup attempt for that email address. Then just DELETE that record from the table, and you're done. A: There is a useful plugin called "User Activation Keys" which adds a menu item to the Network Users interface: https://wordpress.org/plugins/user-activation-keys/ This allows for editing/deleting/approving user activation requests and subsequently reserved email addresses/usernames.
wordpress
{ "language": "en", "length": 634, "provenance": "stackexchange_00019.jsonl.gz:461767", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212671" }
[ 0.08758544921875, 0.0024394989013671875, 0.01071929931640625, -0.0299072265625, 0.0204620361328125, -0.054534912109375, 0.0621337890625, -0.03509521484375, 0.0247344970703125, 0.054656982421875, -0.0164642333984375, 0.006412506103515625, 0.047271728515625, -0.00824737548828125, -0.022979736328125, -0.0003275871276855469, -0.0088653564453125, 0.0302734375, -0.0237274169921875, -0.03631591796875, 0.0170745849609375, -0.034515380859375, -0.04144287109375, 0.034515380859375, -0.01120758056640625, -0.03814697265625, 0.0732421875, -0.04034423828125, -0.0239715576171875, -0.04327392578125, -0.00013172626495361328, 0.04205322265625, 0.0011997222900390625, 0.0211029052734375, -0.01534271240234375, -0.06829833984375, 0.0131378173828125, 0.0119476318359375, 0.0238800048828125, -0.007389068603515625, 0.02825927734375, -0.0186614990234375, 0.0248870849609375, -0.0081329345703125, -0.00588226318359375, -0.0477294921875, 0.0714111328125, -0.011383056640625, -0.0018138885498046875, 0.028350830078125, 0.00296783447265625, -0.006191253662109375, 0.0161285400390625, 0.00971221923828125, -0.0093841552734375, -0.0280303955078125, -0.00881195068359375, 0.04266357421875, 0.0034160614013671875, 0.0160369873046875, -0.007167816162109375, 0.055877685546875, -0.005153656005859375, -0.01250457763671875, -0.000010907649993896484, -0.0176239013671875, 0.0240936279296875, 0.0222015380859375, -0.00708770751953125, -0.016326904296875, 0.00714874267578125, 0.010284423828125, -0.0175628662109375, -0.0018520355224609375, -0.0220489501953125, 0.0242462158203125, 0.01104736328125, 0.0112152099609375, 0.0020294189453125, 0.033203125, -0.0167083740234375, -0.0501708984375, -0.06646728515625, 0.0273284912109375, -0.0201873779296875, 0.046875, -0.014556884765625, -0.003322601318359375, -0.016265869140625, -0.0198974609375, -0.0253753662109375, -0.0462646484375, 0.03851318359375, -0.004161834716796875, -0.0399169921875, -0.0098419189453125, 0.0268707275390625, 0.08404541015625, -0.03131103515625, -0.036834716796875, -0.046539306640625, 0.019683837890625, -0.0892333984375, -0.0229034423828125, -0.01123046875, 0.0606689453125, -0.017974853515625, -0.0042877197265625, 0.010589599609375, 0.004894256591796875, 0.0111541748046875, -0.044891357421875, -0.01197052001953125, -0.044921875, 0.0197601318359375, 0.01995849609375, -0.033935546875, 0.02752685546875, 0.0088653564453125, 0.00868988037109375, 0.003063201904296875, 0.0146026611328125, -0.016265869140625, 0.0032901763916015625, -0.00832366943359375, -0.0250396728515625, -0.0147552490234375, -0.008148193359375, -0.02252197265625, 0.0183258056640625, -0.0186920166015625, 0.01126861572265625, 0.007755279541015625, 0.0186309814453125, -0.004299163818359375, -0.0198516845703125, 0.01367950439453125, 0.0283966064453125, 0.0117645263671875, 0.012054443359375, -0.01293182373046875, -0.039398193359375, -0.01222991943359375, 0.00324249267578125, -0.010162353515625, 0.048309326171875, 0.011566162109375, -0.016876220703125, -0.00893402099609375, -0.043060302734375, -0.02850341796875, -0.04876708984375, -0.00228118896484375, 0.0240936279296875, 0.0330810546875, 0.0216522216796875, 0.03955078125, -0.007266998291015625, -0.02105712890625, 0.0030384063720703125, 0.0599365234375, -0.017364501953125, -0.0222625732421875, -0.0242462158203125, -0.0546875, 0.0212554931640625, -0.063232421875, -0.0144500732421875, 0.02056884765625, -0.02783203125, 0.033050537109375, 0.02886962890625, 0.0264434814453125, -0.0204010009765625, -0.00244903564453125, -0.0266571044921875, -0.0183563232421875, 0.019775390625, 0.017425537109375, -0.01125335693359375, -0.00870513916015625, -0.0302581787109375, 0.037322998046875, -0.006984710693359375, -0.02264404296875, -0.0196075439453125, 0.000583648681640625, -0.002948760986328125, 0.02716064453125, -0.003070831298828125, 0.038848876953125, 0.0162811279296875, 0.0033283233642578125, -0.00010180473327636719, -0.031585693359375, -0.0660400390625, 0.02899169921875, -0.00724029541015625, -0.0221405029296875, 0.031768798828125, 0.06231689453125, -0.009307861328125, 0.032470703125, -0.05242919921875, -0.07672119140625, 0.0192718505859375, -0.031341552734375, 0.03204345703125, -0.034423828125, 0.01097869873046875, 0.02728271484375, -0.0137176513671875, -0.01708984375, -0.0220184326171875, 0.00943756103515625, 0.01081085205078125, -0.0560302734375, 0.01073455810546875, -0.00830078125, 0.05450439453125, 0.0036945343017578125, -0.0289154052734375, -0.003406524658203125, -0.034393310546875, -0.0197906494140625, -0.0007266998291015625, -0.0233001708984375, -0.00279998779296875, -0.060455322265625, 0.0153045654296875, -0.020599365234375, 0.0399169921875, 0.0017070770263671875, 0.010345458984375, -0.055877685546875, -0.001209259033203125, -0.0210418701171875, 0.005344390869140625, 0.0037899017333984375, 0.0310821533203125, 0.0213623046875, 0.00016760826110839844, -0.00720977783203125, 0.03570556640625, -0.039947509765625, -0.060028076171875, 0.0221710205078125, 0.00673675537109375, 0.004016876220703125, 0.031890869140625, 0.0026760101318359375, 0.0011234283447265625, 0.01092529296875, -0.004726409912109375, 0.0153656005859375, 0.01282501220703125, 0.0013980865478515625, -0.0308837890625, -0.020843505859375, -0.0021076202392578125, 0.0307159423828125, -0.06329345703125, -0.0654296875, -0.01059722900390625, -0.005466461181640625, -0.042877197265625, -0.0008673667907714844, -0.021392822265625, 0.0203399658203125, -0.037322998046875, 0.0169219970703125, -0.07647705078125, 0.021209716796875, -0.006259918212890625, 0.004245758056640625, 0.046722412109375, -0.0250244140625, -0.01128387451171875, 0.061187744140625, 0.0193328857421875, -0.07672119140625, -0.07611083984375, -0.05194091796875, -0.0100250244140625, 0.0230560302734375, -0.01263427734375, 0.03741455078125, -0.0301361083984375, 0.01004791259765625, -0.01983642578125, 0.0153045654296875, -0.007598876953125, -0.064697265625, 0.071533203125, -0.0099029541015625, -0.06182861328125, -0.03363037109375, -0.00830841064453125, -0.0015020370483398438, -0.01168060302734375, 0.0198516845703125, 0.059295654296875, 0.02972412109375, -0.0218963623046875, 0.00011897087097167969, -0.0653076171875, -0.02593994140625, 0.017425537109375, -0.003879547119140625, -0.046722412109375, -0.02044677734375, 0.058135986328125, 0.030426025390625, 0.071533203125, -0.031707763671875, -0.047576904296875, -0.0238494873046875, 0.035491943359375, -0.06298828125, -0.044219970703125, -0.039154052734375, -0.0201568603515625, 0.0142974853515625, 0.01033782958984375, 0.014892578125, 0.0002930164337158203, 0.0190277099609375, 0.0193939208984375, 0.029083251953125, -0.0462646484375, -0.07025146484375, -0.09149169921875, -0.09613037109375, -0.053619384765625, 0.0020465850830078125, 0.0175933837890625, 0.0004074573516845703, 0.010284423828125, -0.0120391845703125, -0.012664794921875, 0.006916046142578125, -0.051513671875, 0.0081024169921875, -0.0204620361328125, -0.0272369384765625, -0.00800323486328125, -0.0005450248718261719, 0.0178680419921875, 0.01303863525390625, 0.005939483642578125, 0.004276275634765625, -0.020843505859375, 0.035064697265625, 0.007007598876953125, 0.0237579345703125, 0.0413818359375, -0.03289794921875, 0.004669189453125, 0.033660888671875, -0.045135498046875, 0.044525146484375, 0.01413726806640625, -0.00791168212890625, -0.0423583984375, -0.0015172958374023438, -0.041107177734375, 0.0216217041015625, -0.061370849609375, -0.034942626953125, -0.0142059326171875, 0.0221710205078125, -0.057891845703125, 0.0606689453125, -0.0147552490234375, -0.03717041015625, -0.0162506103515625, 0.0202178955078125, -0.0171966552734375, -0.0194854736328125, -0.01114654541015625, 0.0014057159423828125, 0.001537322998046875, -0.0165252685546875, -0.026519775390625, -0.06243896484375, 0.018157958984375, -0.060516357421875, 0.0391845703125, -0.06317138671875, -0.0188140869140625, -0.019073486328125, 0.1160888671875, 0.036468505859375, -0.016845703125, 0.00809478759765625, -0.0005898475646972656, -0.04193115234375, 0.02685546875, -0.0350341796875, 0.003192901611328125, 0.0286865234375, -0.0082855224609375, -0.0102996826171875, -0.0008702278137207031, -0.016876220703125, -0.0523681640625, 0.0193634033203125, -0.0175933837890625, 0.02752685546875, -0.030853271484375, 0.037506103515625, -0.0081634521484375, 0.01532745361328125, -0.007694244384765625, -0.004764556884765625, -0.035247802734375, -0.04620361328125, 0.00257110595703125, -0.03369140625, 0.01641845703125, -0.0301666259765625, 0.06768798828125, -0.049224853515625, 0.01313018798828125, 0.0164031982421875, 0.05078125, 0.0011777877807617188, -0.01059722900390625, 0.04193115234375, -0.035308837890625, 0.0041351318359375, -0.019989013671875, 0.025054931640625, -0.0011844635009765625, -0.054840087890625, 0.00653076171875, -0.036376953125, 0.0224609375, -0.01073455810546875, -0.045867919921875, -0.011505126953125, 0.0088653564453125, 0.026214599609375, 0.027496337890625, 0.01210784912109375, -0.00389862060546875, 0.0010061264038085938, -0.01308441162109375, 0.02294921875, -0.0301666259765625, -0.0020008087158203125, 0.0022907257080078125, 0.0596923828125, 0.020233154296875, -0.016510009765625, 0.036956787109375, -0.01371002197265625, 0.045013427734375, 0.034515380859375, 0.0136566162109375, 0.025054931640625, -0.02008056640625, 0.0036334991455078125, 0.032684326171875, -0.041046142578125, 0.032958984375, 0.03656005859375, 0.017791748046875, -0.0283050537109375, -0.00252532958984375, -0.005764007568359375, 0.00881195068359375, 0.0179290771484375, 0.01210784912109375, -0.023040771484375, 0.0033283233642578125, 0.0026493072509765625, 0.013580322265625, 0.005870819091796875, -0.006069183349609375, -0.041839599609375, 0.022125244140625, -0.01995849609375, 0.01207733154296875, 0.0080108642578125, 0.005352020263671875, 0.005069732666015625, -0.004131317138671875, -0.031097412109375, -0.047607421875, -0.0169525146484375, 0.002552032470703125, 0.023040771484375, -0.06597900390625, -0.0286407470703125, -0.034332275390625, -0.03466796875, 0.08953857421875, 0.047576904296875, -0.054779052734375, 0.0523681640625, -0.00937652587890625, 0.0277862548828125, 0.00647735595703125, -0.007495880126953125, 0.043609619140625, 0.0159912109375, -0.004520416259765625, 0.00534820556640625, -0.0141754150390625, -0.0065460205078125, -0.045867919921875, -0.007602691650390625, 0.01434326171875, -0.0233306884765625, 0.0053253173828125, 0.059356689453125, 0.029052734375, 0.02435302734375, -0.0269775390625, 0.037841796875, 0.0838623046875, 0.02197265625, 0.015899658203125, 0.004001617431640625, -0.039764404296875, 0.0186004638671875, -0.0039825439453125, -0.0225067138671875, 0.0028533935546875, 0.017608642578125, 0.014892578125, 0.021270751953125, -0.002338409423828125, 0.011566162109375, -0.0192108154296875, -0.0106048583984375, 0.03692626953125, -0.0246734619140625, -0.0484619140625, -0.03070068359375, -0.007518768310546875, 0.0232391357421875, -0.034759521484375, -0.005771636962890625, 0.005859375, -0.0090179443359375, 0.036712646484375, 0.021331787109375, 0.02825927734375, -0.027008056640625, -0.03472900390625, 0.029815673828125, -0.0284423828125, -0.021270751953125, 0.044921875, 0.04412841796875, -0.0304107666015625, -0.00844573974609375, 0.037994384765625, 0.005619049072265625, 0.0130157470703125, -0.0306243896484375, -0.002201080322265625, -0.091552734375, 0.0217437744140625, -0.000988006591796875, -0.017486572265625, -0.0291595458984375, 0.00695037841796875, -0.035980224609375, -0.01000213623046875, 0.006320953369140625, -0.034149169921875, -0.0219268798828125, -0.02679443359375, 0.01132965087890625, 0.0308990478515625, -0.0241546630859375, -0.022979736328125, -0.007564544677734375, 0.0036716461181640625, 0.004276275634765625, 0.03399658203125, -0.04296875, -0.0248260498046875, 0.043853759765625, -0.016693115234375, -0.01468658447265625, -0.01471710205078125, 0.048431396484375, -0.0106964111328125, -0.0083465576171875, -0.04168701171875, -0.0144500732421875, -0.01336669921875, -0.0266876220703125, 0.0239410400390625, 0.0640869140625, 0.004566192626953125, 0.007167816162109375, -0.045501708984375, -0.01454925537109375, -0.006931304931640625, 0.06903076171875, -0.027374267578125, 0.0222015380859375, 0.01126861572265625, -0.029449462890625, 0.04669189453125, 0.001373291015625, 0.0380859375, -0.0095672607421875, -0.0631103515625, 0.0113677978515625, 0.04010009765625, -0.0032558441162109375, -0.0099029541015625, -0.0045623779296875, 0.0185546875, 0.021270751953125, -0.0052642822265625, 0.03955078125, -0.004924774169921875, 0.031524658203125, -0.0175933837890625, -0.0657958984375, 0.02618408203125, 0.0136566162109375, -0.0064849853515625, 0.042510986328125, -0.022369384765625, 0.00801849365234375, 0.07379150390625, 0.0731201171875, -0.09783935546875, 0.008270263671875, -0.0003993511199951172, 0.007457733154296875, 0.0206146240234375, 0.01312255859375, -0.00846099853515625, -0.016845703125, 0.0181732177734375, -0.037933349609375, -0.0155792236328125, -0.0013933181762695312, -0.0240325927734375, -0.002910614013671875, -0.026519775390625, 0.036041259765625, 0.01166534423828125, -0.0017833709716796875, -0.0146484375, 0.01493072509765625, -0.0039005279541015625, -0.03582763671875, 0.0016384124755859375, 0.02734375, 0.0029010772705078125, -0.06158447265625, 0.0158843994140625, -0.021331787109375, 0.01226806640625, -0.03448486328125, -0.0025501251220703125, 0.04327392578125, -0.0026416778564453125, 0.004878997802734375, -0.03887939453125, -0.01354217529296875, 0.010589599609375, 0.05255126953125, -0.0205535888671875, -0.0175018310546875, 0.0231781005859375, -0.045989990234375, 0.0026874542236328125, -0.018096923828125, 0.01129150390625, -0.00412750244140625, -0.01467132568359375, 0.03680419921875, -0.010467529296875, -0.0186767578125, 0.06304931640625, -0.048126220703125, -0.04876708984375, -0.00782012939453125, -0.0292510986328125, -0.0280303955078125, -0.0222320556640625, -0.0227508544921875, -0.0693359375, 0.0299835205078125, -0.0186004638671875, -0.053802490234375, 0.055755615234375, 0.007328033447265625, 0.022857666015625, 0.017425537109375, 0.0142059326171875, -0.00897979736328125, -0.0005083084106445312, -0.0305328369140625, 0.042236328125, -0.0079803466796875, 0.0521240234375, -0.01474761962890625, 0.006107330322265625, 0.02001953125, 0.0100555419921875, 0.057281494140625, 0.0296173095703125, -0.03729248046875, -0.027313232421875, -0.0269775390625, -0.0014171600341796875, -0.03216552734375, 0.05694580078125, -0.0074005126953125, 0.0103912353515625, 0.054443359375, -0.041107177734375, 0.0243072509765625, 0.0052947998046875, 0.01023101806640625, 0.018402099609375, -0.016204833984375, -0.03338623046875, -0.020172119140625, 0.037994384765625, -0.04119873046875, -0.007167816162109375, 0.017791748046875, -0.023651123046875, 0.0271453857421875, 0.0027923583984375, 0.0012865066528320312, -0.007572174072265625, 0.01464080810546875, -0.020050048828125, 0.04315185546875, -0.02276611328125, 0.0184783935546875, 0.00754547119140625, -0.0011262893676757812, 0.07342529296875, 0.014892578125, 0.006145477294921875, 0.027679443359375, 0.012603759765625, 0.0283355712890625, 0.013458251953125, 0.02734375, -0.043731689453125, -0.0253448486328125, 0.0433349609375, 0.062744140625, -0.018402099609375, -0.039764404296875, 0.00353240966796875, 0.0004935264587402344, 0.021728515625, 0.03741455078125, 0.0521240234375, -0.003620147705078125, 0.016448974609375, -0.050048828125, 0.00672149658203125, 0.03204345703125, 0.0201568603515625, -0.0019321441650390625, -0.01236724853515625, -0.0233154296875, -0.00565338134765625, -0.039398193359375, 0.0168304443359375, 0.0162811279296875, 0.0232086181640625, 0.004894256591796875, 0.0347900390625, 0.01367950439453125, -0.0205841064453125, -0.033782958984375, 0.0079345703125, 0.031951904296875, 0.02850341796875, -0.045989990234375, -0.0035343170166015625, 0.055145263671875, 0.036865234375, -0.03497314453125, -0.037322998046875, 0.009521484375, 0.041839599609375, -0.0360107421875, -0.04168701171875, -0.002017974853515625, -0.022003173828125, 0.0290374755859375, -0.0266265869140625, -0.00847625732421875, -0.0361328125, -0.025115966796875, -0.04693603515625, 0.02581787109375, -0.00435638427734375, -0.0010738372802734375, 0.01383209228515625, 0.00798797607421875, -0.01381683349609375, 0.038330078125, -0.005401611328125, 0.006801605224609375, 0.0264892578125, -0.08746337890625, -0.04644775390625, -0.026947021484375, 0.031585693359375, 0.0305023193359375, 0.031585693359375, -0.014862060546875, 0.035125732421875, -0.018585205078125, -0.016204833984375, 0.01485443115234375, -0.01439666748046875, 0.0107421875, 0.006191253662109375, -0.0030040740966796875, -0.004024505615234375, -0.01800537109375, 0.0018558502197265625, 0.038177490234375, 0.00933074951171875, -0.0012254714965820312, 0.049163818359375, -0.005115509033203125, 0.0035495758056640625, -0.01189422607421875, 0.022003173828125, -0.02154541015625, -0.023468017578125, 0.033660888671875, 0.015350341796875, -0.005435943603515625, -0.0005311965942382812, -0.07440185546875, 0.041168212890625, -0.0007314682006835938, 0.0031223297119140625, 0.051910400390625, -0.0430908203125, -0.005222320556640625, -0.0018854141235351562, 0.0172119140625, -0.018524169921875, -0.037872314453125, -0.01922607421875, 0.003940582275390625, 0.02117919921875, 0.0389404296875, -0.01200103759765625, 0.02197265625, -0.01116180419921875, -0.027801513671875, 0.006641387939453125, -0.0306854248046875, -0.0238494873046875, 0.015350341796875, 0.03436279296875, 0.0203704833984375, -0.056884765625, -0.044921875, 0.0257720947265625, -0.032806396484375, 0.00726318359375, -0.02398681640625, 0.0017786026000976562, -0.01125335693359375, -0.0051727294921875, -0.0164337158203125, -0.0246124267578125, -0.0220184326171875, 0.0091400146484375, -0.015380859375, -0.004634857177734375, -0.03350830078125, -0.01270294189453125, -0.04425048828125, 0.0007534027099609375, 0.0015230178833007812, -0.01142120361328125, -0.020111083984375, -0.0011234283447265625, 0.029266357421875, 0.005931854248046875, 0.00980377197265625, -0.0460205078125, 0.04437255859375, -0.01345062255859375, 0.0184173583984375, -0.0064544677734375, -0.03631591796875, 0.0154876708984375, 0.032318115234375, -0.041259765625, -0.049652099609375, -0.03802490234375, 0.0296478271484375, -0.056640625, -0.0294647216796875, 0.0033969879150390625, 0.018096923828125, -0.053680419921875, -0.0282440185546875, -0.031646728515625, 0.005283355712890625, -0.0277099609375, -0.00971221923828125, 0.028289794921875, -0.0040130615234375, -0.0215606689453125, -0.068603515625, 0.00505828857421875, -0.05767822265625, -0.0118560791015625, -0.037445068359375, 0.028045654296875, 0.031463623046875, -0.0304107666015625, -0.0694580078125, 0.032623291015625, -0.022705078125, -0.030059814453125, -0.06793212890625, 0.0189361572265625, -0.0210418701171875, 0.037933349609375, -0.0136871337890625, -0.00881195068359375, -0.0018758773803710938, 0.053741455078125, -0.0013370513916015625, 0.04046630859375, 0.0357666015625, -0.013824462890625, -0.0242919921875, -0.0310211181640625, -0.036773681640625, 0.00928497314453125, 0.0255279541015625, 0.0176544189453125, 0.0221099853515625, 0.0968017578125, 0.0161285400390625, 0.008270263671875, -0.032928466796875, -0.1177978515625, -0.0411376953125, -0.02545166015625, 0.00746917724609375, 0.00670623779296875, 0.062255859375, 0.06884765625, 0.0098724365234375, -0.036224365234375, -0.048248291015625, -0.0247039794921875, -0.020263671875, -0.01438140869140625, 0.0302734375, -0.08355712890625, 0.016265869140625, -0.00336456298828125, -0.040985107421875, -0.0091094970703125, 0.03131103515625, -0.06451416015625, 0.01374053955078125, -0.0126495361328125, -0.030548095703125, -0.0443115234375, 0.0244140625, -0.0023860931396484375, -0.013946533203125, -0.03900146484375, 0.0127716064453125, -0.0159149169921875, -0.0343017578125, 0.021484375, 0.05322265625, -0.0251312255859375, -0.05767822265625, 0.003948211669921875, 0.00907135009765625, 0.0321044921875, -0.0386962890625, -0.0787353515625, 0.00197601318359375, 0.027923583984375, -0.0234527587890625, -0.002841949462890625, 0.02227783203125, 0.0184326171875, -0.0260467529296875, 0.08270263671875, -0.0309295654296875, 0.010589599609375, -0.032745361328125, 0.0284271240234375, 0.006927490234375, 0.02166748046875, 0.0306243896484375, 0.01171112060546875, -0.0005755424499511719, 0.01056671142578125, 0.019775390625, -0.056304931640625, 0.034454345703125, 0.0222015380859375, 0.032623291015625, 0.02587890625 ]
db62b3dd833e35bdc6206b025936f13f999c0f23
Wordpress Stackexchange Q: get_field not displaying my custom field value I'm asking regarding the ACF plugin (Advanced Custom Fields) I'm working on creating a category group that will add custom fields to the category pages. These are the fields: They seem to work in storing the data (I can see the data is saved with an example category) According to the docs, I'm supposed to use get_field in the template files to get the value of the custom field. I'm in the category.php template, and using get_field returns FALSE (bool). Here is my code: $sub_heading = get_field("sub_heading"); That should get the text that's stored in the "sub_heading" custom field, but instead it just returns FALSE (bool). I also tried $sub_heading = get_field("sub_heading", $cat->term_id) The category page is displaying the category properly, and giving me the title and the description, but nothing is being returned from get_field. A: Nevermind, I figured this out. The id needs to be "category_" and then the ID. So the code is: $sub_heading = get_field("sub_heading", "category_" . $cat->term_id);
Q: get_field not displaying my custom field value I'm asking regarding the ACF plugin (Advanced Custom Fields) I'm working on creating a category group that will add custom fields to the category pages. These are the fields: They seem to work in storing the data (I can see the data is saved with an example category) According to the docs, I'm supposed to use get_field in the template files to get the value of the custom field. I'm in the category.php template, and using get_field returns FALSE (bool). Here is my code: $sub_heading = get_field("sub_heading"); That should get the text that's stored in the "sub_heading" custom field, but instead it just returns FALSE (bool). I also tried $sub_heading = get_field("sub_heading", $cat->term_id) The category page is displaying the category properly, and giving me the title and the description, but nothing is being returned from get_field. A: Nevermind, I figured this out. The id needs to be "category_" and then the ID. So the code is: $sub_heading = get_field("sub_heading", "category_" . $cat->term_id);
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:461772", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212693" }
[ -0.004146575927734375, -0.0012645721435546875, -0.0217437744140625, -0.0267791748046875, 0.0026874542236328125, -0.008575439453125, -0.0157012939453125, -0.005413055419921875, -0.0171661376953125, 0.01297760009765625, -0.0487060546875, 0.005405426025390625, -0.0262451171875, -0.0221710205078125, -0.0014390945434570312, -0.057769775390625, 0.024383544921875, -0.0055694580078125, 0.032501220703125, -0.0021076202392578125, 0.0106201171875, 0.012481689453125, 0.0277862548828125, 0.007598876953125, 0.053802490234375, -0.078125, 0.02862548828125, 0.0187835693359375, 0.030029296875, -0.0101165771484375, 0.03375244140625, -0.005229949951171875, 0.016937255859375, 0.02099609375, -0.00704193115234375, -0.0252227783203125, 0.033905029296875, -0.005496978759765625, -0.01155853271484375, 0.05755615234375, 0.0230560302734375, -0.0018596649169921875, 0.0045013427734375, 0.02325439453125, -0.011016845703125, -0.038360595703125, 0.0224456787109375, -0.0303955078125, -0.0004520416259765625, -0.0294342041015625, -0.002544403076171875, -0.0168609619140625, 0.01421356201171875, -0.007343292236328125, -0.01031494140625, -0.00495147705078125, -0.03466796875, -0.007740020751953125, 0.044036865234375, 0.019500732421875, -0.021881103515625, -0.05926513671875, 0.0229034423828125, -0.060272216796875, 0.01335906982421875, 0.016387939453125, 0.027801513671875, 0.0091552734375, -0.0114288330078125, 0.01012420654296875, 0.0186614990234375, -0.0201873779296875, 0.0253753662109375, 0.004024505615234375, -0.0269622802734375, -0.06805419921875, 0.04443359375, -0.0287933349609375, 0.0086517333984375, -0.0038967132568359375, -0.024078369140625, -0.02960205078125, -0.0594482421875, 0.058990478515625, -0.045379638671875, 0.061553955078125, -0.0177154541015625, -0.02679443359375, -0.006046295166015625, -0.03179931640625, -0.01491546630859375, -0.0202178955078125, -0.0086212158203125, -0.0038909912109375, -0.0166015625, -0.03717041015625, 0.01045989990234375, 0.07611083984375, -0.0252838134765625, 0.0219573974609375, -0.02838134765625, -0.009490966796875, 0.006717681884765625, -0.054351806640625, 0.0130615234375, 0.0309600830078125, -0.01229095458984375, -0.00675201416015625, 0.04180908203125, 0.0159759521484375, 0.0021114349365234375, 0.024810791015625, 0.0003094673156738281, -0.01212310791015625, -0.022613525390625, 0.01220703125, -0.01313018798828125, -0.04205322265625, -0.0094451904296875, -0.029937744140625, 0.019805908203125, 0.047515869140625, -0.0192413330078125, -0.03704833984375, -0.00811767578125, -0.018310546875, -0.0195770263671875, -0.01617431640625, -0.0157318115234375, -0.017364501953125, -0.040191650390625, 0.0340576171875, 0.06048583984375, 0.038238525390625, 0.0247344970703125, 0.002140045166015625, -0.0250701904296875, -0.028594970703125, -0.0033550262451171875, 0.011810302734375, -0.01491546630859375, 0.00247955322265625, 0.047088623046875, -0.0240325927734375, -0.06732177734375, -0.028472900390625, -0.005664825439453125, 0.058624267578125, -0.031341552734375, -0.05548095703125, 0.051239013671875, -0.04736328125, 0.04058837890625, -0.005924224853515625, -0.0207672119140625, -0.0199432373046875, 0.02154541015625, -0.0311279296875, -0.020111083984375, -0.045166015625, 0.052520751953125, -0.0130157470703125, -0.0299530029296875, -0.036407470703125, -0.044403076171875, -0.00516510009765625, -0.049560546875, -0.006214141845703125, 0.0258941650390625, -0.0159454345703125, 0.06573486328125, 0.0133514404296875, 0.0077362060546875, 0.0213165283203125, 0.0252532958984375, -0.003398895263671875, -0.01491546630859375, 0.03546142578125, 0.02789306640625, 0.0141754150390625, -0.0250091552734375, -0.048828125, 0.0303802490234375, -0.0138397216796875, -0.035614013671875, 0.0305938720703125, -0.004161834716796875, 0.038421630859375, 0.021881103515625, 0.0091094970703125, 0.0021228790283203125, 0.01947021484375, -0.05133056640625, 0.001972198486328125, 0.0152130126953125, 0.0141448974609375, -0.017822265625, 0.017791748046875, -0.0034046173095703125, -0.032135009765625, -0.034332275390625, -0.01334381103515625, -0.00849151611328125, 0.026641845703125, 0.01568603515625, -0.036041259765625, 0.01042938232421875, 0.0035724639892578125, -0.007617950439453125, 0.0224609375, 0.0165557861328125, -0.00795745849609375, -0.0328369140625, 0.001522064208984375, -0.007720947265625, -0.00675201416015625, -0.000751495361328125, 0.033721923828125, -0.0257568359375, 0.00955963134765625, -0.016265869140625, -0.0330810546875, -0.0085296630859375, 0.04180908203125, -0.0028228759765625, 0.0089874267578125, 0.003971099853515625, 0.00457763671875, 0.0287322998046875, 0.0219879150390625, 0.0205230712890625, -0.0141448974609375, 0.019195556640625, 0.0252532958984375, -0.046478271484375, -0.00189971923828125, -0.0287017822265625, -0.04571533203125, -0.002559661865234375, 0.06475830078125, 0.04205322265625, -0.0209808349609375, -0.0308990478515625, -0.043670654296875, 0.08843994140625, 0.005970001220703125, 0.01361846923828125, -0.039703369140625, 0.0187530517578125, 0.053680419921875, -0.0060272216796875, 0.003490447998046875, 0.00722503662109375, -0.0198516845703125, 0.006175994873046875, 0.048248291015625, -0.00913238525390625, -0.03515625, 0.040618896484375, -0.02850341796875, 0.0186614990234375, -0.0185394287109375, -0.030792236328125, 0.006420135498046875, 0.052215576171875, 0.0216217041015625, 0.04144287109375, 0.034759521484375, -0.033477783203125, 0.02227783203125, 0.01251220703125, -0.002536773681640625, -0.0015592575073242188, -0.018890380859375, -0.01158905029296875, 0.00829315185546875, -0.0291748046875, 0.0131378173828125, 0.002716064453125, -0.01056671142578125, 0.00676727294921875, 0.046905517578125, -0.01454925537109375, -0.014068603515625, -0.002506256103515625, -0.04595947265625, -0.011444091796875, 0.01385498046875, -0.00980377197265625, 0.0130462646484375, 0.01020050048828125, 0.06817626953125, -0.0113067626953125, 0.0438232421875, -0.023101806640625, 0.0200347900390625, 0.0097503662109375, -0.05523681640625, 0.050018310546875, -0.04095458984375, 0.00881195068359375, 0.0631103515625, 0.00557708740234375, -0.0002963542938232422, -0.01116180419921875, -0.0251617431640625, -0.031341552734375, 0.0242462158203125, -0.0115203857421875, -0.038177490234375, -0.050384521484375, 0.006771087646484375, 0.038665771484375, 0.112548828125, 0.005046844482421875, -0.0684814453125, 0.031494140625, 0.065673828125, -0.06884765625, -0.1158447265625, 0.0223388671875, -0.040069580078125, 0.0116729736328125, -0.006168365478515625, -0.019683837890625, -0.006092071533203125, 0.004154205322265625, 0.00862884521484375, 0.0235595703125, -0.040496826171875, -0.0545654296875, -0.0543212890625, -0.0933837890625, -0.03253173828125, 0.0057220458984375, 0.004299163818359375, -0.0030956268310546875, 0.06683349609375, -0.007404327392578125, -0.035003662109375, -0.004573822021484375, -0.015716552734375, 0.01457977294921875, 0.0258026123046875, 0.015625, -0.045623779296875, 0.069580078125, -0.0011138916015625, -0.0181427001953125, 0.034912109375, -0.0024814605712890625, -0.041168212890625, -0.02734375, 0.0208740234375, -0.0018510818481445312, 0.0020198822021484375, 0.039703369140625, 0.0277252197265625, 0.016845703125, -0.0193328857421875, -0.024749755859375, -0.026702880859375, -0.028076171875, 0.061431884765625, 0.01395416259765625, 0.005161285400390625, -0.036041259765625, 0.07232666015625, -0.030792236328125, -0.011474609375, -0.008056640625, -0.039947509765625, 0.0114898681640625, 0.001064300537109375, -0.019927978515625, 0.0216522216796875, 0.033447265625, -0.015869140625, 0.0313720703125, 0.0167236328125, 0.0015382766723632812, -0.008636474609375, 0.0172882080078125, -0.0175323486328125, -0.0614013671875, 0.044769287109375, -0.046173095703125, -0.03302001953125, -0.027069091796875, -0.005340576171875, -0.00255584716796875, 0.067626953125, -0.0128936767578125, -0.015838623046875, 0.0052490234375, 0.0235595703125, -0.036529541015625, -0.057464599609375, -0.032318115234375, -0.0066375732421875, -0.09454345703125, 0.003498077392578125, -0.0122222900390625, -0.015625, -0.0191802978515625, 0.05517578125, -0.0655517578125, -0.039031982421875, 0.038848876953125, -0.007411956787109375, 0.0177001953125, 0.020263671875, 0.0350341796875, -0.01320648193359375, -0.0144195556640625, 0.0009355545043945312, -0.039306640625, -0.0151824951171875, 0.035614013671875, 0.01493072509765625, -0.0122222900390625, 0.0085906982421875, 0.000621795654296875, 0.051727294921875, 0.008758544921875, -0.007415771484375, 0.0022563934326171875, -0.00925445556640625, -0.0001990795135498047, -0.0045013427734375, -0.00476837158203125, -0.0165557861328125, -0.0015745162963867188, -0.024078369140625, -0.030792236328125, -0.006427764892578125, -0.036712646484375, 0.00213623046875, -0.01556396484375, -0.028472900390625, -0.023345947265625, -0.01080322265625, -0.045257568359375, -0.0221099853515625, -0.028045654296875, -0.000476837158203125, 0.00032258033752441406, -0.0196685791015625, 0.03546142578125, 0.013427734375, 0.0216217041015625, 0.007965087890625, 0.04290771484375, 0.007312774658203125, -0.031402587890625, -0.039642333984375, -0.007633209228515625, 0.0364990234375, -0.004451751708984375, 0.032562255859375, 0.01525115966796875, -0.036163330078125, 0.07763671875, 0.004917144775390625, 0.058746337890625, -0.0360107421875, 0.05419921875, -0.0181884765625, -0.01080322265625, 0.037750244140625, -0.004001617431640625, -0.041748046875, 0.037506103515625, -0.0179595947265625, -0.0203399658203125, -0.00649261474609375, 0.0276031494140625, -0.050689697265625, 0.03570556640625, -0.02056884765625, -0.0283203125, 0.0178680419921875, 0.007038116455078125, 0.035003662109375, 0.006397247314453125, 0.0023708343505859375, 0.017425537109375, 0.003551483154296875, -0.0112152099609375, -0.046112060546875, -0.0194549560546875, -0.0206756591796875, -0.01073455810546875, 0.00978851318359375, -0.0215301513671875, -0.01763916015625, 0.00445556640625, 0.01197052001953125, -0.032806396484375, -0.04998779296875, -0.01348114013671875, -0.01898193359375, 0.0088043212890625, 0.052490234375, -0.030029296875, -0.001071929931640625, 0.048492431640625, 0.0169830322265625, 0.047454833984375, -0.004974365234375, 0.04400634765625, 0.00212860107421875, -0.0008673667907714844, 0.01274871826171875, -0.0133514404296875, -0.03271484375, 0.08636474609375, 0.0175323486328125, 0.00754547119140625, -0.0170440673828125, 0.037506103515625, 0.02099609375, 0.031951904296875, 0.028106689453125, -0.0276947021484375, 0.00787353515625, -0.022064208984375, -0.001651763916015625, -0.047576904296875, -0.0185089111328125, 0.00218963623046875, 0.046966552734375, -0.01371002197265625, -0.020782470703125, 0.04541015625, -0.00597381591796875, -0.0214080810546875, 0.035736083984375, -0.0065765380859375, -0.05352783203125, -0.00971221923828125, 0.0135955810546875, 0.0225830078125, -0.019775390625, -0.0232391357421875, 0.024261474609375, -0.047088623046875, 0.032806396484375, -0.0239105224609375, 0.02581787109375, -0.013580322265625, -0.015625, -0.03204345703125, -0.009063720703125, 0.01983642578125, -0.0020580291748046875, -0.037933349609375, -0.0045166015625, -0.022613525390625, 0.04150390625, -0.0161895751953125, 0.0506591796875, -0.036407470703125, -0.0160980224609375, -0.052520751953125, -0.01678466796875, 0.08270263671875, 0.06689453125, -0.045989990234375, 0.01239013671875, -0.01323699951171875, -0.00567626953125, -0.047882080078125, -0.05828857421875, -0.0308380126953125, -0.021759033203125, -0.0019254684448242188, 0.004528045654296875, -0.0128173828125, -0.05255126953125, -0.02679443359375, 0.013336181640625, 0.040679931640625, -0.0021686553955078125, 0.0204010009765625, 0.0274200439453125, 0.00791168212890625, 0.05902099609375, 0.031951904296875, 0.01216888427734375, -0.036956787109375, -0.0209197998046875, -0.002979278564453125, -0.019561767578125, -0.01151275634765625, -0.020172119140625, 0.0037517547607421875, -0.0019855499267578125, 0.028289794921875, 0.0079345703125, -0.01490020751953125, 0.01031494140625, 0.0030803680419921875, -0.018280029296875, 0.00673675537109375, 0.0408935546875, -0.03515625, 0.042388916015625, -0.053558349609375, -0.0008397102355957031, 0.0189056396484375, -0.01995849609375, 0.0517578125, -0.038421630859375, 0.041900634765625, 0.033416748046875, -0.018798828125, 0.050628662109375, 0.0372314453125, 0.010345458984375, 0.01424407958984375, 0.01525115966796875, 0.019866943359375, -0.044036865234375, 0.045989990234375, -0.01224517822265625, -0.06707763671875, 0.04754638671875, 0.019744873046875, -0.03228759765625, 0.040863037109375, -0.024566650390625, 0.008544921875, 0.03558349609375, 0.027313232421875, -0.061859130859375, 0.01030731201171875, 0.00647735595703125, -0.0212860107421875, 0.001491546630859375, 0.0262451171875, -0.02398681640625, -0.0024318695068359375, -0.0215301513671875, 0.002445220947265625, -0.009796142578125, 0.0077056884765625, 0.0316162109375, -0.006397247314453125, -0.006923675537109375, 0.05145263671875, 0.00513458251953125, -0.01172637939453125, -0.0123138427734375, -0.006496429443359375, 0.004703521728515625, -0.0033740997314453125, 0.006011962890625, 0.0012969970703125, -0.0255279541015625, -0.072509765625, -0.02294921875, 0.0062103271484375, -0.0423583984375, 0.024139404296875, 0.039642333984375, 0.0239410400390625, 0.0279998779296875, 0.01073455810546875, 0.0071258544921875, -0.0058135986328125, -0.0013837814331054688, 0.033782958984375, -0.0372314453125, -0.00922393798828125, 0.061920166015625, -0.06439208984375, 0.01212310791015625, 0.0107421875, 0.0115814208984375, -0.021514892578125, 0.0284423828125, 0.11358642578125, -0.006069183349609375, -0.05670166015625, 0.0058441162109375, 0.0230865478515625, 0.00891876220703125, -0.0071258544921875, 0.0416259765625, -0.01352691650390625, 0.03961181640625, 0.01161956787109375, 0.037078857421875, -0.007350921630859375, 0.01180267333984375, -0.060302734375, 0.050262451171875, 0.0226287841796875, 0.0223541259765625, -0.010498046875, 0.0166168212890625, -0.0183868408203125, -0.0068359375, -0.029083251953125, 0.03790283203125, 0.0284423828125, 0.0220184326171875, -0.0802001953125, -0.035888671875, -0.0143280029296875, 0.08062744140625, 0.01617431640625, 0.0026645660400390625, -0.00457000732421875, 0.00804901123046875, 0.0240478515625, 0.007732391357421875, -0.021759033203125, 0.01477813720703125, 0.01531219482421875, 0.01959228515625, 0.033111572265625, -0.01142120361328125, 0.0207061767578125, 0.003398895263671875, -0.0193023681640625, 0.062744140625, 0.01104736328125, 0.0115814208984375, -0.00882720947265625, -0.01517486572265625, -0.03485107421875, -0.0017499923706054688, 0.030364990234375, -0.0303955078125, 0.00009167194366455078, 0.03411865234375, 0.053619384765625, -0.0257720947265625, 0.037750244140625, -0.0277099609375, 0.06512451171875, 0.0241546630859375, 0.0298309326171875, 0.021392822265625, 0.004421234130859375, 0.07373046875, -0.00839996337890625, 0.007076263427734375, 0.003643035888671875, 0.016815185546875, 0.021453857421875, 0.00485992431640625, 0.0036029815673828125, -0.017120361328125, 0.052764892578125, 0.059844970703125, 0.020294189453125, -0.051910400390625, -0.03375244140625, 0.0220794677734375, 0.024627685546875, -0.0008592605590820312, 0.022552490234375, -0.00214385986328125, 0.045166015625, 0.0906982421875, -0.08453369140625, 0.007556915283203125, 0.043060302734375, 0.035125732421875, -0.01146697998046875, -0.0245208740234375, -0.046173095703125, -0.0193939208984375, -0.06365966796875, 0.026763916015625, 0.02105712890625, 0.052032470703125, 0.0128631591796875, 0.07025146484375, -0.0102081298828125, -0.031341552734375, -0.0044097900390625, 0.016632080078125, 0.007480621337890625, 0.01299285888671875, -0.0157928466796875, -0.0246124267578125, 0.00981903076171875, 0.028839111328125, -0.003116607666015625, 0.0001201629638671875, 0.0173797607421875, 0.03265380859375, -0.0033664703369140625, -0.005779266357421875, 0.031951904296875, -0.006992340087890625, -0.032745361328125, -0.03411865234375, -0.0052947998046875, 0.0249786376953125, 0.0008497238159179688, 0.03216552734375, -0.04119873046875, 0.05377197265625, -0.0013570785522460938, 0.00638580322265625, 0.005771636962890625, -0.031890869140625, 0.01219940185546875, -0.0215911865234375, 0.032379150390625, 0.01062774658203125, -0.02117919921875, 0.007740020751953125, -0.040008544921875, -0.0755615234375, 0.0257720947265625, 0.0523681640625, 0.00798797607421875, -0.007587432861328125, -0.0006694793701171875, 0.005584716796875, 0.000812530517578125, -0.013458251953125, 0.0269012451171875, -0.045196533203125, -0.0091400146484375, -0.00958251953125, -0.0233306884765625, -0.01532745361328125, 0.02532958984375, 0.01004791259765625, -0.00582122802734375, 0.001617431640625, 0.0164947509765625, 0.00749969482421875, -0.0199432373046875, 0.034515380859375, -0.038909912109375, -0.0276947021484375, 0.0716552734375, 0.0235137939453125, -0.004924774169921875, -0.025054931640625, 0.00600433349609375, 0.00984954833984375, 0.041473388671875, -0.058807373046875, -0.01461029052734375, 0.0172576904296875, 0.006359100341796875, -0.0247344970703125, -0.0236968994140625, -0.03277587890625, -0.044769287109375, -0.05804443359375, -0.015869140625, 0.028594970703125, 0.028900146484375, -0.008392333984375, 0.012786865234375, 0.01788330078125, -0.0227203369140625, 0.0224151611328125, -0.031982421875, 0.06768798828125, 0.04266357421875, -0.034088134765625, 0.031829833984375, 0.006443023681640625, -0.037017822265625, 0.059967041015625, -0.0177001953125, 0.0072479248046875, 0.025604248046875, -0.0262451171875, -0.00995635986328125, -0.01229095458984375, 0.0229034423828125, -0.04656982421875, 0.00632476806640625, 0.00913238525390625, 0.0190887451171875, 0.003528594970703125, -0.08367919921875, -0.037384033203125, -0.06268310546875, -0.0059814453125, 0.02008056640625, -0.032012939453125, -0.0477294921875, -0.032928466796875, 0.01076507568359375, 0.0316162109375, -0.0241241455078125, 0.0011701583862304688, -0.01922607421875, -0.04638671875, 0.04876708984375, -0.0279083251953125, -0.0246429443359375, 0.022552490234375, 0.049041748046875, -0.025360107421875, 0.032318115234375, -0.01454925537109375, -0.04815673828125, 0.005641937255859375, 0.0171661376953125, 0.018341064453125, -0.01523590087890625, -0.00931549072265625, 0.032928466796875, 0.004802703857421875, 0.0679931640625, -0.0042724609375, -0.00749969482421875, -0.01537322998046875, 0.0181427001953125, -0.042633056640625, -0.0265655517578125, 0.044281005859375, -0.022308349609375, -0.039276123046875, -0.0787353515625, 0.0399169921875, 0.0225677490234375, -0.036376953125, -0.016998291015625, -0.004833221435546875, -0.01678466796875, -0.01715087890625, -0.0496826171875, -0.0167694091796875, -0.004688262939453125, 0.02325439453125, -0.00466156005859375, -0.04376220703125, -0.037567138671875, 0.044464111328125, 0.022705078125, -0.022003173828125, 0.045806884765625, 0.0228271484375, -0.0992431640625, -0.008087158203125, -0.030731201171875, 0.01708984375, -0.0108184814453125, -0.022216796875, -0.0186920166015625, -0.0157318115234375, -0.07440185546875, -0.100830078125, -0.002994537353515625, 0.061309814453125, 0.031341552734375, -0.05517578125, -0.02313232421875, -0.03875732421875, 0.0140838623046875, -0.03057861328125, -0.0096588134765625, 0.0008683204650878906, -0.04534912109375, -0.043121337890625, -0.03106689453125, -0.019195556640625, 0.026123046875, -0.0780029296875, 0.0281524658203125, -0.0002620220184326172, -0.01470184326171875, -0.0272064208984375, -0.0011377334594726562, -0.0310821533203125, 0.0022182464599609375, 0.033538818359375, 0.0014171600341796875, -0.00839996337890625, -0.000946044921875, 0.05059814453125, -0.051849365234375, -0.0595703125, 0.018524169921875, -0.000995635986328125, -0.0221099853515625, 0.0013751983642578125, -0.0015048980712890625, -0.0172119140625, -0.03204345703125, 0.0199432373046875, -0.00722503662109375, 0.0318603515625, -0.031036376953125, -0.0275115966796875, -0.017974853515625, 0.005847930908203125, -0.037353515625, -0.01363372802734375, 0.0303802490234375, 0.01325225830078125, -0.005718231201171875, 0.06671142578125, 0.016082763671875, 0.018646240234375, -0.0139007568359375, 0.054962158203125, -0.01397705078125, -0.024505615234375, -0.018035888671875, -0.021240234375, -0.004749298095703125, 0.032440185546875, -0.039154052734375, -0.0211334228515625, 0.00481414794921875, -0.00021123886108398438, -0.00112152099609375, 0.0032672882080078125 ]
91e3d95eb996bc7acffd3946f7d139b05f846e5c
Wordpress Stackexchange Q: 4.3.1 to 4.4 - WYSIWYG Editor Issues I've just upgraded my WordPress site from 4.3.1 to 4.4, and I've just come across an issue which I've tested, and it does seem to happen upon upgrading the core from 4.3.1 to 4.4. When I go into a post or page with a WYSIWYG editor, I cannot switch tabs between 'Visual' and 'Text'. Whatever the tab was before the upgrade, it's stuck on. Anyone else had this issue? (I think quite a few styles and scripts are loaded through the header.php so I'm going to move these to the functions.php file, registering them and enqueing them so I can load them only when not in the admin area.) Here's the only JavaScript error: Uncaught TypeError: Cannot set property 'toolbar1' of undefined A: A plugin was the cause of this issue, 'PS Disable Auto Formatting'. After disabling this plugin, the issue was fixed.
Q: 4.3.1 to 4.4 - WYSIWYG Editor Issues I've just upgraded my WordPress site from 4.3.1 to 4.4, and I've just come across an issue which I've tested, and it does seem to happen upon upgrading the core from 4.3.1 to 4.4. When I go into a post or page with a WYSIWYG editor, I cannot switch tabs between 'Visual' and 'Text'. Whatever the tab was before the upgrade, it's stuck on. Anyone else had this issue? (I think quite a few styles and scripts are loaded through the header.php so I'm going to move these to the functions.php file, registering them and enqueing them so I can load them only when not in the admin area.) Here's the only JavaScript error: Uncaught TypeError: Cannot set property 'toolbar1' of undefined A: A plugin was the cause of this issue, 'PS Disable Auto Formatting'. After disabling this plugin, the issue was fixed.
wordpress
{ "language": "en", "length": 151, "provenance": "stackexchange_00019.jsonl.gz:461790", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212747" }
[ -0.00684356689453125, -0.034637451171875, -0.04339599609375, 0.020965576171875, -0.01904296875, -0.05364990234375, 0.05426025390625, 0.0238800048828125, 0.0682373046875, 0.0172271728515625, -0.007965087890625, -0.0178680419921875, -0.0191497802734375, -0.0279998779296875, -0.040191650390625, 0.0037708282470703125, 0.03192138671875, -0.0304412841796875, 0.01245880126953125, -0.01922607421875, 0.05731201171875, -0.01116180419921875, 0.004711151123046875, 0.06231689453125, -0.0020313262939453125, 0.017333984375, 0.05279541015625, -0.001338958740234375, -0.0023097991943359375, -0.00864410400390625, 0.01390838623046875, -0.01552581787109375, -0.00283050537109375, 0.04901123046875, -0.062225341796875, -0.0347900390625, -0.00609588623046875, 0.0193939208984375, 0.00021195411682128906, 0.0055084228515625, 0.0133209228515625, 0.007537841796875, 0.0117645263671875, 0.0142822265625, -0.0010194778442382812, -0.030181884765625, 0.0013103485107421875, -0.056304931640625, 0.029937744140625, -0.01032257080078125, -0.044281005859375, 0.0594482421875, -0.03314208984375, -0.01244354248046875, 0.0026073455810546875, -0.011688232421875, -0.0026607513427734375, 0.0188751220703125, 0.0216827392578125, 0.0921630859375, 0.00004202127456665039, 0.01690673828125, -0.0289764404296875, -0.088134765625, -0.0108489990234375, 0.020263671875, -0.0104827880859375, -0.0176849365234375, -0.011505126953125, 0.01448822021484375, 0.006473541259765625, -0.04571533203125, 0.005588531494140625, -0.039276123046875, 0.03448486328125, 0.02001953125, -0.0136871337890625, 0.006465911865234375, 0.01200103759765625, -0.003726959228515625, 0.03472900390625, 0.0160064697265625, -0.018829345703125, -0.031402587890625, 0.0127410888671875, -0.0082244873046875, -0.0088348388671875, -0.01412200927734375, -0.021636962890625, 0.0044708251953125, -0.00717926025390625, -0.04949951171875, -0.00652313232421875, 0.03826904296875, 0.007579803466796875, -0.0246734619140625, -0.00833892822265625, 0.0162353515625, -0.0184326171875, 0.033416748046875, -0.006084442138671875, -0.0404052734375, 0.053924560546875, -0.044189453125, -0.0213623046875, 0.011383056640625, -0.00012314319610595703, 0.035125732421875, 0.02471923828125, 0.03466796875, 0.0007219314575195312, -0.00864410400390625, 0.027130126953125, -0.01129150390625, -0.0006322860717773438, 0.0013141632080078125, 0.02276611328125, 0.0135498046875, -0.00152587890625, 0.0009870529174804688, 0.0013446807861328125, 0.044586181640625, -0.061126708984375, -0.021148681640625, 0.011199951171875, -0.01470184326171875, 0.02099609375, -0.00911712646484375, -0.0026149749755859375, -0.0164031982421875, -0.0239105224609375, 0.0196380615234375, 0.050018310546875, 0.057861328125, 0.034637451171875, 0.0014543533325195312, 0.03875732421875, -0.07318115234375, -0.007762908935546875, 0.018341064453125, -0.0265045166015625, -0.01421356201171875, 0.0160369873046875, -0.03240966796875, 0.017822265625, 0.049652099609375, 0.042510986328125, -0.00933074951171875, -0.022918701171875, -0.07574462890625, 0.038726806640625, -0.0151824951171875, 0.05133056640625, 0.00826263427734375, -0.00235748291015625, -0.05548095703125, 0.054351806640625, -0.05908203125, -0.00411224365234375, -0.063720703125, 0.0638427734375, 0.0211944580078125, 0.01001739501953125, -0.034912109375, -0.00841522216796875, -0.053192138671875, -0.09295654296875, 0.0019378662109375, 0.0285491943359375, 0.016448974609375, -0.036376953125, 0.0015916824340820312, 0.0106658935546875, -0.0023860931396484375, -0.0158843994140625, 0.032958984375, 0.0016508102416992188, -0.0229644775390625, 0.045562744140625, 0.0253448486328125, -0.015777587890625, -0.02178955078125, 0.04595947265625, -0.025482177734375, -0.038970947265625, -0.0236663818359375, -0.00962066650390625, 0.005977630615234375, 0.045135498046875, 0.00634002685546875, 0.0124664306640625, -0.0212554931640625, 0.01393890380859375, -0.0202484130859375, 0.0122528076171875, -0.01513671875, 0.004917144775390625, 0.0181732177734375, 0.0011491775512695312, -0.040283203125, 0.0562744140625, 0.00021326541900634766, -0.01248931884765625, -0.06280517578125, -0.0732421875, -0.03399658203125, -0.00707244873046875, 0.029449462890625, 0.0146026611328125, 0.0162811279296875, 0.005512237548828125, -0.015869140625, -0.0214691162109375, 0.06048583984375, -0.0173797607421875, 0.004383087158203125, -0.015350341796875, 0.06732177734375, 0.0299530029296875, 0.053802490234375, 0.0377197265625, -0.028228759765625, 0.043792724609375, -0.049163818359375, 0.0246124267578125, -0.011383056640625, -0.007015228271484375, 0.0010471343994140625, 0.0496826171875, 0.0223388671875, 0.0172119140625, -0.007633209228515625, 0.0249481201171875, 0.0211944580078125, -0.02880859375, -0.0236053466796875, -0.01389312744140625, -0.04632568359375, 0.021514892578125, 0.0489501953125, 0.051513671875, -0.01934814453125, -0.03057861328125, -0.045440673828125, 0.01324462890625, -0.027801513671875, 0.02301025390625, -0.0291290283203125, -0.042938232421875, 0.0292816162109375, 0.0164031982421875, 0.0285797119140625, -0.005878448486328125, 0.029754638671875, -0.0269927978515625, 0.037139892578125, 0.013153076171875, 0.04290771484375, -0.05377197265625, 0.01544952392578125, -0.005336761474609375, -0.0214996337890625, -0.0263671875, -0.0209197998046875, 0.08795166015625, -0.037933349609375, 0.05023193359375, 0.02655029296875, -0.03326416015625, -0.0102996826171875, 0.0117645263671875, -0.007534027099609375, -0.00860595703125, -0.02044677734375, 0.0361328125, 0.01065826416015625, -0.034942626953125, -0.0013294219970703125, 0.0309600830078125, -0.00913238525390625, -0.044830322265625, -0.0090179443359375, -0.0009479522705078125, -0.01806640625, 0.02081298828125, 0.0169525146484375, 0.024658203125, -0.061187744140625, -0.0160369873046875, -0.0640869140625, 0.003177642822265625, -0.0206298828125, -0.0306243896484375, -0.0004062652587890625, 0.0141754150390625, -0.046844482421875, 0.09259033203125, 0.04217529296875, -0.004302978515625, 0.0218048095703125, 0.06683349609375, 0.0260162353515625, -0.041412353515625, 0.01415252685546875, 0.0205535888671875, -0.0279693603515625, 0.01806640625, 0.011383056640625, 0.01247406005859375, 0.0482177734375, -0.07025146484375, 0.03515625, 0.02923583984375, 0.0576171875, -0.03021240234375, -0.0673828125, -0.0196990966796875, 0.031463623046875, -0.095458984375, -0.06488037109375, -0.062469482421875, -0.055633544921875, -0.045257568359375, 0.01128387451171875, -0.034637451171875, 0.037933349609375, 0.03387451171875, 0.004550933837890625, -0.0290679931640625, 0.0254058837890625, -0.0458984375, -0.030517578125, -0.060943603515625, -0.039886474609375, -0.03289794921875, 0.024322509765625, 0.0187835693359375, -0.01068878173828125, -0.002452850341796875, -0.06585693359375, 0.00726318359375, -0.0100555419921875, -0.007068634033203125, 0.04425048828125, 0.0119476318359375, -0.0175933837890625, 0.034027099609375, 0.00504302978515625, -0.00238037109375, 0.02813720703125, -0.0189666748046875, -0.018829345703125, 0.012542724609375, -0.0067138671875, 0.03887939453125, -0.0037174224853515625, -0.03741455078125, 0.0221710205078125, 0.04779052734375, -0.0240020751953125, -0.0011310577392578125, 0.01261138916015625, -0.0241546630859375, 0.010467529296875, 0.00348663330078125, -0.028045654296875, 0.01503753662109375, -0.0011453628540039062, -0.013214111328125, 0.0213165283203125, 0.0241241455078125, -0.0077667236328125, 0.052154541015625, -0.0335693359375, -0.043609619140625, -0.062164306640625, 0.019317626953125, -0.0220947265625, 0.06365966796875, 0.0225982666015625, 0.0032978057861328125, 0.02484130859375, -0.02667236328125, 0.018951416015625, -0.043701171875, 0.0406494140625, -0.048858642578125, -0.0286102294921875, -0.0184783935546875, -0.01459503173828125, 0.017303466796875, 0.07659912109375, -0.02691650390625, 0.0259857177734375, 0.002712249755859375, -0.0181732177734375, -0.038238525390625, 0.00489044189453125, -0.10797119140625, 0.03216552734375, -0.0121307373046875, -0.004756927490234375, 0.00013375282287597656, -0.0283966064453125, -0.053955078125, 0.0758056640625, -0.027862548828125, 0.004787445068359375, 0.033843994140625, -0.01922607421875, -0.0207672119140625, 0.0311279296875, -0.0254669189453125, 0.0021114349365234375, -0.020599365234375, 0.0026702880859375, -0.11688232421875, -0.0243682861328125, -0.0396728515625, 0.09869384765625, 0.007289886474609375, 0.003925323486328125, -0.01552581787109375, 0.067626953125, 0.003696441650390625, -0.0005354881286621094, 0.004459381103515625, 0.0163421630859375, -0.0361328125, -0.00848388671875, 0.00415802001953125, -0.0306396484375, -0.0177001953125, -0.036468505859375, -0.061126708984375, -0.0270233154296875, 0.0004611015319824219, -0.005344390869140625, 0.0340576171875, -0.0127105712890625, 0.00295257568359375, -0.0125732421875, -0.04339599609375, 0.033447265625, -0.0171356201171875, -0.032745361328125, -0.038848876953125, -0.0265045166015625, 0.0293731689453125, -0.024322509765625, -0.01220703125, -0.00533294677734375, 0.0419921875, 0.0182647705078125, -0.003009796142578125, 0.04412841796875, -0.0196533203125, 0.0435791015625, 0.0616455078125, -0.0197296142578125, -0.032012939453125, -0.059051513671875, 0.080078125, 0.031341552734375, 0.0094451904296875, -0.004306793212890625, 0.0007853507995605469, 0.0147552490234375, -0.029541015625, 0.0205535888671875, 0.02679443359375, -0.01396942138671875, 0.01470184326171875, 0.013946533203125, -0.0014982223510742188, -0.0244598388671875, 0.0030670166015625, 0.06402587890625, -0.06829833984375, -0.046234130859375, -0.061279296875, 0.00982666015625, -0.0019931793212890625, 0.0279693603515625, -0.0081787109375, 0.006725311279296875, 0.0341796875, 0.04803466796875, -0.0219573974609375, 0.00986480712890625, 0.01122283935546875, 0.00621795654296875, 0.03350830078125, 0.007030487060546875, -0.0188751220703125, -0.016204833984375, -0.005096435546875, 0.0098724365234375, -0.016876220703125, -0.039031982421875, -0.03448486328125, 0.01509857177734375, 0.029327392578125, 0.0206451416015625, 0.0006427764892578125, 0.040557861328125, 0.033721923828125, -0.0196075439453125, 0.000637054443359375, 0.0008482933044433594, -0.01324462890625, -0.04302978515625, 0.040283203125, 0.00435638427734375, -0.01218414306640625, -0.0014467239379882812, 0.03143310546875, -0.004001617431640625, -0.006824493408203125, -0.01434326171875, -0.016845703125, -0.032989501953125, 0.02899169921875, 0.0182647705078125, 0.003662109375, 0.0283050537109375, -0.0187835693359375, 0.046417236328125, -0.06976318359375, -0.031494140625, 0.0087738037109375, 0.0682373046875, -0.01375579833984375, -0.0274658203125, 0.038299560546875, -0.0154266357421875, -0.0135040283203125, 0.022857666015625, -0.0216064453125, -0.044464111328125, -0.0026187896728515625, 0.04522705078125, 0.0228729248046875, -0.01230621337890625, -0.00699615478515625, -0.003665924072265625, -0.047576904296875, 0.0097503662109375, 0.0099029541015625, -0.002773284912109375, 0.0009784698486328125, -0.0088958740234375, 0.0122833251953125, 0.01042938232421875, 0.0105438232421875, -0.06597900390625, -0.04498291015625, -0.015777587890625, 0.0021076202392578125, 0.058013916015625, -0.0216522216796875, 0.01433563232421875, -0.0611572265625, 0.0252227783203125, -0.023284912109375, -0.005176544189453125, 0.044464111328125, 0.01387786865234375, -0.0498046875, 0.01158905029296875, -0.06829833984375, -0.0260009765625, -0.04095458984375, 0.0124664306640625, -0.0645751953125, 0.008880615234375, -0.0145263671875, 0.00669097900390625, -0.0039825439453125, 0.0121002197265625, -0.0177764892578125, 0.056854248046875, 0.01245880126953125, 0.07611083984375, -0.0183868408203125, 0.02838134765625, 0.00824737548828125, 0.0202178955078125, 0.0052947998046875, 0.00847625732421875, 0.0080108642578125, -0.03314208984375, 0.00962066650390625, -0.053131103515625, -0.053253173828125, -0.026214599609375, -0.029266357421875, 0.051025390625, 0.056365966796875, -0.01273345947265625, 0.0096282958984375, -0.0169525146484375, 0.009185791015625, -0.022613525390625, 0.0094146728515625, -0.0286865234375, -0.0190887451171875, -0.001018524169921875, -0.01678466796875, 0.01044464111328125, -0.00922393798828125, -0.004547119140625, 0.0193023681640625, -0.006359100341796875, 0.01386260986328125, 0.014251708984375, -0.0070648193359375, -0.00209808349609375, 0.00514984130859375, -0.0313720703125, 0.0135498046875, -0.0003294944763183594, -0.0020236968994140625, 0.0499267578125, 0.013641357421875, 0.0220794677734375, 0.006580352783203125, 0.026947021484375, -0.01485443115234375, -0.01346588134765625, -0.0079193115234375, -0.0223846435546875, 0.019256591796875, 0.045379638671875, 0.07861328125, -0.071533203125, 0.0128631591796875, 0.035888671875, -0.04962158203125, -0.01093292236328125, -0.01129150390625, -0.00167083740234375, -0.032623291015625, 0.048095703125, -0.0050506591796875, -0.00794219970703125, 0.025543212890625, -0.0066070556640625, -0.047271728515625, -0.01500701904296875, -0.0210723876953125, 0.0096893310546875, -0.00630950927734375, 0.0023555755615234375, 0.0147552490234375, -0.01534271240234375, -0.003997802734375, -0.007114410400390625, 0.004730224609375, -0.041473388671875, -0.039520263671875, -0.018585205078125, -0.0146636962890625, -0.0187225341796875, -0.017974853515625, 0.0189361572265625, 0.043975830078125, 0.04931640625, -0.00128173828125, 0.0019702911376953125, 0.0172119140625, 0.0287322998046875, 0.0550537109375, -0.009124755859375, -0.0091705322265625, 0.0145721435546875, -0.036865234375, -0.003192901611328125, -0.00567626953125, 0.0174102783203125, -0.0037059783935546875, 0.01055908203125, 0.0294952392578125, 0.0167083740234375, -0.039764404296875, 0.0263519287109375, -0.013427734375, -0.0134124755859375, -0.004131317138671875, -0.03350830078125, -0.06353759765625, -0.0245208740234375, -0.020782470703125, -0.0633544921875, 0.00958251953125, -0.024993896484375, -0.049041748046875, 0.09906005859375, -0.0282745361328125, 0.040252685546875, 0.02667236328125, 0.0340576171875, -0.0252532958984375, 0.0111236572265625, 0.00958251953125, -0.0034732818603515625, -0.046875, 0.016510009765625, 0.0165252685546875, 0.0203094482421875, 0.0142669677734375, 0.01232147216796875, 0.01251220703125, -0.00777435302734375, -0.021697998046875, -0.0181427001953125, 0.03594970703125, 0.02740478515625, 0.0013246536254882812, 0.026641845703125, 0.020538330078125, -0.046630859375, 0.0186767578125, 0.048431396484375, 0.05303955078125, -0.0308685302734375, -0.0292816162109375, 0.029541015625, 0.011474609375, -0.004161834716796875, -0.0264892578125, 0.0127410888671875, -0.01145172119140625, -0.0178070068359375, -0.0009984970092773438, 0.01056671142578125, -0.002056121826171875, 0.0166168212890625, 0.0215606689453125, -0.051300048828125, 0.00780487060546875, -0.036773681640625, 0.040863037109375, 0.014129638671875, -0.07171630859375, -0.006847381591796875, 0.0080413818359375, -0.0208892822265625, -0.033355712890625, -0.03411865234375, 0.0202484130859375, -0.007350921630859375, 0.0022735595703125, 0.004627227783203125, 0.01357269287109375, -0.0185089111328125, -0.0001634359359741211, 0.06561279296875, 0.0203399658203125, -0.0038509368896484375, -0.041961669921875, 0.01262664794921875, -0.0142364501953125, -0.003490447998046875, 0.00034308433532714844, -0.0242767333984375, -0.02960205078125, 0.0325927734375, 0.00824737548828125, -0.01038360595703125, 0.0009179115295410156, -0.0023345947265625, 0.0124359130859375, 0.035919189453125, 0.0022563934326171875, 0.017822265625, -0.0731201171875, 0.005588531494140625, 0.038665771484375, 0.061309814453125, 0.014373779296875, 0.062408447265625, 0.01349639892578125, -0.0277557373046875, -0.03558349609375, 0.016815185546875, 0.0032672882080078125, 0.037872314453125, -0.048736572265625, -0.0030059814453125, -0.002658843994140625, 0.0526123046875, 0.012298583984375, -0.038726806640625, 0.0197906494140625, 0.055877685546875, -0.01325225830078125, -0.0261077880859375, 0.038299560546875, 0.0096435546875, -0.00847625732421875, -0.017974853515625, 0.0498046875, 0.026702880859375, 0.0286865234375, -0.003482818603515625, 0.0740966796875, 0.0182342529296875, 0.0294189453125, 0.027923583984375, 0.0271759033203125, 0.01439666748046875, 0.034515380859375, 0.01418304443359375, 0.0091400146484375, 0.08050537109375, -0.0258941650390625, 0.0007319450378417969, 0.018890380859375, -0.062225341796875, -0.004730224609375, 0.030975341796875, -0.036865234375, 0.01468658447265625, -0.04278564453125, -0.048065185546875, 0.0159149169921875, 0.030670166015625, 0.0189056396484375, 0.03924560546875, -0.0192413330078125, -0.0022907257080078125, -0.0237579345703125, -0.0225067138671875, -0.0019092559814453125, 0.04443359375, -0.0016536712646484375, 0.05816650390625, -0.0285797119140625, 0.025390625, 0.0186309814453125, 0.035003662109375, -0.0143585205078125, -0.0144195556640625, 0.0217437744140625, -0.00991058349609375, 0.028472900390625, -0.011993408203125, -0.035125732421875, 0.05889892578125, -0.004364013671875, 0.0182647705078125, 0.00829315185546875, 0.00144195556640625, 0.0035858154296875, 0.049468994140625, 0.0247650146484375, -0.0216217041015625, -0.0301055908203125, -0.04986572265625, -0.02447509765625, 0.01371002197265625, -0.00444793701171875, -0.0164947509765625, 0.016754150390625, 0.052154541015625, 0.017333984375, 0.0148468017578125, 0.01580810546875, 0.0159912109375, 0.0283966064453125, -0.0100555419921875, -0.0137176513671875, 0.03125, -0.0014095306396484375, 0.002040863037109375, 0.01541900634765625, 0.024078369140625, 0.005680084228515625, -0.0163421630859375, 0.050323486328125, 0.0401611328125, 0.0294647216796875, -0.0211181640625, -0.00926971435546875, 0.078369140625, -0.0218353271484375, -0.05413818359375, 0.00904083251953125, -0.0007185935974121094, -0.018951416015625, -0.03033447265625, 0.0013170242309570312, 0.0016021728515625, -0.041900634765625, -0.01806640625, 0.0155181884765625, 0.059234619140625, 0.01137542724609375, -0.05133056640625, 0.039276123046875, -0.0482177734375, 0.0450439453125, 0.0308837890625, 0.035614013671875, -0.0013256072998046875, 0.01666259765625, -0.0572509765625, -0.006298065185546875, -0.0205535888671875, 0.006175994873046875, -0.032196044921875, -0.0016756057739257812, 0.04022216796875, -0.0013446807861328125, -0.050018310546875, -0.009765625, -0.0080413818359375, 0.03240966796875, -0.01041412353515625, -0.01015472412109375, 0.00820159912109375, 0.015716552734375, -0.031890869140625, -0.040252685546875, -0.005397796630859375, 0.00989532470703125, -0.0021572113037109375, 0.020477294921875, -0.032562255859375, -0.02386474609375, -0.05615234375, -0.06396484375, -0.00959014892578125, 0.0189208984375, -0.031341552734375, -0.025299072265625, -0.02740478515625, -0.0209808349609375, 0.06719970703125, 0.0174407958984375, -0.032196044921875, -0.022247314453125, 0.0168914794921875, -0.0080718994140625, 0.0445556640625, -0.00934600830078125, -0.0013027191162109375, -0.017486572265625, -0.00743865966796875, -0.0128936767578125, -0.019989013671875, -0.00710296630859375, 0.0056304931640625, -0.003566741943359375, 0.020660400390625, -0.03619384765625, -0.0665283203125, -0.00310516357421875, -0.0166015625, 0.00946044921875, 0.01702880859375, -0.01338958740234375, -0.000017821788787841797, 0.019317626953125, 0.0439453125, 0.0164642333984375, -0.0209197998046875, 0.031402587890625, -0.002742767333984375, -0.031524658203125, 0.0186920166015625, -0.005321502685546875, -0.00147247314453125, 0.00868988037109375, -0.0296783447265625, 0.015716552734375, 0.040283203125, -0.0204925537109375, -0.0009255409240722656, -0.0209503173828125, 0.01023101806640625, 0.0060882568359375, -0.0711669921875, -0.017303466796875, 0.049102783203125, -0.025665283203125, 0.01155853271484375, 0.026702880859375, 0.003017425537109375, 0.02557373046875, 0.07415771484375, 0.0010766983032226562, -0.017730712890625, -0.04058837890625, 0.00528717041015625, -0.00411224365234375, 0.044281005859375, -0.0186614990234375, -0.03204345703125, 0.02716064453125, 0.01263427734375, -0.0338134765625, 0.028778076171875, 0.036407470703125, -0.05438232421875, -0.049163818359375, 0.016998291015625, -0.0021076202392578125, 0.0439453125, -0.00269317626953125, 0.024444580078125, 0.0179595947265625, -0.022674560546875, 0.0282440185546875, -0.014678955078125, 0.0110931396484375, 0.0455322265625, 0.0304412841796875, -0.018035888671875, 0.023223876953125, -0.017425537109375, 0.0474853515625, 0.0081024169921875 ]
25c23e76ccb494c3fcefbfeed3776f8ffe267547
Wordpress Stackexchange Q: Wordpress Rest API I'm trying to call a post from a Wordpress install using WP REST API. I keep getting an error in return and I can't find out why. Do I need to authenticate? One website said I don't need to authenticate for a GET request. WP REST API: Version 2.0-beta9. Here is the code I am using: $(document).ready(function () { setTimeout(GetPosts, 2000); function GetPosts() { $.ajax({ url: 'http://easterly.haamap.com/wp-json/posts', data: { filter: { 'posts_per_page': 1 } }, dataType: 'json', type: 'GET', success: function(data) { console.log(data); }, error: function() { console.log('error'); } }); } }) A: What version of the REST API are you using? If you're using the version that's bundled with WordPress 4.4 (ie, v2), you'll need to change your url to something like http://example.com/wp-json/wp/v2/posts. Reference WP API version 2 docs
Q: Wordpress Rest API I'm trying to call a post from a Wordpress install using WP REST API. I keep getting an error in return and I can't find out why. Do I need to authenticate? One website said I don't need to authenticate for a GET request. WP REST API: Version 2.0-beta9. Here is the code I am using: $(document).ready(function () { setTimeout(GetPosts, 2000); function GetPosts() { $.ajax({ url: 'http://easterly.haamap.com/wp-json/posts', data: { filter: { 'posts_per_page': 1 } }, dataType: 'json', type: 'GET', success: function(data) { console.log(data); }, error: function() { console.log('error'); } }); } }) A: What version of the REST API are you using? If you're using the version that's bundled with WordPress 4.4 (ie, v2), you'll need to change your url to something like http://example.com/wp-json/wp/v2/posts. Reference WP API version 2 docs
wordpress
{ "language": "en", "length": 134, "provenance": "stackexchange_00019.jsonl.gz:461791", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212749" }
[ 0.0162811279296875, 0.0156707763671875, -0.05072021484375, 0.0246429443359375, 0.0180816650390625, -0.043701171875, 0.06610107421875, -0.0104827880859375, 0.0006852149963378906, 0.0079498291015625, -0.018798828125, -0.0007238388061523438, -0.0278472900390625, -0.0343017578125, 0.0005860328674316406, -0.05462646484375, 0.0428466796875, -0.002597808837890625, 0.036224365234375, -0.010528564453125, -0.00390625, -0.0030155181884765625, 0.05914306640625, 0.0877685546875, 0.01380157470703125, 0.023712158203125, 0.048583984375, -0.025360107421875, 0.008087158203125, -0.0092010498046875, 0.0176239013671875, -0.038604736328125, -0.00839996337890625, 0.06866455078125, -0.0732421875, -0.040771484375, 0.0023670196533203125, 0.0289306640625, -0.00714874267578125, 0.034912109375, 0.01238250732421875, -0.00949859619140625, 0.0179443359375, 0.0167236328125, -0.0104827880859375, -0.01044464111328125, 0.01222991943359375, -0.0291290283203125, -0.0036182403564453125, 0.0457763671875, 0.004077911376953125, -0.016510009765625, -0.0030879974365234375, 0.009552001953125, -0.007232666015625, -0.01410675048828125, 0.045135498046875, -0.02435302734375, 0.0286865234375, -0.06610107421875, -0.048797607421875, -0.0082244873046875, 0.042633056640625, 0.0262908935546875, 0.0279541015625, -0.0077362060546875, 0.04833984375, 0.0234375, -0.033447265625, 0.0306243896484375, 0.0267181396484375, -0.01230621337890625, -0.01364898681640625, -0.0259246826171875, -0.007297515869140625, -0.0228118896484375, -0.00183868408203125, -0.0265655517578125, -0.0028533935546875, 0.005321502685546875, 0.017486572265625, -0.01470184326171875, 0.0010957717895507812, -0.01351165771484375, -0.00595855712890625, -0.008148193359375, 0.00022876262664794922, -0.00390625, -0.0175323486328125, -0.0142364501953125, -0.0170135498046875, -0.076904296875, -0.00836181640625, 0.0421142578125, -0.0011272430419921875, -0.021942138671875, 0.004322052001953125, -0.00791168212890625, 0.0206298828125, 0.0173797607421875, 0.01137542724609375, -0.040802001953125, 0.0274505615234375, -0.0159149169921875, 0.0265960693359375, -0.007061004638671875, -0.0110931396484375, -0.0033969879150390625, 0.06329345703125, 0.0269927978515625, -0.01690673828125, 0.0784912109375, 0.03350830078125, -0.00945281982421875, -0.0243072509765625, -0.031951904296875, -0.00562286376953125, 0.0015277862548828125, 0.0161895751953125, -0.036712646484375, 0.0024852752685546875, 0.0172119140625, -0.01316070556640625, 0.039642333984375, 0.00354766845703125, 0.0198974609375, -0.0094451904296875, -0.016082763671875, 0.0011568069458007812, 0.0299530029296875, -0.0034732818603515625, 0.027099609375, 0.01529693603515625, -0.00736236572265625, -0.0263671875, -0.019866943359375, 0.0116119384765625, 0.033843994140625, -0.007602691650390625, 0.0027618408203125, -0.0103302001953125, -0.0225830078125, 0.004131317138671875, -0.01412200927734375, 0.03570556640625, -0.007171630859375, 0.01490020751953125, 0.0214080810546875, 0.033782958984375, -0.0055084228515625, -0.00345611572265625, 0.034881591796875, -0.00295257568359375, 0.0294189453125, 0.0665283203125, -0.0021800994873046875, 0.06561279296875, -0.0406494140625, 0.0270538330078125, -0.00974273681640625, 0.01401519775390625, -0.0208740234375, 0.0146636962890625, 0.005626678466796875, -0.022247314453125, 0.033050537109375, -0.036224365234375, -0.01557159423828125, 0.021881103515625, 0.033233642578125, -0.00794219970703125, -0.0418701171875, -0.0009632110595703125, -0.00966644287109375, -0.01885986328125, 0.0246429443359375, -0.019439697265625, 0.043853759765625, 0.043548583984375, 0.00339508056640625, 0.015869140625, -0.0160064697265625, 0.09564208984375, -0.0009484291076660156, -0.0272674560546875, 0.049774169921875, 0.048370361328125, 0.072998046875, -0.04443359375, 0.039337158203125, 0.035400390625, 0.06768798828125, -0.0030364990234375, 0.0341796875, -0.0132293701171875, -0.084716796875, -0.0025043487548828125, -0.0200653076171875, -0.029693603515625, 0.0250091552734375, 0.01070404052734375, 0.004375457763671875, -0.01061248779296875, -0.00836181640625, -0.03240966796875, -0.029205322265625, -0.0048828125, 0.01038360595703125, -0.017791748046875, 0.0128173828125, 0.0186004638671875, 0.00148773193359375, -0.028839111328125, 0.023681640625, 0.00616455078125, 0.006267547607421875, -0.0264434814453125, 0.024261474609375, -0.0230255126953125, 0.038360595703125, -0.01824951171875, -0.02508544921875, -0.01467132568359375, 0.00870513916015625, 0.0614013671875, -0.031585693359375, 0.0012884140014648438, -0.0384521484375, 0.07086181640625, -0.007579803466796875, 0.01158905029296875, 0.009002685546875, 0.032989501953125, 0.0517578125, -0.004817962646484375, -0.0110321044921875, 0.012542724609375, -0.042510986328125, 0.028106689453125, 0.046295166015625, 0.0213470458984375, -0.0018405914306640625, -0.0018014907836914062, 0.0185699462890625, 0.0026569366455078125, -0.02288818359375, 0.021392822265625, -0.016265869140625, -0.0158538818359375, -0.029541015625, 0.032440185546875, -0.0285186767578125, 0.0236358642578125, -0.048492431640625, -0.001483917236328125, 0.02117919921875, -0.005344390869140625, 0.0213775634765625, -0.01318359375, -0.031402587890625, 0.01450347900390625, -0.039764404296875, -0.0286712646484375, -0.0148162841796875, -0.029541015625, 0.0008077621459960938, 0.01071929931640625, 0.03033447265625, -0.0236968994140625, -0.0103759765625, 0.03375244140625, 0.0384521484375, -0.00891876220703125, 0.0465087890625, 0.0712890625, -0.023345947265625, -0.03436279296875, -0.030853271484375, 0.0340576171875, 0.03948974609375, -0.01080322265625, 0.0019054412841796875, -0.021514892578125, 0.007122039794921875, 0.015869140625, -0.0218963623046875, 0.0140228271484375, 0.0312347412109375, 0.044647216796875, 0.057037353515625, 0.061309814453125, 0.022064208984375, 0.0198822021484375, 0.027435302734375, -0.007419586181640625, 0.007183074951171875, 0.0418701171875, -0.030670166015625, 0.037841796875, -0.047088623046875, -0.0056610107421875, 0.041839599609375, -0.0007576942443847656, -0.010040283203125, -0.01239776611328125, 0.01102447509765625, -0.0304107666015625, 0.0234527587890625, -0.00811004638671875, -0.055938720703125, 0.012176513671875, 0.0296478271484375, 0.01403045654296875, 0.036712646484375, -0.00656890869140625, -0.043609619140625, -0.01540374755859375, 0.0267486572265625, -0.11785888671875, -0.119873046875, 0.035308837890625, -0.0576171875, 0.00910186767578125, -0.032257080078125, -0.029266357421875, -0.0192413330078125, -0.01299285888671875, -0.0151214599609375, -0.006900787353515625, 0.008544921875, -0.07904052734375, -0.056976318359375, -0.08795166015625, -0.043182373046875, -0.0217742919921875, 0.01171112060546875, 0.01474761962890625, 0.0202178955078125, 0.002666473388671875, -0.015655517578125, 0.0189666748046875, 0.0307159423828125, -0.01163482666015625, -0.0168914794921875, -0.029083251953125, 0.03155517578125, 0.020416259765625, -0.01271820068359375, 0.06591796875, 0.05419921875, -0.048797607421875, -0.00637054443359375, -0.0152435302734375, 0.01177215576171875, -0.0106048583984375, 0.03466796875, 0.02349853515625, -0.01406097412109375, -0.0033931732177734375, -0.040679931640625, 0.008514404296875, -0.0207061767578125, -0.03985595703125, -0.01045989990234375, 0.03302001953125, -0.012969970703125, -0.033538818359375, 0.003925323486328125, -0.012420654296875, -0.022705078125, 0.033538818359375, -0.019805908203125, 0.038482666015625, -0.0200347900390625, -0.0307159423828125, -0.0248870849609375, 0.044952392578125, -0.01078033447265625, -0.056915283203125, -0.01224517822265625, -0.0148773193359375, -0.0306243896484375, -0.0191802978515625, -0.0662841796875, -0.04779052734375, 0.0657958984375, 0.0245819091796875, -0.01137542724609375, -0.01059722900390625, -0.038787841796875, 0.01129150390625, 0.0733642578125, 0.05841064453125, -0.0213623046875, -0.0290985107421875, 0.01265716552734375, -0.06231689453125, -0.044830322265625, 0.00681304931640625, 0.024383544921875, 0.004070281982421875, -0.021728515625, -0.02520751953125, -0.00620269775390625, -0.01027679443359375, -0.017181396484375, 0.017181396484375, -0.0235748291015625, 0.02972412109375, -0.066162109375, 0.007080078125, 0.0031795501708984375, 0.012451171875, -0.04913330078125, -0.00145721435546875, -0.0272216796875, -0.06048583984375, -0.0237274169921875, 0.01348114013671875, 0.049835205078125, 0.0242156982421875, -0.049072265625, -0.003627777099609375, 0.03924560546875, 0.00057220458984375, 0.031707763671875, -0.0173797607421875, -0.00862884521484375, -0.021392822265625, 0.028839111328125, 0.003200531005859375, -0.00044655799865722656, -0.01678466796875, 0.01036834716796875, 0.0028285980224609375, -0.00705718994140625, -0.01934814453125, -0.048187255859375, 0.00466156005859375, -0.0302581787109375, -0.037841796875, -0.0298614501953125, -0.00804901123046875, -0.00839996337890625, -0.024932861328125, 0.00670623779296875, -0.0132293701171875, -0.0273590087890625, 0.033843994140625, 0.036407470703125, -0.013641357421875, -0.01092529296875, 0.040283203125, 0.0205230712890625, -0.04095458984375, -0.029052734375, 0.0039825439453125, 0.0308837890625, -0.023773193359375, 0.062042236328125, 0.0104217529296875, -0.0260009765625, 0.11468505859375, -0.01477813720703125, 0.0005326271057128906, 0.0094757080078125, 0.0372314453125, 0.005512237548828125, -0.026611328125, 0.01806640625, 0.0065765380859375, -0.045654296875, 0.0300750732421875, -0.00940704345703125, -0.006591796875, 0.032623291015625, 0.0291595458984375, -0.060516357421875, 0.0250396728515625, -0.007965087890625, -0.035736083984375, 0.03717041015625, -0.07763671875, 0.00031876564025878906, -0.034881591796875, 0.0181121826171875, -0.01131439208984375, -0.0200958251953125, -0.0086517333984375, -0.03790283203125, 0.01271820068359375, -0.0178680419921875, 0.036529541015625, -0.023590087890625, -0.0081634521484375, -0.043060302734375, -0.01934814453125, 0.0577392578125, 0.00868988037109375, -0.085205078125, 0.04815673828125, -0.01654052734375, 0.0239715576171875, 0.020660400390625, -0.0283203125, 0.0168304443359375, 0.007904052734375, -0.0025959014892578125, 0.011932373046875, -0.01071929931640625, -0.01593017578125, -0.0247650146484375, 0.059722900390625, 0.0282745361328125, -0.000202178955078125, -0.00234222412109375, 0.079833984375, 0.0193939208984375, 0.043060302734375, -0.0256195068359375, 0.0086517333984375, 0.0050201416015625, 0.05279541015625, 0.02020263671875, -0.0200042724609375, 0.00920867919921875, 0.0323486328125, -0.0022106170654296875, -0.04510498046875, -0.03125, 0.0430908203125, 0.041839599609375, -0.017913818359375, -0.035003662109375, 0.025665283203125, 0.01020050048828125, -0.025970458984375, -0.0158538818359375, -0.01085662841796875, 0.01189422607421875, -0.01654052734375, -0.0006723403930664062, 0.031402587890625, 0.03607177734375, 0.0088348388671875, 0.00379180908203125, 0.0303802490234375, 0.0352783203125, -0.01439666748046875, -0.006618499755859375, 0.010589599609375, 0.0131378173828125, 0.0150299072265625, -0.059417724609375, -0.0279388427734375, 0.018463134765625, 0.056396484375, -0.0307464599609375, -0.031982421875, 0.0294342041015625, -0.00945281982421875, -0.01331329345703125, -0.036468505859375, 0.0308074951171875, -0.052520751953125, 0.005802154541015625, 0.0254364013671875, 0.00887298583984375, 0.007114410400390625, -0.0240020751953125, -0.00984954833984375, -0.035858154296875, 0.0401611328125, 0.024322509765625, -0.0258636474609375, -0.0185394287109375, 0.019775390625, 0.0214691162109375, 0.0027599334716796875, -0.023529052734375, -0.00962066650390625, 0.01526641845703125, 0.00882720947265625, 0.0269775390625, -0.0283050537109375, 0.09814453125, -0.02490234375, 0.032928466796875, 0.007015228271484375, 0.07305908203125, 0.01020050048828125, -0.0134735107421875, 0.002162933349609375, -0.073974609375, -0.0096893310546875, -0.00738525390625, -0.038330078125, 0.0430908203125, 0.047698974609375, 0.003574371337890625, -0.0253448486328125, -0.019439697265625, -0.0021114349365234375, -0.01727294921875, 0.0765380859375, -0.013092041015625, -0.0195159912109375, 0.006092071533203125, -0.01314544677734375, -0.0010986328125, -0.01546478271484375, -0.0021514892578125, 0.0091552734375, 0.004627227783203125, 0.01334381103515625, 0.0012388229370117188, -0.0127716064453125, 0.030059814453125, 0.11962890625, 0.012420654296875, 0.06451416015625, 0.0457763671875, 0.01334381103515625, 0.04437255859375, 0.034576416015625, -0.01360321044921875, -0.04864501953125, 0.0088348388671875, 0.0015516281127929688, -0.027496337890625, -0.01064300537109375, -0.031494140625, 0.043975830078125, 0.00116729736328125, 0.07159423828125, -0.0113983154296875, 0.01541900634765625, 0.003387451171875, -0.07171630859375, 0.032257080078125, -0.0006403923034667969, -0.0078277587890625, -0.037445068359375, 0.0357666015625, -0.0275726318359375, -0.00937652587890625, 0.0215301513671875, -0.01367950439453125, -0.00824737548828125, -0.01052093505859375, 0.039215087890625, 0.0174102783203125, 0.01496124267578125, 0.0217132568359375, -0.026092529296875, 0.048187255859375, 0.026123046875, -0.00806427001953125, 0.01010894775390625, -0.06146240234375, -0.04583740234375, -0.009307861328125, -0.03302001953125, -0.048614501953125, -0.01448822021484375, 0.0084991455078125, 0.012847900390625, 0.02557373046875, -0.0203704833984375, -0.00232696533203125, -0.0095672607421875, 0.001720428466796875, 0.02587890625, -0.023193359375, 0.007476806640625, 0.04730224609375, -0.055389404296875, 0.01166534423828125, -0.0025463104248046875, 0.014617919921875, -0.01605224609375, -0.043701171875, 0.08233642578125, -0.0146331787109375, -0.0219573974609375, 0.0260009765625, -0.0237884521484375, -0.0234832763671875, -0.007320404052734375, 0.036956787109375, -0.046356201171875, -0.002197265625, 0.0221405029296875, 0.0006299018859863281, -0.005382537841796875, 0.0035572052001953125, -0.0018863677978515625, 0.09027099609375, -0.0027523040771484375, -0.03253173828125, 0.023529052734375, 0.04779052734375, -0.04443359375, 0.038909912109375, -0.03765869140625, 0.0416259765625, -0.0018720626831054688, -0.00035500526428222656, -0.05029296875, 0.0044097900390625, -0.0228118896484375, 0.007598876953125, 0.0667724609375, 0.016845703125, -0.0361328125, -0.053558349609375, -0.021575927734375, 0.046051025390625, -0.00390625, 0.031951904296875, 0.0233917236328125, 0.0341796875, 0.060333251953125, -0.034515380859375, 0.024261474609375, -0.0005421638488769531, 0.0301513671875, 0.044830322265625, 0.00966644287109375, -0.01715087890625, 0.0014400482177734375, 0.005706787109375, -0.009918212890625, -0.0062255859375, 0.02099609375, -0.0233154296875, -0.01061248779296875, 0.023284912109375, 0.0120849609375, -0.016387939453125, 0.0163421630859375, -0.036834716796875, 0.03729248046875, -0.0021152496337890625, 0.0218963623046875, 0.0211029052734375, 0.025665283203125, 0.019744873046875, 0.007781982421875, 0.017059326171875, 0.046844482421875, -0.0487060546875, 0.04705810546875, 0.0255279541015625, 0.02069091796875, -0.04559326171875, -0.020263671875, 0.03302001953125, 0.069091796875, -0.043487548828125, -0.01335906982421875, 0.001251220703125, 0.015716552734375, 0.04364013671875, -0.0192108154296875, 0.08233642578125, 0.032318115234375, 0.0038318634033203125, -0.01824951171875, 0.020751953125, 0.0175018310546875, 0.018341064453125, 0.00992584228515625, 0.0276336669921875, -0.049957275390625, 0.0201873779296875, -0.021087646484375, -0.022979736328125, 0.0079498291015625, 0.035858154296875, 0.0019683837890625, 0.043243408203125, -0.0367431640625, -0.0025005340576171875, 0.036102294921875, 0.0177764892578125, 0.0202789306640625, -0.04815673828125, 0.00986480712890625, -0.0682373046875, 0.031768798828125, 0.0140380859375, 0.01245880126953125, 0.00829315185546875, 0.05389404296875, 0.0302581787109375, -0.04144287109375, -0.0182647705078125, 0.0322265625, -0.018798828125, -0.053497314453125, -0.0261993408203125, -0.06976318359375, -0.0030345916748046875, -0.02886962890625, 0.045013427734375, -0.02069091796875, 0.0028705596923828125, 0.001773834228515625, 0.06939697265625, 0.00388336181640625, 0.0182342529296875, 0.07452392578125, -0.007587432861328125, 0.06787109375, 0.0169219970703125, -0.039306640625, 0.01021575927734375, -0.0242462158203125, -0.054779052734375, 0.0002567768096923828, 0.0226898193359375, -0.0213470458984375, 0.0217437744140625, -0.0173797607421875, -0.01319122314453125, 0.02886962890625, -0.0038051605224609375, 0.0032520294189453125, 0.016265869140625, 0.0199737548828125, -0.0103759765625, -0.052490234375, -0.017730712890625, -0.0253143310546875, 0.0284271240234375, -0.0019989013671875, 0.048309326171875, -0.0008416175842285156, 0.0179290771484375, -0.047454833984375, 0.022705078125, -0.0650634765625, -0.016998291015625, -0.04705810546875, -0.0176239013671875, 0.01143646240234375, 0.035186767578125, -0.06298828125, 0.047637939453125, -0.0027370452880859375, 0.0188446044921875, 0.07904052734375, -0.055816650390625, 0.0007863044738769531, -0.0232696533203125, 0.019378662109375, -0.039642333984375, -0.06060791015625, -0.050140380859375, 0.025115966796875, -0.0021457672119140625, 0.01041412353515625, -0.0335693359375, 0.0163116455078125, -0.007137298583984375, -0.02447509765625, 0.00417327880859375, -0.0241546630859375, 0.0257110595703125, 0.03131103515625, -0.035064697265625, 0.04400634765625, -0.037933349609375, -0.037567138671875, 0.0186614990234375, -0.01320648193359375, -0.03662109375, -0.017333984375, 0.0418701171875, -0.033355712890625, -0.019012451171875, 0.01082611083984375, -0.0028896331787109375, -0.01415252685546875, -0.0107421875, -0.0083770751953125, -0.042266845703125, 0.01122283935546875, -0.0159454345703125, -0.03558349609375, -0.0025482177734375, 0.006282806396484375, -0.0029449462890625, -0.007396697998046875, -0.0175018310546875, -0.0029163360595703125, 0.006587982177734375, -0.0223846435546875, -0.0167236328125, 0.0091552734375, -0.025238037109375, 0.024169921875, -0.03302001953125, 0.0007991790771484375, 0.00862884521484375, 0.05426025390625, -0.0379638671875, -0.013885498046875, -0.0238189697265625, -0.02850341796875, -0.0191192626953125, 0.0093841552734375, 0.0201263427734375, -0.0232086181640625, -0.01629638671875, -0.0216522216796875, 0.00591278076171875, 0.0205841064453125, 0.005390167236328125, 0.0069580078125, 0.0073394775390625, 0.011016845703125, -0.04071044921875, -0.07940673828125, 0.0202789306640625, -0.0828857421875, -0.0005774497985839844, -0.0185089111328125, 0.0274658203125, 0.046295166015625, -0.021636962890625, -0.0758056640625, 0.06280517578125, -0.0266876220703125, -0.0270233154296875, -0.0904541015625, -0.0272979736328125, 0.0306854248046875, 0.0109710693359375, -0.039398193359375, -0.009918212890625, -0.09228515625, 0.0203857421875, 0.002353668212890625, 0.0256195068359375, 0.0033111572265625, 0.0169830322265625, -0.034393310546875, 0.013702392578125, -0.008514404296875, -0.005428314208984375, -0.0087890625, 0.02130126953125, 0.01274871826171875, 0.033477783203125, -0.03271484375, 0.04266357421875, -0.0203857421875, 0.01389312744140625, -0.0146331787109375, -0.04412841796875, -0.00751495361328125, -0.0244598388671875, 0.01546478271484375, 0.034637451171875, -0.00746917724609375, -0.0181121826171875, -0.0225372314453125, -0.041534423828125, 0.01509857177734375, -0.01087188720703125, -0.006595611572265625, -0.033203125, 0.005504608154296875, 0.0099945068359375, 0.0281524658203125, 0.0237884521484375, -0.058502197265625, 0.0117034912109375, -0.0295562744140625, -0.022735595703125, -0.00217437744140625, 0.00634002685546875, -0.033905029296875, 0.03900146484375, -0.017181396484375, 0.0131988525390625, -0.0029811859130859375, 0.04034423828125, 0.01358795166015625, -0.002368927001953125, 0.002513885498046875, 0.008514404296875, 0.0011110305786132812, 0.0029964447021484375, 0.0238189697265625, 0.0222320556640625, 0.0139007568359375, -0.021240234375, -0.01013946533203125, 0.012298583984375, -0.00024247169494628906, 0.0199432373046875, 0.02618408203125, -0.022491455078125, 0.00215911865234375, 0.0169219970703125, -0.0081939697265625, 0.034576416015625, -0.003936767578125, 0.02655029296875, -0.031158447265625, 0.0007891654968261719, 0.0172576904296875, -0.05633544921875, 0.0022716522216796875, 0.030609130859375, -0.01380157470703125, -0.02105712890625, 0.0203857421875, 0.023406982421875, 0.00145721435546875, 0.001617431640625 ]
c7505bca344d98d170fe2321a9d67389c2093017
Wordpress Stackexchange Q: WooCommerce return 404 on category pages I am trying to set up WooCommerce permalinks to get something like: * *example.com/shop/ => Shop page listing products *example.com/shop/category-name/ => Category page listing products from a category *example.com/shop/category-name/product-name/ => Product page showing product details But I have a 404 not found error when trying to open the category page. What I did is: * *I created a "Shop" page and I set it as the shop page in WooCommerce settings. OK: The page works fine and is displaying all products. *In WordPress permalinks settings, I set the product category base to "shop". KO: When I try to display a category page, WP returns a 404 error (but links are properly generated in the shop page sidebar and 404 error occurs while clicking on them). *In WordPress permalinks settings, I set the product permalink to "/shop/%product_cat%". OK: Products pages are displaying without issue. Any way to solve this? A: Under Custom Base where you have used /shop/%product_cat% needs to be replaced with /shop/%product-category% Please see screenshot below:
Q: WooCommerce return 404 on category pages I am trying to set up WooCommerce permalinks to get something like: * *example.com/shop/ => Shop page listing products *example.com/shop/category-name/ => Category page listing products from a category *example.com/shop/category-name/product-name/ => Product page showing product details But I have a 404 not found error when trying to open the category page. What I did is: * *I created a "Shop" page and I set it as the shop page in WooCommerce settings. OK: The page works fine and is displaying all products. *In WordPress permalinks settings, I set the product category base to "shop". KO: When I try to display a category page, WP returns a 404 error (but links are properly generated in the shop page sidebar and 404 error occurs while clicking on them). *In WordPress permalinks settings, I set the product permalink to "/shop/%product_cat%". OK: Products pages are displaying without issue. Any way to solve this? A: Under Custom Base where you have used /shop/%product_cat% needs to be replaced with /shop/%product-category% Please see screenshot below: A: Turns out you don't need to use %product-category% as this does create an issue with the permalinks, that variable name is left in the links, and not the actual product category. Just leave Category base blank, that is what seems to have been causing the 404 error conflict. With the settings below, all is working: example.com/store/ => Shop page listing products example.com/store/category-name/ => Category page listing products from a category example.com/store/category-name/product-name/ => Product page showing product details
wordpress
{ "language": "en", "length": 252, "provenance": "stackexchange_00019.jsonl.gz:461793", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/212767" }
[ 0.02008056640625, -0.0246734619140625, -0.01104736328125, -0.0247802734375, -0.0142059326171875, -0.0215606689453125, 0.02227783203125, -0.0019054412841796875, -0.0124053955078125, 0.00499725341796875, -0.045013427734375, -0.00720977783203125, -0.00113677978515625, -0.0163726806640625, 0.01059722900390625, -0.03369140625, -0.00508880615234375, 0.04119873046875, 0.050689697265625, 0.00313568115234375, -0.01534271240234375, 0.01654052734375, 0.022705078125, -0.0180816650390625, 0.041656494140625, -0.040557861328125, 0.07305908203125, -0.057098388671875, 0.031463623046875, -0.0401611328125, 0.022369384765625, 0.00701904296875, 0.027557373046875, -0.0302276611328125, 0.041961669921875, 0.0281219482421875, 0.01061248779296875, -0.0159759521484375, 0.0119171142578125, 0.0015840530395507812, 0.0311126708984375, -0.0203399658203125, 0.06732177734375, 0.01165771484375, 0.043060302734375, -0.03497314453125, 0.0284423828125, -0.0947265625, 0.0018587112426757812, -0.04376220703125, -0.00989532470703125, 0.0295562744140625, 0.007518768310546875, -0.041717529296875, -0.02459716796875, -0.0208587646484375, -0.0247344970703125, 0.0116119384765625, 0.0239105224609375, 0.008148193359375, -0.0147857666015625, 0.0008373260498046875, 0.00444793701171875, -0.0098419189453125, -0.01448822021484375, -0.0080718994140625, -0.00247955322265625, 0.0206451416015625, -0.019439697265625, 0.0029850006103515625, 0.0267791748046875, -0.00897979736328125, -0.0094146728515625, 0.031341552734375, -0.05609130859375, -0.0452880859375, 0.0266876220703125, -0.027862548828125, 0.00838470458984375, 0.0235137939453125, 0.00905609130859375, -0.025909423828125, -0.00028634071350097656, -0.05438232421875, 0.0308074951171875, -0.0183258056640625, 0.00580596923828125, 0.004608154296875, -0.01422882080078125, -0.0350341796875, -0.0110931396484375, -0.0223846435546875, -0.029571533203125, 0.005176544189453125, -0.0202484130859375, -0.01461029052734375, 0.0004742145538330078, 0.01258087158203125, 0.0034999847412109375, 0.038238525390625, 0.0186004638671875, -0.053802490234375, 0.0628662109375, -0.049468994140625, 0.00799560546875, 0.027130126953125, 0.018310546875, 0.029052734375, 0.039398193359375, 0.0140533447265625, 0.0023632049560546875, 0.051849365234375, -0.005359649658203125, -0.0458984375, 0.00629425048828125, 0.0298004150390625, -0.0294036865234375, 0.0008897781372070312, 0.00749969482421875, -0.02838134765625, -0.014251708984375, 0.035736083984375, 0.01105499267578125, -0.0227508544921875, -0.00006949901580810547, 0.00007903575897216797, 0.0206146240234375, -0.0755615234375, 0.042724609375, 0.0037174224853515625, -0.017181396484375, 0.007678985595703125, 0.0015649795532226562, 0.018096923828125, 0.01389312744140625, -0.003086090087890625, 0.04071044921875, -0.00440216064453125, 0.0030231475830078125, 0.00347900390625, -0.0035495758056640625, 0.01531982421875, 0.0103912353515625, -0.031890869140625, 0.03582763671875, -0.00656890869140625, -0.005489349365234375, 0.0274200439453125, 0.038238525390625, 0.019866943359375, 0.01258087158203125, -0.0088653564453125, 0.02972412109375, 0.00691986083984375, 0.0059814453125, 0.0026760101318359375, 0.0408935546875, -0.026580810546875, -0.03289794921875, -0.053802490234375, 0.0209808349609375, -0.0020236968994140625, 0.042510986328125, -0.03131103515625, -0.0579833984375, 0.0045623779296875, -0.09173583984375, -0.02398681640625, 0.007579803466796875, 0.03448486328125, -0.0009441375732421875, -0.0106964111328125, -0.04119873046875, -0.00916290283203125, -0.00988006591796875, -0.0076904296875, -0.0034809112548828125, 0.0289306640625, 0.027923583984375, 0.036590576171875, 0.00888824462890625, -0.0232086181640625, 0.05560302734375, -0.005878448486328125, -0.032440185546875, 0.025360107421875, 0.033233642578125, 0.049713134765625, -0.04559326171875, 0.023651123046875, 0.0469970703125, 0.057281494140625, -0.0450439453125, 0.027740478515625, -0.021148681640625, -0.03289794921875, 0.006305694580078125, 0.0106353759765625, -0.020172119140625, -0.0025844573974609375, 0.00022923946380615234, 0.0355224609375, 0.0222930908203125, 0.0350341796875, 0.019256591796875, 0.056182861328125, 0.0010557174682617188, 0.037811279296875, -0.01192474365234375, 0.0396728515625, 0.0279998779296875, 0.048248291015625, -0.043975830078125, -0.04815673828125, 0.005359649658203125, 0.031341552734375, -0.03656005859375, 0.051116943359375, -0.0303955078125, 0.054962158203125, -0.0225067138671875, -0.053558349609375, -0.01389312744140625, 0.0124664306640625, 0.0167388916015625, 0.02130126953125, -0.0143280029296875, 0.00200653076171875, 0.00594329833984375, 0.0360107421875, -0.0616455078125, -0.0138397216796875, 0.048187255859375, 0.0241241455078125, -0.04693603515625, 0.0267181396484375, -0.011688232421875, -0.0095672607421875, -0.0255584716796875, 0.0289306640625, 0.034210205078125, 0.027008056640625, -0.029327392578125, -0.05755615234375, 0.049072265625, -0.05841064453125, -0.0109710693359375, -0.0251617431640625, 0.003528594970703125, 0.00930023193359375, 0.043701171875, -0.0149383544921875, 0.0269775390625, -0.0275115966796875, 0.00760650634765625, 0.038604736328125, -0.0249176025390625, -0.0176849365234375, 0.0025882720947265625, -0.003688812255859375, 0.0196685791015625, -0.0015001296997070312, -0.015716552734375, -0.00010085105895996094, 0.01727294921875, 0.026336669921875, 0.018218994140625, 0.0162811279296875, -0.0235595703125, 0.01244354248046875, 0.006122589111328125, -0.050048828125, -0.004917144775390625, 0.0198516845703125, 0.0195465087890625, -0.02227783203125, -0.033538818359375, -0.0059814453125, 0.0272674560546875, 0.00363922119140625, 0.00263214111328125, 0.06427001953125, 0.0004584789276123047, -0.014434814453125, -0.043792724609375, -0.053741455078125, 0.0005087852478027344, 0.0257110595703125, 0.000675201416015625, -0.01244354248046875, 0.0152435302734375, 0.0151824951171875, -0.034271240234375, 0.034820556640625, -0.020904541015625, -0.019256591796875, 0.05810546875, -0.038421630859375, 0.056060791015625, -0.051605224609375, 0.0345458984375, 0.04071044921875, -0.04315185546875, 0.020263671875, 0.0183868408203125, -0.0234832763671875, 0.03564453125, 0.005706787109375, -0.0187530517578125, 0.003509521484375, -0.08087158203125, -0.017822265625, 0.03497314453125, 0.04425048828125, 0.01548004150390625, -0.034088134765625, 0.01552581787109375, 0.03594970703125, -0.0670166015625, -0.119140625, -0.0119781494140625, -0.02679443359375, 0.03118896484375, 0.0004949569702148438, 0.01493072509765625, -0.0258636474609375, 0.01611328125, 0.01087188720703125, 0.0084381103515625, -0.03271484375, -0.05072021484375, -0.058685302734375, -0.06982421875, -0.0287322998046875, -0.0083465576171875, 0.00010895729064941406, 0.0012712478637695312, -0.0167236328125, -0.01540374755859375, -0.0251922607421875, 0.009490966796875, 0.031982421875, 0.01023101806640625, -0.0168914794921875, -0.00044417381286621094, -0.02496337890625, 0.006565093994140625, -0.0032100677490234375, 0.04833984375, 0.034393310546875, -0.0246124267578125, 0.0009889602661132812, -0.0024261474609375, -0.006046295166015625, 0.0005578994750976562, 0.0025005340576171875, 0.0190887451171875, -0.0034694671630859375, 0.004878997802734375, -0.0491943359375, -0.06341552734375, -0.0145263671875, -0.058441162109375, 0.043212890625, 0.03216552734375, 0.00940704345703125, 0.003643035888671875, 0.0171356201171875, 0.0145263671875, 0.00742340087890625, 0.0360107421875, -0.053466796875, 0.00701904296875, 0.00732421875, 0.01247406005859375, -0.040496826171875, 0.019866943359375, -0.02593994140625, 0.0187835693359375, 0.0128936767578125, -0.0145721435546875, -0.014495849609375, 0.01099395751953125, -0.025482177734375, -0.056793212890625, 0.03619384765625, -0.0655517578125, -0.0135650634765625, -0.045745849609375, -0.01171112060546875, -0.013580322265625, 0.08746337890625, 0.01300048828125, -0.0283203125, -0.00943756103515625, 0.01385498046875, -0.034637451171875, -0.01428985595703125, -0.0164031982421875, -0.0088043212890625, -0.050750732421875, 0.005573272705078125, 0.005584716796875, -0.036651611328125, 0.0335693359375, -0.0325927734375, -0.0152587890625, -0.032958984375, 0.030303955078125, -0.020904541015625, -0.00818634033203125, 0.01114654541015625, -0.0177459716796875, -0.031280517578125, -0.019287109375, -0.000621795654296875, -0.033599853515625, -0.0279998779296875, 0.041259765625, 0.048309326171875, -0.004566192626953125, -0.01198577880859375, -0.02642822265625, 0.04388427734375, 0.001682281494140625, 0.053192138671875, -0.003467559814453125, 0.011138916015625, -0.0007953643798828125, -0.004528045654296875, 0.031646728515625, -0.0228118896484375, 0.01348876953125, -0.0123443603515625, -0.0472412109375, -0.02423095703125, -0.020294189453125, 0.001499176025390625, 0.0240936279296875, -0.041107177734375, -0.08062744140625, -0.03961181640625, -0.0128021240234375, 0.0038280487060546875, -0.01229095458984375, 0.01102447509765625, -0.040496826171875, -0.06903076171875, 0.031402587890625, -0.038726806640625, 0.002593994140625, 0.0123443603515625, 0.039520263671875, 0.01407623291015625, -0.00788116455078125, 0.0215301513671875, 0.02825927734375, 0.019622802734375, -0.0021190643310546875, 0.03643798828125, -0.0132904052734375, -0.0018835067749023438, 0.03607177734375, -0.013397216796875, -0.00797271728515625, -0.00794219970703125, 0.038787841796875, -0.018218994140625, -0.0129852294921875, -0.0034084320068359375, -0.0498046875, 0.032196044921875, 0.0294189453125, -0.01503753662109375, 0.0054473876953125, -0.03607177734375, 0.01448822021484375, -0.01172637939453125, 0.01467132568359375, -0.022857666015625, -0.01849365234375, -0.004428863525390625, 0.0231170654296875, 0.057647705078125, 0.0333251953125, -0.007747650146484375, 0.034576416015625, 0.031524658203125, -0.0103302001953125, -0.023529052734375, -0.0254669189453125, -0.010711669921875, -0.005306243896484375, -0.01039886474609375, -0.01507568359375, -0.002819061279296875, 0.0017156600952148438, 0.0031185150146484375, -0.004489898681640625, -0.015838623046875, -0.00965118408203125, -0.036376953125, -0.027130126953125, 0.01629638671875, -0.01788330078125, 0.02386474609375, 0.0084228515625, -0.0214385986328125, -0.00011050701141357422, -0.054046630859375, -0.01126861572265625, -0.047760009765625, 0.0257110595703125, 0.0013704299926757812, 0.005603790283203125, -0.0015506744384765625, 0.08233642578125, 0.0169525146484375, 0.02691650390625, -0.01558685302734375, -0.01099395751953125, -0.00984954833984375, 0.06439208984375, 0.0389404296875, -0.07415771484375, -0.0005826950073242188, 0.02484130859375, 0.01136016845703125, -0.04058837890625, -0.03448486328125, 0.0185089111328125, 0.045928955078125, -0.053375244140625, -0.02691650390625, 0.030364990234375, 0.009918212890625, -0.0168304443359375, 0.01605224609375, -0.059234619140625, -0.0271759033203125, -0.048858642578125, -0.015045166015625, 0.039337158203125, -0.0025272369384765625, -0.0198822021484375, 0.0260467529296875, -0.02178955078125, 0.01482391357421875, 0.0227203369140625, -0.0200958251953125, 0.01251220703125, 0.008636474609375, -0.00507354736328125, -0.032318115234375, 0.01184844970703125, -0.03326416015625, 0.041656494140625, -0.038787841796875, -0.030487060546875, 0.025238037109375, 0.004100799560546875, 0.0777587890625, -0.0445556640625, -0.044647216796875, 0.01251220703125, -0.01387786865234375, 0.04180908203125, 0.028961181640625, -0.05047607421875, 0.0015888214111328125, -0.01690673828125, -0.005146026611328125, 0.0260009765625, -0.01371002197265625, -0.03045654296875, -0.0131988525390625, 0.01332855224609375, 0.0119781494140625, -0.006397247314453125, -0.0526123046875, -0.03564453125, -0.0003631114959716797, 0.0386962890625, -0.007556915283203125, -0.0262603759765625, 0.022003173828125, 0.00794219970703125, 0.0369873046875, -0.0092010498046875, -0.0123443603515625, -0.00397491455078125, -0.02459716796875, 0.0024013519287109375, -0.0227813720703125, -0.0250244140625, -0.005268096923828125, -0.046356201171875, 0.01947021484375, 0.0833740234375, 0.009185791015625, -0.007236480712890625, -0.0252838134765625, -0.014678955078125, -0.036346435546875, 0.035430908203125, -0.02362060546875, -0.0106658935546875, -0.007205963134765625, 0.005214691162109375, 0.039215087890625, 0.00583648681640625, -0.0316162109375, 0.01071929931640625, 0.0018634796142578125, 0.0203094482421875, 0.01004791259765625, -0.038909912109375, 0.035400390625, 0.06524658203125, 0.038787841796875, 0.051544189453125, -0.0015811920166015625, 0.0234832763671875, 0.00396728515625, 0.07275390625, 0.024505615234375, -0.0061798095703125, 0.06427001953125, 0.013427734375, -0.01319122314453125, 0.020233154296875, -0.0301055908203125, -0.0237274169921875, 0.07855224609375, 0.052490234375, -0.10797119140625, -0.01715087890625, 0.0186920166015625, 0.01181793212890625, -0.0202789306640625, 0.0278472900390625, 0.008575439453125, -0.024322509765625, -0.003948211669921875, -0.031585693359375, -0.005401611328125, -0.00423431396484375, -0.035888671875, 0.0123138427734375, 0.0308074951171875, 0.045196533203125, 0.002410888671875, -0.046722412109375, -0.04608154296875, 0.035125732421875, -0.019073486328125, -0.01245880126953125, -0.024505615234375, 0.0167236328125, -0.02423095703125, -0.00963592529296875, 0.05218505859375, -0.03448486328125, 0.05523681640625, 0.04693603515625, 0.00774383544921875, -0.0174560546875, 0.0113983154296875, -0.00875091552734375, 0.01629638671875, -0.02935791015625, -0.035888671875, 0.057708740234375, -0.0014410018920898438, 0.0162353515625, -0.005306243896484375, -0.08624267578125, -0.0194549560546875, -0.053985595703125, 0.036590576171875, -0.01253509521484375, 0.004772186279296875, 0.07330322265625, -0.04266357421875, -0.022491455078125, 0.0063323974609375, 0.035247802734375, 0.01230621337890625, -0.00392913818359375, 0.031646728515625, -0.0150299072265625, 0.0222930908203125, 0.01096343994140625, 0.0377197265625, 0.0282745361328125, 0.024078369140625, -0.049835205078125, 0.02276611328125, -0.052947998046875, 0.040802001953125, 0.041534423828125, -0.0016231536865234375, 0.0190277099609375, -0.0155792236328125, -0.027740478515625, 0.056060791015625, 0.01111602783203125, 0.0657958984375, -0.023712158203125, -0.0233612060546875, 0.043548583984375, 0.049835205078125, 0.06268310546875, 0.0156402587890625, -0.038726806640625, 0.01386260986328125, 0.06939697265625, -0.0084686279296875, -0.02581787109375, 0.06549072265625, -0.004756927490234375, -0.038421630859375, 0.03045654296875, 0.0131072998046875, 0.0251312255859375, 0.0070343017578125, -0.0162506103515625, 0.0080413818359375, 0.00457763671875, 0.004093170166015625, -0.0048675537109375, 0.02496337890625, -0.00211334228515625, -0.0162353515625, 0.016693115234375, -0.059814453125, -0.01788330078125, 0.03350830078125, 0.0245513916015625, -0.06756591796875, -0.018463134765625, -0.04052734375, 0.04931640625, 0.00867462158203125, 0.03546142578125, 0.0171356201171875, 0.0160369873046875, 0.09307861328125, -0.01904296875, 0.01313018798828125, 0.0211334228515625, -0.0258636474609375, 0.06561279296875, 0.04510498046875, 0.04315185546875, 0.0075836181640625, 0.0218505859375, 0.040771484375, 0.06048583984375, -0.037445068359375, -0.07354736328125, -0.0026683807373046875, 0.002841949462890625, 0.0350341796875, 0.0193328857421875, 0.01273345947265625, -0.00753021240234375, 0.049957275390625, -0.05706787109375, 0.0057830810546875, 0.0207672119140625, 0.05352783203125, -0.0185546875, -0.0489501953125, -0.044189453125, -0.006420135498046875, -0.046234130859375, 0.0279541015625, 0.0087432861328125, 0.06231689453125, 0.0149993896484375, 0.06365966796875, -0.047119140625, -0.04766845703125, 0.01049041748046875, 0.027435302734375, -0.023345947265625, 0.0017366409301757812, -0.026519775390625, -0.04217529296875, -0.00399017333984375, 0.042999267578125, -0.005977630615234375, 0.01483154296875, 0.00849151611328125, 0.036376953125, 0.0338134765625, -0.020172119140625, 0.0158233642578125, -0.00220489501953125, 0.0121002197265625, -0.01174163818359375, 0.052032470703125, 0.0026397705078125, 0.0028896331787109375, -0.0029315948486328125, 0.06304931640625, -0.005725860595703125, -0.008026123046875, 0.0159759521484375, 0.003696441650390625, -0.037567138671875, 0.04705810546875, -0.01067352294921875, 0.092529296875, 0.0093231201171875, -0.053375244140625, -0.0169219970703125, -0.029144287109375, -0.03521728515625, 0.02008056640625, 0.0418701171875, 0.0038700103759765625, 0.01392364501953125, 0.00820159912109375, -0.007656097412109375, 0.0271453857421875, -0.01995849609375, 0.01494598388671875, -0.0250244140625, 0.00981903076171875, 0.0006127357482910156, -0.01132965087890625, -0.00333404541015625, -0.008941650390625, 0.0150299072265625, 0.006656646728515625, 0.11566162109375, -0.035003662109375, 0.006961822509765625, -0.0166778564453125, 0.01031494140625, -0.03302001953125, -0.039337158203125, 0.05584716796875, -0.026611328125, -0.0225372314453125, 0.006763458251953125, -0.01568603515625, -0.01532745361328125, 0.054107666015625, -0.044677734375, -0.038665771484375, 0.005260467529296875, 0.042694091796875, 0.007843017578125, 0.01654052734375, -0.03521728515625, -0.08447265625, -0.08197021484375, 0.021026611328125, -0.0029811859130859375, 0.0024890899658203125, -0.0242462158203125, 0.0172882080078125, -0.01067352294921875, -0.027191162109375, 0.0233917236328125, -0.020111083984375, 0.041229248046875, 0.038299560546875, -0.033233642578125, 0.024322509765625, 0.005802154541015625, -0.01027679443359375, 0.00867462158203125, 0.01654052734375, -0.0206451416015625, 0.00904083251953125, -0.029632568359375, -0.01386260986328125, 0.0031757354736328125, -0.0092315673828125, -0.0274200439453125, -0.0034847259521484375, 0.0105438232421875, -0.024017333984375, 0.014862060546875, -0.0243682861328125, -0.013336181640625, -0.00955963134765625, -0.014373779296875, 0.0118255615234375, 0.0029926300048828125, 0.006603240966796875, -0.01386260986328125, 0.026519775390625, 0.0250396728515625, 0.00623321533203125, -0.047760009765625, 0.04132080078125, -0.0229644775390625, 0.04949951171875, -0.0095062255859375, -0.0256805419921875, 0.0006852149963378906, 0.006076812744140625, -0.040008544921875, 0.0299224853515625, -0.049774169921875, -0.0682373046875, -0.03387451171875, 0.01128387451171875, 0.039703369140625, -0.02618408203125, -0.041412353515625, -0.0237884521484375, -0.0135498046875, 0.033843994140625, 0.0017633438110351562, -0.0153350830078125, -0.00594329833984375, 0.023712158203125, -0.0219573974609375, -0.042205810546875, 0.01068115234375, -0.0125885009765625, -0.0063018798828125, -0.024078369140625, -0.00746917724609375, 0.0138397216796875, -0.03863525390625, -0.0201873779296875, 0.06634521484375, -0.00014543533325195312, -0.01092529296875, -0.03717041015625, -0.0029315948486328125, -0.029998779296875, 0.0552978515625, -0.01309967041015625, -0.008697509765625, -0.0244293212890625, 0.039276123046875, 0.0279083251953125, -0.0086669921875, 0.0110931396484375, 0.0056915283203125, -0.035125732421875, 0.03228759765625, 0.032745361328125, 0.026885986328125, 0.0265045166015625, -0.0110321044921875, 0.015472412109375, 0.04461669921875, -0.0321044921875, -0.0091552734375, -0.029327392578125, -0.0253448486328125, 0.042510986328125, -0.039642333984375, -0.03717041015625, -0.0732421875, 0.017303466796875, -0.041839599609375, 0.014495849609375, 0.04241943359375, -0.0706787109375, -0.0281524658203125, -0.0035724639892578125, 0.0022430419921875, 0.0265960693359375, -0.08038330078125, 0.0273284912109375, 0.0178985595703125, -0.00360870361328125, 0.022796630859375, 0.019561767578125, -0.0305328369140625, -0.0005583763122558594, 0.00909423828125, -0.006504058837890625, -0.0814208984375, -0.0248565673828125, -0.0054931640625, -0.0157623291015625, -0.029144287109375, 0.0004892349243164062, 0.0220947265625, -0.03582763671875, -0.0181427001953125, -0.0236053466796875, 0.022918701171875, -0.014434814453125, -0.0241546630859375, 0.004138946533203125, 0.018402099609375, 0.006801605224609375, 0.0167388916015625, -0.0157623291015625, 0.041534423828125, -0.004314422607421875, 0.025177001953125, 0.007747650146484375, 0.040679931640625, 0.0158538818359375, 0.080322265625, 0.0180206298828125, 0.0161590576171875, 0.0013265609741210938, 0.0732421875, -0.0015897750854492188, -0.0247344970703125, 0.01113128662109375, -0.06988525390625, -0.0146026611328125, 0.00844573974609375, -0.0269775390625, -0.048858642578125, 0.0184783935546875, -0.0357666015625, 0.00299072265625, 0.0198974609375 ]
1ed53d1ebad3503a6cf01964011423e4a4ee2279
Wordpress Stackexchange Q: Is there a way to keep a custom menu expanded when editing a custom post type? I am building a plugin that has a custom menu with pages under that menu. A few of those pages are custom post types. I would like to have the main menu stay open when I am on one of those custom post types. Is that possible? Here is what the menu looks like when I'm on a non-custom post type page: But when I click on Makes, Models or Types, the "Squirrels" menu closes because those are managed by the custom post type system. Sorry if this is a duplicate. I looked through some similar questions but didn't see one that had exactly this same issue. Thanks! A: I figured this out by putting the main menu slug into the show_in_menu key of the custom post type array like so: $args = array ( 'labels' => $labels, 'hierarchical' => FALSE, 'description' => $title . 's', 'supports' => array( 'title' ), 'show_ui' => TRUE, 'show_in_menu' => 'squirrels_inventory', 'show_in_nav_menus' => TRUE, 'publicly_queryable' => TRUE, 'exclude_from_search' => FALSE, 'has_archive' => TRUE );
Q: Is there a way to keep a custom menu expanded when editing a custom post type? I am building a plugin that has a custom menu with pages under that menu. A few of those pages are custom post types. I would like to have the main menu stay open when I am on one of those custom post types. Is that possible? Here is what the menu looks like when I'm on a non-custom post type page: But when I click on Makes, Models or Types, the "Squirrels" menu closes because those are managed by the custom post type system. Sorry if this is a duplicate. I looked through some similar questions but didn't see one that had exactly this same issue. Thanks! A: I figured this out by putting the main menu slug into the show_in_menu key of the custom post type array like so: $args = array ( 'labels' => $labels, 'hierarchical' => FALSE, 'description' => $title . 's', 'supports' => array( 'title' ), 'show_ui' => TRUE, 'show_in_menu' => 'squirrels_inventory', 'show_in_nav_menus' => TRUE, 'publicly_queryable' => TRUE, 'exclude_from_search' => FALSE, 'has_archive' => TRUE );
wordpress
{ "language": "en", "length": 187, "provenance": "stackexchange_00019.jsonl.gz:461872", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213066" }
[ 0.03790283203125, -0.013946533203125, 0.025970458984375, 0.0333251953125, 0.0033130645751953125, -0.025604248046875, 0.0875244140625, -0.029754638671875, -0.01403045654296875, -0.0034275054931640625, -0.0188751220703125, -0.0092620849609375, -0.056854248046875, -0.026702880859375, -0.01001739501953125, -0.054779052734375, 0.029327392578125, -0.02392578125, 0.0245513916015625, -0.0263824462890625, 0.0234527587890625, -0.0180511474609375, 0.0136260986328125, 0.05859375, 0.0291900634765625, -0.0020351409912109375, 0.00594329833984375, 0.00605010986328125, 0.008209228515625, 0.0075531005859375, 0.0259552001953125, -0.03253173828125, 0.00472259521484375, 0.020965576171875, 0.02325439453125, 0.06341552734375, 0.03240966796875, 0.01033782958984375, 0.04132080078125, 0.022491455078125, -0.0152740478515625, 0.0379638671875, 0.013580322265625, 0.01047515869140625, -0.0242919921875, -0.0621337890625, 0.0058746337890625, -0.0267486572265625, 0.005523681640625, -0.0439453125, 0.0157318115234375, 0.00931549072265625, 0.033294677734375, -0.03338623046875, -0.0282440185546875, -0.0170135498046875, -0.0260467529296875, -0.0275421142578125, 0.039642333984375, 0.00963592529296875, -0.01279449462890625, -0.049407958984375, 0.029052734375, -0.017730712890625, 0.0142974853515625, 0.001621246337890625, 0.02154541015625, 0.01334381103515625, -0.0770263671875, -0.0015163421630859375, 0.05438232421875, -0.031341552734375, 0.0341796875, -0.0028858184814453125, 0.006885528564453125, -0.05877685546875, 0.0384521484375, 0.00945281982421875, -0.0003197193145751953, 0.0229644775390625, 0.020660400390625, 0.013702392578125, 0.007266998291015625, -0.0174407958984375, 0.004077911376953125, 0.006595611572265625, -0.020050048828125, -0.0161895751953125, 0.0225677490234375, 0.01519775390625, -0.004638671875, 0.003078460693359375, 0.0272216796875, 0.06884765625, -0.01198577880859375, 0.0076141357421875, 0.01342010498046875, 0.021240234375, -0.006633758544921875, 0.045562744140625, -0.001861572265625, -0.04754638671875, 0.081787109375, -0.054534912109375, -0.007049560546875, 0.0450439453125, -0.006320953369140625, 0.00835418701171875, 0.0450439453125, 0.01538848876953125, 0.031036376953125, 0.00690460205078125, -0.038787841796875, -0.037078857421875, -0.00043129920959472656, 0.03790283203125, -0.044219970703125, 0.028778076171875, 0.0007724761962890625, 0.05609130859375, 0.0270538330078125, 0.043212890625, 0.00913238525390625, -0.0220947265625, 0.01641845703125, 0.0048065185546875, -0.01824951171875, -0.0384521484375, -0.0171966552734375, 0.047454833984375, -0.028594970703125, -0.01580810546875, 0.05780029296875, 0.040679931640625, 0.00824737548828125, -0.046295166015625, -0.0099945068359375, -0.028564453125, -0.004703521728515625, -0.00989532470703125, 0.0380859375, -0.0152740478515625, -0.004955291748046875, -0.00600433349609375, 0.0025806427001953125, 0.002655029296875, 0.0313720703125, 0.0192413330078125, -0.031982421875, -0.035980224609375, 0.0367431640625, -0.0286712646484375, 0.0885009765625, -0.017608642578125, -0.08013916015625, -0.048797607421875, 0.03472900390625, -0.043548583984375, -0.034423828125, -0.08843994140625, -0.07147216796875, -0.01384735107421875, 0.045562744140625, -0.07318115234375, -0.05419921875, 0.040252685546875, -0.0576171875, -0.00041961669921875, 0.00989532470703125, 0.00627899169921875, -0.0030193328857421875, 0.015167236328125, -0.0157318115234375, -0.016387939453125, -0.00859832763671875, -0.017059326171875, 0.004917144775390625, -0.0184173583984375, 0.03558349609375, 0.05328369140625, 0.00144195556640625, -0.0108642578125, 0.0670166015625, -0.0241851806640625, -0.052764892578125, 0.033905029296875, -0.003993988037109375, 0.0645751953125, 0.031829833984375, 0.0214691162109375, -0.00960540771484375, -0.00327301025390625, -0.05712890625, 0.00011932849884033203, -0.01313018798828125, 0.0176544189453125, 0.0014905929565429688, 0.0194244384765625, -0.005138397216796875, -0.00579071044921875, -0.06109619140625, 0.007015228271484375, -0.00524139404296875, 0.0142822265625, -0.061431884765625, 0.0179901123046875, -0.0194549560546875, 0.051971435546875, 0.0020294189453125, 0.0148773193359375, 0.008514404296875, 0.007488250732421875, -0.007419586181640625, -0.055389404296875, -0.032623291015625, 0.025115966796875, -0.0030040740966796875, 0.059478759765625, -0.0022869110107421875, 0.0199737548828125, 0.01126861572265625, -0.051300048828125, 0.00830841064453125, 0.0282745361328125, 0.017791748046875, -0.0197601318359375, -0.0195465087890625, -0.0154876708984375, -0.0133209228515625, 0.0145416259765625, -0.05316162109375, 0.007808685302734375, 0.041534423828125, 0.0021839141845703125, -0.033477783203125, -0.00655364990234375, 0.00720977783203125, -0.07354736328125, -0.0032482147216796875, 0.06329345703125, 0.0302581787109375, 0.0158843994140625, 0.004192352294921875, 0.0184478759765625, 0.0672607421875, -0.004932403564453125, 0.02056884765625, -0.014251708984375, -0.0294342041015625, 0.00423431396484375, 0.0360107421875, 0.01322174072265625, 0.020843505859375, 0.043548583984375, 0.01169586181640625, 0.0262451171875, 0.0023822784423828125, 0.01806640625, 0.00531005859375, -0.0406494140625, -0.00023937225341796875, -0.042388916015625, -0.03662109375, -0.00716400146484375, 0.0086517333984375, 0.01519012451171875, 0.046905517578125, 0.052764892578125, -0.034942626953125, -0.022308349609375, 0.0270843505859375, 0.1009521484375, -0.00724029541015625, 0.03271484375, 0.053558349609375, -0.03668212890625, -0.0265655517578125, -0.01544189453125, -0.000052809715270996094, 0.01061248779296875, -0.0223541259765625, 0.002948760986328125, -0.051116943359375, -0.01605224609375, -0.0171051025390625, -0.084716796875, 0.0113372802734375, 0.0298919677734375, 0.0121002197265625, 0.045623779296875, 0.04412841796875, 0.026458740234375, -0.018280029296875, 0.031036376953125, 0.00536346435546875, 0.01438140869140625, 0.08648681640625, -0.003143310546875, 0.0185394287109375, 0.0006232261657714844, 0.07611083984375, 0.050933837890625, -0.028228759765625, 0.01364898681640625, 0.0015506744384765625, 0.0170745849609375, -0.00904083251953125, 0.0218048095703125, -0.016387939453125, -0.04388427734375, -0.0009984970092773438, 0.0178070068359375, 0.02337646484375, 0.0300750732421875, 0.004589080810546875, -0.0230560302734375, 0.0030536651611328125, 0.03228759765625, -0.0004825592041015625, 0.00571441650390625, -0.001216888427734375, -0.02838134765625, 0.0283966064453125, -0.005512237548828125, -0.000002205371856689453, -0.03009033203125, 0.01308441162109375, 0.01517486572265625, -0.025634765625, -0.022857666015625, -0.060333251953125, -0.054473876953125, -0.04931640625, 0.01739501953125, -0.006526947021484375, 0.003910064697265625, 0.005252838134765625, 0.0400390625, 0.0008664131164550781, -0.037353515625, 0.0229339599609375, 0.011138916015625, -0.01007843017578125, 0.0279998779296875, 0.0343017578125, -0.01024627685546875, 0.03521728515625, 0.006866455078125, -0.001285552978515625, 0.0555419921875, -0.042572021484375, -0.016693115234375, -0.0128021240234375, -0.0071258544921875, 0.0185394287109375, 0.0019369125366210938, 0.0175018310546875, 0.0672607421875, 0.050506591796875, -0.00464630126953125, -0.030487060546875, -0.0408935546875, -0.061248779296875, -0.020843505859375, 0.03692626953125, 0.023406982421875, -0.05902099609375, 0.026611328125, -0.0002720355987548828, 0.011810302734375, 0.01788330078125, -0.017730712890625, 0.04248046875, -0.0251312255859375, -0.01239013671875, -0.034576416015625, 0.040008544921875, 0.0011682510375976562, -0.0011472702026367188, 0.0152587890625, 0.01387786865234375, 0.004886627197265625, -0.000023245811462402344, -0.029296875, -0.0389404296875, 0.028167724609375, -0.0562744140625, 0.0019512176513671875, -0.0244293212890625, -0.01464080810546875, 0.0036563873291015625, 0.08172607421875, -0.070556640625, -0.0104217529296875, -0.01227569580078125, 0.009765625, 0.03485107421875, -0.031158447265625, -0.04010009765625, -0.0258026123046875, -0.074462890625, 0.006832122802734375, -0.0015840530395507812, -0.032745361328125, -0.0233154296875, 0.03057861328125, -0.060699462890625, -0.0213165283203125, 0.042205810546875, -0.07379150390625, 0.030029296875, -0.0163421630859375, 0.0181884765625, -0.061004638671875, -0.0174713134765625, -0.0347900390625, -0.06884765625, -0.016876220703125, 0.0031890869140625, 0.051422119140625, -0.0013370513916015625, -0.00926971435546875, -0.040435791015625, 0.033111572265625, 0.0433349609375, 0.049285888671875, -0.0188751220703125, -0.022857666015625, 0.0009918212890625, -0.0189056396484375, 0.0015230178833007812, -0.01419830322265625, 0.00013172626495361328, 0.020843505859375, -0.028839111328125, 0.0193634033203125, 0.007396697998046875, -0.02587890625, 0.05792236328125, -0.050933837890625, -0.02301025390625, -0.048431396484375, -0.050201416015625, 0.009918212890625, -0.02154541015625, -0.0119476318359375, -0.041900634765625, -0.060638427734375, 0.0032958984375, -0.04815673828125, -0.0153961181640625, 0.02337646484375, 0.058746337890625, 0.016448974609375, 0.0099945068359375, -0.0163421630859375, -0.045257568359375, 0.019317626953125, 0.01276397705078125, 0.049652099609375, 0.00807952880859375, -0.0033855438232421875, 0.043243408203125, -0.01094818115234375, -0.018402099609375, -0.027374267578125, 0.08160400390625, -0.00859832763671875, -0.0163421630859375, 0.00879669189453125, -0.053192138671875, 0.0235137939453125, 0.0250091552734375, -0.016937255859375, -0.01013946533203125, -0.0440673828125, 0.06103515625, 0.00472259521484375, 0.00458526611328125, -0.07403564453125, -0.018341064453125, 0.01274871826171875, -0.02703857421875, 0.0357666015625, 0.0207672119140625, -0.009033203125, 0.0184173583984375, 0.0017290115356445312, 0.017425537109375, -0.002742767333984375, 0.0031528472900390625, -0.024871826171875, 0.01534271240234375, 0.037506103515625, 0.01209259033203125, 0.011932373046875, 0.00527191162109375, 0.026153564453125, 0.00408172607421875, -0.0194854736328125, -0.03900146484375, -0.0054168701171875, -0.0090179443359375, 0.0134124755859375, 0.035003662109375, 0.041259765625, 0.0011444091796875, 0.021575927734375, 0.00811767578125, 0.01259613037109375, 0.00199127197265625, -0.01947021484375, -0.01221466064453125, -0.0008392333984375, -0.00981903076171875, -0.0012416839599609375, 0.04736328125, 0.043212890625, 0.0164794921875, -0.043853759765625, 0.0139923095703125, 0.024688720703125, 0.020904541015625, -0.0016536712646484375, 0.035369873046875, -0.019866943359375, 0.01416778564453125, -0.000576019287109375, -0.003841400146484375, -0.0404052734375, 0.00954437255859375, -0.0107574462890625, -0.0104827880859375, 0.0305328369140625, 0.01546478271484375, 0.05181884765625, -0.0216217041015625, 0.03240966796875, -0.004215240478515625, -0.037811279296875, -0.035491943359375, 0.0156707763671875, 0.051666259765625, -0.000568389892578125, -0.031829833984375, -0.0021839141845703125, -0.044891357421875, -0.01013946533203125, -0.01215362548828125, -0.062255859375, 0.048583984375, 0.046905517578125, -0.049163818359375, -0.0193023681640625, 0.039306640625, -0.055694580078125, -0.04522705078125, -0.01053619384765625, 0.00803375244140625, 0.0009326934814453125, -0.02508544921875, 0.0257110595703125, -0.003902435302734375, -0.028350830078125, 0.0015230178833007812, 0.0123138427734375, 0.04315185546875, 0.0280303955078125, -0.035247802734375, 0.0187835693359375, -0.03363037109375, -0.01331329345703125, -0.03741455078125, -0.07623291015625, -0.043731689453125, -0.00843048095703125, 0.01580810546875, 0.036224365234375, 0.00909423828125, 0.0085906982421875, -0.029052734375, 0.0225982666015625, 0.01763916015625, 0.085205078125, -0.01018524169921875, 0.05682373046875, -0.0007033348083496094, 0.041839599609375, 0.0163116455078125, 0.0310211181640625, 0.0028896331787109375, -0.023406982421875, 0.01108551025390625, -0.0202484130859375, -0.0251312255859375, -0.004428863525390625, -0.01424407958984375, 0.015655517578125, 0.05047607421875, -0.01049041748046875, 0.01526641845703125, -0.0161590576171875, 0.00862884521484375, -0.0235443115234375, 0.06103515625, -0.0231170654296875, 0.004421234130859375, 0.058685302734375, -0.01349639892578125, 0.019134521484375, 0.021240234375, 0.0083465576171875, 0.0280303955078125, -0.0208892822265625, 0.040802001953125, -0.029998779296875, -0.02008056640625, 0.086669921875, 0.053619384765625, -0.0037364959716796875, 0.038909912109375, 0.047210693359375, 0.014739990234375, -0.032745361328125, -0.05853271484375, 0.0018939971923828125, 0.0411376953125, -0.0002435445785522461, -0.0318603515625, -0.0009012222290039062, 0.008941650390625, -0.00970458984375, 0.0167083740234375, 0.040924072265625, 0.06365966796875, -0.060211181640625, 0.006809234619140625, 0.0256195068359375, -0.0115814208984375, 0.0269012451171875, 0.02764892578125, -0.0140533447265625, 0.033782958984375, -0.017425537109375, -0.03515625, -0.030487060546875, 0.006069183349609375, 0.032745361328125, -0.0023365020751953125, -0.006195068359375, 0.03350830078125, 0.00916290283203125, 0.0016965866088867188, -0.03375244140625, 0.0058746337890625, -0.026885986328125, -0.0308074951171875, 0.006214141845703125, 0.01494598388671875, -0.0010242462158203125, -0.052032470703125, 0.0430908203125, -0.0352783203125, 0.031280517578125, 0.040496826171875, 0.004337310791015625, 0.011505126953125, 0.0235137939453125, -0.024688720703125, 0.047882080078125, -0.017791748046875, 0.039093017578125, 0.043304443359375, -0.02630615234375, 0.01457977294921875, 0.0220947265625, -0.0236358642578125, 0.006591796875, 0.01381683349609375, -0.02545166015625, -0.038665771484375, -0.035919189453125, 0.1307373046875, -0.018646240234375, -0.0222015380859375, 0.0208587646484375, 0.018310546875, -0.034820556640625, -0.00015461444854736328, 0.0261383056640625, -0.060394287109375, -0.02203369140625, -0.01038360595703125, -0.031982421875, -0.0230865478515625, -0.0304718017578125, -0.039947509765625, 0.09375, -0.0156707763671875, -0.0092010498046875, 0.0110931396484375, 0.052764892578125, -0.0310516357421875, 0.01947021484375, -0.031341552734375, 0.053253173828125, -0.004486083984375, 0.00861358642578125, -0.050384521484375, 0.0128173828125, -0.02020263671875, -0.00473785400390625, -0.01068878173828125, -0.0001844167709350586, -0.01352691650390625, 0.00801849365234375, 0.041168212890625, 0.0416259765625, 0.020477294921875, 0.01386260986328125, -0.01143646240234375, -0.005817413330078125, 0.01427459716796875, -0.0098419189453125, 0.039337158203125, -0.01169586181640625, -0.03253173828125, 0.001438140869140625, 0.0246429443359375, 0.044891357421875, 0.00270843505859375, -0.02197265625, 0.009613037109375, -0.0010461807250976562, -0.0016994476318359375, 0.000415802001953125, -0.0159454345703125, 0.05291748046875, 0.032440185546875, 0.00371551513671875, -0.02935791015625, -0.022491455078125, 0.035888671875, 0.0012464523315429688, 0.004573822021484375, -0.01270294189453125, 0.01385498046875, -0.0169525146484375, -0.03399658203125, -0.01361083984375, 0.0229034423828125, -0.040252685546875, 0.024200439453125, 0.0012359619140625, 0.038848876953125, -0.048797607421875, -0.032958984375, 0.0421142578125, 0.061920166015625, -0.02130126953125, -0.046173095703125, -0.004802703857421875, 0.0247802734375, 0.003459930419921875, 0.0026607513427734375, 0.006923675537109375, 0.058074951171875, 0.11248779296875, -0.017303466796875, 0.00391387939453125, 0.031402587890625, 0.038543701171875, -0.0025882720947265625, -0.0187225341796875, -0.044403076171875, -0.0038166046142578125, -0.05340576171875, 0.018768310546875, 0.01546478271484375, 0.033416748046875, 0.0215606689453125, 0.0340576171875, 0.03155517578125, 0.0009937286376953125, 0.0159149169921875, 0.0271453857421875, -0.033355712890625, 0.0151824951171875, -0.025054931640625, -0.07098388671875, 0.0023822784423828125, 0.0309295654296875, -0.011962890625, 0.040740966796875, 0.032440185546875, 0.018890380859375, -0.0067596435546875, -0.0013341903686523438, 0.030731201171875, -0.023956298828125, -0.017120361328125, -0.0203399658203125, 0.01203155517578125, 0.031890869140625, -0.002262115478515625, -0.0037021636962890625, 0.01290130615234375, 0.032623291015625, 0.0289459228515625, 0.034820556640625, 0.0170135498046875, -0.009765625, 0.03851318359375, -0.0097198486328125, 0.0726318359375, 0.062408447265625, -0.07080078125, -0.032379150390625, -0.00852203369140625, -0.0019378662109375, 0.01541900634765625, 0.02923583984375, -0.0052642822265625, 0.0218505859375, 0.02001953125, 0.0281982421875, -0.033599853515625, -0.023468017578125, 0.0012750625610351562, 0.00711822509765625, 0.050079345703125, 0.04302978515625, -0.035919189453125, -0.02703857421875, 0.00008493661880493164, 0.031829833984375, -0.03704833984375, 0.0251312255859375, 0.0061492919921875, 0.002918243408203125, -0.0205841064453125, 0.018707275390625, -0.052093505859375, -0.0192413330078125, 0.0176849365234375, -0.0157012939453125, 0.0094757080078125, 0.00350189208984375, -0.012176513671875, 0.0164794921875, 0.047210693359375, -0.0462646484375, -0.0002593994140625, 0.00899505615234375, 0.006046295166015625, -0.0253448486328125, -0.01702880859375, -0.01244354248046875, 0.0146331787109375, 0.0171966552734375, -0.0231781005859375, 0.035430908203125, 0.01904296875, 0.0168609619140625, 0.026519775390625, 0.005062103271484375, 0.00032782554626464844, 0.012298583984375, -0.0163116455078125, 0.0193328857421875, 0.028472900390625, -0.00611114501953125, 0.0203704833984375, 0.00411224365234375, -0.0231781005859375, 0.03094482421875, 0.004306793212890625, 0.00501251220703125, 0.0201873779296875, -0.0306854248046875, 0.04913330078125, 0.006504058837890625, 0.02008056640625, -0.0537109375, -0.0037841796875, 0.02496337890625, 0.00627899169921875, 0.03131103515625, 0.012664794921875, -0.03424072265625, -0.061798095703125, 0.034576416015625, 0.017547607421875, -0.01021575927734375, 0.00611114501953125, -0.052947998046875, -0.0174713134765625, 0.043731689453125, 0.0219268798828125, -0.076171875, 0.0280303955078125, -0.0003752708435058594, 0.0283203125, 0.00653839111328125, -0.03753662109375, 0.01401519775390625, 0.02630615234375, -0.0018606185913085938, 0.03253173828125, -0.00519561767578125, -0.0267181396484375, 0.027099609375, -0.0014142990112304688, 0.0052947998046875, -0.033203125, -0.003017425537109375, -0.007381439208984375, 0.0204010009765625, 0.022979736328125, 0.0606689453125, -0.033172607421875, -0.0150909423828125, -0.017608642578125, 0.0033054351806640625, 0.0216217041015625, 0.0282135009765625, -0.035125732421875, -0.0689697265625, -0.0019817352294921875, 0.0157318115234375, 0.02142333984375, -0.0247650146484375, -0.04339599609375, 0.030853271484375, 0.0077362060546875, -0.03094482421875, -0.0675048828125, 0.00565338134765625, -0.0138702392578125, 0.0021152496337890625, -0.0149688720703125, -0.034027099609375, -0.016693115234375, 0.056488037109375, -0.000858306884765625, 0.041473388671875, 0.02471923828125, -0.02008056640625, -0.03863525390625, -0.0196380615234375, -0.0114288330078125, 0.0135650634765625, 0.005031585693359375, -0.00927734375, 0.001911163330078125, 0.0177459716796875, -0.051361083984375, -0.0355224609375, -0.0135955810546875, 0.01036834716796875, -0.0088043212890625, 0.01287078857421875, -0.0015516281127929688, 0.01483917236328125, 0.013275146484375, 0.050994873046875, 0.007320404052734375, -0.040740966796875, -0.0298309326171875, -0.039703369140625, -0.042572021484375, 0.01282501220703125, 0.027557373046875, -0.0465087890625, 0.0250396728515625, 0.01123809814453125, -0.018524169921875, -0.005054473876953125, 0.0195770263671875, -0.029754638671875, 0.00220489501953125, 0.0535888671875, 0.020172119140625, -0.09075927734375, 0.0108489990234375, 0.00396728515625, -0.0196075439453125, -0.036407470703125, -0.00655364990234375, -0.00324249267578125, -0.0263214111328125, -0.00728607177734375, -0.0177001953125, 0.0009541511535644531, -0.05767822265625, 0.0153350830078125, -0.03533935546875, 0.04327392578125, -0.054473876953125, -0.00495147705078125, -0.03094482421875, 0.039886474609375, 0.006504058837890625, 0.049560546875, -0.0248870849609375, 0.05810546875, 0.048309326171875, -0.00027179718017578125, 0.0007467269897460938, -0.020599365234375, -0.006641387939453125, 0.046600341796875, -0.01080322265625, -0.01520538330078125, -0.0030975341796875, -0.03155517578125, 0.006069183349609375, 0.00537872314453125, -0.00934600830078125, -0.02886962890625, 0.0158843994140625, 0.0083465576171875, 0.004611968994140625, 0.01345062255859375 ]
93a09e398a50dd609f2db31be3ff79f424a8a1d1
Wordpress Stackexchange Q: See error message from wp_insert_post function? I'm using wp_insert_post function to insert a new post: $result = wp_insert_post(array("post_title"=>"test1"), true); When I echo the result of the function, I get the number 335. How can I see what is the meaning of this code. I tried this with no success: $error = new WP_Error($result); echo ($error->get_error_message($result)); A: 335 is not an error message or code, it is the new post's ID that is retuned, so in short, the new post you have inserted was given the ID of 335 UPDATE wp_insert_post() already returns a WP_Error object on failure, so simply var_dump( $result ); would give you a specific error message on failure or the new post ID on success
Q: See error message from wp_insert_post function? I'm using wp_insert_post function to insert a new post: $result = wp_insert_post(array("post_title"=>"test1"), true); When I echo the result of the function, I get the number 335. How can I see what is the meaning of this code. I tried this with no success: $error = new WP_Error($result); echo ($error->get_error_message($result)); A: 335 is not an error message or code, it is the new post's ID that is retuned, so in short, the new post you have inserted was given the ID of 335 UPDATE wp_insert_post() already returns a WP_Error object on failure, so simply var_dump( $result ); would give you a specific error message on failure or the new post ID on success
wordpress
{ "language": "en", "length": 119, "provenance": "stackexchange_00019.jsonl.gz:461918", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213261" }
[ 0.0706787109375, -0.0223846435546875, 0.01003265380859375, 0.00647735595703125, 0.00424957275390625, -0.053436279296875, 0.0728759765625, -0.041015625, 0.01324462890625, 0.0017719268798828125, -0.03515625, -0.0027313232421875, -0.024566650390625, -0.024139404296875, -0.004802703857421875, -0.0304107666015625, 0.0379638671875, -0.0232086181640625, 0.0194854736328125, -0.0017538070678710938, 0.01114654541015625, 0.01287078857421875, 0.01070404052734375, 0.015960693359375, -0.0211029052734375, 0.02374267578125, 0.04241943359375, -0.013458251953125, 0.00009751319885253906, -0.002239227294921875, -0.00028824806213378906, -0.00986480712890625, 0.037139892578125, -0.00472259521484375, -0.0275421142578125, 0.051116943359375, 0.05511474609375, -0.0164337158203125, -0.021148681640625, 0.0562744140625, 0.0021381378173828125, 0.012664794921875, 0.06329345703125, -0.0233917236328125, 0.01087188720703125, -0.0185699462890625, 0.0185546875, -0.0284576416015625, 0.04010009765625, -0.006549835205078125, 0.034912109375, 0.0024127960205078125, 0.055328369140625, -0.01203155517578125, -0.0296630859375, -0.00399017333984375, -0.058258056640625, 0.066650390625, 0.036468505859375, 0.040069580078125, -0.0177764892578125, 0.00426483154296875, -0.0292510986328125, -0.06842041015625, 0.02294921875, -0.00585174560546875, 0.0269622802734375, 0.02783203125, -0.044647216796875, -0.0021419525146484375, 0.0225067138671875, -0.0025234222412109375, 0.00714111328125, 0.0277252197265625, -0.022918701171875, -0.0345458984375, 0.052093505859375, -0.0017480850219726562, -0.0160369873046875, 0.020965576171875, 0.032257080078125, -0.0396728515625, -0.01049041748046875, -0.00749969482421875, 0.05255126953125, 0.039276123046875, -0.0012302398681640625, -0.0243377685546875, -0.0053558349609375, -0.016082763671875, -0.0259552001953125, -0.01194000244140625, 0.01885986328125, -0.006710052490234375, -0.0270538330078125, -0.03192138671875, 0.0013828277587890625, 0.0654296875, -0.069091796875, 0.019775390625, -0.055999755859375, -0.00249481201171875, 0.038543701171875, -0.045867919921875, 0.015716552734375, 0.025238037109375, -0.029693603515625, -0.09564208984375, -0.005767822265625, 0.01102447509765625, -0.0225067138671875, -0.017608642578125, -0.0341796875, -0.0301361083984375, -0.04937744140625, 0.033477783203125, -0.0240478515625, -0.032989501953125, 0.0037288665771484375, 0.003337860107421875, -0.0020084381103515625, 0.03643798828125, -0.0234527587890625, -0.03851318359375, 0.0330810546875, 0.01454925537109375, -0.0148468017578125, -0.01070404052734375, 0.0209197998046875, -0.0151824951171875, -0.025360107421875, 0.0196075439453125, 0.0758056640625, 0.0296478271484375, 0.0114288330078125, -0.00972747802734375, -0.0222320556640625, -0.0132598876953125, -0.0121612548828125, 0.01352691650390625, -0.005199432373046875, -0.039306640625, 0.01401519775390625, -0.0110626220703125, -0.00592803955078125, 0.0325927734375, 0.02899169921875, -0.0037403106689453125, -0.0236053466796875, -0.06903076171875, -0.019073486328125, 0.02703857421875, 0.0013265609741210938, 0.0173797607421875, 0.00649261474609375, -0.00621795654296875, -0.04364013671875, 0.00385284423828125, 0.022491455078125, 0.01119232177734375, 0.0183563232421875, -0.0047760009765625, 0.0293426513671875, -0.01126861572265625, -0.03778076171875, 0.020843505859375, -0.06170654296875, -0.0179290771484375, 0.01102447509765625, 0.06591796875, -0.043548583984375, -0.019500732421875, -0.027008056640625, -0.01458740234375, -0.035064697265625, -0.004665374755859375, 0.0199432373046875, 0.0050048828125, -0.01419830322265625, 0.051727294921875, 0.0072174072265625, -0.014862060546875, 0.024932861328125, -0.00395965576171875, -0.0007100105285644531, 0.00774383544921875, 0.0357666015625, 0.0357666015625, -0.0171966552734375, 0.038909912109375, 0.01026153564453125, 0.037750244140625, 0.01910400390625, -0.0095672607421875, 0.0008893013000488281, -0.053253173828125, 0.0107269287109375, -0.007396697998046875, -0.01209259033203125, 0.00823211669921875, -0.007144927978515625, 0.043487548828125, -0.007167816162109375, 0.018280029296875, -0.0748291015625, 0.03253173828125, -0.04010009765625, 0.057769775390625, -0.0462646484375, 0.0114898681640625, 0.03521728515625, 0.01141357421875, -0.03680419921875, -0.0050811767578125, 0.005603790283203125, 0.00028228759765625, -0.0845947265625, 0.0191192626953125, -0.045318603515625, 0.07305908203125, -0.099365234375, -0.0169677734375, -0.074462890625, -0.052520751953125, 0.036865234375, 0.0038280487060546875, -0.01515960693359375, -0.01383209228515625, 0.03338623046875, 0.00789642333984375, -0.0090179443359375, 0.007465362548828125, 0.01540374755859375, 0.019073486328125, -0.0236968994140625, -0.016387939453125, -0.01800537109375, -0.055755615234375, 0.01206207275390625, 0.05865478515625, 0.04296875, 0.040985107421875, 0.00849151611328125, -0.016387939453125, 0.0391845703125, -0.03277587890625, 0.01666259765625, -0.02801513671875, 0.00308990478515625, 0.0411376953125, -0.0082244873046875, -0.0007395744323730469, 0.022216796875, -0.07958984375, 0.01299285888671875, 0.038726806640625, -0.05169677734375, -0.0022182464599609375, -0.01465606689453125, -0.005756378173828125, 0.00948333740234375, -0.07720947265625, 0.00963592529296875, -0.0587158203125, 0.032470703125, 0.00722503662109375, 0.01459503173828125, 0.00623321533203125, -0.03277587890625, 0.032257080078125, 0.0134735107421875, -0.06072998046875, 0.019378662109375, 0.0234222412109375, -0.00690460205078125, 0.05462646484375, -0.017120361328125, -0.0205078125, 0.053924560546875, 0.018798828125, -0.0328369140625, 0.0212554931640625, -0.00614166259765625, -0.0164642333984375, -0.0187225341796875, -0.0299072265625, 0.01512908935546875, -0.02294921875, 0.0253753662109375, -0.00748443603515625, -0.0079345703125, 0.0633544921875, -0.0177001953125, 0.075439453125, 0.001277923583984375, 0.0015115737915039062, 0.0287933349609375, -0.052490234375, 0.0384521484375, -0.0185699462890625, 0.0241851806640625, 0.055633544921875, -0.0006279945373535156, 0.00983428955078125, 0.0032100677490234375, 0.00991058349609375, 0.0034656524658203125, 0.022857666015625, -0.0192108154296875, -0.02508544921875, -0.04315185546875, 0.00243377685546875, 0.034393310546875, 0.07525634765625, 0.01042938232421875, -0.04217529296875, 0.0173797607421875, 0.047027587890625, -0.059112548828125, -0.11212158203125, -0.073974609375, -0.03350830078125, -0.0166168212890625, 0.0253143310546875, -0.0107269287109375, 0.0201568603515625, 0.032928466796875, 0.012451171875, -0.020233154296875, -0.018280029296875, -0.06707763671875, -0.0343017578125, -0.055389404296875, 0.003963470458984375, -0.0037975311279296875, 0.01015472412109375, 0.0010662078857421875, 0.0721435546875, 0.005756378173828125, -0.04595947265625, -0.03179931640625, 0.05572509765625, -0.0452880859375, -0.03857421875, -0.039825439453125, -0.0121307373046875, -0.01079559326171875, -0.01020050048828125, -0.060272216796875, -0.0063934326171875, 0.028594970703125, -0.002338409423828125, 0.0023708343505859375, -0.0226287841796875, 0.004108428955078125, 0.02178955078125, 0.0012073516845703125, -0.0209808349609375, 0.00408935546875, -0.051116943359375, -0.0242462158203125, -0.003314971923828125, -0.05194091796875, 0.0193023681640625, 0.014007568359375, -0.0011091232299804688, 0.041839599609375, -0.0222930908203125, -0.0197906494140625, -0.01049041748046875, 0.015625, -0.04541015625, 0.041473388671875, 0.002483367919921875, -0.0081024169921875, -0.0016565322875976562, 0.0012340545654296875, -0.01300048828125, 0.0104522705078125, -0.0037326812744140625, 0.04107666015625, 0.00839996337890625, -0.0134429931640625, -0.056488037109375, -0.0382080078125, 0.00548553466796875, -0.08544921875, -0.0004048347473144531, -0.0263824462890625, 0.0157318115234375, -0.001499176025390625, 0.036346435546875, -0.009918212890625, -0.02191162109375, -0.0233306884765625, -0.0103912353515625, 0.0097198486328125, -0.00412750244140625, 0.014434814453125, -0.0020599365234375, 0.0301055908203125, 0.00656890869140625, -0.0158233642578125, 0.01366424560546875, -0.033782958984375, 0.03814697265625, 0.00933074951171875, 0.0014104843139648438, 0.041717529296875, -0.0232391357421875, 0.0297088623046875, 0.0175628662109375, 0.0171051025390625, -0.017181396484375, -0.03106689453125, -0.01024627685546875, -0.10369873046875, -0.0093994140625, -0.007686614990234375, 0.06707763671875, -0.012603759765625, 0.0078582763671875, -0.049774169921875, 0.0231475830078125, -0.019134521484375, 0.019012451171875, 0.0008983612060546875, 0.024169921875, 0.018096923828125, -0.00916290283203125, -0.01413726806640625, -0.0128326416015625, 0.006591796875, -0.0123291015625, -0.042205810546875, 0.02557373046875, -0.0204620361328125, 0.041473388671875, 0.00021731853485107422, -0.033416748046875, -0.00016939640045166016, -0.052978515625, 0.0087890625, 0.0308685302734375, 0.003459930419921875, 0.0154876708984375, -0.058807373046875, -0.0041961669921875, 0.012603759765625, 0.0004200935363769531, -0.0298004150390625, 0.0073394775390625, 0.040679931640625, 0.0095977783203125, -0.01554107666015625, -0.03240966796875, 0.015960693359375, 0.0384521484375, -0.00775909423828125, 0.011383056640625, 0.00605010986328125, -0.03192138671875, 0.0250701904296875, 0.005878448486328125, -0.00867462158203125, 0.0187225341796875, 0.0253753662109375, 0.01180267333984375, -0.0305938720703125, 0.0080108642578125, -0.002086639404296875, -0.01019287109375, 0.01140594482421875, -0.0288543701171875, -0.0196075439453125, -0.0164947509765625, 0.047760009765625, -0.059417724609375, 0.11029052734375, -0.01247406005859375, -0.035858154296875, 0.029937744140625, 0.0080718994140625, -0.032318115234375, 0.021636962890625, 0.016845703125, -0.0251007080078125, -0.07611083984375, -0.0106353759765625, 0.0235595703125, 0.03814697265625, 0.03106689453125, 0.038238525390625, 0.0234832763671875, -0.002353668212890625, -0.052093505859375, -0.004489898681640625, 0.01134490966796875, 0.015838623046875, -0.038360595703125, -0.006595611572265625, 0.0231475830078125, 0.024566650390625, 0.01496124267578125, -0.007568359375, 0.01019287109375, 0.01165771484375, -0.0285491943359375, 0.00980377197265625, 0.0251617431640625, -0.00482940673828125, -0.0156402587890625, 0.0146636962890625, 0.044403076171875, -0.0309600830078125, -0.01276397705078125, 0.062225341796875, -0.000020265579223632812, 0.0181732177734375, -0.005634307861328125, 0.027252197265625, 0.0222320556640625, 0.048828125, 0.01727294921875, -0.0297698974609375, -0.004802703857421875, 0.04290771484375, -0.0162811279296875, -0.05889892578125, -0.0215606689453125, -0.01495361328125, 0.036224365234375, -0.033905029296875, -0.0135498046875, 0.06561279296875, 0.00768280029296875, -0.01800537109375, 0.060150146484375, 0.0294952392578125, -0.03173828125, -0.0423583984375, 0.0158233642578125, 0.06890869140625, -0.003353118896484375, 0.0262451171875, 0.0097503662109375, 0.0212249755859375, 0.04052734375, -0.009033203125, 0.042022705078125, -0.0438232421875, -0.05230712890625, 0.024810791015625, -0.0243072509765625, -0.035247802734375, 0.0143890380859375, 0.006855010986328125, -0.006290435791015625, -0.0087127685546875, 0.0195465087890625, -0.00786590576171875, -0.00360107421875, -0.01531982421875, 0.003009796142578125, -0.046661376953125, 0.01287078857421875, 0.0208282470703125, -0.01111602783203125, 0.0018901824951171875, -0.01629638671875, -0.01155853271484375, -0.0284576416015625, 0.033233642578125, 0.019805908203125, -0.011383056640625, -0.027313232421875, 0.0094451904296875, 0.005939483642578125, 0.01611328125, 0.0013265609741210938, -0.0029048919677734375, 0.0217132568359375, -0.0023212432861328125, -0.0031108856201171875, -0.036712646484375, 0.05291748046875, 0.02398681640625, 0.00940704345703125, -0.0017833709716796875, 0.0199432373046875, 0.0286712646484375, -0.0185089111328125, -0.0009870529174804688, -0.0229034423828125, 0.0296478271484375, -0.00138092041015625, 0.05126953125, -0.024993896484375, -0.01715087890625, 0.0015516281127929688, 0.01027679443359375, 0.00013506412506103516, 0.000598907470703125, 0.01291656494140625, 0.0024471282958984375, 0.026702880859375, -0.0362548828125, 0.08392333984375, -0.038482666015625, -0.0322265625, 0.0173187255859375, 0.046417236328125, -0.0106048583984375, -0.033477783203125, -0.0254058837890625, 0.01271820068359375, -0.00443267822265625, -0.005214691162109375, 0.049530029296875, 0.02728271484375, 0.057342529296875, 0.0063018798828125, 0.041778564453125, 0.037994384765625, 0.0025730133056640625, -0.0209197998046875, -0.05706787109375, 0.04547119140625, 0.00702667236328125, -0.0311431884765625, 0.0212249755859375, -0.03948974609375, 0.0283660888671875, 0.037811279296875, 0.058624267578125, -0.06317138671875, 0.0179595947265625, 0.01183319091796875, -0.034423828125, 0.00806427001953125, -0.00833892822265625, -0.00171661376953125, -0.03668212890625, 0.04644775390625, 0.01001739501953125, 0.00027251243591308594, 0.0260162353515625, -0.0093841552734375, 0.0020084381103515625, -0.013641357421875, 0.0301055908203125, 0.01119232177734375, -0.033935546875, 0.04119873046875, 0.0256805419921875, 0.03948974609375, -0.0243072509765625, -0.0027561187744140625, -0.0008764266967773438, -0.0182037353515625, -0.07904052734375, -0.00033283233642578125, -0.0355224609375, 0.0005292892456054688, 0.00516510009765625, -0.00693511962890625, 0.02178955078125, 0.04046630859375, -0.0194091796875, -0.004558563232421875, 0.0184783935546875, 0.01666259765625, -0.00919342041015625, 0.01168060302734375, 0.01849365234375, 0.06329345703125, -0.04638671875, 0.0261077880859375, -0.00461578369140625, 0.020751953125, 0.0204010009765625, 0.016754150390625, 0.05279541015625, -0.058074951171875, 0.0021381378173828125, 0.018646240234375, -0.0277862548828125, 0.020111083984375, -0.0040130615234375, 0.0538330078125, -0.029205322265625, 0.004520416259765625, 0.017791748046875, 0.020172119140625, -0.02703857421875, 0.008819580078125, -0.05517578125, 0.112060546875, 0.0579833984375, 0.006229400634765625, 0.015411376953125, 0.030059814453125, -0.07781982421875, -0.01126861572265625, -0.06353759765625, 0.0709228515625, -0.010467529296875, 0.058380126953125, -0.0709228515625, 0.002918243408203125, 0.00927734375, 0.016845703125, 0.050262451171875, -0.002521514892578125, -0.003826141357421875, -0.034393310546875, 0.01763916015625, 0.047698974609375, -0.003082275390625, 0.0006542205810546875, 0.00341033935546875, 0.0215301513671875, 0.0556640625, -0.05682373046875, 0.031829833984375, -0.0193939208984375, 0.00705718994140625, 0.008026123046875, 0.01114654541015625, -0.0079193115234375, 0.043914794921875, -0.0179901123046875, 0.0276031494140625, 0.003810882568359375, -0.03045654296875, 0.0270233154296875, -0.00856781005859375, 0.034759521484375, 0.021881103515625, -0.060150146484375, -0.0306854248046875, -0.024139404296875, 0.03289794921875, 0.005023956298828125, 0.0290374755859375, 0.0021820068359375, 0.0129547119140625, 0.03887939453125, 0.002262115478515625, -0.0006308555603027344, 0.0236968994140625, -0.0085601806640625, 0.020263671875, 0.009735107421875, 0.0101318359375, -0.04193115234375, -0.006450653076171875, 0.0914306640625, 0.049652099609375, -0.03460693359375, -0.0246429443359375, 0.00833892822265625, 0.02337646484375, -0.003910064697265625, -0.0126495361328125, 0.012542724609375, -0.013092041015625, 0.02252197265625, -0.021148681640625, -0.023223876953125, 0.0033416748046875, 0.002895355224609375, -0.00969696044921875, -0.028900146484375, 0.02020263671875, -0.00441741943359375, -0.02093505859375, 0.0167236328125, 0.0106964111328125, 0.04449462890625, -0.01364898681640625, 0.057281494140625, -0.03155517578125, -0.006317138671875, -0.01517486572265625, 0.0085296630859375, 0.03436279296875, 0.0115509033203125, -0.0095367431640625, 0.01508331298828125, 0.02630615234375, 0.006076812744140625, -0.014007568359375, 0.0193328857421875, 0.035308837890625, 0.025054931640625, -0.024932861328125, -0.0203399658203125, 0.03472900390625, -0.0262298583984375, -0.05462646484375, -0.0408935546875, -0.0028839111328125, 0.01377105712890625, 0.00211334228515625, 0.006465911865234375, 0.025177001953125, 0.006397247314453125, -0.0269317626953125, 0.0194549560546875, 0.00566864013671875, -0.012969970703125, 0.0013408660888671875, 0.0064697265625, 0.015167236328125, 0.020538330078125, -0.06884765625, -0.0274658203125, -0.01007080078125, -0.00235748291015625, 0.005672454833984375, 0.0245361328125, -0.001773834228515625, 0.00841522216796875, 0.008819580078125, -0.035675048828125, 0.0208587646484375, 0.00196075439453125, 0.024688720703125, 0.04486083984375, 0.0084075927734375, 0.009674072265625, -0.030914306640625, -0.00426483154296875, 0.00653076171875, -0.00034308433532714844, 0.010467529296875, 0.032012939453125, 0.031768798828125, -0.01125335693359375, -0.051605224609375, 0.012908935546875, -0.053985595703125, -0.048095703125, 0.0203399658203125, -0.017578125, -0.01125335693359375, 0.0166778564453125, 0.00753021240234375, 0.044708251953125, -0.0003254413604736328, 0.0013933181762695312, 0.036285400390625, -0.057708740234375, 0.02471923828125, 0.00724029541015625, 0.0703125, -0.00604248046875, 0.00418853759765625, -0.0132598876953125, -0.007007598876953125, 0.044036865234375, 0.019989013671875, -0.010711669921875, 0.023040771484375, -0.005401611328125, -0.041046142578125, 0.0096588134765625, -0.049713134765625, 0.01483154296875, 0.033050537109375, 0.0084991455078125, -0.01557159423828125, -0.033111572265625, -0.0249176025390625, -0.005588531494140625, -0.00009775161743164062, 0.033538818359375, -0.002300262451171875, -0.0002880096435546875, -0.01849365234375, -0.0372314453125, 0.0050811767578125, -0.022857666015625, -0.005237579345703125, -0.0249786376953125, 0.01141357421875, 0.006443023681640625, 0.0269622802734375, -0.01445770263671875, -0.0018301010131835938, 0.019805908203125, 0.024078369140625, 0.0234375, 0.012420654296875, -0.0196533203125, -0.0007200241088867188, 0.01229095458984375, -0.039398193359375, 0.01204681396484375, -0.037841796875, -0.0211029052734375, 0.03851318359375, -0.033843994140625, 0.0029964447021484375, 0.016021728515625, 0.060546875, -0.06719970703125, -0.0283355712890625, -0.036407470703125, -0.004787445068359375, -0.066650390625, 0.00750732421875, 0.026458740234375, -0.0227508544921875, -0.045440673828125, -0.0196533203125, 0.005527496337890625, 0.0023975372314453125, 0.01554107666015625, -0.008697509765625, -0.01419830322265625, 0.02960205078125, -0.0184478759765625, -0.0584716796875, 0.0200347900390625, -0.051177978515625, -0.0189208984375, -0.01043701171875, 0.004169464111328125, 0.01552581787109375, -0.037689208984375, -0.082763671875, 0.034881591796875, -0.01300048828125, -0.034332275390625, -0.014984130859375, -0.0343017578125, -0.0210723876953125, 0.07086181640625, 0.00008988380432128906, -0.037567138671875, -0.02301025390625, 0.047210693359375, -0.017730712890625, -0.0083465576171875, 0.049407958984375, -0.05572509765625, -0.060150146484375, -0.051513671875, -0.022674560546875, -0.023773193359375, 0.033477783203125, -0.0167236328125, 0.0185089111328125, 0.0287933349609375, -0.05499267578125, -0.007366180419921875, -0.029571533203125, 0.0021419525146484375, -0.021697998046875, -0.04180908203125, 0.0184783935546875, -0.0015745162963867188, 0.0631103515625, 0.010223388671875, 0.01068878173828125, -0.034759521484375, 0.01434326171875, 0.00252532958984375, -0.030792236328125, -0.02667236328125, 0.0066070556640625, -0.056396484375, -0.039276123046875, -0.0277862548828125, 0.0022430419921875, 0.0157318115234375, -0.01171112060546875, 0.00860595703125, -0.01641845703125, 0.0258026123046875, -0.0157470703125, -0.0131683349609375, -0.04693603515625, 0.07745361328125, -0.02801513671875, -0.01546478271484375, 0.0210113525390625, 0.0232086181640625, 0.002269744873046875, 0.032379150390625, 0.00807952880859375, -0.006542205810546875, -0.049041748046875, 0.003509521484375, -0.0031147003173828125, 0.03973388671875, -0.037200927734375, -0.043365478515625, 0.0240936279296875, -0.0283355712890625, -0.033172607421875, -0.05126953125, 0.03472900390625, -0.0005974769592285156, -0.0592041015625, 0.08538818359375, 0.0231170654296875, 0.045745849609375, -0.010284423828125, 0.067626953125, -0.023895263671875, -0.033935546875, -0.0289459228515625, -0.02691650390625, 0.0009326934814453125, 0.058258056640625, 0.0362548828125, -0.0086517333984375, 0.0296783447265625, 0.0718994140625, 0.055206298828125, 0.01325225830078125 ]
2403b06f294c99fcf37dbeb248927483f64b6637
Wordpress Stackexchange Q: Get product link I want rating from customers by sending mail after order is completed. If customer will click link on mail for review it should redirect to same current product page of my site. How do I do this. I override woocommerce/emails in my child theme. I have customized customer-completed-order.php <div class="rating"> <h2> Please Rate this product and review. </h2> <a href="http://animax.cf/product/happy-ninja/#reviews"> <img src="http://animax.cf/wp-content/uploads/2015/12/product-reviews.png" alt="Product Rating"> </a> </div> A: WooCommerce default customer-complete-order.php email template does not link the order item to corresponding product. You need to use woocommerce_order_item_name filter and update the item name to have link. I just tried below code and it adds the link to order item (product name). Put this code in functions.php file of your theme. Hope this helps: add_filter('woocommerce_order_item_name', 'woo_order_item_with_link', 10, 3); function woo_order_item_with_link( $item_name, $item, $bool ) { $url = get_permalink( $item['product_id'] ) ; return '<a href="'. $url .'">'. $item_name .'</a>'; }
Q: Get product link I want rating from customers by sending mail after order is completed. If customer will click link on mail for review it should redirect to same current product page of my site. How do I do this. I override woocommerce/emails in my child theme. I have customized customer-completed-order.php <div class="rating"> <h2> Please Rate this product and review. </h2> <a href="http://animax.cf/product/happy-ninja/#reviews"> <img src="http://animax.cf/wp-content/uploads/2015/12/product-reviews.png" alt="Product Rating"> </a> </div> A: WooCommerce default customer-complete-order.php email template does not link the order item to corresponding product. You need to use woocommerce_order_item_name filter and update the item name to have link. I just tried below code and it adds the link to order item (product name). Put this code in functions.php file of your theme. Hope this helps: add_filter('woocommerce_order_item_name', 'woo_order_item_with_link', 10, 3); function woo_order_item_with_link( $item_name, $item, $bool ) { $url = get_permalink( $item['product_id'] ) ; return '<a href="'. $url .'">'. $item_name .'</a>'; }
wordpress
{ "language": "en", "length": 151, "provenance": "stackexchange_00019.jsonl.gz:461964", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213418" }
[ 0.0347900390625, -0.0091552734375, 0.02783203125, -0.0290069580078125, 0.007472991943359375, -0.011871337890625, 0.050872802734375, -0.0257720947265625, 0.01265716552734375, 0.01491546630859375, -0.01708984375, -0.0221405029296875, 0.0019073486328125, -0.04345703125, 0.00971221923828125, -0.03619384765625, 0.037445068359375, -0.0030117034912109375, 0.024627685546875, 0.022857666015625, -0.002605438232421875, 0.059173583984375, -0.005809783935546875, 0.0159454345703125, 0.0250244140625, 0.014434814453125, 0.11962890625, -0.033203125, 0.026458740234375, -0.0030155181884765625, 0.0265045166015625, -0.072509765625, 0.036163330078125, -0.004833221435546875, -0.0209197998046875, -0.0200653076171875, 0.00928497314453125, -0.006366729736328125, -0.017486572265625, 0.0267791748046875, 0.042755126953125, -0.0217437744140625, 0.004985809326171875, 0.004848480224609375, -0.00562286376953125, -0.029144287109375, 0.0292816162109375, -0.0362548828125, 0.00667572021484375, 0.0308380126953125, 0.01284027099609375, 0.06005859375, 0.00669097900390625, -0.0022430419921875, 0.0006990432739257812, 0.01459503173828125, -0.0281219482421875, -0.0010690689086914062, -0.0006809234619140625, 0.025482177734375, 0.004795074462890625, 0.0230255126953125, -0.0127716064453125, -0.007381439208984375, -0.0029392242431640625, 0.004302978515625, 0.02264404296875, 0.03179931640625, -0.01273345947265625, -0.006046295166015625, -0.0012273788452148438, -0.005420684814453125, 0.0029506683349609375, -0.0133819580078125, 0.0017938613891601562, -0.033599853515625, -0.01264190673828125, -0.044219970703125, 0.0162506103515625, 0.0189056396484375, -0.015777587890625, -0.023162841796875, -0.0299224853515625, -0.0229644775390625, 0.024017333984375, -0.0013380050659179688, -0.01432037353515625, 0.010162353515625, -0.025421142578125, -0.043975830078125, -0.0211639404296875, 0.0045623779296875, -0.039031982421875, -0.0321044921875, -0.0292816162109375, -0.04571533203125, 0.0232696533203125, 0.0394287109375, 0.0188446044921875, 0.0244140625, 0.0045166015625, -0.046295166015625, 0.0217437744140625, -0.037078857421875, -0.02069091796875, 0.0168914794921875, 0.03387451171875, 0.0232391357421875, 0.0213775634765625, 0.006195068359375, -0.01461029052734375, 0.059661865234375, -0.0150604248046875, -0.0166015625, -0.0105438232421875, 0.0126953125, -0.06292724609375, 0.03607177734375, 0.0131683349609375, 0.045562744140625, 0.0028133392333984375, 0.044586181640625, 0.0323486328125, -0.019805908203125, -0.02392578125, -0.001834869384765625, 0.005435943603515625, -0.08056640625, 0.021270751953125, 0.030517578125, -0.0361328125, -0.0055694580078125, 0.023406982421875, 0.01404571533203125, -0.0012226104736328125, -0.0233612060546875, 0.00937652587890625, 0.004833221435546875, 0.0188751220703125, -0.01177978515625, 0.005840301513671875, 0.02325439453125, 0.0205230712890625, -0.0118560791015625, 0.04071044921875, 0.029693603515625, -0.0216522216796875, -0.0022335052490234375, 0.045867919921875, 0.001392364501953125, -0.002399444580078125, -0.04095458984375, 0.0175933837890625, 0.00720977783203125, 0.0040283203125, -0.00469207763671875, 0.00335693359375, 0.0003216266632080078, 0.003997802734375, -0.011505126953125, 0.004230499267578125, -0.0123291015625, 0.00316619873046875, -0.07208251953125, -0.06976318359375, -0.0088958740234375, -0.06048583984375, -0.00925445556640625, 0.01134490966796875, 0.030975341796875, 0.01052093505859375, -0.02374267578125, -0.01093292236328125, -0.0052337646484375, -0.01500701904296875, 0.0086517333984375, 0.0173797607421875, 0.049163818359375, 0.0172119140625, -0.0099945068359375, -0.033203125, -0.0523681640625, 0.0845947265625, -0.048492431640625, -0.0225982666015625, 0.0180511474609375, 0.0198211669921875, 0.041015625, -0.018035888671875, 0.0250396728515625, 0.0240936279296875, 0.0213165283203125, -0.05078125, 0.0291748046875, -0.055328369140625, -0.0450439453125, 0.06573486328125, 0.01043701171875, -0.019134521484375, 0.031951904296875, -0.015228271484375, -0.01861572265625, 0.031646728515625, 0.001361846923828125, -0.0080718994140625, 0.00855255126953125, -0.01971435546875, 0.033355712890625, -0.046783447265625, 0.0310821533203125, 0.044219970703125, 0.0229339599609375, -0.0396728515625, -0.00807952880859375, 0.03887939453125, -0.0197601318359375, -0.01354217529296875, 0.038970947265625, -0.0207061767578125, 0.03204345703125, -0.009429931640625, -0.038421630859375, 0.004878997802734375, 0.03265380859375, 0.00940704345703125, 0.0127716064453125, -0.0153045654296875, 0.006328582763671875, 0.003658294677734375, 0.034881591796875, -0.0306396484375, -0.007755279541015625, 0.07086181640625, 0.0251007080078125, -0.0291900634765625, 0.035980224609375, 0.00403594970703125, -0.062347412109375, -0.0302734375, 0.038818359375, 0.0306549072265625, 0.02008056640625, 0.00684356689453125, 0.05743408203125, 0.03955078125, -0.00787353515625, 0.018341064453125, 0.016021728515625, -0.0031490325927734375, 0.02880859375, -0.003337860107421875, 0.01473236083984375, 0.0097808837890625, 0.00563812255859375, 0.0008263587951660156, 0.037261962890625, 0.0232086181640625, 0.02197265625, -0.01177215576171875, 0.04498291015625, -0.01934814453125, 0.05914306640625, 0.002071380615234375, 0.00860595703125, -0.0168609619140625, 0.0162506103515625, 0.01059722900390625, 0.0027332305908203125, -0.0229644775390625, -0.0194244384765625, 0.022674560546875, 0.03228759765625, -0.0064239501953125, 0.0178985595703125, 0.00630950927734375, -0.0201263427734375, 0.00814056396484375, 0.00021207332611083984, -0.023406982421875, -0.0036468505859375, -0.017181396484375, -0.000004231929779052734, 0.040802001953125, -0.004772186279296875, -0.0126495361328125, -0.0176849365234375, 0.039825439453125, -0.003032684326171875, 0.02874755859375, 0.0131988525390625, 0.0252227783203125, 0.033905029296875, -0.01473236083984375, 0.04937744140625, -0.0132904052734375, -0.0208892822265625, -0.00726318359375, -0.00848388671875, 0.035919189453125, -0.03765869140625, 0.052032470703125, 0.0533447265625, -0.057830810546875, 0.045867919921875, 0.0136260986328125, -0.03277587890625, 0.0219268798828125, -0.00499725341796875, -0.0210113525390625, -0.004688262939453125, -0.060546875, 0.01519012451171875, 0.01438140869140625, 0.062103271484375, -0.01427459716796875, -0.041717529296875, 0.0106048583984375, 0.00647735595703125, -0.08441162109375, -0.1029052734375, 0.01519012451171875, -0.026031494140625, -0.0211029052734375, 0.03472900390625, -0.0248565673828125, -0.01861572265625, 0.050567626953125, -0.01523590087890625, 0.0001684427261352539, 0.006885528564453125, -0.053253173828125, -0.01300811767578125, -0.044921875, 0.019134521484375, -0.03277587890625, -0.005950927734375, 0.0025634765625, -0.02435302734375, -0.0013151168823242188, 0.0175628662109375, 0.039215087890625, 0.00872039794921875, 0.008392333984375, -0.0246734619140625, -0.0517578125, -0.0247344970703125, -0.0030498504638671875, -0.01505279541015625, 0.08428955078125, -0.01154327392578125, 0.009796142578125, 0.026763916015625, 0.00962066650390625, 0.038970947265625, 0.055328369140625, -0.0252838134765625, -0.0192413330078125, 0.069580078125, 0.04595947265625, 0.0012502670288085938, -0.00743865966796875, -0.017181396484375, -0.0309600830078125, 0.0180511474609375, 0.02850341796875, -0.005828857421875, -0.0095977783203125, 0.0054168701171875, 0.047393798828125, 0.03765869140625, 0.075927734375, -0.005458831787109375, -0.021881103515625, -0.003673553466796875, 0.002071380615234375, -0.07177734375, 0.09503173828125, 0.02764892578125, -0.031005859375, 0.036376953125, 0.0384521484375, -0.0008606910705566406, -0.002361297607421875, -0.072021484375, -0.018707275390625, 0.04107666015625, -0.01497650146484375, 0.0060272216796875, -0.0111236572265625, -0.0252227783203125, 0.006656646728515625, 0.07275390625, 0.04541015625, -0.011444091796875, -0.006420135498046875, -0.00844573974609375, -0.0202484130859375, -0.002254486083984375, -0.0272064208984375, 0.0171966552734375, -0.056915283203125, -0.0057220458984375, -0.022918701171875, -0.0224609375, -0.006336212158203125, -0.0291290283203125, -0.02899169921875, -0.0384521484375, 0.02166748046875, 0.041961669921875, 0.00676727294921875, 0.07952880859375, -0.0276336669921875, 0.093994140625, -0.04388427734375, -0.004856109619140625, 0.015411376953125, 0.00506591796875, 0.0127716064453125, -0.01338958740234375, -0.00772857666015625, 0.031982421875, 0.01276397705078125, 0.0307769775390625, 0.01384735107421875, 0.0447998046875, -0.013336181640625, -0.0175933837890625, 0.00018918514251708984, 0.0025272369384765625, 0.0106658935546875, -0.01309967041015625, 0.00531005859375, -0.0020923614501953125, -0.056854248046875, 0.0119171142578125, -0.0270843505859375, 0.0238494873046875, 0.0225830078125, -0.040863037109375, -0.09765625, -0.02099609375, 0.007328033447265625, 0.00872039794921875, 0.0177001953125, -0.0250091552734375, -0.02294921875, -0.10687255859375, -0.031402587890625, -0.08453369140625, -0.038177490234375, 0.036529541015625, 0.007781982421875, 0.03411865234375, 0.038177490234375, 0.0325927734375, 0.010589599609375, 0.032470703125, 0.03704833984375, -0.004772186279296875, 0.0084228515625, -0.0211181640625, -0.0228118896484375, 0.037384033203125, 0.0231170654296875, 0.00885772705078125, 0.0296173095703125, -0.0090789794921875, -0.016632080078125, 0.0240936279296875, -0.0007367134094238281, -0.023406982421875, 0.030792236328125, -0.0185546875, -0.03802490234375, -0.01242828369140625, 0.05548095703125, -0.035888671875, 0.052001953125, -0.0212860107421875, -0.031951904296875, 0.022125244140625, 0.004547119140625, 0.0264892578125, 0.037384033203125, -0.0157012939453125, 0.015655517578125, -0.0198974609375, -0.00685882568359375, -0.017242431640625, -0.004291534423828125, -0.00955963134765625, 0.0247650146484375, -0.028076171875, -0.02496337890625, -0.0106658935546875, -0.01849365234375, 0.0341796875, 0.0223846435546875, 0.014556884765625, -0.045013427734375, -0.0217742919921875, -0.035308837890625, -0.01538848876953125, -0.030548095703125, 0.045135498046875, 0.03753662109375, -0.033172607421875, 0.01065826416015625, -0.052154541015625, 0.01556396484375, -0.06634521484375, 0.0270233154296875, 0.006389617919921875, 0.002964019775390625, -0.001712799072265625, 0.089599609375, 0.01303863525390625, 0.04217529296875, -0.01375579833984375, 0.04620361328125, 0.03582763671875, 0.0059356689453125, 0.030181884765625, -0.01079559326171875, -0.024383544921875, -0.00574493408203125, -0.01410675048828125, -0.02081298828125, -0.007904052734375, -0.00293731689453125, 0.02252197265625, -0.01192474365234375, -0.0031642913818359375, 0.031463623046875, -0.0210723876953125, -0.037384033203125, 0.043121337890625, 0.0241851806640625, -0.0221710205078125, -0.043426513671875, -0.040802001953125, -0.00572967529296875, 0.020599365234375, -0.0037822723388671875, -0.00457763671875, -0.0238494873046875, -0.0218505859375, 0.010162353515625, -0.033203125, 0.0016508102416992188, 0.0059814453125, 0.0034942626953125, -0.0127105712890625, 0.01096343994140625, -0.0304107666015625, -0.00634002685546875, -0.0316162109375, -0.0036258697509765625, 0.08251953125, -0.020660400390625, 0.058502197265625, -0.036590576171875, -0.021209716796875, -0.044708251953125, -0.0018606185913085938, 0.041534423828125, 0.0279083251953125, -0.036285400390625, -0.0003592967987060547, -0.044097900390625, -0.006011962890625, 0.01331329345703125, -0.0248565673828125, -0.007843017578125, -0.0180816650390625, -0.00800323486328125, 0.02667236328125, -0.006702423095703125, -0.029815673828125, -0.01276397705078125, -0.0338134765625, -0.00080108642578125, -0.029327392578125, -0.002277374267578125, 0.057586669921875, 0.0029754638671875, 0.040802001953125, 0.0185394287109375, 0.0036144256591796875, -0.051605224609375, -0.0038356781005859375, -0.005706787109375, -0.0174102783203125, -0.02099609375, -0.0283355712890625, -0.029327392578125, 0.019287109375, 0.06341552734375, -0.00611114501953125, -0.007843017578125, -0.01922607421875, 0.0013532638549804688, -0.02301025390625, 0.017822265625, -0.012451171875, -0.01161956787109375, 0.001922607421875, -0.033294677734375, -0.0006279945373535156, 0.0279388427734375, 0.050750732421875, -0.0182037353515625, -0.01198577880859375, -0.00890350341796875, -0.01055145263671875, -0.054046630859375, 0.055999755859375, 0.10162353515625, 0.022369384765625, 0.0592041015625, 0.023895263671875, 0.01233673095703125, 0.01053619384765625, 0.0307464599609375, 0.0301513671875, -0.01279449462890625, 0.07952880859375, 0.0027370452880859375, -0.021331787109375, 0.059417724609375, -0.03240966796875, 0.025543212890625, 0.02801513671875, 0.0701904296875, -0.0703125, 0.024017333984375, 0.023895263671875, -0.0022983551025390625, 0.0147857666015625, 0.00916290283203125, -0.00777435302734375, -0.034881591796875, 0.06976318359375, -0.024078369140625, 0.00908660888671875, 0.0263519287109375, -0.028717041015625, 0.01090240478515625, 0.003265380859375, 0.05572509765625, -0.014068603515625, -0.0806884765625, -0.08056640625, 0.06005859375, -0.07733154296875, -0.034027099609375, 0.0004787445068359375, 0.033111572265625, -0.0020008087158203125, -0.03472900390625, 0.051971435546875, -0.0211639404296875, 0.04522705078125, -0.00647735595703125, -0.01812744140625, 0.00026416778564453125, 0.0310821533203125, -0.018798828125, -0.0203704833984375, 0.0098876953125, -0.007152557373046875, 0.01514434814453125, -0.0247650146484375, -0.0015497207641601562, 0.0026702880859375, -0.02227783203125, 0.00450897216796875, -0.0150146484375, -0.017791748046875, -0.0041046142578125, 0.068115234375, 0.061737060546875, -0.01361083984375, -0.0413818359375, 0.0455322265625, 0.028717041015625, -0.0256500244140625, 0.0003504753112792969, 0.05169677734375, -0.0093231201171875, 0.0015172958374023438, 0.0026721954345703125, -0.033721923828125, -0.05596923828125, -0.042327880859375, -0.0858154296875, 0.0703125, -0.048187255859375, 0.05059814453125, 0.0182342529296875, 0.0118560791015625, 0.0054168701171875, -0.0091094970703125, -0.033538818359375, 0.034149169921875, 0.00614166259765625, 0.05517578125, -0.058441162109375, -0.02001953125, -0.00432586669921875, 0.0543212890625, 0.044769287109375, 0.0207061767578125, -0.053924560546875, -0.0020008087158203125, 0.04150390625, 0.0284423828125, 0.004505157470703125, 0.052520751953125, 0.0122833251953125, 0.002521514892578125, 0.0731201171875, -0.0185089111328125, 0.0166015625, 0.0253448486328125, 0.00473785400390625, 0.032073974609375, 0.028472900390625, 0.01355743408203125, -0.0279998779296875, 0.0153045654296875, -0.051116943359375, -0.00342559814453125, 0.054046630859375, -0.01367950439453125, 0.0026721954345703125, 0.0239715576171875, 0.00237274169921875, 0.00931549072265625, 0.007320404052734375, -0.025665283203125, 0.035491943359375, 0.0117340087890625, -0.00902557373046875, 0.024658203125, 0.0209808349609375, 0.05023193359375, -0.036895751953125, -0.0221099853515625, -0.00644683837890625, 0.005092620849609375, 0.011688232421875, -0.006420135498046875, 0.004085540771484375, -0.03228759765625, -0.002330780029296875, 0.03265380859375, 0.0095672607421875, -0.014373779296875, 0.04443359375, 0.0082550048828125, -0.00881195068359375, 0.00424957275390625, -0.05303955078125, 0.0276336669921875, -0.031890869140625, -0.08056640625, -0.056884765625, 0.00732421875, 0.035430908203125, 0.04510498046875, -0.00304412841796875, -0.00405120849609375, -0.0645751953125, -0.0147247314453125, -0.01953125, 0.020477294921875, 0.006435394287109375, 0.034271240234375, -0.03143310546875, 0.06591796875, -0.04296875, -0.004878997802734375, 0.023773193359375, 0.0277252197265625, -0.0006160736083984375, -0.0215301513671875, -0.0202178955078125, -0.051055908203125, -0.00792694091796875, 0.039337158203125, 0.0257110595703125, 0.01036834716796875, 0.0222625732421875, 0.0169677734375, 0.01435089111328125, 0.006565093994140625, 0.021331787109375, -0.019073486328125, 0.02337646484375, -0.0301513671875, 0.016510009765625, 0.0011339187622070312, -0.003814697265625, -0.0064697265625, -0.0012969970703125, 0.0268402099609375, -0.0303802490234375, 0.05108642578125, -0.01666259765625, -0.0088043212890625, 0.0232391357421875, -0.002811431884765625, 0.060028076171875, 0.0014963150024414062, -0.058074951171875, -0.03375244140625, 0.0018711090087890625, 0.020751953125, -0.01629638671875, 0.03125, -0.0033588409423828125, 0.035919189453125, -0.0295867919921875, -0.004055023193359375, 0.016448974609375, -0.0183868408203125, -0.0015659332275390625, 0.018798828125, 0.012939453125, 0.0075225830078125, -0.0143585205078125, -0.0159912109375, 0.0031604766845703125, 0.032867431640625, 0.020904541015625, 0.04193115234375, -0.0037059783935546875, 0.0230255126953125, -0.03814697265625, 0.031585693359375, -0.049102783203125, -0.061187744140625, 0.060455322265625, -0.0081939697265625, -0.0200958251953125, 0.00676727294921875, -0.018402099609375, -0.021331787109375, 0.0740966796875, -0.039886474609375, -0.0220489501953125, 0.003734588623046875, 0.037933349609375, -0.00794219970703125, 0.040008544921875, -0.02459716796875, -0.05084228515625, -0.038726806640625, -0.004581451416015625, 0.0105743408203125, 0.045928955078125, 0.031494140625, 0.057586669921875, -0.0024623870849609375, 0.02490234375, 0.028564453125, -0.0271759033203125, 0.04248046875, 0.0291290283203125, -0.05377197265625, 0.0038280487060546875, 0.007049560546875, -0.01788330078125, 0.0316162109375, -0.00408935546875, 0.0296630859375, 0.01666259765625, -0.0163116455078125, 0.033538818359375, 0.0290679931640625, 0.0182037353515625, -0.019195556640625, -0.00359344482421875, 0.0625, -0.0251617431640625, -0.0279388427734375, 0.0006728172302246094, -0.010223388671875, -0.042327880859375, -0.00015723705291748047, -0.0203704833984375, -0.00740814208984375, -0.034454345703125, 0.035247802734375, 0.0004603862762451172, 0.0035247802734375, 0.00423431396484375, -0.038665771484375, -0.011077880859375, 0.0110321044921875, 0.047119140625, -0.03680419921875, 0.0090789794921875, -0.0008111000061035156, 0.022003173828125, -0.00927734375, -0.036041259765625, -0.041015625, 0.036468505859375, -0.043853759765625, -0.003925323486328125, 0.0266571044921875, -0.020355224609375, -0.016387939453125, -0.035400390625, 0.01007843017578125, 0.016357421875, -0.0217742919921875, -0.03167724609375, 0.01305389404296875, 0.007244110107421875, -0.00567626953125, -0.07086181640625, -0.0017671585083007812, -0.059112548828125, 0.0206451416015625, -0.0016889572143554688, -0.01169586181640625, -0.0018968582153320312, -0.050445556640625, -0.054412841796875, 0.04754638671875, -0.0001291036605834961, -0.0258636474609375, -0.019073486328125, -0.0506591796875, -0.03143310546875, 0.06317138671875, -0.004993438720703125, -0.0219268798828125, -0.046630859375, 0.0277252197265625, -0.0190887451171875, 0.00799560546875, -0.006103515625, -0.0245819091796875, -0.03204345703125, -0.0005984306335449219, 0.01361083984375, -0.026275634765625, 0.0088348388671875, -0.01287841796875, 0.028228759765625, 0.0242919921875, -0.0265350341796875, -0.014678955078125, 0.00896453857421875, -0.00920867919921875, -0.022216796875, -0.040618896484375, 0.00893402099609375, -0.017578125, 0.038482666015625, 0.0174407958984375, 0.000270843505859375, -0.0060577392578125, 0.0010509490966796875, -0.007808685302734375, -0.04547119140625, 0.0016078948974609375, 0.028076171875, -0.0648193359375, -0.01617431640625, 0.0286865234375, -0.0260009765625, 0.017608642578125, 0.0182342529296875, -0.05126953125, 0.0004982948303222656, 0.01983642578125, 0.004192352294921875, -0.07568359375, -0.008209228515625, 0.050537109375, -0.037139892578125, 0.006183624267578125, -0.0021800994873046875, 0.01218414306640625, 0.0179595947265625, -0.02789306640625, 0.0111083984375, 0.0085906982421875, -0.00611114501953125, -0.01512908935546875, 0.03240966796875, -0.007843017578125, 0.01088714599609375, -0.01279449462890625, -0.0287628173828125, 0.03314208984375, -0.0222320556640625, -0.0166778564453125, 0.0175628662109375, 0.0628662109375, 0.0179595947265625, 0.1453857421875, -0.01515960693359375, 0.038604736328125, 0.00594329833984375, 0.036102294921875, -0.007122039794921875, -0.01201629638671875, 0.034332275390625, -0.049591064453125, 0.01006317138671875, 0.0179901123046875, 0.005947113037109375, -0.004974365234375, 0.000008106231689453125, 0.0300140380859375, 0.00913238525390625, 0.0016279220581054688 ]
770bd6760510fb64578601dae2d92c2d1fff82f7
Wordpress Stackexchange Q: I want to disable E-Mail verifcation / activation when a user signs up for my Wordpress site when a new user registers an activation link is sent to his e-mail account. I want the user to enter his username, email address and password and straight register and be logged in without confirmation (confirmation does not prevent spam bots from signing up for the site, I don't care about it really!) is there a way to do it? A: You can use plugins for do that also have a lot of plugins for this purpose below some of them may be useful for you Remove Email Verification Plugin BP Disable Activation Plugin REMOVE EMAIL VERIFICATION
Q: I want to disable E-Mail verifcation / activation when a user signs up for my Wordpress site when a new user registers an activation link is sent to his e-mail account. I want the user to enter his username, email address and password and straight register and be logged in without confirmation (confirmation does not prevent spam bots from signing up for the site, I don't care about it really!) is there a way to do it? A: You can use plugins for do that also have a lot of plugins for this purpose below some of them may be useful for you Remove Email Verification Plugin BP Disable Activation Plugin REMOVE EMAIL VERIFICATION
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:461976", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213457" }
[ 0.08990478515625, 0.0228424072265625, -0.0305938720703125, -0.03955078125, 0.04754638671875, -0.07366943359375, 0.059722900390625, -0.022064208984375, -0.0015840530395507812, 0.027099609375, -0.004711151123046875, -0.021942138671875, 0.02130126953125, -0.03741455078125, -0.00182342529296875, -0.0235595703125, -0.023162841796875, 0.0567626953125, 0.0011920928955078125, -0.03656005859375, 0.020172119140625, -0.043792724609375, -0.031524658203125, -0.018310546875, -0.0162811279296875, 0.00965118408203125, 0.10821533203125, -0.01551055908203125, -0.01409912109375, -0.0200042724609375, 0.01346588134765625, -0.0274505615234375, -0.01200103759765625, 0.0633544921875, -0.043975830078125, -0.068115234375, 0.0015134811401367188, 0.03204345703125, 0.01727294921875, -0.0005102157592773438, 0.03582763671875, -0.0283660888671875, 0.0026454925537109375, -0.01534271240234375, 0.00262451171875, -0.0107879638671875, 0.0457763671875, -0.022613525390625, 0.039306640625, 0.038848876953125, -0.005886077880859375, 0.035400390625, -0.005542755126953125, -0.034637451171875, -0.00919342041015625, -0.0227203369140625, -0.03558349609375, -0.0105743408203125, 0.0012607574462890625, 0.07244873046875, 0.0283660888671875, 0.029022216796875, -0.0254364013671875, -0.0478515625, 0.00322723388671875, -0.0299835205078125, -0.04046630859375, 0.0258941650390625, -0.0445556640625, -0.01153564453125, 0.047332763671875, -0.034271240234375, 0.004093170166015625, -0.0162200927734375, -0.022552490234375, 0.030975341796875, 0.00525665283203125, 0.032745361328125, 0.015899658203125, -0.00778961181640625, -0.0196685791015625, -0.002227783203125, -0.0399169921875, -0.02142333984375, 0.006809234619140625, 0.01505279541015625, -0.0212554931640625, -0.00995635986328125, -0.005191802978515625, -0.037841796875, -0.01751708984375, 0.0120391845703125, -0.0034809112548828125, -0.0236358642578125, -0.05035400390625, -0.021392822265625, 0.04144287109375, 0.0269927978515625, -0.00014019012451171875, -0.0284271240234375, 0.0006194114685058594, -0.031005859375, -0.04046630859375, -0.00006580352783203125, -0.007442474365234375, 0.0712890625, -0.0066986083984375, -0.0175933837890625, -0.0016412734985351562, 0.006748199462890625, 0.01910400390625, -0.05328369140625, -0.0269622802734375, -0.0192413330078125, 0.0182342529296875, 0.0265960693359375, -0.052398681640625, 0.06207275390625, -0.002384185791015625, 0.04144287109375, -0.0099945068359375, 0.0196990966796875, -0.00630950927734375, -0.003734588623046875, 0.004756927490234375, -0.00789642333984375, -0.0005865097045898438, -0.0085601806640625, -0.015167236328125, -0.0147857666015625, -0.039703369140625, 0.03326416015625, 0.059600830078125, 0.03314208984375, 0.0125885009765625, -0.0005908012390136719, -0.0021228790283203125, 0.00492095947265625, 0.00264739990234375, 0.01025390625, -0.0012102127075195312, -0.057861328125, -0.00548553466796875, 0.01215362548828125, -0.018768310546875, 0.03338623046875, 0.0113372802734375, -0.0026836395263671875, -0.0034885406494140625, -0.023895263671875, -0.0268096923828125, -0.0258331298828125, 0.00005507469177246094, 0.0156402587890625, 0.0308837890625, 0.0231475830078125, 0.014312744140625, 0.00847625732421875, -0.0238037109375, 0.0238037109375, 0.032318115234375, -0.019317626953125, -0.01255035400390625, 0.006847381591796875, -0.022705078125, 0.01172637939453125, -0.0018215179443359375, -0.00670623779296875, 0.0244903564453125, -0.006450653076171875, 0.0357666015625, -0.01397705078125, 0.0145721435546875, -0.010040283203125, 0.0023937225341796875, 0.01313018798828125, 0.01104736328125, 0.01611328125, 0.03924560546875, -0.019256591796875, -0.0189666748046875, -0.0236053466796875, 0.1307373046875, -0.048736572265625, -0.048065185546875, 0.0275115966796875, -0.0015926361083984375, 0.0106353759765625, 0.0302276611328125, -0.005279541015625, 0.04486083984375, 0.031890869140625, -0.0009527206420898438, 0.0131683349609375, 0.005741119384765625, -0.0611572265625, 0.015960693359375, -0.037078857421875, 0.005741119384765625, 0.0167388916015625, 0.043670654296875, -0.050445556640625, 0.031646728515625, -0.053375244140625, -0.0435791015625, -0.031341552734375, -0.0164947509765625, 0.00801849365234375, -0.02752685546875, 0.041748046875, 0.0142364501953125, 0.0040283203125, -0.02642822265625, 0.0027408599853515625, 0.0166015625, -0.00725555419921875, -0.03179931640625, 0.05322265625, -0.0033855438232421875, 0.0450439453125, 0.004154205322265625, -0.053558349609375, 0.0290374755859375, -0.0016689300537109375, 0.004657745361328125, -0.046234130859375, 0.00902557373046875, -0.0296783447265625, -0.003772735595703125, -0.0157012939453125, 0.019439697265625, 0.03497314453125, -0.0299072265625, -0.0231170654296875, -0.039825439453125, 0.0219879150390625, -0.004482269287109375, -0.009674072265625, -0.005863189697265625, 0.03887939453125, 0.0263214111328125, 0.00846099853515625, -0.0045013427734375, -0.000705718994140625, 0.0187835693359375, -0.0174102783203125, 0.023345947265625, -0.0146484375, 0.0186920166015625, 0.03497314453125, -0.0254058837890625, -0.006061553955078125, 0.034881591796875, 0.038726806640625, 0.0005269050598144531, 0.039276123046875, -0.0007996559143066406, -0.048675537109375, 0.016937255859375, 0.0009465217590332031, 0.023590087890625, -0.03155517578125, -0.0261077880859375, -0.00548553466796875, -0.03631591796875, -0.001220703125, -0.0201263427734375, -0.009429931640625, -0.0010175704956054688, 0.0036029815673828125, 0.020538330078125, -0.038482666015625, -0.005100250244140625, 0.01453399658203125, 0.0426025390625, 0.002651214599609375, -0.01959228515625, -0.019500732421875, 0.0168609619140625, 0.0132904052734375, -0.025054931640625, -0.0626220703125, 0.0191497802734375, 0.004131317138671875, 0.029815673828125, -0.061279296875, 0.04815673828125, 0.007251739501953125, -0.0673828125, -0.05987548828125, 0.0012378692626953125, -0.004741668701171875, -0.0294647216796875, -0.01151275634765625, 0.003429412841796875, -0.029022216796875, -0.041107177734375, -0.028839111328125, 0.0360107421875, -0.051239013671875, 0.0306549072265625, 0.0650634765625, -0.007160186767578125, 0.0004291534423828125, 0.006572723388671875, -0.03759765625, -0.005596160888671875, 0.0189666748046875, 0.004730224609375, -0.010406494140625, -0.03814697265625, 0.03021240234375, -0.00009131431579589844, -0.00881195068359375, -0.02294921875, -0.0386962890625, -0.0195465087890625, -0.0156707763671875, -0.033233642578125, 0.001983642578125, -0.056671142578125, -0.0537109375, 0.00978851318359375, 0.018707275390625, -0.0181884765625, -0.003192901611328125, 0.0526123046875, 0.0280303955078125, -0.0288238525390625, -0.013885498046875, -0.053863525390625, -0.05548095703125, -0.045989990234375, 0.0098876953125, -0.0111846923828125, 0.017578125, -0.0014638900756835938, 0.027679443359375, -0.007358551025390625, -0.0166778564453125, 0.0157928466796875, -0.02789306640625, 0.0263214111328125, 0.00821685791015625, -0.054229736328125, 0.01065826416015625, -0.008148193359375, 0.017181396484375, -0.039886474609375, -0.05426025390625, 0.06512451171875, -0.05999755859375, 0.042449951171875, 0.0128936767578125, 0.0143585205078125, 0.01178741455078125, -0.0372314453125, -0.005313873291015625, -0.0236053466796875, -0.053924560546875, 0.01438140869140625, -0.007038116455078125, -0.033050537109375, -0.042877197265625, 0.01336669921875, -0.014068603515625, -0.0048065185546875, -0.044921875, 0.0304107666015625, 0.01093292236328125, 0.045501708984375, -0.0159912109375, 0.032135009765625, 0.0003895759582519531, 0.0079345703125, -0.04931640625, 0.044158935546875, -0.00771331787109375, -0.036590576171875, -0.0145721435546875, 0.0098114013671875, -0.031951904296875, 0.0299835205078125, -0.055908203125, -0.06683349609375, 0.046905517578125, -0.030517578125, -0.01422882080078125, -0.0121612548828125, -0.0142822265625, 0.0242919921875, 0.1165771484375, 0.0297088623046875, -0.0174560546875, 0.002300262451171875, 0.0010309219360351562, -0.046478271484375, 0.00240325927734375, -0.020050048828125, -0.0166015625, -0.0182647705078125, -0.0206756591796875, -0.0165557861328125, -0.025421142578125, 0.00171661376953125, -0.0782470703125, -0.0144195556640625, -0.021484375, 0.0159912109375, 0.006145477294921875, 0.0214080810546875, -0.01201629638671875, -0.0005526542663574219, -0.01267242431640625, -0.01512908935546875, -0.02508544921875, -0.03448486328125, 0.006549835205078125, 0.00656890869140625, -0.012939453125, -0.0220794677734375, 0.03265380859375, -0.004734039306640625, 0.014495849609375, -0.007396697998046875, -0.01497650146484375, 0.0219268798828125, 0.031768798828125, 0.0294952392578125, -0.022125244140625, -0.013214111328125, -0.03125, 0.033111572265625, 0.022369384765625, -0.03472900390625, 0.0304107666015625, -0.04901123046875, 0.02264404296875, -0.0096588134765625, -0.040252685546875, -0.01232147216796875, -0.0217742919921875, -0.0283050537109375, 0.0201873779296875, -0.0033550262451171875, -0.0268096923828125, -0.037811279296875, -0.019683837890625, 0.05914306640625, -0.050872802734375, -0.00597381591796875, -0.015960693359375, 0.037933349609375, 0.0102386474609375, -0.008819580078125, 0.06939697265625, 0.032867431640625, 0.033111572265625, 0.04254150390625, 0.023712158203125, 0.016021728515625, -0.030487060546875, 0.0182647705078125, 0.029449462890625, 0.009063720703125, -0.00777435302734375, 0.069091796875, -0.00803375244140625, -0.020263671875, 0.0171661376953125, -0.0177459716796875, -0.0179443359375, 0.0248260498046875, 0.04583740234375, -0.0323486328125, 0.055511474609375, 0.00891876220703125, -0.0019931793212890625, -0.032928466796875, 0.0119781494140625, -0.00899505615234375, 0.00978851318359375, -0.01053619384765625, -0.00940704345703125, -0.0123748779296875, 0.017974853515625, -0.04571533203125, -0.006855010986328125, -0.0188140869140625, -0.031829833984375, -0.0411376953125, -0.0148468017578125, 0.0008420944213867188, -0.0176849365234375, -0.025177001953125, 0.00102996826171875, -0.0218963623046875, 0.04132080078125, -0.0050811767578125, -0.06390380859375, 0.0303497314453125, -0.0160369873046875, 0.0259857177734375, 0.043212890625, -0.005462646484375, 0.0828857421875, 0.015289306640625, -0.00838470458984375, -0.0030574798583984375, -0.032196044921875, -0.00359344482421875, -0.06341552734375, -0.0149688720703125, -0.00003701448440551758, -0.0214996337890625, 0.041778564453125, 0.003314971923828125, 0.01216888427734375, 0.0085906982421875, -0.0199432373046875, 0.053863525390625, 0.05389404296875, -0.002613067626953125, 0.0007910728454589844, 0.037017822265625, -0.0316162109375, -0.01004791259765625, -0.006317138671875, -0.01557159423828125, -0.0087432861328125, 0.0215606689453125, 0.0230865478515625, 0.03271484375, 0.0210418701171875, -0.0250091552734375, -0.011932373046875, -0.00763702392578125, 0.0242919921875, -0.01363372802734375, -0.0246734619140625, -0.040863037109375, -0.0271148681640625, 0.01654052734375, -0.012451171875, 0.01421356201171875, -0.032379150390625, 0.01013946533203125, -0.0239715576171875, 0.054473876953125, -0.04766845703125, 0.005519866943359375, 0.0198211669921875, 0.007152557373046875, -0.0035686492919921875, -0.0035686492919921875, 0.0196380615234375, 0.0166778564453125, -0.02630615234375, -0.013214111328125, 0.04095458984375, -0.01611328125, 0.005199432373046875, -0.032012939453125, 0.025970458984375, -0.0146636962890625, 0.0174407958984375, 0.0277099609375, -0.003265380859375, -0.049102783203125, -0.012359619140625, -0.050628662109375, -0.0299835205078125, -0.054840087890625, -0.039276123046875, -0.04254150390625, 0.01605224609375, 0.02001953125, 0.00960540771484375, -0.004962921142578125, -0.0419921875, -0.01202392578125, 0.03338623046875, 0.047515869140625, 0.056365966796875, -0.0197906494140625, 0.021209716796875, 0.028350830078125, 0.02679443359375, 0.01904296875, 0.005794525146484375, -0.03839111328125, -0.011016845703125, 0.01470184326171875, -0.0294342041015625, -0.044342041015625, -0.00507354736328125, -0.06268310546875, 0.0130462646484375, 0.07110595703125, -0.0171661376953125, -0.018768310546875, -0.00765228271484375, -0.00032329559326171875, -0.018463134765625, 0.021148681640625, 0.0153350830078125, 0.021575927734375, -0.029296875, -0.0229949951171875, 0.000006079673767089844, 0.00444793701171875, 0.0284881591796875, 0.00411224365234375, -0.0191650390625, 0.00278472900390625, 0.013702392578125, 0.0017452239990234375, -0.00557708740234375, -0.0175933837890625, -0.0009937286376953125, 0.00980377197265625, -0.004077911376953125, 0.0306549072265625, -0.0108795166015625, -0.00281524658203125, -0.01108551025390625, -0.03192138671875, 0.053985595703125, 0.0161285400390625, -0.0306396484375, 0.055816650390625, -0.035247802734375, 0.0159912109375, 0.08447265625, 0.07830810546875, -0.12298583984375, 0.006404876708984375, -0.01314544677734375, -0.0086669921875, 0.040771484375, 0.0135345458984375, -0.01568603515625, -0.0161590576171875, 0.02734375, -0.0289306640625, -0.006679534912109375, 0.0204925537109375, -0.00296783447265625, -0.006744384765625, 0.0067901611328125, 0.0782470703125, 0.02191162109375, -0.04119873046875, -0.0001437664031982422, 0.04205322265625, 0.003696441650390625, -0.0482177734375, -0.01021575927734375, 0.051666259765625, -0.0216522216796875, -0.08575439453125, 0.02191162109375, -0.004978179931640625, 0.009124755859375, -0.0294952392578125, -0.01482391357421875, 0.06011962890625, 0.0143280029296875, -0.004390716552734375, -0.0312347412109375, -0.01151275634765625, -0.007602691650390625, 0.005458831787109375, -0.01593017578125, -0.02508544921875, 0.0258331298828125, 0.0169830322265625, 0.00786590576171875, 0.0218505859375, -0.01861572265625, 0.01082611083984375, 0.0233154296875, 0.03485107421875, 0.0006990432739257812, -0.042938232421875, 0.04840087890625, -0.06903076171875, -0.022674560546875, -0.057159423828125, -0.00774383544921875, -0.047149658203125, 0.005039215087890625, -0.055145263671875, -0.01395416259765625, 0.0195770263671875, -0.06396484375, -0.0662841796875, 0.10382080078125, -0.0115203857421875, 0.03973388671875, -0.01406097412109375, 0.03826904296875, 0.0171356201171875, 0.03436279296875, -0.03851318359375, 0.036224365234375, -0.020965576171875, 0.075927734375, -0.03179931640625, 0.00036907196044921875, 0.0301361083984375, 0.0114593505859375, 0.08355712890625, 0.016143798828125, -0.0036563873291015625, -0.03607177734375, 0.015350341796875, 0.0166015625, -0.03387451171875, 0.0223388671875, -0.004459381103515625, 0.052215576171875, 0.0279693603515625, -0.0592041015625, 0.0137176513671875, -0.006702423095703125, -0.0265960693359375, 0.0247344970703125, -0.01042938232421875, -0.0212249755859375, 0.00626373291015625, 0.037933349609375, -0.0184173583984375, -0.01445770263671875, 0.003612518310546875, -0.02435302734375, 0.0017604827880859375, 0.016937255859375, 0.0185394287109375, -0.005458831787109375, 0.049346923828125, -0.0303802490234375, 0.061126708984375, 0.0037784576416015625, -0.0004582405090332031, 0.02105712890625, 0.00853729248046875, 0.055633544921875, 0.0022602081298828125, 0.0004341602325439453, 0.0157470703125, -0.0033512115478515625, -0.00511932373046875, -0.019561767578125, 0.0294647216796875, -0.056671142578125, -0.044281005859375, -0.005397796630859375, 0.01381683349609375, -0.00649261474609375, -0.03399658203125, -0.001888275146484375, 0.005035400390625, 0.054443359375, -0.0002968311309814453, 0.0869140625, -0.0030059814453125, -0.003795623779296875, -0.029998779296875, 0.0226898193359375, 0.044586181640625, -0.0061798095703125, -0.00689697265625, 0.0268707275390625, -0.027374267578125, 0.0439453125, 0.0098876953125, -0.00778961181640625, 0.009521484375, -0.0318603515625, -0.01123046875, 0.0206146240234375, 0.0633544921875, 0.028594970703125, -0.044036865234375, 0.0308380126953125, 0.0313720703125, 0.03106689453125, -0.0389404296875, 0.002361297607421875, 0.029754638671875, 0.0390625, 0.0031280517578125, -0.008270263671875, 0.053955078125, 0.07000732421875, -0.0309600830078125, -0.0275421142578125, 0.0242462158203125, -0.0062713623046875, 0.016326904296875, -0.01239013671875, 0.00792694091796875, 0.027435302734375, -0.00472259521484375, -0.010528564453125, -0.00408935546875, 0.0672607421875, 0.00490570068359375, 0.018646240234375, 0.00688934326171875, 0.01506805419921875, 0.028717041015625, 0.00031113624572753906, -0.032440185546875, 0.03173828125, -0.09539794921875, -0.04638671875, 0.0016164779663085938, -0.052520751953125, 0.0396728515625, 0.049468994140625, -0.037689208984375, 0.027435302734375, 0.002288818359375, 0.0016431808471679688, 0.050048828125, -0.056610107421875, -0.0092926025390625, 0.02203369140625, 0.005779266357421875, 0.0011816024780273438, -0.038299560546875, 0.001354217529296875, 0.017333984375, -0.0225677490234375, -0.0239410400390625, 0.07586669921875, -0.0033588409423828125, -0.0250701904296875, -0.0325927734375, 0.0284881591796875, -0.0301666259765625, -0.0218048095703125, -0.006496429443359375, 0.0230712890625, 0.003635406494140625, 0.0021572113037109375, -0.058135986328125, 0.09130859375, -0.032867431640625, 0.0291900634765625, 0.0902099609375, -0.032745361328125, -0.0226593017578125, 0.01534271240234375, 0.0043792724609375, -0.0275726318359375, -0.05877685546875, -0.0247344970703125, 0.038330078125, -0.0160064697265625, 0.0239410400390625, -0.035186767578125, 0.0183258056640625, -0.0225677490234375, -0.0298919677734375, -0.00595855712890625, -0.013946533203125, -0.04925537109375, 0.01425933837890625, 0.0218048095703125, -0.0029582977294921875, 0.005245208740234375, -0.0116119384765625, -0.00452423095703125, 0.021240234375, -0.02093505859375, 0.0170135498046875, -0.059051513671875, -0.029083251953125, 0.0316162109375, 0.0260467529296875, 0.0030460357666015625, 0.005893707275390625, 0.020294189453125, -0.0261993408203125, -0.003498077392578125, -0.07147216796875, -0.0234832763671875, -0.044403076171875, 0.0010766983032226562, 0.037139892578125, -0.014404296875, -0.01082611083984375, -0.006679534912109375, 0.0242462158203125, 0.00890350341796875, -0.0118255615234375, -0.030670166015625, 0.01171112060546875, -0.01459503173828125, 0.047607421875, -0.034759521484375, 0.0204925537109375, -0.0027446746826171875, 0.00717926025390625, -0.038909912109375, -0.05035400390625, -0.0111541748046875, 0.07952880859375, -0.0136871337890625, -0.0222930908203125, 0.0158538818359375, 0.00885009765625, -0.045684814453125, -0.058807373046875, -0.029937744140625, -0.00756072998046875, -0.035797119140625, -0.01396942138671875, 0.002742767333984375, -0.015594482421875, -0.0020599365234375, -0.02813720703125, 0.01155853271484375, -0.060577392578125, -0.04180908203125, -0.01374053955078125, -0.004589080810546875, 0.0274810791015625, -0.036834716796875, -0.0849609375, 0.058380126953125, -0.02294921875, -0.0302581787109375, -0.02362060546875, -0.0093231201171875, -0.003520965576171875, -0.01190185546875, -0.00962066650390625, -0.0165863037109375, -0.0250091552734375, 0.0293731689453125, 0.02508544921875, 0.00638580322265625, 0.01419830322265625, 0.0126495361328125, -0.0032291412353515625, 0.052642822265625, 0.04705810546875, 0.01415252685546875, 0.0029239654541015625, 0.008270263671875, 0.0163116455078125, 0.0440673828125, -0.0352783203125, 0.006443023681640625, -0.00525665283203125, -0.003215789794921875, -0.038604736328125, -0.0799560546875, 0.02581787109375, -0.005859375, 0.038238525390625, 0.03973388671875, -0.013641357421875, -0.04974365234375, -0.041259765625, -0.033660888671875, 0.042755126953125, -0.028228759765625, -0.0160675048828125, -0.040618896484375, 0.002197265625, -0.0220947265625, 0.01354217529296875, -0.0219573974609375, -0.03009033203125, -0.0276336669921875, -0.02130126953125, 0.004009246826171875, 0.01702880859375, 0.00524139404296875, -0.02423095703125, -0.03033447265625, -0.005077362060546875, -0.0469970703125, -0.004344940185546875, 0.01953125, -0.05517578125, 0.0215301513671875, 0.0202178955078125, 0.0253143310546875, -0.0341796875, 0.0012445449829101562, 0.019073486328125, 0.0428466796875, -0.0216217041015625, -0.0181884765625, -0.0008063316345214844, 0.0303955078125, 0.017333984375, 0.03778076171875, -0.04461669921875, 0.042449951171875, 0.01531219482421875, 0.00930023193359375, 0.0173797607421875, -0.07818603515625, -0.04473876953125, 0.040313720703125, 0.02484130859375, -0.031005859375, 0.036346435546875, -0.017242431640625, 0.015899658203125, -0.005344390869140625, 0.07525634765625, -0.017486572265625, 0.031951904296875, -0.030517578125, 0.03875732421875, 0.01328277587890625 ]
60ce1646f32fcda7962ac2864678ff09a0beb767
Wordpress Stackexchange Q: get woocommerce My account page link I am trying to send an email to customer after purchased products and when customer click on the the link provided the email for rating the product it should redirect to customer's account/My account page. I put some code in functions.php to get the WooCommerce My Account URL: $myaccount_page = get_option( 'woocommerce_myaccount_page_id' ); if ( $myaccount_page ) { $myaccount_page_url = get_permalink( $myaccount_page ); } I have customized into customer-completed-order.php and put this code <h2> Go to your account page for review </h2> <a href="http://animax.cf/product/happy-ninja/#reviews"> <img src="http://animax.cf/wp-content/uploads/2015/12/product-reviews.png" alt="Product Rating"> </a> I want to get woocomerce myaccount url in above code. how should i do this. A: There is another way to do this using the WooCommerce native endpoints (you can use any of the registered endpoints with WC or third-party plugins that hook into WC): <?php echo esc_url( wc_get_account_endpoint_url( 'edit-account' ) ); ?> For dashboard you could use something like this <?php echo esc_url( trailingslashit( wc_get_account_endpoint_url( '' ) ) ); ?>
Q: get woocommerce My account page link I am trying to send an email to customer after purchased products and when customer click on the the link provided the email for rating the product it should redirect to customer's account/My account page. I put some code in functions.php to get the WooCommerce My Account URL: $myaccount_page = get_option( 'woocommerce_myaccount_page_id' ); if ( $myaccount_page ) { $myaccount_page_url = get_permalink( $myaccount_page ); } I have customized into customer-completed-order.php and put this code <h2> Go to your account page for review </h2> <a href="http://animax.cf/product/happy-ninja/#reviews"> <img src="http://animax.cf/wp-content/uploads/2015/12/product-reviews.png" alt="Product Rating"> </a> I want to get woocomerce myaccount url in above code. how should i do this. A: There is another way to do this using the WooCommerce native endpoints (you can use any of the registered endpoints with WC or third-party plugins that hook into WC): <?php echo esc_url( wc_get_account_endpoint_url( 'edit-account' ) ); ?> For dashboard you could use something like this <?php echo esc_url( trailingslashit( wc_get_account_endpoint_url( '' ) ) ); ?> A: You can get the WooCommerce my-account URL as below <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account',''); ?>"><?php _e('My Account',''); ?></a> Now you can insert this in completed order mail template too. <h2> <a href="<?php echo get_permalink( get_option('woocommerce_myaccount_page_id') ); ?>" title="<?php _e('My Account',''); ?>">Go to your account page for review</a> </h2> <a href="http://animax.cf/product/happy-ninja/#reviews"> <img src="http://animax.cf/wp-content/uploads/2015/12/product-reviews.png" alt="Product Rating"> </a> A: It returns account page itself without endpoints: echo wc_get_account_endpoint_url('dashboard'); A: woocommerce wc_get_page_id function will help you to create WooCommerce pages URLs Examples of usage: My Account <?php echo get_permalink( wc_get_page_id( 'myaccount' ) ); ?> Shop <?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?> A: <?php if ( is_front_page() && is_home() ) { // Default homepage echo "Default homepage"; } elseif ( is_front_page()){ echo "Static homepage"; // Static homepage } elseif ( is_home()){ echo "Blog page"; // Blog page } elseif ( is_page( 'cart' ) || is_cart()){ echo "cart"; // Blog page } elseif (is_single()){ echo "is_single"; // Blog page } elseif (is_product_category()){ echo "is_product_category"; } else { echo "Everything else"; // Everything else } ?>
wordpress
{ "language": "en", "length": 344, "provenance": "stackexchange_00019.jsonl.gz:462018", "question_score": "24", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213612" }
[ 0.018524169921875, -0.030609130859375, 0.0117645263671875, -0.0270233154296875, -0.030487060546875, -0.005184173583984375, 0.0258331298828125, -0.0112152099609375, -0.0142059326171875, 0.02386474609375, -0.01171112060546875, 0.00492095947265625, -0.01441192626953125, -0.011871337890625, 0.0014400482177734375, -0.0318603515625, -0.003177642822265625, 0.03741455078125, 0.0325927734375, 0.01235198974609375, -0.0085296630859375, 0.01593017578125, 0.0143585205078125, -0.024169921875, 0.01206207275390625, 0.0195770263671875, 0.12188720703125, -0.006175994873046875, 0.00847625732421875, -0.00101470947265625, 0.032440185546875, -0.06195068359375, 0.0220489501953125, 0.00836944580078125, -0.032501220703125, -0.03741455078125, -0.00384521484375, 0.0016202926635742188, -0.01241302490234375, 0.0127716064453125, 0.044219970703125, -0.03466796875, 0.021270751953125, -0.03106689453125, 0.0096588134765625, -0.01410675048828125, 0.0404052734375, -0.040985107421875, 0.0111541748046875, 0.06463623046875, 0.0038967132568359375, 0.04241943359375, -0.0056610107421875, 0.032257080078125, -0.00576019287109375, -0.01806640625, -0.0236358642578125, -0.032928466796875, 0.0170745849609375, 0.032379150390625, 0.01348876953125, -0.00029540061950683594, -0.0009312629699707031, -0.031402587890625, -0.0110931396484375, 0.018280029296875, 0.0198516845703125, 0.031524658203125, -0.01418304443359375, -0.04412841796875, -0.0216217041015625, 0.003452301025390625, -0.00330352783203125, 0.007122039794921875, -0.0078887939453125, -0.0254058837890625, 0.0121612548828125, -0.004261016845703125, 0.00691986083984375, 0.020660400390625, -0.014251708984375, -0.0205535888671875, -0.05078125, -0.01522064208984375, 0.0029582977294921875, -0.007450103759765625, -0.0060272216796875, 0.00458526611328125, -0.0261383056640625, -0.0017871856689453125, -0.0305633544921875, 0.004505157470703125, 0.01206207275390625, 0.004161834716796875, -0.037689208984375, 0.00701904296875, 0.0204925537109375, -0.00878143310546875, 0.01251983642578125, -0.008209228515625, 0.039398193359375, -0.06842041015625, 0.04449462890625, -0.019805908203125, -0.0183868408203125, 0.052093505859375, 0.01389312744140625, 0.034423828125, 0.0191497802734375, 0.01216888427734375, 0.005550384521484375, 0.0055999755859375, -0.033294677734375, -0.0244293212890625, 0.01166534423828125, 0.03216552734375, -0.0699462890625, 0.0303192138671875, -0.0017948150634765625, 0.03582763671875, -0.00737762451171875, 0.0111846923828125, 0.04754638671875, 0.0238037109375, -0.0083160400390625, 0.00946807861328125, -0.0063629150390625, -0.054290771484375, 0.0195159912109375, 0.0005340576171875, -0.03826904296875, 0.0086517333984375, 0.035400390625, 0.037139892578125, 0.0185089111328125, -0.0208282470703125, -0.0059661865234375, -0.0118408203125, 0.0361328125, -0.027679443359375, 0.00356292724609375, 0.027587890625, 0.043731689453125, -0.0052032470703125, 0.038299560546875, -0.0035800933837890625, -0.01459503173828125, 0.0323486328125, 0.037200927734375, 0.0265960693359375, -0.01251220703125, -0.00020444393157958984, 0.006072998046875, 0.0206451416015625, 0.024658203125, 0.01001739501953125, 0.043670654296875, -0.02313232421875, 0.0013895034790039062, -0.0209503173828125, -0.0150909423828125, -0.0167694091796875, 0.0296478271484375, -0.0248260498046875, -0.042938232421875, 0.0188446044921875, -0.0404052734375, -0.01410675048828125, 0.023223876953125, 0.03546142578125, 0.00815582275390625, -0.034210205078125, -0.0008416175842285156, 0.0194091796875, 0.0006556510925292969, 0.0205078125, -0.0111083984375, 0.041900634765625, 0.032745361328125, 0.00977325439453125, -0.0020961761474609375, -0.023681640625, 0.070068359375, -0.012786865234375, -0.02374267578125, 0.01959228515625, 0.0302886962890625, 0.0364990234375, -0.046234130859375, 0.0233001708984375, 0.0221710205078125, 0.059783935546875, -0.038818359375, 0.032135009765625, -0.0457763671875, -0.027191162109375, 0.03924560546875, 0.0230865478515625, -0.0189208984375, 0.0109100341796875, 0.02386474609375, -0.0318603515625, 0.04461669921875, -0.0232391357421875, -0.002071380615234375, 0.0175628662109375, -0.0165863037109375, 0.0355224609375, -0.01259613037109375, 0.00963592529296875, 0.032440185546875, 0.028900146484375, -0.04107666015625, -0.02532958984375, -0.018310546875, 0.0217437744140625, -0.03570556640625, 0.03497314453125, -0.033355712890625, 0.0265350341796875, -0.01123809814453125, -0.039703369140625, -0.00003820657730102539, 0.021209716796875, 0.016387939453125, 0.001590728759765625, -0.0156707763671875, -0.01116943359375, -0.0284576416015625, 0.02685546875, -0.082763671875, 0.0020751953125, 0.05877685546875, -0.0184478759765625, -0.048919677734375, 0.029144287109375, 0.01148223876953125, -0.045562744140625, -0.02191162109375, 0.048095703125, 0.044036865234375, -0.0106048583984375, 0.0008044242858886719, 0.010955810546875, 0.0010013580322265625, -0.066162109375, 0.0129241943359375, -0.021209716796875, 0.0005030632019042969, 0.0693359375, -0.01641845703125, 0.017669677734375, -0.01174163818359375, -0.03729248046875, -0.0084381103515625, 0.039306640625, 0.0005536079406738281, -0.0070343017578125, -0.037322998046875, 0.0438232421875, -0.0247955322265625, -0.016754150390625, 0.00852203369140625, -0.0302886962890625, -0.000005185604095458984, 0.028350830078125, 0.039093017578125, 0.036163330078125, -0.0240936279296875, -0.02313232421875, 0.0196685791015625, 0.047119140625, 0.003681182861328125, 0.048919677734375, 0.040863037109375, -0.04443359375, 0.0004286766052246094, -0.025421142578125, 0.00026798248291015625, 0.0200347900390625, 0.020721435546875, 0.0126953125, 0.01068115234375, 0.0013971328735351562, -0.0056610107421875, -0.036773681640625, 0.017303466796875, 0.047607421875, 0.0216522216796875, 0.0015659332275390625, 0.03253173828125, 0.006134033203125, -0.0142059326171875, 0.0220794677734375, -0.0030956268310546875, -0.03924560546875, 0.017181396484375, -0.0440673828125, 0.058837890625, -0.0487060546875, 0.02496337890625, 0.065185546875, -0.0009608268737792969, 0.01052093505859375, -0.00934600830078125, -0.042144775390625, -0.03216552734375, 0.013397216796875, -0.0010023117065429688, -0.0269317626953125, -0.03143310546875, 0.061279296875, 0.01334381103515625, 0.059417724609375, -0.034393310546875, -0.049530029296875, -0.023956298828125, -0.0004906654357910156, -0.11962890625, -0.10888671875, 0.006473541259765625, -0.04278564453125, -0.01105499267578125, 0.0096282958984375, -0.033782958984375, -0.0081329345703125, 0.0335693359375, 0.011474609375, 0.01067352294921875, -0.00933837890625, -0.034912109375, -0.034515380859375, -0.0673828125, -0.0298614501953125, -0.00036025047302246094, 0.00942230224609375, 0.003681182861328125, -0.039703369140625, -0.0281829833984375, -0.0180816650390625, 0.00970458984375, 0.00482177734375, 0.031982421875, -0.0234527587890625, -0.0697021484375, 0.00007420778274536133, -0.004810333251953125, -0.009429931640625, 0.0758056640625, -0.01385498046875, 0.0099334716796875, 0.0289154052734375, 0.01751708984375, 0.00992584228515625, 0.044097900390625, -0.042449951171875, -0.0262298583984375, 0.0149688720703125, -0.000316619873046875, -0.04083251953125, -0.007236480712890625, -0.0238037109375, -0.022613525390625, 0.0343017578125, 0.0220489501953125, -0.0088043212890625, -0.0006856918334960938, 0.00157928466796875, -0.004329681396484375, -0.0220947265625, 0.044708251953125, -0.032867431640625, 0.0160980224609375, -0.024749755859375, -0.029449462890625, -0.03680419921875, 0.057281494140625, 0.0142364501953125, -0.0194549560546875, 0.03228759765625, 0.0433349609375, 0.003902435302734375, 0.0107421875, -0.054931640625, -0.049835205078125, 0.0633544921875, -0.01389312744140625, 0.01383209228515625, -0.0293121337890625, -0.0222930908203125, -0.0075836181640625, 0.1009521484375, 0.002361297607421875, -0.00839996337890625, 0.03857421875, 0.00272369384765625, -0.04217529296875, 0.026885986328125, -0.0875244140625, 0.0167999267578125, -0.058807373046875, -0.01528167724609375, -0.00881195068359375, -0.046356201171875, 0.0271148681640625, -0.0633544921875, -0.03564453125, -0.0419921875, 0.03399658203125, -0.00005626678466796875, 0.0419921875, 0.032196044921875, 0.01070404052734375, 0.03765869140625, -0.049072265625, -0.005657196044921875, -0.0202178955078125, 0.007415771484375, 0.0120086669921875, 0.004322052001953125, -0.007556915283203125, -0.005367279052734375, -0.01244354248046875, 0.021209716796875, -0.00044989585876464844, 0.0269927978515625, -0.0026454925537109375, 0.01300811767578125, -0.0293731689453125, -0.005268096923828125, 0.021148681640625, -0.028289794921875, 0.0008263587951660156, -0.01110076904296875, -0.045867919921875, 0.0089263916015625, -0.0009398460388183594, 0.0229339599609375, 0.037200927734375, -0.0194549560546875, -0.10552978515625, -0.04638671875, -0.00701141357421875, 0.01340484619140625, 0.0031223297119140625, -0.017333984375, -0.041961669921875, -0.1217041015625, 0.0203399658203125, -0.042694091796875, -0.016387939453125, 0.027252197265625, 0.0243988037109375, 0.01163482666015625, 0.01096343994140625, 0.0060577392578125, -0.0273590087890625, 0.032318115234375, -0.00928497314453125, 0.0482177734375, 0.02569580078125, -0.007534027099609375, 0.040802001953125, 0.00841522216796875, 0.04669189453125, -0.01406097412109375, 0.03515625, 0.016754150390625, 0.00472259521484375, 0.0039005279541015625, 0.0276641845703125, -0.051116943359375, 0.06365966796875, -0.0235137939453125, -0.0186920166015625, -0.0312347412109375, 0.02197265625, -0.029449462890625, 0.0296783447265625, -0.0186767578125, -0.0372314453125, 0.01004791259765625, 0.012481689453125, 0.024017333984375, 0.044464111328125, -0.01424407958984375, 0.0257415771484375, 0.00043129920959472656, -0.01568603515625, -0.0272369384765625, -0.0247650146484375, 0.006649017333984375, 0.00878143310546875, -0.029388427734375, -0.0130157470703125, -0.015869140625, -0.01971435546875, 0.017730712890625, -0.008880615234375, -0.049468994140625, -0.01216888427734375, -0.03668212890625, -0.01227569580078125, 0.0167999267578125, -0.059356689453125, 0.08721923828125, 0.042633056640625, -0.045013427734375, -0.024932861328125, -0.0843505859375, -0.0273590087890625, -0.0977783203125, 0.0261077880859375, -0.00287628173828125, 0.007686614990234375, -0.003238677978515625, 0.1221923828125, -0.0280609130859375, 0.059844970703125, -0.003009796142578125, 0.04559326171875, 0.0130615234375, 0.04339599609375, 0.0164794921875, -0.001190185546875, -0.0006418228149414062, -0.00656890869140625, -0.021820068359375, -0.027191162109375, -0.03167724609375, 0.0021190643310546875, 0.0311126708984375, -0.012542724609375, 0.0038776397705078125, 0.012420654296875, -0.0099945068359375, -0.006221771240234375, 0.017547607421875, -0.010040283203125, -0.0300140380859375, -0.0271148681640625, 0.00862884521484375, 0.020843505859375, 0.0013608932495117188, 0.0172882080078125, -0.0280609130859375, -0.017364501953125, -0.0005788803100585938, -0.0023193359375, 0.0086517333984375, -0.018341064453125, -0.023284912109375, 0.017669677734375, -0.0042877197265625, -0.0007352828979492188, -0.006275177001953125, 0.00934600830078125, -0.0494384765625, -0.031890869140625, 0.0865478515625, -0.0125274658203125, 0.0621337890625, -0.033905029296875, -0.0287933349609375, -0.050201416015625, -0.0018825531005859375, 0.058746337890625, 0.050506591796875, -0.05865478515625, 0.003742218017578125, -0.035919189453125, -0.01165771484375, 0.0509033203125, -0.033935546875, -0.02069091796875, -0.040557861328125, 0.0186309814453125, 0.033935546875, -0.004436492919921875, -0.038970947265625, 0.0004968643188476562, -0.016876220703125, 0.01163482666015625, 0.033355712890625, 0.0004773139953613281, 0.0831298828125, -0.018035888671875, 0.07403564453125, 0.0166015625, 0.03509521484375, -0.0273590087890625, -0.0173797607421875, 0.01349639892578125, 0.015167236328125, -0.02606201171875, -0.049468994140625, 0.0003795623779296875, 0.0238494873046875, 0.0689697265625, -0.00658416748046875, -0.0179443359375, 0.0160675048828125, 0.004169464111328125, -0.0243377685546875, 0.056854248046875, 0.037689208984375, 0.0177459716796875, 0.0267181396484375, -0.01216888427734375, 0.02423095703125, 0.00611114501953125, 0.010009765625, 0.0189056396484375, 0.0017547607421875, 0.01371002197265625, -0.0171661376953125, -0.049346923828125, 0.0750732421875, 0.123046875, -0.0237579345703125, 0.0494384765625, 0.0235443115234375, -0.01357269287109375, 0.0369873046875, 0.038848876953125, 0.0081787109375, -0.0093231201171875, 0.0243988037109375, -0.009368896484375, -0.0234527587890625, 0.005817413330078125, -0.019989013671875, 0.019439697265625, 0.0631103515625, 0.0933837890625, -0.10546875, 0.01264190673828125, 0.03955078125, 0.00023066997528076172, 0.0007343292236328125, 0.004718780517578125, -0.01336669921875, -0.03192138671875, 0.0701904296875, -0.061248779296875, -0.004909515380859375, 0.01279449462890625, -0.032501220703125, -0.00012242794036865234, 0.0246429443359375, 0.06097412109375, 0.00042939186096191406, -0.06451416015625, -0.052032470703125, 0.04620361328125, -0.061126708984375, -0.027679443359375, -0.007694244384765625, 0.027740478515625, -0.01873779296875, -0.0352783203125, 0.036712646484375, -0.0228424072265625, 0.032623291015625, 0.0042572021484375, -0.004878997802734375, 0.0234222412109375, 0.02935791015625, -0.0013322830200195312, 0.0022029876708984375, -0.00896453857421875, -0.00897216796875, 0.03240966796875, -0.030609130859375, -0.0053863525390625, 0.04730224609375, -0.0958251953125, 0.00004738569259643555, -0.03680419921875, 0.045501708984375, 0.0178375244140625, 0.042449951171875, 0.01776123046875, 0.0014514923095703125, -0.02685546875, 0.03155517578125, 0.0139312744140625, -0.0032672882080078125, -0.0133209228515625, 0.0091705322265625, -0.043426513671875, -0.0328369140625, -0.01605224609375, -0.045928955078125, -0.00434112548828125, -0.03765869140625, -0.0819091796875, 0.045623779296875, -0.0240631103515625, 0.0182342529296875, 0.00951385498046875, 0.0215911865234375, -0.0207977294921875, -0.0272216796875, -0.03448486328125, 0.042083740234375, 0.031585693359375, 0.05523681640625, -0.046539306640625, -0.0220794677734375, 0.00988006591796875, 0.039031982421875, 0.058868408203125, 0.00144195556640625, -0.0239410400390625, -0.0037212371826171875, 0.034088134765625, -0.0156402587890625, -0.034942626953125, 0.057830810546875, 0.0242156982421875, -0.0215911865234375, 0.058990478515625, -0.0163116455078125, 0.01239013671875, 0.0024662017822265625, 0.042449951171875, 0.041259765625, 0.00165557861328125, -0.0082550048828125, -0.00989532470703125, 0.064697265625, -0.01433563232421875, -0.0004363059997558594, 0.0145721435546875, -0.00894927978515625, -0.03387451171875, 0.01081085205078125, -0.0210113525390625, 0.014617919921875, 0.0168914794921875, -0.0189971923828125, 0.0206756591796875, 0.00824737548828125, -0.003631591796875, 0.053009033203125, 0.0222320556640625, 0.037353515625, -0.00441741943359375, -0.01122283935546875, -0.0180511474609375, 0.03814697265625, 0.0308074951171875, 0.0224761962890625, 0.032135009765625, 0.0016031265258789062, 0.03607177734375, 0.0260772705078125, 0.007480621337890625, -0.02166748046875, -0.0028858184814453125, 0.006549835205078125, 0.007190704345703125, 0.01490020751953125, -0.01708984375, 0.037506103515625, -0.04498291015625, -0.027862548828125, -0.04107666015625, -0.00013685226440429688, 0.0179290771484375, 0.030609130859375, -0.0214691162109375, -0.0011196136474609375, -0.040802001953125, -0.01157379150390625, -0.00769805908203125, -0.002567291259765625, -0.027801513671875, 0.03814697265625, 0.00688934326171875, 0.044403076171875, -0.0635986328125, -0.009735107421875, -0.0009717941284179688, 0.00376129150390625, -0.01049041748046875, 0.0134735107421875, -0.023681640625, -0.011993408203125, 0.0021190643310546875, 0.0467529296875, 0.01861572265625, -0.004238128662109375, 0.02093505859375, 0.024810791015625, -0.007781982421875, -0.00018537044525146484, 0.020538330078125, -0.0163726806640625, 0.03759765625, -0.03656005859375, 0.038543701171875, 0.0016880035400390625, -0.0003476142883300781, -0.006244659423828125, 0.0012254714965820312, 0.025726318359375, -0.0313720703125, 0.038787841796875, -0.01849365234375, 0.0005183219909667969, 0.040252685546875, -0.023895263671875, 0.036956787109375, -0.01523590087890625, -0.065185546875, -0.01910400390625, -0.00860595703125, 0.0012912750244140625, -0.0277557373046875, 0.0203704833984375, -0.0011348724365234375, 0.037200927734375, -0.0027790069580078125, 0.0024261474609375, 0.00595855712890625, -0.0028781890869140625, -0.0182342529296875, -0.03741455078125, 0.034423828125, -0.030426025390625, -0.017608642578125, -0.031494140625, -0.04254150390625, 0.0543212890625, 0.045684814453125, 0.03753662109375, -0.01149749755859375, 0.04931640625, -0.015289306640625, -0.0089111328125, -0.0200958251953125, -0.015472412109375, 0.019317626953125, -0.0220794677734375, -0.0304718017578125, 0.007373809814453125, -0.0263671875, 0.015838623046875, 0.0241546630859375, -0.005352020263671875, -0.0096588134765625, 0.0025959014892578125, 0.0272369384765625, 0.0360107421875, 0.029754638671875, -0.0262298583984375, -0.0582275390625, -0.03839111328125, 0.0183868408203125, -0.01345062255859375, 0.021820068359375, 0.00006407499313354492, 0.0595703125, 0.02850341796875, 0.0289154052734375, 0.036590576171875, -0.029144287109375, 0.06353759765625, 0.040069580078125, -0.051239013671875, 0.050567626953125, 0.02392578125, -0.0213165283203125, 0.034637451171875, 0.00528717041015625, 0.01326751708984375, 0.011077880859375, -0.024017333984375, 0.0081634521484375, 0.034698486328125, 0.004974365234375, -0.006168365478515625, 0.0031108856201171875, 0.045684814453125, -0.04351806640625, -0.020172119140625, -0.019683837890625, -0.0174407958984375, -0.0408935546875, 0.01485443115234375, 0.0030193328857421875, 0.028656005859375, 0.025054931640625, 0.058502197265625, 0.0085601806640625, 0.01348876953125, 0.0016298294067382812, -0.03204345703125, 0.0009646415710449219, 0.002063751220703125, 0.041534423828125, -0.003326416015625, 0.0207672119140625, -0.012542724609375, -0.00891876220703125, -0.037628173828125, -0.0102386474609375, -0.03076171875, 0.0205535888671875, -0.03314208984375, -0.0185699462890625, 0.0252685546875, -0.00859832763671875, -0.0188751220703125, -0.050323486328125, -0.0266876220703125, 0.00264739990234375, -0.026275634765625, -0.047760009765625, -0.020782470703125, 0.0140380859375, 0.031280517578125, -0.019622802734375, -0.021331787109375, -0.00897979736328125, 0.0213165283203125, 0.01560211181640625, -0.01727294921875, 0.0107879638671875, -0.02960205078125, -0.0299072265625, 0.035552978515625, 0.00891876220703125, -0.020782470703125, -0.045989990234375, 0.0218353271484375, 0.005290985107421875, -0.0037746429443359375, -0.0264739990234375, -0.02679443359375, -0.034820556640625, 0.0198974609375, 0.01556396484375, -0.0201416015625, 0.03460693359375, -0.026031494140625, -0.046417236328125, 0.0050201416015625, 0.0184783935546875, -0.0018262863159179688, -0.00022232532501220703, -0.0141448974609375, 0.0182952880859375, 0.02264404296875, -0.0276947021484375, -0.048492431640625, 0.0158843994140625, -0.0000438690185546875, -0.01087188720703125, -0.03411865234375, 0.017852783203125, -0.0232086181640625, 0.0340576171875, -0.00960540771484375, 0.0006899833679199219, -0.00002765655517578125, -0.019500732421875, 0.0244140625, 0.0036983489990234375, -0.006221771240234375, 0.02386474609375, -0.07623291015625, -0.02410888671875, 0.00505828857421875, -0.0171051025390625, 0.015777587890625, 0.00365447998046875, -0.0467529296875, 0.00479888916015625, 0.01727294921875, 0.0009279251098632812, -0.0462646484375, -0.0277862548828125, 0.05987548828125, -0.039642333984375, -0.01108551025390625, -0.0026912689208984375, 0.033203125, 0.00836181640625, -0.037261962890625, 0.006130218505859375, -0.00777435302734375, -0.03741455078125, -0.003978729248046875, -0.009857177734375, 0.01605224609375, -0.04034423828125, -0.023345947265625, -0.0139007568359375, 0.040740966796875, -0.0175628662109375, 0.022003173828125, 0.02386474609375, 0.02960205078125, 0.0017042160034179688, 0.0908203125, -0.00041031837463378906, 0.03875732421875, 0.01654052734375, 0.0416259765625, -0.031951904296875, -0.002574920654296875, 0.00835418701171875, -0.0726318359375, 0.0134429931640625, 0.0052337646484375, 0.0304412841796875, -0.0216522216796875, 0.022308349609375, 0.033935546875, 0.0191802978515625, 0.012847900390625 ]
1a1147d95f46d0a44b854c25611c187e75273f8c
Wordpress Stackexchange Q: Is checking whether the blog is installed necessary? My Wordpress site has become kinda slow and unresponsive, so I am trying what can I do to speed it up by eliminating unnecessary database queries and other things. I stumbled across suggestion found at https://yoast.com/wordpress-performance-optimization where it says that the function is_blog_installed is useless on running site. https://codex.wordpress.org/Function_Reference/is_blog_installed The comments on article are from 2009. Can we safely remove it without breaking anything now or in the future? 1. open up wp-includes/functions.php 2. find the function is_blog_installed() 3. add return true; as the first line of the function A: You Could, but I would never ever mess with core files. Apart from that I do not believe that the is_blog_installed() function causes your site to be unresponsive. Try disabling all plugins first, and set the theme to one of the default themes. Updating your site, plugins and themes could help you as well. Try to narrow your problem down. I suspect it's either in a theme or plugin.
Q: Is checking whether the blog is installed necessary? My Wordpress site has become kinda slow and unresponsive, so I am trying what can I do to speed it up by eliminating unnecessary database queries and other things. I stumbled across suggestion found at https://yoast.com/wordpress-performance-optimization where it says that the function is_blog_installed is useless on running site. https://codex.wordpress.org/Function_Reference/is_blog_installed The comments on article are from 2009. Can we safely remove it without breaking anything now or in the future? 1. open up wp-includes/functions.php 2. find the function is_blog_installed() 3. add return true; as the first line of the function A: You Could, but I would never ever mess with core files. Apart from that I do not believe that the is_blog_installed() function causes your site to be unresponsive. Try disabling all plugins first, and set the theme to one of the default themes. Updating your site, plugins and themes could help you as well. Try to narrow your problem down. I suspect it's either in a theme or plugin.
wordpress
{ "language": "en", "length": 168, "provenance": "stackexchange_00019.jsonl.gz:462057", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213724" }
[ 0.00485992431640625, 0.0177459716796875, 0.01641845703125, 0.03802490234375, 0.0121002197265625, -0.01360321044921875, 0.04705810546875, -0.0697021484375, 0.0158843994140625, 0.0072479248046875, -0.022003173828125, 0.00855255126953125, -0.043304443359375, -0.013336181640625, -0.033172607421875, -0.045257568359375, 0.055023193359375, 0.01441192626953125, 0.05377197265625, 0.00438690185546875, 0.0193939208984375, 0.0501708984375, 0.02972412109375, 0.068359375, 0.004352569580078125, -0.021270751953125, 0.060302734375, -0.01543426513671875, 0.0007877349853515625, -0.01343536376953125, 0.01175689697265625, -0.00466156005859375, 0.0101318359375, 0.04443359375, -0.047119140625, -0.049591064453125, -0.022216796875, 0.0182952880859375, 0.0008955001831054688, 0.01091766357421875, -0.002223968505859375, -0.00232696533203125, -0.018798828125, 0.0249176025390625, -0.023895263671875, -0.053436279296875, 0.000007748603820800781, -0.033447265625, 0.021148681640625, -0.05706787109375, 0.01419830322265625, 0.01123809814453125, 0.037841796875, -0.0257415771484375, -0.0310211181640625, 0.016265869140625, 0.018096923828125, 0.048828125, 0.0179290771484375, -0.028106689453125, -0.052520751953125, 0.035369873046875, 0.01806640625, -0.00345611572265625, 0.029998779296875, 0.0021800994873046875, 0.01486968994140625, 0.049163818359375, -0.07489013671875, 0.01146697998046875, 0.03277587890625, -0.055084228515625, -0.006259918212890625, 0.0166168212890625, 0.003368377685546875, -0.0660400390625, 0.01319122314453125, -0.02984619140625, 0.0006008148193359375, 0.046356201171875, -0.0343017578125, 0.0197601318359375, 0.0125885009765625, -0.019805908203125, 0.0007305145263671875, 0.00628662109375, -0.0141754150390625, -0.004535675048828125, -0.029541015625, -0.05694580078125, -0.0220489501953125, -0.0144805908203125, -0.021728515625, -0.04119873046875, -0.046600341796875, -0.03228759765625, 0.044403076171875, 0.0653076171875, -0.0401611328125, -0.0212860107421875, -0.01377105712890625, -0.03472900390625, -0.0033702850341796875, -0.015594482421875, -0.0030956268310546875, 0.046173095703125, -0.04388427734375, -0.0251617431640625, 0.042083740234375, 0.038238525390625, 0.0117340087890625, -0.0189208984375, -0.043548583984375, -0.038330078125, -0.035614013671875, 0.05633544921875, -0.0245513916015625, -0.0267791748046875, -0.0025463104248046875, -0.01104736328125, 0.023284912109375, 0.036468505859375, -0.03875732421875, -0.0263671875, -0.004039764404296875, -0.0300140380859375, -0.0192108154296875, 0.016693115234375, -0.0361328125, 0.0173797607421875, -0.0154571533203125, 0.025543212890625, 0.01497650146484375, -0.005985260009765625, -0.030487060546875, -0.0200958251953125, 0.0010576248168945312, -0.006397247314453125, 0.005840301513671875, 0.000514984130859375, 0.0230560302734375, -0.059234619140625, -0.03729248046875, 0.022430419921875, 0.06170654296875, 0.0155487060546875, 0.024169921875, 0.007328033447265625, 0.027496337890625, 0.0064544677734375, 0.0231475830078125, 0.0132598876953125, 0.02618408203125, 0.00725555419921875, 0.00640106201171875, -0.03778076171875, 0.0172882080078125, -0.0296630859375, 0.00936126708984375, -0.044403076171875, 0.005573272705078125, -0.0012836456298828125, 0.023406982421875, -0.0032253265380859375, -0.0390625, 0.0110931396484375, -0.023223876953125, -0.0189056396484375, 0.0294647216796875, -0.0196380615234375, 0.0294342041015625, -0.01552581787109375, 0.045654296875, 0.026885986328125, 0.0032176971435546875, 0.0243377685546875, 0.03973388671875, -0.001613616943359375, 0.025604248046875, 0.040924072265625, -0.0262451171875, -0.0204925537109375, 0.07135009765625, -0.05462646484375, -0.04901123046875, 0.0477294921875, 0.018798828125, 0.064453125, 0.0011281967163085938, 0.00823211669921875, 0.03460693359375, 0.015350341796875, -0.007106781005859375, 0.02081298828125, -0.0146331787109375, -0.03509521484375, -0.002384185791015625, 0.004261016845703125, -0.02044677734375, -0.0052947998046875, 0.0258941650390625, 0.0228424072265625, -0.036407470703125, -0.029266357421875, -0.0885009765625, -0.01058197021484375, -0.0092620849609375, 0.0303955078125, -0.0192108154296875, 0.0204315185546875, 0.018768310546875, 0.017425537109375, -0.01983642578125, -0.01317596435546875, -0.00867462158203125, -0.003810882568359375, -0.0244598388671875, 0.016357421875, -0.0254058837890625, 0.0364990234375, -0.06689453125, -0.0195159912109375, -0.0653076171875, -0.012451171875, 0.031219482421875, 0.01067352294921875, -0.004215240478515625, -0.002197265625, 0.012451171875, 0.0300750732421875, -0.0224761962890625, 0.01068115234375, 0.0263214111328125, 0.0186004638671875, 0.0005831718444824219, -0.0017108917236328125, 0.01433563232421875, -0.0838623046875, 0.0172271728515625, 0.051177978515625, 0.02532958984375, 0.0305633544921875, -0.00997161865234375, -0.0031280517578125, 0.05120849609375, -0.03973388671875, -0.0012350082397460938, 0.0077972412109375, 0.0294647216796875, 0.07427978515625, -0.0289306640625, 0.00959014892578125, 0.0152435302734375, 0.004932403564453125, 0.0031490325927734375, 0.02716064453125, -0.0013027191162109375, 0.0139617919921875, 0.008026123046875, 0.0014162063598632812, -0.0134735107421875, 0.057281494140625, -0.004543304443359375, 0.0110626220703125, 0.028533935546875, 0.041473388671875, 0.0361328125, 0.0312042236328125, -0.007427215576171875, 0.01068878173828125, -0.0151824951171875, -0.0102691650390625, -0.0016241073608398438, 0.019561767578125, 0.038330078125, -0.01377105712890625, -0.0183563232421875, -0.0198822021484375, -0.0142669677734375, -0.00812530517578125, -0.0207977294921875, 0.0139312744140625, -0.039154052734375, -0.006622314453125, -0.01142120361328125, -0.0322265625, 0.01079559326171875, 0.01483917236328125, -0.01503753662109375, -0.0158233642578125, 0.0182037353515625, -0.0107879638671875, -0.04144287109375, 0.052490234375, -0.038726806640625, -0.0291900634765625, -0.0010061264038085938, -0.044281005859375, 0.042266845703125, -0.002437591552734375, 0.027740478515625, 0.083251953125, 0.025299072265625, 0.01406097412109375, 0.0030918121337890625, -0.0020580291748046875, -0.005855560302734375, 0.00540924072265625, -0.006061553955078125, 0.025726318359375, -0.0821533203125, 0.0191650390625, 0.008270263671875, 0.0036678314208984375, 0.004718780517578125, -0.037109375, -0.00545501708984375, -0.01525115966796875, -0.0928955078125, -0.08648681640625, -0.0682373046875, -0.034912109375, -0.01000213623046875, 0.0057220458984375, -0.0003521442413330078, 0.0174102783203125, -0.0054931640625, 0.01424407958984375, -0.018280029296875, -0.01168060302734375, -0.03143310546875, -0.06427001953125, -0.07269287109375, -0.0196685791015625, 0.0029754638671875, 0.0029144287109375, 0.0001614093780517578, 0.10919189453125, 0.01003265380859375, -0.091552734375, 0.0001628398895263672, -0.037841796875, -0.0012140274047851562, 0.05645751953125, 0.00016963481903076172, 0.0070953369140625, -0.021453857421875, 0.017181396484375, -0.03509521484375, -0.01255035400390625, -0.01027679443359375, -0.0300140380859375, -0.0064849853515625, -0.01413726806640625, 0.0308380126953125, 0.01497650146484375, -0.00981903076171875, 0.00530242919921875, 0.01198577880859375, -0.061981201171875, -0.0009684562683105469, 0.00878143310546875, -0.023834228515625, -0.010498046875, 0.0205841064453125, -0.02056884765625, 0.0004439353942871094, -0.035369873046875, 0.0028553009033203125, -0.009429931640625, 0.006015777587890625, -0.0125274658203125, -0.015869140625, 0.0022449493408203125, 0.02655029296875, -0.005069732666015625, 0.0079345703125, -0.031646728515625, -0.006320953369140625, -0.01309967041015625, -0.0246429443359375, -0.032745361328125, -0.01073455810546875, -0.0240631103515625, -0.0243072509765625, 0.00774383544921875, -0.01303863525390625, 0.041748046875, -0.0234375, -0.0178985595703125, 0.004261016845703125, 0.08056640625, -0.0258636474609375, 0.0047760009765625, 0.01186370849609375, 0.00812530517578125, -0.0413818359375, 0.0010128021240234375, -0.066650390625, 0.005977630615234375, -0.0284423828125, -0.0094451904296875, -0.0185089111328125, -0.000942230224609375, -0.016937255859375, 0.0199127197265625, -0.003314971923828125, -0.029937744140625, 0.0255126953125, -0.048187255859375, 0.022552490234375, 0.018218994140625, -0.01087188720703125, 0.00614166259765625, -0.01042938232421875, -0.0400390625, -0.0611572265625, -0.009490966796875, -0.0080718994140625, 0.0269775390625, -0.01114654541015625, 0.0257568359375, -0.020904541015625, 0.013092041015625, 0.0032444000244140625, -0.0016546249389648438, 0.0170135498046875, -0.0003540515899658203, -0.0224456787109375, -0.00966644287109375, 0.006855010986328125, -0.028564453125, 0.00017118453979492188, 0.0167694091796875, -0.0300445556640625, 0.0164031982421875, 0.0120391845703125, 0.01419830322265625, 0.08465576171875, -0.035919189453125, 0.006832122802734375, -0.01274871826171875, -0.003726959228515625, 0.039031982421875, -0.04986572265625, 0.0406494140625, -0.0007867813110351562, -0.01226043701171875, 0.051910400390625, -0.0460205078125, 0.01383209228515625, 0.0038204193115234375, 0.09246826171875, 0.01271820068359375, -0.0015268325805664062, 0.00496673583984375, 0.009857177734375, 0.0188446044921875, 0.018585205078125, 0.060028076171875, 0.036529541015625, 0.00896453857421875, -0.02838134765625, 0.02056884765625, -0.0080108642578125, 0.0272064208984375, -0.00046896934509277344, 0.0228424072265625, -0.00597381591796875, -0.01174163818359375, 0.02020263671875, 0.01026153564453125, 0.0391845703125, 0.0258636474609375, -0.03936767578125, 0.043182373046875, 0.033172607421875, -0.027130126953125, 0.003955841064453125, -0.004558563232421875, -0.0340576171875, 0.0273895263671875, 0.0128631591796875, -0.035125732421875, -0.0105743408203125, 0.0016145706176757812, -0.01092529296875, -0.0005078315734863281, -0.00807952880859375, 0.052459716796875, 0.0301666259765625, 0.0183563232421875, 0.00974273681640625, 0.034942626953125, -0.01019287109375, -0.00434112548828125, -0.00304412841796875, 0.0439453125, -0.0179901123046875, -0.066162109375, -0.0249786376953125, -0.0029296875, 0.0180511474609375, 0.016204833984375, -0.0133056640625, 0.04815673828125, 0.01904296875, -0.03076171875, -0.02008056640625, -0.057769775390625, -0.01800537109375, -0.05767822265625, -0.0396728515625, -0.033935546875, -0.0159454345703125, 0.031585693359375, -0.0143890380859375, -0.053436279296875, 0.017852783203125, -0.0004608631134033203, 0.0283660888671875, 0.07025146484375, 0.006565093994140625, 0.026153564453125, 0.0016679763793945312, -0.028106689453125, -0.00891876220703125, 0.031646728515625, -0.030364990234375, 0.03204345703125, -0.0105133056640625, -0.0019283294677734375, -0.0189971923828125, -0.03546142578125, 0.045745849609375, -0.0208892822265625, -0.0185699462890625, 0.052276611328125, -0.0069732666015625, -0.0462646484375, -0.048797607421875, -0.0152130126953125, 0.055816650390625, -0.011871337890625, -0.0156707763671875, 0.0030460357666015625, -0.041717529296875, 0.0015745162963867188, 0.020416259765625, -0.03741455078125, 0.01206207275390625, 0.01165008544921875, 0.00499725341796875, -0.01123046875, -0.01080322265625, 0.0164642333984375, -0.00821685791015625, -0.020294189453125, 0.0008606910705566406, 0.0258331298828125, 0.0002760887145996094, 0.031219482421875, -0.034088134765625, -0.01409912109375, -0.0010881423950195312, 0.011199951171875, 0.0328369140625, 0.01392364501953125, -0.06219482421875, -0.0221405029296875, -0.06256103515625, -0.042388916015625, -0.0789794921875, -0.03912353515625, -0.059783935546875, 0.032928466796875, 0.034698486328125, 0.0037631988525390625, 0.0175933837890625, -0.0097808837890625, 0.0018682479858398438, 0.030242919921875, 0.01236724853515625, 0.0214080810546875, -0.0019683837890625, -0.01611328125, 0.037353515625, 0.006519317626953125, 0.039703369140625, 0.0203704833984375, 0.0010156631469726562, -0.046417236328125, 0.0160980224609375, 0.0025997161865234375, -0.01314544677734375, -0.0227813720703125, -0.0024013519287109375, -0.046600341796875, 0.0021209716796875, -0.0174102783203125, 0.019378662109375, 0.0244903564453125, 0.007282257080078125, -0.0018587112426757812, -0.060211181640625, 0.0267791748046875, 0.03314208984375, 0.0081634521484375, -0.03277587890625, -0.032928466796875, -0.0038127899169921875, 0.00774383544921875, 0.0279693603515625, 0.0012178421020507812, -0.0026302337646484375, -0.00786590576171875, -0.053070068359375, 0.0738525390625, 0.06658935546875, -0.0132598876953125, 0.031097412109375, 0.0132293701171875, -0.00417327880859375, -0.01265716552734375, 0.01153564453125, -0.0028667449951171875, -0.0239410400390625, 0.0182647705078125, -0.00240325927734375, -0.004360198974609375, 0.01076507568359375, -0.0249481201171875, 0.02294921875, 0.042449951171875, 0.053192138671875, -0.022430419921875, -0.009063720703125, -0.0122528076171875, -0.049652099609375, 0.0517578125, -0.042755126953125, -0.019683837890625, -0.06671142578125, 0.09100341796875, -0.0015249252319335938, -0.0216064453125, 0.024383544921875, -0.028411865234375, 0.0007100105285644531, -0.025665283203125, 0.05419921875, 0.025970458984375, -0.005603790283203125, -0.00208282470703125, 0.01313018798828125, -0.0066680908203125, -0.0057830810546875, 0.0380859375, -0.0017747879028320312, -0.0280914306640625, -0.057586669921875, 0.0032215118408203125, -0.0021800994873046875, -0.030242919921875, 0.0106048583984375, -0.00511932373046875, 0.0089569091796875, 0.0535888671875, -0.022308349609375, 0.01708984375, 0.044219970703125, -0.037994384765625, -0.0232391357421875, -0.0020580291748046875, 0.05712890625, 0.0185089111328125, -0.03863525390625, 0.0301361083984375, -0.03265380859375, -0.04351806640625, -0.0016050338745117188, -0.04278564453125, 0.027099609375, -0.00890350341796875, -0.00942230224609375, 0.04052734375, 0.023223876953125, -0.0221405029296875, -0.05010986328125, 0.07855224609375, -0.036712646484375, 0.01329803466796875, 0.0027103424072265625, 0.045928955078125, -0.042877197265625, -0.043121337890625, -0.0259246826171875, 0.0948486328125, 0.0104217529296875, -0.0247955322265625, -0.004375457763671875, 0.051422119140625, -0.0179595947265625, 0.03955078125, -0.00858306884765625, -0.0034637451171875, 0.02349853515625, 0.040435791015625, -0.00039196014404296875, 0.0036487579345703125, -0.00379180908203125, 0.0246734619140625, -0.0026397705078125, -0.0015211105346679688, -0.0208740234375, -0.016387939453125, 0.010498046875, 0.060394287109375, 0.033050537109375, 0.013885498046875, -0.035003662109375, 0.0192718505859375, 0.026641845703125, -0.0347900390625, 0.0178680419921875, 0.0101776123046875, -0.039825439453125, -0.0166473388671875, -0.007022857666015625, -0.01245880126953125, -0.03753662109375, 0.0101776123046875, -0.022613525390625, -0.033294677734375, 0.01548004150390625, -0.006694793701171875, 0.030792236328125, 0.01386260986328125, 0.028045654296875, -0.01763916015625, 0.0256805419921875, -0.0185699462890625, 0.056915283203125, -0.0230865478515625, -0.004573822021484375, -0.02294921875, 0.0191802978515625, -0.036590576171875, -0.014495849609375, -0.018280029296875, 0.048492431640625, -0.039215087890625, -0.00959014892578125, 0.03564453125, 0.0196685791015625, 0.00958251953125, -0.0166015625, 0.0281524658203125, 0.004413604736328125, -0.0030727386474609375, 0.01361846923828125, 0.00832366943359375, -0.014404296875, -0.032562255859375, -0.056793212890625, -0.06402587890625, 0.02447509765625, 0.01020050048828125, -0.0199432373046875, 0.000865936279296875, 0.012786865234375, -0.0142974853515625, -0.00597381591796875, 0.010955810546875, 0.0263671875, 0.0220489501953125, 0.02587890625, -0.01263427734375, -0.0126190185546875, 0.0179595947265625, -0.01727294921875, 0.029998779296875, -0.0445556640625, 0.02447509765625, -0.0340576171875, 0.0400390625, -0.0256500244140625, 0.040008544921875, -0.06988525390625, -0.04248046875, 0.00937652587890625, 0.06280517578125, 0.01447296142578125, 0.0297393798828125, 0.025360107421875, 0.054473876953125, 0.01416015625, -0.0025234222412109375, 0.09173583984375, -0.0040130615234375, -0.0206451416015625, -0.005611419677734375, 0.01247406005859375, 0.0333251953125, 0.00238037109375, -0.01084136962890625, 0.044464111328125, 0.04302978515625, -0.0303955078125, -0.003078460693359375, 0.01419830322265625, -0.0222930908203125, 0.051483154296875, 0.032989501953125, 0.03814697265625, 0.02520751953125, -0.0755615234375, 0.00511932373046875, -0.022796630859375, -0.034088134765625, -0.006435394287109375, 0.0236663818359375, -0.00943756103515625, 0.0094757080078125, 0.026580810546875, 0.0015764236450195312, 0.020538330078125, 0.0015687942504882812, -0.0171051025390625, 0.02947998046875, 0.06085205078125, 0.0129547119140625, -0.030731201171875, -0.0293731689453125, -0.01323699951171875, 0.0447998046875, -0.005725860595703125, 0.08270263671875, -0.0311737060546875, 0.006256103515625, 0.01161956787109375, -0.03631591796875, 0.03106689453125, 0.00806427001953125, -0.04083251953125, -0.005290985107421875, 0.01421356201171875, -0.005733489990234375, -0.076904296875, 0.012603759765625, 0.0211944580078125, 0.0050811767578125, 0.051788330078125, -0.060699462890625, 0.017608642578125, -0.01517486572265625, -0.0194244384765625, -0.045623779296875, -0.0679931640625, -0.0175323486328125, 0.0138092041015625, -0.0159149169921875, -0.0301055908203125, -0.006649017333984375, -0.007720947265625, 0.0303955078125, -0.036712646484375, 0.02081298828125, 0.01416015625, 0.0018100738525390625, 0.007511138916015625, 0.060150146484375, -0.0095062255859375, -0.034515380859375, -0.0269317626953125, 0.0049591064453125, 0.02020263671875, -0.030853271484375, -0.00384521484375, -0.00952911376953125, -0.01446533203125, 0.031585693359375, 0.05438232421875, -0.0160064697265625, 0.01145172119140625, -0.00022614002227783203, 0.004825592041015625, -0.007595062255859375, 0.036224365234375, 0.00466156005859375, 0.023895263671875, -0.040130615234375, -0.01177215576171875, -0.0007500648498535156, -0.049835205078125, -0.00853729248046875, -0.0022106170654296875, 0.062225341796875, -0.01004791259765625, -0.0110015869140625, 0.0010852813720703125, -0.05279541015625, 0.03192138671875, 0.01397705078125, 0.0260772705078125, 0.0031375885009765625, 0.09088134765625, -0.0023708343505859375, -0.03497314453125, 0.0076446533203125, 0.04278564453125, -0.01277923583984375, 0.04095458984375, 0.03857421875, -0.046539306640625, 0.0182037353515625, 0.0225830078125, 0.03436279296875, 0.066650390625, 0.0081787109375, -0.01441192626953125, 0.0313720703125, -0.019073486328125, -0.0116119384765625, -0.07781982421875, 0.01023101806640625, -0.096435546875, -0.000011265277862548828, -0.0589599609375, 0.0250701904296875, 0.020721435546875, -0.036376953125, -0.0540771484375, 0.0479736328125, -0.01995849609375, -0.031494140625, -0.099609375, 0.0079803466796875, -0.006786346435546875, 0.03228759765625, -0.044036865234375, 0.0007004737854003906, -0.01812744140625, 0.0718994140625, 0.00887298583984375, -0.00402069091796875, 0.0452880859375, -0.0020084381103515625, -0.00714111328125, 0.0005230903625488281, -0.0117340087890625, -0.0088043212890625, 0.020660400390625, -0.01230621337890625, 0.046356201171875, 0.06610107421875, 0.000823974609375, 0.0166168212890625, 0.01360321044921875, -0.040069580078125, -0.024139404296875, -0.0380859375, 0.006252288818359375, 0.0222320556640625, 0.039886474609375, 0.0589599609375, 0.01116180419921875, -0.04498291015625, -0.06005859375, -0.043060302734375, -0.016265869140625, -0.0079345703125, 0.0225372314453125, -0.07025146484375, 0.03253173828125, 0.0199127197265625, -0.0267486572265625, 0.01184844970703125, -0.00983428955078125, -0.046875, 0.006069183349609375, -0.021240234375, 0.0029125213623046875, -0.038543701171875, -0.0273590087890625, -0.01508331298828125, 0.01291656494140625, 0.0208587646484375, 0.014739990234375, 0.0119171142578125, 0.005279541015625, 0.10009765625, -0.0140838623046875, 0.04254150390625, -0.0689697265625, -0.01397705078125, -0.0100555419921875, 0.05035400390625, -0.0189361572265625, 0.0112152099609375, 0.01279449462890625, 0.006740570068359375, -0.0164794921875, -0.006420135498046875, 0.0100250244140625, -0.005157470703125, -0.048828125, 0.07354736328125, -0.01453399658203125, 0.02496337890625, -0.0194854736328125, 0.0288238525390625, 0.0252838134765625, -0.0164794921875, 0.06317138671875, -0.007404327392578125, 0.0004627704620361328, -0.01378631591796875, -0.0221099853515625, -0.03375244140625, 0.0063018798828125, -0.07904052734375, -0.012542724609375, 0.020965576171875 ]
ee5bf33bca3ad4a02b711254189726ecd86c787e
Wordpress Stackexchange Q: Using Travis CI to run unit tests and running phpunit locally Is there a difference between Travis CI running my PHPUnit tests and me using the WP-CLI to generate unit test files and running phpunit locally? I'm wondering if the duplicate effort is necessary or unnecessary. A: Travis is a hosted continuous integration service. Travis takes the files you've committed to your Github repo, and runs PHPUnit against them. Notably different than running phpunit in your local environment is that running tests on Travis requires at least three steps: * *Commit to Git. *Push to Github. *Wait for Travis to create and run a build. In the long term, it will be much faster for you to first run your tests locally before you commit, to reduce the amount of time you have to wait to see if your tests fail.
Q: Using Travis CI to run unit tests and running phpunit locally Is there a difference between Travis CI running my PHPUnit tests and me using the WP-CLI to generate unit test files and running phpunit locally? I'm wondering if the duplicate effort is necessary or unnecessary. A: Travis is a hosted continuous integration service. Travis takes the files you've committed to your Github repo, and runs PHPUnit against them. Notably different than running phpunit in your local environment is that running tests on Travis requires at least three steps: * *Commit to Git. *Push to Github. *Wait for Travis to create and run a build. In the long term, it will be much faster for you to first run your tests locally before you commit, to reduce the amount of time you have to wait to see if your tests fail. A: Travis CI is great for alerting you to problems, like errors or failing tests. However, it isn't very useful for debugging. If your project is small and the code is simple, you probably don't need to run the tests locally. But for most projects with a fair amount of code, finding the root cause of failing tests often takes a great deal of debugging. Being able to run the tests and debug the problem on your local machine (possibly using xdebug or the like) is extremely helpful. Also, as Daniel Bachhuber pointed out, having the tests installed locally allows you to run them without having to send your code off to Travis and wait for the build to run. Running local tests is much quicker, and allows you to test your code as you go along, without having to commit it before finding out if it works. For these reasons I think you will find that you'll want to install the tests locally.
wordpress
{ "language": "en", "length": 306, "provenance": "stackexchange_00019.jsonl.gz:462063", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213740" }
[ 0.036865234375, -0.02978515625, -0.0031757354736328125, -0.08355712890625, -0.0199127197265625, -0.004322052001953125, -0.03582763671875, 0.03436279296875, -0.01151275634765625, -0.0101470947265625, -0.03643798828125, 0.036468505859375, -0.08050537109375, -0.018890380859375, 0.0178375244140625, -0.02783203125, 0.027740478515625, -0.028717041015625, -0.0286865234375, -0.034515380859375, 0.0084381103515625, -0.0208282470703125, -0.0179595947265625, 0.11993408203125, 0.008270263671875, 0.04376220703125, -0.005832672119140625, 0.0249786376953125, -0.02105712890625, -0.000888824462890625, 0.01346588134765625, -0.0101470947265625, 0.031463623046875, 0.0513916015625, -0.09661865234375, -0.0367431640625, -0.0004916191101074219, 0.0178375244140625, -0.0306396484375, 0.0291748046875, 0.0267486572265625, -0.01238250732421875, -0.007904052734375, -0.0256195068359375, -0.0013523101806640625, -0.031524658203125, 0.02398681640625, -0.033477783203125, 0.038177490234375, 0.0015630722045898438, -0.01276397705078125, 0.0305328369140625, -0.01251983642578125, -0.01346588134765625, 0.0031948089599609375, 0.025787353515625, 0.0135040283203125, 0.0032901763916015625, 0.0137786865234375, -0.0176239013671875, -0.0244293212890625, 0.0234222412109375, 0.0311431884765625, 0.0243682861328125, 0.0008382797241210938, 0.0135345458984375, 0.01064300537109375, 0.01031494140625, -0.006343841552734375, -0.0005278587341308594, 0.00521087646484375, -0.01971435546875, 0.0028858184814453125, 0.0003085136413574219, -0.00525665283203125, -0.045562744140625, 0.033233642578125, -0.02239990234375, -0.00811004638671875, 0.0252838134765625, 0.01215362548828125, -0.01279449462890625, -0.030548095703125, 0.002044677734375, -0.0013427734375, 0.0312347412109375, -0.00431060791015625, -0.0238037109375, -0.031951904296875, 0.0024662017822265625, -0.0270538330078125, -0.023529052734375, -0.031402587890625, 0.03460693359375, 0.0011377334594726562, 0.008026123046875, -0.0214385986328125, -0.03729248046875, -0.015960693359375, -0.01238250732421875, 0.040191650390625, -0.041839599609375, 0.0235748291015625, 0.003932952880859375, 0.0157012939453125, 0.09283447265625, -0.00492095947265625, 0.0030975341796875, 0.024078369140625, -0.0223846435546875, 0.031829833984375, -0.0311279296875, -0.0272674560546875, -0.10089111328125, 0.057281494140625, 0.0550537109375, -0.0242462158203125, 0.039306640625, 0.033782958984375, -0.033416748046875, -0.004852294921875, -0.0020923614501953125, 0.03717041015625, 0.021270751953125, 0.026580810546875, 0.034881591796875, -0.0139617919921875, -0.036102294921875, 0.0040740966796875, 0.0190582275390625, -0.00475311279296875, 0.003063201904296875, 0.023040771484375, 0.0218353271484375, -0.0090484619140625, -0.0105133056640625, 0.00841522216796875, 0.005298614501953125, 0.00567626953125, 0.056182861328125, -0.042327880859375, -0.06304931640625, 0.020294189453125, -0.0025634765625, -0.028289794921875, 0.030792236328125, 0.0213165283203125, -0.00608062744140625, -0.0224151611328125, -0.0110931396484375, -0.055206298828125, -0.01641845703125, -0.019287109375, 0.00693511962890625, 0.04937744140625, -0.0078887939453125, -0.030731201171875, 0.0150299072265625, 0.050048828125, 0.04193115234375, 0.01055908203125, -0.006336212158203125, -0.033477783203125, -0.05419921875, -0.040618896484375, 0.0031452178955078125, 0.0116424560546875, 0.0095672607421875, 0.0124359130859375, -0.027252197265625, -0.01213836669921875, 0.02386474609375, 0.058441162109375, 0.0101776123046875, 0.00894927978515625, 0.026092529296875, 0.0219573974609375, 0.0238189697265625, 0.040283203125, -0.03741455078125, -0.04022216796875, -0.0262908935546875, 0.12286376953125, -0.06146240234375, 0.004138946533203125, -0.0574951171875, 0.020477294921875, 0.0095672607421875, 0.0210418701171875, 0.039093017578125, -0.01412200927734375, -0.03216552734375, -0.0187835693359375, 0.0229034423828125, 0.0291748046875, 0.006580352783203125, -0.0552978515625, 0.00452423095703125, -0.0037136077880859375, -0.05029296875, 0.049346923828125, -0.0252838134765625, 0.01995849609375, -0.03546142578125, -0.1004638671875, -0.00039696693420410156, -0.0426025390625, 0.0272064208984375, -0.00296783447265625, 0.0039005279541015625, 0.00447845458984375, 0.015472412109375, 0.009307861328125, -0.06475830078125, -0.029144287109375, 0.007572174072265625, -0.0266571044921875, -0.0225372314453125, 0.00733184814453125, -0.0301971435546875, 0.0180511474609375, 0.0262603759765625, -0.0149078369140625, 0.0011434555053710938, -0.0101776123046875, 0.020416259765625, -0.033660888671875, 0.0114288330078125, 0.0122833251953125, -0.0035552978515625, 0.0701904296875, 0.0165252685546875, 0.031280517578125, 0.0443115234375, -0.021942138671875, -0.0078277587890625, 0.01556396484375, -0.0189666748046875, 0.0105743408203125, 0.0264739990234375, 0.028778076171875, 0.0169525146484375, -0.00998687744140625, -0.02642822265625, 0.051422119140625, 0.0196990966796875, 0.03375244140625, -0.04638671875, 0.0014810562133789062, 0.01322174072265625, -0.03955078125, -0.025787353515625, 0.047210693359375, -0.0075836181640625, -0.0307159423828125, 0.0439453125, -0.0229644775390625, -0.0006699562072753906, -0.024169921875, 0.0012998580932617188, 0.00632476806640625, -0.045196533203125, -0.0176544189453125, -0.020660400390625, 0.01409149169921875, -0.043731689453125, 0.01055145263671875, 0.0034656524658203125, -0.0023193359375, -0.030426025390625, 0.020599365234375, 0.0079498291015625, -0.0010309219360351562, 0.0537109375, 0.023590087890625, 0.0281219482421875, -0.01142120361328125, -0.036651611328125, -0.0033931732177734375, 0.0307464599609375, -0.0257415771484375, -0.01012420654296875, 0.0243682861328125, -0.01334381103515625, -0.014892578125, -0.04388427734375, 0.04736328125, 0.008026123046875, -0.020355224609375, -0.005741119384765625, 0.0276031494140625, -0.004070281982421875, -0.0290374755859375, 0.0172882080078125, -0.00146484375, -0.0256805419921875, 0.041046142578125, 0.0157623291015625, -0.0050506591796875, -0.0012845993041992188, -0.003009796142578125, 0.024627685546875, -0.005977630615234375, -0.0185546875, 0.017425537109375, -0.02490234375, 0.02227783203125, 0.01242828369140625, 0.01180267333984375, 0.0100250244140625, -0.04669189453125, 0.043914794921875, 0.0175933837890625, 0.03143310546875, -0.0190887451171875, -0.042938232421875, -0.0277099609375, 0.0111083984375, -0.056976318359375, -0.045684814453125, -0.0253143310546875, 0.01529693603515625, 0.038818359375, 0.01168060302734375, 0.030364990234375, -0.04412841796875, 0.0173187255859375, 0.0167999267578125, -0.057464599609375, -0.002643585205078125, 0.0169525146484375, -0.0312042236328125, -0.0236663818359375, 0.0085906982421875, 0.0024662017822265625, -0.0001747608184814453, 0.0282440185546875, 0.01235198974609375, 0.00498199462890625, 0.01280975341796875, 0.042724609375, 0.043487548828125, -0.0247650146484375, -0.0179595947265625, 0.03302001953125, -0.04168701171875, -0.027984619140625, 0.0055694580078125, 0.0225982666015625, 0.0139007568359375, -0.015777587890625, -0.006702423095703125, 0.0178375244140625, -0.028472900390625, 0.0232696533203125, 0.01438140869140625, -0.034698486328125, -0.0204925537109375, 0.0210418701171875, -0.050689697265625, -0.019378662109375, -0.0121307373046875, -0.0300445556640625, 0.0150146484375, 0.006130218505859375, 0.0074615478515625, -0.0250091552734375, 0.036529541015625, -0.004650115966796875, 0.004833221435546875, 0.01354217529296875, 0.010101318359375, -0.0078125, -0.0266876220703125, -0.0297698974609375, 0.0008563995361328125, 0.0496826171875, -0.005184173583984375, -0.019989013671875, 0.020111083984375, -0.007366180419921875, -0.0063018798828125, -0.0133819580078125, -0.029754638671875, 0.042205810546875, 0.0028057098388671875, -0.00385284423828125, 0.056304931640625, -0.00493621826171875, 0.0061187744140625, -0.0325927734375, 0.0029125213623046875, -0.07623291015625, -0.0084075927734375, 0.0203399658203125, 0.005733489990234375, -0.036895751953125, 0.0028839111328125, -0.088134765625, -0.01006317138671875, 0.0195159912109375, -0.0003616809844970703, -0.0186920166015625, 0.00798797607421875, -0.01340484619140625, -0.0208282470703125, 0.00441741943359375, -0.0156707763671875, 0.017333984375, -0.0233154296875, 0.038177490234375, -0.01093292236328125, 0.0154571533203125, -0.0224761962890625, 0.01082611083984375, -0.060028076171875, -0.07733154296875, -0.0020771026611328125, -0.048492431640625, 0.053375244140625, -0.0034637451171875, 0.03558349609375, -0.037200927734375, 0.038909912109375, 0.01422882080078125, 0.0134735107421875, 0.00882720947265625, -0.0167694091796875, 0.0206146240234375, 0.022003173828125, 0.0111846923828125, -0.0173187255859375, 0.0062103271484375, -0.0209503173828125, -0.057220458984375, 0.029937744140625, -0.00815582275390625, 0.050323486328125, 0.0211639404296875, -0.017120361328125, -0.039581298828125, -0.00726318359375, -0.019195556640625, 0.01947021484375, -0.0157318115234375, -0.0037517547607421875, -0.01113128662109375, -0.052520751953125, 0.036712646484375, 0.0382080078125, -0.0197906494140625, -0.0163726806640625, 0.0281219482421875, 0.0235748291015625, -0.0367431640625, 0.01458740234375, -0.02874755859375, 0.00910186767578125, 0.02056884765625, -0.0013303756713867188, -0.050689697265625, -0.0391845703125, 0.07122802734375, -0.01268768310546875, 0.04302978515625, 0.0170135498046875, -0.007564544677734375, 0.00865936279296875, -0.0304718017578125, 0.02972412109375, 0.03857421875, -0.07232666015625, 0.0247039794921875, 0.003604888916015625, -0.0033245086669921875, 0.0260467529296875, -0.0026397705078125, -0.040985107421875, 0.035980224609375, 0.0213165283203125, -0.04827880859375, 0.025054931640625, -0.0703125, 0.00681304931640625, -0.00363922119140625, 0.004665374755859375, 0.0043182373046875, -0.00934600830078125, 0.0303497314453125, 0.024749755859375, 0.01076507568359375, -0.005069732666015625, 0.01351165771484375, 0.07470703125, 0.0189208984375, -0.00009882450103759766, -0.0014190673828125, 0.07025146484375, 0.0129852294921875, -0.025054931640625, -0.0235595703125, 0.0194854736328125, 0.035980224609375, -0.006618499755859375, 0.023895263671875, 0.01020050048828125, -0.03741455078125, 0.0006127357482910156, 0.00899505615234375, 0.01236724853515625, -0.045989990234375, -0.01751708984375, -0.0138397216796875, -0.0012159347534179688, -0.0205841064453125, 0.07568359375, -0.026092529296875, -0.02716064453125, 0.0192108154296875, -0.0151519775390625, 0.045196533203125, 0.025909423828125, -0.007244110107421875, 0.01259613037109375, 0.003009796142578125, 0.013916015625, -0.06982421875, -0.0034332275390625, -0.01288604736328125, -0.0282440185546875, 0.0283966064453125, -0.005794525146484375, 0.006496429443359375, 0.0031032562255859375, 0.01152801513671875, 0.051025390625, -0.0450439453125, 0.006145477294921875, 0.05169677734375, 0.039703369140625, -0.037384033203125, -0.06402587890625, -0.0007729530334472656, 0.08013916015625, -0.005687713623046875, 0.020050048828125, -0.020599365234375, 0.0304107666015625, 0.016448974609375, -0.0091400146484375, -0.008819580078125, -0.005565643310546875, -0.0224151611328125, -0.03240966796875, -0.005870819091796875, 0.0274658203125, 0.0283660888671875, -0.038177490234375, -0.02801513671875, 0.038787841796875, -0.04681396484375, -0.0023212432861328125, -0.0184326171875, 0.031219482421875, -0.0655517578125, 0.0250701904296875, 0.0157623291015625, 0.0379638671875, -0.0460205078125, 0.0035037994384765625, -0.0384521484375, -0.016693115234375, -0.0340576171875, -0.03289794921875, -0.046234130859375, 0.01354217529296875, 0.01126861572265625, -0.011322021484375, 0.01873779296875, 0.00811767578125, -0.024871826171875, 0.056610107421875, 0.0198822021484375, 0.026641845703125, -0.0216217041015625, 0.038909912109375, -0.0207977294921875, 0.033477783203125, -0.01200103759765625, -0.006351470947265625, -0.0028514862060546875, -0.0040130615234375, 0.009857177734375, 0.006458282470703125, -0.01451873779296875, -0.044158935546875, 0.02789306640625, 0.005584716796875, 0.076416015625, -0.0019626617431640625, -0.059478759765625, 0.01444244384765625, -0.0135650634765625, -0.0090179443359375, 0.0858154296875, 0.090087890625, 0.0200958251953125, -0.017059326171875, 0.0127716064453125, 0.00875091552734375, -0.004978179931640625, -0.028472900390625, -0.038848876953125, 0.0305633544921875, -0.0312042236328125, -0.00045299530029296875, 0.0106353759765625, 0.052215576171875, 0.0755615234375, -0.039337158203125, 0.016082763671875, 0.0625, -0.0228118896484375, -0.016632080078125, 0.04095458984375, -0.0291290283203125, -0.048583984375, 0.01145172119140625, -0.00464630126953125, -0.02960205078125, -0.00446319580078125, -0.02117919921875, -0.0467529296875, 0.028350830078125, 0.0083770751953125, -0.0203704833984375, -0.035888671875, -0.0166778564453125, -0.00720977783203125, -0.036895751953125, 0.0186920166015625, -0.0033359527587890625, -0.032562255859375, 0.0020999908447265625, 0.00612640380859375, -0.017791748046875, -0.0029048919677734375, -0.0132293701171875, -0.0194091796875, -0.039764404296875, 0.030364990234375, 0.0400390625, -0.021575927734375, 0.0693359375, -0.009857177734375, 0.03533935546875, -0.030975341796875, -0.024322509765625, 0.0252685546875, -0.02239990234375, -0.037353515625, 0.04339599609375, -0.056182861328125, 0.046142578125, 0.0181732177734375, 0.0216522216796875, 0.04119873046875, 0.03521728515625, 0.016815185546875, -0.0207366943359375, 0.0243072509765625, -0.017974853515625, -0.11712646484375, -0.0219573974609375, 0.008636474609375, 0.04931640625, -0.04132080078125, 0.058258056640625, -0.029205322265625, -0.01493072509765625, 0.0050506591796875, 0.0526123046875, 0.048736572265625, -0.019073486328125, -0.0361328125, 0.033538818359375, -0.0102691650390625, -0.008087158203125, -0.005092620849609375, 0.0249786376953125, -0.02459716796875, -0.0054168701171875, 0.00403594970703125, -0.041717529296875, -0.00722503662109375, -0.0250244140625, -0.01067352294921875, 0.06439208984375, 0.01450347900390625, -0.03887939453125, 0.00902557373046875, 0.038818359375, -0.0240325927734375, 0.0256500244140625, -0.00690460205078125, 0.007144927978515625, 0.0004534721374511719, -0.01081085205078125, 0.031982421875, 0.0125885009765625, 0.0265045166015625, 0.003330230712890625, 0.024871826171875, 0.011199951171875, -0.05462646484375, -0.047088623046875, -0.0008907318115234375, 0.014190673828125, 0.006008148193359375, 0.057586669921875, 0.017669677734375, 0.006366729736328125, 0.0611572265625, 0.0012655258178710938, 0.0428466796875, -0.004261016845703125, 0.00138092041015625, 0.02850341796875, 0.0269317626953125, 0.0304412841796875, -0.03265380859375, 0.048553466796875, 0.00844573974609375, -0.0233612060546875, 0.0079193115234375, -0.008941650390625, 0.01320648193359375, 0.01013946533203125, -0.008758544921875, 0.029998779296875, -0.0030193328857421875, -0.006504058837890625, 0.02447509765625, -0.0031337738037109375, 0.0025119781494140625, 0.042999267578125, 0.00972747802734375, -0.0244140625, 0.049072265625, 0.016387939453125, 0.035491943359375, 0.001667022705078125, -0.0411376953125, 0.033905029296875, 0.0226287841796875, 0.0313720703125, 0.028839111328125, 0.013519287109375, -0.04022216796875, -0.0014810562133789062, -0.0286865234375, -0.001956939697265625, 0.0047454833984375, 0.006011962890625, -0.00988006591796875, 0.01280975341796875, -0.0389404296875, 0.005237579345703125, 0.0246734619140625, -0.032073974609375, -0.0300750732421875, -0.036346435546875, 0.005832672119140625, 0.023834228515625, 0.09271240234375, 0.0109100341796875, -0.00969696044921875, 0.0100555419921875, 0.0128631591796875, 0.006359100341796875, -0.0289306640625, 0.032196044921875, 0.0014886856079101562, 0.00809478759765625, 0.003986358642578125, -0.0364990234375, -0.023101806640625, 0.0081787109375, -0.052276611328125, -0.032806396484375, 0.0301971435546875, 0.06622314453125, 0.0308685302734375, 0.01471710205078125, 0.040130615234375, 0.0621337890625, 0.033905029296875, 0.00013196468353271484, 0.05389404296875, 0.00879669189453125, -0.015899658203125, -0.0099945068359375, -0.03594970703125, -0.05096435546875, -0.03790283203125, -0.00884246826171875, 0.045257568359375, -0.048187255859375, -0.044464111328125, 0.07196044921875, -0.01363372802734375, -0.0205230712890625, 0.032440185546875, -0.036041259765625, 0.0872802734375, -0.00588226318359375, 0.057342529296875, -0.01125335693359375, 0.020843505859375, 0.06988525390625, -0.04949951171875, 0.0055999755859375, 0.04791259765625, 0.023773193359375, 0.04278564453125, -0.012298583984375, 0.013580322265625, 0.01149749755859375, 0.01305389404296875, -0.0374755859375, 0.03240966796875, -0.01194000244140625, -0.0191192626953125, -0.0012636184692382812, -0.018890380859375, 0.03863525390625, -0.00885009765625, 0.0921630859375, -0.05755615234375, 0.0202484130859375, 0.03961181640625, -0.014434814453125, 0.018646240234375, 0.01033782958984375, 0.035308837890625, -0.0011529922485351562, 0.0025768280029296875, -0.0238494873046875, 0.0007143020629882812, -0.00972747802734375, 0.01305389404296875, -0.02740478515625, -0.054962158203125, 0.001399993896484375, 0.03277587890625, 0.056121826171875, 0.043731689453125, 0.00040721893310546875, -0.006702423095703125, 0.0225982666015625, 0.0127105712890625, 0.0277557373046875, 0.06671142578125, 0.01058197021484375, 0.006710052490234375, -0.003986358642578125, -0.03564453125, 0.024322509765625, -0.0250396728515625, 0.036376953125, 0.0262451171875, -0.00795745849609375, -0.058380126953125, 0.011260986328125, 0.0017004013061523438, -0.036102294921875, 0.04547119140625, 0.0125579833984375, 0.03076171875, -0.0094757080078125, -0.03948974609375, -0.01462554931640625, -0.0281982421875, -0.051239013671875, -0.02056884765625, 0.02703857421875, -0.0237884521484375, -0.0011606216430664062, -0.034576416015625, -0.0190582275390625, -0.0648193359375, 0.002628326416015625, 0.03179931640625, -0.031646728515625, 0.0288848876953125, -0.001495361328125, -0.047882080078125, 0.028778076171875, -0.00860595703125, 0.01776123046875, -0.00966644287109375, -0.029876708984375, -0.040252685546875, 0.003772735595703125, -0.019256591796875, -0.016693115234375, -0.03204345703125, -0.0232086181640625, -0.0267333984375, -0.050048828125, 0.04168701171875, -0.0034027099609375, 0.022491455078125, 0.040191650390625, -0.024566650390625, -0.04815673828125, 0.000014424324035644531, 0.027923583984375, 0.035858154296875, -0.026214599609375, -0.01544952392578125, 0.0254974365234375, -0.0037784576416015625, -0.026611328125, -0.0364990234375, 0.0191650390625, -0.0650634765625, -0.0092926025390625, -0.01213836669921875, 0.01041412353515625, 0.025238037109375, -0.0443115234375, -0.10443115234375, 0.03594970703125, -0.0239715576171875, -0.035491943359375, -0.05438232421875, -0.0066375732421875, 0.0018377304077148438, 0.0692138671875, -0.0184478759765625, -0.00373077392578125, -0.038360595703125, 0.023040771484375, 0.01456451416015625, 0.0494384765625, -0.0131988525390625, 0.01264190673828125, 0.01187896728515625, 0.056793212890625, 0.048797607421875, 0.025054931640625, -0.0008254051208496094, 0.0126953125, -0.002681732177734375, 0.04193115234375, -0.025726318359375, -0.01068115234375, -0.0248870849609375, -0.0156402587890625, -0.0311737060546875, 0.0161895751953125, -0.0161285400390625, 0.017608642578125, 0.112548828125, 0.05609130859375, 0.024139404296875, -0.05767822265625, -0.020660400390625, -0.041595458984375, -0.0027294158935546875, -0.04425048828125, 0.005382537841796875, -0.059906005859375, -0.017181396484375, -0.0284271240234375, -0.0013523101806640625, 0.0254364013671875, -0.0149078369140625, -0.0239105224609375, -0.0157318115234375, -0.0263214111328125, -0.029693603515625, -0.0297088623046875, -0.01959228515625, 0.036529541015625, -0.00975799560546875, 0.048919677734375, -0.0106048583984375, 0.01393890380859375, 0.033294677734375, 0.06524658203125, -0.001216888427734375, -0.0153350830078125, -0.0380859375, 0.036590576171875, -0.007701873779296875, 0.00901031494140625, -0.04425048828125, -0.02679443359375, 0.006114959716796875, -0.00923919677734375, -0.0038299560546875, -0.0131378173828125, 0.0006537437438964844, 0.0125274658203125, -0.0194854736328125, 0.045928955078125, 0.00821685791015625, -0.024261474609375, -0.0318603515625, 0.053436279296875, -0.0302276611328125, -0.02294921875, -0.0242767333984375, -0.015350341796875, 0.0066070556640625, 0.006122589111328125, -0.01294708251953125, -0.04669189453125, 0.0343017578125, 0.035064697265625, -0.0112457275390625, 0.033172607421875 ]
b931ad722c99c5a499d93a32f2bc9f6e1683ce40
Wordpress Stackexchange Q: Featured image shortcode Each post currently requires the featured image to be duplicated within the post several times. Is there any way in which I could dynamically call the featured image back into the post rather than manually inserting the image again several times? UPDATE I would also like to be able to show the image's caption and permalink if possible. A: Register the shortcode, ideally in a plugin or functions.php if you have to. add_shortcode('thumbnail', 'thumbnail_in_content'); function thumbnail_in_content($atts) { global $post; return get_the_post_thumbnail($post->ID); } Add the shortcode to you post content. [thumbnail] If you want more features, see this post or the pastebin. ADDING CAPTIONS AND LINKS add_shortcode('thumbnail', 'thumbnail_with_caption_shortcode'); function thumbnail_with_caption_shortcode($atts) { global $post; // Image to display $thumbnail = get_the_post_thumbnail($post->ID); // ID of featured image $thumbnail_id = get_post_thumbnail_id(); // Caption from featured image's WP_Post $caption = get_post($thumbnail_id)->post_excerpt; // Link to attachment page $link = get_permalink($thumbnail_id); // Final output return '<div class="featured-image">' . '<a href="' . $link . '">' . $thumbnail . '<span class="caption">' . $caption . '</span>' . '</a>' . '</div>'; } RESOURCES * *get_the_post_thumbnail *get_post_thumbnail_id *WP_Post *get_post *get_permalink *Shortcode API *Get image captions for images on gallery post format metabox
Q: Featured image shortcode Each post currently requires the featured image to be duplicated within the post several times. Is there any way in which I could dynamically call the featured image back into the post rather than manually inserting the image again several times? UPDATE I would also like to be able to show the image's caption and permalink if possible. A: Register the shortcode, ideally in a plugin or functions.php if you have to. add_shortcode('thumbnail', 'thumbnail_in_content'); function thumbnail_in_content($atts) { global $post; return get_the_post_thumbnail($post->ID); } Add the shortcode to you post content. [thumbnail] If you want more features, see this post or the pastebin. ADDING CAPTIONS AND LINKS add_shortcode('thumbnail', 'thumbnail_with_caption_shortcode'); function thumbnail_with_caption_shortcode($atts) { global $post; // Image to display $thumbnail = get_the_post_thumbnail($post->ID); // ID of featured image $thumbnail_id = get_post_thumbnail_id(); // Caption from featured image's WP_Post $caption = get_post($thumbnail_id)->post_excerpt; // Link to attachment page $link = get_permalink($thumbnail_id); // Final output return '<div class="featured-image">' . '<a href="' . $link . '">' . $thumbnail . '<span class="caption">' . $caption . '</span>' . '</a>' . '</div>'; } RESOURCES * *get_the_post_thumbnail *get_post_thumbnail_id *WP_Post *get_post *get_permalink *Shortcode API *Get image captions for images on gallery post format metabox
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:462072", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213768" }
[ 0.08221435546875, 0.00601959228515625, 0.06005859375, -0.0210418701171875, 0.0277099609375, -0.01366424560546875, 0.08160400390625, -0.05645751953125, -0.001285552978515625, 0.032196044921875, -0.01983642578125, 0.033294677734375, -0.041229248046875, -0.003742218017578125, -0.026824951171875, -0.0251007080078125, 0.032379150390625, 0.01128387451171875, 0.043365478515625, 0.006134033203125, -0.00540924072265625, 0.046844482421875, 0.00510406494140625, 0.05633544921875, 0.0179443359375, -0.01059722900390625, 0.040802001953125, -0.01271820068359375, -0.0131683349609375, -0.01508331298828125, 0.011199951171875, 0.017669677734375, 0.040496826171875, 0.01995849609375, -0.055999755859375, 0.04302978515625, -0.00301361083984375, -0.004543304443359375, -0.025360107421875, 0.03656005859375, 0.0178375244140625, 0.0016908645629882812, 0.0377197265625, -0.020172119140625, -0.007843017578125, -0.0014591217041015625, -0.0010738372802734375, -0.0343017578125, 0.003932952880859375, 0.0222930908203125, 0.050567626953125, 0.005954742431640625, 0.046417236328125, -0.0252685546875, -0.0105133056640625, 0.01462554931640625, -0.03271484375, -0.024017333984375, 0.054168701171875, 0.007251739501953125, -0.03668212890625, -0.0560302734375, 0.03143310546875, -0.045806884765625, -0.0175323486328125, 0.00585174560546875, -0.0159759521484375, -0.00910186767578125, 0.01273345947265625, 0.000020384788513183594, 0.01312255859375, -0.0149383544921875, -0.0210113525390625, -0.0458984375, -0.0118255615234375, 0.0694580078125, -0.039398193359375, -0.00901031494140625, 0.00514984130859375, 0.00310516357421875, 0.0284271240234375, -0.03204345703125, -0.0027828216552734375, 0.03131103515625, -0.01263427734375, 0.040283203125, 0.00830078125, -0.006031036376953125, -0.0224761962890625, -0.0157623291015625, -0.01503753662109375, -0.030181884765625, -0.011322021484375, 0.0181884765625, -0.010772705078125, -0.01568603515625, 0.01105499267578125, 0.077880859375, -0.004581451416015625, 0.03436279296875, -0.037506103515625, -0.0214996337890625, 0.02264404296875, -0.067138671875, 0.00650787353515625, -0.0028095245361328125, -0.031585693359375, -0.0445556640625, 0.031341552734375, 0.0457763671875, -0.0186767578125, 0.021514892578125, -0.0005936622619628906, -0.01287841796875, -0.03338623046875, 0.01430511474609375, -0.036529541015625, 0.0031375885009765625, -0.005390167236328125, 0.01140594482421875, 0.023834228515625, 0.0171356201171875, 0.03668212890625, -0.027862548828125, 0.0103912353515625, 0.0153045654296875, -0.03216552734375, -0.06640625, 0.0362548828125, 0.0003933906555175781, -0.040130615234375, 0.00745391845703125, 0.06494140625, 0.0268707275390625, 0.0163726806640625, -0.0106048583984375, -0.0145111083984375, -0.015655517578125, 0.01218414306640625, -0.0160675048828125, 0.007221221923828125, 0.01202392578125, 0.053436279296875, -0.008453369140625, 0.03399658203125, 0.0300750732421875, 0.013916015625, 0.00827789306640625, -0.00025844573974609375, -0.06512451171875, 0.04144287109375, -0.038238525390625, 0.0308685302734375, 0.01444244384765625, -0.0049591064453125, -0.03759765625, 0.04974365234375, -0.042144775390625, 0.00922393798828125, -0.05596923828125, 0.0736083984375, 0.004772186279296875, -0.0307464599609375, 0.01253509521484375, -0.019439697265625, -0.02178955078125, -0.01525115966796875, 0.001850128173828125, 0.0255584716796875, 0.07171630859375, -0.007808685302734375, -0.01535797119140625, -0.0282135009765625, 0.00614166259765625, -0.01282501220703125, -0.0022983551025390625, 0.00013840198516845703, -0.012664794921875, 0.0413818359375, 0.03497314453125, -0.0110626220703125, -0.0172882080078125, 0.0653076171875, -0.0311126708984375, -0.0284271240234375, 0.0097198486328125, 0.0195159912109375, 0.052337646484375, 0.00732421875, 0.02783203125, -0.001514434814453125, -0.0114288330078125, -0.048736572265625, 0.02801513671875, 0.0018072128295898438, -0.036041259765625, 0.0099029541015625, -0.024017333984375, -0.002735137939453125, 0.016815185546875, 0.0014104843139648438, -0.029449462890625, 0.00876617431640625, 0.00988006591796875, -0.035552978515625, -0.006084442138671875, -0.01568603515625, 0.01548004150390625, -0.043060302734375, 0.0178375244140625, 0.035308837890625, 0.00046539306640625, -0.014404296875, -0.00862884521484375, 0.02008056640625, 0.0249786376953125, -0.0246429443359375, 0.0004024505615234375, 0.0018444061279296875, 0.04693603515625, 0.001636505126953125, -0.0041961669921875, -0.0104217529296875, 0.0026531219482421875, 0.051971435546875, 0.01279449462890625, -0.045379638671875, -0.026885986328125, -0.04840087890625, 0.028106689453125, -0.1177978515625, 0.06982421875, -0.01056671142578125, -0.0194244384765625, -0.0350341796875, 0.0020732879638671875, 0.0069427490234375, -0.0167083740234375, -0.002323150634765625, 0.02752685546875, 0.055084228515625, 0.031402587890625, 0.0305023193359375, -0.0035724639892578125, 0.071044921875, 0.01413726806640625, 0.051849365234375, -0.053314208984375, -0.0156402587890625, 0.0139923095703125, 0.0136260986328125, 0.00496673583984375, 0.00574493408203125, -0.041351318359375, 0.0116424560546875, 0.028961181640625, -0.016357421875, 0.028167724609375, -0.03009033203125, 0.0230865478515625, -0.0189971923828125, 0.00971221923828125, 0.0204010009765625, -0.02813720703125, 0.035491943359375, 0.00907135009765625, 0.03363037109375, 0.0175323486328125, -0.033111572265625, 0.0196380615234375, -0.00011348724365234375, 0.005298614501953125, -0.0029163360595703125, 0.0214691162109375, 0.0287322998046875, 0.006328582763671875, -0.010986328125, -0.0120697021484375, 0.0011005401611328125, 0.00457763671875, -0.0112152099609375, 0.031585693359375, -0.011688232421875, -0.0016956329345703125, -0.0110321044921875, -0.045562744140625, -0.00457000732421875, 0.024200439453125, 0.0012836456298828125, 0.00252532958984375, -0.005321502685546875, 0.06646728515625, 0.00611114501953125, 0.044281005859375, 0.03997802734375, 0.018463134765625, -0.023834228515625, -0.0406494140625, 0.046783447265625, -0.05487060546875, 0.002178192138671875, 0.062286376953125, -0.03253173828125, 0.03680419921875, -0.005466461181640625, -0.031494140625, -0.024658203125, 0.00641632080078125, -0.01444244384765625, -0.0111083984375, -0.040924072265625, 0.06494140625, 0.026123046875, 0.0997314453125, -0.04437255859375, -0.048583984375, -0.021240234375, 0.03289794921875, -0.0723876953125, -0.07513427734375, 0.015960693359375, -0.049163818359375, 0.0452880859375, 0.0054779052734375, -0.0195465087890625, -0.0494384765625, 0.05596923828125, 0.00829315185546875, -0.01105499267578125, -0.00872039794921875, -0.0238800048828125, -0.03277587890625, -0.06591796875, -0.01215362548828125, -0.0013341903686523438, 0.021087646484375, 0.006076812744140625, 0.0240631103515625, -0.0007624626159667969, -0.028289794921875, 0.040679931640625, 0.0199127197265625, -0.019989013671875, -0.00891876220703125, 0.017181396484375, -0.00823211669921875, -0.04644775390625, 0.00003457069396972656, -0.0098724365234375, 0.013458251953125, -0.020843505859375, 0.0121917724609375, -0.01348876953125, 0.038177490234375, 0.0258331298828125, 0.032745361328125, 0.01493072509765625, 0.05303955078125, 0.06634521484375, -0.007610321044921875, -0.021209716796875, -0.03253173828125, -0.058929443359375, -0.0430908203125, 0.025360107421875, 0.0291900634765625, -0.038330078125, 0.015380859375, 0.0095672607421875, 0.0178375244140625, 0.0312042236328125, -0.021942138671875, 0.053192138671875, -0.01103973388671875, 0.0036144256591796875, -0.06524658203125, -0.0194549560546875, -0.012908935546875, 0.03521728515625, -0.00637054443359375, 0.036956787109375, -0.033721923828125, 0.054168701171875, -0.06195068359375, -0.031585693359375, 0.04595947265625, -0.0091705322265625, 0.01056671142578125, -0.0214691162109375, -0.03668212890625, 0.0030975341796875, 0.073974609375, -0.043212890625, -0.02362060546875, -0.0037517547607421875, -0.00970458984375, 0.03515625, 0.0238800048828125, -0.0322265625, -0.0225982666015625, -0.0626220703125, -0.015625, -0.0210113525390625, -0.0152587890625, -0.02178955078125, 0.0083770751953125, -0.049163818359375, -0.0237884521484375, 0.036102294921875, 0.0034008026123046875, 0.015869140625, 0.057281494140625, -0.0226287841796875, 0.06964111328125, -0.056793212890625, -0.0143585205078125, -0.06353759765625, -0.0208892822265625, 0.00856781005859375, 0.06158447265625, -0.00806427001953125, -0.0229034423828125, -0.04595947265625, 0.0291595458984375, -0.01367950439453125, 0.0293426513671875, 0.0095672607421875, 0.0206298828125, 0.005931854248046875, 0.01055908203125, 0.025482177734375, -0.0253448486328125, 0.007625579833984375, -0.01250457763671875, -0.0251007080078125, -0.005603790283203125, -0.05194091796875, -0.00777435302734375, -0.0170745849609375, -0.02545166015625, -0.005275726318359375, 0.005062103271484375, 0.05963134765625, 0.049285888671875, 0.01329803466796875, 0.0014181137084960938, -0.0164031982421875, -0.009002685546875, 0.0166473388671875, -0.01430511474609375, -0.01641845703125, 0.0199432373046875, 0.056060791015625, 0.0154266357421875, -0.01427459716796875, -0.07025146484375, 0.040435791015625, 0.060302734375, -0.0182342529296875, 0.0162811279296875, 0.031341552734375, -0.031280517578125, 0.0091552734375, 0.0291748046875, -0.00904083251953125, -0.027069091796875, 0.0469970703125, 0.007740020751953125, 0.0360107421875, -0.03961181640625, -0.004364013671875, 0.0330810546875, 0.0276947021484375, -0.037078857421875, 0.007770538330078125, -0.040069580078125, 0.0294647216796875, -0.007167816162109375, 0.0208282470703125, -0.020050048828125, -0.0108642578125, -0.01139068603515625, 0.0289306640625, 0.032196044921875, 0.03277587890625, -0.0028629302978515625, 0.0136260986328125, 0.04034423828125, 0.0137481689453125, 0.0134124755859375, -0.0184478759765625, 0.0271759033203125, 0.058563232421875, -0.043243408203125, 0.0252227783203125, 0.00926971435546875, -0.00144195556640625, 0.0281219482421875, 0.007465362548828125, -0.0191650390625, -0.0269317626953125, -0.015960693359375, -0.0285797119140625, -0.033843994140625, -0.01099395751953125, 0.045318603515625, 0.019805908203125, 0.0034923553466796875, -0.007476806640625, -0.04071044921875, 0.00659942626953125, -0.040679931640625, -0.0145721435546875, -0.0083465576171875, -0.00650787353515625, 0.0287322998046875, 0.044677734375, -0.047271728515625, 0.06378173828125, -0.00519561767578125, 0.020965576171875, 0.02703857421875, 0.00708770751953125, 0.017425537109375, 0.02032470703125, -0.038482666015625, 0.0109710693359375, 0.00795745849609375, -0.026947021484375, -0.002777099609375, 0.0643310546875, 0.07659912109375, -0.0433349609375, -0.050537109375, -0.01324462890625, -0.044097900390625, -0.03240966796875, -0.0181427001953125, -0.026458740234375, -0.0009775161743164062, -0.027130126953125, 0.0037097930908203125, 0.035369873046875, 0.045135498046875, -0.0333251953125, 0.0257415771484375, -0.01541900634765625, 0.006786346435546875, -0.049041748046875, -0.037933349609375, 0.016204833984375, 0.025177001953125, 0.015106201171875, -0.01364898681640625, -0.034637451171875, 0.034423828125, 0.0122528076171875, -0.0213165283203125, -0.0106048583984375, 0.033721923828125, -0.057342529296875, 0.01491546630859375, 0.0015544891357421875, 0.0011053085327148438, -0.037017822265625, 0.016998291015625, 0.02581787109375, 0.038909912109375, -0.01306915283203125, -0.0094757080078125, -0.0293426513671875, 0.00420379638671875, 0.079833984375, -0.0251922607421875, 0.0016603469848632812, -0.04937744140625, 0.0078887939453125, 0.028717041015625, -0.0122222900390625, 0.0032482147216796875, 0.007320404052734375, 0.01403045654296875, -0.013946533203125, 0.058013916015625, 0.0005307197570800781, -0.00797271728515625, 0.0237884521484375, 0.02020263671875, 0.0118408203125, -0.0269775390625, -0.0127716064453125, -0.0261993408203125, -0.0164031982421875, -0.0282745361328125, 0.0076904296875, 0.012908935546875, 0.0231170654296875, 0.0015048980712890625, 0.028961181640625, 0.024322509765625, 0.009918212890625, -0.023040771484375, -0.00687408447265625, -0.0268096923828125, 0.019073486328125, -0.022308349609375, -0.00008684396743774414, -0.0007371902465820312, -0.046234130859375, 0.0017604827880859375, -0.0070953369140625, 0.002613067626953125, 0.0290679931640625, -0.06121826171875, 0.007694244384765625, 0.05157470703125, 0.030029296875, -0.007183074951171875, 0.06634521484375, 0.011016845703125, 0.060211181640625, 0.04400634765625, 0.0283660888671875, 0.02044677734375, 0.0285491943359375, 0.00554656982421875, -0.00905609130859375, 0.0704345703125, 0.01349639892578125, -0.0292816162109375, 0.0443115234375, -0.04547119140625, 0.015838623046875, -0.0455322265625, 0.046051025390625, 0.057647705078125, 0.00443267822265625, 0.0341796875, -0.04901123046875, 0.01447296142578125, 0.006946563720703125, 0.0204010009765625, 0.03851318359375, 0.0269317626953125, -0.043060302734375, -0.030364990234375, -0.0009860992431640625, -0.0190582275390625, -0.015594482421875, 0.0161285400390625, -0.0174102783203125, 0.00843048095703125, -0.05975341796875, -0.0130462646484375, 0.056610107421875, -0.01264190673828125, -0.0072784423828125, 0.0015115737915039062, -0.018768310546875, -0.0282135009765625, -0.0220794677734375, 0.002132415771484375, -0.015045166015625, 0.00868988037109375, 0.01055908203125, 0.00550079345703125, 0.0161895751953125, 0.042572021484375, -0.007534027099609375, 0.019500732421875, 0.02685546875, -0.0291595458984375, 0.02984619140625, -0.014495849609375, 0.00818634033203125, 0.01479339599609375, -0.029296875, 0.00897979736328125, 0.0006213188171386719, -0.01141357421875, -0.00974273681640625, -0.01215362548828125, 0.09149169921875, -0.04949951171875, -0.0191497802734375, 0.0211181640625, 0.01525115966796875, -0.01464080810546875, -0.02008056640625, 0.04449462890625, -0.08123779296875, -0.04376220703125, 0.0063629150390625, -0.0213165283203125, -0.019073486328125, -0.0263214111328125, -0.07342529296875, 0.08221435546875, 0.00373077392578125, 0.0262298583984375, -0.0198211669921875, 0.039093017578125, 0.01100921630859375, 0.02398681640625, 0.014862060546875, 0.026580810546875, -0.06292724609375, 0.023193359375, -0.00812530517578125, 0.0017366409301757812, 0.0261993408203125, 0.04449462890625, 0.0469970703125, 0.0224761962890625, -0.0154876708984375, 0.01561737060546875, 0.062347412109375, 0.00385284423828125, -0.0281219482421875, 0.040802001953125, -0.01136016845703125, 0.0245361328125, 0.03955078125, -0.053466796875, 0.00473785400390625, 0.010955810546875, -0.01153564453125, 0.0232696533203125, 0.0154266357421875, 0.0165863037109375, 0.002986907958984375, 0.025390625, -0.0657958984375, 0.0231475830078125, 0.059844970703125, -0.0231170654296875, -0.0114288330078125, 0.03125, 0.01474761962890625, -0.0259552001953125, -0.0304412841796875, -0.020416259765625, 0.037811279296875, 0.004909515380859375, 0.0382080078125, 0.003551483154296875, 0.00899505615234375, 0.069580078125, 0.00131988525390625, 0.0124969482421875, 0.047821044921875, -0.014434814453125, 0.03106689453125, 0.0183258056640625, 0.018524169921875, -0.040313720703125, 0.0016727447509765625, 0.062042236328125, 0.057281494140625, -0.0443115234375, -0.0201263427734375, 0.0206298828125, 0.03192138671875, 0.01470947265625, -0.015838623046875, 0.013763427734375, -0.07958984375, -0.004039764404296875, -0.007724761962890625, -0.01206207275390625, 0.050048828125, 0.0307464599609375, 0.0195770263671875, -0.02044677734375, -0.04144287109375, -0.002292633056640625, -0.042938232421875, 0.050994873046875, 0.0081024169921875, 0.04193115234375, -0.014984130859375, 0.07562255859375, -0.0308990478515625, -0.0103912353515625, -0.0082550048828125, 0.018646240234375, 0.01375579833984375, 0.01702880859375, -0.004840850830078125, -0.006500244140625, 0.0193939208984375, 0.010406494140625, -0.004398345947265625, -0.0121917724609375, 0.0196533203125, 0.01206207275390625, -0.05023193359375, -0.029052734375, 0.03167724609375, -0.02667236328125, 0.0128631591796875, -0.036407470703125, -0.004711151123046875, -0.00824737548828125, -0.0290374755859375, 0.0025386810302734375, -0.0302886962890625, 0.0305328369140625, -0.049224853515625, 0.053314208984375, -0.0169219970703125, -0.00223541259765625, 0.01727294921875, -0.034912109375, 0.03753662109375, -0.031829833984375, -0.070068359375, 0.0185546875, -0.034027099609375, -0.09014892578125, 0.03057861328125, 0.03582763671875, -0.04351806640625, 0.019378662109375, -0.01222991943359375, -0.017822265625, 0.00010448694229125977, 0.0025501251220703125, 0.01360321044921875, -0.01422119140625, 0.00508880615234375, -0.01486968994140625, -0.043792724609375, -0.024139404296875, -0.00945281982421875, 0.030731201171875, 0.03045654296875, 0.005054473876953125, 0.0060577392578125, 0.028076171875, -0.034515380859375, -0.01486968994140625, -0.02679443359375, -0.0187530517578125, 0.036529541015625, -0.0171356201171875, -0.03143310546875, -0.0088653564453125, 0.00403594970703125, 0.0197906494140625, 0.040802001953125, -0.00875091552734375, -0.0128173828125, 0.004383087158203125, 0.0174407958984375, 0.0003330707550048828, 0.059051513671875, -0.031829833984375, -0.0263214111328125, -0.06878662109375, -0.0293426513671875, 0.0174102783203125, -0.01261138916015625, 0.0201873779296875, 0.04840087890625, 0.066650390625, 0.024810791015625, 0.049591064453125, -0.0124969482421875, 0.08984375, 0.045684814453125, -0.00251007080078125, -0.0011930465698242188, -0.02301025390625, -0.0252227783203125, 0.00019812583923339844, -0.005859375, 0.0055389404296875, -0.019073486328125, -0.039642333984375, -0.0031604766845703125, 0.032867431640625, 0.0305938720703125, -0.0189361572265625, 0.01198577880859375, 0.0153045654296875, -0.0215911865234375, -0.02093505859375, 0.002391815185546875, -0.0229949951171875, -0.07891845703125, 0.0103759765625, 0.0260467529296875, -0.0440673828125, 0.00711822509765625, -0.05133056640625, -0.036529541015625, 0.048858642578125, 0.0303497314453125, -0.049896240234375, 0.005390167236328125, 0.04931640625, 0.025177001953125, 0.01629638671875, -0.045654296875, -0.0003688335418701172, 0.029266357421875, -0.033355712890625, -0.046630859375, -0.0518798828125, -0.00516510009765625, -0.070068359375, 0.03228759765625, 0.04803466796875, -0.029815673828125, -0.025970458984375, 0.05023193359375, 0.0185394287109375, 0.09478759765625, -0.06329345703125, -0.032867431640625, -0.0088653564453125, 0.01409912109375, -0.0003788471221923828, -0.033111572265625, 0.01198577880859375, -0.023345947265625, -0.01142120361328125, 0.0015840530395507812, -0.00974273681640625, 0.006702423095703125, -0.041961669921875, -0.07769775390625, 0.046356201171875, -0.0053253173828125, -0.043975830078125, -0.049407958984375, -0.0036792755126953125, -0.01003265380859375, 0.018157958984375, -0.006710052490234375, -0.0231475830078125, -0.01238250732421875, 0.044769287109375, 0.0192108154296875, -0.003490447998046875, 0.050048828125, 0.00624847412109375, 0.0004181861877441406, 0.00431060791015625, 0.0029964447021484375, -0.007488250732421875, 0.041534423828125, -0.0150146484375, 0.04644775390625, 0.036651611328125, -0.044677734375, -0.050537109375, -0.0188751220703125, -0.036163330078125, -0.0182037353515625, -0.041168212890625, 0.0114288330078125, -0.00600433349609375, 0.07073974609375, -0.0112762451171875, 0.0034046173095703125, -0.0228118896484375, 0.021453857421875, -0.005641937255859375, -0.0310516357421875, 0.0008959770202636719, 0.0042572021484375, -0.04034423828125, -0.017608642578125, 0.002490997314453125, -0.00801849365234375, 0.0060882568359375, 0.003856658935546875, -0.0347900390625, -0.0005273818969726562, -0.022705078125, -0.0016880035400390625, -0.0625, 0.025421142578125, 0.03948974609375, -0.030303955078125, 0.017578125, -0.0272979736328125, -0.00078582763671875, 0.033599853515625, -0.013214111328125, -0.0141754150390625, 0.03521728515625, -0.01824951171875, -0.007793426513671875, 0.0219879150390625, 0.004299163818359375, 0.0025234222412109375, 0.034820556640625, -0.0267333984375, 0.018341064453125, 0.028564453125, 0.0236053466796875, -0.0263214111328125, 0.0040435791015625, 0.017181396484375, 0.0147705078125, -0.033599853515625, 0.044219970703125, 0.00859832763671875, 0.0247650146484375, -0.0277862548828125, 0.002819061279296875, 0.0187530517578125, -0.04345703125, 0.00896453857421875, 0.022705078125, 0.01715087890625, -0.0041046142578125, -0.00975799560546875, 0.0036907196044921875, 0.005901336669921875, 0.005603790283203125 ]
5552c651724e87f1ee01d401ef2f722694a1e1f7
Wordpress Stackexchange Q: How to add placeholder for contact form7 for dropdown? I tried adding placeholder similar to the given for ContactNumber for my drop down Outlet but it doesn't appear. Code- <div class="form-group form-icon-group"> <i class="fa fa-phone" > </i> [tel* ContactNumber /8 class:form-control placeholder "Contact Number *"] </div> <div class="form-group form-icon-group"> <i class="fa fa-food" > </i> [select Outlet id:outlet class:form-control "-- Select Outlet--" "Pasir Ris" "Thomson"] </div> Tried adding first_as_label "Preferred outlet?" so this displays as ordinary drop down values. Rest all of the fields do show the placeholder,any other way to give placeholder for drop down? A: Contrary to what the accepted answer suggests, it actually is possible and built into Contact Form 7. Here's the actual list of options [select] holds. Pretty much you would define the first option to be the placeholder using first_as_label: [select* Test first_as_label "Placeholder" "Option 1" "Option 2"] While it won't traditionally look like a placeholder, if it's required the user won't be able to select the placeholder and send the form - this forces the user to select any of the other options.
Q: How to add placeholder for contact form7 for dropdown? I tried adding placeholder similar to the given for ContactNumber for my drop down Outlet but it doesn't appear. Code- <div class="form-group form-icon-group"> <i class="fa fa-phone" > </i> [tel* ContactNumber /8 class:form-control placeholder "Contact Number *"] </div> <div class="form-group form-icon-group"> <i class="fa fa-food" > </i> [select Outlet id:outlet class:form-control "-- Select Outlet--" "Pasir Ris" "Thomson"] </div> Tried adding first_as_label "Preferred outlet?" so this displays as ordinary drop down values. Rest all of the fields do show the placeholder,any other way to give placeholder for drop down? A: Contrary to what the accepted answer suggests, it actually is possible and built into Contact Form 7. Here's the actual list of options [select] holds. Pretty much you would define the first option to be the placeholder using first_as_label: [select* Test first_as_label "Placeholder" "Option 1" "Option 2"] While it won't traditionally look like a placeholder, if it's required the user won't be able to select the placeholder and send the form - this forces the user to select any of the other options. A: to answer the question: this is not possible. AFAIK, (HTMLwise) there's no way to add a placeholder to select tags. A lot of devs I know however tend to use disabled selected combination for the option... <select> <option value="" disabled selected>Select your option</option> <option value="ydasdas">ydasdas</option> <option value="dasda">dasda</option> <option value="ydagfdsdas">ydagfdsdas</option> <option value="ewefsdf">ewefsdf</option> </select> demo I have checked CF7's source code (version 4.3.1), and there's no easy way we can achieve this html format. You can go the hard way by removing wpcf7_add_shortcode_select action on wpcf7_init and add yours instead.
wordpress
{ "language": "en", "length": 269, "provenance": "stackexchange_00019.jsonl.gz:462079", "question_score": "24", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213805" }
[ 0.04425048828125, -0.015716552734375, -0.003101348876953125, -0.0237274169921875, -0.0235443115234375, -0.0273895263671875, 0.0224456787109375, -0.0260467529296875, 0.025238037109375, -0.00884246826171875, -0.0706787109375, 0.0184173583984375, -0.0438232421875, -0.0167999267578125, 0.006252288818359375, -0.044921875, 0.01097869873046875, 0.010589599609375, -0.00739288330078125, 0.00620269775390625, 0.006061553955078125, 0.029449462890625, -0.078857421875, 0.0107879638671875, 0.01050567626953125, -0.0321044921875, 0.0023899078369140625, 0.0027713775634765625, -0.02410888671875, -0.00824737548828125, 0.02252197265625, 0.0210723876953125, 0.041259765625, -0.018951416015625, -0.0069122314453125, 0.026123046875, 0.0526123046875, -0.032806396484375, -0.0272064208984375, 0.050262451171875, 0.03466796875, -0.0246124267578125, 0.0054473876953125, 0.00788116455078125, -0.0276947021484375, -0.01445770263671875, 0.03076171875, -0.0076141357421875, 0.0136260986328125, -0.0421142578125, -0.01535797119140625, 0.0521240234375, -0.0037994384765625, -0.0201416015625, 0.0016222000122070312, 0.018585205078125, -0.06695556640625, 0.022308349609375, 0.029998779296875, 0.062255859375, 0.0307769775390625, -0.01206207275390625, -0.018096923828125, -0.0531005859375, 0.03485107421875, -0.0037212371826171875, -0.040069580078125, 0.01202392578125, -0.006282806396484375, 0.048126220703125, 0.036041259765625, -0.05169677734375, 0.00733184814453125, -0.00591278076171875, -0.03106689453125, -0.01059722900390625, 0.02508544921875, -0.004024505615234375, 0.01428985595703125, 0.0006532669067382812, 0.0083160400390625, -0.0379638671875, 0.040191650390625, -0.0213165283203125, 0.0179443359375, 0.0031261444091796875, 0.003387451171875, -0.0008111000061035156, 0.0028591156005859375, -0.0384521484375, -0.0083770751953125, -0.041900634765625, -0.0207672119140625, 0.01861572265625, -0.0153961181640625, -0.034881591796875, -0.0002815723419189453, 0.013458251953125, 0.030975341796875, 0.01264190673828125, -0.034393310546875, -0.012359619140625, -0.0231170654296875, -0.021636962890625, 0.0051727294921875, 0.02288818359375, -0.01508331298828125, 0.050537109375, 0.0491943359375, 0.0167999267578125, 0.0013828277587890625, 0.011688232421875, -0.0260162353515625, -0.0181121826171875, -0.0266265869140625, 0.02728271484375, -0.022125244140625, 0.00952911376953125, -0.004253387451171875, 0.020172119140625, -0.011444091796875, 0.0228729248046875, 0.0203704833984375, -0.04510498046875, -0.00518798828125, -0.02081298828125, -0.00475311279296875, -0.041748046875, 0.01120758056640625, -0.0247802734375, -0.039398193359375, 0.03497314453125, 0.0755615234375, 0.044097900390625, 0.0396728515625, -0.005092620849609375, -0.0438232421875, 0.01385498046875, 0.0159149169921875, -0.0291595458984375, 0.055450439453125, -0.030426025390625, 0.005954742431640625, 0.08270263671875, -0.006252288818359375, 0.03631591796875, 0.021484375, 0.002536773681640625, 0.0002453327178955078, -0.0694580078125, 0.01270294189453125, -0.0416259765625, 0.06207275390625, -0.001987457275390625, -0.048126220703125, 0.01544189453125, 0.031341552734375, -0.00794219970703125, -0.06964111328125, -0.040740966796875, 0.0013599395751953125, -0.02276611328125, 0.01386260986328125, -0.051910400390625, -0.03704833984375, 0.01544952392578125, -0.053314208984375, -0.00946044921875, 0.007678985595703125, 0.006153106689453125, -0.03826904296875, 0.03369140625, -0.0156402587890625, 0.0014352798461914062, 0.0105133056640625, 0.00002676248550415039, 0.0150909423828125, -0.004970550537109375, 0.012054443359375, -0.00518798828125, -0.041015625, -0.04046630859375, 0.044281005859375, -0.034576416015625, -0.052642822265625, 0.08148193359375, 0.0108642578125, 0.0682373046875, -0.0277252197265625, -0.00481414794921875, 0.05035400390625, 0.0810546875, -0.045379638671875, 0.022491455078125, -0.02142333984375, 0.00009673833847045898, -0.0190887451171875, 0.0307464599609375, -0.020355224609375, -0.00667572021484375, -0.00708770751953125, -0.0013532638549804688, -0.002613067626953125, -0.0163421630859375, 0.0151824951171875, -0.0372314453125, 0.005596160888671875, 0.020416259765625, -0.041229248046875, 0.0189971923828125, 0.03460693359375, -0.001865386962890625, -0.034088134765625, -0.0146331787109375, -0.00690460205078125, -0.0253753662109375, -0.00841522216796875, 0.017486572265625, -0.01371002197265625, 0.00504302978515625, -0.00307464599609375, -0.0305328369140625, 0.00649261474609375, 0.054351806640625, -0.0122222900390625, 0.0014238357543945312, -0.03662109375, -0.00829315185546875, -0.033203125, 0.01348114013671875, -0.01549530029296875, 0.045318603515625, -0.0228118896484375, 0.007595062255859375, -0.059967041015625, -0.018707275390625, -0.040008544921875, -0.0048370361328125, 0.0002529621124267578, 0.04730224609375, 0.00814056396484375, 0.05487060546875, -0.0080413818359375, 0.0318603515625, 0.06109619140625, -0.006137847900390625, 0.003170013427734375, 0.015838623046875, -0.00481414794921875, -0.01611328125, -0.01194000244140625, -0.0033130645751953125, 0.042236328125, -0.01074981689453125, 0.024658203125, 0.0243377685546875, -0.03472900390625, -0.05548095703125, 0.0283203125, -0.017608642578125, 0.02947998046875, -0.03912353515625, -0.0421142578125, -0.0009121894836425781, 0.055999755859375, -0.0265655517578125, 0.002941131591796875, -0.0114593505859375, -0.032958984375, 0.010986328125, 0.0210723876953125, -0.05828857421875, -0.005889892578125, 0.009979248046875, 0.0007176399230957031, 0.038909912109375, -0.02337646484375, 0.001483917236328125, -0.00563812255859375, 0.00904083251953125, 0.0022029876708984375, 0.05010986328125, -0.006511688232421875, -0.01343536376953125, -0.0112152099609375, -0.0286407470703125, 0.0027942657470703125, -0.00879669189453125, -0.0032711029052734375, -0.00731658935546875, 0.00380706787109375, 0.00698089599609375, -0.0248260498046875, 0.0266571044921875, 0.0178985595703125, -0.0269927978515625, -0.019073486328125, -0.0169677734375, 0.039093017578125, -0.047271728515625, -0.01517486572265625, 0.04400634765625, -0.046173095703125, 0.034149169921875, -0.0018739700317382812, -0.07281494140625, -0.0248260498046875, 0.03759765625, 0.02056884765625, -0.034759521484375, 0.0164947509765625, 0.063232421875, 0.03204345703125, 0.004146575927734375, 0.016326904296875, 0.01439666748046875, -0.01531982421875, 0.02239990234375, -0.0103302001953125, -0.019317626953125, 0.0095062255859375, -0.00792694091796875, -0.0225830078125, 0.02386474609375, -0.0186309814453125, 0.0020809173583984375, 0.032867431640625, -0.006412506103515625, -0.026092529296875, -0.0205841064453125, -0.01404571533203125, -0.045928955078125, -0.03948974609375, -0.0147247314453125, 0.0032672882080078125, 0.00960540771484375, -0.01519012451171875, 0.04986572265625, -0.01348876953125, -0.02886962890625, -0.03497314453125, -0.00525665283203125, 0.0015239715576171875, -0.034698486328125, -0.0014715194702148438, -0.01012420654296875, -0.018157958984375, 0.0068206787109375, -0.034271240234375, 0.003108978271484375, -0.006069183349609375, -0.002532958984375, -0.04766845703125, -0.0164947509765625, -0.020904541015625, 0.04327392578125, 0.051177978515625, -0.00844573974609375, 0.03314208984375, -0.039093017578125, 0.01334381103515625, 0.011566162109375, 0.005908966064453125, -0.03106689453125, -0.040618896484375, -0.0067291259765625, -0.01485443115234375, 0.02972412109375, -0.0506591796875, -0.042266845703125, -0.0013179779052734375, -0.04840087890625, 0.0447998046875, -0.025299072265625, -0.032318115234375, 0.013824462890625, 0.031707763671875, -0.0274658203125, 0.047576904296875, 0.0230255126953125, 0.01343536376953125, 0.0265350341796875, -0.01123809814453125, 0.03399658203125, -0.119873046875, 0.028045654296875, -0.096435546875, -0.052337646484375, -0.04266357421875, 0.007843017578125, 0.04644775390625, 0.11358642578125, -0.0229644775390625, -0.0256500244140625, 0.01497650146484375, 0.024322509765625, -0.0242919921875, -0.0201568603515625, -0.01385498046875, -0.01515960693359375, -0.08917236328125, -0.00904083251953125, 0.0063629150390625, -0.03912353515625, 0.0143890380859375, -0.04052734375, -0.02764892578125, -0.046630859375, -0.006267547607421875, -0.01409912109375, -0.0235748291015625, 0.008026123046875, -0.041351318359375, -0.003978729248046875, 0.03753662109375, -0.05078125, -0.0802001953125, 0.005680084228515625, -0.0143585205078125, 0.0011987686157226562, -0.004611968994140625, -0.01399993896484375, -0.0276031494140625, 0.0115814208984375, 0.02435302734375, -0.03936767578125, 0.02142333984375, -0.0186920166015625, -0.0399169921875, 0.0306396484375, 0.01239013671875, -0.021484375, -0.007511138916015625, -0.035064697265625, -0.0338134765625, -0.032379150390625, -0.0083160400390625, -0.0002999305725097656, 0.019073486328125, -0.015838623046875, -0.044830322265625, -0.0430908203125, -0.022308349609375, -0.01003265380859375, -0.016632080078125, -0.00567626953125, -0.01338958740234375, -0.024505615234375, -0.022552490234375, -0.016937255859375, -0.0152435302734375, 0.0277099609375, 0.034820556640625, 0.01482391357421875, -0.0018377304077148438, -0.01241302490234375, -0.0019435882568359375, 0.047393798828125, 0.0452880859375, -0.0247039794921875, -0.028167724609375, -0.040496826171875, 0.04144287109375, 0.015594482421875, 0.0546875, -0.014312744140625, 0.02703857421875, -0.0218658447265625, -0.04840087890625, 0.06671142578125, 0.0266265869140625, -0.07159423828125, -0.0004668235778808594, -0.0208587646484375, 0.0042572021484375, 0.00876617431640625, 0.023284912109375, -0.00991058349609375, 0.00569915771484375, -0.033294677734375, -0.024078369140625, -0.0079193115234375, -0.0193023681640625, 0.0633544921875, 0.03948974609375, -0.00028705596923828125, 0.0287628173828125, 0.040557861328125, -0.0083465576171875, 0.014678955078125, -0.040985107421875, 0.0310821533203125, 0.01690673828125, 0.0084075927734375, 0.005069732666015625, 0.0133209228515625, -0.02197265625, 0.08001708984375, 0.033966064453125, -0.03375244140625, 0.036224365234375, -0.0260162353515625, -0.02276611328125, -0.005359649658203125, 0.00005447864532470703, -0.0635986328125, 0.0014667510986328125, 0.04693603515625, 0.062469482421875, 0.042938232421875, 0.0236663818359375, 0.04986572265625, 0.0036602020263671875, 0.0024623870849609375, -0.0208282470703125, -0.04217529296875, 0.032806396484375, 0.01430511474609375, -0.0196380615234375, -0.0018014907836914062, 0.0270843505859375, 0.03924560546875, -0.0262908935546875, 0.0191497802734375, 0.039764404296875, -0.01081085205078125, -0.035400390625, 0.022857666015625, -0.008392333984375, 0.0030231475830078125, 0.004405975341796875, -0.0033740997314453125, -0.001979827880859375, -0.015838623046875, 0.0269622802734375, -0.019073486328125, 0.0190582275390625, 0.01375579833984375, -0.00524139404296875, -0.05413818359375, 0.0258941650390625, 0.0152130126953125, -0.036224365234375, -0.06854248046875, 0.02227783203125, -0.006809234619140625, 0.03607177734375, -0.005916595458984375, 0.03912353515625, -0.0263824462890625, -0.0236663818359375, -0.01081085205078125, 0.048919677734375, -0.01082611083984375, -0.059814453125, -0.04010009765625, -0.036865234375, -0.00733184814453125, 0.043701171875, 0.039581298828125, -0.019195556640625, 0.02362060546875, -0.0325927734375, 0.00589752197265625, -0.07440185546875, 0.010223388671875, 0.038055419921875, 0.03204345703125, -0.003940582275390625, 0.0005354881286621094, -0.0504150390625, -0.019775390625, -0.05059814453125, -0.04864501953125, -0.01503753662109375, -0.00670623779296875, -0.00801849365234375, 0.0310211181640625, -0.025360107421875, -0.016143798828125, 0.00566864013671875, 0.0261993408203125, 0.0165252685546875, 0.07159423828125, -0.014190673828125, 0.00829315185546875, -0.015625, -0.00016963481903076172, -0.025115966796875, -0.040985107421875, -0.0266265869140625, 0.004825592041015625, 0.01378631591796875, -0.036529541015625, -0.041229248046875, -0.01128387451171875, 0.00988006591796875, 0.011199951171875, 0.0176544189453125, -0.005054473876953125, 0.006320953369140625, 0.0079345703125, 0.01102447509765625, -0.013275146484375, -0.031707763671875, 0.007686614990234375, -0.0283203125, 0.0259552001953125, -0.051971435546875, -0.0287933349609375, -0.0009245872497558594, -0.0216522216796875, 0.0260009765625, -0.01215362548828125, 0.01441192626953125, 0.0188751220703125, -0.042236328125, 0.05694580078125, 0.046539306640625, -0.0214996337890625, 0.030242919921875, 0.0185546875, 0.01244354248046875, 0.0254058837890625, 0.0091705322265625, -0.020294189453125, -0.0159454345703125, 0.0531005859375, -0.0021305084228515625, -0.040557861328125, 0.04052734375, -0.0272979736328125, 0.033203125, 0.085205078125, 0.0635986328125, -0.10504150390625, 0.005374908447265625, -0.00547027587890625, -0.0296630859375, 0.043670654296875, -0.01523590087890625, 0.0004100799560546875, 0.048095703125, 0.0264434814453125, -0.00852203369140625, -0.032806396484375, 0.0238189697265625, 0.0296783447265625, -0.003887176513671875, 0.033294677734375, 0.00939178466796875, 0.004085540771484375, 0.0227813720703125, -0.06695556640625, -0.0306549072265625, 0.0039825439453125, 0.00011146068572998047, 0.0007953643798828125, -0.026641845703125, -0.03741455078125, -0.05767822265625, -0.041900634765625, -0.02508544921875, -0.018310546875, -0.0121612548828125, 0.035675048828125, 0.0218505859375, 0.016510009765625, 0.025909423828125, -0.060302734375, 0.0019817352294921875, -0.0019102096557617188, 0.033599853515625, -0.0176849365234375, 0.00861358642578125, -0.0020809173583984375, -0.015045166015625, 0.01363372802734375, -0.0071258544921875, -0.0167999267578125, -0.0180816650390625, 0.010528564453125, 0.10284423828125, -0.016204833984375, -0.048095703125, -0.001720428466796875, 0.00725555419921875, 0.01245880126953125, 0.0073699951171875, -0.033111572265625, -0.029388427734375, -0.021209716796875, -0.021026611328125, -0.06744384765625, 0.03765869140625, -0.011932373046875, -0.045196533203125, 0.0548095703125, -0.003734588623046875, 0.022125244140625, 0.0040283203125, 0.032196044921875, -0.005462646484375, 0.02392578125, -0.016845703125, 0.0223541259765625, -0.00431060791015625, 0.0038738250732421875, 0.00624847412109375, 0.002696990966796875, -0.0030231475830078125, 0.0150604248046875, -0.0126495361328125, -0.006046295166015625, 0.006710052490234375, 0.0076904296875, 0.054412841796875, 0.08843994140625, 0.034393310546875, -0.0234832763671875, 0.005321502685546875, 0.0019083023071289062, 0.04058837890625, -0.00492095947265625, 0.0216522216796875, 0.002593994140625, -0.0012674331665039062, 0.032745361328125, 0.00742340087890625, 0.038848876953125, -0.012359619140625, 0.032806396484375, 0.034881591796875, -0.0308837890625, -0.00843048095703125, -0.024688720703125, -0.0092620849609375, 0.0254974365234375, 0.0172882080078125, -0.0455322265625, -0.0019216537475585938, -0.0333251953125, 0.05108642578125, 0.006175994873046875, 0.0265655517578125, 0.05877685546875, 0.029693603515625, 0.035552978515625, 0.0048065185546875, 0.03863525390625, 0.010162353515625, -0.006336212158203125, 0.0165863037109375, -0.01232147216796875, 0.032958984375, 0.002902984619140625, 0.01751708984375, -0.03460693359375, -0.006458282470703125, -0.0262298583984375, -0.041748046875, 0.014862060546875, 0.0229339599609375, 0.0225830078125, -0.0121612548828125, 0.00849151611328125, -0.08984375, -0.01413726806640625, -0.041717529296875, -0.0087890625, 0.01258087158203125, 0.0121612548828125, 0.0019054412841796875, 0.01983642578125, -0.00472259521484375, -0.007106781005859375, 0.014495849609375, -0.050750732421875, -0.035736083984375, 0.0189056396484375, 0.0238037109375, 0.033111572265625, -0.045989990234375, -0.0198822021484375, -0.015899658203125, -0.0027751922607421875, 0.04376220703125, -0.004802703857421875, 0.0032806396484375, 0.05517578125, 0.01232147216796875, -0.0015974044799804688, -0.03387451171875, 0.028045654296875, 0.0213775634765625, 0.0296630859375, -0.0194854736328125, -0.0228424072265625, 0.0224151611328125, -0.039947509765625, 0.0020313262939453125, -0.00540924072265625, -0.02850341796875, 0.01348114013671875, -0.03594970703125, -0.01390838623046875, -0.04278564453125, 0.07220458984375, -0.0095062255859375, 0.009918212890625, 0.0007228851318359375, -0.0323486328125, -0.00984954833984375, -0.04071044921875, 0.005779266357421875, -0.0017004013061523438, -0.10516357421875, -0.035400390625, 0.0263824462890625, -0.0249786376953125, -0.0009765625, 0.0181427001953125, -0.043609619140625, 0.0338134765625, -0.01509857177734375, -0.00797271728515625, -0.00307464599609375, 0.0095062255859375, -0.002254486083984375, -0.01238250732421875, 0.02203369140625, -0.0227813720703125, -0.07928466796875, -0.031280517578125, 0.0291748046875, -0.0026035308837890625, -0.05401611328125, 0.03131103515625, 0.0182647705078125, -0.024627685546875, -0.09539794921875, 0.0307769775390625, -0.05072021484375, -0.067626953125, 0.036712646484375, 0.041778564453125, -0.032379150390625, -0.0021419525146484375, 0.047882080078125, 0.00803375244140625, 0.0214385986328125, -0.06719970703125, -0.0014438629150390625, -0.0178375244140625, 0.01416778564453125, -0.012298583984375, -0.0132598876953125, -0.01142120361328125, -0.01413726806640625, 0.0147857666015625, -0.0022640228271484375, 0.024810791015625, 0.042877197265625, -0.0146636962890625, 0.00955963134765625, 0.0016345977783203125, 0.0011224746704101562, -0.00659942626953125, 0.0204010009765625, -0.0084228515625, 0.00786590576171875, -0.0139923095703125, 0.036895751953125, -0.003803253173828125, -0.01470184326171875, 0.03704833984375, 0.00632476806640625, -0.01885986328125, 0.0257415771484375, 0.01160430908203125, 0.03125, 0.011627197265625, 0.045318603515625, 0.005413055419921875, -0.003143310546875, -0.0030612945556640625, 0.0009307861328125, -0.0182647705078125, 0.004421234130859375, -0.0145721435546875, -0.00350189208984375, 0.00374603271484375, 0.01271820068359375, 0.03546142578125, -0.01528167724609375, -0.01201629638671875, -0.00734710693359375, -0.004657745361328125, 0.0079193115234375, -0.047088623046875, 0.05517578125, 0.023590087890625, 0.00019168853759765625, -0.0267333984375, 0.021942138671875, 0.005512237548828125, 0.0064849853515625, -0.05487060546875, 0.0028324127197265625, 0.002079010009765625, 0.0113525390625, 0.01824951171875, -0.01082611083984375, 0.0208282470703125, 0.0131988525390625, -0.0521240234375, 0.0049591064453125, -0.0218963623046875, 0.054290771484375, -0.0418701171875, -0.02911376953125, 0.0275421142578125, -0.00555419921875, -0.0290374755859375, -0.036895751953125, 0.0131683349609375, -0.04559326171875, -0.006687164306640625, -0.0290679931640625, -0.004444122314453125, -0.003246307373046875, -0.046142578125, -0.059478759765625, 0.09600830078125, -0.02386474609375, -0.0157470703125, -0.002132415771484375, 0.0150146484375, -0.021636962890625, 0.0684814453125, 0.0235748291015625, -0.007282257080078125, -0.005672454833984375, -0.01422882080078125, -0.0275115966796875, 0.040679931640625, 0.0247039794921875, -0.044586181640625, -0.033203125, -0.03546142578125, -0.033233642578125, -0.0082855224609375, 0.040557861328125, -0.0335693359375, 0.028045654296875, 0.0408935546875, -0.04803466796875, -0.0987548828125, -0.0231475830078125, -0.0260009765625, 0.033966064453125, -0.047119140625, -0.087646484375, -0.05718994140625, 0.0555419921875, 0.037567138671875, 0.025238037109375, -0.007335662841796875, -0.007106781005859375, -0.01214599609375, 0.000972747802734375, -0.0020389556884765625, -0.01343536376953125, -0.01482391357421875, 0.008270263671875, -0.025970458984375, -0.039886474609375, 0.051300048828125, 0.005916595458984375, -0.0323486328125, 0.0313720703125, 0.00585174560546875, -0.01483917236328125, -0.078125, -0.0239105224609375, 0.038116455078125, -0.027984619140625, -0.0270538330078125, 0.0017995834350585938, 0.0223236083984375, -0.0020656585693359375, 0.0195159912109375, -0.0161590576171875, -0.077880859375, 0.022125244140625, 0.0491943359375, -0.01355743408203125, 0.045379638671875, -0.01641845703125, -0.032440185546875, -0.025543212890625, 0.0106353759765625, 0.0234375, 0.0025386810302734375, -0.026641845703125, 0.06768798828125, 0.02606201171875, -0.0017747879028320312, -0.0093536376953125, -0.043426513671875, -0.0247955322265625, -0.002811431884765625, 0.033294677734375, 0.006072998046875, 0.0823974609375, -0.0241546630859375, 0.005710601806640625, -0.025299072265625, -0.0253143310546875, -0.0643310546875, 0.0428466796875, 0.025238037109375, -0.022216796875, 0.0430908203125 ]
71bf92c6ee875053c0554c572850d8c3e177144c
Wordpress Stackexchange Q: Get post content by ID How can I get a post's content by post id? I tried get_page('ID'); to show content but it does not work. A: You can do it multiple ways. Following are best two ways. $post_id = 5// example post id $post_content = get_post($post_id); $content = $post_content->post_content; echo do_shortcode( $content );//executing shortcodes Another method $content = get_post_field('post_content', $post_id); echo do_shortcode( $content );//executing shortcodes After Pieter Goosen suggestion on apply_filters. You can use apply_filters if you wanted the content to be filtered by other plugins. So this eliminates the need to use do_shortcode Example $post_id = 5// example post id $post_content = get_post($post_id); $content = $post_content->post_content; echo apply_filters('the_content',$content); //no need to use do_shortcode, but content might be filtered by other plugins. If you don't want to allow other plugins to filter this content and need shortcode function then go with do_shortcode. If you don't want shortcode too then just play with the post_content.
Q: Get post content by ID How can I get a post's content by post id? I tried get_page('ID'); to show content but it does not work. A: You can do it multiple ways. Following are best two ways. $post_id = 5// example post id $post_content = get_post($post_id); $content = $post_content->post_content; echo do_shortcode( $content );//executing shortcodes Another method $content = get_post_field('post_content', $post_id); echo do_shortcode( $content );//executing shortcodes After Pieter Goosen suggestion on apply_filters. You can use apply_filters if you wanted the content to be filtered by other plugins. So this eliminates the need to use do_shortcode Example $post_id = 5// example post id $post_content = get_post($post_id); $content = $post_content->post_content; echo apply_filters('the_content',$content); //no need to use do_shortcode, but content might be filtered by other plugins. If you don't want to allow other plugins to filter this content and need shortcode function then go with do_shortcode. If you don't want shortcode too then just play with the post_content. A: I'll just leave here another hacky ugly way that you may find useful sometimes. Of course methods which use API calls are always preferred (get_post(), get_the_content(), ...). global $wpdb; $post_id = 123; // fill in your desired post ID $post_content_raw = $wpdb->get_var( $wpdb->prepare( "select post_content from $wpdb->posts where ID = %d", $post_id ) ); A: $id = 23; // add the ID of the page where the zero is $p = get_page($id); $t = $p->post_title; echo '<h3>'.apply_filters('post_title', $t).'</h3>'; // the title is here wrapped with h3 echo apply_filters('the_content', $p->post_content); A: By using get_page('ID'). $page_id = 123; //Page ID $page_data = get_page($page_id); $title = $page_data->post_title; $content = $page_data->post_content;
wordpress
{ "language": "en", "length": 264, "provenance": "stackexchange_00019.jsonl.gz:462082", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213812" }
[ 0.03350830078125, -0.027191162109375, 0.0413818359375, 0.0222930908203125, -0.00212860107421875, -0.0157318115234375, 0.052642822265625, -0.038726806640625, -0.01258087158203125, 0.00823974609375, -0.050872802734375, 0.0035495758056640625, -0.05145263671875, -0.016448974609375, -0.004974365234375, -0.06549072265625, 0.033203125, -0.024566650390625, 0.0008907318115234375, -0.0244140625, 0.0002086162567138672, -0.0124053955078125, 0.02032470703125, 0.02740478515625, 0.050750732421875, -0.059783935546875, 0.04833984375, 0.006069183349609375, 0.0111083984375, -0.014007568359375, 0.029296875, -0.004608154296875, 0.0284423828125, 0.01171875, -0.033203125, 0.052276611328125, -0.0285186767578125, 0.019744873046875, 0.0090179443359375, 0.01287841796875, 0.01007843017578125, 0.0020580291748046875, 0.035003662109375, 0.017425537109375, -0.00028705596923828125, -0.0184173583984375, -0.00902557373046875, -0.0576171875, -0.0037841796875, 0.01031494140625, 0.045867919921875, 0.0165863037109375, 0.04913330078125, -0.01006317138671875, -0.0109710693359375, -0.00511932373046875, -0.0205230712890625, -0.024871826171875, 0.05023193359375, -0.039886474609375, -0.04473876953125, -0.05157470703125, 0.04461669921875, -0.01119232177734375, 0.0161285400390625, 0.01511383056640625, 0.04412841796875, 0.005924224853515625, -0.04779052734375, 0.0148162841796875, 0.040130615234375, -0.03497314453125, -0.003673553466796875, -0.024078369140625, -0.03350830078125, 0.006500244140625, -0.00045609474182128906, -0.034576416015625, -0.003139495849609375, -0.0020389556884765625, -0.0201416015625, 0.0020389556884765625, -0.058074951171875, 0.0038509368896484375, -0.0131378173828125, 0.0198822021484375, -0.0145263671875, -0.01235198974609375, -0.027557373046875, -0.01441192626953125, -0.021881103515625, 0.01055908203125, -0.02264404296875, -0.0129241943359375, -0.031280517578125, -0.02020263671875, 0.007518768310546875, 0.060516357421875, -0.0189666748046875, 0.0201568603515625, 0.00042247772216796875, -0.05206298828125, 0.07623291015625, -0.06011962890625, -0.01276397705078125, -0.0114288330078125, 0.0171661376953125, 0.01525115966796875, 0.029571533203125, 0.040924072265625, -0.0253448486328125, 0.040679931640625, -0.0196380615234375, -0.0009508132934570312, -0.03717041015625, 0.02239990234375, -0.044708251953125, -0.017822265625, -0.01959228515625, -0.006473541259765625, 0.020965576171875, 0.00959014892578125, 0.0194091796875, -0.009063720703125, -0.00940704345703125, -0.0033626556396484375, -0.043426513671875, -0.0321044921875, 0.044097900390625, 0.00308990478515625, -0.035614013671875, -0.0090179443359375, 0.053955078125, 0.0302734375, 0.03253173828125, -0.0144805908203125, -0.01352691650390625, -0.02203369140625, -0.004810333251953125, -0.0010461807250976562, -0.015289306640625, 0.00731658935546875, 0.045501708984375, -0.037261962890625, -0.01172637939453125, 0.0118560791015625, 0.01678466796875, 0.027435302734375, -0.026153564453125, -0.07098388671875, 0.03143310546875, 0.00765228271484375, 0.0206146240234375, 0.012939453125, 0.0031108856201171875, -0.016510009765625, 0.0447998046875, -0.036865234375, -0.014678955078125, -0.04644775390625, 0.06414794921875, 0.0008368492126464844, -0.01453399658203125, 0.03192138671875, -0.0195159912109375, -0.01016998291015625, -0.029205322265625, -0.0143280029296875, 0.01117706298828125, 0.037841796875, 0.040985107421875, -0.00896453857421875, -0.05816650390625, -0.01004791259765625, -0.006893157958984375, -0.0208740234375, -0.0207977294921875, 0.004940032958984375, 0.019683837890625, 0.02001953125, -0.02825927734375, -0.032012939453125, 0.0169830322265625, 0.001983642578125, -0.049652099609375, 0.060699462890625, 0.017852783203125, 0.083251953125, -0.00690460205078125, 0.0160369873046875, 0.0275115966796875, 0.0189208984375, -0.043731689453125, -0.0171051025390625, 0.01244354248046875, -0.027069091796875, -0.0240478515625, -0.03228759765625, -0.0021877288818359375, 0.035858154296875, 0.027618408203125, -0.0270538330078125, 0.03948974609375, 0.025482177734375, -0.0033359527587890625, -0.007389068603515625, -0.00734710693359375, -0.00930023193359375, 0.0162811279296875, -0.01209259033203125, 0.00803375244140625, -0.00862884521484375, -0.017120361328125, -0.01175689697265625, -0.0413818359375, 0.0411376953125, -0.03265380859375, -0.004108428955078125, -0.0246734619140625, 0.052764892578125, -0.0233917236328125, -0.01149749755859375, -0.037872314453125, 0.00583648681640625, 0.07275390625, -0.01459503173828125, 0.0072174072265625, -0.024444580078125, 0.050018310546875, 0.020843505859375, -0.05792236328125, -0.00887298583984375, 0.038818359375, 0.0168609619140625, -0.0328369140625, 0.0036907196044921875, -0.002597808837890625, -0.0562744140625, -0.0004546642303466797, 0.055450439453125, 0.0606689453125, 0.057891845703125, 0.01499176025390625, -0.040130615234375, 0.08709716796875, -0.0209197998046875, 0.0253753662109375, -0.05902099609375, 0.0308685302734375, 0.0828857421875, -0.0158843994140625, 0.006290435791015625, 0.00586700439453125, -0.02008056640625, -0.005222320556640625, 0.033050537109375, -0.0163116455078125, 0.02850341796875, -0.0150146484375, 0.006565093994140625, 0.0034332275390625, -0.0296783447265625, 0.0008339881896972656, -0.038116455078125, 0.0106048583984375, 0.05194091796875, 0.0401611328125, 0.047027587890625, -0.0275726318359375, 0.021209716796875, -0.0101318359375, 0.0149993896484375, -0.002727508544921875, 0.04571533203125, 0.00879669189453125, 0.01080322265625, -0.017608642578125, -0.0210418701171875, 0.0167236328125, 0.035552978515625, 0.020721435546875, 0.040130615234375, 0.0019140243530273438, -0.0045318603515625, 0.030975341796875, 0.0098876953125, -0.007259368896484375, 0.0120849609375, 0.007503509521484375, -0.009796142578125, -0.0193634033203125, 0.08416748046875, 0.00896453857421875, 0.045074462890625, 0.035736083984375, 0.015960693359375, 0.046356201171875, -0.04876708984375, 0.047576904296875, -0.049468994140625, 0.0164031982421875, 0.04266357421875, -0.027923583984375, 0.00507354736328125, 0.0200958251953125, 0.00975799560546875, 0.00699615478515625, -0.0062713623046875, -0.0029468536376953125, 0.034515380859375, -0.07879638671875, 0.03228759765625, 0.0282135009765625, 0.06982421875, -0.0087127685546875, -0.044677734375, -0.002346038818359375, 0.045745849609375, -0.09674072265625, -0.0855712890625, 0.0057373046875, -0.06707763671875, -0.013275146484375, -0.025604248046875, -0.03936767578125, 0.00881195068359375, -0.01387786865234375, -0.004749298095703125, 0.01079559326171875, -0.006557464599609375, -0.0806884765625, -0.008544921875, -0.06231689453125, 0.0657958984375, -0.0235443115234375, 0.0285491943359375, 0.023040771484375, 0.00769805908203125, 0.00957489013671875, -0.032684326171875, 0.021026611328125, 0.06439208984375, -0.058563232421875, -0.0309600830078125, -0.01453399658203125, -0.01406097412109375, -0.044158935546875, 0.00722503662109375, -0.01287078857421875, -0.02398681640625, 0.0211181640625, -0.01039886474609375, -0.036651611328125, 0.0231781005859375, 0.03118896484375, -0.00507354736328125, 0.01546478271484375, 0.033477783203125, 0.042388916015625, -0.02325439453125, -0.0022373199462890625, -0.035125732421875, -0.0634765625, 0.007335662841796875, 0.058807373046875, 0.0027904510498046875, -0.02392578125, -0.012603759765625, 0.01204681396484375, 0.00530242919921875, 0.013702392578125, -0.0093841552734375, 0.039520263671875, 0.0033626556396484375, 0.0298004150390625, -0.002117156982421875, -0.0018939971923828125, -0.0133209228515625, 0.012939453125, 0.004337310791015625, 0.043243408203125, 0.0102386474609375, 0.00827789306640625, -0.0171051025390625, -0.056915283203125, 0.0653076171875, 0.0276947021484375, 0.0285186767578125, -0.043548583984375, -0.058807373046875, -0.002960205078125, 0.126953125, -0.022918701171875, -0.018035888671875, -0.01519012451171875, -0.00860595703125, 0.0176239013671875, -0.03656005859375, -0.027679443359375, -0.0273284912109375, -0.04144287109375, 0.0009260177612304688, -0.0101470947265625, -0.0140838623046875, -0.0153961181640625, -0.0198822021484375, -0.0257415771484375, -0.01342010498046875, 0.0399169921875, 0.022216796875, 0.020050048828125, 0.029937744140625, -0.020355224609375, 0.04302978515625, -0.039947509765625, 0.02490234375, -0.0299835205078125, -0.0159912109375, 0.028594970703125, 0.0232391357421875, 0.01461029052734375, -0.03472900390625, -0.02777099609375, 0.01023101806640625, -0.0120849609375, 0.048431396484375, -0.004734039306640625, 0.03875732421875, -0.004459381103515625, -0.01446533203125, 0.0170745849609375, -0.0277862548828125, -0.013519287109375, -0.0012378692626953125, 0.033355712890625, 0.0518798828125, -0.047454833984375, 0.0016355514526367188, -0.04376220703125, -0.00579833984375, -0.0404052734375, -0.011199951171875, -0.040283203125, -0.01021575927734375, -0.048126220703125, 0.0032672882080078125, -0.0194244384765625, -0.059783935546875, 0.0816650390625, 0.034698486328125, -0.0160980224609375, -0.020660400390625, 0.0703125, 0.021026611328125, -0.06451416015625, -0.05230712890625, 0.0037822723388671875, 0.0298919677734375, -0.035736083984375, 0.07135009765625, 0.034942626953125, -0.0232086181640625, 0.0870361328125, -0.00508880615234375, -0.0033702850341796875, -0.018280029296875, 0.07122802734375, -0.0114593505859375, 0.00420379638671875, 0.004901885986328125, -0.021148681640625, 0.00786590576171875, 0.0274505615234375, -0.03607177734375, 0.005413055419921875, 0.0008683204650878906, 0.0265045166015625, -0.034271240234375, 0.04705810546875, -0.016998291015625, -0.0135040283203125, -0.004909515380859375, 0.038970947265625, 0.016326904296875, 0.027862548828125, 0.002712249755859375, -0.005340576171875, 0.0207061767578125, 0.0209197998046875, 0.0452880859375, 0.0291900634765625, 0.00330352783203125, 0.040985107421875, 0.024322509765625, -0.0121002197265625, 0.0073089599609375, -0.0146942138671875, 0.0755615234375, 0.001922607421875, -0.04693603515625, 0.017852783203125, -0.026214599609375, -0.0024871826171875, 0.024169921875, -0.01166534423828125, 0.004810333251953125, 0.04266357421875, -0.0151824951171875, -0.00893402099609375, 0.006618499755859375, 0.02947998046875, -0.0294952392578125, -0.013824462890625, -0.025970458984375, -0.01348114013671875, 0.01355743408203125, 0.01232147216796875, -0.0792236328125, 0.0291595458984375, 0.009429931640625, 0.041748046875, 0.03094482421875, 0.01544952392578125, 0.01861572265625, -0.0175018310546875, -0.016571044921875, -0.0032482147216796875, -0.0201416015625, -0.0290374755859375, -0.018157958984375, 0.033935546875, 0.045135498046875, -0.043975830078125, -0.015960693359375, 0.01358795166015625, -0.0150146484375, -0.01171112060546875, 0.004108428955078125, 0.002872467041015625, -0.00429534912109375, -0.032379150390625, -0.0141448974609375, 0.024322509765625, 0.042083740234375, 0.003559112548828125, 0.0015697479248046875, -0.006786346435546875, -0.009552001953125, -0.003017425537109375, -0.0333251953125, 0.01226806640625, 0.0166015625, 0.034088134765625, -0.03192138671875, -0.04803466796875, 0.0262908935546875, 0.0301666259765625, -0.01195526123046875, -0.00444793701171875, 0.062408447265625, -0.01715087890625, 0.047149658203125, -0.024139404296875, -0.0134124755859375, -0.02337646484375, -0.0013723373413085938, 0.033660888671875, 0.031341552734375, -0.01116180419921875, 0.01273345947265625, -0.041839599609375, 0.005847930908203125, -0.0050048828125, -0.0677490234375, -0.0199127197265625, -0.0218658447265625, -0.0103302001953125, 0.0219268798828125, -0.0189056396484375, 0.00151824951171875, -0.0012960433959960938, 0.0229339599609375, -0.0174560546875, 0.06463623046875, 0.017242431640625, 0.035919189453125, -0.00426483154296875, 0.048614501953125, 0.0285186767578125, 0.040130615234375, -0.01345062255859375, -0.054595947265625, 0.0034580230712890625, -0.033172607421875, -0.018157958984375, -0.0032825469970703125, 0.0215606689453125, 0.001255035400390625, -0.0014638900756835938, 0.0028057098388671875, 0.0128326416015625, -0.01751708984375, -0.00830078125, -0.0249786376953125, 0.00307464599609375, -0.0169830322265625, -0.006683349609375, -0.01153564453125, -0.04425048828125, -0.0232086181640625, -0.00513458251953125, 0.0164947509765625, 0.0035877227783203125, -0.031768798828125, -0.005168914794921875, 0.0278167724609375, 0.0027103424072265625, 0.044525146484375, 0.08038330078125, -0.012664794921875, 0.0280609130859375, 0.05157470703125, -0.013580322265625, -0.00794219970703125, 0.03485107421875, -0.0184173583984375, -0.019195556640625, 0.0638427734375, 0.01776123046875, -0.01360321044921875, 0.041168212890625, -0.03997802734375, 0.01392364501953125, 0.04241943359375, 0.058502197265625, -0.05743408203125, 0.00954437255859375, 0.0265960693359375, -0.0287322998046875, -0.01336669921875, 0.02423095703125, -0.0085906982421875, 0.009490966796875, 0.0252532958984375, -0.0012292861938476562, -0.00962066650390625, 0.031036376953125, 0.01288604736328125, -0.02117919921875, -0.007495880126953125, 0.037384033203125, 0.01261138916015625, -0.0010843276977539062, 0.00530242919921875, -0.0086212158203125, 0.034393310546875, -0.036346435546875, 0.01715087890625, -0.0086212158203125, -0.00841522216796875, -0.043670654296875, 0.024139404296875, 0.006099700927734375, 0.0053253173828125, -0.001556396484375, 0.0060882568359375, -0.0094146728515625, 0.064208984375, -0.0362548828125, 0.0204010009765625, 0.03631591796875, -0.02642822265625, 0.0067596435546875, 0.0046539306640625, 0.00594329833984375, 0.023712158203125, -0.03997802734375, 0.0092010498046875, -0.0208892822265625, 0.005245208740234375, -0.01131439208984375, -0.053253173828125, 0.09088134765625, -0.0762939453125, 0.016143798828125, 0.0260162353515625, 0.0213165283203125, -0.0164947509765625, -0.001300811767578125, 0.0234832763671875, -0.00403594970703125, 0.03753662109375, 0.0014095306396484375, 0.039459228515625, -0.017578125, -0.02081298828125, -0.08734130859375, 0.089599609375, 0.017120361328125, 0.0222930908203125, -0.01013946533203125, 0.029388427734375, -0.04119873046875, -0.0230865478515625, -0.05511474609375, 0.0653076171875, -0.005924224853515625, 0.050048828125, -0.0643310546875, -0.0087127685546875, 0.00672149658203125, 0.0304718017578125, 0.0870361328125, 0.02020263671875, -0.046661376953125, -0.0261993408203125, 0.0280609130859375, 0.037689208984375, -0.0030231475830078125, 0.0305938720703125, -0.0123291015625, 0.05389404296875, 0.05474853515625, -0.07061767578125, 0.01381683349609375, -0.0030612945556640625, -0.0103607177734375, 0.0158538818359375, 0.022918701171875, 0.006252288818359375, 0.04766845703125, -0.0184173583984375, -0.0399169921875, 0.0269317626953125, 0.038787841796875, -0.0298309326171875, -0.0236358642578125, 0.046478271484375, 0.04571533203125, -0.08209228515625, -0.0187835693359375, -0.04412841796875, 0.053131103515625, 0.03082275390625, 0.06524658203125, 0.016448974609375, 0.03472900390625, 0.0899658203125, -0.0217437744140625, 0.04840087890625, 0.0275115966796875, -0.0390625, 0.0435791015625, 0.0078277587890625, 0.00902557373046875, -0.0574951171875, 0.0023632049560546875, 0.031494140625, 0.048583984375, -0.033966064453125, 0.007602691650390625, 0.016693115234375, 0.01093292236328125, -0.009002685546875, -0.0452880859375, -0.0267486572265625, -0.0008091926574707031, 0.01045989990234375, -0.06280517578125, 0.0096282958984375, 0.039276123046875, 0.0394287109375, -0.0088043212890625, -0.01447296142578125, -0.057281494140625, -0.00958251953125, -0.049652099609375, 0.032958984375, 0.0162353515625, 0.03973388671875, -0.002410888671875, 0.058013916015625, -0.034332275390625, -0.0203704833984375, 0.0303497314453125, 0.0021800994873046875, -0.0247039794921875, -0.01496124267578125, 0.0041656494140625, -0.04522705078125, -0.02362060546875, 0.02227783203125, 0.007274627685546875, -0.017303466796875, 0.01456451416015625, 0.03497314453125, -0.0023784637451171875, -0.0311431884765625, 0.0230712890625, 0.004222869873046875, 0.0274200439453125, -0.027435302734375, -0.0234375, -0.01540374755859375, -0.034149169921875, -0.00919342041015625, -0.0298919677734375, 0.0276336669921875, -0.006195068359375, 0.05340576171875, 0.004314422607421875, 0.003192901611328125, 0.01245880126953125, -0.037445068359375, 0.01508331298828125, -0.0122528076171875, -0.07086181640625, -0.00786590576171875, -0.0162353515625, -0.0499267578125, 0.038818359375, 0.04888916015625, -0.0002741813659667969, -0.00830078125, -0.0289459228515625, 0.0041961669921875, -0.0001552104949951172, 0.0123443603515625, 0.01136016845703125, 0.03387451171875, 0.024749755859375, -0.00011247396469116211, -0.01532745361328125, -0.0198516845703125, -0.0086822509765625, 0.0352783203125, 0.037841796875, 0.018310546875, 0.01120758056640625, 0.036712646484375, -0.041748046875, 0.023895263671875, -0.053070068359375, -0.034881591796875, 0.056915283203125, -0.00415802001953125, -0.019195556640625, -0.0161285400390625, 0.0188751220703125, 0.037841796875, 0.043731689453125, -0.01085662841796875, 0.00937652587890625, -0.010101318359375, 0.01141357421875, -0.02789306640625, -0.0140380859375, -0.0244293212890625, -0.0099334716796875, -0.0382080078125, 0.00142669677734375, 0.030853271484375, 0.0231170654296875, -0.0254364013671875, 0.002841949462890625, 0.0275726318359375, -0.0256805419921875, 0.015594482421875, 0.006107330322265625, 0.038299560546875, 0.03314208984375, -0.0227203369140625, -0.01467132568359375, 0.035064697265625, -0.00566864013671875, 0.02655029296875, 0.01335906982421875, 0.0244140625, 0.0305633544921875, -0.0423583984375, 0.018463134765625, 0.00970458984375, 0.0574951171875, -0.001613616943359375, 0.01192474365234375, 0.003643035888671875, 0.006771087646484375, -0.032135009765625, -0.02783203125, -0.00800323486328125, -0.034881591796875, -0.002002716064453125, 0.00940704345703125, 0.00484466552734375, -0.0111541748046875, 0.0135040283203125, 0.00013303756713867188, 0.008514404296875, 0.00695037841796875, -0.04443359375, 0.0246429443359375, 0.0014410018920898438, 0.0015745162963867188, -0.01508331298828125, 0.0596923828125, -0.027435302734375, -0.0220184326171875, -0.06378173828125, 0.01224517822265625, -0.04754638671875, -0.0027866363525390625, -0.00640869140625, 0.01456451416015625, 0.01739501953125, -0.02325439453125, -0.00965118408203125, 0.04632568359375, 0.0023517608642578125, 0.083251953125, -0.003765106201171875, -0.01302337646484375, 0.0256195068359375, -0.0142974853515625, -0.027801513671875, -0.038421630859375, 0.022735595703125, -0.06134033203125, -0.02728271484375, -0.00972747802734375, 0.0200347900390625, 0.0355224609375, -0.016143798828125, -0.05206298828125, 0.01128387451171875, -0.004119873046875, -0.033447265625, -0.0229034423828125, -0.009552001953125, 0.0132598876953125, -0.034912109375, -0.006526947021484375, -0.036468505859375, -0.037841796875, 0.014129638671875, -0.003231048583984375, 0.02142333984375, 0.0182952880859375, 0.005390167236328125, -0.051849365234375, -0.0057373046875, -0.035552978515625, -0.0152435302734375, 0.025054931640625, -0.039031982421875, 0.035736083984375, 0.0110626220703125, -0.06695556640625, -0.04248046875, 0.00147247314453125, 0.0303192138671875, -0.01544952392578125, -0.044769287109375, -0.0256805419921875, -0.00945281982421875, 0.0772705078125, 0.03839111328125, 0.0241241455078125, -0.0452880859375, 0.01267242431640625, 0.01387786865234375, -0.03118896484375, -0.00307464599609375, 0.02264404296875, -0.05328369140625, -0.0321044921875, -0.004360198974609375, -0.023162841796875, 0.004161834716796875, -0.0262451171875, -0.0570068359375, 0.0006766319274902344, -0.04656982421875, 0.00872039794921875, -0.035003662109375, -0.006999969482421875, 0.02130126953125, -0.0186614990234375, 0.0161590576171875, -0.007495880126953125, 0.014373779296875, 0.0098724365234375, 0.01535797119140625, 0.0211944580078125, 0.008392333984375, -0.018463134765625, 0.00033092498779296875, 0.0178985595703125, 0.039306640625, 0.007541656494140625, -0.027313232421875, -0.005588531494140625, 0.0226593017578125, 0.002208709716796875, 0.0203399658203125, 0.0254669189453125, -0.01287841796875, -0.006061553955078125, 0.0026721954345703125, -0.0233154296875, 0.05804443359375, -0.0014486312866210938, 0.039825439453125, -0.01387786865234375, -0.0143890380859375, 0.0295867919921875, -0.0567626953125, -0.0042724609375, 0.0225982666015625, 0.0148162841796875, -0.02618408203125, 0.0111083984375, -0.029876708984375, 0.00922393798828125, -0.0016918182373046875 ]
635ff7e3439091328819923191e4e609bc40b379
Wordpress Stackexchange Q: Wrap post thumbnail with I'd like to wrap my post thumbnail with <figure> tags. I have tried the following and the image appears, but the <figure> tags come up empty. <?php if ( has_post_thumbnail() ) { echo '<figure>'.the_post_thumbnail('gallery').'</figure>'; } ?> I've also tried the following, but the image is missing and only the empty <figure> tags appear. <?php if ( has_post_thumbnail() ) { echo '<figure>'.get_the_post_thumbnail('gallery').'</figure>'; } ?> UPDATE For anyone wanting the full code from the answer, here it is: <?php if ( has_post_thumbnail() ) { echo '<figure>'.get_the_post_thumbnail( $page->ID, 'gallery').'</figure>'; } ?> A: Use get_the_post_thumbnail( $id, $size ) if you're going to echo the result. And make sure you have post thumbs enabled. add_theme_support( 'post-thumbnails' );
Q: Wrap post thumbnail with I'd like to wrap my post thumbnail with <figure> tags. I have tried the following and the image appears, but the <figure> tags come up empty. <?php if ( has_post_thumbnail() ) { echo '<figure>'.the_post_thumbnail('gallery').'</figure>'; } ?> I've also tried the following, but the image is missing and only the empty <figure> tags appear. <?php if ( has_post_thumbnail() ) { echo '<figure>'.get_the_post_thumbnail('gallery').'</figure>'; } ?> UPDATE For anyone wanting the full code from the answer, here it is: <?php if ( has_post_thumbnail() ) { echo '<figure>'.get_the_post_thumbnail( $page->ID, 'gallery').'</figure>'; } ?> A: Use get_the_post_thumbnail( $id, $size ) if you're going to echo the result. And make sure you have post thumbs enabled. add_theme_support( 'post-thumbnails' ); A: The feature became available with Version 2.9. Note that you can optionally pass a second argument with an array of the Post Types for which you want to enable this feature. add_theme_support( 'post-thumbnails' ); add_theme_support( 'post-thumbnails', array( 'post' ) ); // Posts only add_theme_support( 'post-thumbnails', array( 'page' ) ); // Pages only add_theme_support( 'post-thumbnails', array( 'post', 'movie' ) ); // Posts and Movies This feature must be called before the init hook is fired. That means it needs to be placed directly into functions.php or within a function attached to the 'after_setup_theme' hook. NOTE: For custom post types, you can also add post thumbnails using the register_post_type function as well.
wordpress
{ "language": "en", "length": 228, "provenance": "stackexchange_00019.jsonl.gz:462094", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/213857" }
[ 0.0694580078125, -0.0009202957153320312, 0.030059814453125, -0.0193634033203125, 0.036102294921875, -0.0130157470703125, 0.06597900390625, -0.050201416015625, 0.00875091552734375, -0.0018777847290039062, -0.0273895263671875, 0.0011911392211914062, -0.05328369140625, -0.0255584716796875, -0.0123138427734375, -0.027069091796875, 0.057037353515625, -0.0183258056640625, 0.06646728515625, 0.0082550048828125, 0.0302734375, 0.049346923828125, 0.06640625, 0.0209808349609375, 0.033935546875, -0.033782958984375, 0.0723876953125, -0.0283966064453125, 0.01291656494140625, -0.0240478515625, 0.02935791015625, -0.01343536376953125, 0.0296173095703125, 0.0242156982421875, -0.047637939453125, 0.0135345458984375, -0.00939178466796875, -0.01396942138671875, -0.032257080078125, 0.0643310546875, -0.0044708251953125, 0.0291900634765625, 0.03131103515625, -0.013580322265625, -0.0086669921875, 0.00977325439453125, -0.053253173828125, -0.054901123046875, -0.01654052734375, -0.046295166015625, 0.032196044921875, -0.00556182861328125, 0.04193115234375, -0.0265045166015625, -0.02880859375, 0.03668212890625, -0.023956298828125, -0.001987457275390625, 0.03662109375, -0.04541015625, -0.0291748046875, -0.03582763671875, 0.033172607421875, 0.01371002197265625, 0.006702423095703125, 0.0159912109375, -0.0084991455078125, 0.007965087890625, -0.004489898681640625, 0.0016584396362304688, 0.0004374980926513672, -0.02874755859375, 0.01441192626953125, -0.04376220703125, 0.0174407958984375, 0.01171875, -0.028411865234375, -0.02874755859375, 0.0149383544921875, -0.01241302490234375, 0.0186614990234375, 0.00424957275390625, -0.0035457611083984375, -0.003986358642578125, 0.01554107666015625, 0.020904541015625, -0.00865936279296875, -0.0268096923828125, 0.004543304443359375, 0.003307342529296875, 0.00737762451171875, -0.005794525146484375, -0.0247039794921875, 0.05474853515625, 0.0142669677734375, -0.0279083251953125, 0.01004791259765625, 0.0054931640625, -0.021148681640625, 0.0190887451171875, -0.0059967041015625, -0.049896240234375, 0.0638427734375, -0.041595458984375, 0.020965576171875, 0.0036334991455078125, -0.0262603759765625, 0.01326751708984375, 0.0457763671875, 0.03338623046875, -0.0035858154296875, 0.0384521484375, -0.009490966796875, 0.01374053955078125, -0.0299224853515625, 0.002681732177734375, -0.03594970703125, 0.0076751708984375, -0.024627685546875, 0.03631591796875, 0.012969970703125, 0.033477783203125, 0.01093292236328125, -0.00013494491577148438, 0.0113677978515625, 0.047332763671875, -0.013092041015625, -0.06573486328125, 0.0213623046875, 0.0255279541015625, -0.034881591796875, -0.0103759765625, 0.0687255859375, 0.039703369140625, 0.0236358642578125, -0.02276611328125, -0.00812530517578125, -0.03790283203125, -0.01200103759765625, 0.00083160400390625, -0.0022525787353515625, -0.02490234375, 0.03558349609375, -0.032501220703125, -0.00017845630645751953, 0.0236663818359375, 0.01727294921875, 0.0185089111328125, -0.004024505615234375, -0.0677490234375, 0.04388427734375, -0.01302337646484375, 0.004558563232421875, 0.013427734375, 0.041290283203125, -0.0307159423828125, 0.056304931640625, -0.043548583984375, 0.0127105712890625, -0.03887939453125, 0.0086517333984375, -0.014862060546875, -0.00732421875, 0.003513336181640625, 0.0081787109375, 0.0211639404296875, -0.00450897216796875, 0.01445770263671875, 0.0316162109375, 0.0609130859375, 0.037841796875, -0.0288238525390625, 0.01328277587890625, 0.01116943359375, -0.022491455078125, 0.0003268718719482422, 0.004791259765625, -0.051055908203125, 0.0404052734375, 0.042938232421875, -0.036346435546875, -0.0269775390625, 0.0294189453125, -0.04156494140625, -0.034454345703125, -0.0250701904296875, 0.0283660888671875, 0.029022216796875, -0.002460479736328125, 0.03179931640625, 0.0189208984375, 0.01531982421875, -0.07318115234375, 0.0322265625, 0.0184173583984375, 0.0029773712158203125, -0.0145263671875, -0.0168914794921875, 0.0033512115478515625, -0.019378662109375, 0.0104522705078125, 0.00029659271240234375, 0.00638580322265625, -0.003627777099609375, -0.00321197509765625, -0.015167236328125, -0.0000336766242980957, 0.03173828125, -0.0226287841796875, -0.00010097026824951172, 0.030059814453125, -0.015716552734375, -0.04681396484375, 0.04791259765625, -0.01432037353515625, 0.006114959716796875, -0.02264404296875, -0.0287933349609375, -0.006961822509765625, 0.0121612548828125, 0.0016956329345703125, -0.00447845458984375, -0.02490234375, 0.002231597900390625, 0.0440673828125, 0.018157958984375, -0.038360595703125, -0.0191802978515625, -0.0357666015625, 0.043975830078125, -0.10845947265625, 0.051971435546875, 0.022979736328125, -0.00685882568359375, -0.04193115234375, 0.0014705657958984375, -0.005886077880859375, -0.0465087890625, -0.004077911376953125, 0.0567626953125, 0.04254150390625, 0.045501708984375, -0.002529144287109375, -0.00970458984375, 0.0960693359375, -0.01593017578125, 0.0098419189453125, -0.0296783447265625, -0.019317626953125, -0.018096923828125, 0.0618896484375, -0.01284027099609375, 0.01114654541015625, -0.0355224609375, 0.033721923828125, 0.00856781005859375, 0.0234222412109375, 0.0350341796875, -0.005184173583984375, 0.01493072509765625, -0.01081085205078125, 0.002674102783203125, -0.008331298828125, -0.018157958984375, 0.01102447509765625, 0.0114288330078125, 0.01471710205078125, 0.0160980224609375, -0.027587890625, 0.0076446533203125, 0.018768310546875, 0.0219879150390625, 0.005863189697265625, 0.05828857421875, 0.0103912353515625, 0.01258087158203125, -0.01505279541015625, -0.032379150390625, 0.004302978515625, 0.026580810546875, 0.006389617919921875, 0.0232391357421875, -0.0005860328674316406, 0.00957489013671875, 0.003147125244140625, -0.040374755859375, 0.0157623291015625, 0.036834716796875, -0.00647735595703125, -0.00499725341796875, -0.001934051513671875, 0.04534912109375, -0.0181427001953125, 0.05169677734375, 0.00054931640625, 0.01404571533203125, -0.045806884765625, -0.07159423828125, 0.06396484375, -0.048858642578125, 0.043304443359375, 0.0880126953125, -0.01552581787109375, 0.0386962890625, 0.006565093994140625, -0.008880615234375, -0.01090240478515625, 0.0250701904296875, 0.00020194053649902344, -0.0149993896484375, -0.0261688232421875, 0.00995635986328125, 0.025848388671875, 0.0673828125, -0.03515625, -0.03448486328125, -0.018829345703125, 0.0197906494140625, -0.051513671875, -0.039093017578125, -0.007617950439453125, -0.090087890625, -0.0244903564453125, 0.00417327880859375, -0.057861328125, -0.0018663406372070312, 0.04156494140625, 0.003936767578125, -0.05841064453125, -0.033782958984375, -0.05718994140625, -0.0836181640625, -0.088623046875, 0.046417236328125, 0.0009613037109375, 0.047332763671875, 0.0012655258178710938, 0.073974609375, 0.004154205322265625, -0.0740966796875, -0.006908416748046875, 0.031280517578125, -0.007770538330078125, 0.03448486328125, 0.0007338523864746094, 0.003543853759765625, -0.04339599609375, 0.0094146728515625, 0.001720428466796875, 0.00803375244140625, -0.0199127197265625, -0.0035381317138671875, -0.04248046875, -0.0418701171875, 0.002208709716796875, 0.048187255859375, 0.04913330078125, 0.00783538818359375, 0.056488037109375, -0.02313232421875, -0.041595458984375, -0.0286865234375, -0.0635986328125, 0.0322265625, 0.04388427734375, 0.006290435791015625, -0.0211944580078125, 0.031280517578125, 0.00946807861328125, 0.0111083984375, 0.0202178955078125, -0.0004930496215820312, 0.0293731689453125, -0.010986328125, -0.004886627197265625, -0.036895751953125, -0.0284423828125, -0.0199432373046875, 0.04498291015625, -0.019622802734375, 0.03411865234375, -0.0309295654296875, 0.0743408203125, -0.03704833984375, -0.01092529296875, 0.0224761962890625, -0.02490234375, 0.00858306884765625, -0.01318359375, -0.019287109375, -0.00640106201171875, 0.047393798828125, -0.006023406982421875, -0.026519775390625, -0.0270843505859375, 0.006549835205078125, -0.018768310546875, -0.0256500244140625, 0.00021219253540039062, -0.00815582275390625, -0.0770263671875, 0.0146942138671875, 0.0089874267578125, -0.037567138671875, 0.003849029541015625, -0.013153076171875, -0.054779052734375, -0.012664794921875, 0.003086090087890625, 0.049713134765625, -0.012908935546875, 0.014190673828125, -0.0263214111328125, 0.04388427734375, 0.004344940185546875, -0.01132965087890625, -0.09814453125, -0.022796630859375, 0.0033779144287109375, 0.09161376953125, -0.018646240234375, 0.0146331787109375, -0.047119140625, 0.04876708984375, -0.0135650634765625, -0.01107025146484375, 0.007476806640625, -0.0008878707885742188, 0.0010738372802734375, 0.039520263671875, 0.01023101806640625, 0.0008916854858398438, -0.0145263671875, -0.0280303955078125, 0.0247344970703125, 0.05194091796875, -0.0247344970703125, 0.037994384765625, -0.01544189453125, 0.01273345947265625, -0.0233917236328125, 0.00024437904357910156, 0.044525146484375, 0.031768798828125, 0.00855255126953125, -0.0013933181762695312, -0.0198211669921875, -0.01678466796875, 0.037139892578125, 0.0211029052734375, -0.022674560546875, 0.01378631591796875, 0.07672119140625, 0.001251220703125, -0.005107879638671875, -0.096435546875, 0.02239990234375, 0.023162841796875, -0.0187530517578125, 0.0362548828125, 0.0151214599609375, -0.005786895751953125, -0.0016832351684570312, -0.0038299560546875, -0.0049285888671875, -0.04620361328125, 0.09844970703125, -0.01837158203125, -0.006244659423828125, 0.01221466064453125, -0.02984619140625, 0.02008056640625, 0.0214080810546875, -0.026275634765625, 0.0125274658203125, -0.0177001953125, 0.0189666748046875, -0.0113372802734375, 0.0015077590942382812, -0.029541015625, -0.0184173583984375, 0.00731658935546875, -0.005443572998046875, 0.0210418701171875, 0.0298004150390625, 0.000037789344787597656, 0.01013946533203125, 0.0007138252258300781, 0.018951416015625, 0.0054779052734375, -0.004001617431640625, -0.004901885986328125, 0.05401611328125, -0.0178070068359375, 0.025787353515625, 0.00958251953125, 0.006107330322265625, -0.00035858154296875, 0.01004791259765625, -0.02252197265625, -0.031524658203125, 0.0010318756103515625, 0.0129852294921875, -0.01438140869140625, 0.0015764236450195312, 0.042205810546875, -0.005336761474609375, -0.0220184326171875, -0.0152587890625, -0.0281219482421875, -0.02764892578125, -0.03961181640625, -0.00014007091522216797, 0.0192718505859375, -0.0283050537109375, 0.05047607421875, -0.017730712890625, 0.0158538818359375, 0.00936126708984375, -0.017578125, -0.0010385513305664062, -0.01235198974609375, 0.038665771484375, 0.007572174072265625, 0.00852203369140625, -0.024658203125, 0.030792236328125, 0.03204345703125, -0.0305328369140625, -0.0205230712890625, 0.0296478271484375, 0.036407470703125, -0.024566650390625, -0.0082855224609375, 0.006694793701171875, 0.01427459716796875, -0.0145111083984375, -0.0025806427001953125, -0.00749969482421875, -0.0259857177734375, -0.0043792724609375, -0.0006771087646484375, 0.00611114501953125, 0.0035858154296875, -0.0276031494140625, 0.03936767578125, -0.0045013427734375, 0.0235748291015625, -0.0037555694580078125, -0.0372314453125, 0.0179595947265625, 0.032562255859375, -0.0183258056640625, -0.00371551513671875, -0.029388427734375, 0.0261688232421875, -0.0225067138671875, -0.0261993408203125, -0.0081024169921875, 0.0633544921875, -0.0633544921875, 0.03045654296875, -0.00965118408203125, -0.01036834716796875, -0.042572021484375, 0.02264404296875, 0.043914794921875, 0.05230712890625, -0.0308837890625, -0.00016558170318603516, -0.039154052734375, -0.004039764404296875, 0.043212890625, -0.00661468505859375, -0.0293121337890625, -0.03607177734375, 0.00623321533203125, 0.03607177734375, -0.0011615753173828125, -0.0014352798461914062, -0.007663726806640625, 0.004009246826171875, 0.0015573501586914062, 0.0560302734375, 0.0163726806640625, 0.006542205810546875, -0.002132415771484375, 0.046844482421875, 0.006832122802734375, -0.01126861572265625, -0.020721435546875, -0.0283355712890625, -0.008697509765625, -0.07720947265625, 0.0083465576171875, 0.0157470703125, -0.0292510986328125, 0.0093841552734375, 0.01021575927734375, 0.0167999267578125, -0.0390625, -0.0036563873291015625, -0.01265716552734375, -0.008636474609375, 0.047943115234375, 0.0274658203125, -0.0277862548828125, 0.02532958984375, -0.021636962890625, 0.0157318115234375, -0.0074005126953125, 0.0172882080078125, -0.01276397705078125, -0.032073974609375, -0.01161956787109375, 0.0472412109375, 0.03277587890625, 0.024017333984375, 0.06951904296875, -0.01262664794921875, 0.03692626953125, 0.043487548828125, 0.01007843017578125, -0.003200531005859375, 0.005199432373046875, -0.006168365478515625, 0.01019287109375, 0.0777587890625, 0.022003173828125, -0.003173828125, 0.06927490234375, -0.0273590087890625, 0.0214996337890625, -0.0250396728515625, 0.0141754150390625, 0.0268402099609375, 0.0198211669921875, 0.0157318115234375, -0.04351806640625, 0.044708251953125, -0.031890869140625, -0.01425933837890625, -0.00557708740234375, 0.055389404296875, -0.01317596435546875, -0.0272979736328125, 0.006381988525390625, -0.00861358642578125, -0.0208740234375, -0.0018663406372070312, 0.0270538330078125, 0.041259765625, -0.09674072265625, 0.05108642578125, 0.07647705078125, -0.00757598876953125, -0.0152130126953125, 0.007366180419921875, -0.028533935546875, -0.016265869140625, -0.07159423828125, -0.032135009765625, -0.0105438232421875, 0.0033416748046875, 0.0194244384765625, 0.043121337890625, 0.00421142578125, 0.044219970703125, -0.00283050537109375, 0.00882720947265625, 0.0300140380859375, -0.056793212890625, 0.0034046173095703125, 0.021759033203125, 0.0258331298828125, 0.0298309326171875, -0.03350830078125, 0.018218994140625, -0.032806396484375, 0.005096435546875, -0.01364898681640625, -0.00806427001953125, 0.081787109375, -0.023284912109375, -0.030792236328125, 0.0035037994384765625, 0.04620361328125, 0.01165771484375, -0.0231475830078125, 0.035552978515625, -0.0191802978515625, 0.0275726318359375, 0.004619598388671875, 0.0223541259765625, -0.01502227783203125, -0.034271240234375, -0.08099365234375, 0.072265625, -0.022491455078125, 0.05340576171875, 0.00013697147369384766, 0.011749267578125, 0.006256103515625, -0.0025005340576171875, -0.0298919677734375, 0.0160064697265625, -0.03253173828125, 0.0268402099609375, -0.0509033203125, 0.0118560791015625, -0.00669097900390625, 0.0103759765625, -0.0012483596801757812, 0.0015230178833007812, -0.0225677490234375, 0.01296234130859375, 0.058502197265625, 0.04052734375, 0.022613525390625, 0.0005640983581542969, -0.00481414794921875, 0.043731689453125, 0.01119232177734375, -0.051513671875, 0.02520751953125, -0.00453948974609375, -0.04339599609375, 0.0288543701171875, 0.00496673583984375, -0.006732940673828125, -0.007411956787109375, 0.0228424072265625, -0.04541015625, -0.0018033981323242188, 0.043304443359375, -0.0616455078125, 0.006427764892578125, 0.06817626953125, 0.0289764404296875, -0.0262603759765625, -0.06158447265625, -0.012420654296875, 0.041107177734375, -0.0021457672119140625, 0.030609130859375, 0.0129852294921875, 0.0158843994140625, 0.0223846435546875, 0.003841400146484375, 0.01522064208984375, 0.024444580078125, -0.0046539306640625, 0.027862548828125, 0.0306549072265625, 0.0202789306640625, -0.0423583984375, 0.006561279296875, 0.0440673828125, 0.04345703125, -0.0276947021484375, -0.034637451171875, 0.00977325439453125, -0.01031494140625, -0.000560760498046875, -0.01056671142578125, -0.0191192626953125, -0.032318115234375, 0.005802154541015625, -0.05108642578125, -0.00337982177734375, 0.038665771484375, 0.0538330078125, -0.00917816162109375, -0.0204925537109375, -0.0623779296875, -0.031005859375, -0.0252838134765625, 0.00592041015625, 0.018768310546875, 0.047760009765625, 0.004711151123046875, 0.042388916015625, -0.027313232421875, -0.0035762786865234375, 0.00601959228515625, 0.0080108642578125, -0.0128326416015625, -0.0189361572265625, -0.020233154296875, -0.049896240234375, 0.0060882568359375, 0.027801513671875, -0.004207611083984375, -0.0193023681640625, -0.006622314453125, 0.033477783203125, -0.01068878173828125, -0.0174713134765625, 0.043304443359375, -0.005695343017578125, 0.0019855499267578125, -0.025115966796875, 0.04974365234375, 0.048095703125, 0.0005974769592285156, 0.009063720703125, -0.00737762451171875, 0.08935546875, -0.0462646484375, 0.029205322265625, -0.004817962646484375, -0.027099609375, 0.01262664794921875, -0.03570556640625, 0.0579833984375, -0.023193359375, -0.034881591796875, 0.0096893310546875, -0.007110595703125, -0.054718017578125, -0.01349639892578125, 0.019378662109375, -0.0202178955078125, 0.01190948486328125, 0.0005712509155273438, -0.007781982421875, 0.034515380859375, -0.0168304443359375, -0.0006356239318847656, 0.0219268798828125, 0.0300445556640625, 0.01514434814453125, -0.034912109375, -0.054168701171875, -0.030914306640625, 0.06610107421875, 0.015625, 0.017578125, -0.00637054443359375, 0.0462646484375, -0.00267791748046875, 0.023101806640625, -0.042144775390625, -0.0002772808074951172, -0.01409912109375, -0.007144927978515625, 0.0177459716796875, -0.0211181640625, -0.001773834228515625, 0.0277557373046875, 0.0179595947265625, -0.004978179931640625, -0.0289154052734375, 0.0016231536865234375, 0.01629638671875, 0.047119140625, 0.0472412109375, -0.01220703125, -0.044708251953125, -0.03778076171875, 0.004070281982421875, 0.0010595321655273438, -0.0015506744384765625, 0.001689910888671875, 0.03643798828125, 0.0310821533203125, -0.0035228729248046875, 0.017913818359375, -0.02911376953125, 0.041412353515625, 0.054168701171875, -0.0212554931640625, -0.045440673828125, -0.0577392578125, -0.031005859375, -0.0155487060546875, -0.004673004150390625, 0.0205230712890625, -0.037933349609375, -0.0010890960693359375, -0.0196533203125, 0.0212860107421875, 0.019683837890625, -0.018035888671875, 0.01348876953125, -0.0017118453979492188, -0.029052734375, -0.00244140625, -0.0189056396484375, -0.0210723876953125, -0.059722900390625, -0.0129547119140625, 0.0308990478515625, -0.0543212890625, -0.00115203857421875, -0.060546875, -0.042083740234375, 0.027130126953125, 0.0196380615234375, -0.0191497802734375, 0.006168365478515625, 0.019256591796875, -0.035308837890625, -0.00894927978515625, 0.004680633544921875, 0.016143798828125, 0.057708740234375, 0.00005513429641723633, -0.00579071044921875, -0.00525665283203125, 0.0216522216796875, 0.0009336471557617188, 0.0477294921875, 0.04266357421875, -0.047821044921875, -0.031768798828125, 0.08026123046875, 0.042999267578125, 0.1136474609375, 0.01459503173828125, -0.0265655517578125, -0.0201568603515625, -0.0010051727294921875, -0.018707275390625, -0.0030536651611328125, 0.038116455078125, -0.0325927734375, -0.04144287109375, -0.0263824462890625, -0.0025310516357421875, -0.001949310302734375, -0.050323486328125, -0.09588623046875, 0.051788330078125, -0.0253448486328125, -0.048828125, -0.03857421875, -0.009735107421875, -0.0106048583984375, 0.022308349609375, -0.001171112060546875, -0.023590087890625, -0.009857177734375, 0.03948974609375, 0.021331787109375, -0.0034656524658203125, 0.0411376953125, -0.029266357421875, 0.004093170166015625, 0.005031585693359375, 0.0277099609375, -0.0014467239379882812, 0.004741668701171875, -0.0157623291015625, 0.02685546875, 0.0614013671875, -0.0291290283203125, -0.0706787109375, -0.0215606689453125, -0.03521728515625, 0.01482391357421875, -0.0396728515625, -0.0179901123046875, -0.026123046875, 0.038055419921875, -0.0060882568359375, 0.00817108154296875, -0.006946563720703125, -0.01152801513671875, 0.0010995864868164062, -0.032257080078125, -0.0012369155883789062, 0.0227203369140625, -0.0751953125, -0.00861358642578125, 0.0217132568359375, 0.0155181884765625, 0.0011987686157226562, 0.0219268798828125, -0.01136016845703125, -0.0137939453125, 0.011810302734375, 0.00984954833984375, -0.08502197265625, 0.0019931793212890625, 0.06854248046875, -0.0562744140625, 0.0021228790283203125, -0.04400634765625, 0.03125, 0.035400390625, -0.0819091796875, 0.003170013427734375, 0.0281982421875, -0.0193328857421875, -0.00521087646484375, 0.0206451416015625, -0.025054931640625, 0.0089874267578125, 0.01351165771484375, -0.0260467529296875, 0.00927734375, 0.0222320556640625, 0.03271484375, 0.0183563232421875, -0.0043487548828125, 0.043121337890625, -0.019378662109375, -0.01727294921875, -0.007232666015625, -0.00885772705078125, 0.01161956787109375, -0.01206207275390625, 0.0031280517578125, 0.043670654296875, -0.0256500244140625, -0.00778961181640625, 0.01849365234375, -0.048736572265625, -0.050567626953125, 0.00954437255859375, -0.0306243896484375, 0.00531005859375, 0.01216888427734375 ]
58b4612dbb5941bee6d53c4570545f95a33fa9f5
Wordpress Stackexchange Q: Use thumbnail image using url of that image I have the URL of my image and I want to display the thumbnail of that image. Is this possible. I check the_post_thumbnail() function but I can't add the URL of the image as an input. A: Get the image ID from the URL with attachment_url_to_postid(): $image_id = attachment_url_to_postid( $image_url ); Convert the ID to the thumbnail image URL with wp_get_attachment_image_src: $thumbnail_url = wp_get_attachment_image_src( $image_id, 'thumbnail' );
Q: Use thumbnail image using url of that image I have the URL of my image and I want to display the thumbnail of that image. Is this possible. I check the_post_thumbnail() function but I can't add the URL of the image as an input. A: Get the image ID from the URL with attachment_url_to_postid(): $image_id = attachment_url_to_postid( $image_url ); Convert the ID to the thumbnail image URL with wp_get_attachment_image_src: $thumbnail_url = wp_get_attachment_image_src( $image_id, 'thumbnail' );
wordpress
{ "language": "en", "length": 76, "provenance": "stackexchange_00019.jsonl.gz:462151", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/214077" }
[ 0.1116943359375, -0.00740814208984375, 0.0716552734375, -0.031524658203125, 0.02178955078125, -0.023193359375, 0.089599609375, -0.05462646484375, 0.032073974609375, 0.01512908935546875, -0.003612518310546875, -0.0284881591796875, -0.0211181640625, -0.0287628173828125, -0.050567626953125, -0.029052734375, 0.046539306640625, -0.0200042724609375, 0.033935546875, 0.015869140625, 0.00685882568359375, 0.042724609375, 0.027587890625, 0.01309967041015625, 0.048858642578125, -0.01355743408203125, 0.0215301513671875, 0.0006232261657714844, 0.003681182861328125, -0.003406524658203125, 0.035369873046875, -0.0126495361328125, -0.0095977783203125, 0.00788116455078125, 0.0252838134765625, 0.00789642333984375, 0.0250091552734375, -0.00511932373046875, 0.0172576904296875, 0.02459716796875, 0.022216796875, -0.005237579345703125, -0.003940582275390625, 0.00025773048400878906, -0.01055145263671875, -0.0224761962890625, 0.01354217529296875, -0.0300750732421875, -0.00927734375, 0.031585693359375, 0.04913330078125, 0.0278472900390625, 0.05133056640625, 0.00487518310546875, -0.01100921630859375, -0.01216888427734375, -0.01214599609375, 0.0184173583984375, 0.041412353515625, -0.03399658203125, -0.04388427734375, -0.01018524169921875, 0.0266876220703125, 0.005096435546875, 0.01354217529296875, -0.0101776123046875, -0.024993896484375, 0.0184173583984375, -0.032684326171875, -0.00841522216796875, 0.0232391357421875, -0.032562255859375, -0.00970458984375, -0.03338623046875, -0.0177154541015625, 0.03851318359375, 0.00783538818359375, -0.0100555419921875, -0.0046844482421875, -0.005413055419921875, 0.003353118896484375, -0.024658203125, -0.059814453125, 0.0267181396484375, 0.005718231201171875, 0.06365966796875, -0.006923675537109375, -0.03289794921875, -0.0220489501953125, -0.01285552978515625, -0.02557373046875, -0.005069732666015625, -0.03924560546875, 0.0172576904296875, -0.0026569366455078125, -0.0228118896484375, 0.0321044921875, 0.01467132568359375, 0.00423431396484375, 0.00811004638671875, 0.0096282958984375, -0.050048828125, 0.043853759765625, -0.03704833984375, -0.005374908447265625, 0.0136871337890625, 0.012664794921875, 0.0154571533203125, 0.015625, 0.024078369140625, -0.020721435546875, 0.019622802734375, 0.0059814453125, -0.00743865966796875, -0.027740478515625, 0.0081024169921875, -0.030670166015625, 0.00749969482421875, -0.01154327392578125, 0.014984130859375, 0.005916595458984375, 0.01009368896484375, 0.025665283203125, 0.0005135536193847656, -0.006366729736328125, 0.005794525146484375, -0.0203704833984375, -0.049224853515625, -0.006755828857421875, -0.0224609375, -0.048065185546875, 0.0310516357421875, 0.0670166015625, 0.035430908203125, 0.0261077880859375, 0.0023822784423828125, -0.0201873779296875, -0.028839111328125, -0.00963592529296875, 0.020111083984375, -0.01000213623046875, -0.027099609375, 0.040283203125, -0.0145416259765625, 0.020904541015625, 0.03851318359375, -0.007366180419921875, 0.00815582275390625, 0.01195526123046875, -0.06170654296875, 0.0289306640625, -0.04949951171875, -0.0117340087890625, 0.0306549072265625, 0.055511474609375, -0.028594970703125, 0.0704345703125, -0.0396728515625, 0.032806396484375, -0.02606201171875, 0.034088134765625, 0.01395416259765625, 0.01537322998046875, 0.0244598388671875, 0.005706787109375, -0.004154205322265625, -0.0435791015625, 0.0003771781921386719, 0.01099395751953125, 0.030792236328125, 0.016357421875, -0.0109100341796875, -0.0147705078125, 0.0166168212890625, 0.004306793212890625, -0.0016574859619140625, 0.012115478515625, 0.0010957717895507812, 0.002964019775390625, 0.08526611328125, 0.0160064697265625, -0.031646728515625, 0.016815185546875, -0.00933074951171875, -0.031829833984375, 0.0164337158203125, -0.01171112060546875, 0.0160064697265625, 0.0321044921875, 0.004276275634765625, 0.003772735595703125, 0.00986480712890625, -0.032562255859375, 0.033050537109375, 0.0118255615234375, -0.01329803466796875, -0.046600341796875, -0.01251983642578125, -0.0206756591796875, -0.017730712890625, 0.046966552734375, 0.01055908203125, -0.00618743896484375, 0.00385284423828125, -0.0628662109375, 0.012115478515625, -0.026519775390625, 0.027923583984375, 0.00013446807861328125, 0.02801513671875, 0.0027675628662109375, 0.008331298828125, -0.00580596923828125, -0.031524658203125, -0.006076812744140625, 0.024871826171875, -0.00797271728515625, -0.01242828369140625, -0.0096588134765625, 0.03692626953125, -0.04962158203125, 0.0264434814453125, -0.06280517578125, -0.005023956298828125, 0.0204925537109375, 0.006107330322265625, -0.03924560546875, -0.0174102783203125, -0.059234619140625, 0.01959228515625, -0.106201171875, 0.06207275390625, -0.02685546875, -0.0185089111328125, -0.002773284912109375, -0.00400543212890625, 0.022216796875, -0.0743408203125, 0.03369140625, 0.0487060546875, 0.04254150390625, 0.0276031494140625, 0.0007891654968261719, -0.005359649658203125, 0.07366943359375, 0.022979736328125, 0.041656494140625, -0.03802490234375, -0.01751708984375, -0.0194244384765625, 0.0278472900390625, -0.00925445556640625, 0.021484375, -0.039398193359375, -0.00391387939453125, 0.037353515625, 0.0010099411010742188, 0.0199737548828125, -0.013702392578125, 0.023406982421875, -0.0027828216552734375, 0.054962158203125, 0.0185546875, -0.0008759498596191406, -0.004077911376953125, 0.04498291015625, 0.028076171875, 0.0242767333984375, -0.017578125, 0.0271148681640625, 0.001964569091796875, -0.0296478271484375, 0.0006461143493652344, 0.0230712890625, 0.0184478759765625, -0.0090484619140625, -0.0032711029052734375, -0.01517486572265625, 0.01242828369140625, 0.00557708740234375, -0.0018892288208007812, -0.0031528472900390625, -0.0024089813232421875, 0.00566864013671875, -0.02886962890625, -0.041473388671875, 0.04815673828125, 0.0645751953125, -0.01898193359375, 0.0027599334716796875, 0.0219879150390625, 0.018798828125, -0.0211639404296875, 0.023651123046875, -0.0225372314453125, 0.004070281982421875, -0.00894927978515625, -0.0389404296875, 0.052490234375, -0.041229248046875, 0.040069580078125, 0.07537841796875, -0.03753662109375, 0.0455322265625, 0.0105133056640625, -0.01544952392578125, -0.0104217529296875, 0.0282440185546875, 0.01104736328125, 0.01483917236328125, -0.06756591796875, 0.00787353515625, 0.013092041015625, 0.06353759765625, -0.028350830078125, -0.051666259765625, 0.01152801513671875, 0.00728607177734375, -0.0811767578125, -0.07061767578125, -0.018341064453125, -0.07098388671875, -0.03363037109375, 0.0126190185546875, -0.047760009765625, 0.028533935546875, 0.03436279296875, -0.002780914306640625, -0.00390625, -0.0204620361328125, -0.05340576171875, -0.04559326171875, -0.07525634765625, -0.0084381103515625, -0.01490020751953125, 0.02783203125, 0.010101318359375, 0.0047607421875, -0.00656890869140625, -0.03485107421875, 0.018035888671875, 0.06109619140625, 0.0006880760192871094, -0.023529052734375, -0.007175445556640625, -0.004413604736328125, -0.03399658203125, -0.0029144287109375, 0.0450439453125, 0.022430419921875, -0.032012939453125, 0.0267333984375, -0.032867431640625, -0.004878997802734375, -0.0034027099609375, 0.0220794677734375, 0.034423828125, 0.0052490234375, 0.0160064697265625, -0.029022216796875, -0.0018720626831054688, -0.0281982421875, -0.053924560546875, -0.0011358261108398438, 0.03973388671875, 0.00446319580078125, -0.0254974365234375, -0.005977630615234375, 0.00708770751953125, 0.0032520294189453125, 0.0077056884765625, -0.00562286376953125, 0.0474853515625, -0.0117034912109375, 0.006744384765625, -0.032257080078125, 0.002819061279296875, -0.00658416748046875, 0.0284271240234375, -0.0004220008850097656, 0.048583984375, -0.007061004638671875, 0.0357666015625, -0.0472412109375, -0.039154052734375, 0.04937744140625, -0.003894805908203125, 0.01543426513671875, -0.035430908203125, -0.035400390625, 0.002452850341796875, 0.09912109375, -0.00616455078125, -0.0236663818359375, -0.0152130126953125, 0.0149078369140625, -0.01290130615234375, -0.052001953125, -0.0152435302734375, -0.0160980224609375, -0.04974365234375, -0.005138397216796875, -0.01351165771484375, -0.0302886962890625, 0.0024318695068359375, -0.0006775856018066406, -0.02056884765625, -0.0264739990234375, 0.0240020751953125, 0.0304107666015625, -0.0030078887939453125, 0.070068359375, -0.0264434814453125, 0.082763671875, -0.0380859375, -0.0003612041473388672, -0.0706787109375, -0.020477294921875, 0.0153350830078125, 0.06890869140625, -0.0178985595703125, -0.0191497802734375, -0.0257568359375, 0.04498291015625, -0.00669097900390625, 0.049896240234375, -0.0115203857421875, 0.01399993896484375, -0.003467559814453125, -0.0079193115234375, 0.01512908935546875, -0.0201416015625, -0.0079345703125, -0.06793212890625, -0.039581298828125, -0.043701171875, -0.0362548828125, 0.0301666259765625, -0.012908935546875, -0.003208160400390625, -0.00855255126953125, 0.0218048095703125, 0.0258026123046875, 0.03936767578125, -0.004482269287109375, -0.0085296630859375, -0.00620269775390625, -0.01146697998046875, 0.027923583984375, 0.01806640625, 0.0010547637939453125, 0.0042877197265625, 0.06341552734375, -0.00046944618225097656, -0.01812744140625, -0.07440185546875, 0.0080718994140625, 0.0223541259765625, -0.006557464599609375, 0.033233642578125, 0.00705718994140625, -0.00859832763671875, 0.0178375244140625, 0.0013494491577148438, 0.003936767578125, -0.013275146484375, 0.033721923828125, 0.003978729248046875, -0.034210205078125, 0.04107666015625, 0.01532745361328125, -0.0013790130615234375, 0.040679931640625, -0.0124969482421875, -0.0247344970703125, -0.01910400390625, 0.02630615234375, -0.0318603515625, 0.037872314453125, -0.01514434814453125, -0.051483154296875, 0.0102996826171875, -0.04119873046875, 0.059539794921875, 0.04949951171875, -0.0245361328125, 0.04302978515625, 0.0270538330078125, 0.016326904296875, 0.019622802734375, 0.0190582275390625, 0.002101898193359375, 0.0526123046875, -0.017333984375, 0.006103515625, -0.0026111602783203125, -0.006984710693359375, 0.055816650390625, 0.0300140380859375, -0.0217742919921875, -0.012908935546875, -0.0081024169921875, 0.0197906494140625, -0.0214080810546875, -0.0032978057861328125, 0.01070404052734375, 0.022979736328125, -0.00562286376953125, -0.01519775390625, -0.01337432861328125, -0.0010442733764648438, -0.03070068359375, 0.01416015625, 0.0275726318359375, -0.01384735107421875, 0.02386474609375, 0.04266357421875, -0.007770538330078125, 0.0360107421875, -0.016937255859375, 0.0303802490234375, 0.02362060546875, 0.0099029541015625, 0.00710296630859375, 0.034912109375, -0.0242156982421875, 0.006511688232421875, 0.009521484375, -0.03607177734375, -0.0032138824462890625, 0.015899658203125, 0.0241546630859375, -0.007122039794921875, -0.01319122314453125, 0.01499176025390625, 0.0019407272338867188, -0.0268402099609375, 0.00005638599395751953, -0.012908935546875, -0.02215576171875, -0.0224456787109375, -0.0033416748046875, 0.0099029541015625, 0.01419830322265625, -0.03369140625, 0.003116607666015625, -0.0150299072265625, 0.0300750732421875, -0.030303955078125, -0.0023860931396484375, 0.026214599609375, 0.0173797607421875, 0.01934814453125, -0.02734375, -0.053802490234375, 0.068359375, 0.04083251953125, -0.0284576416015625, -0.033447265625, 0.061279296875, -0.01006317138671875, 0.004764556884765625, -0.02093505859375, -0.0084228515625, -0.031341552734375, -0.004520416259765625, 0.0648193359375, 0.02685546875, -0.0582275390625, -0.003177642822265625, -0.040863037109375, 0.0146636962890625, 0.04736328125, -0.0158843994140625, -0.0275421142578125, -0.0302734375, 0.0156097412109375, 0.033050537109375, -0.01171875, 0.0038433074951171875, 0.0255126953125, 0.01378631591796875, -0.00957489013671875, 0.053680419921875, -0.005222320556640625, 0.025146484375, 0.005001068115234375, 0.060272216796875, 0.0017995834350585938, -0.020599365234375, -0.035552978515625, -0.0181121826171875, -0.0308380126953125, -0.054595947265625, 0.00844573974609375, 0.04150390625, -0.01438140869140625, 0.021484375, 0.0194244384765625, 0.032257080078125, -0.00286102294921875, -0.032684326171875, -0.01293182373046875, -0.021484375, 0.056304931640625, -0.03228759765625, -0.0191650390625, 0.01296234130859375, -0.037689208984375, 0.00803375244140625, -0.00577545166015625, 0.014007568359375, -0.005077362060546875, -0.045074462890625, -0.0097198486328125, 0.0599365234375, -0.0024356842041015625, 0.048614501953125, 0.1143798828125, -0.006946563720703125, 0.0472412109375, 0.06085205078125, -0.0029010772705078125, 0.006443023681640625, 0.0576171875, -0.047332763671875, -0.0284881591796875, 0.0295562744140625, 0.0234375, -0.02197265625, 0.00868988037109375, -0.0266876220703125, 0.024566650390625, 0.0009670257568359375, 0.056304931640625, -0.0006475448608398438, 0.024658203125, 0.01509857177734375, -0.03887939453125, 0.031402587890625, 0.0103302001953125, 0.002208709716796875, 0.005584716796875, 0.051666259765625, -0.060089111328125, -0.0135040283203125, 0.00740814208984375, -0.03277587890625, -0.0013179779052734375, 0.01485443115234375, 0.0020294189453125, -0.007110595703125, -0.08453369140625, -0.029754638671875, 0.06988525390625, -0.04296875, -0.0259246826171875, 0.0193023681640625, -0.0232696533203125, 0.0214385986328125, -0.007251739501953125, 0.0413818359375, -0.03662109375, 0.036224365234375, -0.002376556396484375, 0.02996826171875, 0.022796630859375, 0.02685546875, 0.007110595703125, 0.00102996826171875, 0.01287078857421875, -0.0230865478515625, 0.06982421875, 0.0249176025390625, 0.00738525390625, 0.013580322265625, -0.0294952392578125, -0.0105133056640625, -0.02459716796875, 0.034912109375, -0.0038127899169921875, 0.034576416015625, 0.09075927734375, -0.033721923828125, -0.0258026123046875, 0.028106689453125, 0.023040771484375, -0.0084991455078125, -0.01540374755859375, -0.002292633056640625, -0.03387451171875, 0.01380157470703125, -0.020355224609375, -0.00024378299713134766, 0.00888824462890625, -0.05926513671875, -0.06939697265625, 0.07037353515625, -0.04425048828125, 0.053558349609375, 0.0128173828125, 0.01324462890625, 0.036407470703125, 0.01160430908203125, 0.0036106109619140625, 0.0004067420959472656, -0.0419921875, 0.00568389892578125, -0.0217437744140625, 0.0109710693359375, -0.00543975830078125, 0.02325439453125, 0.0498046875, 0.0152435302734375, -0.05145263671875, -0.0072784423828125, 0.056243896484375, 0.0438232421875, 0.01473236083984375, 0.0338134765625, -0.01251983642578125, -0.00939178466796875, 0.06195068359375, -0.0210723876953125, 0.0281982421875, 0.0105743408203125, -0.0021381378173828125, 0.00640106201171875, 0.00948333740234375, 0.006084442138671875, -0.004436492919921875, 0.00754547119140625, -0.05322265625, -0.005229949951171875, 0.049652099609375, -0.058135986328125, 0.0308990478515625, 0.0186004638671875, 0.024658203125, 0.02972412109375, -0.02728271484375, 0.004581451416015625, 0.04010009765625, 0.02117919921875, 0.0165252685546875, 0.01506805419921875, 0.0145721435546875, 0.04473876953125, 0.0323486328125, 0.0196380615234375, 0.05328369140625, -0.0007786750793457031, 0.054718017578125, 0.03350830078125, 0.02056884765625, -0.05218505859375, -0.009490966796875, 0.056793212890625, 0.06976318359375, -0.05267333984375, -0.03912353515625, -0.007114410400390625, 0.0001728534698486328, 0.033172607421875, -0.00562286376953125, 0.0343017578125, -0.0303955078125, -0.017059326171875, -0.029632568359375, 0.0097503662109375, 0.051971435546875, 0.03656005859375, 0.01523590087890625, 0.029815673828125, -0.09442138671875, -0.007404327392578125, -0.004589080810546875, -0.01019287109375, 0.00794219970703125, 0.0243072509765625, 0.006809234619140625, 0.0265350341796875, -0.0274505615234375, -0.006504058837890625, -0.0076751708984375, 0.048492431640625, 0.0056915283203125, 0.0086517333984375, -0.01102447509765625, -0.035736083984375, 0.0170135498046875, 0.01308441162109375, 0.0035533905029296875, 0.006755828857421875, 0.0190887451171875, 0.0184783935546875, -0.04193115234375, -0.021087646484375, 0.03826904296875, -0.021575927734375, 0.0531005859375, -0.033721923828125, 0.061065673828125, 0.029296875, -0.007965087890625, -0.027069091796875, -0.004993438720703125, 0.07373046875, -0.042999267578125, 0.0684814453125, -0.0213470458984375, -0.0034618377685546875, 0.03179931640625, -0.04925537109375, 0.061553955078125, -0.03411865234375, -0.065673828125, 0.004932403564453125, -0.0203857421875, -0.05169677734375, 0.030242919921875, 0.0301055908203125, -0.0439453125, 0.03302001953125, 0.00893402099609375, 0.00817108154296875, 0.0133514404296875, -0.01436614990234375, -0.0016431808471679688, -0.04833984375, 0.036651611328125, -0.0202789306640625, -0.03656005859375, -0.037078857421875, -0.021759033203125, 0.04425048828125, 0.02130126953125, 0.05731201171875, -0.0196380615234375, 0.02484130859375, 0.0310516357421875, 0.01142120361328125, -0.00689697265625, 0.03240966796875, -0.007030487060546875, -0.012603759765625, -0.0011529922485351562, -0.0278472900390625, 0.0003466606140136719, 0.043365478515625, 0.0087432861328125, -0.011260986328125, -0.01007080078125, -0.0126190185546875, 0.0128326416015625, 0.037811279296875, 0.023223876953125, -0.0263671875, -0.0127410888671875, -0.058685302734375, -0.0350341796875, 0.040252685546875, 0.0153656005859375, 0.01229095458984375, 0.02996826171875, 0.01342010498046875, -0.00211334228515625, 0.029296875, -0.0228729248046875, 0.041290283203125, 0.04254150390625, -0.03839111328125, -0.037017822265625, -0.00238800048828125, -0.006877899169921875, -0.0205230712890625, 0.0076904296875, 0.036651611328125, 0.01210784912109375, 0.0009326934814453125, -0.0022602081298828125, -0.0265045166015625, 0.026275634765625, -0.00804901123046875, -0.0067901611328125, -0.026458740234375, 0.0123748779296875, -0.0394287109375, -0.0091094970703125, -0.0214385986328125, -0.07122802734375, 0.005321502685546875, 0.031280517578125, -0.032928466796875, 0.0242919921875, -0.0233154296875, 0.004131317138671875, 0.03680419921875, 0.029296875, -0.06597900390625, 0.046051025390625, -0.0041351318359375, 0.0134735107421875, 0.0034198760986328125, -0.01532745361328125, 0.0036029815673828125, 0.0235443115234375, -0.03643798828125, -0.0292205810546875, -0.0245819091796875, 0.0123443603515625, -0.0211334228515625, 0.0692138671875, 0.07623291015625, -0.061859130859375, -0.01128387451171875, 0.1009521484375, 0.06304931640625, 0.15087890625, -0.02777099609375, -0.03643798828125, -0.036285400390625, 0.016326904296875, 0.003570556640625, -0.0275115966796875, 0.0184326171875, -0.040496826171875, -0.0257568359375, -0.0241851806640625, 0.00464630126953125, 0.01654052734375, -0.0419921875, -0.06561279296875, 0.016387939453125, -0.00870513916015625, -0.042388916015625, -0.0262451171875, 0.0020580291748046875, 0.006275177001953125, -0.019500732421875, -0.021392822265625, 0.00432586669921875, -0.02117919921875, 0.019989013671875, 0.01390838623046875, 0.01540374755859375, 0.01496124267578125, -0.00670623779296875, -0.0135345458984375, 0.0233612060546875, 0.0246734619140625, 0.020721435546875, 0.0114898681640625, -0.00951385498046875, 0.025238037109375, 0.03802490234375, -0.0228118896484375, -0.035186767578125, -0.0075531005859375, -0.006900787353515625, -0.0257568359375, -0.0263214111328125, -0.01078033447265625, 0.007434844970703125, 0.045806884765625, 0.0478515625, 0.01177215576171875, -0.026397705078125, -0.00646209716796875, -0.023590087890625, -0.04827880859375, -0.008209228515625, 0.0188446044921875, -0.048492431640625, 0.0006527900695800781, 0.0006694793701171875, -0.004222869873046875, 0.00252532958984375, -0.01416778564453125, -0.03204345703125, -0.007648468017578125, -0.006084442138671875, 0.0130767822265625, -0.053131103515625, 0.038116455078125, 0.0887451171875, -0.06793212890625, -0.005832672119140625, -0.01497650146484375, 0.0025501251220703125, 0.029052734375, -0.0872802734375, 0.014007568359375, 0.016998291015625, 0.004749298095703125, 0.01287841796875, 0.0203704833984375, -0.0039520263671875, -0.00521087646484375, -0.004825592041015625, -0.025238037109375, 0.030181884765625, 0.019989013671875, 0.033172607421875, -0.0017223358154296875, 0.01242828369140625, 0.0285186767578125, -0.00942230224609375, -0.0136871337890625, -0.00693511962890625, -0.023345947265625, 0.017852783203125, -0.04449462890625, 0.0117645263671875, -0.0023632049560546875, -0.03216552734375, 0.0031375885009765625, -0.00492095947265625, -0.041168212890625, -0.024169921875, -0.0182647705078125, -0.0234527587890625, -0.025665283203125, 0.005565643310546875 ]
486bd7aa5cab014d2bd2f6660f2b6c0efa1109f6
Wordpress Stackexchange Q: Allow Shortcode in Theme Customizer All theme dev who follows the wp guidelines properly, now uses ability of default wp customizer to customize their themes, instead of making a different theme option section the admin panel. But what I was unable to figure out is that how to use shortcode within that wp customizer. For example: In one of the theme I saw a section in the customizer called copyright text. Now I could manually put Copyright 2016, but what I wanted to do is to take advantage of wp shortcode. So I created a simple shortcode called year to auto fetch the current year. add_shortcode('year', function() { return date( 'Y' ); }); But when I use [year] within wp customizer, it doesn't recognize the shortcode. I know there is a way to enable shortcode for widget area, but I was thinking if there is something similar for the wp theme customizer are too. Any help will be great... A: wrap whatever you are outputting the shortcode in around do_shortcode()
Q: Allow Shortcode in Theme Customizer All theme dev who follows the wp guidelines properly, now uses ability of default wp customizer to customize their themes, instead of making a different theme option section the admin panel. But what I was unable to figure out is that how to use shortcode within that wp customizer. For example: In one of the theme I saw a section in the customizer called copyright text. Now I could manually put Copyright 2016, but what I wanted to do is to take advantage of wp shortcode. So I created a simple shortcode called year to auto fetch the current year. add_shortcode('year', function() { return date( 'Y' ); }); But when I use [year] within wp customizer, it doesn't recognize the shortcode. I know there is a way to enable shortcode for widget area, but I was thinking if there is something similar for the wp theme customizer are too. Any help will be great... A: wrap whatever you are outputting the shortcode in around do_shortcode() A: @setterGetter is right, you need to wrap it with do_shortcode() but you need to do it where the customizer field is called not inside the field within the customizer. In your case try looking in footer.php then if you're able to find where they output the code wrap it with echo do_shortcode() But that doesn't mean your shortcode will display properly, you also need to consider what type of sanitize_callback they used when they create that customizer setting. It might happen that they use some sanitize callback that will prevent your shortcode to run. A: Kirki customizer plugin seems to have a type 'code' control which appears to accept shortcodes and output them out raw through the get_theme_mod() you will need to learn a bit of how to integrate the plugin into your theme.
wordpress
{ "language": "en", "length": 306, "provenance": "stackexchange_00019.jsonl.gz:462210", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/214291" }
[ 0.0235443115234375, -0.0285491943359375, 0.0065155029296875, -0.01265716552734375, -0.0262298583984375, -0.011138916015625, 0.01073455810546875, -0.01068878173828125, 0.0038089752197265625, 0.02655029296875, -0.0015926361083984375, -0.00927734375, -0.0221710205078125, -0.0065155029296875, -0.0352783203125, -0.041748046875, 0.0238494873046875, -0.005420684814453125, 0.00888824462890625, -0.031494140625, 0.007068634033203125, -0.008270263671875, -0.007350921630859375, 0.057098388671875, 0.050567626953125, -0.01091766357421875, 0.06988525390625, -0.00555419921875, 0.040496826171875, 0.005489349365234375, 0.042755126953125, -0.0655517578125, 0.0457763671875, 0.0277557373046875, -0.0335693359375, 0.104248046875, -0.0301361083984375, 0.0162353515625, 0.00795745849609375, 0.01898193359375, 0.03265380859375, -0.0221405029296875, 0.003330230712890625, 0.00670623779296875, -0.01493072509765625, -0.0284423828125, 0.0264892578125, -0.024444580078125, -0.0161285400390625, -0.00514984130859375, 0.0084686279296875, 0.004268646240234375, 0.031768798828125, -0.043365478515625, -0.007770538330078125, -0.002048492431640625, -0.0384521484375, -0.0228271484375, 0.0333251953125, 0.0352783203125, -0.0067291259765625, -0.028778076171875, 0.01363372802734375, -0.0303955078125, 0.00179290771484375, 0.0009126663208007812, 0.01311492919921875, 0.020965576171875, -0.0143280029296875, 0.01313018798828125, 0.040008544921875, -0.017059326171875, 0.004222869873046875, -0.01568603515625, 0.031494140625, 0.01947021484375, -0.037689208984375, 0.01216888427734375, 0.044708251953125, 0.0127716064453125, 0.033843994140625, -0.037384033203125, 0.0343017578125, -0.005252838134765625, 0.006175994873046875, -0.0024547576904296875, -0.0006747245788574219, -0.0036602020263671875, -0.00733184814453125, 0.003269195556640625, -0.0196990966796875, -0.02508544921875, -0.0181884765625, 0.0148468017578125, 0.0161895751953125, -0.01727294921875, 0.0164031982421875, 0.1043701171875, -0.01434326171875, 0.051177978515625, -0.035003662109375, -0.036224365234375, 0.0386962890625, -0.07513427734375, -0.00667572021484375, 0.055908203125, 0.0079803466796875, 0.0096893310546875, 0.033477783203125, 0.00629425048828125, 0.008056640625, 0.00640869140625, -0.0188751220703125, -0.0028285980224609375, -0.024749755859375, 0.004390716552734375, -0.042877197265625, -0.003185272216796875, -0.0126800537109375, -0.0135345458984375, 0.032135009765625, 0.034088134765625, 0.03704833984375, -0.0028095245361328125, -0.02728271484375, -0.01529693603515625, -0.04949951171875, -0.048553466796875, 0.045135498046875, -0.002197265625, -0.0294189453125, -0.006053924560546875, 0.0537109375, 0.03729248046875, 0.04058837890625, -0.0163116455078125, 0.038848876953125, -0.01021575927734375, 0.0076446533203125, 0.01207733154296875, -0.0005364418029785156, -0.012969970703125, 0.0050048828125, -0.0096435546875, 0.014129638671875, 0.0189361572265625, 0.0151214599609375, 0.024322509765625, 0.019683837890625, -0.0621337890625, 0.035369873046875, 0.00030541419982910156, 0.039886474609375, 0.04461669921875, -0.030487060546875, -0.0269775390625, 0.044891357421875, -0.038330078125, 0.00765228271484375, -0.06573486328125, 0.00904083251953125, -0.009368896484375, -0.028839111328125, -0.01299285888671875, -0.034210205078125, 0.00983428955078125, -0.0098724365234375, 0.01244354248046875, 0.01708984375, 0.05224609375, -0.0019893646240234375, 0.002109527587890625, -0.016143798828125, 0.0269012451171875, -0.0007262229919433594, -0.0013599395751953125, -0.0293121337890625, 0.0259552001953125, 0.019561767578125, -0.0170745849609375, -0.004840850830078125, -0.04022216796875, 0.04351806640625, 0.01305389404296875, -0.03424072265625, -0.0208587646484375, 0.0249786376953125, 0.039337158203125, 0.00145721435546875, 0.036346435546875, 0.046905517578125, 0.0118408203125, -0.040740966796875, -0.01030731201171875, -0.0095672607421875, -0.01568603515625, -0.01554107666015625, -0.0159912109375, -0.0173187255859375, 0.042938232421875, -0.00377655029296875, -0.037200927734375, 0.01543426513671875, -0.0173492431640625, -0.032806396484375, -0.004573822021484375, -0.030548095703125, 0.018096923828125, 0.00864410400390625, -0.03289794921875, 0.0012979507446289062, -0.041595458984375, -0.0033550262451171875, -0.0007982254028320312, -0.040069580078125, 0.0123443603515625, -0.0221405029296875, 0.08837890625, 0.0225677490234375, 0.04150390625, 0.06707763671875, -0.050323486328125, 0.07244873046875, 0.0276336669921875, 0.038604736328125, -0.01508331298828125, -0.011871337890625, -0.038909912109375, 0.02642822265625, 0.0205230712890625, -0.04974365234375, 0.01087188720703125, -0.015655517578125, -0.005008697509765625, -0.0401611328125, -0.03240966796875, -0.039093017578125, -0.047119140625, 0.0226898193359375, 0.06304931640625, 0.04827880859375, 0.0295257568359375, 0.0129241943359375, -0.0177001953125, 0.061859130859375, -0.019378662109375, 0.016357421875, -0.044219970703125, 0.0020294189453125, 0.059326171875, 0.040863037109375, 0.022918701171875, -0.0240020751953125, -0.007274627685546875, -0.003307342529296875, 0.01381683349609375, -0.04388427734375, -0.022247314453125, 0.0199432373046875, -0.029998779296875, 0.019439697265625, -0.059967041015625, -0.0161590576171875, -0.03863525390625, 0.043670654296875, 0.021087646484375, 0.06396484375, 0.0479736328125, -0.0308074951171875, 0.00920867919921875, -0.004291534423828125, -0.0135040283203125, 0.005573272705078125, 0.028228759765625, 0.0433349609375, -0.020843505859375, -0.0341796875, -0.02252197265625, 0.049041748046875, 0.0181732177734375, 0.008331298828125, 0.0201416015625, -0.037872314453125, -0.01222991943359375, 0.0217437744140625, -0.046905517578125, -0.0193023681640625, 0.03289794921875, 0.017242431640625, -0.008453369140625, -0.00250244140625, 0.0670166015625, 0.0033588409423828125, 0.03936767578125, 0.062347412109375, -0.0029430389404296875, 0.0247955322265625, -0.046478271484375, 0.049835205078125, -0.0290069580078125, -0.0122833251953125, 0.06719970703125, 0.0108642578125, -0.005901336669921875, 0.0211334228515625, -0.0008668899536132812, 0.00750732421875, 0.0144500732421875, 0.0173187255859375, 0.0134429931640625, -0.05084228515625, 0.0213470458984375, 0.0266571044921875, 0.044281005859375, 0.0045623779296875, -0.0258331298828125, 0.02459716796875, 0.04119873046875, -0.0167236328125, -0.049591064453125, 0.03948974609375, -0.0253143310546875, -0.0242462158203125, -0.01947021484375, -0.0185699462890625, -0.002655029296875, -0.004436492919921875, -0.02093505859375, 0.01015472412109375, -0.044677734375, 0.0028400421142578125, -0.060333251953125, -0.06207275390625, -0.058258056640625, 0.012176513671875, -0.0194549560546875, -0.00934600830078125, 0.07135009765625, -0.000400543212890625, -0.048614501953125, -0.0265960693359375, 0.046539306640625, 0.0027008056640625, -0.007625579833984375, 0.0528564453125, -0.023529052734375, 0.033721923828125, -0.0026950836181640625, -0.0012302398681640625, 0.047698974609375, -0.037109375, -0.0254974365234375, -0.00960540771484375, -0.004016876220703125, -0.01143646240234375, 0.043060302734375, 0.01534271240234375, -0.0236663818359375, 0.01318359375, -0.052093505859375, -0.00550079345703125, 0.0177764892578125, -0.036376953125, -0.00506591796875, -0.0005707740783691406, -0.021240234375, 0.0011548995971679688, -0.00218963623046875, 0.0272979736328125, 0.02337646484375, 0.030120849609375, -0.036590576171875, 0.02703857421875, 0.031768798828125, 0.0374755859375, -0.043670654296875, 0.00016045570373535156, -0.03118896484375, 0.05023193359375, 0.0118408203125, 0.0032958984375, 0.0008168220520019531, -0.00946807861328125, -0.02044677734375, -0.05908203125, 0.059783935546875, -0.01480865478515625, 0.035888671875, -0.061431884765625, -0.0242462158203125, -0.0185394287109375, 0.098876953125, -0.039947509765625, 0.00250244140625, -0.020416259765625, -0.004947662353515625, 0.01323699951171875, 0.0022296905517578125, -0.05755615234375, -0.023162841796875, -0.0667724609375, 0.03411865234375, -0.0036716461181640625, -0.00992584228515625, -0.036346435546875, -0.006591796875, -0.04974365234375, -0.034576416015625, 0.0161285400390625, 0.0013685226440429688, 0.01511383056640625, 0.02264404296875, -0.01296234130859375, 0.0098724365234375, 0.00022542476654052734, -0.039825439453125, -0.05328369140625, -0.005054473876953125, -0.013031005859375, 0.0254058837890625, 0.0167388916015625, -0.052276611328125, -0.0201568603515625, 0.0335693359375, 0.00926971435546875, -0.0063018798828125, 0.00209808349609375, 0.00018227100372314453, -0.00980377197265625, 0.0751953125, 0.00432586669921875, 0.018951416015625, -0.00762176513671875, 0.01309967041015625, 0.0037479400634765625, 0.0474853515625, -0.039764404296875, -0.0261688232421875, -0.009674072265625, -0.0208587646484375, -0.0256805419921875, -0.01444244384765625, -0.026214599609375, 0.0271453857421875, -0.0572509765625, 0.0310516357421875, -0.0121307373046875, -0.035675048828125, 0.059112548828125, -0.00301361083984375, 0.0172576904296875, -0.00548553466796875, 0.08026123046875, 0.0074920654296875, -0.0343017578125, -0.0219573974609375, 0.0137176513671875, 0.05755615234375, -0.0178070068359375, 0.024658203125, 0.00995635986328125, -0.0606689453125, 0.062469482421875, 0.009124755859375, -0.0137939453125, -0.0159759521484375, 0.0537109375, -0.0037021636962890625, 0.0019311904907226562, -0.018096923828125, -0.02667236328125, 0.0345458984375, 0.0291290283203125, 0.0048980712890625, -0.011260986328125, 0.01319122314453125, 0.028900146484375, -0.0084075927734375, -0.008270263671875, -0.01934814453125, -0.0237274169921875, 0.01348876953125, -0.01367950439453125, 0.0240020751953125, -0.01123809814453125, 0.0179443359375, -0.0177154541015625, 0.006534576416015625, 0.01380157470703125, 0.038818359375, -0.004207611083984375, -0.023468017578125, 0.035736083984375, 0.0031719207763671875, -0.00655364990234375, 0.055450439453125, 0.006389617919921875, 0.047332763671875, 0.00798797607421875, -0.0106048583984375, -0.041259765625, -0.008880615234375, 0.004360198974609375, -0.00004112720489501953, -0.033477783203125, 0.013580322265625, 0.056915283203125, -0.0084075927734375, 0.01861572265625, -0.01432037353515625, 0.0224609375, -0.023773193359375, 0.0150604248046875, -0.021270751953125, -0.0087432861328125, -0.005611419677734375, -0.00287628173828125, -0.005931854248046875, -0.0175933837890625, -0.0070343017578125, 0.0163421630859375, 0.0251007080078125, 0.0237579345703125, 0.03216552734375, -0.020965576171875, 0.007114410400390625, -0.015106201171875, -0.0007505416870117188, -0.034454345703125, -0.01183319091796875, -0.004467010498046875, 0.034423828125, -0.037994384765625, -0.0265960693359375, 0.03094482421875, -0.0207061767578125, -0.0274810791015625, 0.006778717041015625, 0.0124969482421875, 0.025054931640625, -0.038909912109375, -0.018951416015625, 0.052154541015625, 0.05816650390625, 0.00637054443359375, -0.00531768798828125, -0.0281219482421875, -0.005706787109375, 0.0023899078369140625, -0.003612518310546875, -0.03594970703125, -0.04461669921875, 0.0228118896484375, 0.005802154541015625, -0.0213470458984375, -0.027313232421875, -0.035675048828125, -0.0114898681640625, -0.0006031990051269531, 0.0435791015625, -0.0154876708984375, 0.01540374755859375, -0.04876708984375, 0.009490966796875, -0.0065460205078125, -0.005428314208984375, 0.06585693359375, 0.0273895263671875, -0.03955078125, 0.00881195068359375, -0.03924560546875, -0.01212310791015625, -0.018280029296875, -0.03790283203125, -0.0380859375, -0.01079559326171875, 0.004772186279296875, 0.044769287109375, -0.0357666015625, -0.0236663818359375, -0.0040130615234375, 0.0159759521484375, -0.005176544189453125, 0.0985107421875, -0.0250701904296875, 0.0225982666015625, 0.02655029296875, 0.0318603515625, -0.006710052490234375, -0.00400543212890625, 0.035675048828125, -0.03558349609375, 0.0186920166015625, -0.00646209716796875, -0.0560302734375, -0.0285491943359375, -0.0147552490234375, 0.039031982421875, 0.064453125, -0.023956298828125, 0.05487060546875, -0.030609130859375, 0.01119232177734375, -0.0234832763671875, -0.00284576416015625, -0.06866455078125, 0.0182037353515625, -0.0097198486328125, -0.010406494140625, 0.005077362060546875, -0.03289794921875, -0.0533447265625, 0.042449951171875, 0.005077362060546875, 0.03228759765625, -0.005596160888671875, -0.043548583984375, 0.05535888671875, 0.0215301513671875, -0.02301025390625, 0.01561737060546875, 0.014556884765625, 0.0081939697265625, 0.0033740997314453125, 0.0158538818359375, -0.024383544921875, -0.00444793701171875, 0.0255279541015625, -0.00954437255859375, -0.0040740966796875, -0.00927734375, -0.0019254684448242188, 0.029144287109375, 0.0546875, 0.08233642578125, -0.0743408203125, 0.004077911376953125, 0.045074462890625, -0.01132965087890625, 0.03143310546875, -0.0243072509765625, -0.0016317367553710938, 0.0007982254028320312, 0.0709228515625, -0.0186767578125, -0.01543426513671875, 0.0298919677734375, 0.00250244140625, 0.008270263671875, 0.00846099853515625, 0.040008544921875, 0.0037097930908203125, -0.0118560791015625, -0.0377197265625, -0.009979248046875, -0.0029506683349609375, -0.0016736984252929688, -0.0056304931640625, -0.0156402587890625, -0.046142578125, -0.07476806640625, -0.02191162109375, -0.01393890380859375, -0.00946044921875, -0.0030155181884765625, -0.033050537109375, 0.0019626617431640625, 0.051177978515625, -0.065673828125, 0.055389404296875, 0.0099029541015625, 0.03643798828125, 0.031890869140625, -0.0267181396484375, -0.010986328125, 0.050506591796875, -0.046295166015625, 0.00400543212890625, 0.00830078125, 0.0047149658203125, -0.013885498046875, -0.0243072509765625, 0.0806884765625, -0.045806884765625, -0.01019287109375, 0.01739501953125, 0.0247650146484375, -0.01934814453125, -0.0206756591796875, 0.034820556640625, -0.050384521484375, -0.0132904052734375, 0.003971099853515625, -0.03448486328125, -0.03875732421875, -0.024383544921875, -0.0711669921875, 0.1085205078125, -0.004535675048828125, 0.029449462890625, 0.00937652587890625, 0.043182373046875, -0.011749267578125, 0.019927978515625, -0.00811767578125, 0.0304107666015625, 0.0167999267578125, 0.0016269683837890625, -0.0205841064453125, -0.00475311279296875, -0.00007981061935424805, 0.0301971435546875, 0.043060302734375, 0.003871917724609375, -0.000606536865234375, 0.0145416259765625, 0.046844482421875, 0.01032257080078125, -0.040130615234375, 0.032562255859375, -0.00328826904296875, -0.002960205078125, 0.01415252685546875, 0.0321044921875, 0.031402587890625, 0.025726318359375, -0.051910400390625, 0.038665771484375, -0.0032176971435546875, -0.0238037109375, 0.003932952880859375, -0.003173828125, -0.06317138671875, 0.01001739501953125, 0.038726806640625, -0.0176544189453125, -0.034210205078125, 0.055450439453125, 0.038421630859375, -0.055267333984375, -0.050628662109375, -0.03289794921875, 0.036468505859375, 0.01433563232421875, 0.0633544921875, -0.01161956787109375, 0.0183868408203125, -0.033538818359375, 0.006374359130859375, 0.047821044921875, 0.059906005859375, -0.09295654296875, -0.005382537841796875, -0.019256591796875, 0.0228424072265625, -0.0328369140625, -0.0182647705078125, 0.0232391357421875, 0.005527496337890625, -0.0005025863647460938, -0.0213623046875, 0.0306396484375, 0.0029659271240234375, -0.0237579345703125, -0.0063629150390625, -0.00699615478515625, 0.0005121231079101562, 0.0242919921875, -0.0241851806640625, 0.002166748046875, 0.04071044921875, 0.03106689453125, 0.01496124267578125, 0.045928955078125, -0.06646728515625, -0.01348876953125, -0.037872314453125, 0.0230560302734375, 0.0135498046875, 0.038909912109375, 0.00817108154296875, 0.0202178955078125, -0.0165252685546875, -0.00893402099609375, 0.00972747802734375, -0.00494384765625, 0.025909423828125, -0.02288818359375, 0.01033782958984375, -0.004619598388671875, 0.00974273681640625, 0.012908935546875, -0.0236663818359375, 0.0009145736694335938, 0.006893157958984375, 0.03369140625, 0.023406982421875, -0.0287933349609375, 0.055419921875, -0.01025390625, 0.0006747245788574219, -0.054962158203125, -0.005504608154296875, -0.0010251998901367188, -0.00785064697265625, 0.00009381771087646484, 0.005130767822265625, 0.016693115234375, -0.025634765625, 0.03857421875, -0.0037441253662109375, -0.0218658447265625, -0.0052032470703125, -0.0115966796875, 0.042236328125, 0.013580322265625, -0.0033416748046875, -0.02001953125, -0.021759033203125, -0.07794189453125, 0.0230255126953125, 0.047637939453125, -0.00040793418884277344, -0.01885986328125, -0.018585205078125, -0.0355224609375, -0.0166168212890625, 0.055755615234375, -0.0232696533203125, -0.0382080078125, 0.021026611328125, -0.038055419921875, -0.07965087890625, -0.03094482421875, -0.029937744140625, 0.0273590087890625, 0.0162353515625, 0.0276947021484375, 0.03216552734375, 0.01462554931640625, -0.019287109375, 0.017425537109375, -0.040374755859375, -0.031463623046875, 0.046905517578125, -0.005901336669921875, -0.0108642578125, -0.013702392578125, -0.037109375, 0.017730712890625, 0.0183563232421875, -0.011688232421875, 0.03411865234375, -0.0282440185546875, 0.0023040771484375, -0.014007568359375, 0.0116729736328125, -0.046844482421875, -0.0555419921875, -0.044830322265625, 0.003955841064453125, -0.0279388427734375, -0.043060302734375, 0.00330352783203125, -0.0245208740234375, 0.01099395751953125, -0.01971435546875, 0.023529052734375, 0.022247314453125, 0.0285797119140625, 0.0281524658203125, -0.01136016845703125, -0.00963592529296875, 0.01088714599609375, -0.008056640625, 0.0139312744140625, 0.0262298583984375, -0.007183074951171875, 0.0178070068359375, -0.00861358642578125, 0.04364013671875, 0.062255859375, 0.06982421875, -0.0109710693359375, 0.01678466796875, 0.039581298828125, -0.0161895751953125, -0.00865936279296875, -0.025299072265625, -0.0258331298828125, -0.08184814453125, 0.020904541015625, 0.0592041015625, -0.03363037109375, 0.03314208984375, -0.0548095703125, -0.003467559814453125, 0.0281829833984375, 0.0306549072265625, -0.08575439453125, 0.0438232421875, 0.00839996337890625, 0.0330810546875, 0.00374603271484375, 0.0254364013671875, -0.02252197265625, -0.0203857421875, -0.0198211669921875, -0.02435302734375, -0.041961669921875, 0.050872802734375, -0.00525665283203125, 0.0156707763671875, 0.028076171875, -0.00406646728515625, -0.04498291015625, 0.051239013671875, 0.00830078125, 0.0997314453125, -0.01727294921875, 0.0113983154296875, 0.03759765625, 0.00606536865234375, -0.054718017578125, -0.07745361328125, 0.0235595703125, -0.046478271484375, 0.014923095703125, -0.01448822021484375, -0.0193328857421875, -0.020294189453125, -0.0673828125, -0.11761474609375, -0.0218353271484375, -0.006587982177734375, -0.05712890625, -0.02166748046875, 0.01116180419921875, 0.00118255615234375, 0.01084136962890625, -0.005809783935546875, -0.01971435546875, -0.0261077880859375, 0.0014600753784179688, -0.00992584228515625, 0.0299835205078125, -0.01131439208984375, 0.0167999267578125, -0.04248046875, 0.0078887939453125, -0.02288818359375, -0.0244598388671875, 0.041717529296875, -0.032806396484375, 0.021087646484375, 0.024871826171875, -0.06793212890625, -0.0679931640625, -0.04150390625, 0.01456451416015625, 0.01531219482421875, -0.0572509765625, -0.0226593017578125, -0.047698974609375, 0.01323699951171875, 0.019866943359375, 0.006740570068359375, 0.01372528076171875, 0.016204833984375, 0.054168701171875, 0.0171661376953125, 0.0029354095458984375, 0.001041412353515625, -0.029205322265625, -0.033294677734375, -0.0179901123046875, -0.01125335693359375, -0.008270263671875, 0.021026611328125, -0.0272979736328125, -0.0018854141235351562, -0.0035190582275390625, -0.01192474365234375, -0.07623291015625, 0.0307159423828125, 0.038848876953125, -0.039031982421875, 0.003360748291015625, 0.00226593017578125, -0.002166748046875, 0.01108551025390625, -0.006511688232421875, 0.000012695789337158203, 0.01824951171875, -0.0343017578125, 0.0171661376953125, 0.0040740966796875, 0.00963592529296875, -0.0215911865234375, -0.0036983489990234375, 0.0233917236328125, 0.0141143798828125, -0.0158233642578125, 0.018218994140625, -0.0011320114135742188, 0.0270538330078125, -0.00839996337890625, -0.01206207275390625, 0.0005397796630859375, 0.03619384765625, -0.03082275390625, 0.0589599609375, -0.046142578125, -0.0152587890625, -0.03875732421875, -0.019134521484375, 0.02947998046875, 0.0240020751953125, 0.05975341796875, 0.043212890625, -0.01751708984375, -0.046173095703125, -0.00024080276489257812, -0.0166473388671875 ]
81f70e1094a4b3cf224f3735e385a75039e505ac
Wordpress Stackexchange Q: How to access the nav_menus panel with the customizer api? I want to change the priority of the menus I have created in the nav_menus panel in the WordPress customizer. I have tried all sorts of variations to: $wp_customize->get_panel( 'nav_menus' )->priority = 1; Nothing works. It seems nav_menus isn't inside the class-wp-customize-manager.php document which is why I think it doesn't work. Is there another way to access the nav_menus panel and all the menus inside that panel? A: The Nav Menus panel is added at customize_register action priority 11, so you need to set the priority at priority 12 (or above). This works for me: <?php add_action( 'customize_register', function ( \WP_Customize_Manager $wp_customize ) { $panel = $wp_customize->get_panel( 'nav_menus' ); if ( $panel ) { $panel->priority = 1; } }, 12 );
Q: How to access the nav_menus panel with the customizer api? I want to change the priority of the menus I have created in the nav_menus panel in the WordPress customizer. I have tried all sorts of variations to: $wp_customize->get_panel( 'nav_menus' )->priority = 1; Nothing works. It seems nav_menus isn't inside the class-wp-customize-manager.php document which is why I think it doesn't work. Is there another way to access the nav_menus panel and all the menus inside that panel? A: The Nav Menus panel is added at customize_register action priority 11, so you need to set the priority at priority 12 (or above). This works for me: <?php add_action( 'customize_register', function ( \WP_Customize_Manager $wp_customize ) { $panel = $wp_customize->get_panel( 'nav_menus' ); if ( $panel ) { $panel->priority = 1; } }, 12 );
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:462212", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/214293" }
[ 0.043487548828125, 0.0186767578125, 0.006732940673828125, -0.0003814697265625, 0.03533935546875, -0.0182342529296875, 0.037689208984375, -0.0615234375, -0.013092041015625, 0.019683837890625, -0.0226593017578125, -0.00647735595703125, -0.04656982421875, -0.01727294921875, -0.038421630859375, -0.0728759765625, 0.0005211830139160156, 0.0097503662109375, 0.0130462646484375, -0.0274658203125, 0.00353240966796875, -0.047454833984375, 0.05133056640625, 0.05889892578125, 0.0369873046875, -0.042205810546875, -0.0227203369140625, -0.00833892822265625, 0.0034027099609375, -0.00827789306640625, 0.01195526123046875, 0.00528717041015625, -0.0002818107604980469, -0.005542755126953125, 0.050445556640625, -0.0177001953125, 0.0112152099609375, -0.00423431396484375, 0.02587890625, 0.0006146430969238281, 0.0228271484375, -0.01110076904296875, 0.0166778564453125, 0.0202178955078125, -0.00965118408203125, -0.037506103515625, 0.019439697265625, -0.0413818359375, 0.00794219970703125, -0.0203094482421875, 0.022003173828125, -0.0172271728515625, 0.0279083251953125, -0.02740478515625, -0.019866943359375, -0.0188751220703125, -0.020172119140625, -0.01409912109375, 0.0192108154296875, 0.05908203125, 0.01171112060546875, 0.0048675537109375, -0.00977325439453125, -0.049652099609375, -0.002353668212890625, 0.042572021484375, 0.0560302734375, 0.0062103271484375, -0.018280029296875, -0.00012493133544921875, -0.0027751922607421875, -0.0278167724609375, -0.017181396484375, -0.001468658447265625, -0.0013666152954101562, -0.0205841064453125, -0.006763458251953125, -0.03826904296875, 0.0277099609375, 0.0195770263671875, 0.037200927734375, -0.0130767822265625, 0.039215087890625, 0.01418304443359375, -0.007785797119140625, 0.019561767578125, -0.0068206787109375, -0.020660400390625, 0.0106658935546875, -0.019622802734375, -0.006443023681640625, -0.0214080810546875, 0.00527191162109375, 0.03680419921875, -0.01157379150390625, -0.0152435302734375, 0.0118408203125, 0.0276336669921875, 0.017974853515625, 0.051361083984375, -0.01995849609375, -0.03558349609375, 0.0667724609375, -0.058319091796875, -0.01068878173828125, 0.0196685791015625, 0.0274505615234375, 0.06707763671875, 0.0311431884765625, 0.0300445556640625, -0.0086822509765625, 0.0033168792724609375, 0.0072021484375, -0.0207977294921875, -0.03900146484375, -0.026275634765625, -0.020050048828125, -0.026336669921875, 0.009063720703125, -0.0828857421875, -0.0233917236328125, 0.01041412353515625, -0.0279541015625, -0.00281524658203125, -0.00797271728515625, -0.02099609375, -0.0153350830078125, 0.021942138671875, -0.041290283203125, 0.03741455078125, -0.0214080810546875, -0.018585205078125, 0.0235137939453125, 0.06982421875, 0.0286102294921875, -0.0284576416015625, 0.01296234130859375, -0.0240936279296875, 0.0046844482421875, 0.0067291259765625, -0.00890350341796875, -0.00707244873046875, 0.01287078857421875, -0.0316162109375, -0.01557159423828125, -0.00656890869140625, 0.03369140625, 0.025146484375, -0.036651611328125, -0.05810546875, 0.021240234375, 0.036224365234375, 0.0301361083984375, 0.03155517578125, -0.00286102294921875, 0.0234222412109375, 0.054473876953125, -0.0240478515625, -0.032501220703125, -0.038818359375, -0.034942626953125, -0.0052642822265625, 0.009857177734375, -0.0552978515625, -0.033905029296875, 0.00524139404296875, -0.0297698974609375, 0.0107879638671875, 0.0227508544921875, 0.0167236328125, 0.0063934326171875, -0.00537109375, -0.0173187255859375, 0.052276611328125, 0.028228759765625, 0.040985107421875, 0.006237030029296875, 0.0162353515625, 0.00046253204345703125, 0.035858154296875, -0.0102081298828125, -0.05474853515625, 0.026397705078125, -0.009246826171875, -0.02862548828125, 0.016876220703125, 0.00844573974609375, 0.07098388671875, 0.015838623046875, 0.0362548828125, 0.0157623291015625, -0.006549835205078125, -0.03125, -0.00518035888671875, -0.03118896484375, -0.002735137939453125, 0.00843048095703125, 0.0211944580078125, -0.0250244140625, 0.009857177734375, -0.045623779296875, 0.01132965087890625, -0.0098724365234375, -0.0033779144287109375, -0.04339599609375, -0.009918212890625, -0.0197296142578125, 0.052642822265625, 0.03643798828125, -0.006458282470703125, -0.0160980224609375, -0.00909423828125, 0.011505126953125, -0.06060791015625, -0.043853759765625, 0.04852294921875, -0.01885986328125, 0.06805419921875, -0.02276611328125, 0.0229339599609375, -0.019500732421875, -0.055145263671875, -0.00797271728515625, 0.0146331787109375, 0.0269317626953125, 0.007244110107421875, -0.0124359130859375, -0.0090789794921875, 0.040863037109375, 0.0236968994140625, -0.009857177734375, -0.00583648681640625, 0.04925537109375, 0.040802001953125, -0.018524169921875, -0.01398468017578125, 0.02874755859375, -0.06787109375, 0.004009246826171875, 0.039306640625, 0.02447509765625, 0.019195556640625, -0.005863189697265625, 0.005481719970703125, 0.00753021240234375, -0.038421630859375, 0.007617950439453125, -0.0098724365234375, -0.015960693359375, 0.02178955078125, 0.046112060546875, -0.000949859619140625, 0.021240234375, 0.04248046875, 0.01397705078125, 0.01085662841796875, -0.0004036426544189453, -0.01055145263671875, -0.0213775634765625, 0.03070068359375, -0.002010345458984375, 0.0162506103515625, -0.0030517578125, 0.001953125, 0.0302276611328125, 0.004657745361328125, 0.00991058349609375, 0.01543426513671875, -0.0430908203125, 0.0151519775390625, 0.034759521484375, 0.0288543701171875, 0.00595855712890625, -0.019134521484375, -0.04473876953125, 0.0033054351806640625, -0.0195770263671875, 0.0204620361328125, 0.00872802734375, -0.0181121826171875, -0.024383544921875, 0.0234527587890625, 0.0252685546875, -0.01184844970703125, -0.002216339111328125, -0.0193939208984375, 0.029266357421875, -0.00995635986328125, -0.01971435546875, -0.019195556640625, 0.0232391357421875, -0.0013799667358398438, -0.025726318359375, 0.00791168212890625, -0.012847900390625, -0.01873779296875, 0.0287017822265625, 0.020355224609375, 0.00954437255859375, 0.0164337158203125, 0.0251922607421875, 0.0523681640625, 0.0158538818359375, -0.0014390945434570312, 0.01092529296875, -0.00629425048828125, 0.0181732177734375, 0.028778076171875, 0.03387451171875, -0.0155181884765625, 0.012939453125, 0.06610107421875, 0.01666259765625, -0.01165771484375, -0.0024433135986328125, -0.026153564453125, -0.0245208740234375, -0.01454925537109375, -0.10089111328125, -0.09295654296875, 0.04888916015625, -0.033355712890625, 0.0130615234375, -0.031158447265625, -0.0220184326171875, -0.0293426513671875, -0.0107574462890625, -0.00804901123046875, -0.034759521484375, -0.03082275390625, -0.004184722900390625, -0.039459228515625, -0.0489501953125, -0.006694793701171875, 0.005298614501953125, -0.00339508056640625, 0.00501251220703125, 0.05218505859375, -0.01457977294921875, -0.06597900390625, 0.0011615753173828125, 0.002086639404296875, 0.003139495849609375, 0.0433349609375, 0.058380126953125, -0.003955841064453125, 0.002422332763671875, 0.0197601318359375, 0.031768798828125, 0.0628662109375, -0.07147216796875, -0.021942138671875, -0.0233917236328125, 0.03253173828125, -0.005992889404296875, 0.095703125, 0.045196533203125, -0.0007276535034179688, 0.038360595703125, -0.0264129638671875, -0.00643157958984375, -0.01495361328125, -0.03778076171875, 0.016510009765625, 0.0243072509765625, -0.004398345947265625, -0.0103302001953125, -0.01119232177734375, 0.009613037109375, 0.0049896240234375, 0.0234832763671875, -0.0114593505859375, 0.0232391357421875, -0.01137542724609375, -0.011138916015625, -0.03546142578125, 0.043426513671875, -0.0037555694580078125, -0.01485443115234375, 0.01174163818359375, -0.0014543533325195312, -0.0135345458984375, -0.0279998779296875, -0.06195068359375, -0.04888916015625, 0.032379150390625, -0.06378173828125, 0.051239013671875, -0.0550537109375, -0.004566192626953125, -0.0064697265625, 0.10595703125, -0.06884765625, -0.034637451171875, -0.022247314453125, 0.0278472900390625, 0.016204833984375, -0.031158447265625, 0.014312744140625, -0.041778564453125, -0.1165771484375, 0.0180206298828125, 0.01007843017578125, -0.045196533203125, -0.0171051025390625, 0.006622314453125, -0.0931396484375, -0.041229248046875, 0.039581298828125, -0.02984619140625, 0.0089874267578125, 0.00803375244140625, -0.01332855224609375, -0.0290679931640625, -0.0161285400390625, -0.0185546875, -0.0826416015625, -0.00910186767578125, -0.03582763671875, 0.045806884765625, 0.01194000244140625, -0.00542449951171875, 0.017486572265625, 0.054229736328125, 0.034210205078125, 0.0119781494140625, 0.00513458251953125, 0.0077667236328125, -0.0198974609375, -0.017364501953125, 0.00579071044921875, -0.032867431640625, 0.0274505615234375, -0.0014209747314453125, -0.0684814453125, -0.0251922607421875, -0.01522064208984375, 0.007843017578125, 0.042022705078125, -0.052642822265625, -0.0931396484375, -0.057281494140625, -0.021209716796875, -0.0031032562255859375, -0.02166748046875, 0.0291900634765625, -0.047393798828125, -0.08856201171875, 0.01318359375, -0.041259765625, -0.00017714500427246094, 0.0033664703369140625, 0.048614501953125, 0.034271240234375, -0.0173187255859375, 0.04266357421875, 0.0009593963623046875, 0.02862548828125, -0.0048065185546875, 0.0281982421875, 0.0025920867919921875, -0.03857421875, 0.06280517578125, 0.01287841796875, 0.0126495361328125, 0.0247344970703125, -0.0145416259765625, 0.0335693359375, -0.0200347900390625, 0.003025054931640625, 0.035491943359375, -0.041229248046875, 0.04144287109375, 0.00864410400390625, -0.0389404296875, 0.004238128662109375, 0.0526123046875, -0.0095977783203125, -0.01110076904296875, -0.04443359375, -0.0012636184692382812, -0.0025157928466796875, 0.02484130859375, 0.0501708984375, 0.0276641845703125, 0.0015020370483398438, 0.0130615234375, 0.0198974609375, 0.0110931396484375, 0.03082275390625, 0.0274658203125, -0.005779266357421875, 0.025482177734375, 0.0229644775390625, -0.005092620849609375, 0.0214691162109375, 0.01097869873046875, 0.0360107421875, 0.01190948486328125, -0.02008056640625, -0.0704345703125, 0.01837158203125, -0.01485443115234375, -0.0184783935546875, -0.04449462890625, 0.0201873779296875, -0.0017948150634765625, -0.01485443115234375, 0.006832122802734375, -0.040069580078125, -0.0294952392578125, -0.0229949951171875, 0.02178955078125, 0.0298004150390625, -0.0247802734375, -0.0192718505859375, 0.04718017578125, 0.0279541015625, -0.003124237060546875, -0.0100860595703125, -0.0250244140625, -0.01235198974609375, 0.017059326171875, 0.005916595458984375, 0.01473236083984375, 0.0186767578125, -0.0098724365234375, 0.0728759765625, 0.00012373924255371094, 0.00861358642578125, -0.0175018310546875, 0.0102996826171875, 0.0174102783203125, 0.012420654296875, 0.00862884521484375, -0.03631591796875, -0.0216522216796875, 0.037933349609375, -0.0238800048828125, -0.050811767578125, -0.04345703125, 0.00018703937530517578, 0.04241943359375, -0.0173492431640625, -0.036163330078125, 0.052032470703125, -0.0255889892578125, 0.0233612060546875, 0.01169586181640625, -0.0413818359375, 0.0286712646484375, 0.0308685302734375, 0.0025310516357421875, 0.00958251953125, 0.032012939453125, -0.1414794921875, -0.05535888671875, -0.0160369873046875, -0.0012483596801757812, 0.07208251953125, -0.0100860595703125, 0.039794921875, -0.040069580078125, 0.0030689239501953125, -0.052215576171875, 0.0099334716796875, 0.022308349609375, 0.00736236572265625, 0.0245361328125, 0.005779266357421875, -0.0184326171875, -0.0249786376953125, -0.035064697265625, -0.047607421875, -0.0235443115234375, -0.00846099853515625, -0.00937652587890625, 0.01387786865234375, 0.02203369140625, 0.033355712890625, -0.0102081298828125, -0.0076446533203125, -0.016998291015625, -0.0111236572265625, -0.0020599365234375, 0.06298828125, -0.01456451416015625, 0.01378631591796875, 0.0062103271484375, 0.0179595947265625, -0.0211334228515625, 0.0044403076171875, -0.00455474853515625, 0.004085540771484375, 0.0026073455810546875, -0.032012939453125, 0.006374359130859375, 0.004940032958984375, 0.07342529296875, -0.0004096031188964844, 0.07550048828125, -0.029388427734375, 0.0223236083984375, -0.00804901123046875, -0.05120849609375, -0.064697265625, -0.005138397216796875, 0.0557861328125, -0.005290985107421875, 0.0259552001953125, -0.004383087158203125, 0.009552001953125, 0.0192413330078125, -0.01245880126953125, 0.038177490234375, -0.032501220703125, -0.0888671875, 0.0867919921875, 0.07183837890625, 0.026031494140625, 0.049224853515625, -0.0065155029296875, 0.0257110595703125, 0.0007886886596679688, -0.015869140625, -0.010986328125, 0.050628662109375, 0.032073974609375, -0.01247406005859375, 0.014068603515625, 0.003849029541015625, -0.00946044921875, -0.00799560546875, 0.05340576171875, 0.04901123046875, -0.07952880859375, 0.000507354736328125, 0.016357421875, 0.0174102783203125, 0.0304412841796875, -0.0012159347534179688, -0.0076141357421875, -0.0296478271484375, 0.0272979736328125, -0.043701171875, -0.0200042724609375, 0.0114593505859375, -0.019195556640625, -0.0014410018920898438, -0.005062103271484375, 0.0017404556274414062, -0.017486572265625, 0.00969696044921875, -0.056304931640625, -0.0195159912109375, -0.0290985107421875, -0.004695892333984375, -0.005489349365234375, 0.0421142578125, -0.0552978515625, -0.0528564453125, 0.035552978515625, -0.0073394775390625, -0.0246429443359375, -0.004833221435546875, -0.04986572265625, 0.0118560791015625, 0.038360595703125, -0.0513916015625, 0.033599853515625, -0.005054473876953125, -0.00624847412109375, 0.05963134765625, -0.0060882568359375, 0.0107421875, 0.002197265625, -0.04541015625, -0.0053558349609375, -0.005252838134765625, 0.006252288818359375, -0.01074981689453125, 0.00267791748046875, 0.10125732421875, -0.050384521484375, -0.01056671142578125, -0.0040740966796875, 0.00641632080078125, 0.004154205322265625, 0.0175628662109375, 0.0187530517578125, -0.03466796875, -0.01207733154296875, 0.029571533203125, 0.00409698486328125, -0.01384735107421875, 0.04254150390625, -0.02008056640625, 0.072509765625, 0.01483154296875, -0.0222015380859375, 0.0265350341796875, 0.047088623046875, -0.042999267578125, 0.0239105224609375, -0.003643035888671875, 0.03369140625, 0.01922607421875, -0.01031494140625, -0.0213623046875, 0.008453369140625, -0.0179901123046875, 0.030517578125, -0.0159912109375, -0.001743316650390625, -0.01195526123046875, 0.0107269287109375, 0.04949951171875, 0.03973388671875, 0.0289154052734375, 0.016845703125, -0.00951385498046875, -0.051910400390625, -0.01416778564453125, -0.0043182373046875, 0.0194091796875, -0.043304443359375, -0.006572723388671875, -0.00649261474609375, 0.01849365234375, 0.0200042724609375, -0.0006093978881835938, 0.044586181640625, -0.06829833984375, 0.0159454345703125, 0.045806884765625, 0.0006542205810546875, -0.03173828125, 0.0306396484375, -0.002651214599609375, -0.0098724365234375, -0.0201568603515625, -0.0198822021484375, 0.018951416015625, 0.01336669921875, 0.002288818359375, -0.02117919921875, 0.0148162841796875, -0.07073974609375, 0.00923919677734375, -0.005153656005859375, 0.055633544921875, -0.058990478515625, 0.056793212890625, 0.0167388916015625, 0.041961669921875, -0.0216827392578125, -0.03570556640625, 0.0243682861328125, 0.060577392578125, -0.027099609375, -0.045440673828125, 0.01535797119140625, 0.0175323486328125, -0.0016717910766601562, 0.0244293212890625, 0.03289794921875, -0.016143798828125, 0.0254669189453125, -0.0155792236328125, 0.0026397705078125, 0.041015625, 0.0262908935546875, 0.0016336441040039062, 0.01922607421875, -0.04193115234375, 0.00792694091796875, -0.0178375244140625, 0.0175628662109375, 0.00012409687042236328, 0.0077362060546875, -0.0191192626953125, 0.0380859375, -0.02166748046875, 0.0264129638671875, 0.0005021095275878906, 0.03759765625, -0.036376953125, 0.0160675048828125, -0.041595458984375, -0.06781005859375, -0.005062103271484375, 0.038299560546875, 0.0255889892578125, -0.0015459060668945312, 0.0224609375, 0.03369140625, 0.010833740234375, 0.0010862350463867188, 0.08062744140625, 0.0099029541015625, -0.05792236328125, -0.0215911865234375, -0.0153656005859375, 0.03436279296875, 0.0085906982421875, 0.0305938720703125, -0.00337982177734375, 0.023101806640625, -0.0295562744140625, 0.0172119140625, -0.002758026123046875, -0.0232391357421875, 0.005279541015625, -0.01099395751953125, 0.017791748046875, 0.004283905029296875, -0.07177734375, -0.044708251953125, -0.035614013671875, 0.014862060546875, 0.045318603515625, 0.05145263671875, 0.0308074951171875, -0.00664520263671875, 0.01837158203125, -0.02142333984375, -0.0018739700317382812, 0.00743865966796875, 0.016510009765625, 0.0394287109375, 0.0130615234375, 0.0270843505859375, -0.0892333984375, -0.04150390625, -0.03509521484375, 0.0199432373046875, 0.03997802734375, -0.01419830322265625, 0.057342529296875, 0.040863037109375, -0.0133819580078125, -0.0019102096557617188, -0.0271148681640625, -0.01320648193359375, 0.0007734298706054688, -0.006381988525390625, -0.0047454833984375, -0.0023288726806640625, -0.031463623046875, 0.007045745849609375, 0.059234619140625, -0.03662109375, 0.01390838623046875, -0.0078887939453125, 0.01323699951171875, -0.05523681640625, -0.01323699951171875, -0.03253173828125, -0.0273284912109375, -0.032135009765625, -0.0203094482421875, 0.0146942138671875, 0.0151519775390625, 0.01332855224609375, 0.003513336181640625, 0.0024623870849609375, -0.001689910888671875, 0.01580810546875, 0.01806640625, 0.0231781005859375, 0.0250091552734375, -0.03497314453125, 0.004306793212890625, 0.0010232925415039062, -0.0062713623046875, -0.01206207275390625, 0.035400390625, -0.040740966796875, 0.0259552001953125, -0.01367950439453125, 0.040069580078125, 0.043853759765625, 0.05145263671875, -0.0262298583984375, 0.0248260498046875, 0.0219268798828125, -0.0016298294067382812, 0.02001953125, -0.06890869140625, -0.0411376953125, -0.0577392578125, 0.01788330078125, 0.05291748046875, -0.01558685302734375, 0.0172271728515625, -0.0650634765625, 0.024169921875, 0.0241241455078125, -0.00727081298828125, -0.061981201171875, 0.052154541015625, -0.046905517578125, 0.0560302734375, -0.043121337890625, 0.0190582275390625, -0.006084442138671875, -0.0257110595703125, -0.025146484375, 0.026611328125, -0.017791748046875, 0.0146026611328125, 0.0322265625, -0.006740570068359375, 0.0226898193359375, 0.0009317398071289062, -0.0628662109375, -0.0153350830078125, -0.0264739990234375, 0.03204345703125, -0.01488494873046875, -0.0251312255859375, -0.01021575927734375, -0.00113677978515625, 0.0031719207763671875, -0.0172119140625, 0.00197601318359375, -0.029937744140625, -0.00983428955078125, -0.00464630126953125, -0.0011625289916992188, 0.00832366943359375, -0.03460693359375, -0.05712890625, 0.05157470703125, 0.0026302337646484375, -0.035125732421875, -0.038116455078125, 0.04180908203125, -0.01534271240234375, 0.014495849609375, -0.00820159912109375, -0.0182647705078125, 0.0273590087890625, 0.025848388671875, -0.0024471282958984375, 0.059539794921875, -0.01666259765625, -0.0264892578125, -0.0714111328125, 0.001956939697265625, -0.01126861572265625, 0.033294677734375, -0.0129547119140625, -0.005069732666015625, 0.02032470703125, 0.047515869140625, -0.025390625, -0.0545654296875, 0.00016045570373535156, -0.0098876953125, 0.0277557373046875, -0.012054443359375, -0.0294647216796875, -0.034088134765625, 0.0138702392578125, 0.002086639404296875, 0.0182342529296875, -0.0023212432861328125, 0.0200958251953125, 0.01540374755859375, -0.032867431640625, -0.03131103515625, 0.02032470703125, -0.073486328125, -0.047393798828125, -0.00919342041015625, -0.0452880859375, -0.03826904296875, 0.033355712890625, -0.06829833984375, 0.008636474609375, -0.0014133453369140625, 0.0009927749633789062, -0.053680419921875, -0.007617950439453125, 0.01517486572265625, -0.0277099609375, -0.021392822265625, 0.01288604736328125, 0.0193939208984375, -0.01959228515625, 0.026214599609375, -0.00821685791015625, 0.026275634765625, -0.062103271484375, 0.0028324127197265625, -0.00921630859375, 0.03240966796875, -0.05133056640625, -0.007793426513671875, -0.007328033447265625, -0.0018138885498046875, 0.004940032958984375, -0.007511138916015625, 0.0086669921875, 0.025146484375, 0.0009608268737792969, 0.01496124267578125, -0.004894256591796875, 0.081787109375, 0.01248931884765625, 0.03167724609375, -0.0010938644409179688, -0.01071929931640625, 0.04412841796875, -0.04461669921875, 0.01654052734375, 0.0276641845703125, 0.0172882080078125, 0.0049896240234375, 0.025604248046875, 0.032928466796875, 0.00807952880859375, 0.0035724639892578125 ]
479697add1d896e9d377790515a1f0964a12a317
Wordpress Stackexchange Q: Why does WordPress have a noop.php file? While configuring Ctags to recognize WordPress functions, I came across the noop.php file. Here is an excerpt: /** * @ignore */ function add_action() {} /** * @ignore */ function did_action() {} /** * @ignore */ function do_action_ref_array() {} Why does this file exist? Can I remove it to let VIM better navigate the code? A: The description on top of the page you have linked gives an explanation: Create a new file, wp-admin/includes/noop.php, which loads all of the noop functions for load-script|styles.php and is only loaded by those files. DRYs in the process. See #33813. Additionally there is the trac ticket #33813 linked, which gives some additional insight. You generally shouldn't delete core files so consider noop.php as a necessary file.
Q: Why does WordPress have a noop.php file? While configuring Ctags to recognize WordPress functions, I came across the noop.php file. Here is an excerpt: /** * @ignore */ function add_action() {} /** * @ignore */ function did_action() {} /** * @ignore */ function do_action_ref_array() {} Why does this file exist? Can I remove it to let VIM better navigate the code? A: The description on top of the page you have linked gives an explanation: Create a new file, wp-admin/includes/noop.php, which loads all of the noop functions for load-script|styles.php and is only loaded by those files. DRYs in the process. See #33813. Additionally there is the trac ticket #33813 linked, which gives some additional insight. You generally shouldn't delete core files so consider noop.php as a necessary file. A: Why noop.php? Previously noop functions were duplicated across core in multiple places, and an effort was made to co-locate them to avoid this duplication. This was done in https://core.trac.wordpress.org/ticket/33813 as part of an organisation effort. What Are Noop functions? Noop, or No Op-eration functions, are useful for testing and mocking. They're also a way to implement the null pattern, of presenting APIs that don't do anything to act as placeholders for ones that do. Can I remove it to let VIM better navigate the code? I would not modify core, instead you should tell ctags to ignore that file. This question/answer on stackoverflow will help: https://stackoverflow.com/questions/7736656/vim-and-ctags-ignoring-certain-files-while-generating-tags
wordpress
{ "language": "en", "length": 236, "provenance": "stackexchange_00019.jsonl.gz:462260", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/214456" }
[ 0.06011962890625, -0.0009975433349609375, -0.0037708282470703125, -0.057647705078125, 0.0023365020751953125, -0.03228759765625, 0.0213623046875, 0.003376007080078125, 0.005077362060546875, -0.00308990478515625, -0.03778076171875, 0.01525115966796875, -0.012664794921875, -0.014556884765625, 0.0182647705078125, -0.0433349609375, 0.0413818359375, -0.037872314453125, 0.017913818359375, 0.009490966796875, 0.0019969940185546875, 0.0406494140625, 0.01549530029296875, 0.02197265625, 0.016143798828125, -0.02374267578125, 0.0411376953125, -0.0305328369140625, 0.0028209686279296875, -0.02532958984375, 0.00778961181640625, 0.034149169921875, 0.00473785400390625, 0.05511474609375, -0.051788330078125, 0.0079803466796875, 0.001064300537109375, 0.010406494140625, 0.0075531005859375, 0.0207672119140625, 0.01213836669921875, -0.01288604736328125, 0.006011962890625, -0.013427734375, -0.0416259765625, 0.005527496337890625, 0.01413726806640625, 0.0285186767578125, -0.030242919921875, 0.01509857177734375, 0.03607177734375, 0.019439697265625, 0.0567626953125, -0.038238525390625, 0.024749755859375, 0.00641632080078125, 0.00910186767578125, 0.0284271240234375, 0.005290985107421875, 0.0027923583984375, -0.01039886474609375, 0.049713134765625, 0.007526397705078125, -0.0101165771484375, 0.007007598876953125, -0.015045166015625, -0.027984619140625, 0.0190582275390625, -0.07403564453125, 0.0017108917236328125, 0.045806884765625, -0.04388427734375, -0.02392578125, -0.0234832763671875, 0.01232147216796875, 0.0204315185546875, -0.00562286376953125, -0.00809478759765625, 0.012054443359375, 0.03338623046875, -0.003971099853515625, -0.006328582763671875, 0.038177490234375, -0.006229400634765625, -0.0223541259765625, 0.01476287841796875, -0.019927978515625, -0.0047607421875, -0.0416259765625, -0.024993896484375, -0.036895751953125, 0.00414276123046875, -0.040985107421875, -0.03106689453125, -0.04315185546875, -0.00016319751739501953, -0.019622802734375, -0.0123443603515625, -0.028350830078125, 0.006244659423828125, 0.044708251953125, -0.038818359375, 0.054351806640625, -0.01519012451171875, 0.0184173583984375, 0.08660888671875, -0.00925445556640625, 0.0012950897216796875, 0.004291534423828125, -0.0240631103515625, 0.0200958251953125, -0.0261688232421875, 0.01326751708984375, -0.014007568359375, -0.0098419189453125, -0.047271728515625, -0.046661376953125, 0.053802490234375, 0.00093841552734375, -0.0008749961853027344, 0.00824737548828125, 0.001556396484375, 0.008270263671875, 0.00769805908203125, -0.0055084228515625, -0.039703369140625, -0.040557861328125, 0.01959228515625, -0.008514404296875, 0.050689697265625, -0.029144287109375, 0.012420654296875, 0.035430908203125, -0.039581298828125, -0.05645751953125, -0.041229248046875, 0.0692138671875, -0.0188140869140625, 0.0146331787109375, 0.0181732177734375, 0.0023040771484375, -0.038970947265625, -0.0198974609375, 0.021728515625, 0.02813720703125, 0.030120849609375, 0.0294952392578125, -0.0019664764404296875, -0.000583648681640625, 0.0011281967163085938, -0.01206207275390625, -0.017303466796875, 0.01131439208984375, 0.01247406005859375, 0.007175445556640625, 0.043426513671875, 0.025299072265625, 0.0063323974609375, -0.04730224609375, 0.0201568603515625, -0.0305023193359375, -0.0252838134765625, -0.0033664703369140625, -0.041595458984375, -0.043365478515625, 0.0280914306640625, -0.0065765380859375, 0.005474090576171875, 0.0272979736328125, 0.005260467529296875, 0.00981903076171875, 0.01898193359375, 0.0531005859375, 0.052520751953125, 0.014404296875, 0.0173797607421875, 0.023529052734375, 0.0027980804443359375, 0.0270538330078125, 0.044647216796875, 0.0005893707275390625, -0.02288818359375, 0.06671142578125, -0.0261383056640625, -0.07635498046875, 0.02032470703125, 0.005527496337890625, 0.0887451171875, 0.0195465087890625, 0.035369873046875, 0.03778076171875, -0.006931304931640625, 0.01203155517578125, -0.0273895263671875, -0.0308837890625, -0.0087738037109375, 0.0136871337890625, 0.0251312255859375, -0.0269622802734375, 0.017730712890625, -0.00020754337310791016, -0.0137786865234375, -0.0224609375, 0.01140594482421875, -0.09716796875, -0.0008740425109863281, -0.0423583984375, 0.03424072265625, -0.01421356201171875, -0.01812744140625, 0.016510009765625, -0.00024187564849853516, -0.032135009765625, 0.021728515625, -0.0235443115234375, 0.0499267578125, -0.0350341796875, 0.006587982177734375, 0.0101318359375, 0.00728607177734375, 0.007167816162109375, -0.00498199462890625, 0.0086517333984375, 0.00043964385986328125, 0.039459228515625, -0.003936767578125, -0.0308990478515625, -0.016571044921875, 0.0174560546875, 0.005126953125, -0.02581787109375, 0.059844970703125, 0.034637451171875, 0.0438232421875, -0.044281005859375, -0.04345703125, -0.07745361328125, -0.06256103515625, -0.0029239654541015625, 0.06829833984375, 0.0406494140625, 0.02154541015625, -0.01335906982421875, -0.002719879150390625, 0.03485107421875, -0.052703857421875, -0.00780487060546875, 0.004322052001953125, -0.025909423828125, -0.048980712890625, -0.0213775634765625, -0.0345458984375, 0.0631103515625, -0.0309600830078125, -0.0263671875, 0.05487060546875, -0.020599365234375, -0.061309814453125, -0.0279693603515625, 0.030181884765625, 0.027801513671875, -0.041046142578125, -0.04254150390625, 0.00983428955078125, 0.0391845703125, -0.01342010498046875, 0.0300140380859375, 0.0164642333984375, -0.015289306640625, -0.00891876220703125, 0.0228424072265625, -0.01427459716796875, -0.0217132568359375, 0.04400634765625, 0.01568603515625, -0.0233306884765625, -0.02764892578125, 0.002376556396484375, -0.046966552734375, 0.0027332305908203125, -0.0323486328125, 0.00147247314453125, 0.00384521484375, -0.015960693359375, 0.0179901123046875, -0.0281219482421875, 0.0310821533203125, -0.047698974609375, 0.05743408203125, 0.02337646484375, 0.012542724609375, 0.048248291015625, 0.014068603515625, 0.04547119140625, 0.063720703125, -0.0174713134765625, 0.00592041015625, 0.00238037109375, 0.0089569091796875, -0.01177978515625, 0.037841796875, 0.053131103515625, -0.009521484375, 0.004161834716796875, 0.0173797607421875, -0.00027751922607421875, 0.020416259765625, 0.0169677734375, 0.0062103271484375, 0.0064239501953125, -0.04888916015625, 0.0043487548828125, 0.038970947265625, 0.064453125, -0.0114593505859375, -0.046600341796875, -0.0236053466796875, 0.040771484375, -0.0946044921875, -0.08203125, 0.00408172607421875, -0.061492919921875, 0.01209259033203125, -0.0010766983032226562, -0.03692626953125, -0.027984619140625, 0.0531005859375, 0.01373291015625, 0.0201873779296875, 0.00218963623046875, -0.0209808349609375, -0.00984954833984375, -0.059906005859375, -0.02655029296875, 0.0023097991943359375, -0.0024585723876953125, -0.00528717041015625, 0.0992431640625, 0.0194549560546875, -0.022796630859375, 0.0023174285888671875, -0.0010328292846679688, -0.028411865234375, -0.0198974609375, -0.015716552734375, -0.020416259765625, -0.0180816650390625, -0.01284027099609375, -0.002716064453125, -0.0077667236328125, 0.01284027099609375, -0.0010013580322265625, -0.002307891845703125, -0.0305938720703125, 0.00461578369140625, 0.0267791748046875, -0.007843017578125, -0.06646728515625, -0.00858306884765625, -0.09228515625, -0.01381683349609375, 0.047027587890625, 0.0019483566284179688, 0.0246124267578125, -0.01666259765625, -0.06488037109375, 0.0240478515625, 0.00699615478515625, 0.0156097412109375, 0.02783203125, -0.00965118408203125, 0.00923919677734375, 0.02734375, 0.0026721954345703125, -0.006366729736328125, -0.0084991455078125, 0.052734375, 0.0002789497375488281, 0.03497314453125, 0.0284576416015625, -0.004730224609375, -0.0270538330078125, 0.0097808837890625, -0.057830810546875, 0.00936126708984375, 0.027801513671875, -0.01509857177734375, 0.031341552734375, -0.039398193359375, -0.0035305023193359375, -0.03369140625, 0.039581298828125, 0.01119232177734375, -0.02734375, -0.0081634521484375, 0.026458740234375, -0.07635498046875, -0.046844482421875, -0.006168365478515625, 0.0123748779296875, -0.046783447265625, 0.01505279541015625, 0.01190948486328125, 0.00373077392578125, -0.0245361328125, 0.049468994140625, -0.038604736328125, -0.026092529296875, 0.032501220703125, -0.033355712890625, 0.01003265380859375, -0.002063751220703125, -0.0136566162109375, -0.025604248046875, -0.01030731201171875, -0.0255279541015625, -0.048980712890625, -0.01035308837890625, -0.034515380859375, 0.06439208984375, 0.025238037109375, -0.0015420913696289062, -0.0205230712890625, 0.016510009765625, 0.01361083984375, -0.00856781005859375, -0.0137786865234375, -0.00710296630859375, -0.023773193359375, -0.0252227783203125, -0.0187835693359375, -0.026336669921875, -0.00923919677734375, 0.0084686279296875, -0.021514892578125, 0.03466796875, -0.0100555419921875, -0.0214080810546875, 0.0244598388671875, -0.03057861328125, 0.005817413330078125, -0.02239990234375, -0.0220184326171875, 0.032989501953125, -0.02105712890625, 0.0009150505065917969, -0.04931640625, -0.0211944580078125, 0.007122039794921875, -0.051422119140625, -0.0033588409423828125, 0.0282135009765625, 0.08758544921875, 0.019775390625, 0.0203704833984375, -0.063720703125, 0.016998291015625, 0.0190582275390625, 0.023651123046875, 0.03265380859375, -0.00919342041015625, 0.01058197021484375, 0.01137542724609375, -0.007061004638671875, -0.00428009033203125, -0.025177001953125, 0.02056884765625, 0.00565338134765625, -0.0215911865234375, -0.008514404296875, -0.043975830078125, 0.0634765625, -0.005542755126953125, 0.00592803955078125, -0.028106689453125, 0.037322998046875, 0.02593994140625, -0.033294677734375, 0.046905517578125, 0.00698089599609375, -0.026885986328125, -0.0088958740234375, -0.036407470703125, 0.0869140625, 0.046783447265625, -0.003398895263671875, 0.07403564453125, 0.05279541015625, -0.001064300537109375, 0.02935791015625, 0.0421142578125, 0.0248870849609375, 0.05902099609375, 0.0175018310546875, 0.031341552734375, -0.0291595458984375, -0.0071258544921875, 0.0504150390625, -0.006809234619140625, -0.04217529296875, -0.0125732421875, 0.00217437744140625, 0.07806396484375, 0.016082763671875, -0.0199127197265625, 0.021759033203125, 0.0233001708984375, -0.0139617919921875, 0.003871917724609375, -0.03387451171875, 0.01078033447265625, -0.0260009765625, 0.0142364501953125, -0.00536346435546875, -0.00907135009765625, 0.02423095703125, 0.01256561279296875, 0.031707763671875, 0.0018320083618164062, -0.0235595703125, 0.0203857421875, 0.0408935546875, 0.04461669921875, 0.00594329833984375, -0.039764404296875, -0.006443023681640625, 0.0384521484375, 0.00440216064453125, -0.050506591796875, -0.0013189315795898438, 0.038543701171875, 0.0557861328125, -0.0260772705078125, -0.047760009765625, 0.01549530029296875, -0.0224761962890625, 0.00791168212890625, 0.034332275390625, 0.052398681640625, -0.0222320556640625, 0.00653076171875, 0.0012102127075195312, 0.0033512115478515625, -0.0207061767578125, 0.0153045654296875, 0.032196044921875, 0.026092529296875, 0.0163421630859375, 0.017059326171875, -0.040618896484375, -0.01220703125, 0.006008148193359375, -0.056488037109375, -0.0206756591796875, -0.0149688720703125, -0.0184173583984375, -0.029937744140625, -0.01172637939453125, -0.04840087890625, 0.05499267578125, 0.015533447265625, 0.049407958984375, -0.039947509765625, -0.03521728515625, -0.01393890380859375, 0.012603759765625, 0.03131103515625, 0.0031490325927734375, -0.027313232421875, -0.0066375732421875, -0.02667236328125, -0.0283966064453125, -0.0249176025390625, -0.01898193359375, -0.037261962890625, 0.0037136077880859375, -0.039031982421875, -0.0168609619140625, -0.0118560791015625, 0.03448486328125, -0.00988006591796875, 0.07269287109375, 0.0009312629699707031, 0.0241546630859375, -0.048553466796875, 0.12103271484375, -0.035125732421875, 0.011627197265625, -0.0255279541015625, 0.071533203125, 0.0186767578125, 0.0251922607421875, 0.031982421875, -0.0284881591796875, -0.033355712890625, -0.03668212890625, -0.0295562744140625, 0.01483154296875, 0.052032470703125, -0.029449462890625, 0.00489044189453125, 0.0114593505859375, 0.0141448974609375, -0.0237274169921875, -0.0408935546875, 0.00298309326171875, -0.0068206787109375, -0.0242462158203125, -0.038726806640625, 0.05120849609375, 0.002880096435546875, -0.0087890625, 0.0384521484375, -0.047088623046875, 0.043182373046875, 0.05126953125, -0.0892333984375, 0.08544921875, 0.12109375, -0.0189056396484375, 0.03619384765625, 0.017333984375, -0.0232086181640625, 0.040985107421875, 0.0404052734375, 0.005611419677734375, -0.07421875, 0.0400390625, 0.01136016845703125, -0.003047943115234375, 0.044952392578125, -0.0240478515625, 0.019775390625, 0.03759765625, 0.06353759765625, -0.064697265625, 0.019256591796875, 0.01416015625, -0.02032470703125, 0.010589599609375, -0.0277099609375, 0.0007448196411132812, -0.050872802734375, 0.043731689453125, 0.028961181640625, -0.01125335693359375, -0.0022735595703125, -0.004032135009765625, -0.0114898681640625, -0.00750732421875, -0.007366180419921875, 0.00449371337890625, -0.005260467529296875, 0.0246429443359375, -0.005573272705078125, 0.01528167724609375, -0.00034308433532714844, 0.006320953369140625, 0.005641937255859375, -0.03814697265625, -0.0267791748046875, 0.00750732421875, 0.0038356781005859375, -0.02288818359375, 0.020263671875, 0.00003975629806518555, -0.00325775146484375, 0.0533447265625, -0.055023193359375, 0.059539794921875, -0.00951385498046875, 0.034637451171875, -0.01849365234375, -0.043121337890625, -0.0015382766723632812, 0.04901123046875, -0.02325439453125, 0.02557373046875, 0.005340576171875, -0.0196990966796875, -0.00197601318359375, -0.02593994140625, 0.0440673828125, -0.03204345703125, -0.00550079345703125, 0.043731689453125, -0.0245513916015625, -0.0263824462890625, -0.0006480216979980469, 0.036895751953125, -0.0643310546875, -0.02545166015625, 0.0220794677734375, -0.022613525390625, -0.000012516975402832031, 0.00982666015625, -0.00927734375, 0.0789794921875, -0.0204925537109375, -0.017333984375, 0.0210723876953125, 0.0498046875, -0.021728515625, 0.05120849609375, -0.033050537109375, 0.061859130859375, 0.005260467529296875, 0.0389404296875, -0.036773681640625, -0.005702972412109375, 0.0201873779296875, 0.0274200439453125, 0.0103607177734375, 0.0005946159362792969, 0.0142822265625, 0.01554107666015625, 0.07220458984375, 0.032440185546875, 0.008819580078125, 0.004047393798828125, -0.01363372802734375, -0.019561767578125, -0.0113983154296875, -0.03924560546875, 0.0125579833984375, -0.036041259765625, -0.0176544189453125, -0.0013418197631835938, 0.0157012939453125, 0.00177001953125, -0.0238494873046875, 0.004100799560546875, -0.0308685302734375, 0.001506805419921875, -0.00490570068359375, 0.078857421875, -0.03369140625, 0.041046142578125, -0.032684326171875, -0.048065185546875, -0.0286865234375, -0.043670654296875, 0.0224761962890625, -0.0285186767578125, -0.00044536590576171875, 0.0245819091796875, 0.01435089111328125, 0.01079559326171875, -0.053253173828125, -0.01433563232421875, 0.010955810546875, -0.03228759765625, 0.034454345703125, 0.031463623046875, 0.04046630859375, -0.0189208984375, 0.0224151611328125, 0.0284271240234375, 0.0498046875, -0.0176239013671875, -0.01515960693359375, -0.00473785400390625, -0.0268402099609375, -0.00121307373046875, -0.049224853515625, -0.0238494873046875, -0.01329803466796875, -0.0007920265197753906, -0.007305145263671875, -0.004756927490234375, 0.024261474609375, -0.005428314208984375, 0.0051422119140625, 0.0161895751953125, 0.0229644775390625, 0.01155853271484375, -0.01416778564453125, 0.029266357421875, -0.0027256011962890625, 0.00970458984375, -0.0284881591796875, 0.046722412109375, -0.01666259765625, 0.01340484619140625, -0.01214599609375, 0.015533447265625, -0.036102294921875, 0.005275726318359375, -0.040069580078125, -0.0452880859375, -0.0118865966796875, 0.045257568359375, 0.03314208984375, 0.025848388671875, 0.0491943359375, 0.0438232421875, -0.032257080078125, 0.00936126708984375, 0.07513427734375, -0.01461029052734375, -0.037445068359375, -0.04180908203125, -0.0040740966796875, 0.048553466796875, 0.0194244384765625, -0.000186920166015625, 0.0177459716796875, 0.0401611328125, -0.044342041015625, 0.02215576171875, -0.01422119140625, -0.043487548828125, 0.03802490234375, 0.0025806427001953125, 0.07073974609375, -0.00785064697265625, -0.029327392578125, -0.01354217529296875, -0.0215606689453125, 0.008056640625, 0.027435302734375, 0.028472900390625, -0.0017251968383789062, 0.01479339599609375, 0.014984130859375, 0.0091705322265625, -0.03485107421875, -0.0184478759765625, 0.041473388671875, 0.0238037109375, 0.0157470703125, 0.040985107421875, -0.027252197265625, -0.031585693359375, -0.02166748046875, 0.045135498046875, 0.039031982421875, 0.0592041015625, -0.0267791748046875, 0.02783203125, -0.006439208984375, 0.01078033447265625, 0.004215240478515625, 0.0127410888671875, -0.0008287429809570312, 0.03607177734375, -0.0032558441162109375, -0.0303497314453125, -0.0902099609375, 0.009735107421875, 0.043975830078125, -0.013641357421875, 0.0255126953125, 0.053497314453125, 0.01439666748046875, -0.051971435546875, -0.0047760009765625, -0.005565643310546875, -0.0316162109375, -0.016143798828125, 0.00015592575073242188, 0.0286102294921875, 0.03485107421875, -0.0274505615234375, -0.0007185935974121094, 0.01446533203125, -0.01418304443359375, 0.00496673583984375, 0.0092010498046875, -0.0111541748046875, 0.0192413330078125, -0.006809234619140625, 0.0210418701171875, -0.01174163818359375, -0.034088134765625, 0.0275115966796875, -0.00931549072265625, 0.0032901763916015625, -0.003696441650390625, 0.01397705078125, 0.01015472412109375, 0.01409912109375, 0.04010009765625, 0.0035915374755859375, 0.005107879638671875, -0.0146331787109375, 0.0028839111328125, 0.0089569091796875, 0.021392822265625, -0.020050048828125, -0.043304443359375, -0.0263824462890625, 0.00007021427154541016, -0.05499267578125, -0.024078369140625, -0.0328369140625, 0.01416778564453125, 0.022735595703125, -0.002197265625, -0.05145263671875, 0.027496337890625, -0.023956298828125, 0.03271484375, -0.003692626953125, 0.035369873046875, -0.01971435546875, 0.01751708984375, -0.035247802734375, -0.0277099609375, -0.0232086181640625, 0.042755126953125, -0.01458740234375, 0.01346588134765625, 0.02044677734375, -0.0178985595703125, -0.0129241943359375, 0.05157470703125, 0.0241241455078125, 0.08917236328125, -0.02508544921875, -0.018035888671875, 0.01068115234375, 0.0007486343383789062, 0.0003521442413330078, -0.034332275390625, -0.0006451606750488281, -0.0279693603515625, -0.007129669189453125, -0.004833221435546875, -0.00467681884765625, 0.004535675048828125, -0.03912353515625, -0.07257080078125, 0.018402099609375, 0.0015192031860351562, -0.04827880859375, -0.0357666015625, -0.00882720947265625, -0.0218048095703125, 0.00042819976806640625, -0.0221099853515625, -0.0199432373046875, -0.00630950927734375, 0.0579833984375, 0.0219573974609375, -0.001491546630859375, 0.04168701171875, 0.01023101806640625, -0.0222015380859375, 0.0165863037109375, 0.005126953125, -0.019317626953125, 0.046539306640625, -0.0214385986328125, 0.059295654296875, 0.0894775390625, -0.0038204193115234375, 0.00943756103515625, -0.01103973388671875, -0.074462890625, 0.0233612060546875, 0.004894256591796875, -0.01617431640625, 0.015838623046875, 0.04302978515625, 0.039215087890625, 0.0130767822265625, -0.0506591796875, -0.0264434814453125, -0.04559326171875, -0.068359375, -0.043701171875, 0.033294677734375, -0.0770263671875, -0.0094451904296875, -0.0004639625549316406, -0.016937255859375, 0.01047515869140625, -0.00759124755859375, -0.05511474609375, 0.007965087890625, -0.01120758056640625, -0.0003600120544433594, -0.01263427734375, -0.036376953125, 0.016387939453125, -0.0064544677734375, 0.01513671875, -0.004154205322265625, 0.0316162109375, 0.017913818359375, 0.04168701171875, -0.025299072265625, 0.026611328125, -0.00946807861328125, 0.02069091796875, -0.007076263427734375, 0.00965118408203125, 0.0027313232421875, 0.01003265380859375, -0.0016393661499023438, 0.01082611083984375, -0.01194000244140625, 0.0228271484375, -0.005611419677734375, 0.04998779296875, 0.0014657974243164062, 0.077880859375, 0.0015239715576171875, 0.00809478759765625, -0.017425537109375, 0.048858642578125, -0.0156402587890625, -0.0213165283203125, 0.0162353515625, -0.0287628173828125, 0.013519287109375, 0.0149383544921875, 0.0202178955078125, -0.026458740234375, 0.011199951171875, 0.03271484375, 0.0115203857421875, 0.00771331787109375 ]
28f80af8c38611b76ab1e41e9570efbd52a33a9d
Wordpress Stackexchange Q: Post Comments using WP REST API v2 in WordPress I am using an AngularJS application with WordPress backend. I am able to retrieve comments using WP REST API v2., using the following url /wp-json/wp/v2/comments?post=1324 But is there a way to post comments in WP REST API v2. I was unable to find anything in documentation. Thanks. A: Similar problem, I was getting back: {"code":"rest_comment_login_required","message":"Sorry, you must be logged in to comment.","data":{"status":401}} Looking for that code 'rest_comment_login_required' this is one of the first results: WP_REST_Comments_Controller::create_item_permissions_check. So from v4.7.0 there is a filter called 'rest_allow_anonymous_comments' returning false by default. So you cannot comment by default even though your Wordpress settings indicate otherwise. You can turn it back on by adding: function filter_rest_allow_anonymous_comments() { return true; } add_filter('rest_allow_anonymous_comments','filter_rest_allow_anonymous_comments');
Q: Post Comments using WP REST API v2 in WordPress I am using an AngularJS application with WordPress backend. I am able to retrieve comments using WP REST API v2., using the following url /wp-json/wp/v2/comments?post=1324 But is there a way to post comments in WP REST API v2. I was unable to find anything in documentation. Thanks. A: Similar problem, I was getting back: {"code":"rest_comment_login_required","message":"Sorry, you must be logged in to comment.","data":{"status":401}} Looking for that code 'rest_comment_login_required' this is one of the first results: WP_REST_Comments_Controller::create_item_permissions_check. So from v4.7.0 there is a filter called 'rest_allow_anonymous_comments' returning false by default. So you cannot comment by default even though your Wordpress settings indicate otherwise. You can turn it back on by adding: function filter_rest_allow_anonymous_comments() { return true; } add_filter('rest_allow_anonymous_comments','filter_rest_allow_anonymous_comments'); A: Take a look at the comment docs - http://v2.wp-api.org/reference/comments/ And the following syntax: https://www.example.com/wp-json/wp/v2/comments?author=Your%20Name%20Here&[email protected]&author_name=Your%20Name%20Here&content=Your%20Comment%20Here&post=1604252 A: Here you go: http://www.contradodigital.com/2016/04/06/post-comments-wordpress-rest-api-version-2/ Just had to do this myself, the documentation in the official WordPress API v2 isn't the best at the minute.
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:462268", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/214480" }
[ 0.01678466796875, -0.0016241073608398438, -0.0209197998046875, -0.0031757354736328125, -0.00319671630859375, -0.041229248046875, 0.049957275390625, 0.0101776123046875, -0.0158233642578125, 0.016845703125, -0.02069091796875, -0.005802154541015625, -0.035919189453125, -0.0232391357421875, -0.0269927978515625, -0.0511474609375, 0.0206146240234375, 0.0305328369140625, 0.034881591796875, -0.013671875, 0.01468658447265625, -0.01425933837890625, 0.0194549560546875, 0.08551025390625, 0.0180511474609375, 0.00588226318359375, 0.09332275390625, -0.032928466796875, 0.03851318359375, -0.0011692047119140625, 0.019683837890625, -0.07196044921875, 0.0001494884490966797, 0.0511474609375, -0.0467529296875, -0.043426513671875, 0.0036830902099609375, 0.017852783203125, -0.01702880859375, 0.033782958984375, 0.03582763671875, -0.0245819091796875, 0.0036716461181640625, 0.0021800994873046875, -0.00406646728515625, -0.0025272369384765625, 0.03314208984375, -0.0157318115234375, 0.04052734375, 0.0107421875, 0.002101898193359375, 0.0313720703125, 0.0159759521484375, 0.0124053955078125, -0.016998291015625, -0.0003056526184082031, 0.0083770751953125, -0.0135345458984375, 0.037811279296875, -0.04498291015625, -0.0223388671875, -0.028167724609375, 0.03399658203125, 0.02606201171875, 0.0225677490234375, -0.011444091796875, 0.0516357421875, 0.04266357421875, 0.030853271484375, 0.01076507568359375, -0.02301025390625, 0.013763427734375, 0.01349639892578125, -0.0175018310546875, 0.01117706298828125, -0.019256591796875, -0.0052642822265625, -0.008941650390625, 0.0271759033203125, 0.00992584228515625, 0.025146484375, -0.00035071372985839844, -0.0174713134765625, -0.0196533203125, 0.0151824951171875, -0.00836181640625, -0.00827789306640625, -0.024322509765625, -0.0096282958984375, 0.00563812255859375, -0.00925445556640625, -0.081787109375, -0.0091705322265625, 0.05792236328125, 0.035797119140625, -0.031158447265625, -0.005825042724609375, -0.0015687942504882812, -0.006160736083984375, 0.0259246826171875, -0.010345458984375, -0.033355712890625, 0.048675537109375, -0.0251312255859375, 0.02606201171875, -0.00830841064453125, -0.01226043701171875, -0.041656494140625, 0.043304443359375, 0.031036376953125, -0.015869140625, 0.06927490234375, 0.0316162109375, -0.0160369873046875, -0.01067352294921875, -0.014892578125, -0.01030731201171875, 0.01311492919921875, 0.006435394287109375, -0.00824737548828125, -0.036529541015625, -0.0248565673828125, -0.0095062255859375, 0.0253143310546875, 0.01471710205078125, 0.007434844970703125, -0.0012845993041992188, 0.0232391357421875, -0.01317596435546875, 0.027557373046875, -0.00839996337890625, 0.040771484375, 0.026123046875, -0.0027065277099609375, -0.0367431640625, -0.018524169921875, 0.0186614990234375, 0.0299530029296875, -0.0006017684936523438, 0.01459503173828125, 0.004360198974609375, -0.02734375, -0.0260009765625, -0.0034999847412109375, 0.0233612060546875, -0.0037899017333984375, 0.022064208984375, 0.0197906494140625, 0.002227783203125, 0.004573822021484375, -0.006450653076171875, 0.0384521484375, 0.0200042724609375, 0.008148193359375, 0.0391845703125, -0.0232086181640625, 0.047637939453125, -0.035797119140625, -0.0013494491577148438, -0.024505615234375, 0.0237274169921875, -0.01280975341796875, 0.00319671630859375, -0.03424072265625, -0.0465087890625, 0.000009655952453613281, -0.033966064453125, -0.0022678375244140625, 0.0233917236328125, 0.04248046875, -0.032196044921875, -0.04132080078125, -0.00012302398681640625, 0.0012788772583007812, -0.016357421875, 0.024566650390625, -0.0090484619140625, 0.044036865234375, -0.0022144317626953125, 0.01788330078125, 0.020660400390625, -0.03173828125, 0.0357666015625, 0.0151519775390625, -0.031646728515625, 0.0249481201171875, 0.053985595703125, 0.07843017578125, -0.032684326171875, 0.03973388671875, 0.0374755859375, 0.036163330078125, -0.000007092952728271484, 0.0081329345703125, -0.03692626953125, -0.0704345703125, 0.0304718017578125, -0.00931549072265625, -0.027313232421875, 0.0675048828125, 0.022552490234375, -0.005916595458984375, -0.0038776397705078125, -0.02044677734375, -0.06396484375, -0.01519775390625, -0.0211181640625, 0.024566650390625, -0.024017333984375, 0.0141754150390625, 0.0233001708984375, -0.0086212158203125, -0.0330810546875, 0.00620269775390625, -0.017791748046875, -0.01122283935546875, -0.026092529296875, 0.041534423828125, 0.0019083023071289062, 0.05908203125, 0.0007662773132324219, -0.0250396728515625, -0.00984954833984375, -0.0262451171875, 0.042755126953125, -0.041839599609375, 0.0203857421875, -0.047576904296875, 0.0970458984375, -0.0290679931640625, 0.05328369140625, 0.0034942626953125, 0.02386474609375, 0.01953125, -0.0085296630859375, 0.00565338134765625, -0.004177093505859375, -0.048736572265625, 0.00701904296875, 0.046875, 0.027099609375, 0.0087127685546875, 0.016021728515625, 0.04217529296875, 0.04058837890625, -0.0002422332763671875, 0.032623291015625, 0.0007925033569335938, 0.004299163818359375, -0.01837158203125, 0.011383056640625, -0.0292816162109375, 0.038604736328125, -0.0501708984375, -0.0019311904907226562, 0.03253173828125, -0.004669189453125, 0.0002002716064453125, -0.0102691650390625, 0.004467010498046875, 0.004665374755859375, -0.0518798828125, -0.0254364013671875, -0.0291900634765625, -0.0167999267578125, -0.036712646484375, 0.00737762451171875, 0.00478363037109375, -0.0243377685546875, -0.041290283203125, 0.04388427734375, 0.04425048828125, 0.0028476715087890625, 0.058441162109375, 0.05706787109375, 0.02960205078125, -0.0194549560546875, -0.044281005859375, 0.02935791015625, 0.05010986328125, -0.00801849365234375, 0.0289306640625, -0.016754150390625, -0.01409912109375, -0.006694793701171875, -0.016693115234375, -0.00861358642578125, -0.015899658203125, 0.0011157989501953125, -0.0024471282958984375, 0.021026611328125, 0.036865234375, -0.00313568115234375, 0.026336669921875, -0.0020427703857421875, -0.0025348663330078125, 0.034637451171875, -0.04669189453125, 0.047576904296875, -0.0308074951171875, 0.01468658447265625, 0.057769775390625, 0.0139617919921875, -0.0158233642578125, -0.00406646728515625, 0.01371002197265625, -0.01203155517578125, 0.025543212890625, 0.0040130615234375, -0.04669189453125, 0.02679443359375, 0.054656982421875, 0.00963592529296875, -0.01456451416015625, 0.009765625, -0.0270538330078125, -0.021453857421875, 0.011077880859375, -0.0648193359375, -0.045501708984375, 0.05462646484375, -0.02105712890625, -0.00543975830078125, -0.01520538330078125, -0.02203369140625, -0.01358795166015625, -0.00820159912109375, -0.0306243896484375, -0.005252838134765625, -0.0160980224609375, -0.073486328125, -0.04400634765625, -0.0712890625, 0.004940032958984375, -0.016937255859375, 0.0139312744140625, 0.01119232177734375, 0.055023193359375, 0.01528167724609375, 0.00696563720703125, 0.036102294921875, 0.0013484954833984375, -0.0166473388671875, -0.0221099853515625, -0.028350830078125, 0.01397705078125, 0.0256195068359375, -0.014495849609375, 0.01100921630859375, 0.03924560546875, -0.0197601318359375, 0.0036220550537109375, -0.001674652099609375, 0.0016193389892578125, 0.006610870361328125, 0.0189666748046875, 0.00951385498046875, 0.0009832382202148438, 0.008758544921875, -0.030029296875, 0.013397216796875, -0.01448822021484375, -0.0238800048828125, -0.053131103515625, 0.004573822021484375, -0.01165008544921875, -0.036529541015625, 0.01342010498046875, 0.0021495819091796875, -0.0107879638671875, 0.032318115234375, -0.027313232421875, 0.0165863037109375, -0.0138397216796875, -0.01544952392578125, -0.01496124267578125, 0.055145263671875, -0.01126861572265625, -0.08184814453125, -0.0154876708984375, -0.0226898193359375, -0.058319091796875, 0.003940582275390625, -0.078369140625, -0.022308349609375, 0.053863525390625, -0.01169586181640625, -0.01428985595703125, -0.020965576171875, -0.025421142578125, -0.01079559326171875, 0.05975341796875, 0.016845703125, -0.0238494873046875, -0.013336181640625, 0.00937652587890625, -0.037933349609375, -0.0238494873046875, -0.00244903564453125, -0.0065765380859375, 0.00940704345703125, 0.036590576171875, -0.0026912689208984375, 0.003704071044921875, -0.0153961181640625, -0.039093017578125, 0.0196990966796875, -0.0304718017578125, 0.0011301040649414062, -0.038726806640625, 0.0026187896728515625, 0.010955810546875, -0.0267181396484375, -5.364418029785156e-7, 0.0171661376953125, -0.046478271484375, -0.08251953125, -0.01152801513671875, -0.02655029296875, 0.072021484375, 0.0140838623046875, -0.004085540771484375, -0.0031280517578125, 0.050323486328125, -0.0141754150390625, 0.033905029296875, -0.017425537109375, 0.0161895751953125, -0.022216796875, -0.0007925033569335938, -0.007190704345703125, -0.01151275634765625, -0.0119171142578125, 0.027313232421875, -0.0014963150024414062, 0.040985107421875, -0.0170135498046875, -0.01555633544921875, 0.016082763671875, -0.0287322998046875, -0.03436279296875, -0.03204345703125, -0.0245208740234375, 0.0278167724609375, -0.0043792724609375, 0.00907135009765625, -0.040985107421875, -0.04754638671875, 0.0297698974609375, 0.0069427490234375, -0.007785797119140625, 0.00009912252426147461, 0.049835205078125, 0.0262451171875, -0.01495361328125, -0.0259246826171875, -0.007228851318359375, 0.0291595458984375, 0.0009918212890625, 0.05560302734375, 0.0035495758056640625, -0.02886962890625, 0.09027099609375, -0.00140380859375, 0.0099334716796875, 0.01442718505859375, 0.0013151168823242188, -0.01166534423828125, -0.05084228515625, 0.047637939453125, 0.00319671630859375, -0.026611328125, 0.0105438232421875, 0.0011548995971679688, -0.02288818359375, -0.01166534423828125, 0.0345458984375, -0.01812744140625, 0.0254669189453125, -0.01259613037109375, -0.0579833984375, 0.0277557373046875, -0.06396484375, 0.037353515625, 0.010986328125, -0.0107269287109375, 0.04736328125, 0.0014781951904296875, -0.00914764404296875, -0.0247650146484375, -0.022003173828125, -0.0301361083984375, 0.015960693359375, -0.01629638671875, -0.031982421875, 0.001895904541015625, -0.0299835205078125, 0.09515380859375, 0.01129150390625, -0.0721435546875, 0.0406494140625, -0.02008056640625, 0.056854248046875, 0.03515625, 0.003871917724609375, 0.0185089111328125, 0.0006155967712402344, -0.0216827392578125, 0.0018596649169921875, 0.0091552734375, -0.03460693359375, -0.039825439453125, 0.06005859375, 0.0023288726806640625, 0.0051116943359375, -0.00585174560546875, 0.061614990234375, 0.02740478515625, 0.025146484375, -0.0240936279296875, 0.0261383056640625, -0.00002378225326538086, 0.04541015625, 0.03594970703125, -0.03271484375, 0.007415771484375, -0.0025081634521484375, -0.0178070068359375, -0.0238037109375, -0.0301513671875, 0.02850341796875, 0.0262603759765625, 0.013885498046875, 0.00281524658203125, -0.0150604248046875, -0.0118255615234375, -0.017791748046875, -0.037200927734375, -0.01123046875, 0.006694793701171875, -0.0092620849609375, 0.0106048583984375, 0.01491546630859375, 0.0316162109375, 0.0069580078125, -0.0308685302734375, -0.00396728515625, -0.00276947021484375, 0.0167388916015625, -0.026763916015625, 0.0034008026123046875, -0.0160369873046875, -0.017578125, -0.04339599609375, -0.0186767578125, -0.0201263427734375, 0.020751953125, -0.0017862319946289062, -0.0116424560546875, 0.0051422119140625, 0.00078582763671875, 0.007129669189453125, -0.046417236328125, 0.01617431640625, -0.0249176025390625, -0.01209259033203125, 0.046539306640625, 0.0035457611083984375, 0.0179901123046875, -0.03765869140625, -0.0168914794921875, -0.0467529296875, 0.011810302734375, 0.00800323486328125, -0.035125732421875, -0.0017042160034179688, 0.0263214111328125, 0.031585693359375, -0.0106353759765625, -0.035797119140625, -0.0281524658203125, 0.0130462646484375, 0.0206451416015625, 0.033416748046875, -0.041351318359375, 0.1119384765625, 0.01050567626953125, 0.0400390625, 0.02813720703125, 0.0885009765625, -0.01274871826171875, -0.0196990966796875, 0.0139007568359375, -0.06072998046875, -0.026641845703125, -0.0226593017578125, -0.029998779296875, 0.0594482421875, 0.042083740234375, 0.0077972412109375, 0.0169677734375, -0.01204681396484375, -0.011993408203125, -0.0204925537109375, 0.0191497802734375, -0.01058197021484375, 0.0380859375, -0.01148223876953125, 0.02294921875, 0.03289794921875, -0.068603515625, -0.0300750732421875, 0.003208160400390625, 0.0247955322265625, -0.001003265380859375, 0.0140228271484375, -0.05859375, 0.06304931640625, 0.131103515625, 0.0151824951171875, 0.06439208984375, 0.0147705078125, 0.005588531494140625, 0.046142578125, 0.036895751953125, -0.05267333984375, -0.051513671875, 0.027008056640625, 0.0180511474609375, -0.04437255859375, 0.01023101806640625, -0.035858154296875, 0.06103515625, 0.0029048919677734375, 0.06988525390625, -0.05120849609375, 0.040618896484375, -0.00004291534423828125, -0.0313720703125, 0.0897216796875, -0.02789306640625, -0.01018524169921875, -0.051971435546875, 0.0650634765625, -0.02435302734375, -0.01513671875, 0.0013532638549804688, -0.041900634765625, -0.00485992431640625, -0.0128173828125, 0.0087432861328125, -0.00908660888671875, -0.00940704345703125, -0.016021728515625, 0.0019092559814453125, -0.005397796630859375, -0.0208587646484375, -0.0245208740234375, 0.0182952880859375, -0.05047607421875, -0.08953857421875, 0.0023097991943359375, -0.03338623046875, -0.0108795166015625, 0.03662109375, -0.01727294921875, 0.0416259765625, 0.0396728515625, -0.000728607177734375, -0.0023345947265625, 0.00644683837890625, -0.007015228271484375, -0.022186279296875, -0.030487060546875, 0.0247802734375, 0.021026611328125, -0.00644683837890625, 0.03131103515625, 0.008270263671875, -0.054779052734375, -0.0008654594421386719, -0.04193115234375, 0.06671142578125, -0.03228759765625, -0.0057525634765625, 0.020111083984375, -0.01068878173828125, 0.00885772705078125, -0.005523681640625, 0.021697998046875, -0.0290679931640625, 0.0025177001953125, 0.01078033447265625, -0.014739990234375, 0.007205963134765625, 0.016632080078125, -0.046630859375, 0.08740234375, -0.01111602783203125, 0.0164642333984375, 0.0188140869140625, 0.0243682861328125, -0.0340576171875, 0.0121307373046875, -0.0189666748046875, 0.038116455078125, 0.0126800537109375, 0.0191497802734375, -0.02532958984375, -0.00527191162109375, 0.0022335052490234375, 0.024200439453125, 0.06304931640625, 0.0225982666015625, -0.051788330078125, -0.04095458984375, 0.0008387565612792969, 0.01259613037109375, -0.015716552734375, 0.06201171875, 0.0218505859375, -0.0025844573974609375, 0.047943115234375, -0.016693115234375, 0.0264434814453125, -0.028594970703125, 0.0274505615234375, 0.0223388671875, 0.0072784423828125, -0.0245361328125, -0.022186279296875, 0.07696533203125, -0.0123291015625, -0.022674560546875, 0.0164031982421875, -0.0084381103515625, -0.0159149169921875, 0.051055908203125, 0.036041259765625, -0.0295257568359375, -0.0269775390625, -0.037200927734375, 0.0335693359375, 0.0107269287109375, 0.034332275390625, 0.051422119140625, 0.0439453125, -0.0138092041015625, -0.0133819580078125, 0.0303802490234375, 0.00879669189453125, -0.052032470703125, 0.0288848876953125, -0.00023317337036132812, 0.0294342041015625, -0.0438232421875, 0.005786895751953125, 0.00789642333984375, 0.03509521484375, -0.0293121337890625, -0.0308990478515625, 0.00991058349609375, 0.037811279296875, 0.05029296875, 0.0004341602325439453, 0.09393310546875, -0.01690673828125, 0.0125732421875, -0.008544921875, -0.002166748046875, 0.0076751708984375, 0.01473236083984375, 0.0162811279296875, 0.03692626953125, -0.0191497802734375, 0.0101318359375, -0.00896453857421875, -0.01483154296875, 0.00363922119140625, 0.0171356201171875, 0.0033435821533203125, 0.028411865234375, -0.004299163818359375, 0.0045928955078125, 0.034515380859375, 0.011810302734375, -0.001972198486328125, -0.047760009765625, 0.024169921875, -0.053802490234375, 0.0109710693359375, 0.0020294189453125, 0.0184326171875, 0.033721923828125, 0.0303955078125, -0.00885772705078125, -0.0217437744140625, -0.006420135498046875, 0.01287841796875, -0.031982421875, -0.007659912109375, -0.03167724609375, -0.046478271484375, -0.0020961761474609375, -0.037933349609375, 0.0252227783203125, -0.049468994140625, 0.03411865234375, 0.0242767333984375, 0.003475189208984375, 0.022552490234375, -0.0163726806640625, 0.01538848876953125, 0.004673004150390625, -0.00746917724609375, 0.0335693359375, -0.0224151611328125, 0.02056884765625, -0.035797119140625, -0.08331298828125, 0.00931549072265625, 0.0297393798828125, -0.033538818359375, 0.031829833984375, 0.005954742431640625, -0.01142120361328125, 0.00937652587890625, -0.0235137939453125, 0.0166168212890625, -0.0017805099487304688, 0.00807952880859375, 0.004062652587890625, -0.07867431640625, -0.034576416015625, -0.0653076171875, 0.028656005859375, 0.020538330078125, 0.08099365234375, -0.002712249755859375, 0.02484130859375, -0.074462890625, 0.0555419921875, -0.069580078125, -0.02569580078125, -0.035125732421875, 0.04559326171875, 0.0207977294921875, 0.0133209228515625, -0.057769775390625, 0.09381103515625, -0.0168914794921875, 0.036895751953125, 0.1168212890625, -0.0455322265625, -0.016357421875, -0.026702880859375, -0.0164794921875, -0.048004150390625, -0.041351318359375, -0.0295867919921875, 0.0101318359375, -0.013671875, -0.0264892578125, -0.0027675628662109375, 0.0263824462890625, -0.044464111328125, -0.00959014892578125, 0.0050506591796875, -0.0132904052734375, -0.0044708251953125, 0.027801513671875, -0.051177978515625, 0.06719970703125, -0.0197601318359375, -0.0333251953125, 0.0298309326171875, -0.0144500732421875, -0.0421142578125, -0.000024557113647460938, 0.018280029296875, -0.01258087158203125, 0.011016845703125, 0.048736572265625, 0.007320404052734375, 0.00927734375, -0.025909423828125, -0.0006971359252929688, 0.0072174072265625, -0.0003788471221923828, -0.03082275390625, -0.07318115234375, 0.0114288330078125, 0.01374053955078125, -0.031890869140625, -0.016815185546875, -0.04461669921875, 0.0008440017700195312, 0.02001953125, -0.00876617431640625, -0.0294189453125, 0.0006113052368164062, -0.00047969818115234375, 0.02923583984375, -0.0004734992980957031, 0.00006961822509765625, 0.00923919677734375, 0.0148773193359375, -0.02325439453125, 0.023956298828125, -0.017242431640625, -0.01447296142578125, 0.0217437744140625, 0.03204345703125, 0.0421142578125, -0.032257080078125, -0.0011444091796875, 0.02874755859375, 0.034088134765625, 0.07073974609375, -0.0159454345703125, 0.002506256103515625, 0.022674560546875, 0.00247955322265625, -0.02874755859375, -0.049041748046875, 0.00598907470703125, -0.0247650146484375, -0.0032291412353515625, -0.033111572265625, 0.00977325439453125, 0.00959014892578125, -0.062408447265625, -0.123291015625, 0.04742431640625, -0.04180908203125, -0.041717529296875, -0.07586669921875, -0.02447509765625, 0.00821685791015625, 0.038604736328125, -0.025115966796875, -0.0214996337890625, -0.0650634765625, 0.042022705078125, 0.0034961700439453125, 0.043853759765625, 0.0006961822509765625, 0.0005702972412109375, -0.00537109375, 0.029327392578125, 0.0241546630859375, 0.0157623291015625, -0.01593017578125, 0.01513671875, 0.01381683349609375, 0.027679443359375, -0.039459228515625, 0.04632568359375, -0.01300048828125, 0.0194854736328125, -0.003662109375, -0.046539306640625, 0.0027942657470703125, 0.0067901611328125, 0.005767822265625, 0.06365966796875, -0.007965087890625, -0.04205322265625, 0.00505828857421875, -0.03887939453125, -0.002994537353515625, -0.035186767578125, -0.0023097991943359375, -0.043426513671875, -0.0284423828125, 0.004764556884765625, 0.0265960693359375, 0.0085601806640625, -0.0609130859375, 0.006763458251953125, -0.0298004150390625, -0.0273590087890625, -0.0076446533203125, 0.0274200439453125, -0.020599365234375, 0.00936126708984375, 0.00717926025390625, 0.056427001953125, -0.031890869140625, 0.029266357421875, 0.037261962890625, 0.0155029296875, -0.0244598388671875, -0.050018310546875, 0.01454925537109375, 0.01763916015625, -0.000018596649169921875, -0.0016012191772460938, 0.01541900634765625, -0.0187835693359375, -0.029083251953125, -0.0064544677734375, 0.01328277587890625, -0.0007920265197753906, -0.02044677734375, -0.0238037109375, 0.0142974853515625, 0.0293121337890625, -0.001251220703125, 0.018829345703125, -0.0218658447265625, 0.031982421875, 0.0032596588134765625, -0.024444580078125, 0.0218048095703125, -0.01386260986328125, 0.0005822181701660156, 0.0119476318359375, 0.0162811279296875, -0.06353759765625, 0.029022216796875, 0.037384033203125, 0.02484130859375, 0.021209716796875 ]
e353cfff86f6eb2f023c3e648f49f79a2fc8bc6c
Wordpress Stackexchange Q: Does hooking into the same action multiple times drain memory? Currently I have three functions that run on pre_get_posts. I call them like this: add_action( 'pre_get_posts', 'private_groups' ); add_action( 'pre_get_posts', 'search_results' ); add_action( 'pre_get_posts', 'name_profiles' ); This allows me to keep the functions neat and separate, but is calling to the same action three times, versus calling a combined function once, a drain on resources? A: I guess you mean add_action( 'pre_get_posts', 'private_groups' ); add_action( 'pre_get_posts', 'search_results' ); add_action( 'pre_get_posts', 'name_profiles' ); versus add_action( 'pre_get_posts', 'combined_into_single_callback' ); You can just check the difference using e.g. memory_get_usage() and timer_stop(). Many good plugins out there to help with that. I would say go with the first one, as they seems to be unrelated callbacks and probably easier to maintain. I would expect that to be mostly dependent on the callback functions you run there: private_groups(), search_results() and name_profiles() versus combined_into_single_callback(). The hook setup itself shouldn't be resource draining, as it's just three new extra elements in a global array. What you should be careful about, when using the pre_get_posts, is to target only the corresponding WP_Query instance and avoid running expensive code blocks for all the instances.
Q: Does hooking into the same action multiple times drain memory? Currently I have three functions that run on pre_get_posts. I call them like this: add_action( 'pre_get_posts', 'private_groups' ); add_action( 'pre_get_posts', 'search_results' ); add_action( 'pre_get_posts', 'name_profiles' ); This allows me to keep the functions neat and separate, but is calling to the same action three times, versus calling a combined function once, a drain on resources? A: I guess you mean add_action( 'pre_get_posts', 'private_groups' ); add_action( 'pre_get_posts', 'search_results' ); add_action( 'pre_get_posts', 'name_profiles' ); versus add_action( 'pre_get_posts', 'combined_into_single_callback' ); You can just check the difference using e.g. memory_get_usage() and timer_stop(). Many good plugins out there to help with that. I would say go with the first one, as they seems to be unrelated callbacks and probably easier to maintain. I would expect that to be mostly dependent on the callback functions you run there: private_groups(), search_results() and name_profiles() versus combined_into_single_callback(). The hook setup itself shouldn't be resource draining, as it's just three new extra elements in a global array. What you should be careful about, when using the pre_get_posts, is to target only the corresponding WP_Query instance and avoid running expensive code blocks for all the instances.
wordpress
{ "language": "en", "length": 196, "provenance": "stackexchange_00019.jsonl.gz:462305", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/214626" }
[ 0.10943603515625, -0.0282440185546875, 0.000232696533203125, -0.09588623046875, 0.018463134765625, -0.04315185546875, 0.0292816162109375, 0.023895263671875, -0.0228118896484375, 0.041290283203125, -0.01276397705078125, 0.0546875, -0.0137786865234375, -0.00385284423828125, -0.00946807861328125, -0.001140594482421875, 0.0733642578125, -0.03399658203125, 0.036712646484375, 0.0023822784423828125, 0.0153656005859375, 0.051971435546875, 0.00875091552734375, 0.0841064453125, 0.0423583984375, -0.09716796875, 0.0205535888671875, 0.00018608570098876953, 0.012725830078125, -0.0174560546875, 0.016357421875, 0.00933837890625, 0.00919342041015625, 0.029296875, 0.005901336669921875, 0.08038330078125, -0.0081024169921875, 0.0278167724609375, 0.0169219970703125, 0.017974853515625, 0.0269775390625, -0.0081329345703125, 0.0050201416015625, 0.0291595458984375, -0.00762939453125, -0.0528564453125, 0.06365966796875, -0.0310516357421875, 0.0239715576171875, -0.0318603515625, 0.02496337890625, 0.0130157470703125, 0.0291290283203125, -0.013641357421875, -0.0203399658203125, 0.0281829833984375, -0.0311737060546875, 0.0220184326171875, 0.037567138671875, 0.01314544677734375, -0.037322998046875, -0.031219482421875, 0.01094818115234375, -0.04913330078125, -0.00836944580078125, -0.0017404556274414062, 0.001575469970703125, 0.00849151611328125, -0.0304107666015625, -0.006015777587890625, 0.03314208984375, -0.0254058837890625, 0.00897216796875, 0.01169586181640625, -0.018798828125, -0.039825439453125, 0.01016998291015625, -0.0123443603515625, 0.0188446044921875, 0.0187225341796875, -0.051513671875, -0.03912353515625, -0.0509033203125, -0.004985809326171875, -0.0119171142578125, -0.01495361328125, -0.0281829833984375, 0.01873779296875, -0.021820068359375, -0.042327880859375, -0.022796630859375, -0.0582275390625, -0.01117706298828125, 0.01177978515625, -0.021392822265625, -0.02423095703125, 0.01136016845703125, 0.004985809326171875, 0.0157623291015625, -0.016143798828125, 0.032196044921875, -0.044708251953125, 0.01322174072265625, -0.007297515869140625, 0.001445770263671875, -0.0007300376892089844, -0.0155792236328125, 0.03179931640625, 0.058349609375, 0.051605224609375, -0.01297760009765625, 0.007781982421875, 0.039825439453125, -0.003032684326171875, -0.032012939453125, -0.02032470703125, -0.0173492431640625, 0.0501708984375, 0.016845703125, 0.036651611328125, 0.0019550323486328125, 0.005916595458984375, 0.0250091552734375, -0.0180206298828125, -0.01514434814453125, -0.0156707763671875, -0.029693603515625, -0.0223388671875, 0.0145721435546875, 0.03472900390625, 0.0025081634521484375, -0.0003333091735839844, 0.0350341796875, 0.0030517578125, -0.016693115234375, -0.0186767578125, 0.000005841255187988281, 0.007465362548828125, -0.0025463104248046875, 0.0255889892578125, 0.01336669921875, -0.06707763671875, -0.0284576416015625, 0.028167724609375, 0.045867919921875, -0.0164794921875, 0.0073394775390625, 0.007106781005859375, 0.031982421875, 0.025115966796875, 0.0114288330078125, -0.01507568359375, 0.018829345703125, 0.0002658367156982422, -0.0036792755126953125, 0.0261077880859375, -0.01189422607421875, 0.00972747802734375, -0.00971221923828125, 0.0026416778564453125, 0.0196990966796875, -0.0191802978515625, -0.013885498046875, -0.007328033447265625, -0.04443359375, 0.0195159912109375, -0.01290130615234375, 0.00130462646484375, 0.0198822021484375, -0.0163421630859375, 0.034820556640625, -0.00800323486328125, 0.016326904296875, -0.0177001953125, -0.008453369140625, -0.01279449462890625, -0.00864410400390625, 0.02349853515625, 0.048980712890625, -0.0452880859375, -0.06378173828125, -0.05255126953125, 0.07415771484375, -0.033355712890625, -0.09722900390625, 0.06488037109375, 0.0055694580078125, 0.0970458984375, 0.0167999267578125, 0.0012159347534179688, 0.072021484375, 0.00865936279296875, -0.0291595458984375, -0.002471923828125, 0.003185272216796875, -0.03448486328125, 0.01078033447265625, -0.0252685546875, -0.0028972625732421875, 0.0210418701171875, 0.06494140625, 0.0271453857421875, -0.0171356201171875, -0.02960205078125, -0.07769775390625, 0.016815185546875, -0.0214385986328125, 0.03338623046875, -0.0255126953125, 0.01398468017578125, 0.0279998779296875, 0.032318115234375, -0.04150390625, -0.0106964111328125, 0.0022525787353515625, 0.01052093505859375, -0.03387451171875, 0.02850341796875, 0.036712646484375, 0.01165771484375, 0.0369873046875, -0.00363922119140625, 0.0162506103515625, -0.006603240966796875, 0.0743408203125, 0.015045166015625, -0.039642333984375, -0.03582763671875, 0.0028629302978515625, -0.0068206787109375, -0.0465087890625, 0.0865478515625, 0.053466796875, 0.08197021484375, -0.0015659332275390625, -0.006786346435546875, 0.0171356201171875, -0.032196044921875, 0.009613037109375, 0.0313720703125, 0.03802490234375, 0.048858642578125, 0.006267547607421875, -0.01788330078125, 0.03302001953125, -0.0341796875, 0.042022705078125, -0.047943115234375, 0.006130218505859375, 0.0498046875, -0.047576904296875, 0.004825592041015625, 0.0145721435546875, -0.04827880859375, 0.008697509765625, 0.0399169921875, -0.0301055908203125, -0.03973388671875, 0.024749755859375, -0.044586181640625, 0.04193115234375, -0.0498046875, -0.050689697265625, 0.003871917724609375, -0.045928955078125, -0.033111572265625, -0.020965576171875, -0.0291748046875, 0.006290435791015625, -0.02813720703125, 0.03729248046875, -0.034637451171875, -0.0222015380859375, -0.0050201416015625, -0.0273895263671875, -0.0264434814453125, -0.037994384765625, 0.03570556640625, -0.04449462890625, -0.03875732421875, 0.0033016204833984375, 0.08929443359375, -0.033355712890625, -0.01456451416015625, -0.033172607421875, -0.05718994140625, -0.02435302734375, 0.005828857421875, 0.03778076171875, -0.01021575927734375, 0.0142364501953125, 0.0002282857894897461, -0.026519775390625, 0.0570068359375, -0.00829315185546875, -0.05322265625, 0.040557861328125, -0.039154052734375, 0.036041259765625, -0.0323486328125, 0.048126220703125, 0.0465087890625, -0.0220489501953125, 0.01233673095703125, -0.0096893310546875, -0.0216827392578125, -0.01525115966796875, 0.0355224609375, 0.0002491474151611328, -0.037353515625, -0.019500732421875, 0.0465087890625, 0.0279388427734375, 0.09893798828125, -0.0221710205078125, -0.062408447265625, 0.0145721435546875, 0.03363037109375, -0.0208740234375, -0.046722412109375, 0.006252288818359375, -0.0625, 0.030975341796875, -0.0215301513671875, -0.024444580078125, -0.0232086181640625, 0.00296783447265625, 0.0216064453125, 0.02093505859375, -0.0100250244140625, -0.02764892578125, -0.0171661376953125, -0.039398193359375, 0.0229034423828125, 0.0141448974609375, 0.01190948486328125, 0.0078125, 0.08642578125, 0.01291656494140625, -0.03961181640625, 0.010009765625, 0.0026111602783203125, -0.0399169921875, 0.0018930435180664062, -0.002819061279296875, -0.0013637542724609375, 0.0291290283203125, 0.00634002685546875, -0.0263519287109375, 0.01727294921875, -0.0027866363525390625, -0.03155517578125, 0.031585693359375, 0.00949859619140625, 0.0567626953125, 0.049224853515625, -0.04827880859375, 0.03985595703125, 0.06610107421875, -0.030242919921875, 0.0103302001953125, -0.00991058349609375, -0.0251617431640625, -0.046112060546875, 0.0239105224609375, 0.0030498504638671875, -0.0294342041015625, -0.003955841064453125, 0.0002663135528564453, 0.032379150390625, -0.01251983642578125, 0.0127716064453125, 0.0147552490234375, -0.0219573974609375, -0.0072784423828125, 0.0084381103515625, -0.005840301513671875, -0.0290679931640625, 0.01300048828125, 0.0001615285873413086, 0.023101806640625, 0.0176849365234375, -0.02825927734375, -0.0186767578125, 0.03271484375, 0.019287109375, -0.0240020751953125, 0.01247406005859375, -0.01512908935546875, 0.0038547515869140625, -0.02545166015625, 0.0123291015625, -0.021636962890625, -0.0189971923828125, -0.019073486328125, 0.0193634033203125, -0.0262908935546875, -0.07611083984375, -0.0015316009521484375, -0.0027790069580078125, -0.00502777099609375, 0.004894256591796875, 0.01084136962890625, -0.01534271240234375, -0.0218048095703125, -0.01198577880859375, -0.022918701171875, -0.007770538330078125, 0.02239990234375, 0.005916595458984375, 0.02801513671875, -0.00859832763671875, 0.00966644287109375, -0.0171661376953125, -0.0139312744140625, -0.01103973388671875, -0.081298828125, -0.01015472412109375, -0.01560211181640625, 0.050201416015625, 0.00943756103515625, -0.019683837890625, -0.03790283203125, 0.0199127197265625, 0.0300445556640625, 0.024200439453125, 0.02587890625, -0.0178375244140625, 0.032379150390625, -0.0008792877197265625, 0.0044708251953125, -0.01229095458984375, 0.0006866455078125, -0.0169830322265625, -0.0254058837890625, -0.0149078369140625, -0.039154052734375, -0.035125732421875, -0.0184326171875, -0.028106689453125, -0.051849365234375, -0.022857666015625, 0.0079193115234375, -0.014312744140625, -0.0301055908203125, 0.0116424560546875, -0.0097808837890625, -0.0214080810546875, 0.002361297607421875, -0.01486968994140625, -0.00629425048828125, -0.00017833709716796875, 0.0243072509765625, 0.026153564453125, -0.005535125732421875, 0.01824951171875, 0.0084381103515625, 0.0186920166015625, -0.028900146484375, 0.0248260498046875, -0.0190582275390625, -0.016815185546875, 0.045928955078125, -0.0307769775390625, 0.0210113525390625, -0.0290069580078125, 0.04351806640625, 0.00563812255859375, 0.035308837890625, -0.0213623046875, 0.012664794921875, 0.014495849609375, 0.049285888671875, -0.0146484375, -0.0169830322265625, -0.01284027099609375, 0.060089111328125, -0.042724609375, 0.0101776123046875, -0.07208251953125, -0.0083465576171875, -0.00795745849609375, 0.007312774658203125, 0.06549072265625, 0.0142974853515625, 0.01506805419921875, 0.0059814453125, 0.0034160614013671875, -0.0148468017578125, -0.0201416015625, 0.0218353271484375, 0.0033321380615234375, 0.019989013671875, 0.01751708984375, -0.0079345703125, -0.044708251953125, 0.000553131103515625, -0.0024509429931640625, -0.0115509033203125, -0.03546142578125, -0.032470703125, 0.005367279052734375, 0.02947998046875, 0.01561737060546875, 0.0083465576171875, 0.038848876953125, 0.0197601318359375, -0.02056884765625, -0.022247314453125, 0.003452301025390625, -0.017242431640625, -0.0511474609375, -0.0077362060546875, -0.004154205322265625, 0.0022983551025390625, 0.040496826171875, -0.00927734375, 0.027984619140625, 0.00431060791015625, -0.03955078125, 0.055206298828125, 0.050689697265625, -0.007442474365234375, 0.01153564453125, 0.00946044921875, -0.009765625, -0.00766754150390625, -0.0186614990234375, -0.033050537109375, -0.023406982421875, 0.033233642578125, 0.005283355712890625, 0.0255584716796875, 0.019500732421875, 0.01499176025390625, 0.0474853515625, -0.021484375, 0.05548095703125, 0.050018310546875, -0.06134033203125, -0.00876617431640625, -0.00937652587890625, -0.02325439453125, -0.019622802734375, 0.014129638671875, 0.01165008544921875, 0.0526123046875, 0.042266845703125, -0.05401611328125, -0.01025390625, 0.0176544189453125, 0.040313720703125, -0.03497314453125, -0.0406494140625, 0.0059814453125, -0.0166168212890625, -0.0007848739624023438, 0.0018787384033203125, -0.02813720703125, 0.0110626220703125, -0.020172119140625, 0.0205078125, -0.0235595703125, -0.007213592529296875, -0.047760009765625, 0.0202484130859375, 0.029632568359375, 0.0171051025390625, -0.04949951171875, -0.00513458251953125, -0.03985595703125, -0.022308349609375, -0.024169921875, -0.0236358642578125, -0.0304412841796875, 0.01166534423828125, -0.01056671142578125, 0.003299713134765625, 0.0242462158203125, 0.037445068359375, 0.0124053955078125, 0.0231475830078125, -0.0220184326171875, 0.00882720947265625, -0.0167083740234375, 0.0198516845703125, 0.00820159912109375, 0.045440673828125, 0.00048422813415527344, 0.00896453857421875, 0.032989501953125, -0.02008056640625, 0.0022869110107421875, -0.0777587890625, -0.0276336669921875, -0.0164947509765625, -0.01531219482421875, 0.06646728515625, 0.0265350341796875, 0.001617431640625, -0.0161285400390625, 0.021942138671875, 0.0149688720703125, 0.001903533935546875, 0.0112152099609375, 0.0305633544921875, -0.03948974609375, 0.047760009765625, -0.014190673828125, 0.0231170654296875, 0.00817108154296875, -0.028839111328125, 0.050811767578125, -0.022705078125, 0.0298614501953125, 0.0037784576416015625, -0.01238250732421875, 0.0036830902099609375, 0.0482177734375, 0.0006923675537109375, 0.0298309326171875, 0.002735137939453125, 0.00476837158203125, 0.02777099609375, 0.024261474609375, -0.0159912109375, -0.031524658203125, 0.07208251953125, 0.005840301513671875, -0.0343017578125, 0.05499267578125, -0.0413818359375, 0.0210113525390625, 0.00188446044921875, 0.0299072265625, -0.0298919677734375, 0.021026611328125, 0.0112762451171875, -0.037994384765625, -0.0032825469970703125, -0.0009851455688476562, -0.01270294189453125, -0.023101806640625, 0.048828125, 0.019317626953125, -0.01074981689453125, 0.021484375, 0.00940704345703125, 0.0039005279541015625, -0.0208892822265625, -0.0006670951843261719, -0.002765655517578125, -0.047454833984375, 0.023101806640625, 0.0305938720703125, 0.004405975341796875, -0.01039886474609375, 0.01468658447265625, 0.0026836395263671875, -0.04107666015625, -0.08642578125, -0.0340576171875, -0.0012807846069335938, -0.04827880859375, -0.011993408203125, 0.009307861328125, 0.0191192626953125, 0.028076171875, 0.0005559921264648438, -0.0106353759765625, 0.01454925537109375, -0.04388427734375, -0.06866455078125, 0.0015020370483398438, 0.0226287841796875, 0.0176849365234375, -0.0236663818359375, 0.021728515625, -0.04913330078125, -0.006702423095703125, 0.005496978759765625, -0.047210693359375, 0.00839996337890625, -0.01486968994140625, -0.014739990234375, 0.0210113525390625, -0.0247344970703125, 0.00423431396484375, 0.0222015380859375, 0.01285552978515625, -0.0301666259765625, -0.0302581787109375, 0.00800323486328125, -0.060943603515625, -0.01274871826171875, -0.00031113624572753906, -0.032196044921875, 0.0947265625, -0.0194091796875, 0.01256561279296875, -0.0033397674560546875, 0.0369873046875, 0.009979248046875, 0.041717529296875, -0.0511474609375, 0.055633544921875, 0.020660400390625, 0.0377197265625, -0.0169677734375, 0.01177978515625, 0.01525115966796875, -0.03167724609375, 0.0056610107421875, -0.0012121200561523438, -0.0257415771484375, -0.0256805419921875, 0.01073455810546875, 0.01479339599609375, -0.004913330078125, 0.0249176025390625, 0.004795074462890625, 0.07366943359375, 0.037811279296875, -0.041473388671875, 0.039337158203125, -0.01727294921875, -0.04302978515625, 0.043792724609375, -0.0092620849609375, 0.0128326416015625, -0.004550933837890625, 0.03436279296875, -0.03131103515625, -0.003070831298828125, 0.0228118896484375, -0.005664825439453125, -0.0170440673828125, 0.044891357421875, 0.038665771484375, -0.02618408203125, 0.00748443603515625, -0.04254150390625, 0.04833984375, 0.0291595458984375, 0.005329132080078125, 0.0241241455078125, 0.0178680419921875, 0.032135009765625, 0.0003714561462402344, 0.00010406970977783203, 0.0274810791015625, -0.006870269775390625, 0.056884765625, 0.0338134765625, 0.055999755859375, -0.0300750732421875, -0.020751953125, 0.0390625, 0.085693359375, -0.035247802734375, -0.07464599609375, -0.01020050048828125, -0.00362396240234375, 0.03167724609375, 0.00923919677734375, 0.0127410888671875, -0.017120361328125, 0.032989501953125, -0.03253173828125, -0.0229949951171875, -0.0203399658203125, -0.008819580078125, -0.022705078125, 0.01038360595703125, 0.0592041015625, -0.0016183853149414062, 0.005100250244140625, -0.0137176513671875, 0.0278167724609375, 0.03167724609375, -0.0116424560546875, 0.01959228515625, -0.05908203125, 0.0006918907165527344, -0.005916595458984375, 0.00794219970703125, -0.0092926025390625, 0.0240020751953125, -0.056243896484375, -0.05078125, 0.0204620361328125, 0.0638427734375, 0.07318115234375, 0.05633544921875, 0.047515869140625, -0.00348663330078125, -0.00765228271484375, 0.041595458984375, 0.039886474609375, -0.0151824951171875, -0.0026721954345703125, -0.0240020751953125, -0.027008056640625, -0.0103302001953125, -0.03436279296875, -0.015960693359375, -0.023590087890625, 0.0189361572265625, 0.0112457275390625, -0.04559326171875, 0.0111541748046875, -0.036102294921875, 0.073974609375, -0.007122039794921875, 0.049713134765625, 0.009796142578125, -0.058929443359375, 0.006427764892578125, -0.048431396484375, -0.057586669921875, 0.01122283935546875, 0.033905029296875, -0.00473785400390625, 0.0156402587890625, 0.033172607421875, 0.018035888671875, 0.024658203125, -0.004962921142578125, -0.0242462158203125, -0.012847900390625, 0.05938720703125, -0.0010509490966796875, 0.00009733438491821289, 0.01439666748046875, -0.001361846923828125, 0.0117645263671875, 0.008514404296875, 0.043365478515625, -0.004978179931640625, 0.0192718505859375, 0.04815673828125, -0.03424072265625, 0.0278472900390625, 0.0362548828125, -0.0121307373046875, -0.025970458984375, -0.00997161865234375, -0.0162506103515625, -0.0274200439453125, -0.0149993896484375, 0.04052734375, -0.042327880859375, -0.00652313232421875, 0.005290985107421875, 0.0248565673828125, -0.020660400390625, 0.00974273681640625, -0.022796630859375, 0.005733489990234375, -0.019287109375, -0.02301025390625, 0.043975830078125, 0.0090789794921875, -0.0167083740234375, 0.01113128662109375, 0.0270233154296875, 0.00868988037109375, -0.011688232421875, 0.0252685546875, -0.0197296142578125, 0.0136871337890625, -0.002674102783203125, -0.0028820037841796875, 0.007282257080078125, -0.0212554931640625, 0.0101318359375, 0.02490234375, -0.00460052490234375, 0.0384521484375, -0.021759033203125, 0.025787353515625, -0.01155853271484375, 0.037872314453125, -0.040557861328125, 0.0170745849609375, 0.0033435821533203125, 0.034820556640625, -0.00006502866744995117, 0.01123809814453125, -0.032501220703125, -0.0179443359375, -0.01537322998046875, -0.01062774658203125, -0.03094482421875, -0.06536865234375, -0.052581787109375, -0.0205078125, 0.061859130859375, 0.03631591796875, -0.080810546875, 0.04498291015625, -0.0034542083740234375, 0.00562286376953125, 0.016082763671875, -0.029571533203125, -0.01509857177734375, 0.006252288818359375, -0.005035400390625, -0.03765869140625, -0.04022216796875, 0.036712646484375, -0.0193023681640625, 0.007617950439453125, 0.035308837890625, 0.004283905029296875, -0.03826904296875, 0.0031032562255859375, -0.0164031982421875, 0.037139892578125, -0.045379638671875, -0.01947021484375, 0.01335906982421875, 0.0239105224609375, -0.00921630859375, -0.068359375, -0.005275726318359375, -0.0270233154296875, 0.0183868408203125, -0.0096588134765625, 0.0096282958984375, 0.02557373046875, -0.0261383056640625, -0.0270233154296875, 0.0924072265625, -0.00693511962890625, -0.01114654541015625, -0.1260986328125, 0.0202178955078125, 0.0007295608520507812, 0.01165008544921875, -0.047760009765625, -0.0025119781494140625, -0.0226898193359375, 0.07440185546875, 0.00682830810546875, 0.00664520263671875, 0.046630859375, -0.0221710205078125, -0.004550933837890625, 0.0020389556884765625, 0.0148162841796875, 0.003009796142578125, 0.006206512451171875, -0.0135498046875, 0.05426025390625, 0.046966552734375, -0.02227783203125, 0.04583740234375, 0.01210784912109375, 0.0017681121826171875, -0.0195770263671875, -0.054107666015625, -0.01120758056640625, 0.007511138916015625, 0.077392578125, 0.0172576904296875, 0.0149383544921875, -0.056243896484375, 0.00388336181640625, -0.00913238525390625, -0.0484619140625, -0.0147247314453125, 0.0171051025390625, -0.037078857421875, 0.004947662353515625, -0.021270751953125, 0.001277923583984375, -0.0019989013671875, -0.0252227783203125, 0.0041656494140625, -0.012054443359375, 0.010986328125, -0.004123687744140625, 0.00868988037109375, -0.0113067626953125, -0.00415802001953125, -0.000926971435546875, -0.040802001953125, -0.0026988983154296875, 0.0017633438110351562, -0.0455322265625, 0.0272674560546875, 0.023193359375, 0.016632080078125, -0.042999267578125, -0.004512786865234375, 0.02655029296875, 0.036651611328125, -0.0175323486328125, -0.031890869140625, -0.007198333740234375, 0.019561767578125, -0.0081024169921875, 0.01303863525390625, 0.0138397216796875, 0.04730224609375, 0.005245208740234375, 0.08660888671875, -0.044036865234375, 0.137451171875, -0.0004100799560546875, 0.0078582763671875, 0.0019216537475585938, 0.03448486328125, 0.0601806640625, 0.000028133392333984375, -0.004329681396484375, -0.025604248046875, -0.027130126953125, -0.041046142578125, 0.031494140625, 0.0038738250732421875, -0.021942138671875, 0.02178955078125 ]
c5c835d7eb5d13dcf9297cec20380da29bea25c3
Wordpress Stackexchange Q: How can I get the post ID from a WP_Query loop? I have a WP_Query loop that gets posts of a certain type. These posts have custom post meta so I need to be able to get the ID of the post without echoing it so I can display that post's meta. How can I get the ID of the post without echoing it? This is my code: $menu_id = get_the_id(); $category_args = array( 'post_type' => 'category', 'post_parent' => $menu_id ); $menu_categories = new WP_Query($category_args); while($menu_categories->have_posts()) : $menu_categories->the_post(); $category_id = ??????; ?> <h4><?php echo the_title(); ?></h4><?php $dish_args = array( 'post_type' => 'dish', 'post_parent' => $category_id ); $category_dishes = new WP_Query($dish_args); while($category_dishes->have_posts()) : $category_dishes->the_post(); $dish_meta = get_post_meta(???????);?> <h6><?php echo the_title(); ?> - <?php echo $dish_meta[0]['price']; ?></h6> <p><?php echo the_content(); ?></p><?php endwhile; endwhile; A: get_the_ID() function will give you post ID.., $args = array( 's' => $_POST['search_text'], 'posts_per_page' => -1, 'post_type' => 'address' ); $query = new WP_Query( $args ); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); $address_post_id = get_the_ID() ; } }
Q: How can I get the post ID from a WP_Query loop? I have a WP_Query loop that gets posts of a certain type. These posts have custom post meta so I need to be able to get the ID of the post without echoing it so I can display that post's meta. How can I get the ID of the post without echoing it? This is my code: $menu_id = get_the_id(); $category_args = array( 'post_type' => 'category', 'post_parent' => $menu_id ); $menu_categories = new WP_Query($category_args); while($menu_categories->have_posts()) : $menu_categories->the_post(); $category_id = ??????; ?> <h4><?php echo the_title(); ?></h4><?php $dish_args = array( 'post_type' => 'dish', 'post_parent' => $category_id ); $category_dishes = new WP_Query($dish_args); while($category_dishes->have_posts()) : $category_dishes->the_post(); $dish_meta = get_post_meta(???????);?> <h6><?php echo the_title(); ?> - <?php echo $dish_meta[0]['price']; ?></h6> <p><?php echo the_content(); ?></p><?php endwhile; endwhile; A: get_the_ID() function will give you post ID.., $args = array( 's' => $_POST['search_text'], 'posts_per_page' => -1, 'post_type' => 'address' ); $query = new WP_Query( $args ); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); $address_post_id = get_the_ID() ; } } A: get_the_ID() can (only) be used within the loop. This retrieves the ID of the current post handled by the loop. You can use it on it's own if you need it only once: $dish_meta = get_post_meta( get_the_ID(), 'dish_meta', true ); You can also store it as a variable if you need it more than once: $post_id = get_the_ID(); $dish_meta = get_post_meta( $post_id, 'dish_meta', true ); $drink_meta = get_post_meta( $post_id, 'drink_meta', true ); print_r( $post_id ); //etc Reference: get_the_ID()
wordpress
{ "language": "en", "length": 255, "provenance": "stackexchange_00019.jsonl.gz:462330", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/214699" }
[ 0.054443359375, 0.0164947509765625, 0.020477294921875, 0.007061004638671875, 0.034942626953125, -0.03619384765625, 0.07269287109375, -0.05963134765625, 0.022308349609375, 0.036376953125, -0.0516357421875, -0.0277099609375, 0.0040740966796875, -0.019622802734375, -0.0229644775390625, -0.048858642578125, 0.052276611328125, -0.04327392578125, 0.0230255126953125, 0.00669097900390625, 0.0165863037109375, 0.0203399658203125, 0.054595947265625, 0.023712158203125, 0.044647216796875, -0.06585693359375, -0.004268646240234375, -0.0066986083984375, 0.017608642578125, -0.0153350830078125, 0.0175323486328125, 0.0198822021484375, 0.0018796920776367188, -0.0000997781753540039, 0.039154052734375, 0.0078125, 0.03363037109375, -0.00484466552734375, 0.054046630859375, 0.003253936767578125, 0.01255035400390625, -0.004608154296875, -0.003787994384765625, 0.025787353515625, -0.0279388427734375, -0.0081024169921875, -0.005527496337890625, -0.04107666015625, 0.0160675048828125, 0.0082855224609375, -0.0037078857421875, 0.036895751953125, 0.0028247833251953125, 0.0214996337890625, -0.00986480712890625, 0.0029621124267578125, 0.020904541015625, -0.055206298828125, 0.04742431640625, -0.0294036865234375, -0.048187255859375, -0.0430908203125, 0.048797607421875, -0.0242767333984375, -0.0115814208984375, 0.0277557373046875, 0.052734375, 0.005474090576171875, -0.0293426513671875, -0.0283966064453125, 0.01149749755859375, -0.00841522216796875, -0.00537109375, -0.01168060302734375, -0.042816162109375, -0.0654296875, 0.04046630859375, -0.064697265625, -0.0230865478515625, 0.0134429931640625, -0.017181396484375, -0.04119873046875, -0.08880615234375, 0.044281005859375, -0.0185699462890625, 0.06793212890625, -0.0185394287109375, -0.020660400390625, -0.0190582275390625, -0.04205322265625, -0.0253143310546875, -0.0386962890625, 0.003688812255859375, -0.01934814453125, -0.0289154052734375, -0.036712646484375, -0.00858306884765625, 0.043243408203125, -0.023834228515625, 0.03131103515625, -0.029510498046875, -0.025634765625, 0.04644775390625, -0.050933837890625, 0.01125335693359375, 0.036376953125, 0.00559234619140625, 0.0177154541015625, 0.0472412109375, 0.0233154296875, 0.0124053955078125, 0.0185699462890625, -0.038848876953125, 0.01605224609375, -0.04254150390625, 0.047882080078125, -0.048492431640625, -0.043731689453125, -0.04205322265625, 0.019775390625, -0.001422882080078125, 0.0070953369140625, 0.0280914306640625, -0.01446533203125, 0.035400390625, 0.0262603759765625, -0.01306915283203125, -0.045654296875, -0.01788330078125, 0.02520751953125, -0.0511474609375, -0.01532745361328125, 0.09417724609375, 0.07269287109375, 0.048858642578125, -0.038848876953125, -0.0235748291015625, -0.034454345703125, -0.0113067626953125, 0.002227783203125, 0.00824737548828125, -0.03155517578125, 0.019744873046875, 0.005832672119140625, -0.02801513671875, 0.03399658203125, 0.00881195068359375, -0.009307861328125, -0.011505126953125, -0.0253143310546875, -0.05059814453125, -0.0303955078125, 0.026397705078125, 0.0233917236328125, -0.0147552490234375, 0.0283660888671875, 0.041046142578125, -0.021728515625, -0.029998779296875, -0.042999267578125, -0.006168365478515625, 0.0082550048828125, 0.036346435546875, 0.01380157470703125, -0.007335662841796875, 0.0002582073211669922, -0.022552490234375, -0.01323699951171875, 0.022705078125, 0.0787353515625, 0.01403045654296875, -0.0010204315185546875, 0.003643035888671875, -0.0008206367492675781, -0.0274200439453125, -0.0296783447265625, 0.002559661865234375, 0.0002884864807128906, 0.0217437744140625, 0.0012559890747070312, -0.04119873046875, -0.044342041015625, 0.0225677490234375, -0.0229949951171875, -0.05963134765625, 0.09014892578125, 0.0126190185546875, 0.08526611328125, -0.00284576416015625, 0.007251739501953125, 0.0589599609375, 0.018890380859375, -0.0618896484375, 0.059326171875, -0.01154327392578125, -0.0191497802734375, -0.001979827880859375, 0.00010180473327636719, -0.003322601318359375, -0.0189208984375, -0.001789093017578125, -0.01511383056640625, -0.0035228729248046875, 0.026458740234375, -0.058685302734375, -0.0044097900390625, -0.0178070068359375, 0.0272369384765625, -0.0027103424072265625, 0.01216888427734375, 0.026153564453125, -0.0145263671875, -0.0179290771484375, -0.0230255126953125, -0.031768798828125, 0.01070404052734375, -0.0199127197265625, -0.017822265625, -0.034454345703125, 0.01084136962890625, -0.038299560546875, -0.01513671875, -0.052764892578125, 0.016387939453125, 0.10235595703125, -0.01171875, 0.0122833251953125, -0.026885986328125, 0.0904541015625, 0.01427459716796875, -0.0576171875, -0.00327301025390625, 0.0286712646484375, 0.002849578857421875, -0.0364990234375, 0.0027866363525390625, 0.007740020751953125, -0.0572509765625, -0.00414276123046875, 0.06842041015625, 0.0211029052734375, 0.034515380859375, -0.0179901123046875, -0.006038665771484375, 0.03387451171875, -0.052001953125, -0.0018768310546875, -0.01076507568359375, 0.01056671142578125, 0.052154541015625, 0.00033283233642578125, 0.01049041748046875, 0.02685546875, 0.038421630859375, -0.0033473968505859375, 0.043426513671875, -0.002040863037109375, 0.006183624267578125, 0.005390167236328125, 0.00567626953125, -0.0159912109375, -0.0174102783203125, -0.0013952255249023438, -0.00948333740234375, -0.0016298294067382812, 0.03192138671875, 0.033538818359375, 0.030303955078125, -0.0311737060546875, -0.006313323974609375, 0.0174407958984375, 0.055816650390625, -0.004337310791015625, -0.002910614013671875, -0.026336669921875, -0.007114410400390625, -0.0249481201171875, 0.0201263427734375, 0.004611968994140625, -0.023681640625, 0.00012385845184326172, 0.0374755859375, 0.0154876708984375, -0.004550933837890625, -0.0193939208984375, -0.0219879150390625, 0.01641845703125, 0.025115966796875, 0.0208892822265625, 0.0281219482421875, 0.032623291015625, 0.04913330078125, -0.003082275390625, 0.041473388671875, 0.0010805130004882812, 0.0111236572265625, 0.05096435546875, -0.022613525390625, 0.012664794921875, -0.004924774169921875, 0.056793212890625, 0.0509033203125, -0.0033702850341796875, 0.007709503173828125, 0.0010042190551757812, -0.035400390625, 0.00469970703125, 0.0318603515625, 0.0009889602661132812, -0.0214080810546875, -0.049163818359375, 0.0146484375, 0.01549530029296875, 0.09051513671875, -0.00418853759765625, -0.04632568359375, 0.0159912109375, 0.04388427734375, -0.08905029296875, -0.126953125, 0.032989501953125, -0.039764404296875, -0.0263671875, -0.034454345703125, -0.025665283203125, 0.01236724853515625, -0.02874755859375, -0.00933837890625, 0.009918212890625, -0.0098724365234375, -0.08172607421875, -0.03887939453125, -0.0755615234375, -0.00434112548828125, -0.0150909423828125, 0.016204833984375, 0.0120849609375, 0.0012159347534179688, 0.0202484130859375, -0.021148681640625, 0.044647216796875, 0.050811767578125, -0.020843505859375, -0.0037670135498046875, -0.034088134765625, -0.0043792724609375, -0.0210723876953125, -0.00049591064453125, -0.032135009765625, -0.021026611328125, 0.033203125, -0.01531219482421875, -0.00984954833984375, 0.03753662109375, 0.03985595703125, 0.003993988037109375, 0.0024204254150390625, 0.06597900390625, 0.06561279296875, 0.00699615478515625, -0.032989501953125, -0.04803466796875, -0.06439208984375, 0.0311737060546875, 0.0638427734375, 0.022705078125, -0.03924560546875, 0.0242767333984375, -0.00261688232421875, 0.00001990795135498047, 0.00200653076171875, -0.03692626953125, 0.06768798828125, 0.004398345947265625, 0.021484375, -0.00820159912109375, -0.00775146484375, -0.0195159912109375, 0.004428863525390625, -0.025390625, 0.01142120361328125, -0.0005125999450683594, -0.0204315185546875, -0.032012939453125, -0.0176239013671875, 0.035247802734375, -0.0008993148803710938, 0.0256500244140625, -0.0227203369140625, -0.04522705078125, -0.022796630859375, 0.08038330078125, -0.0021114349365234375, -0.0092620849609375, -0.0134429931640625, -0.002803802490234375, -0.009002685546875, -0.032470703125, -0.041290283203125, -0.00563812255859375, -0.060150146484375, -0.016448974609375, -0.0201873779296875, -0.01373291015625, 0.0160980224609375, 0.05047607421875, 0.001041412353515625, -0.0309906005859375, 0.045440673828125, -0.05401611328125, -0.00864410400390625, 0.045654296875, -0.020599365234375, 0.02215576171875, -0.050567626953125, 0.003818511962890625, -0.039642333984375, -0.0127410888671875, 0.0130157470703125, 0.0176239013671875, -0.003566741943359375, -0.02667236328125, 0.02056884765625, 0.0474853515625, -0.0010175704956054688, 0.04241943359375, -0.01058197021484375, 0.0238189697265625, -0.04412841796875, -0.039581298828125, -0.0002040863037109375, -0.04559326171875, -0.01617431640625, -0.01409912109375, -0.01806640625, 0.0250091552734375, -0.034820556640625, -0.01580810546875, -0.01837158203125, -0.0139312744140625, -0.045257568359375, -0.0199432373046875, 0.00728607177734375, 0.0172576904296875, -0.0150909423828125, 0.016143798828125, -0.02593994140625, -0.048370361328125, 0.047088623046875, 0.0194091796875, -0.00608062744140625, -0.010162353515625, 0.10015869140625, 0.0209808349609375, -0.0389404296875, -0.0259552001953125, 0.016510009765625, 0.0321044921875, -0.036041259765625, 0.05059814453125, 0.0210723876953125, -0.0159454345703125, 0.045379638671875, -0.00646209716796875, -0.00676727294921875, 0.00917816162109375, 0.059295654296875, -0.0203857421875, -0.032562255859375, 0.0275726318359375, -0.05181884765625, -0.0187530517578125, 0.0241241455078125, -0.004810333251953125, -0.04107666015625, 0.0243072509765625, 0.0550537109375, -0.037994384765625, 0.050262451171875, -0.0180816650390625, -0.011932373046875, 0.0027446746826171875, 0.024017333984375, 0.0081939697265625, 0.0257110595703125, -0.00555419921875, -0.0037689208984375, 0.01432037353515625, 0.0182647705078125, -0.0018033981323242188, 0.0247955322265625, -0.013671875, 0.03656005859375, 0.01568603515625, 0.004543304443359375, -0.014862060546875, 0.01959228515625, 0.0183563232421875, -0.014007568359375, -0.0214691162109375, -0.0611572265625, 0.00467681884765625, -0.0223846435546875, 0.0249481201171875, 0.01514434814453125, 0.050689697265625, 0.0247955322265625, -0.0079193115234375, -0.017822265625, 0.0073089599609375, -0.00481414794921875, -0.031402587890625, 0.0280609130859375, 0.004486083984375, 0.006603240966796875, -0.01477813720703125, 0.10052490234375, -0.01666259765625, 0.06634521484375, -0.0298614501953125, 0.0215911865234375, -0.006877899169921875, 0.03814697265625, 0.013031005859375, -0.031280517578125, 0.01904296875, -0.0012035369873046875, 0.00795745849609375, -0.03271484375, 0.02703857421875, 0.060394287109375, 0.035888671875, 0.0278472900390625, -0.0222930908203125, -0.0244293212890625, -0.0277099609375, -0.01465606689453125, 0.04217529296875, 0.03662109375, -0.014373779296875, -0.04095458984375, -0.0238037109375, 0.023223876953125, 0.02093505859375, 0.0139923095703125, -0.0174102783203125, 0.0305328369140625, 0.03125, -0.02593994140625, 0.003387451171875, 0.005401611328125, 0.01071929931640625, -0.01611328125, -0.0102081298828125, 0.00911712646484375, 0.01284027099609375, -0.0012073516845703125, -0.0179290771484375, -0.0220794677734375, 0.0440673828125, 0.01500701904296875, 0.07147216796875, -0.0533447265625, -0.040313720703125, 0.002162933349609375, -0.008697509765625, 0.06298828125, 0.0208892822265625, -0.0272674560546875, 0.007625579833984375, -0.031219482421875, 0.0012941360473632812, 0.04248046875, -0.0309600830078125, -0.0227813720703125, -0.042236328125, -0.0170440673828125, 0.0472412109375, -0.00894927978515625, 0.047271728515625, -0.00955963134765625, -0.023406982421875, -0.054290771484375, 0.06097412109375, -0.02099609375, 0.039459228515625, 0.0223236083984375, 0.01007080078125, 0.01018524169921875, 0.01009368896484375, -0.015350341796875, 0.000038683414459228516, -0.0279083251953125, -0.0350341796875, 0.01708984375, 0.0212554931640625, 0.0281982421875, -0.01535797119140625, -0.0184326171875, 0.00994110107421875, 0.01971435546875, -0.006259918212890625, -0.00615692138671875, -0.01551055908203125, -0.0205535888671875, -0.007427215576171875, 0.01837158203125, 0.0158233642578125, -0.0638427734375, -0.047332763671875, 0.038330078125, 0.0609130859375, -0.0007195472717285156, -0.0362548828125, -0.0309600830078125, 0.03143310546875, -0.0243988037109375, 0.01824951171875, 0.08197021484375, 0.019683837890625, 0.040130615234375, -0.00946044921875, 0.00433349609375, 0.033050537109375, 0.01160430908203125, 0.00041675567626953125, -0.0171356201171875, 0.04962158203125, 0.006725311279296875, 0.002002716064453125, 0.041839599609375, -0.0183563232421875, -0.0018253326416015625, -0.017669677734375, 0.03472900390625, 0.01009368896484375, 0.0010528564453125, 0.0189971923828125, -0.037811279296875, -0.01959228515625, 0.017913818359375, -0.0067901611328125, -0.00705718994140625, 0.025146484375, -0.010772705078125, -0.005718231201171875, 0.0296783447265625, 0.002109527587890625, 0.008453369140625, -0.03814697265625, 0.0401611328125, -0.00734710693359375, -0.032196044921875, 0.0004525184631347656, 0.0112152099609375, -0.0022430419921875, -0.05859375, -0.00975799560546875, 0.006381988525390625, 0.01091766357421875, -0.082763671875, 0.020965576171875, -0.016845703125, 0.022674560546875, 0.05078125, 0.0180816650390625, 0.0221099853515625, 0.0362548828125, 0.0269317626953125, -0.01181793212890625, -0.006633758544921875, -0.0014333724975585938, -0.0226593017578125, -0.03546142578125, -0.039276123046875, 0.06646728515625, 0.0017461776733398438, 0.024383544921875, 0.0269622802734375, -0.0116729736328125, -0.009002685546875, -0.02728271484375, 0.04400634765625, -0.033966064453125, -0.01036834716796875, 0.0262298583984375, 0.033477783203125, -0.007358551025390625, 0.002452850341796875, 0.0321044921875, 0.00022780895233154297, 0.01885986328125, 0.0038909912109375, 0.010650634765625, -0.019805908203125, -0.02923583984375, -0.046173095703125, 0.0726318359375, 0.004547119140625, -0.00640106201171875, 0.01226043701171875, 0.0355224609375, -0.031341552734375, 0.00653839111328125, -0.0440673828125, 0.061798095703125, -0.01326751708984375, 0.04150390625, -0.0626220703125, -0.0146331787109375, 0.0011081695556640625, 0.037994384765625, 0.079345703125, 0.0181884765625, -0.04229736328125, -0.03436279296875, 0.0184173583984375, 0.05877685546875, -0.00455474853515625, 0.032440185546875, 0.0228729248046875, 0.06585693359375, 0.0606689453125, -0.048553466796875, 0.0343017578125, -0.023529052734375, 0.0143890380859375, 0.0458984375, 0.0162353515625, 0.0166473388671875, -0.0125732421875, -0.016021728515625, -0.015838623046875, -0.0179290771484375, 0.01117706298828125, -0.033050537109375, 0.0222625732421875, 0.04901123046875, 0.06292724609375, -0.060089111328125, -0.033935546875, -0.030487060546875, 0.052886962890625, -0.004848480224609375, 0.0161895751953125, -0.002895355224609375, 0.018096923828125, 0.050537109375, -0.0004019737243652344, -0.001537322998046875, 0.032562255859375, -0.01221466064453125, 0.05157470703125, 0.049041748046875, 0.01751708984375, -0.035430908203125, 0.0017452239990234375, 0.0301971435546875, 0.07025146484375, -0.054718017578125, -0.006641387939453125, 0.0199127197265625, 0.01546478271484375, 0.0012960433959960938, -0.0123291015625, 0.039031982421875, 0.042816162109375, 0.02337646484375, -0.0200653076171875, -0.0011720657348632812, 0.0269012451171875, 0.02557373046875, 0.0013742446899414062, -0.0162506103515625, -0.038726806640625, -0.01433563232421875, -0.055694580078125, 0.015289306640625, 0.0330810546875, 0.0654296875, 0.013763427734375, 0.0582275390625, -0.01214599609375, -0.0292510986328125, 0.0022735595703125, 0.024139404296875, 0.03131103515625, -0.00853729248046875, -0.0102386474609375, -0.0127716064453125, 0.0207672119140625, 0.025238037109375, 0.033050537109375, 0.0267791748046875, 0.06561279296875, 0.0242919921875, -0.04095458984375, 0.0013513565063476562, 0.033294677734375, -0.02716064453125, -0.0159454345703125, -0.01207733154296875, 0.01465606689453125, 0.044525146484375, 0.00023746490478515625, 0.0071868896484375, 0.00913238525390625, 0.047210693359375, -0.01396942138671875, 0.048583984375, -0.01273345947265625, -0.01422882080078125, 0.008026123046875, 0.0017757415771484375, 0.0322265625, -0.0021839141845703125, -0.09881591796875, -0.02313232421875, -0.00782012939453125, -0.021942138671875, 0.01172637939453125, 0.015777587890625, -0.00931549072265625, 0.02471923828125, -0.0147705078125, 0.016571044921875, 0.026580810546875, -0.0210418701171875, 0.00017118453979492188, 0.028900146484375, 0.01177215576171875, 0.00608062744140625, -0.05035400390625, -0.031402587890625, 0.00984954833984375, 0.006641387939453125, 0.008880615234375, -0.0110015869140625, 0.03375244140625, 0.004199981689453125, -0.031494140625, 0.054168701171875, -0.06817626953125, -0.042083740234375, 0.038909912109375, -0.004993438720703125, 0.01270294189453125, -0.0005536079406738281, 0.0135955810546875, -0.004405975341796875, 0.056915283203125, -0.0285491943359375, -0.00566864013671875, -0.01053619384765625, 0.0262603759765625, -0.0297698974609375, 0.0228271484375, -0.01303863525390625, 0.0010080337524414062, -0.0129547119140625, -0.01554107666015625, 0.063720703125, 0.06365966796875, 0.0017070770263671875, 0.0046539306640625, -0.028900146484375, -0.026641845703125, 0.0258026123046875, -0.0173187255859375, 0.02435302734375, 0.036590576171875, -0.0447998046875, 0.0238189697265625, -0.0038433074951171875, -0.0132904052734375, 0.0267333984375, -0.0003447532653808594, -0.0228118896484375, 0.0128173828125, -0.01218414306640625, 0.0105743408203125, 0.001178741455078125, 0.047332763671875, -0.013824462890625, 0.021270751953125, 0.004459381103515625, 0.016082763671875, -0.01232147216796875, -0.02130126953125, -0.031646728515625, -0.060882568359375, 0.020751953125, 0.0043792724609375, -0.00638580322265625, 0.0015506744384765625, -0.01123809814453125, -0.01110076904296875, -0.0018777847290039062, -0.0118865966796875, 0.00760650634765625, 0.00791168212890625, -0.0227203369140625, -0.004322052001953125, -0.037322998046875, 0.0268096923828125, -0.003787994384765625, 0.0293121337890625, -0.025726318359375, 0.0052337646484375, -0.0233154296875, 0.012603759765625, -0.001636505126953125, 0.0164642333984375, 0.0149688720703125, -0.048736572265625, -0.0096282958984375, 0.01181793212890625, 0.0460205078125, 0.0362548828125, 0.05780029296875, -0.01062774658203125, 0.03173828125, 0.004940032958984375, -0.02349853515625, -0.06280517578125, 0.0264892578125, -0.0738525390625, -0.01113128662109375, -0.006053924560546875, 0.01544952392578125, 0.03131103515625, -0.013458251953125, -0.0243682861328125, 0.0650634765625, -0.014739990234375, -0.011749267578125, -0.0190582275390625, 0.004810333251953125, 0.00917816162109375, -0.0159912109375, -0.00390625, -0.0251922607421875, -0.0411376953125, -0.0034770965576171875, 0.0215911865234375, -0.01020050048828125, 0.035125732421875, 0.010162353515625, -0.0748291015625, 0.0200958251953125, 0.003936767578125, 0.01384735107421875, 0.01038360595703125, -0.003154754638671875, -0.00514984130859375, -0.0012350082397460938, -0.06976318359375, -0.009368896484375, -0.027069091796875, 0.04730224609375, -0.01016998291015625, -0.0087432861328125, -0.0447998046875, 0.00013172626495361328, 0.04327392578125, 0.07781982421875, 0.0224151611328125, -0.03955078125, -0.0222930908203125, 0.01042938232421875, -0.0172119140625, 0.004207611083984375, 0.01441192626953125, -0.0426025390625, -0.0019006729125976562, 0.00023674964904785156, -0.03839111328125, 0.001605987548828125, 0.0076446533203125, -0.04791259765625, -0.0016202926635742188, -0.0252532958984375, -0.02252197265625, -0.0263671875, -0.01032257080078125, 0.042633056640625, -0.03436279296875, -0.010955810546875, -0.02471923828125, 0.027374267578125, 0.01111602783203125, -0.043182373046875, -0.0143585205078125, -0.010498046875, 0.00035309791564941406, 0.042694091796875, -0.006145477294921875, 0.0234222412109375, -0.03656005859375, -0.0003662109375, -0.024658203125, 0.0224151611328125, 0.0163421630859375, 0.0174407958984375, -0.0015010833740234375, -0.00545501708984375, 0.00487518310546875, 0.007595062255859375, 0.0177154541015625, 0.043182373046875, 0.011688232421875, 0.043731689453125, -0.005558013916015625, -0.023162841796875, 0.01381683349609375, -0.03839111328125, -0.0011091232299804688, -0.0272979736328125, 0.007701873779296875, -0.0242462158203125, 0.0093536376953125, 0.02313232421875, -0.0259857177734375, 0.00846099853515625 ]
81d6905d9f82fbddc5af92959a84ace733705630
Wordpress Stackexchange Q: Adding a body class with ACF I have created a radio button field with ACF so that admin can specify a colour. E.g: * *blue : Blue *pink : Pink I'd like this to be output as a class via <body <?php body_class(); ?> in header.php. Is this possible? I'm currently outputting the class in header.php like so: <div id="page" class="site <?php the_field('package_colour',$post->ID); ?>"> A: Hook into the body_class filter and add your field there. It might be better to get the ID from get_queried_object_id() instead of get_the_ID(). add_filter( 'body_class', 'wpse_20160118__body_class' ); function wpse_20160118__body_class( $classes ) { if ( $package_colour = get_field( 'package_colour', get_queried_object_id() ) ) { $package_colour = esc_attr( trim( $package_colour ) ); $classes[] = $package_colour; } return $classes; }
Q: Adding a body class with ACF I have created a radio button field with ACF so that admin can specify a colour. E.g: * *blue : Blue *pink : Pink I'd like this to be output as a class via <body <?php body_class(); ?> in header.php. Is this possible? I'm currently outputting the class in header.php like so: <div id="page" class="site <?php the_field('package_colour',$post->ID); ?>"> A: Hook into the body_class filter and add your field there. It might be better to get the ID from get_queried_object_id() instead of get_the_ID(). add_filter( 'body_class', 'wpse_20160118__body_class' ); function wpse_20160118__body_class( $classes ) { if ( $package_colour = get_field( 'package_colour', get_queried_object_id() ) ) { $package_colour = esc_attr( trim( $package_colour ) ); $classes[] = $package_colour; } return $classes; }
wordpress
{ "language": "en", "length": 122, "provenance": "stackexchange_00019.jsonl.gz:462374", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/214850" }
[ -0.0074310302734375, 0.0032901763916015625, -0.03704833984375, -0.02276611328125, 0.0006914138793945312, -0.04058837890625, -0.003875732421875, 0.01244354248046875, -0.0197296142578125, -0.015045166015625, 0.0009098052978515625, 0.0232391357421875, -0.08050537109375, -0.046142578125, 0.017059326171875, -0.04052734375, 0.0262908935546875, -0.0025882720947265625, 0.0173797607421875, 0.0004253387451171875, -0.00994873046875, 0.0231781005859375, 0.019561767578125, -0.01904296875, 0.00081634521484375, -0.038330078125, 0.0665283203125, 0.004245758056640625, -0.00827789306640625, -0.0111236572265625, 0.0149383544921875, 0.0009021759033203125, 0.0214385986328125, 0.0264892578125, -0.0413818359375, -0.04150390625, -0.01092529296875, 0.0014162063598632812, -0.0262603759765625, 0.025909423828125, 0.007137298583984375, -0.0012235641479492188, -0.01165771484375, 0.048248291015625, -0.050872802734375, 0.00555419921875, -0.015625, -0.005279541015625, 0.03338623046875, -0.01313018798828125, -0.017974853515625, 0.03564453125, -0.01983642578125, 0.0175933837890625, -0.006656646728515625, 0.0379638671875, -0.0198211669921875, 0.00801849365234375, 0.022247314453125, 0.0027008056640625, -0.00997161865234375, 0.007663726806640625, -0.005870819091796875, -0.023468017578125, -0.0176239013671875, 0.003173828125, -0.00978851318359375, 0.005794525146484375, -0.02227783203125, -0.03521728515625, 0.0006704330444335938, -0.0171051025390625, -0.030487060546875, -0.038299560546875, -0.01197052001953125, 0.047088623046875, -0.01210784912109375, -0.00801849365234375, -0.001209259033203125, 0.0297698974609375, 0.0238189697265625, 0.05712890625, -0.04156494140625, -0.008331298828125, -0.007175445556640625, -0.007442474365234375, -0.0106048583984375, -0.041534423828125, -0.0278167724609375, -0.0189666748046875, -0.03326416015625, -0.01186370849609375, 0.013824462890625, -0.0217132568359375, -0.044281005859375, -0.03411865234375, -0.0220947265625, 0.0225982666015625, -0.0107269287109375, 0.06011962890625, 0.0316162109375, -0.03887939453125, 0.09539794921875, -0.06658935546875, 0.0299530029296875, 0.05145263671875, -0.023162841796875, -0.0007524490356445312, 0.047698974609375, 0.0139617919921875, 0.00933074951171875, 0.00687408447265625, -0.0014371871948242188, 0.0032176971435546875, -0.06890869140625, -0.04205322265625, -0.036468505859375, -0.03009033203125, -0.007556915283203125, -0.027862548828125, -0.00040531158447265625, 0.0008859634399414062, 0.049072265625, -0.070556640625, -0.00342559814453125, -0.033782958984375, -0.04132080078125, -0.0259246826171875, -0.0007753372192382812, -0.026031494140625, -0.041534423828125, 0.0274200439453125, 0.08880615234375, 0.033233642578125, 0.022369384765625, -0.012359619140625, 0.01300048828125, -0.044525146484375, -0.00804901123046875, 0.0230560302734375, 0.01427459716796875, -0.036468505859375, -0.03802490234375, 0.016082763671875, -0.03948974609375, 0.012420654296875, 0.0018320083618164062, 0.01303863525390625, -0.0205841064453125, -0.078369140625, 0.0191650390625, -0.050537109375, 0.01073455810546875, 0.032958984375, -0.0174407958984375, -0.0004127025604248047, 0.02606201171875, -0.021270751953125, -0.01580810546875, -0.04034423828125, 0.050262451171875, 0.01229095458984375, 0.01983642578125, 0.0038509368896484375, -0.007659912109375, -0.035369873046875, -0.0638427734375, -0.0109100341796875, 0.01280975341796875, -0.060455322265625, 0.0171051025390625, -0.022003173828125, 0.0191497802734375, -0.00911712646484375, -0.01317596435546875, 0.0235595703125, 0.008209228515625, 0.026763916015625, 0.0589599609375, -0.05072021484375, -0.05828857421875, -0.06195068359375, 0.099365234375, -0.061676025390625, -0.042327880859375, -0.008087158203125, 0.0079498291015625, 0.00858306884765625, 0.014801025390625, 0.003826141357421875, 0.0247802734375, 0.0188446044921875, -0.002178192138671875, 0.0080718994140625, -0.02239990234375, -0.04754638671875, -0.0130157470703125, -0.002887725830078125, -0.0220184326171875, 0.0283355712890625, -0.01187896728515625, 0.021942138671875, -0.005687713623046875, 0.032257080078125, 0.0305023193359375, 0.0006046295166015625, 0.0251922607421875, 0.0016307830810546875, -0.056854248046875, -0.0109710693359375, 0.024139404296875, -0.0287322998046875, 0.01264190673828125, -0.047149658203125, -0.0002371072769165039, 0.027984619140625, 0.0004551410675048828, 0.001453399658203125, -0.027740478515625, 0.022705078125, -0.0238037109375, -0.04193115234375, -0.0218048095703125, 0.02398681640625, 0.0390625, 0.0117645263671875, -0.009490966796875, 0.005359649658203125, 0.050079345703125, 0.016082763671875, -0.0006041526794433594, 0.0194091796875, 0.0233001708984375, 0.03753662109375, -0.0236663818359375, 0.0095367431640625, -0.01171875, -0.03997802734375, -0.007762908935546875, 0.0222625732421875, 0.046112060546875, 0.03155517578125, -0.00586700439453125, -0.0214080810546875, 0.10235595703125, 0.023773193359375, 0.015869140625, -0.032196044921875, -0.0017309188842773438, 0.033538818359375, 0.0012826919555664062, -0.0072174072265625, 0.0284881591796875, -0.0204925537109375, -0.0158538818359375, 0.03277587890625, 0.005611419677734375, -0.0157470703125, -0.024017333984375, 0.00528717041015625, 0.0192413330078125, -0.00861358642578125, -0.04833984375, 0.00730133056640625, 0.06719970703125, 0.008697509765625, 0.0567626953125, 0.02325439453125, -0.032501220703125, 0.00418853759765625, 0.0169677734375, 0.019989013671875, -0.004425048828125, 0.03570556640625, -0.01033782958984375, 0.01197052001953125, -0.018402099609375, -0.005870819091796875, -0.007572174072265625, 0.01534271240234375, -0.003040313720703125, 0.009918212890625, -0.03399658203125, -0.0123748779296875, 0.00457763671875, -0.035491943359375, -0.00012433528900146484, 0.0120391845703125, -0.0027523040771484375, -0.016326904296875, -0.002704620361328125, 0.05157470703125, -0.011260986328125, 0.041900634765625, 0.0223236083984375, -0.00865936279296875, 0.0031871795654296875, -0.0155487060546875, 0.007740020751953125, -0.0261688232421875, 0.00879669189453125, 0.036285400390625, 0.016845703125, -0.0394287109375, -0.021514892578125, -0.035064697265625, -0.050384521484375, 0.0127105712890625, -0.0297393798828125, -0.056488037109375, -0.01453399658203125, 0.057647705078125, 0.036102294921875, 0.046295166015625, 0.0238494873046875, -0.02703857421875, 0.023101806640625, 0.038665771484375, -0.08648681640625, -0.08209228515625, -0.03253173828125, -0.0711669921875, 0.041290283203125, 0.005748748779296875, -0.01491546630859375, -0.002666473388671875, 0.031524658203125, 0.0213470458984375, -0.0012798309326171875, 0.0142822265625, -0.0037212371826171875, 0.01302337646484375, -0.030914306640625, 0.0029277801513671875, -0.0010986328125, 0.00008952617645263672, -0.00899505615234375, 0.052215576171875, 0.00553131103515625, -0.0190582275390625, 0.016082763671875, 0.00463104248046875, 0.003387451171875, 0.002277374267578125, 0.0220794677734375, -0.050079345703125, 0.0011615753173828125, -0.00864410400390625, 0.01885986328125, 0.02349853515625, -0.007686614990234375, -0.0042572021484375, -0.0244903564453125, 0.0224456787109375, -0.023834228515625, 0.030731201171875, 0.050689697265625, -0.01163482666015625, -0.0257415771484375, -0.0579833984375, -0.01499176025390625, 0.03125, -0.01015472412109375, -0.0233001708984375, -0.03436279296875, -0.019073486328125, 0.00852203369140625, 0.0116424560546875, -0.01325225830078125, -0.004169464111328125, -0.02581787109375, -0.0305633544921875, 0.03033447265625, -0.000056743621826171875, 0.003932952880859375, 0.02850341796875, 0.007724761962890625, -0.00678253173828125, 0.053009033203125, 0.01293182373046875, 0.01015472412109375, -0.033294677734375, 0.0501708984375, -0.084716796875, -0.044464111328125, 0.040313720703125, -0.04473876953125, -0.0021724700927734375, -0.038299560546875, 0.0015716552734375, 0.0145416259765625, 0.07781982421875, -0.044677734375, 0.0028896331787109375, -0.018951416015625, -0.004314422607421875, -0.0308380126953125, -0.050048828125, -0.048797607421875, 0.0091094970703125, -0.118408203125, 0.04193115234375, -0.0007519721984863281, -0.0308990478515625, -0.0212554931640625, -0.03289794921875, -0.0673828125, -0.0439453125, 0.029571533203125, 0.009735107421875, -0.0125579833984375, 0.04571533203125, -0.038238525390625, 0.04107666015625, -0.0027446746826171875, 0.0013799667358398438, -0.0743408203125, -0.0186767578125, -0.0169677734375, 0.061553955078125, -0.0161285400390625, 0.027008056640625, -0.04351806640625, 0.04083251953125, 0.0120849609375, 0.0225982666015625, 0.008453369140625, 0.00832366943359375, 0.01033782958984375, -0.02020263671875, 0.00726318359375, -0.0240478515625, 0.042724609375, 0.04339599609375, -0.025665283203125, 0.0229339599609375, -0.046051025390625, -0.0206146240234375, 0.0250396728515625, -0.07403564453125, 0.0197906494140625, -0.0159454345703125, -0.0306243896484375, 0.0235443115234375, -0.0251617431640625, 0.01117706298828125, -0.01605224609375, -0.0127410888671875, -0.0034084320068359375, -0.0199737548828125, -0.00923919677734375, 0.032623291015625, 0.026763916015625, 0.0105133056640625, 0.0037136077880859375, -0.043548583984375, 0.0165557861328125, 0.014923095703125, -0.032073974609375, 0.0304412841796875, 0.013763427734375, -0.010589599609375, 0.0175933837890625, -0.0341796875, 0.01422882080078125, -0.03765869140625, 0.095947265625, 0.0061492919921875, -0.02374267578125, 0.036224365234375, -0.003337860107421875, -0.00951385498046875, -0.0185699462890625, -0.0197906494140625, -0.03656005859375, 0.03759765625, 0.03961181640625, -0.042449951171875, 0.08135986328125, 0.005397796630859375, -0.04107666015625, 0.0253143310546875, -0.0268707275390625, 0.0079803466796875, 0.02850341796875, -0.00861358642578125, -0.00027823448181152344, -0.00998687744140625, -0.00199127197265625, -0.007190704345703125, 0.029541015625, -0.017120361328125, 0.0170745849609375, 0.023529052734375, -0.032745361328125, -0.02862548828125, -0.00933074951171875, 0.050994873046875, -0.00787353515625, -0.05889892578125, 0.009124755859375, -0.0149078369140625, -0.0010728836059570312, 0.0423583984375, -0.0307159423828125, 0.053436279296875, 0.055328369140625, 0.01678466796875, 0.01306915283203125, -0.0618896484375, 0.0281219482421875, -0.043609619140625, 0.0283966064453125, 0.03924560546875, -0.01515960693359375, 0.041412353515625, 0.0017442703247070312, 0.037200927734375, -0.000995635986328125, -0.0232696533203125, 0.044769287109375, 0.0159759521484375, 0.04913330078125, 0.022308349609375, -0.0635986328125, 0.02264404296875, -0.004833221435546875, -0.01366424560546875, -0.028350830078125, -0.0218658447265625, 0.002964019775390625, 0.0072021484375, -0.01221466064453125, 0.018463134765625, 0.0277099609375, 0.028350830078125, -0.01116943359375, -0.00429534912109375, -0.006610870361328125, -0.002132415771484375, -0.00945281982421875, 0.023773193359375, 0.014923095703125, 0.0244140625, 0.01544189453125, 0.00408935546875, 0.054595947265625, 0.021575927734375, -0.00791168212890625, -0.02398681640625, 0.004924774169921875, 0.0211944580078125, -0.05718994140625, -0.0277252197265625, 0.005115509033203125, -0.027984619140625, -0.0257568359375, 0.01727294921875, -0.014434814453125, 0.003963470458984375, -0.0074920654296875, 0.042236328125, -0.053955078125, 0.0147857666015625, -0.04705810546875, -0.01507568359375, 0.055511474609375, 0.029876708984375, 0.0277099609375, -0.029510498046875, -0.062347412109375, -0.051025390625, -0.046142578125, -0.00353240966796875, -0.01479339599609375, 0.013946533203125, 0.008148193359375, 0.0206146240234375, -0.011383056640625, -0.04052734375, -0.039459228515625, 0.02569580078125, 0.04119873046875, 0.0697021484375, 0.0034694671630859375, 0.06805419921875, -0.0019779205322265625, 0.057525634765625, 0.02569580078125, 0.030792236328125, -0.05029296875, -0.00586700439453125, -0.01102447509765625, -0.050048828125, -0.004901885986328125, 0.010650634765625, -0.022674560546875, 0.042938232421875, 0.053558349609375, -0.0009484291076660156, 0.007495880126953125, -0.0225372314453125, 0.00009810924530029297, -0.046051025390625, -0.005916595458984375, -0.036865234375, -0.00868988037109375, -0.028961181640625, 0.003704071044921875, -0.0081024169921875, -0.04949951171875, -0.0230560302734375, 0.0106353759765625, 0.0159759521484375, -0.005184173583984375, 0.00716400146484375, -0.05548095703125, 0.050628662109375, 0.02496337890625, -0.0391845703125, 0.0146331787109375, -0.0265960693359375, -0.01136016845703125, 0.030181884765625, 0.02197265625, -0.00478363037109375, -0.031524658203125, 0.045013427734375, 0.007198333740234375, -0.032867431640625, 0.0254058837890625, -0.0301666259765625, 0.0292816162109375, 0.011383056640625, 0.005126953125, -0.04974365234375, 0.0276641845703125, -0.0458984375, -0.038421630859375, 0.07403564453125, 0.015716552734375, -0.036224365234375, -0.04669189453125, 0.0200653076171875, 0.02447509765625, -0.006786346435546875, 0.0194549560546875, 0.01629638671875, -0.003414154052734375, 0.00376129150390625, 0.040557861328125, -0.0009813308715820312, 0.01035308837890625, -0.032073974609375, -0.033203125, 0.011016845703125, 0.00858306884765625, -0.0203399658203125, 0.009735107421875, -0.0650634765625, -0.07452392578125, -0.047119140625, -0.0278778076171875, -0.0192413330078125, 0.0072021484375, 0.034088134765625, 0.038421630859375, 0.04010009765625, 0.00675201416015625, 0.018768310546875, 0.00708770751953125, 0.032379150390625, -0.0157470703125, 0.00577545166015625, 0.034820556640625, -0.01369476318359375, -0.03485107421875, 0.0204925537109375, -0.049591064453125, -0.02874755859375, -0.003940582275390625, -0.01055145263671875, 0.04351806640625, -0.00160980224609375, -0.0310516357421875, 0.02691650390625, 0.0153656005859375, -0.01025390625, 0.0198516845703125, 0.036346435546875, -0.048736572265625, -0.03521728515625, 0.0206298828125, -0.042999267578125, 0.0173187255859375, 0.01349639892578125, -0.047760009765625, 0.060760498046875, 0.0208740234375, 0.0078125, 0.0006413459777832031, 0.0242462158203125, -0.047698974609375, -0.00952911376953125, -0.01824951171875, 0.0248870849609375, 0.048187255859375, 0.01023101806640625, -0.042236328125, -0.0325927734375, -0.0248565673828125, 0.061767578125, -0.0111083984375, -0.005298614501953125, -0.006694793701171875, 0.00853729248046875, 0.04638671875, 0.040374755859375, 0.0177764892578125, 0.002346038818359375, 0.005153656005859375, 0.0193634033203125, 0.00363922119140625, -0.044158935546875, 0.005458831787109375, -0.03155517578125, -0.00870513916015625, 0.050445556640625, -0.010467529296875, -0.0032482147216796875, 0.031768798828125, -0.0159759521484375, -0.02593994140625, 0.01094818115234375, 0.017822265625, -0.05914306640625, -0.01209259033203125, 0.061279296875, 0.0186004638671875, -0.0230255126953125, -0.0301361083984375, -0.042510986328125, 0.044677734375, 0.002231597900390625, 0.046722412109375, 0.058349609375, 0.0306854248046875, 0.07562255859375, -0.01092529296875, 0.0147247314453125, -0.023590087890625, 0.00420379638671875, 0.02484130859375, 0.0217742919921875, 0.02777099609375, -0.014404296875, -0.01377105712890625, 0.0261993408203125, 0.0301513671875, -0.02215576171875, 0.0276947021484375, 0.0212860107421875, 0.02899169921875, 0.032745361328125, -0.0221710205078125, 0.05145263671875, -0.0328369140625, -0.0321044921875, -0.034912109375, 0.0214691162109375, 0.044281005859375, 0.0240020751953125, -0.00037097930908203125, 0.0012187957763671875, -0.0562744140625, 0.016632080078125, -0.048980712890625, -0.0009975433349609375, 0.0308990478515625, 0.0467529296875, 0.027587890625, 0.03240966796875, 0.033233642578125, -0.0240631103515625, -0.016448974609375, -0.0006704330444335938, 0.0423583984375, 0.00461578369140625, 0.01457977294921875, 0.04986572265625, -0.001071929931640625, 0.006378173828125, -0.027740478515625, 0.0010442733764648438, 0.013031005859375, 0.0117645263671875, -0.01285552978515625, -0.022857666015625, -0.00726318359375, -0.03985595703125, 0.028839111328125, -0.0195159912109375, 0.0217437744140625, 0.012420654296875, -0.017425537109375, 0.01000213623046875, -0.006702423095703125, 0.05010986328125, 0.00931549072265625, -0.0246734619140625, 0.01451873779296875, -0.028045654296875, 0.002735137939453125, 0.04156494140625, -0.0164031982421875, 0.034423828125, -0.0841064453125, -0.019012451171875, -0.01177215576171875, -0.0888671875, 0.064453125, 0.07745361328125, -0.0016260147094726562, -0.040069580078125, 0.0238800048828125, -0.0147247314453125, 0.02508544921875, -0.0031452178955078125, -0.0164337158203125, -0.00255584716796875, 0.035430908203125, -0.0103607177734375, -0.05975341796875, -0.048919677734375, -0.040283203125, 0.071533203125, 0.0094146728515625, 0.07354736328125, -0.010284423828125, 0.035797119140625, -0.03369140625, 0.016632080078125, -0.0194244384765625, -0.027435302734375, 0.0540771484375, 0.0280609130859375, -0.022674560546875, -0.0124053955078125, 0.01427459716796875, 0.0036792755126953125, 0.0281524658203125, -0.0289154052734375, 0.004058837890625, -0.0175628662109375, 0.02880859375, 0.0026569366455078125, 0.0169677734375, -0.0241851806640625, 0.0018682479858398438, -0.0274658203125, -0.0204925537109375, 0.047515869140625, 0.0193634033203125, -0.00775909423828125, 0.035888671875, 0.055419921875, 0.00008958578109741211, 0.033782958984375, -0.0198211669921875, 0.07501220703125, 0.03802490234375, 0.00226593017578125, -0.0228118896484375, 0.0267333984375, -0.0034027099609375, 0.01122283935546875, 0.003299713134765625, 0.046142578125, 0.0165863037109375, -0.0153656005859375, 0.02459716796875, 0.048797607421875, 0.0555419921875, 0.00641632080078125, 0.012847900390625, 0.042327880859375, -0.024383544921875, -0.032073974609375, -0.039337158203125, -0.02935791015625, -0.019805908203125, 0.0030765533447265625, 0.0173492431640625, 0.0190277099609375, -0.024688720703125, -0.01654052734375, 0.0113067626953125, 0.0129547119140625, -0.04132080078125, 0.006763458251953125, -0.019439697265625, -0.04779052734375, 0.0640869140625, -0.032684326171875, 0.03857421875, -0.004734039306640625, 0.01322174072265625, -0.05645751953125, 0.0163726806640625, -0.01154327392578125, 0.0063323974609375, 0.01393890380859375, -0.0120849609375, 0.03363037109375, -0.022216796875, 0.01471710205078125, -0.0265655517578125, -0.0103912353515625, 0.02020263671875, -0.042816162109375, -0.02923583984375, 0.04541015625, -0.0223846435546875, -0.00013005733489990234, -0.074462890625, -0.0102081298828125, -0.07196044921875, 0.042816162109375, 0.003925323486328125, -0.005161285400390625, 0.00653076171875, -0.0218048095703125, -0.035552978515625, 0.09539794921875, -0.004150390625, -0.0141754150390625, -0.023406982421875, -0.0111236572265625, 0.01085662841796875, -0.03485107421875, -0.0221710205078125, -0.01702880859375, -0.0211029052734375, 0.0182647705078125, -0.00875091552734375, 0.0304718017578125, 0.003566741943359375, -0.0015020370483398438, -0.0831298828125, -0.0124664306640625, -0.038055419921875, 0.00574493408203125, 0.00582122802734375, -0.0259552001953125, 0.005954742431640625, -0.00027680397033691406, -0.054840087890625, -0.037200927734375, 0.01157379150390625, 0.032958984375, 0.00963592529296875, -0.037750244140625, -0.01293182373046875, -0.0252685546875, 0.0692138671875, -0.0499267578125, 0.022918701171875, 0.0024166107177734375, -0.0011768341064453125, 0.00724029541015625, -0.029388427734375, -0.01027679443359375, 0.01221466064453125, -0.031890869140625, -0.004489898681640625, -0.020538330078125, -0.0036163330078125, -0.0018024444580078125, 0.00466156005859375, -0.01096343994140625, -0.0213775634765625, 0.0084075927734375, -0.0032062530517578125, -0.043426513671875, -0.050567626953125, 0.026763916015625, -0.019683837890625, 0.017333984375, 0.0179443359375, 0.03131103515625, 0.02593994140625, 0.09967041015625, -0.043182373046875, -0.0253448486328125, 0.015838623046875, 0.03082275390625, -0.01415252685546875, 0.006015777587890625, -0.02301025390625, 0.0263671875, -0.006290435791015625, -0.012451171875, 0.0034885406494140625, -0.041656494140625, -0.0255889892578125, 0.0003116130828857422, -0.03125, 0.034271240234375, -0.0215911865234375, -0.01641845703125, 0.004817962646484375, -0.0033855438232421875, 0.025299072265625, -0.01045989990234375, 0.08392333984375, -0.0556640625, -0.0062255859375, 0.0157012939453125, -0.0025501251220703125, -0.04071044921875, 0.01904296875, -0.0243682861328125, 0.01334381103515625, 0.019317626953125 ]
00838bd37bd47cbaa3e7fe186c796b3083ed48f7
Wordpress Stackexchange Q: WooCommerce: Webhook disabled on its own I'm developing an order management system that hooks into WooCommerce but the Webhook behaves irregularly. The Webhook gets disabled on its own. I've investigated with the users - none of them have privileges. The administrator hasn't touched this section and hasn't updated any of the plugins. Are there any reasons this would happen? Maybe returning http errors from my side? WordPress: 4.4.1 WooCommerce: 2.3.8 A: If you don't want to fix this every time WooCommerce updates, just create a filter in your child-theme: function overrule_webhook_disable_limit( $number ) { return 999999999999; //very high number hopefully you'll never reach. } add_filter( 'woocommerce_max_webhook_delivery_failures', 'overrule_webhook_disable_limit' );
Q: WooCommerce: Webhook disabled on its own I'm developing an order management system that hooks into WooCommerce but the Webhook behaves irregularly. The Webhook gets disabled on its own. I've investigated with the users - none of them have privileges. The administrator hasn't touched this section and hasn't updated any of the plugins. Are there any reasons this would happen? Maybe returning http errors from my side? WordPress: 4.4.1 WooCommerce: 2.3.8 A: If you don't want to fix this every time WooCommerce updates, just create a filter in your child-theme: function overrule_webhook_disable_limit( $number ) { return 999999999999; //very high number hopefully you'll never reach. } add_filter( 'woocommerce_max_webhook_delivery_failures', 'overrule_webhook_disable_limit' ); A: Apparently a WooCommerce Webhook will automatically disable due to delivery failure. https://docs.woothemes.com/document/webhooks/#section-3 “Disabled” (does not deliver due delivery failures). A: Automatically disabled due to delivery failures (as mentioned above). Because I'm depending on them a lot and never wants them disabled (no matter what), you can change function called failed_delivery() in this file: plugins/woocommerce/includes/class-wc-webhook.php to this: private function failed_delivery() { $failures = $this->get_failure_count(); if ( $failures > apply_filters( 'woocommerce_max_webhook_delivery_failures', 5 ) ) { //$this->update_status( 'disabled' ); update_post_meta( $this->id, '_failure_count', ++$failures ); } else { update_post_meta( $this->id, '_failure_count', ++$failures ); } } and they will never be automagically disabled again.
wordpress
{ "language": "en", "length": 209, "provenance": "stackexchange_00019.jsonl.gz:462382", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/214868" }
[ 0.07293701171875, -0.01873779296875, -0.01081085205078125, -0.0310211181640625, -0.0142364501953125, -0.05926513671875, 0.047454833984375, -0.01229095458984375, -0.00026488304138183594, 0.037811279296875, -0.0183563232421875, -0.01580810546875, 0.02679443359375, -0.0196075439453125, 0.00551605224609375, -0.0050506591796875, 0.01346588134765625, 0.0240478515625, 0.051513671875, -0.0045623779296875, -0.00681304931640625, 0.0011491775512695312, 0.034332275390625, 0.0213775634765625, 0.0301361083984375, 0.053863525390625, 0.045196533203125, -0.038543701171875, 0.03411865234375, 0.002468109130859375, 0.0269622802734375, -0.05267333984375, -0.0011043548583984375, 0.053436279296875, -0.050262451171875, -0.050201416015625, 0.0203704833984375, 0.0034427642822265625, -0.01212310791015625, 0.041900634765625, 0.03857421875, -0.0185699462890625, 0.032257080078125, -0.032684326171875, 0.004917144775390625, -0.040374755859375, 0.0518798828125, -0.0206146240234375, 0.048187255859375, 0.0161895751953125, -0.013641357421875, 0.0943603515625, -0.0163421630859375, 0.0016641616821289062, -0.0009088516235351562, 0.00341033935546875, -0.037139892578125, 0.022918701171875, 0.040313720703125, 0.044036865234375, 0.004314422607421875, 0.0003745555877685547, -0.00882720947265625, -0.04364013671875, 0.038909912109375, -0.036590576171875, -0.025390625, 0.050811767578125, -0.0245361328125, 0.04327392578125, 0.042083740234375, -0.038360595703125, 0.01105499267578125, 0.07086181640625, -0.01178741455078125, -0.06500244140625, 0.0174713134765625, 0.0015478134155273438, 0.05303955078125, 0.034088134765625, 0.028594970703125, -0.059478759765625, 0.000591278076171875, -0.01137542724609375, 0.011505126953125, 0.0200347900390625, 0.0103607177734375, -0.0017023086547851562, 0.002197265625, -0.007228851318359375, -0.0164642333984375, 0.01181793212890625, -0.0266571044921875, 0.01084136962890625, -0.011199951171875, -0.0092010498046875, -0.016845703125, -0.037078857421875, -0.00899505615234375, 0.01103973388671875, 0.037322998046875, -0.048431396484375, 0.0474853515625, 0.0023021697998046875, -0.017120361328125, 0.006374359130859375, 0.0225067138671875, 0.006076812744140625, 0.004772186279296875, 0.009918212890625, -0.02105712890625, 0.013916015625, -0.02093505859375, -0.026336669921875, 0.005916595458984375, -0.01036834716796875, -0.06951904296875, 0.05352783203125, 0.00922393798828125, 0.010101318359375, 0.004856109619140625, 0.043701171875, 0.00846099853515625, -0.0028820037841796875, -0.0009832382202148438, 0.01666259765625, 0.0130157470703125, -0.05377197265625, 0.08685302734375, -0.01505279541015625, -0.033233642578125, 0.006168365478515625, 0.0294189453125, 0.033935546875, 0.0286102294921875, 0.006397247314453125, 0.0293121337890625, 0.0108184814453125, 0.00638580322265625, 0.0025386810302734375, 0.0087890625, -0.00734710693359375, 0.0124359130859375, 0.0011692047119140625, 0.017303466796875, -0.001667022705078125, -0.006927490234375, 0.0307159423828125, 0.04986572265625, 0.0096893310546875, 0.0009479522705078125, -0.00455474853515625, 0.0316162109375, 0.0086669921875, 0.044647216796875, 0.0009822845458984375, 0.10845947265625, -0.04681396484375, -0.04351806640625, -0.05609130859375, -0.031524658203125, -0.01367950439453125, 0.029754638671875, -0.035888671875, -0.05291748046875, 0.041412353515625, -0.01513671875, -0.0103302001953125, 0.0265960693359375, 0.04388427734375, 0.0009012222290039062, 0.0041656494140625, 0.02191162109375, 0.0006933212280273438, -0.0202178955078125, -0.01390838623046875, 0.002704620361328125, 0.03070068359375, 0.036895751953125, -0.056304931640625, -0.0677490234375, -0.0550537109375, 0.06304931640625, -0.04486083984375, -0.059112548828125, 0.06304931640625, 0.03009033203125, 0.0487060546875, -0.011871337890625, 0.0036869049072265625, 0.06597900390625, 0.0472412109375, -0.01337432861328125, 0.04058837890625, -0.018798828125, -0.05126953125, -0.006877899169921875, -0.005298614501953125, -0.00933837890625, 0.0238037109375, 0.022186279296875, -0.0189361572265625, 0.0169219970703125, -0.044281005859375, -0.0521240234375, -0.027191162109375, -0.02374267578125, 0.031707763671875, -0.0236968994140625, -0.004375457763671875, 0.0234375, -0.005687713623046875, -0.052459716796875, 0.043975830078125, -0.00461578369140625, -0.02044677734375, -0.036224365234375, 0.08935546875, 0.0058441162109375, 0.053680419921875, 0.027008056640625, -0.057220458984375, 0.051177978515625, 0.01312255859375, 0.0313720703125, 0.00044155120849609375, -0.00670623779296875, -0.01154327392578125, 0.0390625, 0.003997802734375, 0.0007600784301757812, 0.0120849609375, -0.0020046234130859375, 0.0125579833984375, -0.00897216796875, -0.005931854248046875, 0.005977630615234375, -0.0751953125, 0.003925323486328125, 0.038360595703125, 0.0364990234375, -0.01129913330078125, -0.00008034706115722656, 0.022979736328125, 0.0007834434509277344, -0.03717041015625, 0.011566162109375, -0.0014362335205078125, -0.007472991943359375, -0.002704620361328125, -0.0087738037109375, 0.0225677490234375, 0.0484619140625, 0.06817626953125, -0.001079559326171875, 0.044097900390625, -0.029144287109375, -0.0322265625, -0.013946533203125, 0.0008182525634765625, 0.01617431640625, -0.0364990234375, -0.0267486572265625, -0.00418853759765625, 0.01186370849609375, -0.00695037841796875, 0.0184478759765625, 0.0175933837890625, 0.0178985595703125, -0.02874755859375, 0.00986480712890625, -0.0562744140625, 0.0194091796875, -0.007404327392578125, 0.0004458427429199219, -0.01343536376953125, -0.0170440673828125, -0.004547119140625, 0.041046142578125, -0.0198822021484375, -0.00928497314453125, -0.016876220703125, 0.0024566650390625, 0.01302337646484375, 0.00878143310546875, -0.085693359375, 0.0294342041015625, 0.046630859375, -0.014892578125, 0.0132904052734375, 0.03155517578125, 0.0171661376953125, -0.00440216064453125, 0.0047149658203125, -0.006061553955078125, 0.01296234130859375, -0.0318603515625, -0.0149993896484375, 0.04296875, -0.031890869140625, -0.00027632713317871094, 0.04217529296875, -0.03192138671875, 0.02752685546875, 0.044891357421875, -0.04638671875, 0.03741455078125, 0.0226287841796875, 0.0088043212890625, 0.047088623046875, -0.12200927734375, -0.0028076171875, 0.038238525390625, 0.056640625, 0.0011148452758789062, -0.03887939453125, 0.007617950439453125, 0.028289794921875, -0.0384521484375, -0.0653076171875, 0.014129638671875, -0.036407470703125, 0.0264892578125, 0.0034122467041015625, -0.00824737548828125, -0.025970458984375, 0.0251007080078125, 0.0165557861328125, -0.00931549072265625, -0.05712890625, -0.0167999267578125, -0.017608642578125, -0.0361328125, 0.042144775390625, 0.0321044921875, 0.00635528564453125, 0.0015745162963867188, 0.03363037109375, -0.0221099853515625, -0.04400634765625, -0.0088653564453125, 0.019989013671875, 0.006160736083984375, 0.0015430450439453125, -0.0024890899658203125, -0.0187530517578125, 0.0249481201171875, 0.00023257732391357422, -0.031768798828125, -0.0032196044921875, 0.01253509521484375, -0.026092529296875, 0.03033447265625, -0.0273895263671875, 0.0021495819091796875, 0.043975830078125, -0.024658203125, -0.05181884765625, -0.0005621910095214844, -0.06494140625, -0.045928955078125, -0.0300750732421875, -0.053131103515625, 0.03643798828125, 0.035400390625, 0.006610870361328125, -0.0156402587890625, 0.0180511474609375, 0.00725555419921875, -0.0114593505859375, 0.0232391357421875, -0.04425048828125, 0.0288848876953125, 0.01519775390625, 0.0216217041015625, -0.0207672119140625, 0.04034423828125, 0.00759124755859375, 0.0205535888671875, 0.0184326171875, 0.0259246826171875, -0.03216552734375, 0.0482177734375, -0.07000732421875, -0.03076171875, 0.03985595703125, -0.0509033203125, -0.048370361328125, -0.0228118896484375, -0.003742218017578125, -0.006343841552734375, 0.04986572265625, -0.019866943359375, -0.028594970703125, 0.003963470458984375, 0.013153076171875, -0.039581298828125, -0.022735595703125, -0.0192718505859375, -0.01325225830078125, -0.0215301513671875, -0.00435638427734375, -0.052947998046875, 0.00562286376953125, 0.013885498046875, -0.07806396484375, 0.0003597736358642578, -0.06341552734375, 0.006923675537109375, -0.0380859375, 0.0026569366455078125, 0.04144287109375, -0.033203125, 0.0236968994140625, -0.0254364013671875, -0.0533447265625, -0.027557373046875, -0.00030040740966796875, 0.0234222412109375, 0.0037860870361328125, -0.0085296630859375, -0.002338409423828125, -0.0260772705078125, 0.005859375, 0.0102691650390625, 0.01326751708984375, -0.0013437271118164062, 0.01107025146484375, -0.00501251220703125, -0.0322265625, -0.01175689697265625, -0.024993896484375, 0.004802703857421875, 0.0226898193359375, -0.03558349609375, 0.00542449951171875, -0.01861572265625, -0.0159149169921875, 0.039276123046875, -0.06414794921875, -0.1278076171875, -0.08746337890625, -0.08050537109375, -0.004825592041015625, -0.037811279296875, -0.01329803466796875, -0.07037353515625, -0.1419677734375, 0.03631591796875, -0.058135986328125, 0.00457000732421875, 0.00787353515625, 0.06512451171875, 0.021759033203125, 0.0029697418212890625, 0.028839111328125, -0.007114410400390625, 0.02520751953125, 0.0241851806640625, 0.00963592529296875, -0.0192108154296875, -0.00830841064453125, 0.0067138671875, -0.0134124755859375, 0.01512908935546875, 0.0070037841796875, 0.01062774658203125, 0.0097808837890625, 0.0223846435546875, -0.0223846435546875, 0.0195770263671875, 0.0014667510986328125, -0.017242431640625, -0.0112762451171875, -0.020294189453125, -0.0015544891357421875, 0.01898193359375, -0.0161285400390625, 0.0703125, 0.0148162841796875, -0.038299560546875, 0.01412200927734375, -0.03167724609375, 0.0177001953125, 0.026824951171875, -0.0014543533325195312, 0.0157318115234375, -0.0093994140625, -0.0011491775512695312, -0.050872802734375, -0.0194549560546875, -0.047821044921875, 0.001880645751953125, -0.024383544921875, -0.014556884765625, -0.00894927978515625, 0.0008130073547363281, 0.049285888671875, 0.002155303955078125, 0.0027027130126953125, -0.049072265625, -0.023834228515625, -0.0280609130859375, 0.0053863525390625, -0.047027587890625, 0.035308837890625, 0.0258941650390625, -0.0182342529296875, 0.04315185546875, -0.045379638671875, 0.00018715858459472656, -0.04193115234375, 0.0021076202392578125, 0.023956298828125, -0.02392578125, -0.004680633544921875, 0.02520751953125, 0.015228271484375, 0.0099334716796875, 0.00110626220703125, 0.004398345947265625, 0.0206756591796875, 0.00521087646484375, 0.0335693359375, -0.021270751953125, -0.01016998291015625, -0.0211029052734375, 0.004486083984375, -0.0278778076171875, -0.0248260498046875, 0.007320404052734375, 0.0220947265625, -0.018402099609375, 0.00420379638671875, 0.01546478271484375, 0.01306915283203125, -0.01180267333984375, 0.02508544921875, -0.00583648681640625, -0.039581298828125, -0.0248870849609375, 0.0027332305908203125, 0.0134429931640625, -0.01001739501953125, 0.0218505859375, -0.005069732666015625, 0.0009889602661132812, -0.0305328369140625, 0.0165863037109375, -0.02978515625, -0.0255889892578125, -0.0028743743896484375, 0.00021028518676757812, 0.0068206787109375, -0.00498199462890625, -0.0232086181640625, -0.05615234375, -0.0014047622680664062, 0.0036449432373046875, 0.0357666015625, -0.0418701171875, 0.0155029296875, 0.0126800537109375, -0.026275634765625, -0.0194854736328125, 0.0293426513671875, 0.03790283203125, 0.04620361328125, -0.00925445556640625, -0.025238037109375, -0.047576904296875, -0.037841796875, 0.031951904296875, 0.0087890625, -0.0083160400390625, 0.00475311279296875, 0.01071929931640625, 0.0170135498046875, 0.0046234130859375, -0.031707763671875, -0.038909912109375, -0.016815185546875, 0.0236053466796875, -0.00004017353057861328, -0.02069091796875, 0.030548095703125, 0.001247406005859375, 0.0037403106689453125, -0.011749267578125, -0.006824493408203125, 0.00850677490234375, -0.0029430389404296875, 0.041412353515625, -0.01392364501953125, -0.054931640625, -0.051177978515625, 0.005039215087890625, 0.01334381103515625, 0.043426513671875, -0.0290374755859375, 0.0007433891296386719, -0.0306243896484375, 0.002773284912109375, -0.014251708984375, 0.0307159423828125, -0.041168212890625, -0.01184844970703125, 0.0293121337890625, -0.0282135009765625, 0.0198211669921875, -0.004123687744140625, -0.0202178955078125, 0.050323486328125, -0.0313720703125, 0.020538330078125, 0.02532958984375, -0.015380859375, 0.0281524658203125, 0.04705810546875, -0.01163482666015625, 0.05755615234375, 0.012908935546875, 0.0178985595703125, 0.035736083984375, 0.094970703125, -0.031707763671875, -0.06341552734375, 0.031097412109375, 0.0178680419921875, -0.03399658203125, -0.0034809112548828125, -0.01556396484375, 0.0033130645751953125, 0.07366943359375, 0.0712890625, -0.10791015625, -0.009246826171875, -0.005855560302734375, 0.0151824951171875, 0.0284271240234375, -0.00807952880859375, -0.0071563720703125, -0.05621337890625, 0.023590087890625, 0.00125885009765625, -0.01055908203125, 0.0006055831909179688, -0.003513336181640625, -0.007656097412109375, 0.011962890625, 0.036773681640625, 0.01119232177734375, -0.061920166015625, -0.004985809326171875, 0.048797607421875, -0.02484130859375, -0.033660888671875, -0.0263519287109375, 0.0187225341796875, -0.0266876220703125, -0.03857421875, 0.036407470703125, -0.050323486328125, 0.055755615234375, 0.046051025390625, 0.0206146240234375, -0.0023250579833984375, 0.05328369140625, -0.004642486572265625, 0.0214996337890625, 0.018035888671875, -0.05517578125, 0.0064544677734375, -0.043792724609375, -0.01082611083984375, 0.05841064453125, -0.047210693359375, 0.0259552001953125, 0.002025604248046875, 0.0030803680419921875, 0.0144500732421875, 0.002780914306640625, -0.005859375, -0.0196685791015625, -0.01131439208984375, 0.0171051025390625, 0.014801025390625, 0.0196075439453125, -0.00927734375, 0.0301361083984375, -0.00525665283203125, 0.034454345703125, 0.021148681640625, 0.0196990966796875, -0.031585693359375, -0.0006136894226074219, -0.04205322265625, 0.123291015625, -0.01268768310546875, 0.0173797607421875, 0.0226287841796875, 0.05535888671875, -0.0235748291015625, 0.0306243896484375, -0.043212890625, 0.05072021484375, -0.0028209686279296875, 0.0645751953125, -0.0625, -0.0180206298828125, 0.023284912109375, 0.04473876953125, 0.028778076171875, -0.0070343017578125, 0.0206756591796875, -0.00952911376953125, 0.054534912109375, 0.0184478759765625, -0.0219573974609375, -0.0011444091796875, -0.00807952880859375, -0.012603759765625, 0.01317596435546875, -0.0165557861328125, 0.0217742919921875, -0.031951904296875, -0.01093292236328125, 0.012847900390625, -0.0121002197265625, -0.021514892578125, -0.0213623046875, 0.0341796875, 0.0035495758056640625, -0.032318115234375, -0.003009796142578125, -0.050689697265625, -0.02703857421875, 0.025238037109375, -0.01861572265625, 0.016204833984375, -0.0111846923828125, -0.0252838134765625, 0.03179931640625, -0.0117950439453125, 0.01515960693359375, 0.020538330078125, 0.0095062255859375, 0.034912109375, -0.06268310546875, -0.00670623779296875, -0.018524169921875, -0.0134124755859375, 0.0181732177734375, -0.0220947265625, 0.0027313232421875, -0.040374755859375, 0.02130126953125, 0.00881195068359375, 0.01194000244140625, -0.033447265625, -0.004093170166015625, 0.00799560546875, -0.0181121826171875, -0.0020294189453125, -0.024261474609375, -0.00855255126953125, -0.0035610198974609375, -0.01218414306640625, 0.02294921875, 0.01532745361328125, 0.0255889892578125, 0.060699462890625, 0.026641845703125, 0.072265625, -0.11676025390625, -0.0297698974609375, -0.026458740234375, -0.00823974609375, 0.01271820068359375, 0.03741455078125, 0.01222991943359375, 0.0312347412109375, -0.004291534423828125, -0.0072784423828125, -0.0129547119140625, 0.01136016845703125, -0.0025177001953125, 0.01250457763671875, -0.04339599609375, -0.01922607421875, 0.01422882080078125, 0.035247802734375, -0.0089569091796875, 0.04205322265625, 0.03826904296875, 0.0477294921875, -0.01277923583984375, -0.0063018798828125, 0.072021484375, -0.0173187255859375, -0.0256805419921875, -0.03399658203125, -0.01491546630859375, -0.0020885467529296875, -0.00328826904296875, 0.0272216796875, 0.00914764404296875, 0.0132293701171875, -0.004299163818359375, 0.001628875732421875, 0.00733184814453125, -0.028900146484375, -0.004413604736328125, 0.0160980224609375, 0.021392822265625, 0.0285797119140625, -0.0810546875, -0.01087188720703125, -0.031463623046875, -0.01447296142578125, -0.0360107421875, 0.006969451904296875, -0.01279449462890625, 0.038726806640625, 0.0065765380859375, -0.0255126953125, 0.0308074951171875, -0.003086090087890625, 0.0040283203125, -0.03948974609375, -0.005046844482421875, -0.034576416015625, -0.0430908203125, 0.0025691986083984375, -0.0152130126953125, 0.00917816162109375, 0.0384521484375, 0.042022705078125, 0.00905609130859375, 0.0015811920166015625, 0.0297088623046875, -0.00359344482421875, -0.00395965576171875, 0.0267791748046875, -0.02313232421875, -0.026275634765625, 0.0008893013000488281, -0.005680084228515625, -0.05950927734375, 0.0302581787109375, 0.01372528076171875, 0.0092010498046875, 0.02520751953125, -0.0257720947265625, 0.0272369384765625, 0.031463623046875, -0.0240020751953125, -0.0386962890625, -0.0692138671875, -0.057525634765625, 0.0136260986328125, -0.002552032470703125, 0.00592041015625, -0.007541656494140625, 0.0138092041015625, -0.0236053466796875, -0.0184173583984375, -0.0110015869140625, -0.01165008544921875, -0.026123046875, 0.025970458984375, -0.02911376953125, 0.00894927978515625, 0.01020050048828125, -0.00948333740234375, -0.0186767578125, 0.020660400390625, -0.015594482421875, 0.00687408447265625, -0.061431884765625, 0.019989013671875, 0.033599853515625, -0.0212860107421875, -0.050140380859375, -0.01175689697265625, 0.09088134765625, -0.052703857421875, 0.0030384063720703125, 0.013336181640625, 0.0198516845703125, 0.022247314453125, -0.0296783447265625, 0.01505279541015625, 0.0236968994140625, 0.0179443359375, 0.0426025390625, -0.02069091796875, 0.03045654296875, -0.0160369873046875, 0.0240020751953125, 0.0007395744323730469, -0.046051025390625, -0.0223388671875, 0.00876617431640625, -0.002124786376953125, 0.0042266845703125, -0.00666046142578125, -0.0311126708984375, -0.03216552734375, -0.038787841796875, 0.031494140625, -0.028900146484375, 0.005489349365234375, 0.0228271484375, -0.006496429443359375, -0.0226593017578125, 0.01425933837890625, 0.002094268798828125, 0.0538330078125, -0.0290679931640625, -0.030975341796875, -0.028106689453125, 0.0289459228515625, 0.0178680419921875, -0.0092010498046875, 0.0205535888671875, -0.037322998046875, -0.0352783203125, -0.036956787109375, 0.017913818359375, 0.03582763671875, -0.0352783203125, -0.074462890625, 0.022216796875, -0.01428985595703125, -0.03204345703125, -0.040802001953125, -0.0010347366333007812, -0.01068115234375, 0.00008469820022583008, -0.034637451171875, 0.0007753372192382812, -0.00917816162109375, 0.058197021484375, 0.00969696044921875, 0.0243377685546875, 0.00160980224609375, 0.0160369873046875, 0.0012998580932617188, 0.059814453125, 0.04742431640625, 0.0151519775390625, -0.017608642578125, -0.0262603759765625, 0.058929443359375, -0.0093994140625, -0.03338623046875, 0.06011962890625, 0.07354736328125, 0.031219482421875, -0.0006284713745117188, -0.020294189453125, 0.0133056640625, -0.02374267578125, 0.022491455078125, 0.0163421630859375, -0.002414703369140625, 0.01251220703125, -0.0270538330078125, -0.033416748046875, 0.012420654296875, 0.004657745361328125, -0.00606536865234375, -0.043548583984375, 0.02191162109375, -0.0006837844848632812, -0.006633758544921875, 0.02392578125, 0.00800323486328125, -0.020172119140625, -0.003093719482421875, -0.0035839080810546875, -0.0263519287109375, -0.054931640625, 0.0185394287109375, 0.00521087646484375, -0.01471710205078125, 0.0223388671875, -0.0036373138427734375, -0.0157012939453125, 0.0017251968383789062, 0.0156097412109375, -0.0076446533203125, 0.0027904510498046875, -0.0230865478515625, 0.0265350341796875, -0.00804901123046875, 0.0237274169921875, -0.019378662109375, 0.01145172119140625, -0.029937744140625, 0.030670166015625, 0.03131103515625, 0.043212890625, -0.019989013671875, 0.0149383544921875, 0.027252197265625, -0.03875732421875, 0.0092620849609375, 0.0199432373046875, -0.024932861328125, 0.0557861328125, -0.0019588470458984375, -0.0157928466796875, 0.0071563720703125, -0.01021575927734375, 0.024566650390625, 0.038818359375, 0.06402587890625, -0.026123046875, 0.048614501953125, -0.0119476318359375, 0.04083251953125, 0.0146942138671875 ]
612a633d5d1b78f59975854cd7f5299aba507b4a
Wordpress Stackexchange Q: do_settings_sections() doesn't escape quotes I'm using the Settings API on a custom settings page: <form action='options.php' method='post'> <?php settings_fields('myplugin_settingsPage'); do_settings_sections('myplugin_settingsPage' ); submit_button(); ?> </form> It's a very simple simple settings page, with a few text input fields. The problem is, some of the fields' values contain double quotes (for example, Jhon "cracy" Garcia), and it seems Wordpress doesn't escape this character. The value stored in the database seems ok, I've checked it. But, when you visit the settings page a second time, this is the HTML generated by Wordpress: <input name='myplugin_settingsPage[name]' value="Jhon "cracy" Garcia" size=40> As you can see, the quotes aren't being urlencoded so the generated HTML is broken. Am I doing something wrong? Is it a bug in Wordpress? A: I found the problem. You need to escape the values in the _render functions, using esc_attr, like this: function my_setting_render() { $options = get_option('my_option_name'); ?><input name='my_option_name[my_setting]' value="<?php echo esc_attr($options['my_setting']);?>"> <?php }
Q: do_settings_sections() doesn't escape quotes I'm using the Settings API on a custom settings page: <form action='options.php' method='post'> <?php settings_fields('myplugin_settingsPage'); do_settings_sections('myplugin_settingsPage' ); submit_button(); ?> </form> It's a very simple simple settings page, with a few text input fields. The problem is, some of the fields' values contain double quotes (for example, Jhon "cracy" Garcia), and it seems Wordpress doesn't escape this character. The value stored in the database seems ok, I've checked it. But, when you visit the settings page a second time, this is the HTML generated by Wordpress: <input name='myplugin_settingsPage[name]' value="Jhon "cracy" Garcia" size=40> As you can see, the quotes aren't being urlencoded so the generated HTML is broken. Am I doing something wrong? Is it a bug in Wordpress? A: I found the problem. You need to escape the values in the _render functions, using esc_attr, like this: function my_setting_render() { $options = get_option('my_option_name'); ?><input name='my_option_name[my_setting]' value="<?php echo esc_attr($options['my_setting']);?>"> <?php }
wordpress
{ "language": "en", "length": 154, "provenance": "stackexchange_00019.jsonl.gz:462418", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215006" }
[ 0.0173492431640625, -0.0152740478515625, 0.010650634765625, 0.0033855438232421875, 0.00348663330078125, -0.004253387451171875, 0.0211944580078125, -0.031402587890625, 0.021240234375, 0.00011485815048217773, 0.00439453125, 0.0021190643310546875, -0.053131103515625, -0.048370361328125, -0.00653076171875, -0.019256591796875, -0.004947662353515625, 0.0261383056640625, -0.0178070068359375, -0.040313720703125, 0.005580902099609375, -0.038726806640625, -0.053802490234375, 0.01708984375, 0.04022216796875, -0.0548095703125, 0.0309295654296875, -0.01404571533203125, 0.036468505859375, -0.004589080810546875, 0.0186920166015625, -0.0173797607421875, 0.038421630859375, 0.007282257080078125, -0.004421234130859375, 0.0433349609375, 0.0302276611328125, -0.007236480712890625, 0.00014650821685791016, 0.052276611328125, 0.041168212890625, -0.04400634765625, -0.013946533203125, 0.0011949539184570312, -0.019775390625, -0.044189453125, 0.0699462890625, -0.01067352294921875, 0.0016489028930664062, 0.028594970703125, 0.0157928466796875, -0.038482666015625, 0.0191650390625, 0.00606536865234375, -0.01009368896484375, -0.0230865478515625, -0.03790283203125, 0.0002052783966064453, 0.01763916015625, 0.0406494140625, 0.0011920928955078125, -0.0114898681640625, 0.0006456375122070312, -0.046539306640625, 0.04730224609375, -0.0102691650390625, -0.0009551048278808594, 0.0248870849609375, -0.029998779296875, 0.054931640625, 0.0380859375, -0.05035400390625, 0.0230865478515625, -0.046173095703125, -0.00023734569549560547, 0.01500701904296875, -0.00757598876953125, -0.008331298828125, 0.0200042724609375, -0.037750244140625, 0.041046142578125, -0.0003750324249267578, -0.026824951171875, -0.0120697021484375, 0.032135009765625, 0.0138092041015625, 0.014404296875, -0.0225830078125, 0.02593994140625, -0.00438690185546875, -0.0006866455078125, -0.013092041015625, 0.0294036865234375, 0.0149688720703125, -0.0028324127197265625, -0.040771484375, -0.0172882080078125, 0.024444580078125, -0.0060882568359375, 0.029815673828125, 0.01145172119140625, -0.03515625, 0.0660400390625, -0.039398193359375, 0.0114288330078125, 0.0716552734375, 0.023590087890625, -0.006824493408203125, 0.00893402099609375, -0.00695037841796875, 0.00603485107421875, -0.00832366943359375, -0.0323486328125, -0.044097900390625, -0.016815185546875, 0.029815673828125, -0.0183868408203125, -0.0153961181640625, 0.0033111572265625, -0.04217529296875, -0.004909515380859375, -0.006473541259765625, 0.01125335693359375, 0.012420654296875, -0.0029544830322265625, 0.006610870361328125, -0.01258087158203125, -0.0244598388671875, -0.0283966064453125, 0.0251922607421875, -0.03289794921875, -0.0256805419921875, 0.077392578125, 0.0711669921875, 0.020721435546875, -0.0233917236328125, 0.023712158203125, -0.063232421875, -0.028900146484375, 0.0272064208984375, -0.00262451171875, -0.023590087890625, 0.01129913330078125, -0.05816650390625, -0.01593017578125, -0.0031986236572265625, 0.00911712646484375, 0.034088134765625, -0.00760650634765625, -0.0185394287109375, 0.0230560302734375, -0.0276336669921875, 0.054046630859375, 0.00173187255859375, -0.05291748046875, -0.033111572265625, 0.01215362548828125, -0.044952392578125, -0.005176544189453125, -0.056427001953125, -0.0254669189453125, -0.0292510986328125, 0.0163726806640625, -0.018218994140625, -0.0308380126953125, 0.046051025390625, -0.01096343994140625, -0.01483917236328125, 0.00467681884765625, 0.01092529296875, -0.0166473388671875, 0.046051025390625, -0.00887298583984375, 0.0034122467041015625, 0.0029773712158203125, -0.01885986328125, -0.03265380859375, 0.01593017578125, 0.0285186767578125, -0.0313720703125, -0.0313720703125, -0.0491943359375, -0.006134033203125, 0.005733489990234375, -0.0655517578125, 0.039825439453125, -0.002185821533203125, 0.060699462890625, 0.03985595703125, 0.001415252685546875, 0.034637451171875, 0.006504058837890625, -0.01230621337890625, 0.01702880859375, 0.00551605224609375, -0.031097412109375, -0.0019283294677734375, 0.00630950927734375, -0.0104827880859375, -0.004673004150390625, 0.004611968994140625, -0.0258636474609375, 0.031219482421875, 0.00894927978515625, -0.0211639404296875, 0.0008935928344726562, -0.01641845703125, 0.004482269287109375, -0.03143310546875, 0.0360107421875, 0.02252197265625, 0.0217437744140625, -0.03021240234375, 0.000308990478515625, -0.0102081298828125, 0.004817962646484375, 0.01324462890625, 0.08831787109375, -0.00952911376953125, 0.06903076171875, 0.0156402587890625, -0.079345703125, 0.031097412109375, 0.0261993408203125, 0.0537109375, -0.00395965576171875, -0.0083770751953125, -0.0298919677734375, 0.035369873046875, -0.025115966796875, 0.00588226318359375, 0.0550537109375, 0.03985595703125, 0.035247802734375, -0.036346435546875, -0.004180908203125, -0.0230712890625, -0.0302581787109375, -0.006084442138671875, 0.050506591796875, 0.038330078125, 0.031463623046875, -0.0129852294921875, -0.054412841796875, 0.0222320556640625, -0.048553466796875, 0.01715087890625, -0.053497314453125, 0.01287841796875, 0.01169586181640625, -0.01532745361328125, -0.05364990234375, 0.0233306884765625, -0.0699462890625, -0.004581451416015625, 0.014373779296875, -0.0711669921875, -0.04559326171875, 0.04296875, -0.0384521484375, 0.00836181640625, -0.050323486328125, 0.00467681884765625, -0.026336669921875, 0.05181884765625, 0.01537322998046875, 0.0170440673828125, 0.0156402587890625, -0.030181884765625, 0.046600341796875, 0.00942230224609375, -0.06671142578125, -0.0233917236328125, 0.0286102294921875, 0.034027099609375, -0.00208282470703125, -0.038116455078125, 0.004970550537109375, -0.0243072509765625, 0.010284423828125, 0.00627899169921875, 0.0273895263671875, -0.0035247802734375, -0.013916015625, -0.0023136138916015625, -0.0026073455810546875, 0.0096893310546875, 0.00672149658203125, 0.026458740234375, 0.00850677490234375, 0.036407470703125, 0.024078369140625, -0.0204620361328125, 0.039215087890625, 0.0201568603515625, -0.0262603759765625, 0.062744140625, -0.0270233154296875, 0.0216522216796875, -0.0038585662841796875, 0.06024169921875, 0.049652099609375, -0.0235137939453125, 0.009765625, 0.0087738037109375, -0.029205322265625, 0.006801605224609375, 0.0083160400390625, 0.0018167495727539062, -0.02215576171875, -0.0298919677734375, 0.0310211181640625, 0.03131103515625, 0.03607177734375, -0.0160369873046875, -0.0240478515625, -0.045135498046875, 0.0199737548828125, -0.09613037109375, -0.062225341796875, 0.044158935546875, -0.026885986328125, 0.0308074951171875, -0.0233306884765625, -0.0026226043701171875, -0.039886474609375, -0.0177001953125, 0.0015840530395507812, 0.0220794677734375, -0.0274200439453125, -0.023651123046875, -0.02606201171875, -0.07733154296875, -0.027801513671875, 0.019012451171875, 0.035003662109375, 0.014434814453125, -0.00006175041198730469, 0.005443572998046875, -0.048370361328125, 0.00820159912109375, -0.0160980224609375, -0.010223388671875, 0.0204315185546875, -0.0105133056640625, 0.0004477500915527344, 0.0277557373046875, -0.0018253326416015625, 0.0304718017578125, 0.03570556640625, -0.03387451171875, -0.0143890380859375, -0.0323486328125, 0.03466796875, 0.02508544921875, -0.012420654296875, 0.036956787109375, 0.0246124267578125, 0.00411224365234375, -0.0291900634765625, -0.05352783203125, -0.0182952880859375, -0.051361083984375, 0.0390625, 0.017242431640625, 0.013824462890625, -0.00405120849609375, 0.05853271484375, -0.007129669189453125, -0.00560760498046875, 0.043212890625, -0.034210205078125, 0.0146484375, -0.0221099853515625, -0.019500732421875, -0.0234222412109375, -0.0139312744140625, -0.0251007080078125, 0.03656005859375, -0.002338409423828125, 0.01259613037109375, -0.0132293701171875, 0.00469207763671875, -0.040191650390625, -0.07232666015625, 0.05450439453125, -0.01450347900390625, 0.0010280609130859375, -0.03948974609375, -0.030792236328125, -0.0137939453125, 0.0985107421875, -0.0247955322265625, -0.01433563232421875, 0.033203125, 0.03619384765625, -0.048065185546875, -0.037445068359375, -0.04754638671875, -0.00821685791015625, -0.03399658203125, -0.01318359375, 0.0019550323486328125, -0.050384521484375, 0.0185699462890625, -0.041900634765625, 0.01024627685546875, -0.005779266357421875, 0.006320953369140625, -0.036468505859375, 0.05743408203125, -0.03143310546875, 0.051239013671875, -0.04156494140625, 0.0287017822265625, -0.0517578125, -0.08563232421875, -0.017791748046875, 0.01146697998046875, 0.031402587890625, 0.007396697998046875, -0.030731201171875, -0.02728271484375, 0.0579833984375, -0.00466156005859375, -0.004360198974609375, 0.01163482666015625, 0.02923583984375, -0.0203399658203125, 0.0094451904296875, -0.004489898681640625, -0.0264434814453125, -0.013641357421875, 0.025604248046875, -0.03204345703125, 0.0293426513671875, 0.003505706787109375, -0.0177764892578125, 0.04486083984375, -0.0450439453125, -0.07537841796875, -0.019683837890625, 0.00867462158203125, -0.0196380615234375, 0.006519317626953125, -0.006412506103515625, 0.004180908203125, -0.05828857421875, 0.0810546875, -0.05267333984375, 0.036376953125, -0.00756072998046875, 0.10736083984375, -0.01009368896484375, -0.0173492431640625, -0.01280975341796875, -0.051116943359375, 0.029541015625, -0.017333984375, 0.036041259765625, 0.0196685791015625, -0.0279388427734375, 0.07830810546875, -0.006866455078125, 0.037139892578125, -0.06964111328125, 0.09210205078125, -0.0245513916015625, 0.01258087158203125, 0.00655364990234375, -0.0243988037109375, 0.00691986083984375, 0.035675048828125, 0.008819580078125, -0.016510009765625, 0.0457763671875, -0.00803375244140625, -0.040924072265625, -0.0017604827880859375, 0.006366729736328125, -0.05987548828125, -0.00037407875061035156, -0.01302337646484375, 0.03326416015625, 0.0625, -0.01296234130859375, 0.061279296875, 0.026519775390625, -0.0139923095703125, -0.01282501220703125, 0.0031280517578125, -0.00971221923828125, 0.0105743408203125, -0.0189361572265625, -0.0308837890625, -0.026153564453125, -0.00948333740234375, 0.01508331298828125, -0.0190887451171875, -0.037811279296875, -0.0295562744140625, -0.01715087890625, 0.032073974609375, 0.01215362548828125, 0.041656494140625, -0.0426025390625, 0.0212249755859375, 0.0008935928344726562, 0.0225372314453125, 0.06085205078125, 0.040863037109375, 0.020355224609375, 0.0220947265625, 0.01381683349609375, 0.00514984130859375, 0.0167388916015625, 0.0235137939453125, -0.01351165771484375, 0.02288818359375, -0.009490966796875, 0.036041259765625, 0.0294342041015625, 0.01398468017578125, 0.0260467529296875, -0.0296630859375, 0.00545501708984375, -0.02484130859375, -0.016448974609375, -0.028289794921875, -0.00460052490234375, 0.036956787109375, 0.0194091796875, 0.019500732421875, -0.0012674331665039062, 0.01082611083984375, -0.002414703369140625, -0.020660400390625, -0.00760650634765625, -0.053009033203125, -0.05023193359375, -0.02301025390625, 0.03118896484375, 0.035552978515625, -0.007190704345703125, 0.019805908203125, -0.01141357421875, 0.010284423828125, -0.0231781005859375, -0.01441192626953125, -0.007080078125, -0.051422119140625, -0.034698486328125, 0.01384735107421875, -0.0011014938354492188, -0.03155517578125, -0.053314208984375, -0.040771484375, -0.005611419677734375, -0.0201263427734375, 0.05316162109375, -0.0228271484375, 0.048095703125, -0.0333251953125, -0.01230621337890625, -0.0121307373046875, -0.015899658203125, 0.098388671875, 0.062744140625, -0.050140380859375, 0.00702667236328125, -0.0265655517578125, 0.0034389495849609375, 0.0207672119140625, -0.024169921875, -0.044769287109375, -0.0244140625, 0.010406494140625, 0.033203125, -0.01255035400390625, -0.03814697265625, -0.0116729736328125, 0.01158905029296875, 0.0167694091796875, 0.07196044921875, -0.003406524658203125, 0.01031494140625, 0.0012254714965820312, 0.017913818359375, -0.0123443603515625, 0.0142974853515625, 0.0141143798828125, -0.011077880859375, 0.026123046875, 0.0233612060546875, -0.04180908203125, -0.037933349609375, 0.021728515625, 0.0018672943115234375, 0.06866455078125, -0.0269012451171875, 0.0254058837890625, -0.012939453125, 0.0007305145263671875, -0.00992584228515625, 0.0276641845703125, 0.0003676414489746094, -0.005924224853515625, 0.064453125, -0.0364990234375, -0.02825927734375, 0.004222869873046875, -0.0147247314453125, 0.049713134765625, -0.01491546630859375, 0.0130615234375, 0.01250457763671875, -0.0234527587890625, 0.0211334228515625, 0.05120849609375, 0.01255035400390625, 0.0341796875, -0.0092926025390625, 0.0157623291015625, 0.01076507568359375, 0.0261383056640625, -0.01210784912109375, 0.00048351287841796875, 0.0189056396484375, -0.00473785400390625, 0.0220184326171875, 0.0004417896270751953, -0.00183868408203125, 0.0601806640625, 0.071044921875, 0.105224609375, -0.1170654296875, 0.019378662109375, 0.0193023681640625, -0.0216064453125, 0.06787109375, 0.01557159423828125, -0.0167236328125, -0.028656005859375, 0.0211029052734375, -0.0232391357421875, -0.01294708251953125, 0.024139404296875, -0.00009489059448242188, -0.01503753662109375, -0.014862060546875, 0.044952392578125, 0.01207733154296875, -0.0302734375, 0.00798797607421875, 0.01507568359375, -0.01061248779296875, 0.004360198974609375, -0.0184783935546875, 0.00302886962890625, -0.05059814453125, -0.07666015625, -0.033905029296875, -0.040771484375, -0.0297393798828125, 0.0309600830078125, 0.043365478515625, 0.02386474609375, 0.03558349609375, 0.01528167724609375, -0.005100250244140625, -0.0101776123046875, 0.0504150390625, 0.056915283203125, -0.0178985595703125, -0.00036835670471191406, 0.0511474609375, -0.0355224609375, 0.005657196044921875, 0.00989532470703125, 0.0135040283203125, -0.0241851806640625, 0.02142333984375, 0.0618896484375, 0.00832366943359375, -0.040496826171875, 0.0280609130859375, 0.040557861328125, -0.0137786865234375, -0.0015811920166015625, -0.03289794921875, -0.034515380859375, -0.0261993408203125, -0.0309906005859375, -0.066162109375, 0.023284912109375, -0.0252532958984375, -0.08197021484375, 0.08221435546875, 0.0201416015625, 0.0323486328125, -0.003948211669921875, 0.0211181640625, -0.0210723876953125, -0.010955810546875, -0.06268310546875, 0.0202789306640625, 0.039642333984375, 0.032806396484375, -0.0694580078125, -0.019500732421875, -0.018951416015625, 0.05718994140625, 0.02001953125, 0.0097503662109375, -0.0033779144287109375, 0.0220947265625, 0.049285888671875, 0.01081085205078125, -0.0119476318359375, 0.03192138671875, 0.0248260498046875, 0.0229949951171875, 0.060577392578125, -0.048370361328125, 0.0301666259765625, -0.032562255859375, 0.037689208984375, 0.0249481201171875, -0.0006451606750488281, 0.0030364990234375, -0.057037353515625, -0.00702667236328125, 0.002773284912109375, -0.04400634765625, -0.013214111328125, -0.06011962890625, -0.0209808349609375, 0.0033702850341796875, 0.018463134765625, -0.0229034423828125, 0.012664794921875, -0.0183258056640625, 0.045867919921875, 0.038177490234375, -0.025421142578125, 0.039703369140625, -0.003692626953125, -0.0131683349609375, -0.00274658203125, -0.0228118896484375, -0.03204345703125, 0.045196533203125, 0.00681304931640625, 0.0018987655639648438, 0.0125885009765625, -0.01910400390625, 0.04815673828125, 0.0199432373046875, 0.0165252685546875, -0.045166015625, -0.043701171875, 0.013214111328125, 0.0266571044921875, -0.0006003379821777344, 0.0186004638671875, 0.0194549560546875, 0.0011892318725585938, 0.047454833984375, -0.0306549072265625, 0.01247406005859375, 0.0404052734375, 0.0238494873046875, 0.00878143310546875, 0.030670166015625, -0.0751953125, -0.0100555419921875, -0.0477294921875, 0.031890869140625, -0.0095977783203125, 0.05084228515625, 0.0031223297119140625, 0.038299560546875, -0.04217529296875, -0.03668212890625, -0.0265350341796875, 0.033905029296875, 0.0187835693359375, 0.0121917724609375, -0.0148773193359375, 0.005893707275390625, 0.011810302734375, 0.01186370849609375, 0.006610870361328125, 0.039154052734375, 0.01812744140625, 0.012481689453125, 0.0191650390625, 0.00649261474609375, 0.006763458251953125, -0.01555633544921875, 0.0011348724365234375, 0.003772735595703125, -0.0209197998046875, 0.004764556884765625, -0.0213165283203125, -0.00899505615234375, 0.0052337646484375, 0.02667236328125, -0.018829345703125, 0.084228515625, 0.0004699230194091797, 0.03948974609375, -0.004547119140625, 0.006511688232421875, 0.00873565673828125, 0.026153564453125, -0.0350341796875, 0.00624847412109375, 0.00298309326171875, -0.05780029296875, -0.010711669921875, 0.0211944580078125, -0.038238525390625, 0.041107177734375, -0.015167236328125, -0.0294647216796875, 0.0206451416015625, 0.007965087890625, 0.0013990402221679688, 0.00464630126953125, -0.0030517578125, -0.027008056640625, 0.01788330078125, -0.006488800048828125, 0.0239105224609375, 0.047637939453125, -0.002086639404296875, 0.047332763671875, -0.035491943359375, 0.0168914794921875, -0.0214080810546875, 0.004062652587890625, -0.01030731201171875, -0.0218353271484375, 0.040924072265625, 0.00968170166015625, -0.0147552490234375, -0.0200347900390625, -0.03387451171875, 0.055511474609375, 0.020721435546875, -0.00421142578125, 0.005802154541015625, 0.040130615234375, 0.01151275634765625, 0.0167999267578125, 0.047149658203125, -0.0253448486328125, -0.049224853515625, -0.0249786376953125, 0.0133514404296875, 0.005222320556640625, 0.0214080810546875, -0.0031757354736328125, 0.041015625, 0.060943603515625, 0.041778564453125, -0.00417327880859375, 0.0133056640625, 0.015106201171875, 0.0377197265625, -0.0189361572265625, -0.01568603515625, -0.033447265625, -0.029815673828125, -0.01336669921875, 0.00009518861770629883, 0.00040078163146972656, -0.0290374755859375, 0.0150604248046875, -0.024688720703125, 0.0184478759765625, 0.027435302734375, -0.0021724700927734375, 0.0162506103515625, 0.0011386871337890625, 0.005496978759765625, 0.002887725830078125, -0.0283203125, -0.0247344970703125, -0.046630859375, 0.00543212890625, 0.021453857421875, -0.0088348388671875, -0.035919189453125, -0.057830810546875, -0.0290069580078125, 0.026458740234375, -0.0017690658569335938, -0.01253509521484375, -0.036102294921875, 0.0013856887817382812, 0.00989532470703125, -0.002628326416015625, -0.0031147003173828125, 0.0171661376953125, 0.053985595703125, -0.016693115234375, -0.005939483642578125, 0.00821685791015625, 0.0127105712890625, 0.006439208984375, 0.0099334716796875, 0.025848388671875, 0.00634765625, -0.03460693359375, 0.031646728515625, -0.006755828857421875, 0.066650390625, -0.02130126953125, -0.014129638671875, 0.01532745361328125, 0.0283355712890625, -0.057159423828125, -0.06488037109375, 0.0023555755615234375, -0.046112060546875, 0.02728271484375, 0.0244293212890625, -0.033721923828125, -0.0167083740234375, -0.039306640625, -0.051666259765625, 0.0760498046875, 0.006221771240234375, -0.02899169921875, 0.04669189453125, -0.00928497314453125, 0.0006647109985351562, 0.007740020751953125, 0.018463134765625, -0.030364990234375, -0.0210113525390625, -0.0018224716186523438, 0.01214599609375, 0.005870819091796875, 0.02166748046875, -0.012786865234375, -0.07318115234375, -0.0243377685546875, -0.025482177734375, -0.01397705078125, 0.006862640380859375, -0.00489044189453125, 0.0182647705078125, 0.0400390625, -0.025848388671875, -0.04376220703125, -0.015716552734375, -0.020843505859375, -0.0146942138671875, -0.00441741943359375, -0.01506805419921875, 0.026824951171875, 0.036773681640625, 0.07763671875, 0.00460052490234375, -0.049407958984375, -0.0216064453125, -0.0168304443359375, -0.022552490234375, -0.0207366943359375, 0.020233154296875, -0.057373046875, -0.01067352294921875, -0.00970458984375, -0.0186767578125, 0.004787445068359375, -0.00327301025390625, -0.003025054931640625, 0.0029010772705078125, 0.0435791015625, -0.01343536376953125, 0.023712158203125, -0.045928955078125, 0.06231689453125, -0.04150390625, -0.02203369140625, -0.0058135986328125, 0.036895751953125, 0.01238250732421875, -0.0007452964782714844, 0.00760650634765625, -0.006542205810546875, -0.0164947509765625, 0.002971649169921875, 0.006694793701171875, 0.062744140625, -0.01192474365234375, -0.0211181640625, -0.0006632804870605469, 0.0121612548828125, -0.00919342041015625, -0.0037212371826171875, -0.0318603515625, 0.0269622802734375, -0.0179901123046875, 0.07470703125, -0.047027587890625, 0.015594482421875, -0.019500732421875, 0.01537322998046875, -0.0010652542114257812, 0.0215911865234375, 0.05401611328125, -0.003833770751953125, 0.01277923583984375, -0.020233154296875, 0.0369873046875, -0.0217437744140625, 0.00818634033203125, 0.04998779296875, -0.00688934326171875, 0.0203399658203125 ]
027c216dd3b68fa56fd214c09cd0c2f9c55223d3
Wordpress Stackexchange Q: How to find out when Wordpress version last updated I'm trying to troubleshoot a Wordpress site that has been automatically downloading minor version revisions. I can easily see which version of Wordpress it is using, and I can see on the main Wordpress website when that version was released, but I am not able to see when that version was applied to my site. Is there a way to find this out without logging onto the server to check the timestamp on the files that were updated? Checking this site and Google, I haven't been able to even find someone asking this question. (The bugs we are seeing started around the time WP released the update, so we're trying to figure out if our issues are related or not.) Thank you! A: You could check the date stamps of the files on your server, using an FTP client. Edit: taking Mark's comment in consideration, it's probably best to check the modification date of the version.php file inside the /wp-includes/ folder of your Wordpress installation. This file should always be modified when Wordpress is updated.
Q: How to find out when Wordpress version last updated I'm trying to troubleshoot a Wordpress site that has been automatically downloading minor version revisions. I can easily see which version of Wordpress it is using, and I can see on the main Wordpress website when that version was released, but I am not able to see when that version was applied to my site. Is there a way to find this out without logging onto the server to check the timestamp on the files that were updated? Checking this site and Google, I haven't been able to even find someone asking this question. (The bugs we are seeing started around the time WP released the update, so we're trying to figure out if our issues are related or not.) Thank you! A: You could check the date stamps of the files on your server, using an FTP client. Edit: taking Mark's comment in consideration, it's probably best to check the modification date of the version.php file inside the /wp-includes/ folder of your Wordpress installation. This file should always be modified when Wordpress is updated.
wordpress
{ "language": "en", "length": 185, "provenance": "stackexchange_00019.jsonl.gz:462436", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215055" }
[ -0.01483154296875, -0.018707275390625, -0.017822265625, -0.002285003662109375, -0.019287109375, -0.006591796875, -0.00354766845703125, -0.008148193359375, 0.0167694091796875, 0.01499176025390625, -0.073486328125, 0.01322174072265625, -0.0224456787109375, 0.0125732421875, -0.03558349609375, -0.04815673828125, 0.058258056640625, -0.029083251953125, 0.0364990234375, 0.01629638671875, -0.0189666748046875, 0.052520751953125, 0.056243896484375, 0.032196044921875, 0.0157318115234375, 0.009918212890625, 0.10357666015625, -0.0243377685546875, 0.0413818359375, -0.00832366943359375, 0.029266357421875, -0.05322265625, 0.006397247314453125, 0.025115966796875, -0.00612640380859375, -0.006366729736328125, 0.005046844482421875, 0.018402099609375, 0.0244598388671875, 0.0029048919677734375, 0.0254058837890625, -0.0152587890625, 0.044342041015625, -0.005710601806640625, 0.01158905029296875, -0.041046142578125, 0.0300445556640625, -0.037261962890625, 0.0028400421142578125, -0.002780914306640625, 0.01399993896484375, 0.0218353271484375, 0.037872314453125, 0.00562286376953125, -0.0172576904296875, -0.007434844970703125, 0.0249176025390625, 0.0736083984375, 0.048370361328125, -0.0982666015625, -0.08746337890625, 0.01386260986328125, 0.038665771484375, 0.0182647705078125, -0.0390625, 0.006717681884765625, 0.053009033203125, -0.0028533935546875, -0.03875732421875, -0.06610107421875, 0.017669677734375, 0.01215362548828125, -0.00681304931640625, -0.005924224853515625, -0.00812530517578125, -0.0191802978515625, 0.025482177734375, -0.01210784912109375, -0.0014314651489257812, 0.01074981689453125, 0.00823974609375, -0.0010786056518554688, -0.034881591796875, -0.0226593017578125, 0.043426513671875, 0.048980712890625, -0.00970458984375, -0.040435791015625, -0.05010986328125, 0.0151214599609375, -0.042510986328125, 0.017913818359375, -0.03759765625, 0.005126953125, -0.0217742919921875, 0.01064300537109375, 0.00429534912109375, 0.05816650390625, -0.037078857421875, 0.0010232925415039062, -0.041107177734375, 0.01116180419921875, -0.0499267578125, -0.022064208984375, -0.004177093505859375, 0.032012939453125, 0.04376220703125, 0.02874755859375, 0.0146484375, 0.00875091552734375, -0.0030059814453125, 0.0244140625, -0.031524658203125, -0.040924072265625, 0.0028228759765625, 0.060333251953125, -0.0276641845703125, 0.0210418701171875, -0.01190185546875, 0.037322998046875, 0.00592803955078125, 0.049163818359375, -0.0158538818359375, -0.034454345703125, -0.013397216796875, -0.026641845703125, -0.0082550048828125, -0.02471923828125, 0.0118865966796875, 0.04180908203125, -0.029571533203125, -0.00487518310546875, 0.00519561767578125, -0.01171875, -0.02044677734375, -0.0197906494140625, 0.0026187896728515625, 0.034698486328125, -0.0163116455078125, 0.036346435546875, -0.0697021484375, -0.0224151611328125, 0.0450439453125, -0.07647705078125, -0.00450897216796875, 0.0013666152954101562, 0.02008056640625, 0.035736083984375, 0.005992889404296875, -0.0316162109375, 0.0158843994140625, 0.026702880859375, 0.0299835205078125, 0.001209259033203125, 0.01511383056640625, -0.03082275390625, 0.04400634765625, -0.03485107421875, -0.00875091552734375, -0.04949951171875, 0.0111846923828125, -0.00040268898010253906, 0.01352691650390625, 0.026519775390625, 0.017364501953125, 0.016143798828125, -0.017333984375, 0.0026340484619140625, 0.0268096923828125, -0.00722503662109375, 0.02880859375, -0.0267333984375, 0.07403564453125, 0.020355224609375, -0.00664520263671875, 0.0222625732421875, 0.0157012939453125, 0.00913238525390625, -0.0045013427734375, 0.038238525390625, -0.00027680397033691406, -0.0186614990234375, 0.036865234375, -0.010955810546875, 0.006793975830078125, -0.0093841552734375, -0.00771331787109375, 0.0111541748046875, 0.0242462158203125, 0.007053375244140625, -0.033233642578125, 0.004192352294921875, -0.02154541015625, 0.0677490234375, -0.0106658935546875, -0.0013227462768554688, -0.049346923828125, 0.0345458984375, -0.034881591796875, -0.054107666015625, -0.01959228515625, 0.0269622802734375, -0.0285491943359375, -0.0008559226989746094, -0.07574462890625, 0.0130157470703125, -0.0273590087890625, 0.03887939453125, 0.032562255859375, 0.00995635986328125, -0.0050811767578125, -0.0070343017578125, -0.0020008087158203125, -0.036376953125, -0.0447998046875, 0.019866943359375, -0.04412841796875, 0.00417327880859375, -0.0164031982421875, 0.0204620361328125, -0.01751708984375, 0.0039215087890625, -0.030242919921875, -0.025390625, -0.0014209747314453125, 0.0030956268310546875, -0.0113525390625, 0.0080108642578125, 0.028717041015625, 0.0179901123046875, 0.025726318359375, -0.00814056396484375, -0.0037975311279296875, -0.0187530517578125, -0.031036376953125, -0.0328369140625, -0.041351318359375, -0.1253662109375, 0.0228118896484375, 0.09454345703125, 0.03338623046875, 0.00732421875, -0.0197296142578125, -0.01189422607421875, 0.053924560546875, -0.0491943359375, -0.0091552734375, -0.003925323486328125, 0.0020275115966796875, 0.0269012451171875, 0.027374267578125, 0.0003178119659423828, 0.0030689239501953125, -0.01824951171875, -0.0092926025390625, 0.0330810546875, -0.0012798309326171875, 0.0219879150390625, -0.033935546875, 0.0151519775390625, -0.0156707763671875, -0.06292724609375, -0.01264190673828125, -0.042205810546875, 0.05999755859375, 0.0010786056518554688, 0.07257080078125, 0.07159423828125, 0.0083465576171875, -0.00997161865234375, -0.0229339599609375, 0.0026988983154296875, 0.01181793212890625, 0.0411376953125, -0.01444244384765625, 0.0255279541015625, -0.02008056640625, 0.002838134765625, -0.004695892333984375, 0.01329803466796875, -0.032867431640625, -0.041015625, 0.007343292236328125, 0.002780914306640625, 0.022674560546875, -0.035400390625, 0.04156494140625, -0.01055908203125, -0.0015802383422851562, 0.02508544921875, 0.04339599609375, 0.00450897216796875, -0.024078369140625, 0.019134521484375, 0.00551605224609375, -0.004917144775390625, 0.01213836669921875, -0.0261993408203125, 0.033599853515625, -0.00888824462890625, 0.0036602020263671875, 0.058074951171875, 0.0201568603515625, 0.00958251953125, 0.004150390625, -0.01617431640625, 0.01221466064453125, -0.01268768310546875, -0.0262908935546875, 0.0269317626953125, -0.11236572265625, -0.01617431640625, 0.0121612548828125, 0.0116424560546875, -0.0182037353515625, -0.03656005859375, -0.04150390625, -0.0128021240234375, -0.11053466796875, -0.07818603515625, -0.061798095703125, -0.06500244140625, -0.030975341796875, 0.01136016845703125, -0.0275115966796875, 0.0250701904296875, 0.028594970703125, 0.0225372314453125, 0.0180206298828125, -0.039337158203125, -0.041839599609375, -0.0623779296875, -0.08441162109375, -0.0308685302734375, 0.0062255859375, 0.020904541015625, -0.012786865234375, 0.09136962890625, -0.00815582275390625, -0.09844970703125, -0.072265625, -0.00028777122497558594, -0.0215606689453125, -0.004360198974609375, 0.021270751953125, 0.006839752197265625, -0.02203369140625, 0.025604248046875, -0.02105712890625, 0.0112762451171875, -0.0179595947265625, -0.0313720703125, -0.0105133056640625, -0.047088623046875, 0.004360198974609375, -0.00693511962890625, -0.0144195556640625, -0.006137847900390625, 0.01052093505859375, -0.0457763671875, 0.005222320556640625, 0.026580810546875, -0.00677490234375, 0.0004112720489501953, -0.0192413330078125, -0.0479736328125, 0.00846099853515625, -0.0014867782592773438, -0.0165863037109375, -0.0218353271484375, 0.029296875, -0.02667236328125, 0.038330078125, -0.0028820037841796875, -0.026611328125, -0.0208587646484375, 0.00571441650390625, -0.01171875, 0.057220458984375, 0.00955963134765625, 0.0285491943359375, -0.01073455810546875, 0.04290771484375, -0.060089111328125, -0.0048065185546875, 0.0201416015625, -0.06591796875, 0.0439453125, -0.0584716796875, -0.0219268798828125, -0.0282135009765625, 0.08642578125, -0.0017137527465820312, -0.0222625732421875, 0.0127105712890625, 0.027496337890625, -0.04913330078125, -0.030303955078125, -0.03448486328125, -0.006160736083984375, -0.095458984375, 0.00624847412109375, -0.01395416259765625, -0.00913238525390625, -0.029327392578125, 0.033935546875, -0.055816650390625, -0.04901123046875, 0.012115478515625, -0.0029926300048828125, 0.0005931854248046875, 0.00457000732421875, -0.00803375244140625, -0.006504058837890625, -0.0114288330078125, -0.02996826171875, -0.0231475830078125, 0.0017023086547851562, -0.03466796875, 0.0115509033203125, 0.02911376953125, -0.02197265625, 0.00753021240234375, 0.01473236083984375, 0.0259246826171875, 0.028533935546875, -0.014312744140625, -0.0210418701171875, -0.0233917236328125, 0.032073974609375, 0.02685546875, -0.0117645263671875, -0.00047016143798828125, -0.044921875, -0.0748291015625, -0.0221405029296875, -0.021148681640625, 0.034393310546875, 0.01654052734375, -0.0196533203125, -0.009002685546875, -0.005290985107421875, 0.0199737548828125, 0.0289459228515625, -0.01047515869140625, 0.024658203125, -0.00849151611328125, -0.018646240234375, 0.087646484375, 0.05242919921875, -0.0025424957275390625, -0.0132293701171875, 0.075927734375, 0.00742340087890625, -0.058197021484375, -0.06695556640625, 0.002941131591796875, 0.044952392578125, -0.007801055908203125, 0.035064697265625, 0.03179931640625, -0.0257568359375, 0.0311126708984375, 0.014129638671875, -0.006534576416015625, -0.01412200927734375, 0.019927978515625, 0.0011692047119140625, -0.005870819091796875, 0.0016431808471679688, -0.01654052734375, 0.017364501953125, 0.00951385498046875, -0.01166534423828125, -0.018646240234375, 0.01129913330078125, 0.058135986328125, -0.032623291015625, 0.050628662109375, -0.020355224609375, -0.06182861328125, 0.01140594482421875, -0.038726806640625, 0.02886962890625, 0.01354217529296875, 0.0038356781005859375, 0.035858154296875, 0.0406494140625, -0.01099395751953125, -0.027740478515625, 0.01313018798828125, -0.0207672119140625, 0.0203704833984375, -0.01259613037109375, -0.0175323486328125, -0.0249786376953125, -0.014190673828125, 0.028533935546875, -0.002834320068359375, -0.06964111328125, 0.037689208984375, -0.0215911865234375, -0.0311737060546875, 0.042083740234375, -0.004741668701171875, 0.051910400390625, 0.035552978515625, -0.0266876220703125, 0.0006079673767089844, -0.005161285400390625, -0.019775390625, -0.0528564453125, 0.01116943359375, -0.0278778076171875, -0.00949859619140625, 0.0261993408203125, -0.00482940673828125, -0.0089263916015625, -0.0096588134765625, -0.0021152496337890625, 0.0237274169921875, 0.036865234375, 0.0178375244140625, 0.0166168212890625, -0.002269744873046875, 0.00247955322265625, -0.0316162109375, 0.01148223876953125, -0.01273345947265625, -0.01500701904296875, -0.003887176513671875, 0.031829833984375, -0.0345458984375, -0.0155792236328125, 0.035308837890625, -0.025482177734375, 0.01049041748046875, 0.0006361007690429688, 0.008758544921875, -0.0031032562255859375, 0.0089263916015625, 0.030975341796875, 0.02716064453125, 0.0015468597412109375, -0.0019969940185546875, -0.002803802490234375, -0.024627685546875, -0.007476806640625, 0.00634002685546875, -0.0234832763671875, -0.0087432861328125, -0.0020847320556640625, -0.03973388671875, -0.043212890625, -0.023468017578125, 0.0251007080078125, 0.00914764404296875, -0.013275146484375, -0.03509521484375, 0.01543426513671875, -0.0227508544921875, 0.01251983642578125, -0.020843505859375, -0.006378173828125, -0.000009953975677490234, 0.0037059783935546875, 0.04888916015625, 0.016357421875, -0.0557861328125, -0.00760650634765625, -0.04302978515625, -0.009490966796875, 0.0040130615234375, -0.04046630859375, -0.034271240234375, -0.01531219482421875, -0.004322052001953125, 0.01462554931640625, -0.0283355712890625, -0.007503509521484375, -0.02557373046875, 0.038116455078125, 0.008209228515625, 0.04736328125, -0.004425048828125, 0.05780029296875, -0.00405120849609375, 0.0660400390625, 0.00490570068359375, 0.019378662109375, -0.0411376953125, -0.0281982421875, 0.048675537109375, 0.04486083984375, -0.028839111328125, -0.056976318359375, 0.0276947021484375, -0.08251953125, 0.0079345703125, -0.0267791748046875, -0.002105712890625, -0.045440673828125, -0.00743865966796875, -0.01375579833984375, 0.060302734375, -0.0293121337890625, -0.0164031982421875, 0.019561767578125, -0.03411865234375, -0.0322265625, -0.0172271728515625, -0.022003173828125, 0.00487518310546875, -0.0016050338745117188, -0.0238494873046875, 0.0501708984375, -0.0158843994140625, 0.04962158203125, 0.05072021484375, -0.022247314453125, 0.04364013671875, 0.040740966796875, 0.01306915283203125, 0.05548095703125, -0.00655364990234375, -0.0175933837890625, 0.0078125, 0.030792236328125, 0.006694793701171875, 0.01268768310546875, 0.031951904296875, -0.00824737548828125, 0.024200439453125, 0.03314208984375, 0.05853271484375, -0.0382080078125, 0.00473785400390625, 0.01385498046875, -0.023651123046875, 0.039459228515625, -0.0065155029296875, -0.0528564453125, -0.09039306640625, 0.0811767578125, -0.077392578125, -0.0133819580078125, 0.0186920166015625, -0.013336181640625, -0.0157012939453125, -0.040771484375, 0.045745849609375, 0.015625, -0.0211334228515625, 0.004093170166015625, 0.006504058837890625, -0.01049041748046875, -0.02459716796875, -0.00893402099609375, -0.0032176971435546875, -0.030029296875, -0.056365966796875, 0.0017023086547851562, -0.0200347900390625, 0.01454925537109375, -0.0205841064453125, -0.0018787384033203125, 0.029205322265625, 0.03692626953125, -0.0161590576171875, 0.0064849853515625, 0.0147857666015625, -0.0079803466796875, 0.0144500732421875, -0.0196990966796875, 0.0236968994140625, 0.02801513671875, -0.00975799560546875, 0.01690673828125, -0.01068115234375, -0.018463134765625, -0.00646209716796875, -0.007068634033203125, 0.06005859375, -0.032012939453125, -0.01042938232421875, 0.03515625, 0.02752685546875, -0.0150299072265625, -0.00982666015625, -0.0106964111328125, -0.043182373046875, 0.0290679931640625, -0.025604248046875, 0.01568603515625, 0.019287109375, -0.002948760986328125, -0.0220184326171875, 0.07171630859375, 0.0033740997314453125, -0.01461029052734375, 0.0008769035339355469, 0.032257080078125, -0.01715087890625, 0.0178680419921875, -0.0350341796875, 0.05096435546875, -0.0106048583984375, 0.05328369140625, -0.052947998046875, -0.00921630859375, 0.013916015625, 0.034820556640625, 0.00882720947265625, 0.0036525726318359375, -0.020538330078125, 0.018646240234375, 0.0516357421875, 0.055755615234375, 0.029296875, 0.0166168212890625, -0.0013484954833984375, -0.01446533203125, 0.023529052734375, -0.0260009765625, 0.0189056396484375, 0.0036411285400390625, -0.0009822845458984375, 0.0178375244140625, 0.01195526123046875, 0.01433563232421875, 0.0018939971923828125, 0.027252197265625, -0.0165863037109375, -0.0009121894836425781, 0.006134033203125, 0.0257568359375, 0.0355224609375, -0.00672149658203125, 0.0400390625, -0.0294647216796875, 0.01253509521484375, -0.0176544189453125, 0.058837890625, 0.004673004150390625, -0.03955078125, -0.0245513916015625, -0.005001068115234375, -0.0161895751953125, -0.016357421875, -0.0304412841796875, 0.041748046875, -0.00786590576171875, 0.06396484375, 0.0215301513671875, 0.02435302734375, -0.0187835693359375, 0.0008363723754882812, 0.02008056640625, 0.06634521484375, -0.0435791015625, -0.01375579833984375, 0.002197265625, -0.010345458984375, -0.01776123046875, -0.057098388671875, -0.030029296875, -0.0030803680419921875, 0.00807952880859375, 0.00682830810546875, -0.005157470703125, 0.01788330078125, 0.02587890625, 0.016204833984375, 0.042236328125, -0.036773681640625, -0.0198211669921875, -0.005512237548828125, -0.00033092498779296875, 0.021148681640625, 0.00260162353515625, -0.02685546875, 0.03729248046875, 0.01328277587890625, 0.02886962890625, 0.007152557373046875, 0.01568603515625, 0.01605224609375, -0.0077667236328125, -0.004871368408203125, -0.01849365234375, -0.0014009475708007812, 0.0310516357421875, 0.007343292236328125, -0.016876220703125, 0.0300140380859375, 0.0301513671875, -0.07855224609375, -0.00972747802734375, 0.040283203125, -0.02862548828125, -0.00983428955078125, -0.040924072265625, 0.0280609130859375, 0.0265350341796875, 0.0069122314453125, 0.01154327392578125, 0.003692626953125, 0.040435791015625, -0.020172119140625, 0.02197265625, 0.0038776397705078125, -0.002918243408203125, 0.072021484375, -0.015411376953125, 0.037506103515625, -0.007205963134765625, 0.005863189697265625, 0.01232147216796875, -0.02337646484375, 0.00583648681640625, 0.0005655288696289062, 0.00909423828125, 0.0012311935424804688, 0.0162506103515625, 0.001556396484375, 0.008514404296875, 0.01369476318359375, -0.0394287109375, 0.0160980224609375, -0.0167388916015625, 0.0095062255859375, -0.0103912353515625, -0.045013427734375, -0.0341796875, -0.0107421875, 0.0301361083984375, 0.0582275390625, 0.0253753662109375, 0.0196685791015625, 0.037109375, -0.016632080078125, 0.0192108154296875, -0.07293701171875, -0.02899169921875, 0.037506103515625, -0.0318603515625, -0.01983642578125, 0.01061248779296875, -0.056854248046875, 0.029266357421875, 0.0232391357421875, -0.007282257080078125, 0.0150604248046875, -0.009124755859375, 0.01751708984375, 0.0015783309936523438, -0.054779052734375, -0.04248046875, -0.0245208740234375, 0.04852294921875, 0.0258636474609375, -0.0225677490234375, -0.050506591796875, -0.0269927978515625, -0.024566650390625, 0.0211944580078125, -0.058074951171875, -0.0090789794921875, 0.0291290283203125, 0.005435943603515625, 0.04364013671875, 0.0245208740234375, 0.0171356201171875, -0.0218963623046875, -0.031005859375, 0.0142822265625, -0.013336181640625, 0.003757476806640625, -0.0284576416015625, 0.01690673828125, 0.0248260498046875, 0.002567291259765625, 0.042755126953125, -0.0251007080078125, 0.0151824951171875, -0.00972747802734375, 0.033782958984375, 0.0148162841796875, -0.01241302490234375, -0.0163116455078125, -0.04058837890625, 0.0180816650390625, 0.0188751220703125, 0.0022220611572265625, 0.01922607421875, 0.006317138671875, 0.0028285980224609375, 0.0140228271484375, 0.00614166259765625, -0.05413818359375, 0.03912353515625, -0.0187835693359375, 0.02325439453125, -0.025054931640625, -0.006988525390625, 0.009521484375, 0.0174713134765625, -0.01096343994140625, -0.0247344970703125, -0.0031147003173828125, 0.050537109375, 0.012786865234375, 0.015655517578125, 0.0163421630859375, -0.02032470703125, 0.024871826171875, -0.0004031658172607422, 0.0245819091796875, 0.037841796875, 0.0092926025390625, 0.002201080322265625, 0.044647216796875, -0.032806396484375, -0.0245819091796875, -0.031494140625, 0.0078582763671875, -0.039398193359375, -0.01873779296875, -0.0343017578125, 0.0234832763671875, 0.01611328125, -0.040924072265625, -0.09124755859375, 0.0284576416015625, -0.0254669189453125, -0.032989501953125, -0.077880859375, -0.0016021728515625, -0.00390625, -0.02911376953125, -0.042388916015625, -0.004360198974609375, -0.0162200927734375, 0.061676025390625, 0.01026153564453125, 0.04278564453125, -0.01678466796875, 0.041778564453125, -0.045562744140625, 0.032135009765625, -0.00933837890625, -0.01113128662109375, 0.010162353515625, -0.0168914794921875, 0.01363372802734375, 0.043060302734375, -0.03350830078125, -0.0296630859375, -0.001514434814453125, 0.0031223297119140625, -0.0022125244140625, 0.006023406982421875, -0.0767822265625, -0.053436279296875, 0.05853271484375, 0.0771484375, 0.039703369140625, -0.00628662109375, 0.0127105712890625, 0.0211029052734375, -0.031982421875, -0.0019550323486328125, 0.01045989990234375, -0.024658203125, 0.005046844482421875, -0.0218048095703125, -0.0282745361328125, -0.0217437744140625, 0.00624847412109375, -0.07501220703125, 0.016754150390625, -0.02142333984375, 0.00061798095703125, -0.052978515625, -0.008697509765625, 0.04656982421875, -0.018280029296875, 0.0328369140625, -0.00737762451171875, 0.01009368896484375, 0.042022705078125, 0.044647216796875, 0.07525634765625, 0.072998046875, -0.042388916015625, -0.0037975311279296875, 0.056915283203125, -0.00838470458984375, -0.0172271728515625, -0.04498291015625, 0.0059051513671875, -0.013427734375, -0.0018224716186523438, -0.04071044921875, 0.0164031982421875, -0.00447845458984375, -0.01953125, 0.052734375, 0.01160430908203125, 0.05279541015625, -0.024658203125, 0.06829833984375, -0.035888671875, -0.0222320556640625, -0.006072998046875, -0.049072265625, 0.01406097412109375, -0.005924224853515625, 0.020050048828125, -0.0380859375, 0.01125335693359375, -0.034423828125, -0.00341796875, 0.0179595947265625 ]
e95a41c9cd429602a9a5dc942ec18b8fcc741077
Wordpress Stackexchange Q: Remove Woocommerce product link I'd like to remove the link from the Woocommerce product listings. I don't need the user to see the product detail pages, we are going to use Quick View instead. Anywho, I have been searching and everything I've found is outdated. This is the current content-product.php file: https://github.com/woothemes/woocommerce/blob/master/templates/content-product.php and there are no anchor tags to simply remove. I might need a hook but I'm not sure what to do. I tried a few but the link was still there. For example this didn't work when added to my functions.php: add_filter('woocommerce_template_loop_product_link_open','mbc_remove_link_on_thumbnail' ); function mbc_remove_link_on_thumbnail($html){ return strip_tags($html,'<img>'); } I also tried this which didn't work but I feel is close: remove_action ('woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10); remove_action ('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5); I'm not sure if I'm even on the right track. Any help would be appreciated! A: A better & safer way to do this is by removing the open & close link actions. This will prevent side effects such as the add to cart button disappearing. remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 ); You can add this code to your functions.php
Q: Remove Woocommerce product link I'd like to remove the link from the Woocommerce product listings. I don't need the user to see the product detail pages, we are going to use Quick View instead. Anywho, I have been searching and everything I've found is outdated. This is the current content-product.php file: https://github.com/woothemes/woocommerce/blob/master/templates/content-product.php and there are no anchor tags to simply remove. I might need a hook but I'm not sure what to do. I tried a few but the link was still there. For example this didn't work when added to my functions.php: add_filter('woocommerce_template_loop_product_link_open','mbc_remove_link_on_thumbnail' ); function mbc_remove_link_on_thumbnail($html){ return strip_tags($html,'<img>'); } I also tried this which didn't work but I feel is close: remove_action ('woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10); remove_action ('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5); I'm not sure if I'm even on the right track. Any help would be appreciated! A: A better & safer way to do this is by removing the open & close link actions. This will prevent side effects such as the add to cart button disappearing. remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 ); You can add this code to your functions.php A: I just removed it with jQuery like this: <script> jQuery(document).ready(function(){ jQuery('li.product a.woocommerce-loop-product__link').removeAttr('href'); }); </script> A: The way I've done this was to take a copy of content-product.php and paste it into the root of your theme folder. Comment out do_action( 'woocommerce_before_shop_loop_item_title' ); and do_action( 'woocommerce_after_shop_loop_item' ); Quick and dirty, but it worked for me. A: I found this. /** * @snippet Disable Link to Products @ Loop * @how-to Watch tutorial @ http://businessbloomer.com/?p=19055 * @sourcecode http://businessbloomer.com/?p=19916 * @author Rodolfo Melogli * @testedwith WooCommerce 2.5.2 */ // Close </a> tag just after it opens before product item add_action( 'woocommerce_before_shop_loop_item_title','bbloomer_close_permalink', 10 ); function bbloomer_close_permalink() { ?> </a> <?php } // Open <a> tag just before it closes after product item add_action( 'woocommerce_after_shop_loop_item_title','bbloomer_open_atag', 11); function bbloomer_open_atag() { ?> <a> <?php } /** * Explanation for the hack! * * Before the loop item, a link opens... * After the loop item, a link closes... * We're basically adding a close and open so that * no content gets wrapped into <a>link</a> * * Check wc-template-functions.php lines 545-556: * * function woocommerce_template_loop_product_link_open() { * echo '<a href="' . get_the_permalink() . '">'; * } * * function woocommerce_template_loop_product_link_close() { * echo '</a>'; * } * */ Font Source: http://businessbloomer.com/woocommerce-disable-link-to-product-loop/ A: The best practice would be by a single line of code in your functions.php file. remove_action('woocommerce_before_shop_loop_item' , 'woocommerce_template_loop_product_link_open' , 10); Put it into any function file. The link to the product will be gone.
wordpress
{ "language": "en", "length": 425, "provenance": "stackexchange_00019.jsonl.gz:462458", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215124" }
[ 0.0276641845703125, 0.004245758056640625, 0.008758544921875, 0.0189971923828125, 0.01953125, -0.042572021484375, 0.077392578125, -0.03961181640625, 0.002574920654296875, 0.027984619140625, 0.0177154541015625, -0.047576904296875, -0.01276397705078125, -0.03228759765625, -0.033935546875, -0.0292816162109375, 0.03350830078125, 0.0157012939453125, 0.057891845703125, 0.01165771484375, -0.017913818359375, 0.0394287109375, 0.037078857421875, 0.046844482421875, 0.0101776123046875, -0.00415802001953125, 0.10064697265625, -0.023406982421875, 0.025665283203125, -0.0247650146484375, 0.018310546875, -0.018463134765625, 0.0230865478515625, 0.006671905517578125, -0.0237884521484375, -0.0006570816040039062, 0.00592041015625, -0.00634765625, -0.007598876953125, 0.0204620361328125, 0.028594970703125, -0.0169525146484375, -0.02471923828125, -0.004116058349609375, -0.0157318115234375, -0.00811004638671875, -0.00139617919921875, -0.03131103515625, 0.0182342529296875, -0.01197052001953125, 0.0188140869140625, 0.0567626953125, 0.033111572265625, -0.0013790130615234375, -0.022735595703125, 0.0006551742553710938, -0.041351318359375, 0.0203399658203125, 0.00417327880859375, 0.0230865478515625, 0.026092529296875, 0.010345458984375, -0.00951385498046875, -0.023223876953125, -0.00775146484375, -0.0018329620361328125, -0.04150390625, 0.0189056396484375, -0.031768798828125, 0.01140594482421875, 0.0158843994140625, -0.030548095703125, -0.00406646728515625, 0.01010894775390625, -0.00852203369140625, -0.0076141357421875, 0.00237274169921875, 0.0017557144165039062, 0.0171661376953125, 0.0161590576171875, -0.01398468017578125, -0.017852783203125, 0.00788116455078125, -0.035400390625, 0.03131103515625, 0.007732391357421875, -0.01374053955078125, -0.01271820068359375, -0.014129638671875, -0.022552490234375, -0.02459716796875, 0.0161285400390625, 0.006031036376953125, -0.0176239013671875, -0.074951171875, -0.0014429092407226562, 0.03240966796875, 0.011871337890625, 0.01181793212890625, -0.0277099609375, 0.024871826171875, -0.05108642578125, -0.0060272216796875, -0.007793426513671875, -0.006740570068359375, 0.03887939453125, 0.004974365234375, 0.043212890625, 0.02838134765625, 0.0220947265625, 0.0102996826171875, 0.01113128662109375, -0.0479736328125, -0.0279693603515625, -0.0042572021484375, 0.03851318359375, -0.06536865234375, 0.0214080810546875, 0.00307464599609375, 0.0198974609375, 0.0027523040771484375, 0.0154876708984375, 0.01763916015625, -0.0164337158203125, 0.0027294158935546875, -0.0008702278137207031, -0.0157012939453125, -0.036529541015625, 0.012176513671875, 0.00713348388671875, -0.052001953125, 0.004993438720703125, 0.05010986328125, 0.057159423828125, 0.043365478515625, -0.018463134765625, -0.0055999755859375, 0.04266357421875, 0.0301361083984375, -0.0018510818481445312, 0.01406097412109375, -0.0205230712890625, -0.0005106925964355469, 0.0217437744140625, 0.041290283203125, 0.005764007568359375, -0.003864288330078125, 0.01617431640625, 0.031768798828125, 0.0034542083740234375, 0.035400390625, -0.031707763671875, 0.033782958984375, 0.01070404052734375, 0.036346435546875, -0.0340576171875, 0.0726318359375, -0.049835205078125, 0.0093841552734375, -0.055084228515625, -0.018402099609375, -0.0225372314453125, 0.0191192626953125, -0.0521240234375, -0.07452392578125, 0.0312347412109375, -0.040191650390625, -0.01776123046875, 0.02337646484375, 0.043487548828125, 0.021514892578125, -0.060302734375, -0.016021728515625, -0.004001617431640625, -0.0181427001953125, 0.0150909423828125, 0.01082611083984375, 0.040313720703125, 0.031280517578125, 0.01384735107421875, -0.025909423828125, -0.054779052734375, 0.10504150390625, -0.052154541015625, -0.0611572265625, 0.025421142578125, 0.04248046875, 0.06304931640625, -0.030364990234375, 0.025115966796875, 0.0849609375, 0.03753662109375, -0.0081329345703125, 0.031097412109375, 0.01190948486328125, -0.0670166015625, 0.01158905029296875, -0.0188446044921875, -0.01273345947265625, -0.005321502685546875, 0.01126861572265625, 0.04052734375, -0.005535125732421875, 0.009521484375, -0.055145263671875, 0.046875, -0.0264129638671875, 0.046112060546875, -0.07183837890625, 0.0246734619140625, 0.043243408203125, -0.004756927490234375, -0.061981201171875, 0.0120391845703125, 0.041961669921875, -0.0189971923828125, -0.015960693359375, 0.038543701171875, 0.0162353515625, 0.038177490234375, 0.036834716796875, -0.02789306640625, 0.037353515625, 0.0047454833984375, 0.039825439453125, 0.015350341796875, -0.041168212890625, -0.01435089111328125, -0.0162506103515625, 0.0204620361328125, -0.0986328125, 0.057464599609375, 0.03961181640625, -0.0205078125, -0.038299560546875, 0.0308685302734375, 0.023406982421875, -0.06329345703125, -0.038848876953125, 0.047698974609375, 0.037628173828125, 0.040069580078125, -0.02154541015625, -0.03363037109375, 0.06488037109375, -0.0195770263671875, 0.0160675048828125, -0.0186004638671875, -0.00620269775390625, 0.0178985595703125, 0.00867462158203125, 0.0207977294921875, 0.0166015625, -0.015777587890625, 0.0180511474609375, 0.037567138671875, -0.01369476318359375, -0.0260009765625, 0.003871917724609375, 0.019256591796875, -0.00353240966796875, -0.025909423828125, -0.015869140625, -0.0278472900390625, 0.033905029296875, -0.0020599365234375, 0.0201873779296875, 0.016876220703125, -0.033721923828125, -0.01490020751953125, 0.036865234375, 0.008056640625, -0.0341796875, 0.01551055908203125, 0.01529693603515625, -0.0643310546875, -0.04534912109375, 0.0274200439453125, -0.04034423828125, -0.0220184326171875, 0.006763458251953125, 0.0257720947265625, 0.052001953125, -0.007080078125, -0.01287078857421875, -0.030303955078125, 0.0340576171875, 0.0254364013671875, 0.017822265625, 0.00567626953125, 0.010101318359375, 0.0146636962890625, -0.039306640625, 0.052978515625, -0.0063018798828125, -0.0285797119140625, 0.003269195556640625, -0.01824951171875, 0.040985107421875, -0.037078857421875, 0.06463623046875, 0.05718994140625, -0.038787841796875, 0.034393310546875, 0.00789642333984375, -0.0012845993041992188, 0.0295562744140625, -0.0192718505859375, -0.025421142578125, 0.022125244140625, -0.067626953125, -0.00879669189453125, 0.00435638427734375, 0.01617431640625, -0.01467132568359375, -0.0280609130859375, -0.00955963134765625, 0.002288818359375, -0.041259765625, -0.0298004150390625, 0.01055145263671875, -0.0265350341796875, 0.004779815673828125, 0.0260162353515625, -0.015960693359375, -0.0355224609375, 0.05133056640625, 0.004791259765625, -0.007232666015625, -0.01837158203125, -0.0458984375, -0.04412841796875, -0.05828857421875, 0.01456451416015625, -0.010101318359375, 0.018310546875, 0.01031494140625, -0.011199951171875, -0.00601959228515625, -0.017730712890625, 0.028167724609375, -0.0296173095703125, -0.015380859375, 0.0090484619140625, -0.0294647216796875, 0.005657196044921875, -0.023162841796875, 0.01154327392578125, -0.0006508827209472656, 0.00004178285598754883, -0.006015777587890625, -0.0021762847900390625, 0.0150604248046875, 0.0088043212890625, 0.041748046875, -0.0171356201171875, -0.0171661376953125, 0.01338958740234375, 0.019439697265625, -0.050750732421875, -0.0572509765625, -0.0140838623046875, -0.05810546875, 0.0418701171875, 0.04034423828125, 0.0069122314453125, -0.00814056396484375, 0.0257110595703125, 0.036102294921875, 0.00917816162109375, 0.0024261474609375, -0.00146484375, 0.0233001708984375, 0.0118560791015625, 0.0242767333984375, -0.0328369140625, 0.10064697265625, 0.003162384033203125, -0.017486572265625, 0.04339599609375, 0.01071929931640625, 0.0182342529296875, -0.0394287109375, -0.026885986328125, -0.0128173828125, 0.048309326171875, 0.01232147216796875, 0.0187835693359375, -0.01371002197265625, -0.034637451171875, -0.00528717041015625, 0.076416015625, 0.006561279296875, -0.048065185546875, -0.01146697998046875, 0.0086517333984375, 0.0264129638671875, 0.01514434814453125, 0.028411865234375, -0.0213775634765625, -0.09515380859375, 0.0209197998046875, -0.0163726806640625, -0.007427215576171875, -0.03228759765625, 0.033294677734375, -0.051025390625, -0.041839599609375, 0.03228759765625, 0.0165863037109375, 0.0079498291015625, 0.048797607421875, -0.036102294921875, 0.055694580078125, -0.03521728515625, -0.01561737060546875, 0.004291534423828125, -0.005367279052734375, 0.004550933837890625, 0.0270843505859375, 0.0277862548828125, 0.01465606689453125, -0.031341552734375, 0.01155853271484375, -0.001308441162109375, 0.037933349609375, -0.006866455078125, 0.00711822509765625, -0.011932373046875, 0.01404571533203125, 0.01361846923828125, -0.01861572265625, 0.0013713836669921875, -0.022674560546875, -0.004749298095703125, 0.032257080078125, -0.016845703125, 0.050567626953125, 0.007701873779296875, -0.0084075927734375, -0.09881591796875, -0.004734039306640625, 0.045989990234375, 0.01140594482421875, 0.0284423828125, -0.0113983154296875, -0.0020809173583984375, -0.06512451171875, 0.04498291015625, -0.01236724853515625, -0.037750244140625, 0.000823974609375, 0.040191650390625, 0.0288238525390625, -0.020294189453125, 0.029022216796875, 0.0362548828125, 0.035736083984375, -0.00283050537109375, 0.04742431640625, 0.0097503662109375, -0.0024852752685546875, 0.0276031494140625, -0.00550079345703125, 0.0015316009521484375, 0.01447296142578125, 0.036865234375, -0.00019049644470214844, -0.0084686279296875, 0.0202789306640625, -0.0121307373046875, 0.0005216598510742188, -0.0108795166015625, -0.006801605224609375, -0.0197906494140625, 0.01088714599609375, 0.032623291015625, 0.0034332275390625, 0.0052032470703125, -0.0277099609375, -0.0021724700927734375, -0.006938934326171875, -0.00176239013671875, 0.05279541015625, 0.0244140625, 0.006359100341796875, 0.0177154541015625, 0.0225067138671875, 0.0010595321655273438, -0.06927490234375, -0.0631103515625, -0.064208984375, 0.006256103515625, -0.06903076171875, -0.034149169921875, 0.0036067962646484375, -0.004329681396484375, 0.0013275146484375, 0.00968170166015625, -0.005767822265625, -0.037841796875, -0.0196685791015625, -0.01247406005859375, -0.0194091796875, 0.01038360595703125, 0.064697265625, 0.01690673828125, -0.01142120361328125, -0.021728515625, -0.047210693359375, -0.00133514404296875, -0.07635498046875, 0.020477294921875, -0.0024890899658203125, 0.01186370849609375, 0.0113067626953125, 0.073486328125, 0.01800537109375, 0.04046630859375, -0.01136016845703125, 0.03411865234375, 0.0130767822265625, 0.0367431640625, 0.01248931884765625, -0.01357269287109375, -0.0076141357421875, 0.0033092498779296875, -0.017791748046875, -0.026611328125, -0.0362548828125, 0.024444580078125, 0.026336669921875, -0.036346435546875, -0.0170440673828125, 0.0180206298828125, -0.00907135009765625, -0.0171966552734375, 0.046356201171875, 0.0288238525390625, -0.0322265625, -0.01502227783203125, 0.0304718017578125, 0.01910400390625, -0.0038242340087890625, 0.020721435546875, -0.009521484375, -0.0159759521484375, -0.03662109375, -0.011016845703125, -0.0287322998046875, -0.0323486328125, -0.01016998291015625, -0.00441741943359375, -0.026702880859375, 0.00229644775390625, -0.06060791015625, 0.0200347900390625, -0.04156494140625, -0.004581451416015625, 0.05169677734375, -0.00511932373046875, 0.06982421875, -0.0164794921875, -0.05255126953125, -0.01910400390625, 0.006870269775390625, 0.041168212890625, 0.041595458984375, -0.056182861328125, -0.0052032470703125, -0.02972412109375, -0.01280975341796875, -0.036407470703125, -0.053009033203125, -0.0240020751953125, 0.0006809234619140625, -0.0016384124755859375, 0.01241302490234375, 0.005542755126953125, -0.00023353099822998047, 0.0115966796875, 0.00717926025390625, 0.0021076202392578125, -0.0033092498779296875, 0.004192352294921875, 0.00423431396484375, 0.0241546630859375, 0.0423583984375, 0.029571533203125, -0.003627777099609375, -0.0085296630859375, -0.051361083984375, 0.01450347900390625, -0.023590087890625, -0.0251312255859375, -0.038421630859375, -0.031951904296875, 0.0089263916015625, 0.048126220703125, -0.007305145263671875, -0.0294952392578125, -0.0190277099609375, -0.00595855712890625, -0.044647216796875, 0.08905029296875, 0.00605010986328125, 0.00004851818084716797, -0.000014901161193847656, -0.0236053466796875, 0.0205535888671875, 0.0238800048828125, 0.03448486328125, -0.0400390625, -0.01512908935546875, -0.0214996337890625, 0.006473541259765625, 0.01544952392578125, 0.039581298828125, 0.045257568359375, -0.0304718017578125, 0.0210418701171875, 0.0214996337890625, -0.00841522216796875, 0.024200439453125, 0.048187255859375, 0.0177001953125, -0.007038116455078125, 0.07000732421875, 0.0092620849609375, -0.0192718505859375, 0.034210205078125, -0.035491943359375, 0.01155853271484375, 0.036529541015625, 0.04315185546875, -0.07623291015625, 0.006317138671875, 0.01934814453125, 0.0019893646240234375, 0.0276031494140625, -0.0165252685546875, 0.013336181640625, -0.0014295578002929688, 0.01947021484375, 0.00901031494140625, -0.022003173828125, -0.00811004638671875, -0.013763427734375, 0.0162506103515625, 0.0301666259765625, 0.035675048828125, -0.00804901123046875, -0.102783203125, -0.0293731689453125, 0.06793212890625, -0.037445068359375, -0.05523681640625, -0.0033721923828125, 0.01898193359375, -0.004241943359375, -0.0548095703125, 0.048583984375, -0.01039886474609375, 0.058319091796875, 0.0241546630859375, 0.01318359375, -0.001346588134765625, 0.045684814453125, -0.01305389404296875, 0.018157958984375, 0.00930023193359375, -0.01453399658203125, -0.013946533203125, -0.02069091796875, 0.01288604736328125, -0.0158843994140625, -0.07135009765625, 0.003753662109375, -0.06341552734375, 0.00896453857421875, 0.00302886962890625, 0.07769775390625, 0.0787353515625, -0.03515625, -0.03857421875, 0.026824951171875, 0.01190185546875, 0.0028705596923828125, -0.01800537109375, 0.018463134765625, -0.0015344619750976562, 0.045501708984375, -0.00682830810546875, 0.00798797607421875, -0.034332275390625, -0.0452880859375, -0.07275390625, 0.053558349609375, -0.06939697265625, 0.056854248046875, 0.0288543701171875, -0.0008220672607421875, 0.007122039794921875, -0.020538330078125, -0.01421356201171875, 0.057220458984375, 0.0625, 0.0389404296875, 0.011322021484375, -0.012237548828125, 0.03387451171875, 0.026947021484375, 0.0279541015625, -0.003566741943359375, 0.016021728515625, -0.005481719970703125, 0.048004150390625, 0.0228424072265625, -0.01483917236328125, 0.0008759498596191406, -0.01111602783203125, -0.00771331787109375, 0.03057861328125, -0.0662841796875, 0.00905609130859375, -0.031646728515625, 0.01491546630859375, -0.004322052001953125, 0.020263671875, 0.0106353759765625, -0.005115509033203125, 0.04827880859375, 0.0014963150024414062, -0.01079559326171875, 0.002498626708984375, -0.00782012939453125, -0.01424407958984375, 0.0173492431640625, -0.03277587890625, 0.024444580078125, 0.0122833251953125, -0.0263519287109375, 0.030792236328125, 0.0009484291076660156, 0.040802001953125, 0.0142974853515625, 0.0173797607421875, 0.07879638671875, -0.034210205078125, 0.0224761962890625, 0.0150299072265625, -0.03570556640625, 0.00557708740234375, 0.00516510009765625, 0.0010118484497070312, -0.0267791748046875, 0.046844482421875, 0.03228759765625, -0.004238128662109375, -0.0258331298828125, -0.034515380859375, 0.0005154609680175781, -0.01364898681640625, 0.006641387939453125, -0.0262603759765625, -0.005126953125, -0.0625, -0.0174713134765625, -0.0287322998046875, 0.01354217529296875, 0.038177490234375, 0.032684326171875, 0.01166534423828125, 0.021728515625, -0.083740234375, -0.01499176025390625, -0.041412353515625, 0.012359619140625, 0.008544921875, 0.0462646484375, 0.006793975830078125, 0.0665283203125, -0.01280975341796875, -0.03411865234375, 0.015838623046875, 0.04400634765625, -0.0408935546875, -0.0148162841796875, -0.045867919921875, -0.09228515625, -0.013275146484375, 0.04718017578125, 0.054718017578125, 0.01172637939453125, 0.029205322265625, 0.0183563232421875, 0.017425537109375, 0.006053924560546875, 0.00009781122207641602, -0.01454925537109375, 0.006069183349609375, -0.0164337158203125, 0.048126220703125, 0.006153106689453125, 0.007793426513671875, -0.028961181640625, 0.04022216796875, 0.0109100341796875, -0.0313720703125, 0.02484130859375, -0.00530242919921875, -0.02789306640625, 0.058990478515625, -0.0292816162109375, 0.06634521484375, -0.00888824462890625, -0.0299530029296875, -0.01277923583984375, 0.01090240478515625, 0.005298614501953125, -0.0304718017578125, 0.0122833251953125, -0.042999267578125, 0.08160400390625, 0.01554107666015625, 0.0261688232421875, 0.0120391845703125, -0.0230712890625, -0.0158538818359375, -0.019073486328125, 0.04364013671875, -0.00027632713317871094, 0.0014772415161132812, 0.0008053779602050781, -0.00092315673828125, 0.03326416015625, 0.011322021484375, 0.036468505859375, -0.02178955078125, 0.0286712646484375, 0.006011962890625, 0.007411956787109375, 0.0160980224609375, 0.0100860595703125, 0.02569580078125, 0.031524658203125, 0.0016689300537109375, -0.0279998779296875, -0.01806640625, 0.005863189697265625, 0.054962158203125, -0.0227813720703125, -0.00862884521484375, -0.007701873779296875, 0.01885986328125, -0.0223541259765625, 0.006011962890625, -0.0160980224609375, -0.02984619140625, -0.0010938644409179688, 0.021484375, 0.00113677978515625, 0.00995635986328125, 0.0005450248718261719, 0.0216217041015625, -0.0228424072265625, -0.004642486572265625, 0.0198516845703125, -0.00536346435546875, 0.0258636474609375, 0.0247802734375, -0.0196380615234375, 0.0128631591796875, 0.0105133056640625, -0.01332855224609375, 0.036224365234375, -0.00466156005859375, 0.01129913330078125, 0.0340576171875, -0.03375244140625, -0.02130126953125, 0.0257568359375, 0.00946807861328125, -0.006744384765625, 0.0006122589111328125, 0.045135498046875, -0.040313720703125, -0.041412353515625, 0.0111846923828125, -0.020477294921875, -0.01450347900390625, -0.020263671875, 0.0028438568115234375, -0.0194244384765625, -0.034332275390625, -0.041961669921875, -0.00789642333984375, 0.02392578125, 0.022735595703125, -0.071533203125, 0.006595611572265625, 0.023101806640625, 0.044525146484375, -0.006534576416015625, 0.004741668701171875, -0.030303955078125, -0.00714111328125, -0.01250457763671875, -0.028045654296875, -0.057220458984375, 0.03253173828125, -0.04290771484375, -0.017303466796875, -0.018402099609375, -0.00838470458984375, -0.000335693359375, -0.0295867919921875, 0.01439666748046875, 0.02532958984375, 0.04827880859375, -0.05419921875, 0.0025119781494140625, -0.008209228515625, 0.03594970703125, -0.041290283203125, -0.0230865478515625, -0.0635986328125, 0.017822265625, 0.0146636962890625, -0.03277587890625, -0.0166168212890625, -0.050262451171875, -0.042572021484375, 0.06512451171875, 0.01312255859375, -0.01873779296875, -0.01103973388671875, 0.0009245872497558594, -0.020965576171875, 0.033416748046875, -0.0018091201782226562, -0.005046844482421875, -0.0202789306640625, 0.022186279296875, -0.00775146484375, 0.031158447265625, -0.000004589557647705078, -0.02471923828125, 0.0119476318359375, 0.0253753662109375, 0.030517578125, 0.004413604736328125, 0.004985809326171875, -0.024566650390625, 0.032135009765625, 0.0235595703125, -0.03271484375, 0.0113067626953125, 0.00861358642578125, 0.0091400146484375, 0.021026611328125, -0.008880615234375, -0.01910400390625, -0.047698974609375, -0.01441192626953125, 0.004306793212890625, 0.0028743743896484375, 0.0325927734375, 0.00003457069396972656, 0.003978729248046875, -0.02545166015625, -0.0089874267578125, 0.031005859375, -0.08148193359375, -0.0234222412109375, 0.029754638671875, -0.015869140625, 0.0307769775390625, -0.006580352783203125, -0.045684814453125, -0.0031490325927734375, -0.01324462890625, 0.034271240234375, -0.125, 0.05908203125, 0.0003917217254638672, -0.0237884521484375, -0.00200653076171875, -0.044769287109375, -0.00836944580078125, -0.01168060302734375, -0.0928955078125, 0.019561767578125, -0.005954742431640625, -0.042388916015625, 0.0265655517578125, -0.0086212158203125, 0.00904083251953125, -0.051116943359375, -0.0209808349609375, -0.025054931640625, 0.03265380859375, 0.002307891845703125, 0.0261077880859375, -0.0130157470703125, 0.044921875, 0.02362060546875, 0.1046142578125, -0.014923095703125, 0.049774169921875, 0.007030487060546875, 0.0194854736328125, 0.00091552734375, 0.01508331298828125, 0.034393310546875, -0.04119873046875, -0.0028781890869140625, -0.00531005859375, -0.0283966064453125, -0.07257080078125, 0.0296478271484375, 0.0004076957702636719, -0.0038814544677734375, 0.0284881591796875 ]
8a79682b3bd688dd8971400fe3d6561d3296b6ac
Wordpress Stackexchange Q: Do you need to escape hard coded plain text? I started playing with the Underscores starter theme and noticed it uses esc_html_e() even on plain text: <a class="skip-link" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ?></a> Is it any security risk not to escape it like so: <a class="skip-link" href="#content">Skip to content</a> ... or is it there just for the sake of translation? Thanks. A: The security risk here is not about the plain text but about translation. You should note that esc_html_e is not only a function for escaping HTML but also for localization (l10n). I.e. other people can translate this String but you don't know what the translation would be. It is possible that somebody translates the String and adds a link or some malicious HTML. Therefore it is better so escape HTML in this case.
Q: Do you need to escape hard coded plain text? I started playing with the Underscores starter theme and noticed it uses esc_html_e() even on plain text: <a class="skip-link" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ?></a> Is it any security risk not to escape it like so: <a class="skip-link" href="#content">Skip to content</a> ... or is it there just for the sake of translation? Thanks. A: The security risk here is not about the plain text but about translation. You should note that esc_html_e is not only a function for escaping HTML but also for localization (l10n). I.e. other people can translate this String but you don't know what the translation would be. It is possible that somebody translates the String and adds a link or some malicious HTML. Therefore it is better so escape HTML in this case.
wordpress
{ "language": "en", "length": 139, "provenance": "stackexchange_00019.jsonl.gz:462478", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215195" }
[ 0.04473876953125, -0.031707763671875, 0.03802490234375, 0.001239776611328125, -0.0017709732055664062, 0.0010623931884765625, 0.047149658203125, -0.02032470703125, 0.0103607177734375, 0.0055999755859375, 0.0095062255859375, 0.004413604736328125, 0.031585693359375, -0.0455322265625, 0.03936767578125, 0.0197906494140625, 0.004398345947265625, 0.01323699951171875, 0.0115814208984375, -0.0245361328125, 0.0065765380859375, -0.01334381103515625, 0.0098876953125, -0.040069580078125, 0.03125, -0.057403564453125, 0.08245849609375, -0.01343536376953125, 0.01317596435546875, -0.007049560546875, 0.018310546875, -0.0260009765625, 0.04058837890625, 0.0279388427734375, -0.07562255859375, 0.00501251220703125, -0.0919189453125, 0.050872802734375, -0.0183563232421875, -0.01045989990234375, 0.002361297607421875, -0.005062103271484375, 0.057098388671875, 0.037841796875, -0.00771331787109375, 0.0007028579711914062, 0.004161834716796875, -0.0300445556640625, 0.03143310546875, -0.0249481201171875, 0.036285400390625, -0.012664794921875, 0.03143310546875, -0.0234375, -0.0225830078125, 0.0267486572265625, -0.037017822265625, -0.00440216064453125, 0.0304718017578125, 0.0667724609375, 0.01666259765625, -0.0103607177734375, -0.022247314453125, -0.05133056640625, 0.00789642333984375, -0.034271240234375, 0.010498046875, 0.0294342041015625, -0.033935546875, 0.0027446746826171875, 0.044830322265625, -0.016021728515625, 0.034271240234375, -0.06573486328125, -0.00023889541625976562, 0.06976318359375, -0.05157470703125, 0.009796142578125, 0.03509521484375, -0.0443115234375, -0.00970458984375, 0.0106048583984375, -0.007312774658203125, -0.074951171875, 0.023956298828125, -0.050628662109375, -0.0256805419921875, 0.0142822265625, 0.012298583984375, 0.013824462890625, 0.00630950927734375, 0.0426025390625, 0.0367431640625, -0.0225677490234375, -0.0171966552734375, -0.0518798828125, 0.00919342041015625, 0.05419921875, -0.0295257568359375, -0.005695343017578125, 0.03369140625, -0.0457763671875, 0.048248291015625, -0.0548095703125, -0.0182952880859375, 0.04412841796875, -0.0006418228149414062, -0.00695037841796875, 0.026123046875, 0.0190887451171875, 0.009552001953125, 0.00971221923828125, -0.02215576171875, -0.04913330078125, -0.0130767822265625, 0.05194091796875, -0.031494140625, 0.0194244384765625, 0.0262298583984375, 0.043975830078125, 0.0166778564453125, 0.040191650390625, -0.025482177734375, -0.0305938720703125, 0.0175018310546875, -0.007549285888671875, -0.014007568359375, -0.01033782958984375, 0.0206298828125, 0.0239715576171875, -0.0283050537109375, -0.00778961181640625, 0.0190277099609375, -0.0018491744995117188, -0.002849578857421875, -0.030181884765625, 0.003116607666015625, -0.0144500732421875, 0.00402069091796875, 0.013458251953125, 0.0005755424499511719, -0.04901123046875, -0.0036716461181640625, -0.0018587112426757812, -0.0232086181640625, 0.0328369140625, 0.01776123046875, -0.006443023681640625, -0.0196685791015625, -0.054718017578125, 0.004886627197265625, -0.040130615234375, 0.06951904296875, -0.0273284912109375, -0.07861328125, -0.0413818359375, -0.0240631103515625, -0.031280517578125, -0.03564453125, -0.0509033203125, -0.032562255859375, -0.02593994140625, 0.025115966796875, -0.004802703857421875, -0.0189208984375, 0.0325927734375, -0.012420654296875, 0.01151275634765625, 0.015869140625, 0.0191802978515625, -0.01708984375, -0.02978515625, -0.0184478759765625, 0.015045166015625, 0.0036754608154296875, 0.04571533203125, -0.0241851806640625, 0.05230712890625, 0.0178680419921875, 0.0364990234375, 0.030853271484375, -0.0224456787109375, 0.07342529296875, -0.002391815185546875, -0.060760498046875, 0.0176239013671875, 0.0164031982421875, 0.08404541015625, 0.0198211669921875, 0.01436614990234375, 0.019134521484375, -0.02325439453125, -0.022796630859375, 0.0107574462890625, 0.00432586669921875, -0.0271759033203125, -0.0292816162109375, -0.0302886962890625, -0.00921630859375, 0.007843017578125, 0.08001708984375, -0.0692138671875, 0.0714111328125, -0.01338958740234375, -0.00025463104248046875, -0.0186920166015625, -0.00864410400390625, -0.0081787109375, 0.0115966796875, 0.032318115234375, 0.0226593017578125, 0.01122283935546875, -0.0283355712890625, 0.002399444580078125, 0.0009946823120117188, -0.0147705078125, -0.020263671875, 0.057159423828125, -0.0107879638671875, 0.0292510986328125, 0.0101318359375, -0.0479736328125, 0.0146636962890625, 0.037628173828125, 0.01392364501953125, -0.0185394287109375, -0.0081787109375, -0.0171966552734375, 0.0192413330078125, -0.00395965576171875, 0.0286102294921875, 0.00756072998046875, 0.09619140625, 0.040863037109375, -0.037811279296875, 0.01157379150390625, 0.00922393798828125, -0.0226898193359375, -0.032501220703125, 0.053466796875, 0.0714111328125, 0.08258056640625, 0.00244903564453125, -0.09765625, 0.0570068359375, -0.078125, 0.0372314453125, -0.0970458984375, -0.033477783203125, 0.005626678466796875, 0.01129913330078125, -0.008880615234375, -0.000988006591796875, -0.070556640625, -0.0208587646484375, 0.0195159912109375, -0.00959014892578125, -0.02197265625, -0.013275146484375, 0.020965576171875, 0.00415802001953125, 0.0029659271240234375, -0.004138946533203125, 0.00634002685546875, 0.011260986328125, 0.0099639892578125, 0.00685882568359375, 0.0006079673767089844, -0.0097808837890625, 0.00304412841796875, 0.023956298828125, -0.010162353515625, -0.0228271484375, 0.047271728515625, 0.054595947265625, 0.0219879150390625, -0.0169525146484375, -0.0164642333984375, -0.0242919921875, 0.03485107421875, 0.00583648681640625, 0.04461669921875, 0.0204010009765625, -0.0245819091796875, -0.01446533203125, -0.021392822265625, 0.006603240966796875, -0.0179901123046875, 0.03875732421875, -0.0062408447265625, 0.0196533203125, 0.0211029052734375, -0.0273590087890625, 0.060821533203125, -0.0200958251953125, -0.0298004150390625, 0.0151519775390625, 0.003444671630859375, 0.00867462158203125, -0.01480865478515625, 0.029632568359375, 0.0408935546875, -0.01387786865234375, -0.00514984130859375, -0.0109100341796875, 0.0249481201171875, -0.033172607421875, -0.0012712478637695312, -0.031829833984375, -0.01702880859375, -0.079345703125, -0.0399169921875, 0.01806640625, 0.0263671875, -0.039215087890625, -0.034149169921875, -0.046417236328125, -0.0004317760467529297, -0.0726318359375, -0.044952392578125, 0.05389404296875, -0.01513671875, -0.032867431640625, 0.003986358642578125, -0.01537322998046875, -0.019073486328125, 0.015594482421875, -0.032806396484375, -0.0273284912109375, -0.01322174072265625, -0.0340576171875, -0.0472412109375, -0.04486083984375, 0.022979736328125, -0.005565643310546875, 0.01448822021484375, 0.0187530517578125, 0.00598907470703125, -0.01029205322265625, -0.0173797607421875, 0.01213836669921875, -0.006160736083984375, -0.01087188720703125, 0.00679779052734375, -0.061126708984375, -0.00931549072265625, -0.027801513671875, -0.00289154052734375, -0.0174560546875, -0.05181884765625, 0.0546875, -0.013916015625, 0.0269927978515625, -0.0007171630859375, 0.016632080078125, -0.00859832763671875, -0.01384735107421875, 0.0114898681640625, -0.003002166748046875, -0.0450439453125, -0.0178070068359375, -0.00957489013671875, -0.034149169921875, -0.0098419189453125, 0.0205078125, 0.00887298583984375, -0.016815185546875, 0.0031566619873046875, -0.0031223297119140625, 0.0195465087890625, 0.028228759765625, 0.007358551025390625, -0.0396728515625, -0.024261474609375, -0.036956787109375, 0.0010118484497070312, 0.011749267578125, -0.027801513671875, 0.01149749755859375, 0.01229095458984375, -0.0176849365234375, -0.0188140869140625, 0.019775390625, -0.001407623291015625, -0.0262298583984375, 0.0570068359375, 0.0014619827270507812, 0.048980712890625, -0.030364990234375, -0.051666259765625, -0.0171356201171875, 0.08197021484375, -0.02691650390625, -0.01016998291015625, 0.001708984375, 0.005809783935546875, -0.01451873779296875, -0.0015115737915039062, -0.031829833984375, -0.00299072265625, -0.0082550048828125, 0.00662994384765625, 0.00360870361328125, -0.0194091796875, -0.01042938232421875, -0.0221405029296875, -0.0017786026000976562, 0.006389617919921875, 0.0208282470703125, 0.0269775390625, 0.0102386474609375, -0.0235137939453125, 0.0234527587890625, -0.042694091796875, 0.011199951171875, 0.0009975433349609375, -0.06292724609375, -0.007678985595703125, -0.019561767578125, 0.033355712890625, 0.01558685302734375, -0.0172576904296875, -0.041473388671875, 0.0294189453125, -0.003414154052734375, -0.00017774105072021484, 0.0153045654296875, 0.019775390625, 0.0069122314453125, 0.05438232421875, 0.0234527587890625, 0.0002522468566894531, 0.025543212890625, 0.0369873046875, -0.051971435546875, 0.016510009765625, 0.0008807182312011719, -0.0445556640625, 0.08013916015625, -0.07354736328125, -0.086669921875, -0.04327392578125, 0.0003209114074707031, -0.0177154541015625, 0.016754150390625, -0.018157958984375, -0.02081298828125, -0.042449951171875, 0.039093017578125, 0.03753662109375, -0.0233612060546875, -0.01812744140625, 0.019439697265625, 0.01739501953125, -0.03759765625, 0.025909423828125, -0.0119171142578125, 0.0212554931640625, -0.039794921875, 0.062286376953125, 0.018341064453125, -0.0223388671875, 0.08251953125, -0.0130462646484375, 0.06549072265625, -0.05914306640625, 0.022369384765625, -0.0203094482421875, 0.024505615234375, 0.002567291259765625, -0.0007658004760742188, 0.0166168212890625, 0.07452392578125, 0.03448486328125, -0.00911712646484375, 0.055267333984375, -0.01091766357421875, -0.0207977294921875, -0.046661376953125, 0.0038433074951171875, -0.0011358261108398438, -0.010986328125, 0.06402587890625, -0.00605010986328125, 0.04107666015625, -0.0026226043701171875, -0.00792694091796875, 0.036285400390625, 0.0033283233642578125, 0.01203155517578125, 0.0013828277587890625, -0.0172119140625, 0.023345947265625, 0.00759124755859375, -0.018707275390625, 0.00411224365234375, -0.0004622936248779297, 0.040374755859375, -0.00023889541625976562, -0.0238037109375, -0.037353515625, 0.0186004638671875, -0.0097808837890625, -0.005092620849609375, 0.049072265625, -0.01824951171875, -0.034393310546875, 0.0014829635620117188, 0.035675048828125, 0.03656005859375, -0.0098114013671875, 0.00293731689453125, 0.01537322998046875, -0.00335693359375, -0.01288604736328125, 0.037200927734375, -0.02740478515625, -0.021270751953125, -0.0010328292846679688, -0.005706787109375, 0.018341064453125, 0.017059326171875, 0.026336669921875, 0.01258087158203125, -0.034423828125, 0.0248565673828125, -0.002445220947265625, 0.0240325927734375, -0.032470703125, -0.04888916015625, 0.06744384765625, 0.05743408203125, -0.062255859375, -0.0193023681640625, -0.01354217529296875, -0.005138397216796875, -0.0028553009033203125, 0.033721923828125, -0.00695037841796875, -0.005313873291015625, -0.04937744140625, -0.031890869140625, 0.057952880859375, 0.006168365478515625, -0.0117034912109375, 0.01554107666015625, -0.0435791015625, 0.002727508544921875, -0.0175018310546875, -0.018829345703125, -0.01306915283203125, 0.0012273788452148438, 0.06494140625, -0.00457763671875, -0.0249481201171875, -0.033538818359375, 0.005390167236328125, -0.03900146484375, -0.005157470703125, 0.0865478515625, 0.007144927978515625, 0.0311737060546875, -0.0278778076171875, -0.018829345703125, -0.0084686279296875, -0.00937652587890625, 0.048187255859375, 0.00487518310546875, -0.04315185546875, 0.00965118408203125, -0.054443359375, -0.008148193359375, -0.04803466796875, -0.050628662109375, -0.05438232421875, 0.0193939208984375, -0.004276275634765625, 0.0127716064453125, -0.0196685791015625, -0.0153961181640625, 0.01287078857421875, 0.042572021484375, 0.01837158203125, 0.06817626953125, -0.042816162109375, 0.029541015625, 0.03271484375, 0.01263427734375, 0.007465362548828125, 0.033111572265625, 0.06915283203125, -0.041290283203125, -0.019622802734375, -0.0012149810791015625, 0.026947021484375, -0.01367950439453125, 0.03729248046875, 0.01554107666015625, 0.051605224609375, 0.0204315185546875, 0.03887939453125, 0.0009641647338867188, 0.0070037841796875, -0.00823211669921875, -0.0162811279296875, -0.01397705078125, 0.0305633544921875, 0.032562255859375, -0.0288238525390625, 0.0011262893676757812, 0.0034961700439453125, 0.02581787109375, 0.02838134765625, -0.01605224609375, 0.00927734375, 0.02587890625, -0.01100921630859375, 0.029541015625, 0.0653076171875, -0.03570556640625, 0.0192413330078125, 0.0274658203125, -0.028656005859375, 0.021240234375, -0.03277587890625, -0.0020160675048828125, 0.0162811279296875, 0.005886077880859375, -0.031158447265625, -0.0008420944213867188, -0.007625579833984375, -0.0117034912109375, 0.036041259765625, 0.044677734375, 0.0845947265625, -0.05877685546875, 0.00577545166015625, 0.041290283203125, -0.0438232421875, -0.01129150390625, 0.0186004638671875, -0.03076171875, -0.06329345703125, 0.035308837890625, -0.072265625, -0.0120849609375, -0.0048065185546875, -0.0418701171875, -0.0243377685546875, -0.026123046875, 0.0201416015625, 0.01549530029296875, -0.047607421875, 0.0284271240234375, 0.01055145263671875, -0.0161285400390625, -0.021148681640625, 0.00020396709442138672, -0.00862884521484375, -0.049285888671875, -0.06298828125, -0.0275421142578125, -0.0030059814453125, -0.0206298828125, -0.0164947509765625, 0.019775390625, 0.03338623046875, 0.03955078125, -0.0090484619140625, 0.00391387939453125, -0.0033206939697265625, 0.0285491943359375, 0.0258331298828125, 0.0188446044921875, 0.0137786865234375, -0.005268096923828125, 0.01026153564453125, 0.0030040740966796875, -0.017486572265625, 0.00605010986328125, -0.025146484375, -0.024261474609375, 0.038482666015625, 0.0322265625, -0.04156494140625, 0.0073394775390625, 0.02923583984375, -0.014892578125, -0.0030460357666015625, -0.0167236328125, -0.0282135009765625, 0.0012874603271484375, -0.030853271484375, -0.033935546875, 0.02630615234375, -0.033355712890625, -0.061309814453125, 0.040008544921875, 0.033477783203125, 0.00627899169921875, -0.00527191162109375, 0.01102447509765625, -0.053375244140625, -0.029632568359375, -0.0117950439453125, 0.005657196044921875, 0.001895904541015625, 0.031463623046875, -0.018646240234375, -0.00258636474609375, 0.026611328125, 0.033477783203125, -0.0213623046875, -0.01471710205078125, 0.0010862350463867188, 0.029388427734375, 0.03765869140625, -0.01334381103515625, -0.020111083984375, 0.026763916015625, -0.001911163330078125, 0.03045654296875, 0.0295867919921875, -0.037567138671875, 0.0179443359375, -0.02532958984375, -0.0148773193359375, 0.0352783203125, 0.005889892578125, -0.00859832763671875, 0.01690673828125, 0.024688720703125, -0.0300445556640625, 0.027435302734375, -0.00595855712890625, 0.03179931640625, -0.051483154296875, 0.040191650390625, 0.0099334716796875, -0.0731201171875, -0.01477813720703125, -0.053253173828125, 0.03564453125, 0.03045654296875, 0.035614013671875, 0.0343017578125, 0.008453369140625, 0.042572021484375, -0.003528594970703125, 0.011199951171875, -0.000006616115570068359, 0.0219573974609375, 0.00849151611328125, 0.007122039794921875, 0.0285491943359375, -0.0286712646484375, -0.025421142578125, 0.0340576171875, 0.0291900634765625, -0.00047016143798828125, 0.005977630615234375, 0.006916046142578125, 0.024627685546875, 0.0030384063720703125, -0.048248291015625, 0.014495849609375, 0.004913330078125, -0.0010042190551757812, -0.0416259765625, -0.01352691650390625, 0.0389404296875, -0.0164642333984375, 0.002521514892578125, -0.00417327880859375, 0.00202178955078125, -0.00949859619140625, -0.03533935546875, 0.006183624267578125, -0.004581451416015625, 0.0094757080078125, 0.022491455078125, 0.01104736328125, 0.032562255859375, 0.005939483642578125, -0.0146484375, 0.01611328125, -0.01410675048828125, 0.031524658203125, 0.027069091796875, 0.03643798828125, -0.022552490234375, 0.0011310577392578125, 0.0237884521484375, 0.0166168212890625, 0.06768798828125, 0.0465087890625, -0.00879669189453125, -0.00788116455078125, -0.03515625, -0.0313720703125, 0.054901123046875, -0.047607421875, 0.061737060546875, 0.00363922119140625, 0.0128173828125, -0.0482177734375, 0.01079559326171875, 0.0606689453125, 0.0003662109375, 0.00878143310546875, 0.00476837158203125, -0.037200927734375, -0.03216552734375, -0.0108795166015625, 0.028656005859375, 0.002208709716796875, -0.0372314453125, -0.0076446533203125, 0.030059814453125, -0.03436279296875, 0.02703857421875, 0.049835205078125, -0.007556915283203125, 0.01192474365234375, 0.01311492919921875, -0.01114654541015625, 0.032073974609375, 0.007167816162109375, -0.0230712890625, 0.0096435546875, 0.04583740234375, -0.006328582763671875, 0.005870819091796875, -0.00001138448715209961, -0.0008273124694824219, 0.0377197265625, 0.018890380859375, 0.0655517578125, -0.03558349609375, 0.04010009765625, 0.036865234375, 0.01123809814453125, 0.013275146484375, 0.041778564453125, 0.02227783203125, 0.016265869140625, 0.0303497314453125, -0.040618896484375, -0.06549072265625, 0.053070068359375, 0.00609588623046875, -0.00623321533203125, 0.0312042236328125, 0.028594970703125, -0.0044097900390625, -0.00292205810546875, 0.03070068359375, -0.0274200439453125, -0.037200927734375, -0.0166168212890625, 0.01265716552734375, 0.0091552734375, 0.02783203125, 0.02862548828125, 0.0158538818359375, 0.01239013671875, -0.0231170654296875, 0.01091766357421875, -0.02239990234375, -0.004840850830078125, 0.0110015869140625, 0.05194091796875, 0.0255126953125, 0.0430908203125, -0.00640869140625, -0.0031642913818359375, 0.0247650146484375, -0.025421142578125, 0.021697998046875, -0.03594970703125, -0.03387451171875, 0.035736083984375, 0.04107666015625, -0.0194244384765625, 0.0252227783203125, 0.03192138671875, -0.0241241455078125, 0.0245819091796875, 0.0367431640625, 0.00557708740234375, -0.006961822509765625, -0.034698486328125, -0.01136016845703125, -0.01007843017578125, -0.054779052734375, -0.024444580078125, -0.0416259765625, 0.006542205810546875, 0.00594329833984375, -0.00022220611572265625, -0.03619384765625, 0.0135955810546875, -0.00875091552734375, -0.0075836181640625, 0.04638671875, -0.041107177734375, -0.0213165283203125, -0.061767578125, -0.0523681640625, -0.0394287109375, 0.06378173828125, -0.0396728515625, 0.0169525146484375, 0.046142578125, -0.00846099853515625, 0.0013360977172851562, -0.0177001953125, -0.019989013671875, 0.046295166015625, -0.0228729248046875, -0.00725555419921875, -0.01363372802734375, 0.04681396484375, -0.0300140380859375, -0.055816650390625, 0.004669189453125, -0.0440673828125, 0.0164794921875, 0.018463134765625, -0.00543212890625, 0.01241302490234375, -0.03265380859375, -0.0631103515625, 0.0546875, 0.0023059844970703125, -0.0272369384765625, 0.0178375244140625, -0.003452301025390625, -0.036163330078125, 0.01373291015625, 0.011322021484375, -0.0308074951171875, 0.005283355712890625, 0.01187896728515625, 0.0265960693359375, -0.00957489013671875, 0.08013916015625, 0.00337982177734375, -0.04180908203125, -0.01275634765625, -0.0338134765625, 0.0011138916015625, -0.00589752197265625, -0.00762939453125, 0.0634765625, 0.059173583984375, -0.0223236083984375, 0.0299835205078125, -0.0038814544677734375, -0.01171875, -0.0301361083984375, -0.0556640625, 0.01434326171875, 0.01320648193359375, 0.085693359375, 0.0233154296875, 0.004001617431640625, -0.053253173828125, -0.024627685546875, -0.004703521728515625, 0.050201416015625, -0.0271148681640625, 0.0006847381591796875, -0.09112548828125, -0.059295654296875, 0.001499176025390625, -0.01141357421875, 0.032012939453125, -0.036956787109375, -0.0178680419921875, 0.006923675537109375, 0.0043487548828125, 0.008697509765625, -0.0129547119140625, -0.0181121826171875, 0.0750732421875, -0.03509521484375, 0.0256195068359375, -0.000156402587890625, 0.0178680419921875, 0.05816650390625, 0.01204681396484375, 0.0151519775390625, -0.0031585693359375, 0.018157958984375, -0.0091705322265625, 0.039306640625, 0.0013513565063476562, 0.039031982421875, -0.03363037109375, -0.017547607421875, 0.0252227783203125, 0.01050567626953125, 0.046844482421875, -0.02410888671875, 0.034515380859375, 0.0205078125, 0.03887939453125, -0.0513916015625, 0.0452880859375, -0.0020389556884765625, -0.0025577545166015625, -0.052215576171875, 0.044281005859375, 0.020751953125, -0.0201263427734375, 0.034210205078125, -0.045013427734375, 0.010711669921875, 0.029571533203125, -0.04315185546875, -0.041259765625, -0.034210205078125, 0.0011386871337890625 ]
1357a650ea448492ee65d2bff907c00c417c15d9
Wordpress Stackexchange Q: WP auto redirects after url change? I noticed that WordPress automatically redirects the old to the new page after I made changes to the old url. Are these changes permanent or is it better to add a redirect in the htaccess as well? A: Well define "better" ;) If you do the redirect in the htaccess file the advantage is that it will kick in slightly faster as PHP and WordPress is never bothered and the redirect happens right from the server. But practically on an average site this won't really make a noticeable difference. Anyway as long as WordPress isn't changed in future (which is very unlikely to happen in this particular case) this is permanent. So I'd say keep it simple and stick with the default WP behaviour.
Q: WP auto redirects after url change? I noticed that WordPress automatically redirects the old to the new page after I made changes to the old url. Are these changes permanent or is it better to add a redirect in the htaccess as well? A: Well define "better" ;) If you do the redirect in the htaccess file the advantage is that it will kick in slightly faster as PHP and WordPress is never bothered and the redirect happens right from the server. But practically on an average site this won't really make a noticeable difference. Anyway as long as WordPress isn't changed in future (which is very unlikely to happen in this particular case) this is permanent. So I'd say keep it simple and stick with the default WP behaviour.
wordpress
{ "language": "en", "length": 131, "provenance": "stackexchange_00019.jsonl.gz:462483", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215206" }
[ 0.07513427734375, 0.00795745849609375, 0.023895263671875, -0.0161285400390625, 0.016143798828125, -0.035858154296875, 0.06005859375, -0.044097900390625, -0.0079498291015625, 0.0200347900390625, 0.00240325927734375, 0.0017547607421875, 0.00916290283203125, -0.04193115234375, 0.031585693359375, -0.01265716552734375, 0.0264434814453125, -0.044342041015625, 0.00986480712890625, -0.005771636962890625, 0.00994873046875, 0.013702392578125, 0.021484375, 0.0287017822265625, -0.0023097991943359375, -0.01483154296875, 0.09539794921875, -0.03411865234375, 0.00949859619140625, -0.0274200439453125, 0.0272064208984375, -0.004520416259765625, 0.007099151611328125, 0.05560302734375, -0.045684814453125, -0.04205322265625, 0.00855255126953125, 0.01256561279296875, 0.005779266357421875, 0.02471923828125, 0.029022216796875, -0.00984954833984375, 0.037109375, -0.030029296875, 0.0202789306640625, -0.0305328369140625, 0.022125244140625, -0.049896240234375, -0.005767822265625, -0.01253509521484375, 0.0119476318359375, 0.0033779144287109375, 0.025909423828125, -0.01070404052734375, -0.0106964111328125, -0.003322601318359375, -0.0146484375, 0.0228729248046875, 0.023406982421875, -0.050140380859375, -0.0262603759765625, -0.01207733154296875, 0.0309295654296875, 0.019744873046875, -0.030029296875, 0.0042877197265625, -0.0276947021484375, 0.02801513671875, -0.0726318359375, -0.0594482421875, 0.0274658203125, -0.04296875, -0.04052734375, -0.004520416259765625, 0.01129913330078125, -0.008941650390625, 0.0106353759765625, -0.01526641845703125, -0.005466461181640625, 0.063720703125, 0.008880615234375, -0.02301025390625, 0.0171966552734375, -0.06610107421875, 0.05419921875, -0.0270538330078125, -0.005146026611328125, 0.0036411285400390625, -0.038665771484375, -0.05780029296875, -0.03887939453125, -0.0250091552734375, -0.044403076171875, -0.020782470703125, -0.03875732421875, -0.0190277099609375, 0.00589752197265625, 0.04095458984375, 0.008087158203125, 0.0293731689453125, -0.0164947509765625, -0.0156402587890625, 0.0092010498046875, -0.035736083984375, -0.00794219970703125, 0.022491455078125, 0.0234832763671875, 0.03997802734375, 0.0325927734375, 0.0159454345703125, -0.0021305084228515625, 0.0294647216796875, -0.0116119384765625, -0.008331298828125, -0.0215301513671875, 0.0231475830078125, -0.0306549072265625, 0.0157623291015625, -0.01424407958984375, 0.0296630859375, -0.0225677490234375, 0.024139404296875, 0.0127105712890625, -0.01090240478515625, -0.0085296630859375, -0.01458740234375, 0.015716552734375, -0.040283203125, -0.021575927734375, -0.0018453598022460938, -0.0243072509765625, 0.0177001953125, 0.03656005859375, 0.042999267578125, -0.000751495361328125, -0.0156402587890625, 0.05755615234375, -0.0294189453125, 0.0009489059448242188, 0.056182861328125, -0.027099609375, -0.07147216796875, -0.030792236328125, -0.0056610107421875, 0.034759521484375, 0.027313232421875, 0.0103302001953125, 0.022125244140625, 0.004638671875, -0.06524658203125, 0.06634521484375, -0.03643798828125, 0.04656982421875, -0.0230865478515625, 0.022308349609375, -0.055908203125, 0.0170745849609375, -0.025726318359375, 0.0169830322265625, -0.0175933837890625, 0.0182037353515625, -0.00899505615234375, 0.00765228271484375, -0.027801513671875, -0.06378173828125, 0.0009603500366210938, -0.055633544921875, -0.0222015380859375, 0.033355712890625, 0.0098419189453125, 0.033294677734375, -0.013458251953125, -0.0011491775512695312, 0.001262664794921875, -0.0009527206420898438, 0.0065460205078125, -0.0035953521728515625, 0.03216552734375, 0.013458251953125, 0.07427978515625, 0.03900146484375, -0.0156707763671875, 0.043670654296875, 0.0165863037109375, -0.0615234375, 0.0838623046875, -0.0265350341796875, 0.07244873046875, 0.0222625732421875, 0.00014197826385498047, -0.01110076904296875, 0.0217437744140625, -0.037506103515625, 0.047332763671875, -0.0138397216796875, -0.024810791015625, -0.00106048583984375, 0.00905609130859375, -0.0096588134765625, -0.025909423828125, -0.0062408447265625, 0.022125244140625, -0.045745849609375, 0.01229095458984375, -0.05670166015625, 0.0019626617431640625, -0.021820068359375, 0.025390625, 0.04669189453125, 0.01763916015625, -0.0181121826171875, -0.01043701171875, 0.0132598876953125, -0.034759521484375, -0.042694091796875, 0.0210418701171875, -0.0145721435546875, 0.033355712890625, 0.00658416748046875, 0.018585205078125, -0.01280975341796875, -0.0022106170654296875, -0.01404571533203125, -0.0396728515625, 0.019683837890625, -0.05322265625, -0.01340484619140625, -0.056671142578125, -0.053924560546875, -0.0156707763671875, -0.07086181640625, 0.096435546875, -0.001262664794921875, -0.021728515625, -0.059417724609375, -0.0218505859375, -0.038116455078125, -0.06427001953125, 0.0133056640625, 0.0760498046875, 0.0228271484375, -0.0138397216796875, -0.00433349609375, 0.050384521484375, -0.0224151611328125, -0.0279693603515625, 0.01934814453125, 0.0174102783203125, 0.01093292236328125, 0.0247955322265625, 0.008514404296875, -0.038818359375, 0.019805908203125, -0.06011962890625, -0.0265045166015625, 0.037353515625, -0.02105712890625, 0.006633758544921875, -0.0374755859375, -0.0007243156433105469, 0.003887176513671875, -0.038238525390625, -0.0160369873046875, -0.0161895751953125, -0.001972198486328125, -0.0062103271484375, -0.001834869384765625, -0.0020599365234375, -0.0141448974609375, -0.016204833984375, 0.0281982421875, -0.024993896484375, 0.007076263427734375, 0.0260009765625, 0.04254150390625, -0.039215087890625, -0.00939178466796875, -0.01543426513671875, 0.0195465087890625, 0.003997802734375, -0.033172607421875, -0.01099395751953125, -0.03363037109375, -0.0118408203125, 0.01056671142578125, -0.02435302734375, -0.006748199462890625, -0.025970458984375, 0.0384521484375, 0.0009217262268066406, 0.03924560546875, -0.00432586669921875, -0.0265960693359375, 0.031341552734375, 0.005298614501953125, -0.050506591796875, 0.02764892578125, -0.020050048828125, 0.01346588134765625, -0.0201416015625, 0.03814697265625, 0.05792236328125, -0.016815185546875, 0.0282135009765625, 0.0000022649765014648438, 0.033477783203125, 0.01104736328125, -0.01497650146484375, -0.0235595703125, 0.031951904296875, -0.112060546875, -0.06280517578125, 0.0277252197265625, 0.0232086181640625, -0.007293701171875, -0.02423095703125, -0.00860595703125, 0.021209716796875, -0.059356689453125, -0.05242919921875, -0.068603515625, -0.03997802734375, -0.005527496337890625, 0.016754150390625, -0.00691986083984375, 0.0133209228515625, 0.0274658203125, 0.0095977783203125, 0.01373291015625, -0.0220947265625, -0.06646728515625, -0.062469482421875, -0.078125, -0.0406494140625, -0.0077972412109375, -0.000002384185791015625, 0.004550933837890625, -0.006198883056640625, -0.001285552978515625, -0.03253173828125, -0.015716552734375, 0.035858154296875, -0.0012407302856445312, -0.0279388427734375, 0.011688232421875, -0.0364990234375, 0.0171966552734375, -0.006542205810546875, 0.08160400390625, 0.0252838134765625, -0.0074462890625, 0.000015974044799804688, -0.024383544921875, 0.0018758773803710938, -0.0017194747924804688, -0.050750732421875, 0.019989013671875, -0.0005297660827636719, -0.0293426513671875, -0.039031982421875, -0.006290435791015625, 0.011566162109375, -0.0219879150390625, -0.0181427001953125, 0.01122283935546875, -0.0249176025390625, -0.0006170272827148438, -0.019073486328125, -0.00720977783203125, 0.00992584228515625, -0.00952911376953125, -0.024810791015625, 0.049072265625, -0.00795745849609375, -0.01143646240234375, -0.0255279541015625, 0.032501220703125, -0.01093292236328125, 0.01343536376953125, -0.0015306472778320312, 0.0212554931640625, 0.00540924072265625, -0.007152557373046875, -0.053985595703125, -0.0830078125, 0.0222015380859375, -0.07012939453125, -0.0241851806640625, -0.021942138671875, 0.0084991455078125, 0.039154052734375, 0.09228515625, -0.0274658203125, 0.0016956329345703125, -0.006038665771484375, 0.01373291015625, -0.0133209228515625, -0.04522705078125, -0.04052734375, -0.01103973388671875, -0.078125, 0.01192474365234375, -0.00909423828125, 0.0034809112548828125, -0.043670654296875, 0.04742431640625, -0.04168701171875, -0.04119873046875, 0.027130126953125, -0.02801513671875, 0.0196990966796875, 0.0166778564453125, 0.0084228515625, -0.0200958251953125, 0.006092071533203125, -0.0477294921875, -0.0484619140625, -0.0027523040771484375, -0.004734039306640625, 0.02935791015625, 0.018798828125, -0.0216522216796875, 0.012603759765625, 0.03118896484375, 0.0162353515625, 0.037322998046875, -0.0088348388671875, -0.0201873779296875, -0.0139617919921875, 0.035491943359375, 0.005527496337890625, 0.0013332366943359375, -0.0026416778564453125, -0.04644775390625, -0.051300048828125, -0.0189971923828125, -0.0218505859375, 0.039886474609375, 0.006832122802734375, -0.0181732177734375, -0.0517578125, -0.016937255859375, -0.014678955078125, 0.0214080810546875, -0.0259552001953125, 0.007190704345703125, -0.0212860107421875, -0.06500244140625, 0.03302001953125, -0.01145172119140625, -0.00814056396484375, -0.0007233619689941406, 0.06103515625, 0.0240936279296875, -0.0168304443359375, 0.0228118896484375, 0.0218658447265625, 0.025787353515625, 0.01346588134765625, 0.0217742919921875, -0.021209716796875, -0.002285003662109375, 0.033905029296875, -0.00925445556640625, -0.00879669189453125, -0.009124755859375, 0.034210205078125, 0.00502777099609375, -0.01245880126953125, 0.00435638427734375, -0.036865234375, 0.00870513916015625, 0.055755615234375, -0.0033359527587890625, -0.012542724609375, 0.0012540817260742188, 0.02105712890625, -0.0195770263671875, -0.0142974853515625, -0.037506103515625, -0.04913330078125, 0.0099945068359375, 0.058868408203125, -0.002902984619140625, 0.00811004638671875, -0.00267791748046875, 0.01323699951171875, 0.0013093948364257812, 0.004467010498046875, -0.0257568359375, -0.03082275390625, -0.0108642578125, 0.0328369140625, -0.03082275390625, -0.000009417533874511719, -0.002620697021484375, -0.008148193359375, 0.0657958984375, 0.00946807861328125, -0.02490234375, -0.00966644287109375, -0.0345458984375, -0.03753662109375, 0.01371002197265625, -0.0199432373046875, 0.04864501953125, 0.0251312255859375, -0.03759765625, -0.0145263671875, -0.02117919921875, -0.04010009765625, -0.07696533203125, 0.03070068359375, -0.00046253204345703125, -0.0012054443359375, 0.0443115234375, 0.0234832763671875, 0.03826904296875, 0.0260772705078125, -0.0247039794921875, -0.0007200241088867188, 0.032684326171875, 0.01479339599609375, -0.0006833076477050781, 0.05316162109375, 0.003009796142578125, -0.0124969482421875, 0.050933837890625, -0.055023193359375, -0.03216552734375, 0.050140380859375, 0.07049560546875, 0.0019588470458984375, -0.011444091796875, 0.002178192138671875, -0.0113067626953125, -0.00036334991455078125, 0.03472900390625, 0.0201568603515625, -0.040069580078125, -0.009979248046875, 0.0273590087890625, 0.0267791748046875, -0.004730224609375, -0.0300445556640625, 0.0096588134765625, -0.036376953125, 0.01824951171875, -0.00238800048828125, -0.0030689239501953125, -0.016998291015625, -0.0269317626953125, -0.0272979736328125, -0.04278564453125, -0.00893402099609375, -0.0212860107421875, 0.006549835205078125, -0.027130126953125, -0.01216888427734375, 0.042327880859375, -0.02508544921875, 0.041839599609375, -0.0166473388671875, -0.02880859375, 0.01666259765625, 0.01139068603515625, 0.047271728515625, 0.00807952880859375, -0.06396484375, -0.01470184326171875, -0.057586669921875, -0.0236663818359375, -0.014312744140625, -0.0080413818359375, -0.0255126953125, 0.00860595703125, 0.0270233154296875, 0.015625, -0.0032253265380859375, -0.019561767578125, -0.02392578125, 0.01078033447265625, 0.0220184326171875, 0.003215789794921875, -0.006534576416015625, 0.020355224609375, -0.020233154296875, 0.053009033203125, -0.011688232421875, -0.011077880859375, -0.0074005126953125, -0.0181121826171875, 0.0205230712890625, -0.0021686553955078125, -0.03515625, -0.039520263671875, -0.013214111328125, -0.0013570785522460938, 0.044921875, -0.020843505859375, 0.016021728515625, -0.0104522705078125, -0.00202178955078125, -0.0302581787109375, -0.0098876953125, -0.031524658203125, 0.0220184326171875, -0.01166534423828125, 0.034881591796875, 0.0247955322265625, -0.023345947265625, -0.048919677734375, -0.00659942626953125, 0.040863037109375, -0.006023406982421875, -0.016937255859375, -0.04022216796875, 0.045257568359375, 0.06390380859375, 0.0005025863647460938, 0.047454833984375, 0.02874755859375, 0.024169921875, 0.0513916015625, -0.00868988037109375, 0.0003643035888671875, 0.01453399658203125, 0.031768798828125, -0.0020809173583984375, 0.0010404586791992188, 0.01812744140625, -0.0056915283203125, -0.00139617919921875, 0.07684326171875, 0.034027099609375, -0.1077880859375, 0.0025959014892578125, -0.00981903076171875, -0.01030731201171875, 0.016265869140625, -0.005237579345703125, -0.016754150390625, -0.0008859634399414062, 0.00031304359436035156, -0.02703857421875, -0.043365478515625, -0.01812744140625, 0.0282135009765625, 0.0019702911376953125, -0.00274658203125, 0.057952880859375, 0.01123809814453125, -0.05242919921875, -0.007678985595703125, 0.022064208984375, 0.0022220611572265625, -0.0205230712890625, -0.02044677734375, 0.033447265625, -0.0273284912109375, -0.038177490234375, 0.0450439453125, -0.039306640625, 0.0258636474609375, 0.01140594482421875, -0.0197906494140625, 0.01248931884765625, 0.06549072265625, -0.035491943359375, 0.0458984375, 0.0247039794921875, -0.000885009765625, 0.0262451171875, -0.044921875, 0.0248565673828125, 0.00844573974609375, -0.046875, 0.01197052001953125, -0.0038547515869140625, -0.0360107421875, -0.007205963134765625, -0.01531219482421875, 0.056732177734375, -0.042510986328125, -0.00336456298828125, 0.0242919921875, 0.0021038055419921875, -0.004909515380859375, -0.01454925537109375, 0.0008625984191894531, -0.029693603515625, -0.004024505615234375, -0.028839111328125, -0.0171661376953125, 0.024932861328125, -0.03399658203125, -0.04864501953125, 0.0860595703125, -0.0038433074951171875, 0.00753021240234375, 0.01171112060546875, 0.040069580078125, -0.0072784423828125, 0.036834716796875, 0.004520416259765625, 0.0399169921875, 0.01345062255859375, 0.0075225830078125, -0.037811279296875, -0.02886962890625, -0.005825042724609375, 0.0657958984375, 0.040863037109375, 0.01507568359375, -0.0274200439453125, 0.0252227783203125, 0.041961669921875, 0.02239990234375, -0.0139617919921875, 0.04486083984375, -0.0298614501953125, 0.02752685546875, 0.0268096923828125, -0.05377197265625, 0.017303466796875, -0.0071563720703125, -0.027313232421875, -0.025115966796875, 0.0034656524658203125, -0.017059326171875, -0.01206207275390625, 0.0029296875, -0.047821044921875, 0.00042700767517089844, 0.022918701171875, 0.0157623291015625, 0.01332855224609375, 0.0215301513671875, 0.01313018798828125, -0.0430908203125, 0.0207366943359375, -0.0325927734375, 0.046173095703125, -0.01157379150390625, -0.0015020370483398438, 0.023895263671875, 0.01457977294921875, 0.0185699462890625, 0.004154205322265625, 0.00569915771484375, 0.03704833984375, -0.0243072509765625, 0.06298828125, 0.06964111328125, 0.048248291015625, 0.0081787109375, -0.03802490234375, 0.0191650390625, 0.0762939453125, -0.0236968994140625, -0.017425537109375, 0.00914764404296875, -0.01641845703125, 0.0292205810546875, -0.0119781494140625, 0.053436279296875, -0.052001953125, -0.065673828125, 0.008941650390625, -0.006298065185546875, 0.03729248046875, -0.017181396484375, 0.006450653076171875, 0.0178375244140625, -0.00983428955078125, 0.0270538330078125, -0.032958984375, -0.019683837890625, 0.0236053466796875, 0.04315185546875, 0.023284912109375, 0.0190887451171875, 0.0161895751953125, -0.00972747802734375, -0.017547607421875, 0.039642333984375, -0.01580810546875, 0.03936767578125, -0.0836181640625, -0.07586669921875, 0.043060302734375, 0.07232666015625, 0.0122833251953125, 0.01276397705078125, 0.030364990234375, 0.007534027099609375, -0.020172119140625, -0.00962066650390625, -0.00958251953125, -0.03338623046875, 0.06304931640625, -0.03271484375, 0.0301513671875, -0.0009031295776367188, -0.0283355712890625, -0.03594970703125, -0.00791168212890625, 0.057891845703125, 0.007511138916015625, 0.0262298583984375, 0.0014591217041015625, -0.04241943359375, 0.025390625, -0.020233154296875, 0.0787353515625, 0.0300140380859375, -0.01403045654296875, 0.0014162063598632812, -0.026123046875, -0.04071044921875, -0.001811981201171875, 0.0260009765625, 0.01551055908203125, -0.01122283935546875, -0.031402587890625, 0.01432037353515625, 0.0008931159973144531, -0.00766754150390625, -0.0176849365234375, 0.0136566162109375, 0.03619384765625, -0.00749969482421875, -0.044586181640625, -0.0139007568359375, -0.00598907470703125, 0.0113525390625, 0.0125579833984375, 0.08306884765625, -0.009246826171875, 0.0067291259765625, 0.008575439453125, -0.0265045166015625, -0.01031494140625, -0.01531982421875, 0.04345703125, -0.035369873046875, -0.039581298828125, 0.0005736351013183594, -0.0655517578125, 0.01800537109375, 0.00795745849609375, -0.00846099853515625, 0.059295654296875, -0.046295166015625, 0.014617919921875, -0.0201568603515625, -0.0018091201782226562, -0.059112548828125, -0.07989501953125, -0.0667724609375, 0.003910064697265625, -0.0181121826171875, -0.034423828125, -0.036346435546875, 0.05279541015625, -0.04241943359375, -0.01383209228515625, -0.0021724700927734375, -0.07208251953125, -0.005146026611328125, 0.0285186767578125, -0.034393310546875, -0.004364013671875, 0.006511688232421875, -0.01326751708984375, 0.0020656585693359375, 0.002994537353515625, 0.008819580078125, 0.01078033447265625, 0.003871917724609375, -0.078369140625, -0.05401611328125, -0.03521728515625, -0.01044464111328125, -0.010284423828125, -0.05560302734375, -0.0102386474609375, -0.0036258697509765625, -0.0144805908203125, -0.0117034912109375, -0.0122528076171875, -0.0105438232421875, 0.01267242431640625, 0.01387786865234375, -0.027008056640625, -0.0015478134155273438, -0.017486572265625, 0.038909912109375, 0.0150146484375, -0.06488037109375, 0.0330810546875, -0.0199737548828125, 0.0172119140625, -0.0164337158203125, -0.01702880859375, -0.004550933837890625, 0.01611328125, -0.043548583984375, -0.0239105224609375, -0.04241943359375, 0.006011962890625, -0.05029296875, -0.01105499267578125, 0.033660888671875, -0.01727294921875, 0.0006346702575683594, -0.0731201171875, -0.01800537109375, -0.0188751220703125, -0.00788116455078125, -0.0291900634765625, 0.006435394287109375, 0.00539398193359375, 0.012054443359375, -0.0006303787231445312, -0.01343536376953125, 0.045166015625, 0.0012960433959960938, -0.007061004638671875, 0.0038204193115234375, 0.007488250732421875, -0.0266265869140625, -0.0278472900390625, 0.0189208984375, 0.017547607421875, -0.016021728515625, -0.0224456787109375, -0.001850128173828125, -0.02178955078125, 0.0265350341796875, -0.0029926300048828125, -0.0175933837890625, -0.0032749176025390625, 0.03240966796875, 0.006496429443359375, 0.09588623046875, -0.041656494140625, 0.05621337890625, 0.033782958984375, 0.060455322265625, 0.0245819091796875, 0.0072479248046875, 0.00012302398681640625, -0.02685546875, 0.041168212890625, 0.055816650390625, -0.02337646484375, -0.0245208740234375, 0.011871337890625, 0.00494384765625, -0.00128173828125, -0.009918212890625, 0.00469970703125, -0.032745361328125, 0.01421356201171875, 0.01515960693359375, -0.00925445556640625, 0.0186004638671875, 0.0033473968505859375, 0.02069091796875, -0.00145721435546875, -0.000431060791015625, -0.00098419189453125, -0.03228759765625, -0.01465606689453125, -0.012542724609375, -0.01364898681640625, -0.0028514862060546875, -0.0205230712890625, -0.0438232421875, 0.01033782958984375, -0.00592041015625, 0.0000017881393432617188, -0.018524169921875, -0.01369476318359375, 0.09051513671875, -0.046234130859375, 0.023895263671875, 0.00719451904296875, 0.037353515625, 0.042236328125, -0.00644683837890625, 0.06646728515625, 0.08282470703125, -0.043182373046875, -0.03985595703125, 0.057952880859375, -0.01375579833984375, -0.005176544189453125, -0.03948974609375, -0.0000622868537902832, 0.047088623046875, -0.01282501220703125, 0.05267333984375, 0.00856781005859375, 0.0517578125, 0.01105499267578125, 0.0367431640625, 0.0070648193359375, 0.0207061767578125, -0.0194244384765625, 0.060638427734375, -0.047698974609375, -0.011077880859375, -0.036163330078125, -0.024261474609375, 0.0059356689453125, 0.04876708984375, 0.038543701171875, -0.00627899169921875, 0.0017156600952148438, -0.031341552734375, 0.0384521484375, 0.00020933151245117188 ]
26d2ca9331fc25d2ca91d63069b4e4316dff7564
Wordpress Stackexchange Q: using the_permalink to echo an href into a * I'm trying to make a menu that automatically populates from a custom post type I have and I'm having some trouble getting it right If someone could point me in the right direction I would greatly appreciate it. Here is the code. The PHP in the <img src> is pulling the right info and sticking it in the right spot, the_permalink pulls the correct url but then it is putting the url above the <li> tag instead of in the href. <ul class="product-menu"> <?php $products = new WP_Query( $args = array( 'post_type' => 'product', 'post_status' => 'publish', ) ); while ( $products->have_posts() ) { $products->the_post(); $post_thumbnail_id = get_post_thumbnail_id(); $post_thumbnail_url = wp_get_attachment_url( $post_thumbnail_id ); echo '<li> <a href="' . the_permalink() . '"> <img src="' . $post_thumbnail_url . '" alt="' . get_the_title() . '"> </a> </li>'; } /* Restore original Post Data */ wp_reset_postdata();?> </ul> A: the_permalink() prints url immediately and returns nothing, you should use get_the_permalink() function, which returns current post url.
Q: using the_permalink to echo an href into a * I'm trying to make a menu that automatically populates from a custom post type I have and I'm having some trouble getting it right If someone could point me in the right direction I would greatly appreciate it. Here is the code. The PHP in the <img src> is pulling the right info and sticking it in the right spot, the_permalink pulls the correct url but then it is putting the url above the <li> tag instead of in the href. <ul class="product-menu"> <?php $products = new WP_Query( $args = array( 'post_type' => 'product', 'post_status' => 'publish', ) ); while ( $products->have_posts() ) { $products->the_post(); $post_thumbnail_id = get_post_thumbnail_id(); $post_thumbnail_url = wp_get_attachment_url( $post_thumbnail_id ); echo '<li> <a href="' . the_permalink() . '"> <img src="' . $post_thumbnail_url . '" alt="' . get_the_title() . '"> </a> </li>'; } /* Restore original Post Data */ wp_reset_postdata();?> </ul> A: the_permalink() prints url immediately and returns nothing, you should use get_the_permalink() function, which returns current post url. A: You were using the_permalink which echos out, so you echoed out in an echo. You want to sue get_the_permalink to return the url which can then be echoed out into the code. Most wordpress functions starting with the_ directly echo out onto the page, those with get_ return the result. This should work for you. I've also used the_post_thumbnail to bring out a wordpress formatted thumbnail image and update the issue with the hyperlink. <ul class="product-menu"> <?php $args = array( 'post_type' => 'product', 'post_status' => 'publish', ) $products = new WP_Query($args); while ( $products->have_posts() ) { $products->the_post(); echo '<li><a href="' . get_the_permalink() . '">'; // check if the post has a Post Thumbnail assigned to it. if ( has_post_thumbnail() ) { the_post_thumbnail(); } echo '</a></li>'; } /* Restore original Post Data */ wp_reset_postdata(); ?> </ul>
wordpress
{ "language": "en", "length": 307, "provenance": "stackexchange_00019.jsonl.gz:462495", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215239" }
[ 0.0762939453125, 0.01558685302734375, 0.0231475830078125, -0.01299285888671875, 0.03741455078125, -0.03765869140625, 0.07598876953125, -0.044281005859375, -0.007587432861328125, 0.0014886856079101562, 0.0004944801330566406, -0.016754150390625, -0.050201416015625, -0.050933837890625, 0.01032257080078125, -0.029998779296875, 0.047821044921875, -0.0159759521484375, 0.049102783203125, 0.0026950836181640625, -0.01519012451171875, 0.035400390625, 0.052520751953125, 0.0069580078125, 0.0181427001953125, -0.002105712890625, 0.058624267578125, -0.050140380859375, 0.0168304443359375, -0.025970458984375, 0.01236724853515625, -0.013519287109375, 0.0212554931640625, -0.01020050048828125, 0.02886962890625, 0.0156097412109375, 0.024993896484375, -0.00960540771484375, 0.017059326171875, 0.0239715576171875, 0.0231170654296875, -0.01462554931640625, 0.009307861328125, 0.0280303955078125, -0.01483154296875, -0.00597381591796875, 0.0016107559204101562, -0.03668212890625, 0.00977325439453125, 0.0011844635009765625, 0.018890380859375, 0.0197296142578125, 0.0175018310546875, 0.0013780593872070312, -0.0265655517578125, -0.00537872314453125, -0.01409149169921875, -0.022735595703125, 0.039581298828125, 0.004764556884765625, -0.02496337890625, -0.0266876220703125, 0.033538818359375, -0.03131103515625, -0.01824951171875, 0.00789642333984375, 0.03912353515625, 0.01806640625, -0.04010009765625, -0.014312744140625, 0.0183868408203125, -0.0190582275390625, -0.016204833984375, 0.006053924560546875, -0.017181396484375, -0.050079345703125, 0.007785797119140625, -0.055389404296875, -0.000667572021484375, 0.036590576171875, 0.01806640625, 0.01470947265625, -0.0206756591796875, -0.0276947021484375, 0.01340484619140625, -0.0169219970703125, -0.0001500844955444336, -0.009979248046875, -0.007022857666015625, -0.0239105224609375, -0.0171661376953125, 0.0018320083618164062, 0.0034313201904296875, 0.0022983551025390625, -0.025421142578125, -0.0190887451171875, 0.0479736328125, 0.06243896484375, -0.00797271728515625, 0.0160675048828125, 0.0169219970703125, -0.046722412109375, 0.03173828125, -0.04693603515625, -0.0027675628662109375, 0.0186004638671875, 0.0256500244140625, 0.0093231201171875, 0.049774169921875, 0.0086822509765625, 0.0029811859130859375, 0.043182373046875, -0.0203094482421875, -0.0330810546875, 0.00011742115020751953, 0.02117919921875, -0.054962158203125, 0.016876220703125, 0.01279449462890625, 0.0191497802734375, -0.020263671875, 0.033203125, 0.0031986236572265625, 0.00409698486328125, 0.006542205810546875, 0.038543701171875, 0.0350341796875, -0.072998046875, 0.0021533966064453125, 0.01727294921875, -0.032806396484375, 0.013641357421875, 0.064208984375, 0.030853271484375, 0.01531219482421875, -0.0168914794921875, 0.0001017451286315918, -0.02545166015625, -0.0074310302734375, 0.0139923095703125, 0.01485443115234375, -0.0179595947265625, -0.0012998580932617188, -0.0172119140625, 0.0029468536376953125, 0.027984619140625, -0.0059967041015625, 0.0128936767578125, 0.0160064697265625, -0.01047515869140625, 0.0051727294921875, -0.045989990234375, 0.0430908203125, 0.00341033935546875, -0.00395965576171875, -0.052764892578125, 0.033538818359375, -0.0355224609375, 0.01953125, -0.056243896484375, 0.032318115234375, -0.008056640625, 0.01953125, -0.055572509765625, -0.07379150390625, 0.01194000244140625, -0.1009521484375, -0.0214080810546875, 0.012908935546875, 0.026123046875, -0.014984130859375, -0.01385498046875, -0.0156707763671875, 0.0033206939697265625, -0.00009101629257202148, -0.00788116455078125, 0.0150604248046875, -0.0102386474609375, 0.0229034423828125, 0.0270843505859375, -0.01236724853515625, -0.02825927734375, 0.0302581787109375, -0.020660400390625, -0.043426513671875, 0.044952392578125, 0.01338958740234375, 0.06781005859375, -0.00380706787109375, 0.01398468017578125, 0.05328369140625, 0.00498199462890625, -0.09326171875, 0.056793212890625, -0.00424957275390625, -0.03533935546875, -0.02740478515625, -0.0236358642578125, -0.02972412109375, 0.021881103515625, -0.0136260986328125, 0.0163421630859375, -0.02789306640625, 0.02655029296875, -0.0709228515625, 0.0318603515625, -0.0313720703125, 0.0531005859375, 0.038482666015625, 0.029388427734375, 0.007427215576171875, 0.024200439453125, -0.01092529296875, -0.07427978515625, -0.0450439453125, 0.0252685546875, -0.00803375244140625, 0.003696441650390625, -0.03875732421875, 0.0128173828125, -0.04376220703125, -0.02227783203125, -0.039947509765625, 0.03765869140625, 0.05316162109375, -0.0016326904296875, -0.027496337890625, -0.03216552734375, -0.01430511474609375, 0.006999969482421875, -0.08544921875, 0.059539794921875, 0.002475738525390625, 0.0116424560546875, -0.0159454345703125, 0.01058197021484375, 0.0195770263671875, -0.0565185546875, 0.01316070556640625, 0.0452880859375, 0.030853271484375, 0.042449951171875, 0.0005145072937011719, -0.00150299072265625, 0.0372314453125, -0.00658416748046875, 0.0280303955078125, -0.036651611328125, -0.01131439208984375, 0.0225982666015625, 0.00505828857421875, 0.01145172119140625, 0.016754150390625, 0.007965087890625, 0.004123687744140625, 0.032806396484375, -0.0140533447265625, 0.0220489501953125, -0.0172119140625, 0.0192108154296875, -0.01776123046875, 0.031585693359375, 0.0279693603515625, -0.0172119140625, 0.0265655517578125, 0.0226898193359375, 0.0215911865234375, 0.0189208984375, -0.032745361328125, -0.0048675537109375, 0.01336669921875, 0.0227508544921875, -0.00824737548828125, 0.01214599609375, 0.01380157470703125, -0.058197021484375, -0.022918701171875, 0.00745391845703125, -0.00652313232421875, -0.0252838134765625, -0.011383056640625, 0.0347900390625, 0.015350341796875, -0.00331878662109375, -0.036651611328125, -0.047576904296875, 0.0140380859375, 0.0271148681640625, -0.0084075927734375, 0.007183074951171875, 0.04510498046875, 0.0024547576904296875, -0.043212890625, 0.048370361328125, -0.0191497802734375, -0.016693115234375, 0.046478271484375, -0.03265380859375, 0.0396728515625, -0.0286102294921875, 0.073974609375, 0.05609130859375, -0.031402587890625, 0.0426025390625, -0.0049896240234375, -0.0038700103759765625, -0.014862060546875, 0.0007863044738769531, -0.0196990966796875, -0.02020263671875, -0.041534423828125, 0.0208892822265625, 0.01513671875, 0.05279541015625, -0.0074310302734375, -0.05816650390625, 0.007568359375, 0.0144805908203125, -0.100830078125, -0.10125732421875, 0.035919189453125, -0.06292724609375, 0.04071044921875, 0.002834320068359375, -0.02508544921875, -0.055755615234375, 0.050750732421875, 0.01296234130859375, 0.02435302734375, -0.036285400390625, -0.062744140625, -0.03692626953125, -0.07818603515625, 0.0143890380859375, -0.00679779052734375, 0.0099029541015625, 0.0059661865234375, -0.0110931396484375, -0.003986358642578125, -0.0478515625, 0.00601959228515625, 0.035491943359375, -0.01296234130859375, 0.004192352294921875, -0.035125732421875, 0.0203094482421875, -0.0181732177734375, 0.004058837890625, 0.040618896484375, 0.014801025390625, -0.0231475830078125, 0.00200653076171875, -0.0157318115234375, -0.01406097412109375, 0.0445556640625, -0.00304412841796875, 0.0033397674560546875, 0.050018310546875, 0.056427001953125, -0.01447296142578125, -0.04888916015625, -0.032867431640625, -0.068359375, 0.02020263671875, 0.0304107666015625, 0.0184783935546875, -0.00565338134765625, 0.008575439453125, -0.0236053466796875, 0.0014810562133789062, 0.058563232421875, -0.05535888671875, 0.021209716796875, -0.0079498291015625, -0.021148681640625, -0.034515380859375, 0.04541015625, -0.025360107421875, 0.003520965576171875, 0.01953125, -0.0004837512969970703, 0.00290679931640625, -0.04278564453125, -0.0484619140625, -0.04364013671875, 0.028228759765625, -0.060821533203125, 0.0109710693359375, -0.0261688232421875, -0.0181884765625, 0.016845703125, 0.08514404296875, -0.002895355224609375, -0.0212554931640625, -0.02691650390625, -0.000972747802734375, -0.0194549560546875, -0.0196685791015625, -0.046661376953125, 0.0037517547607421875, -0.102294921875, -0.003131866455078125, -0.017425537109375, -0.04498291015625, -0.0078125, 0.039886474609375, -0.0699462890625, -0.03857421875, 0.043853759765625, -0.01422119140625, -0.001956939697265625, 0.03338623046875, -0.032257080078125, 0.0074920654296875, -0.062103271484375, 0.0037631988525390625, -0.04132080078125, -0.031982421875, 0.0428466796875, 0.034698486328125, -0.00115966796875, -0.03558349609375, -0.0048675537109375, 0.05877685546875, 0.019683837890625, 0.042633056640625, 0.00572967529296875, 0.01049041748046875, -0.0210418701171875, -0.042633056640625, 0.01224517822265625, -0.048370361328125, 0.02252197265625, -0.006587982177734375, -0.047698974609375, -0.01153564453125, -0.046478271484375, 0.021759033203125, -0.0032749176025390625, -0.024261474609375, -0.10101318359375, -0.0029296875, 0.045166015625, 0.00974273681640625, 0.0012426376342773438, 0.005290985107421875, 0.020843505859375, -0.07989501953125, 0.0033416748046875, -0.00821685791015625, -0.02386474609375, -0.0037593841552734375, 0.01119232177734375, 0.019317626953125, -0.018829345703125, 0.02239990234375, 0.0181884765625, 0.03253173828125, -0.024169921875, 0.0107879638671875, 0.00029015541076660156, -0.010894775390625, -0.0038928985595703125, -0.0218505859375, 0.01824951171875, 0.0013666152954101562, 0.027496337890625, 0.007495880126953125, 0.0258941650390625, -0.0077972412109375, 0.0053558349609375, -0.0128173828125, 0.031524658203125, -0.0138092041015625, -0.01538848876953125, -0.019622802734375, 0.04150390625, 0.00615692138671875, -0.0031871795654296875, -0.05462646484375, -0.017303466796875, 0.0068206787109375, 0.0107421875, 0.040191650390625, 0.040008544921875, -0.0243072509765625, 0.0296630859375, -0.005756378173828125, 0.0157928466796875, -0.017486572265625, -0.003414154052734375, 0.019805908203125, 0.03900146484375, -0.01055908203125, 0.015716552734375, -0.021514892578125, 0.0034122467041015625, -0.0004248619079589844, 0.035430908203125, 0.031524658203125, -0.022369384765625, -0.0002722740173339844, -0.025543212890625, -0.045135498046875, 0.037353515625, 0.039642333984375, 0.01175689697265625, 0.0036563873291015625, -0.01483917236328125, -0.01467132568359375, 0.0107879638671875, -0.02880859375, 0.0299530029296875, 0.0182342529296875, 0.00881195068359375, 0.004802703857421875, 0.0777587890625, 0.01255035400390625, 0.046051025390625, -0.01543426513671875, 0.0112152099609375, 0.012237548828125, 0.02386474609375, 0.01427459716796875, -0.0030307769775390625, -0.0157318115234375, 0.0018301010131835938, 0.0237884521484375, -0.05084228515625, -0.0184478759765625, 0.0247802734375, 0.084716796875, -0.01395416259765625, -0.02484130859375, 0.01186370849609375, -0.035491943359375, -0.0305023193359375, 0.059844970703125, -0.0012483596801757812, -0.0771484375, -0.031005859375, 0.052947998046875, 0.040008544921875, -0.0208740234375, -0.0195465087890625, 0.037384033203125, 0.00372314453125, 0.01194000244140625, -0.01374053955078125, -0.035003662109375, 0.0161285400390625, 0.0269317626953125, 0.02520751953125, -0.0271759033203125, 0.0011920928955078125, 0.0034160614013671875, 0.03778076171875, -0.040557861328125, -0.019195556640625, 0.051544189453125, -0.01136016845703125, 0.06744384765625, -0.0606689453125, -0.01055908203125, -0.05926513671875, -0.02264404296875, 0.061065673828125, 0.04541015625, -0.048980712890625, 0.0066680908203125, -0.00113677978515625, 0.0128936767578125, 0.066650390625, 0.00737762451171875, -0.0269317626953125, -0.034332275390625, 0.0308685302734375, 0.03753662109375, 0.008270263671875, -0.0139312744140625, 0.007160186767578125, -0.014495849609375, -0.00946807861328125, 0.04034423828125, -0.0179901123046875, 0.0299224853515625, 0.0204925537109375, 0.04034423828125, -0.00145721435546875, -0.0169677734375, -0.01236724853515625, -0.012176513671875, -0.03466796875, -0.01727294921875, -0.006206512451171875, 0.01690673828125, -0.0030841827392578125, 0.040435791015625, 0.08453369140625, 0.0084686279296875, -0.01194000244140625, -0.0148773193359375, 0.003757476806640625, -0.0303802490234375, 0.02490234375, -0.035888671875, -0.03656005859375, 0.01116180419921875, -0.01476287841796875, 0.0295257568359375, 0.043670654296875, -0.0156402587890625, -0.0213623046875, -0.005481719970703125, -0.0211944580078125, 0.03265380859375, -0.0160980224609375, 0.01251220703125, 0.0784912109375, 0.02032470703125, 0.055145263671875, 0.0278778076171875, 0.0172576904296875, 0.033233642578125, -0.0013570785522460938, 0.0242767333984375, 0.039764404296875, 0.07574462890625, -0.005352020263671875, 0.007488250732421875, 0.04296875, -0.02197265625, -0.0217132568359375, 0.0239410400390625, 0.037353515625, -0.0167236328125, -0.0061492919921875, 0.0012054443359375, -0.01169586181640625, 0.0201568603515625, 0.031951904296875, -0.0161285400390625, -0.005901336669921875, 0.0035343170166015625, -0.07415771484375, -0.0195465087890625, -0.01471710205078125, -0.01715087890625, 0.020477294921875, 0.017181396484375, 0.037628173828125, -0.0014247894287109375, -0.04327392578125, -0.059722900390625, 0.042449951171875, -0.0308990478515625, -0.01255035400390625, -0.0217437744140625, 0.004730224609375, -0.00257110595703125, -0.00823211669921875, 0.054931640625, -0.03668212890625, 0.0482177734375, 0.0164337158203125, -0.01203155517578125, 0.017913818359375, 0.02825927734375, -0.029052734375, 0.051055908203125, -0.0053558349609375, -0.001941680908203125, -0.0047149658203125, -0.00421905517578125, -0.00603485107421875, 0.0215606689453125, -0.02532958984375, 0.00399017333984375, -0.03790283203125, 0.0214080810546875, -0.008453369140625, -0.0031719207763671875, 0.0908203125, -0.0667724609375, -0.00870513916015625, 0.01456451416015625, 0.029815673828125, 0.00884246826171875, -0.0191650390625, 0.0328369140625, -0.045928955078125, 0.025543212890625, -0.0083770751953125, 0.044189453125, -0.00921630859375, -0.020538330078125, -0.06781005859375, 0.103271484375, -0.03179931640625, 0.050689697265625, 0.0273895263671875, 0.0275421142578125, 0.00511932373046875, 0.0195770263671875, -0.032562255859375, 0.04827880859375, 0.00567626953125, 0.0369873046875, -0.07147216796875, -0.0216064453125, 0.004486083984375, 0.046356201171875, 0.003589630126953125, 0.00734710693359375, -0.06878662109375, 0.0090179443359375, 0.05926513671875, 0.0173492431640625, 0.0239410400390625, 0.042510986328125, -0.004932403564453125, 0.04583740234375, 0.06396484375, -0.057525634765625, 0.0210418701171875, 0.00562286376953125, -0.0148468017578125, 0.016815185546875, 0.00901031494140625, 0.007221221923828125, -0.01306915283203125, 0.0297698974609375, -0.0733642578125, 0.005352020263671875, 0.061920166015625, -0.0307464599609375, 0.059417724609375, 0.0002474784851074219, 0.045623779296875, -0.02886962890625, -0.030059814453125, 0.00543975830078125, 0.0438232421875, 0.011810302734375, -0.00560760498046875, 0.01690673828125, 0.007503509521484375, 0.031646728515625, -0.0248565673828125, -0.00667572021484375, -0.01184844970703125, 0.0012636184692382812, 0.0396728515625, 0.03240966796875, 0.0283203125, -0.0183258056640625, -0.00925445556640625, 0.044647216796875, 0.056121826171875, -0.0469970703125, -0.056884765625, 0.0162506103515625, 0.0133209228515625, 0.005138397216796875, 0.0115509033203125, 0.0133056640625, -0.034393310546875, 0.00846099853515625, -0.034637451171875, 0.0003268718719482422, 0.03863525390625, 0.023529052734375, 0.0013027191162109375, -0.03448486328125, -0.0340576171875, -0.0017337799072265625, -0.061981201171875, 0.037445068359375, 0.012054443359375, 0.07574462890625, 0.01105499267578125, 0.08123779296875, -0.03924560546875, -0.046844482421875, 0.01041412353515625, 0.018218994140625, -0.01873779296875, 0.002841949462890625, -0.024871826171875, -0.052154541015625, -0.001277923583984375, 0.040771484375, 0.03851318359375, -0.01226043701171875, 0.0404052734375, 0.00914764404296875, -0.0252838134765625, -0.00821685791015625, -0.00579071044921875, -0.0233917236328125, 0.007022857666015625, -0.0194549560546875, 0.04864501953125, 0.00046753883361816406, 0.014617919921875, -0.02935791015625, 0.057647705078125, -0.01009368896484375, -0.07501220703125, 0.061553955078125, -0.0225372314453125, -0.0187225341796875, 0.03076171875, -0.013580322265625, 0.07135009765625, -0.036407470703125, -0.06280517578125, -0.0103759765625, 0.0036716461181640625, -0.0528564453125, -0.0011663436889648438, 0.0362548828125, 0.010894775390625, -0.01329803466796875, 0.0220947265625, -0.000057816505432128906, 0.029998779296875, -0.00647735595703125, -0.01377105712890625, 0.0400390625, 0.034454345703125, 0.0258636474609375, -0.005054473876953125, -0.00017535686492919922, 0.0249786376953125, 0.0256805419921875, -0.004398345947265625, 0.01091766357421875, -0.01142120361328125, 0.01381683349609375, -0.03436279296875, -0.000377655029296875, -0.0472412109375, -0.0113372802734375, 0.020782470703125, -0.0166015625, -0.0073699951171875, 0.00494384765625, -0.01200103759765625, 0.0281982421875, 0.043487548828125, -0.0236663818359375, 0.0015592575073242188, -0.0247650146484375, 0.0250701904296875, -0.017608642578125, 0.06243896484375, -0.029876708984375, -0.01163482666015625, -0.030670166015625, -0.0243988037109375, 0.037567138671875, 0.00797271728515625, 0.00514984130859375, 0.02783203125, 0.034759521484375, -0.0054473876953125, 0.023590087890625, -0.018035888671875, 0.051544189453125, 0.041534423828125, 0.0026569366455078125, 0.0020961761474609375, 0.03240966796875, -0.0113067626953125, 0.005523681640625, 0.0179443359375, -0.00713348388671875, 0.0141143798828125, -0.002803802490234375, 0.0289306640625, -0.0011730194091796875, 0.00983428955078125, -0.017791748046875, -0.00689697265625, 0.01080322265625, -0.00020813941955566406, -0.01512908935546875, 0.0024585723876953125, -0.0126953125, -0.0537109375, 0.006572723388671875, 0.006710052490234375, -0.0253143310546875, -0.01007080078125, -0.0059661865234375, -0.00601959228515625, 0.0208740234375, 0.02410888671875, -0.06298828125, 0.028350830078125, 0.0225677490234375, 0.032318115234375, -0.030853271484375, -0.035858154296875, 0.0074310302734375, 0.031585693359375, -0.0225067138671875, -0.0167083740234375, -0.04693603515625, -0.011871337890625, -0.054962158203125, 0.0261077880859375, 0.0435791015625, -0.0408935546875, -0.04791259765625, -0.00972747802734375, 0.021453857421875, 0.04388427734375, 0.0230712890625, -0.0235443115234375, 0.01267242431640625, 0.01325225830078125, -0.018096923828125, -0.050506591796875, 0.00934600830078125, -0.035308837890625, 0.0023059844970703125, 0.01367950439453125, -0.0033969879150390625, 0.035308837890625, -0.01427459716796875, -0.02484130859375, 0.054168701171875, 0.0024261474609375, -0.025115966796875, 0.01007080078125, -0.006969451904296875, -0.0131378173828125, 0.04644775390625, 0.0173492431640625, -0.039703369140625, -0.030731201171875, 0.0048065185546875, 0.0150604248046875, 0.060150146484375, 0.021728515625, 0.01194000244140625, -0.01157379150390625, -0.00337982177734375, -0.0289154052734375, 0.018280029296875, 0.00916290283203125, -0.01123809814453125, 0.028045654296875, 0.0131072998046875, -0.040252685546875, -0.0114288330078125, -0.0181121826171875, 0.0304412841796875, -0.007595062255859375, -0.03314208984375, -0.025665283203125, -0.018280029296875, 0.039031982421875, 0.0205230712890625, 0.00434112548828125, -0.01413726806640625, -0.00345611572265625, 0.0307769775390625, -0.0265350341796875, -0.00913238525390625, 0.02166748046875, -0.049072265625, -0.018218994140625, -0.031005859375, 0.0038852691650390625, -0.01389312744140625, -0.0149688720703125, -0.0232391357421875, -0.0215301513671875, -0.00716400146484375, 0.01236724853515625, -0.0193023681640625, 0.01337432861328125, 0.069580078125, -0.044342041015625, -0.017181396484375, 0.002887725830078125, 0.0038776397705078125, 0.01708984375, -0.05279541015625, 0.015716552734375, 0.05194091796875, -0.01947021484375, -0.03240966796875, 0.039031982421875, 0.0138702392578125, 0.0115966796875, -0.004535675048828125, -0.004878997802734375, 0.018707275390625, -0.0092010498046875, 0.010711669921875, -0.0009694099426269531, 0.06085205078125, 0.02130126953125, 0.035369873046875, 0.004512786865234375, -0.0026264190673828125, -0.000009775161743164062, 0.0450439453125, -0.0145721435546875, -0.01146697998046875, 0.0141143798828125, -0.06219482421875, -0.007373809814453125, 0.004726409912109375, -0.03448486328125, -0.041107177734375, 0.002468109130859375, -0.0241546630859375, -0.01174163818359375, 0.01251220703125 ]
53c77c51f8b518b53da2b669838ccfad37b552f9
Wordpress Stackexchange Q: Add a URL prefix to permalinks of one category of posts only I have the permalink structure http://domain.com/%postname%/, which is what I want to keep for most of my posts, however there is one category of posts that I would like to move from http://domain.com/%postname%/ to http://domain.com/articles/%postname%/. Any ideas how I can accomplish this for that one category of posts without changing the URLs of all the other posts? A: Suppose articles is slug of the category. 1. Add a custom rewrite rule: add_action('init', function() { add_rewrite_rule('^articles/([^/]+)/?$', 'index.php?name=$matches[1]', 'top'); }, 10, 0); 2. Filter the post link: add_filter('post_link', function($post_link, $post, $leave_name = false, $sample = false) { if ( has_category('articles', $post) ) { $post_link = str_replace('/' . $post->post_name, '/articles/' . $post->post_name, $post_link); } return $post_link; }, 10, 4); That's all. Try it out in your functions.php and remember to flush your permalink structure. References: * *post_link filter
Q: Add a URL prefix to permalinks of one category of posts only I have the permalink structure http://domain.com/%postname%/, which is what I want to keep for most of my posts, however there is one category of posts that I would like to move from http://domain.com/%postname%/ to http://domain.com/articles/%postname%/. Any ideas how I can accomplish this for that one category of posts without changing the URLs of all the other posts? A: Suppose articles is slug of the category. 1. Add a custom rewrite rule: add_action('init', function() { add_rewrite_rule('^articles/([^/]+)/?$', 'index.php?name=$matches[1]', 'top'); }, 10, 0); 2. Filter the post link: add_filter('post_link', function($post_link, $post, $leave_name = false, $sample = false) { if ( has_category('articles', $post) ) { $post_link = str_replace('/' . $post->post_name, '/articles/' . $post->post_name, $post_link); } return $post_link; }, 10, 4); That's all. Try it out in your functions.php and remember to flush your permalink structure. References: * *post_link filter
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:462503", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215263" }
[ 0.087890625, 0.0004298686981201172, 0.023651123046875, -0.0240631103515625, 0.0193939208984375, -0.029510498046875, 0.06549072265625, -0.032562255859375, -0.0287322998046875, 0.01165008544921875, 0.0216064453125, 0.0128631591796875, -0.01500701904296875, -0.057373046875, 0.037322998046875, -0.00197601318359375, 0.018310546875, -0.005588531494140625, 0.01306915283203125, -0.01288604736328125, 0.0285186767578125, 0.00528717041015625, 0.038177490234375, 0.028106689453125, 0.0269775390625, -0.0122528076171875, 0.058624267578125, -0.048919677734375, 0.0029850006103515625, -0.043212890625, 0.01348114013671875, -0.0046234130859375, 0.015106201171875, 0.00270843505859375, 0.0019683837890625, 0.01329803466796875, 0.019866943359375, -0.00295257568359375, -0.005702972412109375, 0.0494384765625, 0.033905029296875, -0.018280029296875, 0.0249176025390625, 0.044464111328125, 0.02166748046875, -0.04486083984375, 0.03631591796875, -0.06976318359375, 0.013580322265625, -0.04998779296875, 0.0190582275390625, 0.042022705078125, 0.032196044921875, -0.01214599609375, -0.00597381591796875, 0.03875732421875, -0.03631591796875, -0.0025691986083984375, 0.0204315185546875, -0.0010366439819335938, -0.0202484130859375, -0.01523590087890625, 0.017242431640625, 0.011322021484375, -0.03460693359375, -0.0171356201171875, 0.01169586181640625, 0.00909423828125, -0.033294677734375, -0.033416748046875, 0.040435791015625, -0.0093231201171875, -0.005054473876953125, -0.003620147705078125, -0.0362548828125, -0.004978179931640625, -0.00827789306640625, -0.04345703125, 0.0163726806640625, 0.002864837646484375, -0.014251708984375, -0.00995635986328125, 0.0016765594482421875, -0.02081298828125, 0.01335906982421875, -0.006473541259765625, -0.01300811767578125, -0.00775909423828125, -0.0391845703125, -0.032135009765625, -0.026611328125, -0.00626373291015625, -0.05035400390625, 0.00315093994140625, 0.00445556640625, -0.01103973388671875, 0.00881195068359375, 0.0312042236328125, 0.007411956787109375, 0.01861572265625, 0.0263824462890625, -0.041748046875, 0.047515869140625, -0.050811767578125, 0.018585205078125, 0.0296478271484375, 0.01073455810546875, 0.0555419921875, 0.06622314453125, 0.005855560302734375, 0.0017757415771484375, 0.05419921875, -0.031097412109375, 0.035003662109375, -0.045196533203125, 0.01090240478515625, -0.0673828125, -0.01282501220703125, -0.04168701171875, 0.0215301513671875, 0.005443572998046875, 0.0333251953125, -0.0007824897766113281, -0.018157958984375, -0.0102996826171875, -0.00904083251953125, -0.01436614990234375, -0.035614013671875, 0.00865936279296875, 0.00212860107421875, -0.011444091796875, 0.022308349609375, 0.030181884765625, 0.0222625732421875, -0.00165557861328125, -0.0016107559204101562, 0.025482177734375, -0.0151214599609375, -0.0183258056640625, 0.0191650390625, 0.01450347900390625, -0.01617431640625, -0.00817108154296875, 0.007015228271484375, 0.0258636474609375, 0.0111541748046875, 0.007843017578125, 0.0193939208984375, 0.0160980224609375, -0.013397216796875, -0.0113525390625, -0.0302581787109375, 0.07220458984375, -0.033203125, -0.04791259765625, -0.060546875, 0.00795745849609375, -0.04248046875, -0.025299072265625, -0.05194091796875, 0.0302734375, -0.0029087066650390625, 0.0113983154296875, -0.056976318359375, -0.04840087890625, -0.0003108978271484375, -0.0848388671875, -0.00969696044921875, 0.00018334388732910156, 0.0171661376953125, -0.0026340484619140625, 0.035980224609375, -0.0036754608154296875, -0.010711669921875, -0.005344390869140625, -0.0312042236328125, -0.0131683349609375, 0.019622802734375, -0.00531768798828125, 0.07318115234375, 0.02093505859375, -0.035614013671875, 0.0019321441650390625, 0.0024471282958984375, -0.045166015625, 0.041259765625, 0.0271759033203125, 0.06396484375, -0.03717041015625, 0.0214080810546875, 0.042694091796875, 0.0325927734375, -0.039093017578125, -0.0228118896484375, -0.01251220703125, -0.0264892578125, 0.057403564453125, -0.01087188720703125, 0.0121917724609375, 0.0223388671875, -0.005832672119140625, 0.0100555419921875, 0.033050537109375, 0.026519775390625, -0.0021991729736328125, 0.046173095703125, -0.01099395751953125, 0.042510986328125, -0.00540924072265625, 0.0172576904296875, 0.026123046875, 0.01477813720703125, -0.0216522216796875, -0.06085205078125, -0.022369384765625, 0.0219573974609375, 0.01506805419921875, -0.0372314453125, -0.02978515625, -0.00994873046875, -0.01151275634765625, 0.004940032958984375, -0.0293731689453125, 0.0443115234375, 0.053680419921875, -0.02099609375, -0.0303497314453125, -0.0308074951171875, -0.05267333984375, 0.0156402587890625, -0.140380859375, 0.07098388671875, 0.056854248046875, 0.034637451171875, -0.0171661376953125, 0.0258941650390625, 0.004947662353515625, -0.03216552734375, -0.01328277587890625, 0.035919189453125, 0.023895263671875, -0.0028533935546875, -0.0233612060546875, -0.0165557861328125, 0.0211334228515625, -0.019134521484375, 0.01151275634765625, -0.0146942138671875, 0.007205963134765625, 0.062103271484375, -0.002437591552734375, 0.0283660888671875, 0.0253448486328125, -0.0283660888671875, 0.00838470458984375, 0.0447998046875, 0.00811004638671875, 0.0018157958984375, -0.01224517822265625, -0.005321502685546875, 0.02777099609375, 0.0246734619140625, -0.03155517578125, 0.01248931884765625, 0.026153564453125, 0.0069580078125, 0.0181732177734375, 0.0036678314208984375, -0.0158233642578125, 0.0008602142333984375, -0.0005383491516113281, -0.01195526123046875, -0.018341064453125, 0.001697540283203125, 0.034149169921875, -0.052093505859375, -0.0273895263671875, 0.024505615234375, -0.0070037841796875, -0.010498046875, -0.0252532958984375, 0.0253448486328125, 0.0150146484375, -0.004428863525390625, -0.03875732421875, -0.05010986328125, 0.027557373046875, -0.01461029052734375, 0.01505279541015625, 0.00609588623046875, 0.038726806640625, -0.0032196044921875, -0.0199127197265625, 0.0103759765625, 0.0290374755859375, -0.036163330078125, 0.0228271484375, -0.0517578125, 0.044158935546875, -0.06280517578125, 0.034027099609375, 0.04437255859375, -0.0225830078125, -0.0010929107666015625, -0.00559234619140625, 0.0263824462890625, -0.006298065185546875, -0.0206451416015625, -0.036590576171875, -0.01096343994140625, -0.0635986328125, -0.0181427001953125, 0.00400543212890625, 0.002407073974609375, -0.00879669189453125, -0.0294952392578125, -0.003917694091796875, -0.002002716064453125, -0.05072021484375, -0.0191497802734375, -0.0181121826171875, -0.05462646484375, 0.034027099609375, 0.0372314453125, -0.0171356201171875, -0.0307464599609375, 0.06256103515625, 0.01244354248046875, 0.01013946533203125, -0.016204833984375, -0.09466552734375, -0.034423828125, -0.08343505859375, 0.03302001953125, -0.0204315185546875, 0.01219940185546875, 0.0176544189453125, 0.00672149658203125, 0.01428985595703125, -0.0416259765625, 0.03936767578125, 0.024139404296875, -0.027679443359375, 0.0069122314453125, -0.00836944580078125, -0.00916290283203125, -0.0158843994140625, -0.01499176025390625, 0.057891845703125, 0.04638671875, -0.04095458984375, 0.034088134765625, -0.01568603515625, 0.044769287109375, 0.0243682861328125, 0.017578125, 0.035888671875, 0.055389404296875, 0.03363037109375, -0.00982666015625, -0.025634765625, -0.035125732421875, -0.041595458984375, 0.025115966796875, 0.026641845703125, 0.00447845458984375, -0.0204010009765625, 0.03717041015625, -0.01486968994140625, 0.004734039306640625, 0.0145721435546875, -0.0169830322265625, 0.0012063980102539062, -0.005924224853515625, -0.0014705657958984375, -0.0034885406494140625, 0.0166015625, -0.032958984375, 0.0246124267578125, 0.0146636962890625, -0.0185699462890625, 0.01348876953125, -0.018707275390625, -0.0201263427734375, -0.048736572265625, 0.0528564453125, -0.0517578125, -0.030792236328125, -0.038604736328125, -0.02423095703125, -0.009857177734375, 0.062225341796875, -0.0308837890625, -0.03472900390625, -0.0148773193359375, -0.002307891845703125, 0.0218505859375, -0.0246124267578125, 0.0267333984375, -0.0270233154296875, -0.083984375, -0.01270294189453125, -0.033447265625, -0.0143890380859375, 0.00005710124969482422, 0.0189361572265625, -0.00981903076171875, -0.044769287109375, 0.0267181396484375, -0.005828857421875, 0.01180267333984375, 0.0372314453125, -0.0273284912109375, 0.027374267578125, -0.048736572265625, 0.0034580230712890625, -0.0423583984375, -0.0169677734375, -0.0013790130615234375, 0.03466796875, 0.0194549560546875, -0.0269622802734375, 0.01538848876953125, 0.048858642578125, -0.0101470947265625, -0.0226287841796875, 0.008941650390625, 0.00176239013671875, 0.0147857666015625, 0.03192138671875, -0.0181884765625, -0.004871368408203125, 0.0247650146484375, -0.0236663818359375, -0.0703125, 0.0004208087921142578, -0.031280517578125, 0.0487060546875, -0.01360321044921875, -0.0369873046875, -0.0882568359375, -0.038665771484375, -0.0012798309326171875, 0.005268096923828125, -0.01221466064453125, -0.0011491775512695312, -0.03875732421875, -0.082275390625, 0.0062103271484375, -0.06768798828125, -0.00516510009765625, 0.01953125, 0.03558349609375, 0.014862060546875, 0.00142669677734375, 0.0234527587890625, 0.049224853515625, 0.043731689453125, -0.004039764404296875, 0.049713134765625, 0.0275115966796875, -0.00446319580078125, 0.03582763671875, -0.0009241104125976562, 0.0028018951416015625, -0.027984619140625, -0.00153350830078125, 0.00878143310546875, -0.01000213623046875, 0.00547027587890625, -0.0014896392822265625, 0.05352783203125, 0.033538818359375, -0.023651123046875, -0.0189971923828125, -0.0296783447265625, 0.036712646484375, 0.002193450927734375, 0.025848388671875, -0.04461669921875, 0.00011545419692993164, 0.002471923828125, 0.015655517578125, 0.047027587890625, 0.0399169921875, -0.01497650146484375, 0.019866943359375, 0.030059814453125, 0.0014390945434570312, -0.0123138427734375, 0.0132904052734375, -0.007965087890625, 0.0283966064453125, -0.007579803466796875, -0.0034923553466796875, -0.040863037109375, -0.005374908447265625, 0.037628173828125, 0.0294952392578125, -0.0014200210571289062, -0.0063018798828125, -0.01438140869140625, -0.00400543212890625, -0.0157470703125, -0.024322509765625, 0.0218963623046875, 0.0133056640625, -0.005008697509765625, 0.0100250244140625, -0.057373046875, -0.0028076171875, -0.0328369140625, 0.003444671630859375, 0.0035858154296875, -0.0171051025390625, 0.0164947509765625, 0.01666259765625, 0.0115966796875, 0.002208709716796875, -0.0111846923828125, 0.0091705322265625, 0.01444244384765625, 0.0206298828125, -0.003040313720703125, 0.01171112060546875, -0.011199951171875, 0.0199432373046875, 0.03302001953125, -0.03778076171875, -0.003803253173828125, 0.0247650146484375, 0.06787109375, 0.004016876220703125, -0.006710052490234375, -0.01410675048828125, -0.0238037109375, -0.035003662109375, 0.028472900390625, -0.0122222900390625, -0.04180908203125, -0.042022705078125, -0.0220794677734375, -0.00687408447265625, -0.00897979736328125, -0.00977325439453125, 0.007236480712890625, -0.004390716552734375, -0.0022735595703125, 0.007305145263671875, -0.017486572265625, 0.002063751220703125, 0.00302886962890625, 0.01207733154296875, -0.02056884765625, 0.00815582275390625, 0.0093231201171875, 0.0023651123046875, -0.023193359375, -0.024810791015625, 0.0302581787109375, 0.007663726806640625, 0.039306640625, -0.01259613037109375, -0.05499267578125, 0.045501708984375, -0.0079193115234375, 0.041168212890625, -0.01012420654296875, -0.058929443359375, 0.0135498046875, -0.0205535888671875, 0.01438140869140625, 0.015625, -0.006664276123046875, -0.01128387451171875, -0.0304107666015625, 0.039276123046875, 0.011962890625, 0.0169677734375, -0.01346588134765625, -0.0179290771484375, 0.005123138427734375, 0.0239715576171875, -0.022735595703125, -0.030242919921875, 0.058074951171875, -0.00029087066650390625, 0.03656005859375, -0.00238800048828125, 0.017822265625, -0.01076507568359375, -0.0053863525390625, -0.01531982421875, -0.06866455078125, -0.0253753662109375, 0.0258636474609375, -0.06488037109375, 0.042266845703125, 0.057464599609375, 0.0008397102355957031, -0.00798797607421875, -0.0162506103515625, 0.0017404556274414062, -0.03704833984375, -0.01255035400390625, -0.0357666015625, -0.02117919921875, -0.0283050537109375, 0.017608642578125, 0.050048828125, -0.016357421875, 0.00035762786865234375, -0.013092041015625, -0.0127716064453125, 0.01438140869140625, 0.001094818115234375, -0.0560302734375, 0.03021240234375, 0.086669921875, 0.037322998046875, 0.0648193359375, 0.03521728515625, 0.037384033203125, 0.030242919921875, -0.0084228515625, 0.053802490234375, 0.03753662109375, 0.06475830078125, -0.0038166046142578125, 0.0196685791015625, 0.041778564453125, -0.020751953125, -0.0256500244140625, 0.02435302734375, 0.019989013671875, -0.061767578125, 0.0181121826171875, 0.0251312255859375, 0.038055419921875, 0.010833740234375, 0.024261474609375, -0.00594329833984375, 0.0106353759765625, -0.0037670135498046875, -0.031982421875, -0.0239105224609375, -0.00139617919921875, 0.004947662353515625, 0.01800537109375, -0.0078582763671875, 0.049407958984375, 0.0026111602783203125, -0.039459228515625, -0.05438232421875, 0.0299835205078125, -0.035369873046875, -0.008880615234375, -0.01523590087890625, 0.0192413330078125, -0.036163330078125, -0.027801513671875, 0.040374755859375, -0.03143310546875, 0.0035762786865234375, 0.0194091796875, -0.0078277587890625, 0.0096588134765625, 0.033905029296875, -0.006290435791015625, 0.017059326171875, -0.006305694580078125, -0.026031494140625, 0.031829833984375, -0.005794525146484375, 0.003932952880859375, -0.0290069580078125, 0.0021839141845703125, -0.0048065185546875, -0.0185546875, -0.038665771484375, -0.02264404296875, -0.031280517578125, 0.09942626953125, -0.04705810546875, -0.02679443359375, -0.0040740966796875, 0.025238037109375, 0.00811767578125, 0.008544921875, 0.036712646484375, -0.0173492431640625, -0.01300048828125, -0.00691986083984375, -0.036285400390625, 0.00562286376953125, -0.0230865478515625, -0.0823974609375, 0.08917236328125, -0.003757476806640625, 0.0662841796875, 0.032379150390625, 0.0296173095703125, -0.0172882080078125, -0.0009207725524902344, -0.03594970703125, 0.07977294921875, 0.032958984375, 0.041534423828125, -0.0289459228515625, -0.0106353759765625, 0.0234222412109375, 0.02630615234375, 0.0697021484375, 0.02093505859375, -0.059356689453125, -0.006877899169921875, 0.040771484375, 0.042999267578125, 0.004886627197265625, 0.03399658203125, -0.037567138671875, 0.046722412109375, 0.03790283203125, -0.048370361328125, 0.024017333984375, 0.0137481689453125, -0.04156494140625, -0.0003631114959716797, 0.0219268798828125, 0.046875, -0.005558013916015625, -0.03326416015625, -0.03875732421875, 0.0005965232849121094, 0.047454833984375, -0.031036376953125, 0.0188140869140625, 0.013275146484375, 0.03265380859375, -0.05108642578125, -0.0242919921875, -0.0169677734375, 0.04730224609375, 0.017852783203125, 0.0164642333984375, 0.02313232421875, 0.027587890625, 0.0609130859375, -0.019073486328125, 0.01358795166015625, 0.0225830078125, -0.01221466064453125, 0.07073974609375, 0.054931640625, 0.0272369384765625, -0.01885986328125, -0.0090179443359375, 0.06927490234375, 0.09185791015625, -0.06109619140625, -0.0262298583984375, -0.0011339187622070312, 0.0085906982421875, 0.029541015625, -0.018402099609375, 0.0241851806640625, 0.00438690185546875, 0.003093719482421875, -0.06524658203125, -0.002277374267578125, 0.04925537109375, 0.032684326171875, -0.0175933837890625, -0.04302978515625, -0.03790283203125, -0.004489898681640625, -0.054473876953125, 0.022247314453125, 0.032867431640625, 0.061187744140625, 0.0161285400390625, 0.06488037109375, 0.0002999305725097656, -0.02972412109375, 0.0161590576171875, 0.03204345703125, -0.026123046875, 0.010223388671875, -0.0132598876953125, -0.057952880859375, -0.0008802413940429688, 0.032562255859375, 0.036529541015625, 0.025909423828125, 0.059539794921875, 0.02886962890625, -0.0244598388671875, -0.0008320808410644531, 0.0167999267578125, -0.0242767333984375, 0.056976318359375, -0.0230560302734375, 0.042449951171875, -0.010406494140625, -0.01318359375, -0.0241546630859375, 0.018768310546875, 0.01800537109375, 0.019439697265625, -0.01332855224609375, 0.0126495361328125, -0.045074462890625, 0.0307159423828125, 0.0032672882080078125, 0.051788330078125, 0.0235595703125, -0.047210693359375, -0.0091705322265625, -0.02197265625, -0.0802001953125, 0.035247802734375, 0.053619384765625, -0.005687713623046875, -0.0189361572265625, 0.01276397705078125, -0.0218963623046875, 0.03814697265625, 0.0032196044921875, -0.01047515869140625, 0.01959228515625, 0.00885009765625, 0.01055145263671875, -0.0006089210510253906, -0.00971221923828125, 0.00844573974609375, 0.052459716796875, 0.0321044921875, 0.07098388671875, -0.03704833984375, 0.0211334228515625, -0.006389617919921875, 0.021697998046875, -0.024749755859375, -0.02532958984375, 0.0214080810546875, 0.005603790283203125, 0.0305633544921875, -0.0034084320068359375, -0.009063720703125, -0.0264129638671875, 0.062408447265625, -0.06494140625, -0.01163482666015625, -0.0232696533203125, 0.0267791748046875, -0.048858642578125, 0.035736083984375, -0.027008056640625, -0.03607177734375, -0.0567626953125, -0.044708251953125, 0.044464111328125, 0.03900146484375, 0.01202392578125, 0.0670166015625, 0.005619049072265625, 0.0113372802734375, -0.00948333740234375, -0.021148681640625, -0.01494598388671875, 0.03936767578125, -0.0170135498046875, -0.0193939208984375, 0.043121337890625, -0.00732421875, -0.00487518310546875, 0.025909423828125, 0.01006317138671875, 0.01270294189453125, -0.029571533203125, -0.030181884765625, -0.007045745849609375, 0.029937744140625, 0.00015938282012939453, 0.0279388427734375, -0.0268402099609375, -0.002735137939453125, -0.0227813720703125, -0.0092010498046875, -0.02252197265625, -0.011322021484375, -0.023712158203125, 0.01288604736328125, -0.0149078369140625, -0.06365966796875, -0.07080078125, -0.0025119781494140625, 0.028228759765625, -0.005832672119140625, -0.042327880859375, 0.034454345703125, -0.03253173828125, 0.03717041015625, -0.041259765625, -0.00719451904296875, -0.01171875, 0.051177978515625, -0.0309600830078125, 0.0038166046142578125, -0.04931640625, -0.0204010009765625, -0.0650634765625, 0.00423431396484375, 0.03948974609375, -0.01690673828125, -0.022308349609375, -0.006534576416015625, -0.019622802734375, 0.049774169921875, -0.038604736328125, -0.00241851806640625, -0.01029205322265625, 0.029815673828125, -0.056488037109375, -0.043731689453125, 0.03594970703125, -0.0312347412109375, -0.02972412109375, 0.0195159912109375, -0.0296478271484375, -0.006122589111328125, -0.029693603515625, -0.05462646484375, 0.05889892578125, -0.0015888214111328125, -0.02838134765625, -0.049346923828125, -0.033203125, -0.0139312744140625, 0.045318603515625, -0.00760650634765625, -0.02935791015625, -0.05902099609375, 0.0316162109375, 0.0182952880859375, 0.061798095703125, -0.0269775390625, 0.051727294921875, -0.018218994140625, 0.046875, 0.0265655517578125, 0.005199432373046875, 0.0302581787109375, -0.01776123046875, 0.059844970703125, 0.062347412109375, -0.0185394287109375, 0.053680419921875, -0.003955841064453125, -0.0413818359375, -0.004566192626953125, -0.051849365234375, -0.045166015625, -0.040557861328125, 0.0736083984375, -0.0015859603881835938, 0.02203369140625, 0.0045928955078125, -0.0166015625, -0.041717529296875, -0.01467132568359375, -0.006175994873046875, 0.019927978515625, -0.053009033203125, -0.0005440711975097656, 0.0167694091796875, 0.0141448974609375, -0.01204681396484375, -0.0167999267578125, -0.00701904296875, -0.01274871826171875, 0.0217437744140625, 0.01361846923828125, -0.02593994140625, 0.0430908203125, 0.0160369873046875, -0.0244598388671875, -0.01282501220703125, -0.01073455810546875, 0.001956939697265625, -0.01580810546875, -0.04071044921875, -0.022735595703125, -0.00376129150390625, -0.0019989013671875, -0.00020229816436767578, 0.01163482666015625, 0.03607177734375, 0.00681304931640625, 0.0016765594482421875, -0.0391845703125, 0.0280609130859375, 0.0156097412109375, 0.0154266357421875, -0.034210205078125, 0.03289794921875, 0.0206756591796875, 0.0733642578125, -0.0189666748046875, 0.0157012939453125, 0.01751708984375, 0.022247314453125, -0.0306396484375, 0.01398468017578125, 0.01071929931640625, -0.04449462890625, -0.005054473876953125, 0.0008339881896972656, -0.010223388671875, -0.032257080078125, 0.01419830322265625, -0.04888916015625, -0.0040740966796875, 0.0134735107421875 ]
352b4184b032e6b514a3d96b75f513e88ecfc9d5
Wordpress Stackexchange Q: Change "You are now logged out" text I want to wrap <strong></strong> around the words "logged out": add_filter( 'gettext', 'wpse17709_gettext', 10, 2 ); function wpse17709_gettext( $custom_translation, $login_texts ) { // Messages if ( 'You are now logged out.' == $login_texts ) { return ''; } // Log out message return $translation } ...however adding HTML elements to the text string breaks my page. How can I add <strong></strong> to this message text? Is there a means other than gettext? A: This allows for the message to be overwritten specifically for the loggedout message while leaving all other messages alone. Here is more documentation on the filter. add_filter( 'wp_login_errors', 'my_logout_message' ); function my_logout_message( $errors ){ if ( isset( $errors->errors['loggedout'] ) ){ $errors->errors['loggedout'][0] = 'This is the <strong style="color:red;">logged out</strong> message.'; } return $errors; }
Q: Change "You are now logged out" text I want to wrap <strong></strong> around the words "logged out": add_filter( 'gettext', 'wpse17709_gettext', 10, 2 ); function wpse17709_gettext( $custom_translation, $login_texts ) { // Messages if ( 'You are now logged out.' == $login_texts ) { return ''; } // Log out message return $translation } ...however adding HTML elements to the text string breaks my page. How can I add <strong></strong> to this message text? Is there a means other than gettext? A: This allows for the message to be overwritten specifically for the loggedout message while leaving all other messages alone. Here is more documentation on the filter. add_filter( 'wp_login_errors', 'my_logout_message' ); function my_logout_message( $errors ){ if ( isset( $errors->errors['loggedout'] ) ){ $errors->errors['loggedout'][0] = 'This is the <strong style="color:red;">logged out</strong> message.'; } return $errors; } A: Based on Sven's recommended solution and Tom J Nowell's warning about gettext() (see comments for both), I've fashioned the following solution: add_filter( 'login_message', 'wpse_215289_custom_logout_message' ); add_action( 'login_head','wpse_215289_custom_login_head' ); // Detect logout and add custom message. function wpse_215289_custom_logout_message() { //check to see if it's the logout screen if ( isset($_GET['loggedout']) && TRUE == $_GET['loggedout'] ){ $message = "<p class='message'>Custom log-out message.</p>"; } return $message; } // Remove original message via CSS. function wpse_215289_custom_login_head() { ?> <style type="text/css"> .message:nth-child(2) { display:none; } </style> <?php } A: Change “You are now logged out” text using filter login_messages function custom_logout_message(){ return 'You are not login!'; } add_filter( 'login_messages', 'custom_logout_message' );
wordpress
{ "language": "en", "length": 241, "provenance": "stackexchange_00019.jsonl.gz:462513", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215289" }
[ 0.0292205810546875, 0.004055023193359375, -0.0007252693176269531, -0.028289794921875, 0.015167236328125, -0.02099609375, 0.0240325927734375, -0.0058746337890625, -0.023895263671875, 0.0196990966796875, 0.0008649826049804688, 0.002803802490234375, -0.040924072265625, -0.0231170654296875, -0.021636962890625, -0.040435791015625, 0.0223846435546875, 0.0135955810546875, 0.00238800048828125, 0.0027370452880859375, -0.0081939697265625, 0.024993896484375, -0.0428466796875, 0.06768798828125, -0.0212249755859375, 0.001834869384765625, 0.1529541015625, -0.031951904296875, 0.016845703125, -0.01258087158203125, 0.0125274658203125, -0.053497314453125, 0.016387939453125, 0.053924560546875, -0.083251953125, -0.0261077880859375, -0.0207061767578125, 0.014678955078125, -0.028839111328125, 0.03363037109375, 0.01189422607421875, -0.008209228515625, 0.00705718994140625, -0.005279541015625, -0.00981903076171875, 0.022552490234375, -0.0174713134765625, -0.036651611328125, 0.022613525390625, 0.0328369140625, 0.010406494140625, 0.0090179443359375, 0.00598907470703125, -0.00948333740234375, -0.006763458251953125, 0.0243682861328125, -0.046661376953125, 0.0088348388671875, 0.01397705078125, 0.0655517578125, 0.019866943359375, 0.0004963874816894531, -0.0233001708984375, -0.052642822265625, -0.00403594970703125, 0.0026798248291015625, 0.0118865966796875, 0.0180511474609375, -0.003337860107421875, -0.0270843505859375, -0.0172576904296875, -0.01541900634765625, -0.00858306884765625, -0.021697998046875, -0.035552978515625, 0.03887939453125, -0.040679931640625, -0.018829345703125, 0.03857421875, -0.0054473876953125, 0.0202789306640625, 0.02484130859375, -0.00466156005859375, -0.00641632080078125, -0.01331329345703125, -0.0191497802734375, -0.01422882080078125, -0.0167694091796875, -0.0009784698486328125, -0.010833740234375, -0.0167236328125, -0.019256591796875, 0.005794525146484375, 0.0010232925415039062, -0.01256561279296875, -0.038818359375, 0.0205230712890625, 0.04693603515625, -0.0009360313415527344, 0.0285186767578125, -0.0386962890625, -0.02362060546875, 0.0192718505859375, -0.0252838134765625, -0.0011692047119140625, 0.033721923828125, -0.031341552734375, -0.0203399658203125, 0.0186614990234375, 0.0242919921875, 0.014404296875, -0.02532958984375, -0.03375244140625, -0.038330078125, -0.017059326171875, 0.058624267578125, -0.011444091796875, -0.0078887939453125, -0.0016260147094726562, 0.0369873046875, 0.0007429122924804688, -0.0164642333984375, -0.00002485513687133789, 0.01094818115234375, -0.0225677490234375, -0.0318603515625, -0.0203857421875, 0.0055084228515625, 0.035888671875, 0.03125, -0.0186614990234375, 0.000141143798828125, 0.0016031265258789062, -0.007633209228515625, -0.0033111572265625, -0.0152587890625, 0.03314208984375, -0.015167236328125, -0.004955291748046875, 0.039215087890625, -0.021453857421875, -0.057647705078125, -0.004302978515625, -0.00466156005859375, -0.002071380615234375, 0.0286865234375, 0.032440185546875, 0.012542724609375, -0.02593994140625, -0.0853271484375, 0.04376220703125, -0.0186614990234375, 0.00901031494140625, -0.0018072128295898438, 0.0015058517456054688, -0.01096343994140625, 0.019287109375, -0.02130126953125, -0.01428985595703125, -0.0307464599609375, 0.01348876953125, -0.0052947998046875, 0.022857666015625, -0.0160064697265625, -0.0082855224609375, -0.00823974609375, -0.0491943359375, -0.00353240966796875, 0.037811279296875, 0.0809326171875, 0.0267333984375, -0.039154052734375, 0.050567626953125, 0.023468017578125, -0.025360107421875, 0.0011110305786132812, -0.0267486572265625, 0.0714111328125, 0.0194549560546875, -0.043243408203125, -0.00809478759765625, -0.0460205078125, 0.03948974609375, 0.01451873779296875, -0.0243682861328125, -0.00914764404296875, -0.00672149658203125, 0.0228424072265625, 0.0213165283203125, 0.0028400421142578125, 0.0023746490478515625, -0.0171356201171875, 0.00980377197265625, -0.006534576416015625, -0.0509033203125, -0.0192718505859375, 0.026580810546875, 0.034637451171875, -0.0267486572265625, 0.01214599609375, 0.061981201171875, -0.00875091552734375, -0.0018062591552734375, -0.0225982666015625, -0.0849609375, -0.007373809814453125, -0.027862548828125, 0.024627685546875, -0.04400634765625, -0.0250244140625, 0.017669677734375, -0.028167724609375, 0.00214385986328125, -0.0364990234375, -0.01214599609375, 0.00408172607421875, -0.036895751953125, 0.043121337890625, 0.00226593017578125, 0.054779052734375, 0.05035400390625, -0.046905517578125, 0.046783447265625, -0.0123443603515625, 0.006519317626953125, 0.004253387451171875, -0.02960205078125, -0.011016845703125, 0.001377105712890625, -0.021270751953125, 0.0234375, 0.051513671875, 0.10467529296875, 0.066650390625, -0.0221710205078125, 0.002044677734375, -0.01250457763671875, -0.058502197265625, -0.0305633544921875, 0.03826904296875, 0.045196533203125, 0.0274200439453125, 0.00909423828125, 0.03369140625, 0.027130126953125, -0.053802490234375, 0.0158538818359375, 0.0021114349365234375, 0.038238525390625, 0.043365478515625, -0.01367950439453125, -0.024505615234375, 0.051788330078125, -0.0496826171875, 0.0225982666015625, 0.050689697265625, -0.005352020263671875, -0.0141754150390625, -0.006683349609375, 0.024200439453125, -0.0005512237548828125, -0.038604736328125, -0.008056640625, -0.0195465087890625, 0.032501220703125, -0.030670166015625, 0.01134490966796875, -0.0188446044921875, -0.03167724609375, -0.0250701904296875, 0.032257080078125, 0.00010067224502563477, -0.0210418701171875, 0.03167724609375, 0.004299163818359375, -0.02813720703125, -0.0275726318359375, 0.0076446533203125, -0.01003265380859375, -0.0015163421630859375, -0.0218048095703125, 0.0042572021484375, -0.019073486328125, -0.0169830322265625, 0.0224151611328125, -0.0169219970703125, -0.0156402587890625, -0.051605224609375, 0.0369873046875, 0.01082611083984375, 0.007190704345703125, 0.0303955078125, -0.0325927734375, 0.0728759765625, 0.0274810791015625, -0.01149749755859375, 0.022369384765625, -0.04864501953125, 0.0531005859375, -0.0267791748046875, 0.013671875, 0.06695556640625, 0.00684356689453125, 0.01557159423828125, -0.0265655517578125, 0.030914306640625, -0.057586669921875, -0.013427734375, -0.02667236328125, -0.01947021484375, -0.0166473388671875, 0.0594482421875, 0.037689208984375, 0.068603515625, -0.0091400146484375, -0.03851318359375, -0.0084686279296875, 0.04156494140625, -0.0284423828125, -0.056060791015625, -0.01509857177734375, -0.0811767578125, -0.0044097900390625, 0.020538330078125, -0.05596923828125, 0.006191253662109375, 0.0594482421875, -0.0020599365234375, -0.0015468597412109375, -0.0240325927734375, -0.052642822265625, -0.0264434814453125, -0.038330078125, 0.0226593017578125, -0.0194549560546875, -0.01325225830078125, 0.0015392303466796875, 0.07342529296875, 0.0174407958984375, -0.0345458984375, -0.005130767822265625, 0.07818603515625, -0.00949859619140625, 0.006259918212890625, -0.011749267578125, -0.0092315673828125, 0.017425537109375, 0.00678253173828125, -0.061279296875, -0.007213592529296875, 0.0261077880859375, -0.0352783203125, -0.019775390625, -0.019378662109375, 0.00768280029296875, -0.02960205078125, 0.00516510009765625, 0.024627685546875, -0.00016438961029052734, -0.036346435546875, -0.00982666015625, 0.01441192626953125, -0.0180511474609375, 0.061920166015625, 0.0204010009765625, -0.03472900390625, 0.0278167724609375, 0.0048065185546875, -0.011932373046875, 0.01557159423828125, 0.031585693359375, -0.00801849365234375, -0.001201629638671875, -0.022674560546875, -0.05047607421875, -0.030364990234375, -0.0173187255859375, -0.0264892578125, 0.042999267578125, -0.024169921875, 0.0240325927734375, -0.006984710693359375, 0.005096435546875, -0.0200958251953125, -0.03143310546875, 0.0178070068359375, -0.0753173828125, -0.01123046875, -0.019805908203125, 0.0118255615234375, 0.01776123046875, 0.053009033203125, -0.0430908203125, -0.0244293212890625, 0.01544189453125, 0.019805908203125, -0.0035572052001953125, -0.0284881591796875, -0.0126495361328125, -0.0212249755859375, -0.1026611328125, 0.040313720703125, 0.0179595947265625, -0.01282501220703125, 0.0031871795654296875, 0.004566192626953125, -0.0185089111328125, -0.050079345703125, 0.027587890625, 0.005626678466796875, 0.0272369384765625, 0.0122222900390625, -0.01413726806640625, 0.0008292198181152344, 0.004726409912109375, -0.0325927734375, -0.047637939453125, -0.005542755126953125, -0.058837890625, 0.05181884765625, 0.043060302734375, -0.0248260498046875, -0.0177154541015625, 0.038848876953125, -0.00220489501953125, -0.03411865234375, 0.0138397216796875, 0.01090240478515625, 0.0097808837890625, 0.0086517333984375, -0.0386962890625, -0.00907135009765625, 0.017364501953125, 0.01018524169921875, -0.0406494140625, 0.0341796875, 0.0007085800170898438, 0.0225372314453125, 0.037078857421875, -0.046966552734375, -0.051666259765625, -0.035858154296875, -0.0182342529296875, 0.025787353515625, -0.0034027099609375, -0.0014171600341796875, -0.036041259765625, -0.07269287109375, 0.046417236328125, 0.053497314453125, -0.0267486572265625, 0.00901031494140625, 0.01812744140625, 0.0036602020263671875, -0.042816162109375, -0.04150390625, -0.0241241455078125, 0.01087188720703125, -0.0128021240234375, 0.00279998779296875, -0.01548004150390625, -0.037811279296875, 0.053924560546875, -0.0274505615234375, 0.0157623291015625, -0.045867919921875, 0.061065673828125, -0.01904296875, -0.040496826171875, 0.040557861328125, -0.0261077880859375, -0.012725830078125, 0.0080718994140625, 0.01059722900390625, -0.0016164779663085938, 0.005779266357421875, 0.005489349365234375, 0.006500244140625, -0.00970458984375, -0.0010728836059570312, -0.06341552734375, 0.026153564453125, 0.0234832763671875, -0.019287109375, 0.005611419677734375, 0.00841522216796875, -0.0004420280456542969, -0.00366973876953125, -0.0153961181640625, -0.05535888671875, -0.04632568359375, -0.027923583984375, 0.01050567626953125, -0.040771484375, -0.03094482421875, -0.0012788772583007812, -0.0217742919921875, 0.08111572265625, -0.008880615234375, -0.0814208984375, 0.040374755859375, -0.0199737548828125, 0.0242156982421875, 0.039581298828125, 0.01708984375, 0.037841796875, -0.04248046875, -0.0045928955078125, -0.00496673583984375, -0.01334381103515625, -0.034149169921875, -0.029296875, -0.03759765625, -0.00824737548828125, -0.00896453857421875, 0.0162200927734375, 0.0258941650390625, 0.015838623046875, 0.028472900390625, -0.032806396484375, -0.01097869873046875, -0.018890380859375, 0.0482177734375, -0.00045037269592285156, 0.00904083251953125, -0.012237548828125, 0.040496826171875, 0.034515380859375, -0.01448822021484375, -0.035430908203125, 0.04132080078125, 0.01139068603515625, -0.003452301025390625, 0.025115966796875, -0.00931549072265625, -0.00406646728515625, -0.0014123916625976562, 0.03839111328125, 0.020965576171875, -0.0811767578125, 0.0080718994140625, 0.0443115234375, -0.006816864013671875, -0.058746337890625, -0.0223846435546875, -0.03997802734375, -0.052734375, -0.003879547119140625, -0.00033593177795410156, 0.008636474609375, -0.006931304931640625, -0.0322265625, -0.074462890625, -0.0259552001953125, 0.0043182373046875, -0.095458984375, -0.045654296875, 0.019256591796875, -0.01161956787109375, 0.005321502685546875, -0.0089569091796875, 0.040313720703125, -0.02008056640625, -0.0224761962890625, 0.021636962890625, 0.00201416015625, 0.01189422607421875, -0.0121002197265625, -0.0272216796875, -0.00042128562927246094, -0.0218353271484375, -0.007556915283203125, -0.03582763671875, -0.04083251953125, -0.0255126953125, -0.0165252685546875, 0.03997802734375, 0.009002685546875, 0.0171356201171875, -0.0300750732421875, -0.0484619140625, 0.011474609375, 0.05328369140625, 0.0380859375, -0.00749969482421875, 0.043365478515625, 0.00225830078125, 0.01445770263671875, 0.0091400146484375, 0.01389312744140625, -0.0229339599609375, -0.007904052734375, -0.0028095245361328125, -0.0119781494140625, 0.0115203857421875, -0.0482177734375, 0.0411376953125, 0.00016295909881591797, 0.05389404296875, -0.0015926361083984375, -0.0038394927978515625, -0.035003662109375, -0.01267242431640625, -0.022491455078125, 0.05804443359375, -0.003448486328125, -0.01404571533203125, 0.0082855224609375, -0.005584716796875, 0.0227508544921875, -0.0149688720703125, 0.04486083984375, -0.034454345703125, -0.01409149169921875, -0.006755828857421875, 0.00469970703125, 0.001434326171875, -0.006256103515625, 0.035400390625, -0.00524139404296875, 0.029205322265625, -0.0204620361328125, 0.012939453125, 0.0237579345703125, -0.01505279541015625, -0.0098419189453125, 0.01352691650390625, 0.043609619140625, -0.0013132095336914062, -0.03118896484375, 0.024749755859375, -0.030059814453125, 0.02783203125, 0.0594482421875, 0.09698486328125, -0.1009521484375, 0.031951904296875, 0.0170745849609375, -0.0196380615234375, 0.07061767578125, 0.0182952880859375, 0.0175933837890625, 0.01319122314453125, -0.0231475830078125, -0.028961181640625, -0.0175933837890625, -0.0179443359375, -0.0109405517578125, -0.009490966796875, -0.046600341796875, 0.026275634765625, 0.006175994873046875, -0.035980224609375, 0.040130615234375, 0.0014667510986328125, 0.0267791748046875, -0.0086822509765625, -0.0036678314208984375, 0.032928466796875, -0.0284576416015625, -0.08209228515625, -0.0180816650390625, -0.005039215087890625, -0.0301055908203125, -0.047607421875, -0.0186920166015625, 0.03814697265625, 0.04974365234375, -0.0355224609375, 0.01910400390625, 0.0162353515625, 0.031463623046875, 0.0247802734375, -0.0251617431640625, -0.0014553070068359375, 0.042327880859375, -0.03887939453125, 0.0205230712890625, 0.0071563720703125, 0.0020084381103515625, -0.01284027099609375, -0.0716552734375, 0.042266845703125, -0.021484375, -0.005954742431640625, 0.008514404296875, 0.00308990478515625, 0.0009908676147460938, -0.006008148193359375, 0.0105133056640625, -0.036712646484375, -0.0238494873046875, -0.0174102783203125, -0.0440673828125, 0.0208587646484375, -0.036712646484375, -0.0421142578125, 0.1064453125, 0.0004532337188720703, 0.0133514404296875, 0.020294189453125, 0.042083740234375, -0.062347412109375, 0.0028533935546875, -0.0343017578125, 0.033447265625, -0.020263671875, 0.055938720703125, -0.0039520263671875, 0.006603240966796875, 0.024261474609375, 0.00841522216796875, 0.0325927734375, 0.005672454833984375, 0.00030422210693359375, -0.0313720703125, -0.0092620849609375, 0.034820556640625, -0.0128173828125, 0.004119873046875, -0.0006656646728515625, 0.04449462890625, 0.0116729736328125, -0.059814453125, 0.01125335693359375, -0.00017547607421875, -0.0345458984375, 0.03216552734375, -0.00481414794921875, -0.03826904296875, 0.0184173583984375, 0.042694091796875, -0.06695556640625, 0.00982666015625, 0.02716064453125, 0.0291595458984375, -0.023406982421875, 0.07135009765625, 0.01299285888671875, -0.0343017578125, 0.020050048828125, -0.061004638671875, 0.0499267578125, -0.0213623046875, 0.052520751953125, 0.04052734375, 0.037017822265625, 0.0012502670288085938, -0.00441741943359375, 0.0330810546875, 0.007663726806640625, -0.04156494140625, 0.0295867919921875, 0.03460693359375, 0.02154541015625, 0.006099700927734375, 0.0274505615234375, 0.0235137939453125, 0.037872314453125, -0.0272216796875, 0.01000213623046875, 0.0112762451171875, 0.005138397216796875, 0.038665771484375, -0.011932373046875, 0.0670166015625, -0.041046142578125, -0.031494140625, -0.018951416015625, -0.0005021095275878906, 0.0267333984375, 0.02947998046875, 0.004390716552734375, -0.021209716796875, -0.045257568359375, -0.00836181640625, -0.04180908203125, -0.01544952392578125, 0.0242767333984375, 0.040924072265625, 0.033599853515625, 0.00258636474609375, 0.05084228515625, -0.01464080810546875, 0.0202789306640625, -0.04217529296875, 0.01238250732421875, -0.022003173828125, 0.027618408203125, 0.01328277587890625, 0.037445068359375, -0.00623321533203125, -0.00875091552734375, -0.0374755859375, 0.0047760009765625, 0.01192474365234375, -0.056671142578125, -0.023345947265625, 0.047332763671875, -0.01519012451171875, 0.0059967041015625, -0.0174102783203125, 0.0117950439453125, 0.0156707763671875, 0.007793426513671875, -0.02294921875, 0.02203369140625, 0.01531982421875, -0.005096435546875, 0.01148223876953125, 0.0064239501953125, -0.026519775390625, -0.041748046875, 0.0236663818359375, -0.0021800994873046875, 0.010894775390625, -0.053985595703125, 0.000010013580322265625, -0.007244110107421875, -0.039794921875, 0.010162353515625, 0.04156494140625, -0.01456451416015625, 0.022918701171875, -0.0028533935546875, -0.019287109375, -0.0177764892578125, 0.005092620849609375, 0.013458251953125, -0.0236358642578125, 0.0009708404541015625, -0.016204833984375, -0.04852294921875, -0.018707275390625, -0.023040771484375, 0.0175933837890625, 0.058074951171875, -0.0014467239379882812, 0.0445556640625, 0.0313720703125, 0.00730133056640625, 0.041412353515625, -0.045745849609375, -0.0310211181640625, 0.0523681640625, -0.021209716796875, 0.0033168792724609375, -0.004169464111328125, -0.07977294921875, 0.0198516845703125, 0.00637054443359375, 0.01898193359375, 0.057342529296875, -0.0239715576171875, 0.01033782958984375, -0.00893402099609375, 0.034027099609375, -0.0189666748046875, -0.037200927734375, 0.00897216796875, 0.0168914794921875, -0.01107025146484375, -0.0028076171875, 0.0004887580871582031, 0.03143310546875, -0.02154541015625, 0.0186309814453125, 0.0277252197265625, 0.0017766952514648438, 0.001873016357421875, 0.005702972412109375, -0.019683837890625, 0.033782958984375, -0.06915283203125, -0.040863037109375, -0.0212249755859375, -0.006023406982421875, -0.04058837890625, -0.039276123046875, 0.032745361328125, 0.034271240234375, 0.006374359130859375, 0.04461669921875, -0.01279449462890625, 0.004123687744140625, -0.01025390625, 0.0158538818359375, 0.0233917236328125, -0.0640869140625, -0.038116455078125, -0.06597900390625, 0.00510406494140625, 0.0107574462890625, -0.017303466796875, -0.06768798828125, -0.041015625, -0.0129547119140625, 0.00884246826171875, -0.011322021484375, -0.0204315185546875, -0.0014963150024414062, -0.0117340087890625, 0.0226593017578125, -0.0225982666015625, -0.041351318359375, 0.019561767578125, 0.027923583984375, -0.0184173583984375, -0.0567626953125, -0.0241546630859375, 0.03314208984375, -0.0298309326171875, -0.050750732421875, -0.014495849609375, 0.0297088623046875, -0.0179443359375, -0.041748046875, -0.045257568359375, -0.004726409912109375, -0.053802490234375, -0.0189208984375, 0.030517578125, 0.0041961669921875, -0.0013170242309570312, -0.037811279296875, -0.003856658935546875, 0.01047515869140625, 0.0008034706115722656, 0.0142364501953125, -0.05303955078125, -0.053558349609375, -0.06402587890625, -0.08734130859375, 0.046234130859375, 0.00209808349609375, -0.031707763671875, -0.01143646240234375, 0.0026874542236328125, -0.0259857177734375, 0.01245880126953125, 0.0033855438232421875, -0.0311279296875, 0.019927978515625, 0.04150390625, 0.01271820068359375, 0.0235137939453125, 0.04364013671875, 0.00920867919921875, -0.02362060546875, -0.011077880859375, -0.012481689453125, 0.01093292236328125, -0.007709503173828125, 0.038299560546875, -0.01525115966796875, 0.014373779296875, -0.0288848876953125, 0.0260009765625, -0.0333251953125, -0.0190277099609375, -0.005588531494140625, -0.03314208984375, 0.0302581787109375, 0.01424407958984375, 0.019927978515625, -0.02056884765625, -0.0233917236328125, -0.02081298828125, -0.059539794921875, -0.037689208984375, 0.0190582275390625, -0.01259613037109375, 0.01050567626953125, -0.08392333984375, 0.00457000732421875, -0.000522613525390625, -0.03271484375, -0.014404296875, 0.042022705078125, -0.0298919677734375, 0.0035724639892578125, 0.06634521484375, 0.003936767578125, -0.045745849609375, -0.03826904296875, 0.08837890625, -0.039093017578125, 0.02392578125, -0.019622802734375, 0.032257080078125, 0.0677490234375, -0.01824951171875, 0.01052093505859375, -0.0289764404296875, 0.0006165504455566406, 0.0252227783203125, 0.0193328857421875, 0.0287017822265625, -0.004665374755859375, -0.036773681640625, -0.02349853515625, -0.003143310546875, 0.0070343017578125, -0.004993438720703125, -0.0345458984375, 0.0096282958984375, 0.001834869384765625, 0.033660888671875, -0.036407470703125, -0.00899505615234375, -0.033935546875, 0.0192108154296875, 0.0018310546875, 0.0029544830322265625, 0.03887939453125, 0.0066986083984375, 0.01116180419921875, -0.040985107421875, 0.00975799560546875, -0.059906005859375, 0.0545654296875, 0.031280517578125, -0.005771636962890625, 0.04638671875 ]
8d1fbea00b81846f906c21dca4b2724225954d6f
Wordpress Stackexchange Q: Get result from meta_query() between two numbers I have value like :- if ( ! empty( $_GET['filter-area'] ) ) { $f = $_GET['filter-area']; preg_match_all('!\d+!', $f, $matches); foreach($matches as $key) { $first_val = $key[0]; $second_val = $key[1]; } } Now i need to search to get all date between this two values. So, I tried this way, but it take one value. if ( ! empty( $_GET['filter-area'] ) ) { $meta[] = array( 'key' => REALIA_PROPERTY_PREFIX . 'attributes_area', 'value' => $first_val, 'compare' => '>=', 'type' => 'NUMERIC', ); } How can search by tow value A: Multiple meta values can be compared with BETWEEN with an array value: 'meta_query' => array( array( 'key' => REALIA_PROPERTY_PREFIX .'attributes_area', 'value' => array( $first_val, $second_val ), 'type' => 'numeric', 'compare' => 'BETWEEN', ), // inner array. ), // outer array. You can see this in Developer Doc.
Q: Get result from meta_query() between two numbers I have value like :- if ( ! empty( $_GET['filter-area'] ) ) { $f = $_GET['filter-area']; preg_match_all('!\d+!', $f, $matches); foreach($matches as $key) { $first_val = $key[0]; $second_val = $key[1]; } } Now i need to search to get all date between this two values. So, I tried this way, but it take one value. if ( ! empty( $_GET['filter-area'] ) ) { $meta[] = array( 'key' => REALIA_PROPERTY_PREFIX . 'attributes_area', 'value' => $first_val, 'compare' => '>=', 'type' => 'NUMERIC', ); } How can search by tow value A: Multiple meta values can be compared with BETWEEN with an array value: 'meta_query' => array( array( 'key' => REALIA_PROPERTY_PREFIX .'attributes_area', 'value' => array( $first_val, $second_val ), 'type' => 'numeric', 'compare' => 'BETWEEN', ), // inner array. ), // outer array. You can see this in Developer Doc.
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:462574", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215517" }
[ 0.0161895751953125, -0.03240966796875, 0.01483154296875, -0.01003265380859375, -0.0142059326171875, -0.01219940185546875, 0.0178375244140625, -0.003498077392578125, 0.060150146484375, 0.0252532958984375, -0.04791259765625, -0.0008039474487304688, -0.024200439453125, -0.01253509521484375, -0.023284912109375, -0.023651123046875, 0.028076171875, -0.0004525184631347656, -0.004673004150390625, -0.01137542724609375, 0.0212554931640625, 0.0121612548828125, -0.02874755859375, 0.05084228515625, 0.037506103515625, -0.042144775390625, 0.061248779296875, -0.0306243896484375, 0.034759521484375, -0.01317596435546875, 0.0225067138671875, -0.0164947509765625, -0.0094757080078125, 0.0006852149963378906, 0.0242919921875, -0.004207611083984375, 0.0112457275390625, 0.0065155029296875, 0.0291748046875, -0.001979827880859375, 0.0309295654296875, -0.0201263427734375, -0.058441162109375, 0.058013916015625, -0.0498046875, -0.035400390625, 0.035858154296875, -0.01381683349609375, 0.0252838134765625, 0.032257080078125, -0.005489349365234375, 0.006526947021484375, -0.01751708984375, 0.049041748046875, -0.010589599609375, -0.0229644775390625, -0.0229644775390625, -0.0195770263671875, 0.0276336669921875, 0.0207672119140625, -0.004734039306640625, -0.0023651123046875, 0.01090240478515625, -0.0116424560546875, -0.0250701904296875, -0.0211944580078125, -0.016571044921875, 0.009674072265625, 0.0194854736328125, -0.0347900390625, 0.0192718505859375, 0.0235595703125, -0.0024967193603515625, -0.078125, 0.041168212890625, 0.044158935546875, -0.052093505859375, -0.0275421142578125, 0.0015382766723632812, 0.01406097412109375, -0.0057373046875, -0.00860595703125, -0.0297393798828125, -0.00244903564453125, 0.012420654296875, 0.02081298828125, -0.0218048095703125, -0.01497650146484375, -0.057647705078125, -0.044281005859375, -0.03729248046875, -0.037689208984375, -0.08172607421875, -0.0013828277587890625, 0.01184844970703125, -0.043914794921875, -0.006397247314453125, 0.040130615234375, -0.044830322265625, -0.00830078125, -0.0280303955078125, 0.0013942718505859375, -0.0137176513671875, -0.026092529296875, -0.004459381103515625, 0.0156707763671875, 0.0016813278198242188, 0.050140380859375, 0.0439453125, 0.03704833984375, -0.001262664794921875, 0.01279449462890625, -0.0286407470703125, -0.0419921875, -0.01428985595703125, 0.032745361328125, -0.035186767578125, 0.004184722900390625, 0.00572967529296875, -0.03277587890625, 0.036468505859375, 0.02606201171875, 0.00054931640625, -0.0016431808471679688, 0.0254974365234375, 0.0281829833984375, -0.0362548828125, -0.032867431640625, -0.044189453125, 0.06353759765625, 0.0050506591796875, -0.00933837890625, -0.03955078125, 0.00975799560546875, -0.042205810546875, -0.01113128662109375, 0.031005859375, -0.048126220703125, 0.014801025390625, 0.007808685302734375, -0.0024929046630859375, -0.04248046875, 0.01409149169921875, 0.01461029052734375, -0.0281219482421875, 0.0152435302734375, 0.03131103515625, -0.004848480224609375, -0.0238189697265625, -0.05377197265625, -0.00029540061950683594, -0.0203399658203125, 0.0435791015625, -0.00771331787109375, -0.07257080078125, -0.0016374588012695312, 0.0221405029296875, -0.0229034423828125, -0.047607421875, -0.04736328125, -0.0032749176025390625, 0.01399993896484375, 0.00234222412109375, -0.051025390625, -0.06304931640625, -0.0204315185546875, -0.0250701904296875, -0.01348876953125, 0.03515625, 0.03570556640625, -0.01128387451171875, 0.0017614364624023438, 0.062286376953125, 0.01543426513671875, -0.017120361328125, 0.0078125, 0.0117340087890625, 0.0094451904296875, -0.00432586669921875, 0.03228759765625, -0.01132965087890625, -0.033355712890625, 0.0169830322265625, -0.0007104873657226562, -0.028961181640625, 0.036712646484375, 0.00879669189453125, 0.02532958984375, -0.019500732421875, 0.004642486572265625, 0.02874755859375, 0.036834716796875, -0.01971435546875, 0.018951416015625, 0.01654052734375, -0.0084381103515625, -0.005733489990234375, 0.00864410400390625, 0.0109405517578125, -0.03314208984375, 0.02081298828125, 0.03216552734375, -0.019134521484375, -0.0025043487548828125, -0.0775146484375, 0.0274810791015625, -0.0372314453125, 0.040740966796875, -0.07403564453125, 0.038848876953125, 0.0400390625, -0.018463134765625, -0.028564453125, 0.041961669921875, 0.048919677734375, -0.0098419189453125, 0.015167236328125, 0.0198516845703125, 0.0124969482421875, 0.006439208984375, -0.00765228271484375, -0.004581451416015625, -0.01708984375, -0.00350189208984375, 0.04034423828125, -0.0204010009765625, -0.00826263427734375, -0.01401519775390625, 0.0206756591796875, 0.0157928466796875, -0.044189453125, -0.0038394927978515625, 0.06695556640625, 0.0202178955078125, -0.042266845703125, 0.0289764404296875, 0.01398468017578125, -0.014251708984375, -0.0304107666015625, 0.033111572265625, 0.0243072509765625, 0.0523681640625, 0.0164642333984375, 0.02447509765625, -0.00846099853515625, -0.10015869140625, 0.000037550926208496094, -0.007297515869140625, 0.007205963134765625, 0.00719451904296875, -0.023468017578125, -0.03741455078125, 0.03546142578125, 0.01061248779296875, -0.01200103759765625, 0.02752685546875, -0.0159912109375, -0.004547119140625, 0.0176849365234375, -0.00389862060546875, -0.0026416778564453125, -0.016876220703125, -0.0271453857421875, -0.0018491744995117188, 0.007476806640625, 0.01407623291015625, 0.031890869140625, 0.028350830078125, -0.01910400390625, 0.0078887939453125, 0.006298065185546875, 0.019073486328125, 0.007648468017578125, -0.029510498046875, -0.0648193359375, 0.0170745849609375, -0.0021152496337890625, 0.028900146484375, 0.0290069580078125, -0.0251312255859375, 0.005954742431640625, 0.039825439453125, -0.028350830078125, -0.0107421875, 0.01361083984375, 0.0290374755859375, -0.01163482666015625, 0.006561279296875, -0.017669677734375, 0.0025691986083984375, 0.028900146484375, 0.01288604736328125, -0.0394287109375, 0.03302001953125, -0.023681640625, -0.0215911865234375, -0.024932861328125, -0.01194000244140625, 0.0226898193359375, -0.0154266357421875, 0.0216827392578125, 0.052581787109375, -0.00922393798828125, 0.00510406494140625, -0.017547607421875, 0.0004603862762451172, -0.023101806640625, 0.024261474609375, -0.02020263671875, -0.039337158203125, -0.043121337890625, -0.0028553009033203125, 0.0243988037109375, -0.037078857421875, 0.056671142578125, -0.0007052421569824219, -0.00670623779296875, -0.0019779205322265625, -0.09051513671875, -0.07635498046875, 0.0065765380859375, -0.0275726318359375, -0.0404052734375, -0.009246826171875, -0.0223541259765625, 0.021728515625, -0.0194244384765625, -0.00905609130859375, 0.018218994140625, -0.0016031265258789062, -0.07916259765625, -0.041748046875, -0.0465087890625, 0.01267242431640625, -0.027679443359375, -0.02020263671875, 0.01036834716796875, 0.050994873046875, -0.0066375732421875, -0.07281494140625, -0.026763916015625, 0.0265960693359375, -0.0221405029296875, -0.01210784912109375, -0.025665283203125, -0.01056671142578125, -0.00569915771484375, -0.0141143798828125, 0.0372314453125, 0.007740020751953125, -0.01580810546875, 0.014923095703125, 0.039093017578125, 0.01922607421875, 0.0537109375, -0.0140380859375, -0.0660400390625, 0.057952880859375, 0.0447998046875, -0.003326416015625, -0.0132293701171875, -0.004268646240234375, -0.03350830078125, -0.0002753734588623047, 0.040252685546875, -0.0177764892578125, 0.005046844482421875, -0.01137542724609375, -0.04205322265625, -0.0086212158203125, 0.0080413818359375, -0.06903076171875, 0.05535888671875, -0.00013649463653564453, 0.007801055908203125, -0.007640838623046875, -0.0151824951171875, -0.0341796875, 0.0313720703125, -0.0157623291015625, 0.004680633544921875, 0.005970001220703125, -0.020782470703125, -0.018218994140625, 0.007137298583984375, 0.06280517578125, 0.035888671875, 0.024200439453125, -0.04461669921875, -0.046875, -0.08782958984375, 0.02862548828125, -0.03778076171875, -0.0099639892578125, 0.0036487579345703125, 0.0029468536376953125, 0.0046844482421875, 0.004169464111328125, -0.04644775390625, -0.0071258544921875, -0.08953857421875, 0.032073974609375, 0.01084136962890625, -0.0225982666015625, -0.01222991943359375, 0.00846099853515625, -0.0516357421875, -0.046966552734375, 0.01175689697265625, -0.0001533031463623047, -0.004505157470703125, 0.0298004150390625, 0.00418853759765625, 0.01467132568359375, 0.01255035400390625, -0.016937255859375, -0.00881195068359375, -0.01690673828125, 0.031646728515625, 0.039031982421875, -0.004119873046875, 0.00707244873046875, 0.002101898193359375, 0.03826904296875, -0.01042938232421875, 0.019805908203125, 0.023468017578125, 0.02392578125, 0.0309600830078125, 0.006122589111328125, 0.020538330078125, -0.0249481201171875, -0.03729248046875, -0.06903076171875, 0.0299530029296875, -0.0083160400390625, -0.033935546875, 0.0174560546875, -0.054443359375, 0.0310516357421875, 0.01291656494140625, 0.011627197265625, 0.0072784423828125, 0.025482177734375, -0.031890869140625, -0.005657196044921875, 0.0251922607421875, -0.01265716552734375, 0.040435791015625, 0.04168701171875, -0.023468017578125, -0.01299285888671875, 0.00989532470703125, 0.00960540771484375, -0.052459716796875, -0.0132598876953125, -0.020111083984375, 0.021728515625, -0.0021266937255859375, -0.0093231201171875, -0.0494384765625, -0.0307464599609375, 0.07415771484375, -0.031951904296875, 0.04180908203125, -0.01491546630859375, 0.035858154296875, 0.0107574462890625, -0.0214080810546875, 0.027130126953125, 0.0124359130859375, -0.03399658203125, 0.0218353271484375, -0.0146636962890625, -0.0189208984375, -0.032257080078125, 0.0716552734375, -0.00225830078125, 0.017059326171875, -0.05865478515625, -0.004123687744140625, -0.00261688232421875, -0.03485107421875, 0.063232421875, 0.036834716796875, -0.0181884765625, 0.0199737548828125, 0.030731201171875, 0.0152130126953125, 0.01983642578125, 0.01139068603515625, -0.034515380859375, 0.05816650390625, -0.0262451171875, -0.01538848876953125, 0.0207366943359375, 0.007030487060546875, -0.0090484619140625, -0.01910400390625, -0.0428466796875, -0.004093170166015625, 0.0152587890625, 0.01166534423828125, 0.021148681640625, -0.031768798828125, -0.004261016845703125, 0.0372314453125, -0.03314208984375, -0.00299072265625, -0.03509521484375, 0.0180206298828125, -0.03863525390625, 0.01082611083984375, -0.015655517578125, -0.0014333724975585938, -0.0594482421875, 0.11602783203125, -0.0360107421875, 0.040313720703125, -0.0241241455078125, 0.01739501953125, -0.0211334228515625, 0.044219970703125, 0.0182952880859375, -0.031768798828125, -0.0027828216552734375, 0.04229736328125, -0.0225982666015625, -0.01403045654296875, -0.0028095245361328125, 0.01171112060546875, -0.006504058837890625, 0.0271759033203125, 0.017730712890625, 0.0209197998046875, 0.0253448486328125, -0.0208892822265625, 0.002498626708984375, 0.04180908203125, 0.01412200927734375, -0.02569580078125, -0.01230621337890625, 0.01532745361328125, 0.0452880859375, 0.0092010498046875, 0.0217742919921875, -0.010589599609375, 0.038818359375, -0.04205322265625, 0.047698974609375, -0.0294036865234375, -0.0242767333984375, 0.00992584228515625, -0.0007638931274414062, -0.025390625, -0.03472900390625, -0.0221405029296875, -0.01221466064453125, -0.01091766357421875, 0.06707763671875, -0.029815673828125, 0.02679443359375, -0.043212890625, 0.020538330078125, -0.0254669189453125, -0.00022280216217041016, 0.0439453125, 0.035003662109375, 0.0206146240234375, -0.0227813720703125, -0.040374755859375, -0.023468017578125, 0.01348114013671875, -0.0180206298828125, 0.01337432861328125, 0.00736236572265625, -0.0159454345703125, 0.058349609375, -0.0090789794921875, 0.022796630859375, 0.03631591796875, -0.031982421875, -0.050262451171875, 0.037872314453125, 0.00716400146484375, 0.0280914306640625, 0.0165863037109375, 0.04931640625, 0.0259857177734375, 0.00007551908493041992, -0.05230712890625, -0.02886962890625, 0.01214599609375, -0.0232086181640625, -0.0218048095703125, -0.01128387451171875, -0.046478271484375, -0.0396728515625, 0.018463134765625, -0.0013513565063476562, -0.001552581787109375, -0.0060882568359375, -0.007633209228515625, -0.01369476318359375, -0.00009357929229736328, 0.033111572265625, 0.0297393798828125, 0.005039215087890625, 0.0007376670837402344, 0.001251220703125, -0.0288543701171875, -0.03314208984375, 0.013641357421875, 0.0164642333984375, 0.0214385986328125, -0.00848388671875, -0.0308685302734375, 0.0227203369140625, 0.04632568359375, -0.006053924560546875, 0.0355224609375, -0.00862884521484375, 0.016082763671875, 0.07159423828125, -0.0248565673828125, 0.00830841064453125, 0.03875732421875, 0.05096435546875, -0.004199981689453125, 0.00791168212890625, 0.051910400390625, -0.00872802734375, -0.040191650390625, -0.0029239654541015625, -0.0189056396484375, -0.0308990478515625, -0.0028514862060546875, -0.005084991455078125, 0.0236358642578125, 0.007091522216796875, 0.023834228515625, -0.01204681396484375, 0.007568359375, -0.047119140625, -0.0036525726318359375, -0.03314208984375, -0.007358551025390625, 0.038482666015625, 0.0023899078369140625, -0.0139617919921875, -0.00931549072265625, -0.00479888916015625, -0.021392822265625, -0.002262115478515625, 0.011962890625, -0.00876617431640625, -0.003818511962890625, 0.0214996337890625, -0.0103912353515625, -0.03558349609375, -0.1026611328125, -0.05902099609375, 0.009246826171875, -0.06719970703125, -0.0219879150390625, 0.0006103515625, 0.09844970703125, 0.0188751220703125, 0.0372314453125, -0.0716552734375, -0.021575927734375, 0.049224853515625, -0.0367431640625, -0.00788116455078125, -0.0211029052734375, 0.00762176513671875, 0.0208892822265625, 0.00919342041015625, -0.0133056640625, -0.015655517578125, 0.0009126663208007812, 0.01312255859375, 0.01306915283203125, 0.004932403564453125, -0.0270843505859375, 0.06024169921875, 0.0201263427734375, -0.0252532958984375, 0.041259765625, 0.0103607177734375, -0.04010009765625, -0.037506103515625, 0.026153564453125, -0.04901123046875, -0.00021374225616455078, 0.0251922607421875, -0.03985595703125, -0.0101776123046875, -0.01155853271484375, -0.0113372802734375, -0.0048980712890625, -0.00011980533599853516, -0.0180816650390625, -0.03759765625, -0.003078460693359375, 0.019775390625, -0.005512237548828125, 0.01491546630859375, -0.0494384765625, -0.040313720703125, -0.006374359130859375, 0.09283447265625, 0.0198974609375, 0.00112152099609375, -0.02166748046875, -0.0183258056640625, 0.00994110107421875, 0.00452423095703125, -0.0233154296875, 0.041595458984375, 0.0234527587890625, 0.06005859375, 0.07501220703125, -0.057403564453125, 0.02789306640625, -0.0234222412109375, 0.029052734375, 0.0386962890625, 0.0016984939575195312, 0.01434326171875, 0.0038967132568359375, 0.01003265380859375, 0.017547607421875, -0.015655517578125, 0.0051116943359375, -0.06463623046875, 0.01284027099609375, 0.017242431640625, 0.014892578125, -0.0295257568359375, -0.026458740234375, -0.01800537109375, 0.0216064453125, 0.013580322265625, 0.0447998046875, 0.061492919921875, 0.0216064453125, 0.026214599609375, -0.01262664794921875, 0.0302276611328125, -0.0206756591796875, -0.007091522216796875, 0.00839996337890625, -0.0159759521484375, -0.0005178451538085938, -0.0567626953125, 0.0192108154296875, 0.053314208984375, 0.021453857421875, -0.022369384765625, -0.02362060546875, 0.006511688232421875, -0.026153564453125, -0.0227508544921875, -0.0283660888671875, -0.0408935546875, 0.0140380859375, 0.0234222412109375, -0.0253448486328125, -0.00928497314453125, 0.001819610595703125, -0.0096435546875, -0.0022640228271484375, 0.031829833984375, 0.0016298294067382812, 0.0182342529296875, -0.060516357421875, 0.050048828125, 0.0307769775390625, 0.048431396484375, -0.0028514862060546875, 0.07275390625, 0.004547119140625, -0.023590087890625, -0.01526641845703125, 0.02294921875, 0.0061187744140625, 0.029693603515625, -0.01100921630859375, 0.0215301513671875, -0.01177978515625, 0.03411865234375, 0.02471923828125, 0.043304443359375, 0.048095703125, 0.0321044921875, -0.0055694580078125, 0.0148773193359375, 0.052398681640625, -0.021881103515625, -0.039642333984375, -0.05322265625, 0.0221099853515625, 0.034698486328125, 0.0215911865234375, 0.00664520263671875, 0.0031375885009765625, 0.043060302734375, 0.006481170654296875, 0.015472412109375, 0.016510009765625, 0.0236663818359375, -0.0201416015625, 0.00208282470703125, -0.049652099609375, 0.0202789306640625, 0.036834716796875, 0.0293426513671875, -0.01070404052734375, -0.0210723876953125, -0.0188140869140625, 0.0115814208984375, -0.0088043212890625, 0.029052734375, 0.0229949951171875, -0.081787109375, 0.01049041748046875, 0.06768798828125, 0.0146026611328125, 0.0237884521484375, -0.00716400146484375, -0.01280975341796875, -0.044952392578125, -0.00803375244140625, 0.0009775161743164062, -0.0035533905029296875, -0.006710052490234375, 0.015777587890625, 0.01390838623046875, 0.00830078125, 0.0136566162109375, 0.0258331298828125, -0.0198516845703125, -0.0102386474609375, 0.031829833984375, -0.0241851806640625, -0.00725555419921875, -0.0014600753784179688, 0.0670166015625, -0.015167236328125, 0.053802490234375, -0.073974609375, -0.036224365234375, 0.0030498504638671875, 0.019287109375, -0.00591278076171875, 0.01800537109375, -0.02337646484375, -0.0036468505859375, -0.0191650390625, -0.04052734375, 0.05035400390625, 0.0343017578125, 0.025299072265625, -0.0013036727905273438, 0.026519775390625, -0.01666259765625, 0.0304718017578125, -0.0013017654418945312, 0.07684326171875, 0.037841796875, -0.052886962890625, 0.050872802734375, -0.0288543701171875, -0.0232696533203125, 0.04693603515625, -0.01136016845703125, -0.006069183349609375, -0.023193359375, 0.10516357421875, 0.01100921630859375, 0.04058837890625, 0.03887939453125, -0.007266998291015625, 0.0139923095703125, 0.02777099609375, -0.02001953125, -0.0021038055419921875, -0.01074981689453125, -0.00936126708984375, -0.047271728515625, -0.006946563720703125, 0.0236663818359375, -0.0110321044921875, 0.0200958251953125, 0.01263427734375, -0.01032257080078125, 0.0140838623046875, 0.03125, -0.066650390625, 0.0293731689453125, 0.00978851318359375, 0.0230865478515625, 0.007167816162109375, -0.0261993408203125, -0.007091522216796875, 0.018646240234375, -0.006870269775390625, -0.028076171875, -0.034210205078125, 0.0241241455078125, -0.027923583984375, 0.0011644363403320312, 0.050384521484375, -0.01332855224609375, -0.0229644775390625, -0.0140380859375, 0.0028743743896484375, 0.0159759521484375, -0.031951904296875, -0.003467559814453125, 0.004276275634765625, 0.0045623779296875, -0.04266357421875, -0.051116943359375, 0.020294189453125, -0.0256805419921875, -0.034393310546875, 0.038299560546875, -0.005069732666015625, 0.0254364013671875, -0.02520751953125, -0.08404541015625, 0.0760498046875, -0.004268646240234375, -0.021728515625, -0.05364990234375, -0.04901123046875, 0.0172576904296875, 0.003173828125, -0.02117919921875, -0.0229949951171875, -0.072021484375, 0.017486572265625, 0.046051025390625, -0.0227813720703125, 0.035675048828125, 0.036895751953125, -0.09765625, 0.025238037109375, -0.004817962646484375, 0.047576904296875, -0.0225677490234375, 0.023651123046875, 0.0250244140625, 0.0265350341796875, 0.004604339599609375, 0.060150146484375, 0.04473876953125, -0.02984619140625, 0.015869140625, -0.00643157958984375, -0.0775146484375, -0.01114654541015625, 0.060089111328125, 0.077392578125, 0.03857421875, -0.037872314453125, 0.0218658447265625, -0.0005006790161132812, 0.017181396484375, -0.0286407470703125, -0.018829345703125, -0.04461669921875, -0.0531005859375, -0.01497650146484375, 0.0208740234375, 0.07598876953125, -0.0294036865234375, 0.0308685302734375, -0.015411376953125, 0.0288238525390625, -0.0218048095703125, -0.03857421875, 0.02532958984375, 0.0521240234375, -0.058502197265625, -0.050872802734375, -0.0008082389831542969, -0.01007843017578125, -0.01535797119140625, -0.032196044921875, 0.0015134811401367188, -0.022674560546875, 0.053009033203125, 0.01236724853515625, 0.035797119140625, -0.051177978515625, 0.0572509765625, -0.014404296875, -0.0310821533203125, 0.00624847412109375, 0.0107269287109375, 0.0020885467529296875, -0.0304718017578125, -0.00940704345703125, 0.005840301513671875, 0.051025390625, -0.015838623046875, 0.1263427734375, 0.005535125732421875, 0.0482177734375, -0.0166015625, -0.0017681121826171875, 0.0007295608520507812, 0.003810882568359375, 0.01111602783203125, -0.0250396728515625, -0.027130126953125, -0.047943115234375, 0.00943756103515625, 0.056396484375, -0.014678955078125, 0.032745361328125 ]
e6698a50ab46ba6d7ca5095c666f404b1b403fd1
Wordpress Stackexchange Q: single.php change into a modal popup bootstrap wordpress I want to change the modal popup single.php be bootstrapping , so when clicked readmore on post , just turn up the single post with the display popup instead to a new page and there are display how many view the post in view . A: Check the original answer Here. <div class="container" style="margin-top:20px; min-height:500px;" > <div class="row"> <?php $labels = new WP_Query(array( 'post_type' => 'slider', 'posts_per_page' => 1000 )); while ( $labels->have_posts() ) : $labels->the_post(); ?> <?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(5600,1000 ), false, '' ); ?> <a href="#myModal-<? the_ID(); ?>" data-toggle="modal" > <div class="span2" style="background: #09F url(<?php echo $src[0]; ?>) center no-repeat !important;"> <?php the_title();?> </div> </a> <div id="myModal-<? the_ID(); ?>" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <h3 id="myModalLabel"> <?php the_title();?> </h3> <p> <?php the_content();?> </p> </div> <div class="modal-body"> <?php the_post_thumbnail(); ?> </div> <div class="modal-footer"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> </div>
Q: single.php change into a modal popup bootstrap wordpress I want to change the modal popup single.php be bootstrapping , so when clicked readmore on post , just turn up the single post with the display popup instead to a new page and there are display how many view the post in view . A: Check the original answer Here. <div class="container" style="margin-top:20px; min-height:500px;" > <div class="row"> <?php $labels = new WP_Query(array( 'post_type' => 'slider', 'posts_per_page' => 1000 )); while ( $labels->have_posts() ) : $labels->the_post(); ?> <?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(5600,1000 ), false, '' ); ?> <a href="#myModal-<? the_ID(); ?>" data-toggle="modal" > <div class="span2" style="background: #09F url(<?php echo $src[0]; ?>) center no-repeat !important;"> <?php the_title();?> </div> </a> <div id="myModal-<? the_ID(); ?>" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <h3 id="myModalLabel"> <?php the_title();?> </h3> <p> <?php the_content();?> </p> </div> <div class="modal-body"> <?php the_post_thumbnail(); ?> </div> <div class="modal-footer"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> </div>
wordpress
{ "language": "en", "length": 156, "provenance": "stackexchange_00019.jsonl.gz:462623", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215652" }
[ 0.06011962890625, -0.012451171875, 0.00852203369140625, -0.02789306640625, 0.025299072265625, -0.03594970703125, 0.063720703125, -0.0082855224609375, 0.01438140869140625, 0.01012420654296875, -0.0280303955078125, 0.0015392303466796875, 0.01099395751953125, -0.03558349609375, 0.023590087890625, -0.00804901123046875, 0.0265655517578125, 0.0127105712890625, 0.032196044921875, -0.00923919677734375, -0.00012671947479248047, 0.003143310546875, 0.025543212890625, 0.0574951171875, -0.006038665771484375, -0.0037326812744140625, 0.11163330078125, -0.04913330078125, 0.01122283935546875, -0.0238494873046875, 0.01776123046875, -0.0157623291015625, 0.028961181640625, -0.005939483642578125, 0.0030422210693359375, 0.000988006591796875, -0.004367828369140625, 0.007152557373046875, 0.0169219970703125, 0.006320953369140625, 0.0203399658203125, -0.0235748291015625, -0.0063934326171875, 0.0010099411010742188, -0.01800537109375, -0.029541015625, 0.019683837890625, -0.02508544921875, 0.0233612060546875, -0.0203094482421875, 0.0189361572265625, -0.0175933837890625, 0.036956787109375, -0.06439208984375, -0.02337646484375, -0.0026226043701171875, -0.035552978515625, -0.0235443115234375, 0.0252532958984375, 0.0147705078125, 0.0148162841796875, -0.030548095703125, 0.0104522705078125, -0.006500244140625, -0.0159759521484375, -0.0150146484375, -0.061492919921875, 0.03704833984375, -0.033416748046875, -0.03228759765625, 0.020355224609375, -0.0261383056640625, -0.006198883056640625, -0.03485107421875, -0.007175445556640625, 0.08062744140625, -0.03936767578125, 0.0283355712890625, 0.037933349609375, -0.005985260009765625, 0.04071044921875, 0.05255126953125, 0.005451202392578125, -0.0204620361328125, 0.015594482421875, -0.0168914794921875, -0.00931549072265625, -0.025543212890625, -0.047027587890625, 0.00130462646484375, -0.047393798828125, -0.007152557373046875, 0.005290985107421875, -0.004425048828125, -0.047637939453125, 0.0263519287109375, -0.01806640625, 0.00047397613525390625, -0.00580596923828125, -0.0255126953125, 0.0241241455078125, -0.02496337890625, -0.00801849365234375, -0.001987457275390625, -0.0101470947265625, 0.0531005859375, 0.034515380859375, 0.0271759033203125, 0.010833740234375, -0.01479339599609375, 0.01140594482421875, 0.013397216796875, -0.036346435546875, 0.0091552734375, -0.037322998046875, -0.0154266357421875, -0.06842041015625, -0.0008630752563476562, -0.01467132568359375, 0.01678466796875, -0.0038356781005859375, 0.00897979736328125, -0.00991058349609375, 0.0167388916015625, -0.002254486083984375, -0.00324249267578125, 0.0036640167236328125, -0.037628173828125, -0.01398468017578125, 0.0328369140625, -0.03533935546875, -0.023406982421875, 0.059234619140625, 0.06927490234375, 0.038604736328125, -0.0269012451171875, -0.021942138671875, -0.0015163421630859375, 0.0009326934814453125, 0.0008683204650878906, 0.0187530517578125, -0.027557373046875, 0.00200653076171875, 0.007232666015625, -0.049560546875, 0.0162811279296875, 0.017303466796875, 0.003509521484375, -0.0265655517578125, -0.06298828125, -0.0177001953125, 0.006061553955078125, 0.040771484375, 0.01690673828125, 0.007572174072265625, 0.03094482421875, 0.0928955078125, -0.0216522216796875, -0.061492919921875, -0.0458984375, 0.04742431640625, 0.01168060302734375, 0.0498046875, 0.0246124267578125, 0.0214385986328125, -0.006938934326171875, -0.101806640625, -0.01555633544921875, 0.00576019287109375, 0.02642822265625, 0.002872467041015625, -0.016082763671875, 0.01029205322265625, 0.0041656494140625, -0.006076812744140625, 0.0101776123046875, -0.01161956787109375, 0.013641357421875, 0.0379638671875, 0.0207061767578125, -0.031982421875, -0.039154052734375, 0.07867431640625, -0.03558349609375, -0.067626953125, 0.0606689453125, 0.0040435791015625, 0.045989990234375, 0.00862884521484375, -0.002777099609375, 0.0498046875, 0.03216552734375, -0.031951904296875, 0.00537872314453125, 0.007694244384765625, -0.01105499267578125, -0.062103271484375, -0.0166473388671875, -0.0230712890625, 0.03131103515625, 0.0300750732421875, 0.01218414306640625, -0.0091552734375, 0.044677734375, -0.0175628662109375, -0.014739990234375, -0.0035991668701171875, -0.01016998291015625, -0.06158447265625, -0.0008955001831054688, 0.040679931640625, 0.01152801513671875, -0.0166473388671875, -0.036224365234375, 0.0009407997131347656, -0.013671875, -0.0186004638671875, 0.01357269287109375, -0.039459228515625, 0.0301361083984375, -0.0237884521484375, -0.0199737548828125, -0.03314208984375, 0.06353759765625, 0.0765380859375, 0.0006170272827148438, -0.012969970703125, -0.0289764404296875, 0.024261474609375, 0.005130767822265625, -0.07086181640625, 0.039398193359375, 0.00963592529296875, -0.0032405853271484375, -0.04779052734375, -0.01800537109375, -0.02862548828125, -0.0833740234375, 0.006809234619140625, 0.07867431640625, 0.0102691650390625, 0.023834228515625, -0.0157928466796875, 0.05364990234375, 0.0061492919921875, 0.0310516357421875, 0.034942626953125, 0.00036525726318359375, -0.01442718505859375, -0.0195465087890625, 0.01143646240234375, -0.0160980224609375, 0.046478271484375, 0.006610870361328125, 0.01329803466796875, 0.021026611328125, -0.0045928955078125, 0.0162353515625, -0.0294189453125, 0.01198577880859375, -0.00952911376953125, -0.005077362060546875, 0.00684356689453125, -0.00926971435546875, -0.0033779144287109375, 0.0005488395690917969, 0.00421905517578125, -0.006420135498046875, -0.025970458984375, 0.006679534912109375, 0.0167236328125, -0.0079498291015625, 0.0031280517578125, -0.0053558349609375, -0.0247955322265625, 0.0021152496337890625, -0.038726806640625, 0.012664794921875, 0.0209503173828125, -0.0254974365234375, -0.007228851318359375, -0.004306793212890625, -0.0474853515625, -0.015045166015625, 0.03619384765625, -0.02886962890625, -0.0219573974609375, 0.01079559326171875, -0.0005850791931152344, -0.025390625, 0.0146636962890625, 0.0002722740173339844, -0.04302978515625, 0.035552978515625, 0.016387939453125, -0.047637939453125, 0.017791748046875, -0.04742431640625, 0.046905517578125, -0.035736083984375, 0.05291748046875, 0.051422119140625, -0.021484375, 0.0328369140625, 0.0032291412353515625, -0.02032470703125, -0.018829345703125, 0.0223846435546875, -0.01282501220703125, -0.00829315185546875, -0.0307159423828125, 0.036407470703125, 0.00934600830078125, 0.04852294921875, -0.0321044921875, -0.068115234375, -0.0120391845703125, 0.016571044921875, -0.07806396484375, -0.05279541015625, 0.0208740234375, -0.0928955078125, 0.034393310546875, -0.0101470947265625, -0.046417236328125, -0.0294342041015625, 0.052978515625, 0.0174713134765625, -0.05267333984375, 0.01399993896484375, -0.033782958984375, -0.0184326171875, -0.04119873046875, 0.0289306640625, -0.00324249267578125, 0.0249786376953125, 0.01209259033203125, 0.0102996826171875, 0.01058197021484375, -0.0097503662109375, 0.044677734375, 0.04473876953125, -0.00807952880859375, -0.01190185546875, -0.00794219970703125, -0.01279449462890625, -0.03790283203125, 0.01151275634765625, -0.01187896728515625, -0.027069091796875, 0.006923675537109375, -0.0265045166015625, -0.0107421875, 0.0063323974609375, 0.0096435546875, 0.0073699951171875, 0.0180511474609375, 0.04608154296875, 0.0256195068359375, -0.0037899017333984375, -0.006740570068359375, -0.0303192138671875, -0.06353759765625, -0.01947021484375, 0.0482177734375, -0.0015153884887695312, -0.0252532958984375, -0.01131439208984375, 0.022216796875, 0.01384735107421875, 0.0215911865234375, 0.00775909423828125, -0.00939178466796875, -0.008392333984375, -0.0018520355224609375, -0.020355224609375, -0.01025390625, -0.03509521484375, 0.01137542724609375, -0.0080108642578125, -0.017486572265625, -0.0174102783203125, 0.037445068359375, -0.0043792724609375, -0.04217529296875, 0.03289794921875, -0.0218353271484375, 0.013031005859375, -0.0263519287109375, -0.0269775390625, -0.017059326171875, 0.07513427734375, -0.07623291015625, -0.006092071533203125, -0.008880615234375, -0.00994110107421875, -0.006725311279296875, -0.006526947021484375, -0.07177734375, 0.0058441162109375, -0.11572265625, 0.0298919677734375, -0.0007252693176269531, -0.005428314208984375, -0.02825927734375, 0.04150390625, -0.0703125, -0.0295562744140625, 0.0394287109375, -0.006145477294921875, 0.0006070137023925781, 0.025543212890625, -0.0304107666015625, 0.0280609130859375, -0.0212860107421875, -0.01953125, -0.09124755859375, -0.01837158203125, 0.0228729248046875, 0.05224609375, -0.0231781005859375, -0.0002949237823486328, -0.0494384765625, 0.044769287109375, 0.032470703125, 0.022003173828125, -0.004795074462890625, -0.0297088623046875, 0.0141754150390625, 0.0084686279296875, 0.00807952880859375, 0.004848480224609375, -0.002452850341796875, -0.00959014892578125, -0.058197021484375, 0.00493621826171875, -0.0247650146484375, 0.0186004638671875, 0.00983428955078125, -0.0235137939453125, -0.0728759765625, -0.021026611328125, -0.0175323486328125, 0.01537322998046875, -0.0009493827819824219, -0.0093841552734375, -0.0211029052734375, -0.09588623046875, 0.038055419921875, 0.0071868896484375, -0.0257415771484375, 0.01480865478515625, 0.020721435546875, 0.0139617919921875, -0.0253448486328125, -0.0543212890625, 0.01535797119140625, 0.044342041015625, 0.035003662109375, 0.01849365234375, -0.00951385498046875, -0.03741455078125, 0.059112548828125, 0.006496429443359375, -0.00266265869140625, 0.0126800537109375, 0.048919677734375, -0.006122589111328125, -0.035369873046875, 0.04217529296875, -0.0082855224609375, -0.035247802734375, 0.02459716796875, -0.01270294189453125, 0.0021991729736328125, 0.0194854736328125, 0.00942230224609375, -0.0166473388671875, -0.004497528076171875, -0.015960693359375, -0.0255584716796875, 0.017547607421875, 0.0294036865234375, 0.032928466796875, 0.016693115234375, 0.013641357421875, 0.04498291015625, 0.04107666015625, -0.006015777587890625, 0.0002593994140625, 0.04632568359375, 0.004169464111328125, 0.041839599609375, 0.01090240478515625, -0.01220703125, -0.03839111328125, -0.0120849609375, 0.04254150390625, 0.0265045166015625, -0.0239105224609375, -0.01309967041015625, -0.01555633544921875, 0.03173828125, -0.0240325927734375, -0.04864501953125, 0.01763916015625, 0.055450439453125, -0.023590087890625, 0.022216796875, -0.000006377696990966797, -0.015350341796875, -0.0271148681640625, -0.0157012939453125, 0.0247650146484375, -0.011474609375, 0.015838623046875, 0.050201416015625, 0.037139892578125, 0.0253753662109375, -0.033355712890625, 0.0049285888671875, 0.022247314453125, 0.0030460357666015625, 0.0203704833984375, 0.013824462890625, -0.03125, 0.0011358261108398438, 0.01084136962890625, -0.020721435546875, -0.007389068603515625, 0.017974853515625, 0.0325927734375, 0.0025463104248046875, 0.0013275146484375, -0.002536773681640625, -0.00907135009765625, -0.038787841796875, 0.051025390625, 0.0161285400390625, -0.0555419921875, -0.036346435546875, 0.021881103515625, 0.035247802734375, -0.00885009765625, 0.004276275634765625, -0.0301361083984375, 0.01413726806640625, 0.0205078125, -0.0094146728515625, -0.010498046875, 0.0198516845703125, 0.01317596435546875, 0.05950927734375, -0.035919189453125, -0.0222015380859375, -0.0309295654296875, 0.045013427734375, -0.050872802734375, 0.002651214599609375, 0.05059814453125, -0.041412353515625, 0.03411865234375, -0.03594970703125, 0.0006852149963378906, -0.054229736328125, 0.000537872314453125, 0.04583740234375, 0.033843994140625, -0.02435302734375, 0.0123443603515625, -0.0307159423828125, -0.0232696533203125, -0.0198516845703125, -0.033935546875, -0.0380859375, -0.016510009765625, 0.00125885009765625, 0.01454925537109375, -0.01117706298828125, -0.0115509033203125, 0.0198974609375, 0.0072021484375, -0.01288604736328125, 0.060546875, -0.017913818359375, 0.111572265625, 0.030517578125, 0.08740234375, 0.03826904296875, 0.055206298828125, -0.03472900390625, -0.024627685546875, 0.015716552734375, -0.029266357421875, -0.018280029296875, -0.01361846923828125, 0.00872039794921875, 0.0171356201171875, 0.029266357421875, -0.0168304443359375, 0.004611968994140625, 0.0232391357421875, 0.01837158203125, -0.0141143798828125, -0.057891845703125, 0.0033473968505859375, -0.0322265625, -0.0025463104248046875, -0.006195068359375, 0.01277923583984375, 0.00676727294921875, 0.01538848876953125, -0.0428466796875, -0.00588226318359375, -0.041015625, 0.0391845703125, -0.0243377685546875, 0.033233642578125, 0.0960693359375, 0.007778167724609375, 0.057342529296875, 0.039886474609375, -0.001171112060546875, 0.039520263671875, -0.0128021240234375, 0.035064697265625, -0.004123687744140625, 0.08941650390625, -0.007556915283203125, -0.01294708251953125, 0.058258056640625, -0.035736083984375, 0.0194854736328125, 0.0129547119140625, 0.03082275390625, -0.029296875, 0.021270751953125, -0.00176239013671875, -0.0054168701171875, 0.04864501953125, 0.020782470703125, -0.0169677734375, -0.007904052734375, -0.0029811859130859375, -0.0205078125, -0.00876617431640625, 0.00603485107421875, 0.0178985595703125, 0.00682830810546875, 0.022857666015625, 0.037353515625, 0.0175018310546875, -0.07025146484375, 0.01141357421875, 0.021270751953125, 0.0296478271484375, -0.0232086181640625, -0.0076446533203125, 0.0004220008850097656, -0.037017822265625, -0.060577392578125, 0.00858306884765625, -0.01097869873046875, 0.00894927978515625, 0.0447998046875, 0.0262908935546875, -0.00783538818359375, 0.054046630859375, -0.0167999267578125, 0.04522705078125, 0.00899505615234375, -0.035125732421875, -0.023773193359375, -0.019866943359375, 0.024932861328125, 0.0202178955078125, -0.07342529296875, 0.021209716796875, -0.026702880859375, -0.01119232177734375, -0.004680633544921875, 0.0131378173828125, 0.04302978515625, -0.00890350341796875, -0.0287017822265625, 0.041107177734375, -0.017608642578125, -0.031463623046875, -0.01245880126953125, 0.025634765625, -0.059173583984375, -0.027435302734375, -0.0033168792724609375, -0.051971435546875, -0.0032711029052734375, -0.043792724609375, -0.08795166015625, 0.12890625, 0.0272674560546875, 0.0235137939453125, -0.024749755859375, 0.0518798828125, -0.058349609375, -0.001209259033203125, -0.00011652708053588867, 0.015228271484375, -0.0264434814453125, 0.00829315185546875, 0.0050811767578125, 0.0239410400390625, 0.0112457275390625, -0.004581451416015625, -0.032440185546875, -0.01073455810546875, 0.019775390625, 0.0183258056640625, 0.04815673828125, 0.027679443359375, 0.003856658935546875, -0.01140594482421875, -0.01015472412109375, 0.018829345703125, 0.0030078887939453125, -0.0435791015625, 0.011260986328125, -0.006435394287109375, -0.0241851806640625, 0.032623291015625, 0.0316162109375, 0.043975830078125, 0.01187896728515625, -0.01010894775390625, -0.00988006591796875, 0.0162353515625, 0.02862548828125, -0.035369873046875, 0.01027679443359375, 0.06439208984375, 0.0406494140625, 0.01459503173828125, 0.0265960693359375, -0.03857421875, 0.048309326171875, -0.01435089111328125, -0.00039005279541015625, -0.0204010009765625, -0.00893402099609375, 0.0200958251953125, -0.012359619140625, -0.035980224609375, 0.007617950439453125, 0.036834716796875, 0.004119873046875, 0.029266357421875, 0.0156097412109375, -0.016082763671875, 0.00826263427734375, 0.06866455078125, 0.026275634765625, -0.0225830078125, -0.01094818115234375, -0.01340484619140625, -0.00435638427734375, -0.00475311279296875, -0.032745361328125, -0.0019292831420898438, 0.032684326171875, 0.0307769775390625, -0.0269775390625, 0.00803375244140625, 0.034698486328125, 0.00617218017578125, 0.0149993896484375, 0.0286712646484375, -0.040985107421875, -0.01129150390625, -0.0256805419921875, 0.0007295608520507812, -0.01202392578125, 0.050048828125, 0.0261688232421875, 0.0374755859375, -0.0241546630859375, -0.018829345703125, 0.017181396484375, -0.04986572265625, 0.015655517578125, -0.029541015625, -0.01319122314453125, 0.00585174560546875, 0.04400634765625, 0.0167388916015625, 0.032501220703125, 0.03265380859375, 0.0760498046875, 0.061676025390625, -0.0201568603515625, 0.004756927490234375, 0.056182861328125, -0.00681304931640625, 0.039703369140625, -0.0002655982971191406, -0.02374267578125, -0.00307464599609375, -0.0244903564453125, -0.0210418701171875, 0.02362060546875, 0.019561767578125, -0.05352783203125, 0.06500244140625, -0.0215606689453125, -0.03155517578125, 0.026885986328125, -0.004833221435546875, 0.09417724609375, -0.00919342041015625, -0.035186767578125, -0.006458282470703125, -0.009521484375, -0.05108642578125, -0.0016603469848632812, 0.03448486328125, -0.0236358642578125, 0.02410888671875, -0.0382080078125, 0.030670166015625, 0.00008553266525268555, -0.05291748046875, 0.01325225830078125, 0.0181884765625, 0.0016345977783203125, 0.0098114013671875, -0.059539794921875, -0.05889892578125, -0.01030731201171875, 0.06866455078125, -0.03790283203125, 0.0262298583984375, -0.0222320556640625, 0.033416748046875, -0.04345703125, 0.0311279296875, -0.075927734375, -0.03668212890625, 0.032012939453125, -0.02557373046875, -0.007663726806640625, 0.01383209228515625, -0.02593994140625, 0.024444580078125, 0.01580810546875, -0.008880615234375, 0.0211944580078125, -0.0169525146484375, 0.002635955810546875, 0.0007038116455078125, 0.01385498046875, -0.023651123046875, -0.0240936279296875, -0.041015625, -0.005634307861328125, 0.03961181640625, 0.034271240234375, -0.0014448165893554688, 0.005615234375, 0.033477783203125, -0.007099151611328125, 0.0131072998046875, 0.0118255615234375, 0.03265380859375, 0.044708251953125, -0.0222930908203125, -0.030670166015625, 0.0000502467155456543, -0.0130615234375, -0.0105133056640625, 0.00714111328125, 0.0018186569213867188, 0.00545501708984375, -0.04498291015625, 0.091796875, 0.023834228515625, 0.01517486572265625, -0.0621337890625, -0.019805908203125, 0.111572265625, 0.0026798248291015625, -0.052093505859375, 0.0460205078125, -0.012847900390625, 0.00775146484375, -0.0202484130859375, 0.0026702880859375, -0.00809478759765625, -0.015289306640625, -0.0643310546875, -0.0183563232421875, 0.020172119140625, -0.01021575927734375, -0.01479339599609375, -0.0253753662109375, -0.00827789306640625, 0.059478759765625, -0.037628173828125, 0.004581451416015625, 0.0160064697265625, 0.039093017578125, -0.0186614990234375, -0.0176239013671875, -0.03192138671875, 0.008331298828125, -0.034454345703125, 0.0102081298828125, 0.020538330078125, -0.017333984375, 0.0101470947265625, -0.0063934326171875, 0.0022487640380859375, 0.0592041015625, -0.00637054443359375, -0.0252838134765625, 0.0006761550903320312, 0.01216888427734375, 0.0310821533203125, -0.0262451171875, -0.013671875, -0.01026153564453125, -0.010040283203125, 0.0171051025390625, -0.0187835693359375, 0.006130218505859375, -0.046112060546875, -0.052825927734375, 0.06585693359375, -0.00563812255859375, -0.020751953125, -0.0195159912109375, -0.01239013671875, -0.00594329833984375, 0.0416259765625, -0.00867462158203125, 0.0092315673828125, -0.0283355712890625, 0.038421630859375, 0.007808685302734375, 0.046905517578125, 0.0298919677734375, -0.017578125, -0.00678253173828125, -0.0010833740234375, -0.01320648193359375, -0.007282257080078125, -0.0158843994140625, 0.008209228515625, -0.01029205322265625, 0.0196075439453125, -0.05224609375, -0.06500244140625, -0.01313018798828125, 0.023345947265625, -0.0029354095458984375, -0.023651123046875, 0.0097198486328125, 0.00931549072265625, 0.0225372314453125, -0.004985809326171875, -0.0035572052001953125, -0.040069580078125, 0.03179931640625, 0.00275421142578125, -0.04925537109375, 0.005413055419921875, 0.0192108154296875, -0.0416259765625, -0.024017333984375, 0.000038683414459228516, -0.0194549560546875, 0.009002685546875, 0.034423828125, -0.018463134765625, -0.01276397705078125, -0.00010770559310913086, -0.0285797119140625, -0.04852294921875, 0.0213470458984375, 0.08447265625, -0.0372314453125, 0.020721435546875, 0.002471923828125, -0.006618499755859375, 0.046875, 0.0019178390502929688, 0.0119171142578125, -0.014190673828125, -0.021759033203125, 0.0236663818359375, -0.0024204254150390625, 0.047882080078125, -0.0251922607421875, -0.033599853515625, -0.01457977294921875, 0.03485107421875, 0.01334381103515625, 0.0301513671875, -0.031524658203125, 0.00681304931640625, 0.008453369140625, 0.0127716064453125, -0.02423095703125, 0.0511474609375, -0.0058746337890625, -0.005306243896484375, -0.0050201416015625, 0.008087158203125, 0.039794921875, -0.024627685546875, 0.00794219970703125, 0.0012760162353515625, -0.01114654541015625, -0.052032470703125, 0.0227203369140625, 0.038604736328125, -0.0167694091796875, 0.0163726806640625 ]
8351706635716e9f6d1986cf19c81fd681a20708
Wordpress Stackexchange Q: Disable delete user My site has custom post type 'Portfolio'. If a user has at least one Portfolio, how can I disable the option to delete that user? I found the action/hook delete_user, but it doesn't seem right for this issue. A: When you click on "delete", the action 'delete_user' will be launched: https://core.trac.wordpress.org/browser/tags/4.4.1/src/wp-admin/includes/user.php#L313 After that you can check, if the user has written at least one 'portfolio' post. add_action('delete_user', 'sw_portfolio_check'); function sw_portfolio_check( $user_id ) { $result = new WP_Query( array( 'author'=>$user_id, 'post_type'=>'portfolio', 'posts_per_page'=>1, ) ); if ( count($result->posts) !== 0 ){ wp_die("User has a portfolio and can't be deleted"); } }
Q: Disable delete user My site has custom post type 'Portfolio'. If a user has at least one Portfolio, how can I disable the option to delete that user? I found the action/hook delete_user, but it doesn't seem right for this issue. A: When you click on "delete", the action 'delete_user' will be launched: https://core.trac.wordpress.org/browser/tags/4.4.1/src/wp-admin/includes/user.php#L313 After that you can check, if the user has written at least one 'portfolio' post. add_action('delete_user', 'sw_portfolio_check'); function sw_portfolio_check( $user_id ) { $result = new WP_Query( array( 'author'=>$user_id, 'post_type'=>'portfolio', 'posts_per_page'=>1, ) ); if ( count($result->posts) !== 0 ){ wp_die("User has a portfolio and can't be deleted"); } } A: You want to disable the option to delete, If you mean the delete button on the user list at /wp-admin/users.php you can use user_row_actions class to hide the 'delete' link with below snippet: add_filter( 'user_row_actions', function($actions, $user_object) { $result = new WP_Query( array( 'author'=> $user_object->ID, 'post_type'=>'portfolio', 'posts_per_page'=>1, ) ); if ( count($result->posts) !== 0 ){ unset($actions['delete']); } return $actions; }, 1,2 ); The above snippet just hides the link. It does not prevent access to the delete screen. To do that, we'll need more code: add_action( 'load-users.php', function() { if (isset($_GET['user'])) { $user_object = get_userdata($_GET['user']); $result = new WP_Query( array( 'author'=> $user_object->ID, 'post_type'=>'portfolio', 'posts_per_page'=>1, ) ); if( count($result->posts) !== 0 ){ wp_die('This user cannot be deleted'); } } } ); Hope this help you well!
wordpress
{ "language": "en", "length": 229, "provenance": "stackexchange_00019.jsonl.gz:462644", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215722" }
[ 0.0927734375, 0.002925872802734375, -0.01151275634765625, -0.01439666748046875, 0.032745361328125, -0.0643310546875, 0.08209228515625, -0.038330078125, 0.0169525146484375, 0.0243072509765625, -0.01113128662109375, -0.032073974609375, 0.0279693603515625, -0.029083251953125, -0.0183563232421875, -0.032379150390625, 0.0138092041015625, 0.0149383544921875, 0.035064697265625, -0.012481689453125, 0.016082763671875, -0.01044464111328125, 0.017333984375, -0.023223876953125, -0.0230255126953125, 0.03173828125, 0.03692626953125, -0.0016803741455078125, -0.0272369384765625, -0.02691650390625, -0.004871368408203125, 0.01715087890625, -0.032073974609375, 0.040985107421875, 0.015045166015625, 0.0276947021484375, 0.00897979736328125, 0.03900146484375, 0.0643310546875, -0.0038928985595703125, 0.052490234375, -0.0251617431640625, -0.0611572265625, -0.0019397735595703125, -0.035675048828125, -0.056640625, 0.07305908203125, 0.0126495361328125, 0.04827880859375, 0.03790283203125, 0.0081939697265625, 0.006443023681640625, 0.035919189453125, -0.038299560546875, -0.0217437744140625, -0.016326904296875, -0.020233154296875, 0.031036376953125, 0.03955078125, 0.03387451171875, -0.01898193359375, -0.00324249267578125, -0.0017271041870117188, -0.06622314453125, 0.0115509033203125, -0.0139923095703125, -0.03961181640625, 0.02386474609375, -0.0736083984375, 0.0029144287109375, 0.05059814453125, -0.05645751953125, 0.0013132095336914062, -0.01056671142578125, -0.01110076904296875, -0.0050201416015625, -0.006549835205078125, -0.014068603515625, 0.0159149169921875, 0.0024261474609375, -0.0244903564453125, 0.0011568069458007812, -0.08160400390625, -0.00016045570373535156, -0.020751953125, 0.0297698974609375, -0.0172576904296875, -0.01010894775390625, -0.0208282470703125, 0.002902984619140625, -0.0225982666015625, -0.01132965087890625, 0.00608062744140625, 0.01407623291015625, -0.0270843505859375, 0.006267547607421875, 0.019256591796875, 0.029693603515625, -0.002124786376953125, -0.007328033447265625, 0.03350830078125, -0.053497314453125, 0.007076263427734375, -0.027618408203125, -0.019500732421875, 0.037139892578125, 0.0264434814453125, -0.01416778564453125, -0.0286865234375, 0.0133209228515625, -0.0094757080078125, -0.05255126953125, -0.02740478515625, -0.0163726806640625, -0.0035343170166015625, 0.01153564453125, -0.0635986328125, 0.0272064208984375, -0.0190582275390625, 0.009674072265625, -0.0108642578125, 0.00787353515625, -0.0013990402221679688, -0.02313232421875, 0.01285552978515625, -0.0261383056640625, -0.01041412353515625, 0.004978179931640625, 0.05718994140625, -0.03350830078125, -0.058624267578125, 0.0447998046875, 0.0948486328125, 0.010833740234375, 0.0298309326171875, -0.0002332925796508789, 0.0022220611572265625, -0.0167236328125, -0.026123046875, 0.026153564453125, 0.0243988037109375, -0.045501708984375, -0.0242462158203125, 0.0009312629699707031, 0.004039764404296875, 0.039825439453125, 0.0180511474609375, -0.0020275115966796875, 0.004180908203125, -0.047454833984375, -0.018035888671875, -0.0085906982421875, -0.00201416015625, 0.0282745361328125, 0.04351806640625, -0.0086822509765625, 0.07574462890625, -0.0406494140625, 0.01174163818359375, -0.035736083984375, 0.037017822265625, 0.000667572021484375, 0.01018524169921875, -0.00910186767578125, -0.048828125, -0.016387939453125, -0.002292633056640625, -0.01715087890625, 0.032928466796875, 0.01255035400390625, 0.0301055908203125, -0.03631591796875, 0.01035308837890625, 0.0308837890625, 0.01398468017578125, 0.0408935546875, 0.018218994140625, 0.010986328125, 0.00563812255859375, 0.00994873046875, -0.03076171875, -0.0489501953125, 0.060699462890625, -0.039581298828125, -0.0304412841796875, -0.0145263671875, 0.033203125, 0.019012451171875, -0.006908416748046875, 0.022857666015625, 0.050933837890625, 0.04217529296875, 0.0312347412109375, -0.01126861572265625, 0.0233612060546875, -0.052093505859375, -0.0188140869140625, -0.046630859375, 0.00372314453125, 0.038543701171875, 0.087646484375, -0.01497650146484375, 0.0199127197265625, -0.07586669921875, -0.11151123046875, -0.0179290771484375, -0.025238037109375, 0.027130126953125, -0.038909912109375, 0.0312042236328125, 0.03814697265625, 0.01384735107421875, -0.051513671875, 0.0291595458984375, 0.00782012939453125, -0.03179931640625, -0.0015954971313476562, 0.024810791015625, -0.0020351409912109375, 0.0274658203125, -0.0011920928955078125, -0.0159759521484375, 0.001132965087890625, 0.0019502639770507812, 0.056365966796875, -0.038787841796875, -0.00035500526428222656, -0.030670166015625, 0.043792724609375, 0.0035724639892578125, -0.034576416015625, 0.0162200927734375, -0.0160675048828125, -0.014404296875, -0.033172607421875, 0.0074920654296875, 0.00688934326171875, -0.041473388671875, 0.006317138671875, 0.04888916015625, 0.013946533203125, 0.0108795166015625, -0.0274200439453125, 0.0033893585205078125, 0.03887939453125, 0.004863739013671875, 0.00600433349609375, 0.01502227783203125, 0.01285552978515625, 0.059906005859375, 0.0024547576904296875, 0.012237548828125, 0.007099151611328125, -0.006633758544921875, -0.0017709732055664062, 0.0465087890625, -0.0221710205078125, 0.01374053955078125, 0.01305389404296875, -0.0165863037109375, -0.01061248779296875, -0.01727294921875, 0.010894775390625, -0.0272369384765625, 0.0550537109375, -0.03436279296875, 0.005767822265625, -0.011749267578125, -0.0290069580078125, 0.01113128662109375, 0.032989501953125, -0.06646728515625, -0.009857177734375, 0.0262298583984375, 0.053680419921875, -0.001285552978515625, -0.048797607421875, -0.0016012191772460938, 0.01904296875, 0.0120849609375, -0.0151519775390625, -0.01381683349609375, 0.027435302734375, 0.00312042236328125, -0.0011816024780273438, -0.04022216796875, 0.06463623046875, 0.026336669921875, -0.01470184326171875, -0.037200927734375, 0.01348876953125, 0.0014619827270507812, -0.01253509521484375, 0.01079559326171875, 0.00923919677734375, -0.0367431640625, -0.040679931640625, -0.06878662109375, 0.044189453125, -0.065185546875, 0.041290283203125, 0.083984375, -0.01104736328125, 0.01027679443359375, 0.0111846923828125, -0.00809478759765625, 0.0185699462890625, 0.021240234375, 0.0128936767578125, -0.00833892822265625, -0.021728515625, 0.025909423828125, 0.007404327392578125, -0.016387939453125, 0.0087738037109375, -0.0192413330078125, -0.00982666015625, -0.0028667449951171875, -0.036376953125, 0.0006895065307617188, 0.03515625, -0.047027587890625, 0.02203369140625, -0.004589080810546875, -0.00994873046875, -0.039276123046875, 0.0290069580078125, 0.006923675537109375, -0.0517578125, 0.0158843994140625, 0.01338958740234375, -0.024017333984375, -0.023590087890625, -0.02154541015625, 0.002895355224609375, 0.01230621337890625, 0.01383209228515625, 0.07061767578125, 0.007755279541015625, -0.07403564453125, 0.00560760498046875, -0.04638671875, -0.0283660888671875, 0.032806396484375, 0.0118560791015625, 0.0114288330078125, -0.004741668701171875, 0.0144805908203125, 0.008941650390625, 0.003604888916015625, -0.0228118896484375, -0.036376953125, 0.01430511474609375, -0.0097503662109375, 0.0251617431640625, 0.0117950439453125, -0.02313232421875, -0.0005054473876953125, 0.0162811279296875, -0.04681396484375, -0.03338623046875, -0.01861572265625, -0.050689697265625, 0.0117950439453125, 0.0277252197265625, 0.0121612548828125, -0.0155029296875, 0.0189361572265625, -0.00693511962890625, 0.024322509765625, -0.017333984375, 0.0038928985595703125, 0.0268402099609375, 0.0019407272338867188, 0.00444793701171875, 0.0086517333984375, 0.02935791015625, -0.02008056640625, 0.005878448486328125, -0.0015630722045898438, -0.0072021484375, -0.037933349609375, 0.0173187255859375, -0.05755615234375, -0.030670166015625, 0.041839599609375, -0.00445556640625, 0.014007568359375, -0.0243377685546875, -0.024688720703125, 0.0037441253662109375, 0.0704345703125, -0.0252685546875, -0.0117340087890625, -0.004444122314453125, -0.00173187255859375, 0.0028705596923828125, -0.0161285400390625, -0.030029296875, -0.0080108642578125, -0.06207275390625, -0.0012960433959960938, -0.0022792816162109375, -0.02264404296875, -0.0321044921875, 0.001758575439453125, -0.0533447265625, -0.0278167724609375, 0.026275634765625, -0.09857177734375, 0.04217529296875, -0.013397216796875, -0.0030117034912109375, -0.030731201171875, -0.016845703125, -0.07073974609375, -0.03118896484375, -0.00047206878662109375, -0.0283203125, 0.017303466796875, 0.0163726806640625, 0.009796142578125, 0.002101898193359375, 0.0323486328125, 0.04541015625, 0.000835418701171875, -0.0029888153076171875, -0.04547119140625, 0.01165008544921875, 0.00792694091796875, -0.005580902099609375, 0.00024056434631347656, 0.0212860107421875, 0.0035915374755859375, 0.0026569366455078125, 0.03009033203125, -0.059814453125, 0.0199127197265625, -0.032684326171875, -0.03485107421875, -0.052734375, -0.052154541015625, -0.034423828125, 0.0238189697265625, -0.022064208984375, -0.0017347335815429688, -0.06634521484375, -0.06268310546875, 0.04571533203125, -0.0300140380859375, 0.00949859619140625, -0.00826263427734375, 0.10784912109375, 0.0216522216796875, -0.0034942626953125, 0.0279541015625, 0.042938232421875, 0.042694091796875, 0.00665283203125, 0.0197906494140625, 0.02471923828125, -0.0187225341796875, 0.01090240478515625, 0.01528167724609375, -0.005523681640625, -0.033416748046875, 0.038604736328125, -0.013275146484375, -0.0218048095703125, 0.0085906982421875, -0.042205810546875, 0.05047607421875, 0.0531005859375, 0.0007901191711425781, 0.0052947998046875, 0.04473876953125, 0.00756072998046875, -0.02130126953125, -0.051910400390625, -0.024627685546875, -0.01140594482421875, -0.005184173583984375, -0.0228118896484375, 0.0298614501953125, 0.007389068603515625, 0.010101318359375, -0.00959014892578125, 0.0112152099609375, -0.01065826416015625, -0.047119140625, -0.004734039306640625, -0.01302337646484375, 0.038177490234375, -0.0648193359375, -0.00615692138671875, -0.034759521484375, -0.007213592529296875, 0.0469970703125, 0.00524139404296875, -0.03204345703125, -0.02880859375, -0.000164031982421875, 0.04583740234375, 0.0159759521484375, 0.0175933837890625, 0.0419921875, 0.0244598388671875, 0.0035305023193359375, -0.0191497802734375, -0.03070068359375, 0.058929443359375, -0.056182861328125, 0.043487548828125, 0.0079498291015625, -0.0023441314697265625, 0.0183258056640625, 0.05194091796875, 0.0152587890625, 0.033447265625, -0.0183563232421875, 0.07586669921875, 0.04962158203125, 0.0119476318359375, -0.004467010498046875, 0.0248565673828125, -0.01209259033203125, -0.0034503936767578125, -0.022430419921875, -0.04571533203125, 0.0091552734375, 0.045745849609375, 0.0423583984375, 0.016876220703125, -0.02734375, -0.004669189453125, -0.0249786376953125, -0.00472259521484375, 0.031768798828125, -0.0000845193862915039, -0.044891357421875, -0.01305389404296875, 0.014739990234375, 0.00841522216796875, -0.041229248046875, -0.006160736083984375, -0.0306396484375, -0.033538818359375, -0.03179931640625, 0.062286376953125, -0.043731689453125, -0.0237884521484375, -0.00859832763671875, -0.00609588623046875, -0.0199127197265625, 0.02825927734375, -0.019134521484375, 0.0002340078353881836, -0.0199127197265625, -0.026153564453125, 0.045623779296875, -0.005706787109375, 0.0016317367553710938, -0.02618408203125, 0.005462646484375, 0.00876617431640625, -0.0057525634765625, 0.06634521484375, 0.02447509765625, -0.026092529296875, -0.0121002197265625, -0.03167724609375, -0.013427734375, 0.01349639892578125, -0.0255889892578125, -0.0242919921875, -0.004688262939453125, 0.0195465087890625, 0.0105438232421875, 0.01343536376953125, -0.0132904052734375, -0.015655517578125, 0.031524658203125, 0.023345947265625, 0.03436279296875, -0.049530029296875, 0.050262451171875, 0.01934814453125, 0.046966552734375, 0.0149688720703125, 0.041015625, 0.043121337890625, -0.04241943359375, 0.01751708984375, -0.026031494140625, -0.0175018310546875, -0.031951904296875, -0.0203857421875, -0.005031585693359375, 0.0465087890625, -0.0182647705078125, -0.0221710205078125, -0.006282806396484375, -0.00109100341796875, -0.029510498046875, 0.0194091796875, 0.034088134765625, -0.007534027099609375, -0.013336181640625, -0.004669189453125, 0.028167724609375, 0.00867462158203125, -0.059326171875, 0.0355224609375, 0.0078887939453125, 0.032318115234375, 0.0042877197265625, -0.0222930908203125, 0.0223541259765625, -0.0167999267578125, -0.029571533203125, 0.00010228157043457031, -0.0182647705078125, 0.0031566619873046875, 0.00272369384765625, 0.0084381103515625, -0.03533935546875, 0.001068115234375, 0.0174102783203125, -0.005687713623046875, -0.006866455078125, 0.00005453824996948242, -0.00726318359375, 0.01087188720703125, 0.0740966796875, 0.052886962890625, -0.10101318359375, -0.00604248046875, -0.031951904296875, 0.006439208984375, 0.08221435546875, -0.031707763671875, 0.03466796875, 0.004405975341796875, 0.0660400390625, 0.0003676414489746094, -0.01206207275390625, 0.0243072509765625, -0.032379150390625, -0.0016317367553710938, 0.0304107666015625, 0.01070404052734375, 0.0008153915405273438, -0.03668212890625, -0.006378173828125, 0.0208892822265625, 0.00531768798828125, -0.0276336669921875, -0.01215362548828125, 0.04827880859375, -0.004230499267578125, -0.0875244140625, 0.03125, -0.03521728515625, -0.011871337890625, 0.05059814453125, -0.0020465850830078125, 0.0406494140625, 0.04522705078125, -0.005443572998046875, 0.0127410888671875, 0.01013946533203125, -0.041656494140625, -0.0523681640625, -0.03240966796875, 0.01551055908203125, 0.0152130126953125, -0.04486083984375, 0.03790283203125, -0.0242767333984375, -0.039642333984375, -0.01033782958984375, 0.03143310546875, 0.0784912109375, -0.02130126953125, -0.0242462158203125, 0.04669189453125, 0.0177001953125, -0.037078857421875, 0.0089263916015625, -0.021148681640625, -0.0267181396484375, -0.0352783203125, -0.005336761474609375, -0.08172607421875, 0.016082763671875, 0.00588226318359375, -0.04583740234375, 0.055938720703125, -0.04522705078125, 0.030853271484375, 0.00797271728515625, 0.016357421875, 0.0250244140625, 0.01678466796875, -0.03839111328125, 0.0266571044921875, -0.021942138671875, 0.05615234375, -0.04510498046875, 0.0030345916748046875, 0.01309967041015625, 0.036102294921875, 0.0963134765625, 0.019073486328125, -0.00893402099609375, -0.0460205078125, 0.0191802978515625, 0.05010986328125, -0.0244598388671875, 0.00914764404296875, -0.00948333740234375, 0.0227508544921875, -0.00872802734375, -0.0221405029296875, 0.037933349609375, -0.03424072265625, -0.0765380859375, 0.00833892822265625, 0.01532745361328125, 0.00794219970703125, -0.0082244873046875, 0.01544189453125, -0.017364501953125, -0.014739990234375, 0.01373291015625, 0.001117706298828125, -0.0040130615234375, 0.038909912109375, 0.05621337890625, -0.039825439453125, -0.0291900634765625, -0.01258087158203125, 0.051849365234375, 0.0287322998046875, 0.01047515869140625, 0.038543701171875, 0.0289154052734375, -0.0423583984375, -0.0207977294921875, 0.0160369873046875, 0.0075836181640625, -0.061767578125, 0.017547607421875, 0.045074462890625, 0.01428985595703125, 0.006908416748046875, 0.0355224609375, 0.052398681640625, 0.029449462890625, -0.045135498046875, -0.057098388671875, 0.01485443115234375, 0.01800537109375, 0.004016876220703125, 0.0243377685546875, 0.0169525146484375, 0.0014066696166992188, 0.04888916015625, -0.0740966796875, 0.01279449462890625, 0.0247955322265625, 0.01629638671875, -0.008941650390625, 0.0128326416015625, -0.0273895263671875, -0.00452423095703125, -0.0223388671875, 0.00919342041015625, -0.002765655517578125, -0.03271484375, -0.01229095458984375, -0.0081634521484375, 0.066162109375, 0.0345458984375, -0.00786590576171875, 0.0302734375, -0.0099029541015625, 0.013885498046875, -0.08685302734375, -0.09234619140625, 0.0491943359375, 0.072509765625, 0.003894805908203125, -0.01605224609375, 0.0252532958984375, 0.05926513671875, -0.006862640380859375, -0.0238189697265625, 0.05810546875, 0.0004596710205078125, -0.0252227783203125, -0.01470947265625, -0.007755279541015625, 0.0006670951843261719, -0.006580352783203125, -0.0009527206420898438, 0.0280303955078125, 0.01296234130859375, -0.047271728515625, 0.025177001953125, -0.00717926025390625, -0.0147705078125, 0.031829833984375, 0.0204620361328125, 0.016693115234375, -0.00955963134765625, -0.030059814453125, 0.0138092041015625, -0.03363037109375, -0.051422119140625, -0.00536346435546875, 0.0182647705078125, -0.045562744140625, 0.0452880859375, 0.00460052490234375, -0.0278472900390625, 0.00848388671875, 0.036529541015625, 0.004184722900390625, 0.035369873046875, 0.016845703125, 0.006954193115234375, -0.0284423828125, -0.0175018310546875, 0.02288818359375, 0.0229034423828125, -0.018096923828125, 0.039764404296875, -0.014007568359375, 0.0008640289306640625, -0.0177154541015625, 0.03680419921875, -0.0227203369140625, -0.0384521484375, 0.03765869140625, 0.01322174072265625, 0.006038665771484375, -0.0037784576416015625, -0.059417724609375, 0.04632568359375, 0.0227813720703125, -0.00885772705078125, 0.0426025390625, 0.0031890869140625, -0.0010290145874023438, -0.0190887451171875, -0.0102386474609375, -0.04644775390625, -0.023895263671875, -0.032440185546875, -0.030914306640625, 0.019378662109375, -0.01137542724609375, -0.0161590576171875, 0.0282135009765625, 0.011962890625, -0.0208740234375, 0.005584716796875, -0.007663726806640625, -0.0139923095703125, 0.01313018798828125, 0.0203704833984375, -0.01568603515625, -0.0184478759765625, -0.006561279296875, -0.005489349365234375, 0.0084381103515625, -0.0127410888671875, 0.01160430908203125, -0.0128173828125, -0.0192413330078125, -0.018707275390625, 0.04083251953125, 0.0108642578125, 0.01055145263671875, -0.035552978515625, 0.00936126708984375, 0.00041747093200683594, -0.006771087646484375, -0.02099609375, -0.02001953125, 0.01110076904296875, 0.02532958984375, -0.00910186767578125, -0.0280303955078125, -0.06988525390625, -0.00832366943359375, 0.0295867919921875, 0.026519775390625, -0.08685302734375, 0.069580078125, -0.017181396484375, -0.0187835693359375, -0.00611114501953125, -0.0318603515625, 0.0169830322265625, 0.0236053466796875, -0.042083740234375, 0.0226593017578125, -0.0200347900390625, -0.030792236328125, -0.002521514892578125, 0.0161590576171875, 0.058563232421875, -0.0011043548583984375, -0.007415771484375, 0.023681640625, -0.01528167724609375, 0.06951904296875, -0.05230712890625, -0.022705078125, -0.01201629638671875, -0.00872802734375, 0.0285491943359375, -0.0166168212890625, -0.012542724609375, -0.020843505859375, -0.021087646484375, 0.004238128662109375, -0.000621795654296875, 0.0281524658203125, -0.033416748046875, -0.08544921875, 0.076416015625, -0.0215606689453125, -0.040374755859375, 0.028411865234375, -0.0027103424072265625, -0.01024627685546875, -0.01026153564453125, 0.015655517578125, -0.029327392578125, -0.0128631591796875, -0.0181884765625, 0.01079559326171875, 0.02197265625, 0.00618743896484375, 0.0157318115234375, -0.02374267578125, 0.0224609375, 0.0074005126953125, -0.0125579833984375, 0.005767822265625, -0.01084136962890625, 0.04693603515625, 0.041656494140625, -0.0129852294921875, 0.049285888671875, 0.0199432373046875, -0.0355224609375, -0.0101318359375, -0.0284423828125, -0.018280029296875, -0.025787353515625, 0.050262451171875, 0.04034423828125, 0.01532745361328125, -0.00830078125, -0.0050506591796875, -0.031585693359375, -0.0264892578125, 0.006214141845703125, 0.01580810546875, -0.07098388671875, -0.0009937286376953125, 0.0411376953125, -0.0093536376953125, 0.00568389892578125, -0.0123291015625, -0.0404052734375, -0.0030994415283203125, 0.01190185546875, -0.0013599395751953125, -0.0362548828125, 0.048553466796875, -0.0252227783203125, -0.006793975830078125, 0.0012760162353515625, -0.047943115234375, -0.0089874267578125, -0.0299835205078125, -0.025665283203125, -0.048919677734375, -0.0011730194091796875, -0.015228271484375, 0.05462646484375, -0.02935791015625, 0.0316162109375, -0.0552978515625, 0.0465087890625, 0.006313323974609375, 0.007282257080078125, 0.00333404541015625, 0.007320404052734375, 0.003910064697265625, 0.0176239013671875, 0.006256103515625, -0.0229339599609375, -0.00438690185546875, 0.046356201171875, -0.001827239990234375, 0.038604736328125, -0.0021762847900390625, -0.006114959716796875, 0.035888671875, -0.044921875, -0.004169464111328125, 0.0204925537109375, 0.0005726814270019531, -0.06304931640625, 0.05963134765625, 0.076416015625, 0.039642333984375, 0.02764892578125 ]
0654a8e5600ec1112f888dc6eebb06cff318be50
Wordpress Stackexchange Q: WordPress.org Support Forum API WordPress.org provides several API end-points for data about themes and plugins. For example for plugins there is the plugin_api: https://developer.wordpress.org/reference/functions/plugins_api/ And the themes API: https://developer.wordpress.org/reference/functions/themes_api/ But, what about a Support API? The best option I have so far is to parse data from each forums RSS feed - for example: https://wordpress.org/support/rss/plugin/export-user-data But this returns the last 30 replies accross all topics for the specified plugin. We would like to get * *All the forum topics from the last 3 months *Each entry in those topics, with info such as author name, date, etc. Thanks! A: That´s no big deal if you got the RSS feed, have a look at it. There is a pubDate which you can use to check for the age of the topic. strtotime() or anything alike will help you to check if that´s older than 30 days. And you also got a link-element. This leads you to the topic, which has its own RSS feed, too. Example: https://wordpress.org/support/topic/cron-job-to-ftp#post-7943160 => https://wordpress.org/support/rss/topic/cron-job-to-ftp This is probably not as comfortable as a full API but nevertheless a good way to go.
Q: WordPress.org Support Forum API WordPress.org provides several API end-points for data about themes and plugins. For example for plugins there is the plugin_api: https://developer.wordpress.org/reference/functions/plugins_api/ And the themes API: https://developer.wordpress.org/reference/functions/themes_api/ But, what about a Support API? The best option I have so far is to parse data from each forums RSS feed - for example: https://wordpress.org/support/rss/plugin/export-user-data But this returns the last 30 replies accross all topics for the specified plugin. We would like to get * *All the forum topics from the last 3 months *Each entry in those topics, with info such as author name, date, etc. Thanks! A: That´s no big deal if you got the RSS feed, have a look at it. There is a pubDate which you can use to check for the age of the topic. strtotime() or anything alike will help you to check if that´s older than 30 days. And you also got a link-element. This leads you to the topic, which has its own RSS feed, too. Example: https://wordpress.org/support/topic/cron-job-to-ftp#post-7943160 => https://wordpress.org/support/rss/topic/cron-job-to-ftp This is probably not as comfortable as a full API but nevertheless a good way to go.
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:462652", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215736" }
[ 0.029510498046875, -0.00965118408203125, -0.041168212890625, -0.037689208984375, 0.0132598876953125, -0.038848876953125, 0.0161590576171875, -0.0033359527587890625, 0.034942626953125, 0.01224517822265625, -0.050994873046875, -0.004528045654296875, -0.01409912109375, -0.0035228729248046875, -0.0218658447265625, -0.036468505859375, 0.03302001953125, -0.0209808349609375, -0.001007080078125, -0.005214691162109375, -0.0115966796875, 0.02764892578125, -0.00635528564453125, 0.0206146240234375, 0.0298919677734375, -0.0003867149353027344, 0.1004638671875, -0.0177764892578125, 0.045806884765625, -0.0021648406982421875, 0.0164337158203125, -0.06964111328125, 0.0206298828125, 0.0111236572265625, -0.006561279296875, -0.00885772705078125, 0.01042938232421875, -0.0029354095458984375, -0.005855560302734375, 0.04534912109375, -0.0035648345947265625, 0.01447296142578125, 0.00499725341796875, 0.0091552734375, -0.01413726806640625, -0.045166015625, 0.0091094970703125, -0.03680419921875, -0.01068878173828125, 0.042877197265625, 0.002902984619140625, -0.0284271240234375, 0.00634002685546875, 0.0418701171875, -0.010498046875, -0.032012939453125, -0.020294189453125, 0.004268646240234375, 0.0171661376953125, -0.053680419921875, -0.00861358642578125, -0.01531219482421875, 0.03924560546875, 0.050262451171875, -0.024200439453125, 0.00801849365234375, 0.03131103515625, 0.0247039794921875, -0.00960540771484375, -0.048828125, -0.008880615234375, 0.00518798828125, 0.004199981689453125, 0.01523590087890625, -0.05535888671875, -0.057342529296875, 0.025848388671875, -0.054779052734375, 0.024658203125, -0.0016679763793945312, 0.0022735595703125, 0.0229949951171875, -0.034515380859375, -0.0245819091796875, 0.0067901611328125, -0.002780914306640625, -0.00765228271484375, -0.01837158203125, -0.03875732421875, -0.0030231475830078125, -0.02642822265625, -0.00958251953125, -0.0711669921875, 0.007495880126953125, 0.0170135498046875, -0.01354217529296875, 0.037384033203125, 0.0206451416015625, -0.0171966552734375, -0.0179901123046875, -0.0343017578125, -0.0242767333984375, -0.0267181396484375, 0.00510406494140625, -0.033203125, 0.0638427734375, 0.053253173828125, 0.0270233154296875, -0.01177978515625, -0.01023101806640625, -0.007442474365234375, 0.01186370849609375, 0.036773681640625, -0.0190887451171875, -0.004512786865234375, -0.017364501953125, 0.001728057861328125, 0.0205078125, 0.0174560546875, -0.02239990234375, 0.00476837158203125, 0.01080322265625, -0.033782958984375, -0.0253143310546875, -0.0024280548095703125, -0.052642822265625, -0.052032470703125, 0.046295166015625, -0.048004150390625, 0.051116943359375, 0.015777587890625, 0.01068878173828125, 0.0023975372314453125, 0.01091766357421875, -0.03662109375, -0.020660400390625, 0.050018310546875, -0.01306915283203125, -0.0118255615234375, 0.023681640625, 0.0174560546875, -0.006786346435546875, -0.017730712890625, -0.0281829833984375, 0.02374267578125, -0.00708770751953125, 0.0309295654296875, 0.013031005859375, -0.0197601318359375, 0.015777587890625, -0.0106048583984375, 0.0248260498046875, 0.01070404052734375, 0.0156097412109375, 0.00689697265625, -0.042938232421875, 0.0188140869140625, -0.049285888671875, 0.05413818359375, -0.0374755859375, -0.0018606185913085938, -0.0271453857421875, -0.021453857421875, -0.06219482421875, -0.08148193359375, 0.034759521484375, -0.0186614990234375, 0.00519561767578125, 0.02197265625, 0.0221405029296875, -0.0066680908203125, 0.0162353515625, 0.036102294921875, 0.004070281982421875, -0.0137481689453125, 0.005496978759765625, 0.0037670135498046875, 0.0396728515625, 0.03692626953125, -0.0141754150390625, -0.027587890625, -0.04595947265625, 0.07611083984375, -0.023468017578125, -0.01000213623046875, 0.01654052734375, 0.002658843994140625, 0.032012939453125, 0.0145111083984375, 0.0251312255859375, 0.0035800933837890625, 0.01068878173828125, -0.0016727447509765625, 0.00878143310546875, -0.031036376953125, -0.022247314453125, 0.00533294677734375, 0.020721435546875, -0.029327392578125, -0.00745391845703125, 0.00884246826171875, 0.040008544921875, -0.01297760009765625, 0.0038051605224609375, -0.06719970703125, 0.034576416015625, -0.0269622802734375, 0.05560302734375, 0.01177978515625, 0.027923583984375, -0.0212249755859375, -0.006938934326171875, -0.01522064208984375, 0.0106048583984375, -0.01020050048828125, -0.01265716552734375, -0.01317596435546875, 0.0277252197265625, -0.008392333984375, 0.05560302734375, -0.0145111083984375, -0.041748046875, -0.038299560546875, -0.0224151611328125, 0.0186920166015625, -0.0208892822265625, 0.004734039306640625, -0.025482177734375, 0.01290130615234375, -0.01270294189453125, 0.036407470703125, 0.0265655517578125, 0.048065185546875, 0.04473876953125, -0.004119873046875, 0.01279449462890625, 0.023956298828125, -0.00787353515625, -0.00959014892578125, 0.027984619140625, 0.0236358642578125, 0.04559326171875, 0.0056610107421875, 0.0040130615234375, 0.05902099609375, -0.01325225830078125, 0.0157318115234375, -0.019744873046875, 0.0330810546875, 0.06640625, -0.034423828125, -0.0190887451171875, 0.0225372314453125, -0.0391845703125, -0.01013946533203125, 0.046142578125, 0.00489044189453125, -0.0307464599609375, 0.0009560585021972656, -0.0187225341796875, 0.03900146484375, -0.028228759765625, -0.0733642578125, 0.02435302734375, 0.01678466796875, -0.01495361328125, 0.034881591796875, 0.036834716796875, -0.01016998291015625, -0.036102294921875, 0.0200653076171875, 0.040313720703125, -0.00591278076171875, 0.05938720703125, 0.032684326171875, -0.0155029296875, -0.02984619140625, -0.0178375244140625, 0.0038204193115234375, 0.02215576171875, -0.022186279296875, 0.033203125, -0.0274658203125, -0.00861358642578125, -0.0557861328125, -0.03350830078125, 0.01200103759765625, 0.03057861328125, 0.034637451171875, 0.03631591796875, 0.031341552734375, 0.054779052734375, 0.0031185150146484375, 0.0394287109375, 0.0200042724609375, 0.00943756103515625, 0.02496337890625, -0.034393310546875, 0.040252685546875, -0.03399658203125, -0.01082611083984375, 0.0350341796875, -0.0028839111328125, -0.021209716796875, 0.007541656494140625, -0.01258087158203125, 0.00438690185546875, 0.0284576416015625, 0.012451171875, -0.0013828277587890625, -0.032806396484375, 0.032745361328125, 0.007587432861328125, 0.049591064453125, -0.05859375, -0.06512451171875, -0.03521728515625, 0.005863189697265625, -0.107421875, -0.06414794921875, 0.0263214111328125, -0.0662841796875, -0.00501251220703125, -0.045501708984375, -0.05035400390625, 0.01031494140625, -0.0338134765625, -0.005474090576171875, 0.0021419525146484375, -0.0211029052734375, -0.07037353515625, -0.05938720703125, -0.09149169921875, 0.00798797607421875, -0.006732940673828125, 0.02606201171875, 0.00608062744140625, 0.0841064453125, 0.01056671142578125, -0.0655517578125, -0.0210723876953125, 0.046295166015625, -0.0113067626953125, -0.0013828277587890625, 0.0048828125, -0.020751953125, 0.0224456787109375, -0.010498046875, 0.05010986328125, 0.059906005859375, -0.052520751953125, 0.01306915283203125, -0.0296630859375, -0.030181884765625, -0.0240631103515625, 0.0186614990234375, 0.0491943359375, -0.033416748046875, 0.00170135498046875, -0.058074951171875, 0.000919342041015625, 0.0018405914306640625, -0.0285491943359375, 0.0184326171875, 0.01849365234375, -0.00539398193359375, -0.010589599609375, 0.01335906982421875, -0.0179901123046875, -0.005199432373046875, 0.040771484375, -0.01459503173828125, -0.010833740234375, -0.026763916015625, -0.048828125, -0.0295562744140625, 0.0280609130859375, -0.0253753662109375, 0.0169219970703125, 0.00376129150390625, -0.040374755859375, -0.0355224609375, -0.0008802413940429688, -0.061798095703125, -0.04486083984375, 0.042816162109375, -0.0026950836181640625, -0.0035839080810546875, -0.0167388916015625, -0.014678955078125, -0.0031299591064453125, 0.07781982421875, 0.0274200439453125, -0.031402587890625, -0.017730712890625, 0.0161285400390625, -0.0264739990234375, -0.033477783203125, 0.00028252601623535156, -0.0129852294921875, -0.06427001953125, 0.00991058349609375, -0.002574920654296875, -0.021484375, 0.01174163818359375, 0.006931304931640625, 0.00397491455078125, -0.03338623046875, 0.016876220703125, -0.03631591796875, 0.00904083251953125, -0.0149078369140625, 0.0008859634399414062, -0.03851318359375, -0.0019779205322265625, -0.03460693359375, -0.030364990234375, -0.0299224853515625, -0.00113677978515625, 0.0692138671875, 0.05267333984375, -0.068359375, -0.01236724853515625, 0.0297393798828125, 0.003173828125, 0.028656005859375, -0.0193634033203125, -0.017791748046875, -0.01219940185546875, 0.034698486328125, -0.00577545166015625, -0.0009927749633789062, -0.044097900390625, -0.047760009765625, -0.035491943359375, 0.0017175674438476562, 0.009552001953125, 0.00909423828125, 0.0007252693176269531, 0.0105743408203125, -0.0191192626953125, -0.0322265625, 0.002803802490234375, -0.00855255126953125, -0.023529052734375, 0.00205230712890625, -0.0296783447265625, 0.0003037452697753906, 0.0017375946044921875, -0.0254364013671875, -0.0025539398193359375, 0.0172882080078125, 0.04913330078125, 0.0218505859375, -0.0007076263427734375, -0.022674560546875, 0.028045654296875, 0.044525146484375, 0.01389312744140625, 0.0625, 0.05224609375, -0.0304412841796875, 0.08489990234375, 0.035552978515625, -0.00954437255859375, -0.00656890869140625, 0.0292205810546875, 0.0224609375, -0.0035266876220703125, 0.002475738525390625, 0.024993896484375, 0.00859832763671875, -0.01464080810546875, -0.028564453125, 0.00576019287109375, -0.021148681640625, 0.0361328125, -0.009857177734375, 0.031341552734375, -0.035552978515625, -0.04815673828125, 0.017364501953125, 0.01210784912109375, -0.0262451171875, 0.03326416015625, -0.0231170654296875, -0.002838134765625, -0.01523590087890625, -0.02020263671875, -0.022247314453125, 0.02398681640625, -0.0014581680297851562, 0.02374267578125, -0.03155517578125, -0.0189056396484375, -0.050872802734375, -0.0032253265380859375, 0.0325927734375, -0.028656005859375, -0.062469482421875, -0.04327392578125, -0.0034236907958984375, 0.0333251953125, 0.04693603515625, -0.0198516845703125, 0.06689453125, 0.043121337890625, -0.0233001708984375, -0.028411865234375, -0.040557861328125, 0.01158905029296875, -0.069091796875, -0.024871826171875, -0.01450347900390625, -0.00850677490234375, 0.0008759498596191406, 0.05029296875, -0.021697998046875, 0.03228759765625, -0.008209228515625, 0.052398681640625, 0.0186309814453125, 0.046478271484375, -0.00353240966796875, -0.0216522216796875, 0.006420135498046875, 0.03033447265625, -0.01715087890625, -0.0157318115234375, -0.0080413818359375, 0.033050537109375, 0.01309967041015625, 0.020751953125, 0.0082855224609375, -0.005672454833984375, 0.004383087158203125, -0.0251617431640625, 0.021820068359375, 0.023712158203125, -0.0010051727294921875, -0.028411865234375, -0.01280975341796875, 0.0283660888671875, 0.015289306640625, -0.00730133056640625, 0.01314544677734375, -0.0126953125, -0.010986328125, 0.0010814666748046875, -0.039581298828125, -0.0233306884765625, 0.0029850006103515625, -0.0186920166015625, -0.0260467529296875, -0.005863189697265625, -0.032073974609375, -0.01430511474609375, -0.022308349609375, -0.0180206298828125, 0.061309814453125, 0.0160369873046875, 0.048980712890625, -0.07501220703125, 0.006809234619140625, -0.056884765625, -0.0098724365234375, 0.04486083984375, 0.0177001953125, -0.073486328125, 0.01351165771484375, -0.033599853515625, -0.020599365234375, -0.0419921875, -0.0113067626953125, -0.0721435546875, -0.004505157470703125, 0.004123687744140625, 0.012969970703125, -0.041717529296875, -0.049713134765625, 0.02105712890625, 0.01161956787109375, 0.0009737014770507812, 0.0195770263671875, 0.01229095458984375, 0.020111083984375, -0.0209197998046875, 0.01026153564453125, 0.0206451416015625, 0.00600433349609375, -0.014739990234375, -0.006885528564453125, -0.0221710205078125, -0.0380859375, 0.01751708984375, 0.01340484619140625, 0.006198883056640625, 0.019378662109375, 0.01238250732421875, 0.008575439453125, 0.003551483154296875, -0.015838623046875, 0.01001739501953125, -0.0218658447265625, 0.03692626953125, -0.0192108154296875, -0.0265655517578125, 0.0192718505859375, -0.0269012451171875, -0.033843994140625, -0.0005197525024414062, 0.0111541748046875, -0.004451751708984375, 0.0054931640625, -0.02001953125, 0.0097808837890625, -0.05865478515625, 0.067138671875, 0.1114501953125, -0.005523681640625, 0.034088134765625, 0.005268096923828125, -0.0228424072265625, 0.008514404296875, 0.0389404296875, -0.0155792236328125, -0.0282745361328125, 0.034698486328125, 0.00843048095703125, -0.00611114501953125, 0.02001953125, -0.0272064208984375, -0.02545166015625, -0.0216217041015625, 0.01438140869140625, 0.0012388229370117188, 0.01120758056640625, 0.01277923583984375, -0.006011962890625, -0.0186309814453125, 0.0147705078125, -0.00235748291015625, -0.05157470703125, 0.038970947265625, 0.01172637939453125, 0.0073394775390625, 0.01062774658203125, -0.0006470680236816406, 0.00830078125, 0.0228271484375, 0.0011911392211914062, -0.0201263427734375, -0.0294647216796875, -0.0295257568359375, 0.02935791015625, -0.00977325439453125, -0.048126220703125, 0.014434814453125, 0.0189056396484375, -0.007030487060546875, -0.03924560546875, 0.0589599609375, 0.042816162109375, 0.008209228515625, -0.0195465087890625, -0.038360595703125, 0.05767822265625, 0.016387939453125, -0.008514404296875, -0.038848876953125, 0.010009765625, -0.01904296875, -0.075927734375, -0.03424072265625, 0.020263671875, 0.058685302734375, -0.007537841796875, 0.040069580078125, 0.01349639892578125, -0.04046630859375, -0.0110931396484375, 0.0113372802734375, 0.06988525390625, -0.0230560302734375, -0.01032257080078125, 0.0231781005859375, 0.02813720703125, -0.00949859619140625, -0.02154541015625, 0.0206298828125, -0.0833740234375, -0.04327392578125, -0.00391387939453125, -0.034149169921875, 0.0306243896484375, 0.0024356842041015625, -0.033233642578125, 0.1236572265625, -0.0095062255859375, -0.019073486328125, -0.005435943603515625, 0.062225341796875, -0.01983642578125, 0.045013427734375, -0.005008697509765625, 0.0200042724609375, -0.01050567626953125, 0.010589599609375, 0.0008072853088378906, 0.002750396728515625, 0.0127105712890625, 0.0350341796875, 0.05419921875, 0.021240234375, -0.06878662109375, -0.014007568359375, -0.0014925003051757812, -0.0011854171752929688, -0.01407623291015625, 0.06341552734375, 0.0029735565185546875, 0.041778564453125, 0.042236328125, -0.08355712890625, 0.030303955078125, -0.04132080078125, 0.018768310546875, 0.012481689453125, 0.01148223876953125, 0.0207977294921875, 0.0019445419311523438, -0.0113677978515625, -0.0110321044921875, -0.0022411346435546875, -0.0053863525390625, 0.0297088623046875, 0.006252288818359375, 0.040374755859375, 0.052276611328125, -0.06842041015625, 0.0041351318359375, -0.0487060546875, 0.048553466796875, -0.0015392303466796875, 0.0732421875, 0.039886474609375, 0.0406494140625, 0.05859375, -0.06915283203125, 0.03912353515625, -0.0174713134765625, -0.06378173828125, 0.0223236083984375, -0.0170745849609375, 0.0318603515625, -0.0706787109375, -0.0404052734375, 0.024383544921875, 0.03656005859375, -0.019775390625, -0.039520263671875, 0.00534820556640625, 0.0239715576171875, 0.040863037109375, 0.039947509765625, 0.0758056640625, 0.00516510009765625, 0.0178680419921875, -0.043212890625, 0.0201263427734375, 0.04620361328125, 0.016815185546875, -0.0007448196411132812, 0.01279449462890625, -0.048919677734375, 0.006908416748046875, 0.0149383544921875, 0.0056304931640625, -0.0227508544921875, -0.021209716796875, -0.0009112358093261719, -0.02130126953125, -0.035308837890625, 0.028228759765625, 0.052703857421875, 0.00925445556640625, 0.0216064453125, -0.0836181640625, 0.0660400390625, -0.039459228515625, -0.00907135009765625, -0.0096435546875, -0.01235198974609375, 0.0016546249389648438, 0.0292816162109375, 0.00443267822265625, -0.0400390625, -0.00926971435546875, 0.046051025390625, -0.0241241455078125, -0.0594482421875, -0.0244293212890625, -0.03863525390625, 0.0247955322265625, -0.00687408447265625, 0.04022216796875, 0.00004488229751586914, 0.0079803466796875, -0.01401519775390625, 0.0396728515625, -0.007450103759765625, 0.006565093994140625, 0.04876708984375, -0.0243377685546875, 0.01271820068359375, -0.00853729248046875, -0.053436279296875, -0.00547027587890625, -0.0115509033203125, -0.04052734375, 0.01100921630859375, 0.0229949951171875, -0.0455322265625, 0.04962158203125, 0.046844482421875, -0.057647705078125, 0.00379180908203125, 0.05072021484375, 0.0088348388671875, 0.01898193359375, 0.0108642578125, -0.00510406494140625, -0.0185699462890625, -0.038818359375, -0.00977325439453125, 0.071533203125, -0.009307861328125, 0.033355712890625, -0.01387786865234375, 0.0276947021484375, -0.032257080078125, -0.038604736328125, -0.0045166015625, -0.00899505615234375, -0.01288604736328125, 0.022552490234375, -0.0215911865234375, 0.0026760101318359375, -0.037506103515625, 0.0253448486328125, 0.0377197265625, 0.0164642333984375, -0.00537872314453125, 0.0017824172973632812, 0.016937255859375, 0.01477813720703125, -0.0283050537109375, -0.0306854248046875, 0.00292205810546875, 0.0188446044921875, -0.0020694732666015625, 0.0178680419921875, 0.0186309814453125, -0.0008106231689453125, 0.019195556640625, 0.01276397705078125, 0.05078125, -0.00428009033203125, 0.0296173095703125, 0.01238250732421875, 0.04180908203125, -0.0782470703125, 0.049560546875, 0.01125335693359375, -0.0140380859375, 0.0246429443359375, 0.00833892822265625, 0.006511688232421875, -0.01177978515625, 0.047607421875, 0.04327392578125, 0.0263824462890625, 0.033721923828125, -0.0108489990234375, -0.01364898681640625, 0.05584716796875, -0.01322174072265625, -0.0157318115234375, -0.0266876220703125, -0.00946044921875, -0.02032470703125, -0.00760650634765625, 0.0234832763671875, -0.004688262939453125, -0.0105438232421875, -0.039520263671875, -0.0071258544921875, 0.01514434814453125, -0.01523590087890625, -0.03253173828125, 0.01348114013671875, -0.018798828125, 0.0274658203125, -0.033782958984375, -0.0281982421875, 0.007305145263671875, 0.0357666015625, -0.004337310791015625, -0.024566650390625, -0.0286865234375, 0.0261383056640625, -0.030914306640625, -0.01078033447265625, 0.00438690185546875, -0.005619049072265625, 0.00138092041015625, -0.0206146240234375, -0.028900146484375, 0.037750244140625, -0.0145111083984375, -0.005428314208984375, -0.01128387451171875, 0.00910186767578125, -0.0213470458984375, -0.03399658203125, 0.022064208984375, -0.053680419921875, -0.040191650390625, -0.007568359375, -0.042816162109375, -0.01971435546875, -0.051544189453125, -0.0810546875, 0.098388671875, -0.024871826171875, -0.0264739990234375, -0.06494140625, 0.0035724639892578125, 0.0089569091796875, -0.01226043701171875, -0.02520751953125, -0.01206207275390625, -0.041595458984375, 0.04083251953125, 0.0190582275390625, -0.01275634765625, 0.02105712890625, 0.003383636474609375, -0.0306854248046875, 0.04876708984375, 0.051422119140625, -0.00144195556640625, 0.02960205078125, -0.0159454345703125, 0.037750244140625, 0.031768798828125, -0.03997802734375, 0.00518798828125, -0.02880859375, 0.0091552734375, -0.039459228515625, -0.02423095703125, -0.033294677734375, 0.0149078369140625, 0.0997314453125, 0.0950927734375, 0.0389404296875, -0.081787109375, 0.02587890625, -0.0302276611328125, 0.01268768310546875, -0.02349853515625, 0.0028820037841796875, -0.04315185546875, -0.0207366943359375, 0.0015697479248046875, -0.0126800537109375, 0.007007598876953125, -0.0018672943115234375, -0.006618499755859375, -0.0093994140625, -0.01070404052734375, -0.04071044921875, 0.0318603515625, -0.030792236328125, 0.048065185546875, -0.0296630859375, 0.005268096923828125, 0.00567626953125, 0.022308349609375, 0.00826263427734375, 0.00922393798828125, -0.00521087646484375, 0.00164031982421875, -0.0015850067138671875, 0.0225830078125, 0.0201568603515625, 0.01235198974609375, -0.018341064453125, -0.0099945068359375, 0.02154541015625, -0.0012636184692382812, 0.0019073486328125, -0.0008111000061035156, -0.0167694091796875, -0.0096893310546875, -0.0280303955078125, 0.0310516357421875, -0.00992584228515625, -0.0238494873046875, -0.02178955078125, 0.03497314453125, -0.05914306640625, -0.0031795501708984375, -0.042266845703125, -0.0132598876953125, 0.0096282958984375, -0.00902557373046875, 0.01531219482421875, -0.0361328125, 0.04644775390625, 0.027099609375, -0.0148162841796875, 0.02166748046875 ]
bd67221d83199854954a891a4741201334af7856
Wordpress Stackexchange Q: How to show custom taxonomy in the permalink? I used the Portfolio Post Type Plugin to create custom tax and post type. I would like to show the custom taxonomy on the portfolio projects. portfolio/customtaxonomy/project while now is portfolio/project I know the regular post type permalink setting is in the wordpress setting page, I would like to do the same but showing the custom taxonomy (portfolio_category) instead of the normal category. Thanks for any help
Q: How to show custom taxonomy in the permalink? I used the Portfolio Post Type Plugin to create custom tax and post type. I would like to show the custom taxonomy on the portfolio projects. portfolio/customtaxonomy/project while now is portfolio/project I know the regular post type permalink setting is in the wordpress setting page, I would like to do the same but showing the custom taxonomy (portfolio_category) instead of the normal category. Thanks for any help
wordpress
{ "language": "en", "length": 76, "provenance": "stackexchange_00019.jsonl.gz:462671", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215778" }
[ 0.06256103515625, 0.001857757568359375, 0.0075836181640625, -0.00530242919921875, 0.01300048828125, -0.035736083984375, 0.0389404296875, -0.03948974609375, -0.032562255859375, -0.010833740234375, -0.026031494140625, -0.00612640380859375, -0.0665283203125, -0.0413818359375, 0.0186920166015625, -0.0672607421875, 0.0159454345703125, 0.0181121826171875, 0.071044921875, -0.002613067626953125, 0.03167724609375, 0.0163726806640625, 0.0171051025390625, -0.0200958251953125, 0.01168060302734375, 0.00759124755859375, 0.0169677734375, -0.04302978515625, 0.0013828277587890625, -0.0268096923828125, 0.00505828857421875, 0.0129852294921875, -0.01299285888671875, 0.0192413330078125, 0.04779052734375, 0.05084228515625, 0.038116455078125, 0.01110076904296875, 0.0528564453125, 0.00592803955078125, 0.05657958984375, -0.03607177734375, -0.0084686279296875, 0.0132598876953125, 0.01447296142578125, -0.0282745361328125, 0.026153564453125, -0.07269287109375, 0.0035762786865234375, -0.0303802490234375, 0.0145263671875, 0.008209228515625, 0.0251312255859375, -0.0230255126953125, -0.0223846435546875, -0.01239013671875, -0.02301025390625, -0.021087646484375, 0.0443115234375, 0.0250244140625, -0.01506805419921875, -0.0273590087890625, 0.02069091796875, -0.036529541015625, -0.0195770263671875, -0.005008697509765625, -0.01812744140625, 0.020782470703125, -0.0518798828125, -0.024017333984375, 0.0307159423828125, -0.031280517578125, 0.023468017578125, -0.011383056640625, -0.046112060546875, -0.0687255859375, 0.03656005859375, -0.058135986328125, -0.0004246234893798828, -0.007526397705078125, 0.0028553009033203125, -0.020965576171875, -0.00536346435546875, -0.016632080078125, -0.006175994873046875, 0.00795745849609375, -0.0010862350463867188, -0.01434326171875, -0.005352020263671875, -0.00870513916015625, -0.009185791015625, 0.0028400421142578125, -0.045623779296875, 0.034912109375, 0.01409912109375, -0.0208587646484375, -0.0115203857421875, 0.0157623291015625, -0.01090240478515625, 0.031402587890625, 0.008636474609375, -0.034576416015625, 0.040802001953125, -0.042083740234375, -0.0130157470703125, -0.030029296875, 0.00798797607421875, 0.0062713623046875, 0.030517578125, 0.03753662109375, -0.029296875, 0.042449951171875, -0.0222015380859375, -0.033660888671875, -0.0034923553466796875, 0.015899658203125, -0.041961669921875, 0.007701873779296875, 0.00433349609375, -0.0156097412109375, -0.0006875991821289062, 0.039764404296875, 0.044586181640625, -0.046905517578125, -0.003055572509765625, 0.0042266845703125, -0.01248931884765625, -0.07513427734375, 0.0183868408203125, 0.02459716796875, -0.0237579345703125, -0.0104827880859375, 0.01953125, 0.049224853515625, 0.022735595703125, -0.0200653076171875, 0.0273590087890625, -0.0257720947265625, -0.0215606689453125, 0.0097808837890625, -0.02325439453125, -0.00012046098709106445, 0.0273590087890625, -0.06317138671875, -0.0090179443359375, 0.00803375244140625, 0.01348114013671875, 0.022216796875, -0.0027141571044921875, -0.0294189453125, -0.004150390625, -0.00038051605224609375, 0.0340576171875, 0.0164947509765625, -0.0307769775390625, 0.0069732666015625, 0.0195465087890625, -0.012664794921875, -0.0311737060546875, -0.031036376953125, 0.0278472900390625, -0.0113067626953125, -0.01031494140625, 0.004314422607421875, -0.0196990966796875, 0.020965576171875, -0.02020263671875, 0.00383758544921875, 0.02874755859375, -0.0117340087890625, 0.0439453125, 0.007457733154296875, 0.004276275634765625, -0.018157958984375, 0.004688262939453125, -0.0225830078125, -0.01226043701171875, 0.01016998291015625, 0.0185089111328125, 0.05950927734375, 0.0233306884765625, -0.0285797119140625, 0.0379638671875, -0.0044403076171875, -0.0196075439453125, -0.033782958984375, 0.03662109375, 0.017913818359375, -0.0189361572265625, 0.0232696533203125, 0.033935546875, 0.036895751953125, -0.07904052734375, 0.049530029296875, 0.01349639892578125, -0.01061248779296875, -0.0386962890625, -0.0187835693359375, -0.0012025833129882812, -0.019989013671875, -0.068115234375, 0.024261474609375, -0.0158538818359375, 0.037322998046875, -0.00705718994140625, 0.0158843994140625, -0.010498046875, 0.036834716796875, 0.01256561279296875, 0.0122222900390625, 0.0060577392578125, -0.003520965576171875, -0.0092010498046875, -0.07177734375, -0.051910400390625, 0.00787353515625, -0.01100921630859375, -0.0257720947265625, -0.0072021484375, -0.034271240234375, 0.006809234619140625, -0.0002315044403076172, -0.01088714599609375, 0.0462646484375, 0.0261383056640625, 0.024993896484375, -0.024505615234375, -0.0018453598022460938, -0.006381988525390625, 0.04803466796875, -0.075439453125, -0.0164031982421875, -0.005451202392578125, 0.0078887939453125, -0.018218994140625, 0.0036716461181640625, 0.0163116455078125, -0.022216796875, 0.00974273681640625, 0.0216217041015625, 0.01361846923828125, 0.035797119140625, -0.006046295166015625, 0.002292633056640625, 0.0872802734375, 0.0248565673828125, 0.01265716552734375, -0.0003719329833984375, 0.01053619384765625, 0.023590087890625, 0.00548553466796875, 0.0088043212890625, 0.0212249755859375, -0.01152801513671875, 0.016632080078125, 0.049957275390625, -0.0182037353515625, -0.021209716796875, 0.02166748046875, -0.0023365020751953125, 0.00829315185546875, -0.007678985595703125, -0.01629638671875, -0.008544921875, 0.03790283203125, 0.0338134765625, 0.050384521484375, 0.04302978515625, -0.0197601318359375, 0.00038886070251464844, -0.00225830078125, 0.0007042884826660156, 0.007091522216796875, 0.037689208984375, 0.049713134765625, -0.00022125244140625, -0.03448486328125, -0.03179931640625, 0.036376953125, 0.0235748291015625, -0.003635406494140625, 0.0494384765625, -0.0426025390625, -0.0104522705078125, -0.0256500244140625, -0.049896240234375, -0.02850341796875, 0.0269775390625, -0.0357666015625, -0.056732177734375, -0.0002199411392211914, 0.01064300537109375, -0.026153564453125, 0.0032939910888671875, 0.00449371337890625, -0.031494140625, -0.022247314453125, -0.05096435546875, 0.06317138671875, -0.06365966796875, -0.0012607574462890625, 0.05474853515625, -0.021820068359375, 0.029449462890625, 0.014801025390625, -0.0291290283203125, -0.00010794401168823242, 0.0262298583984375, 0.0007147789001464844, -0.02642822265625, -0.0277557373046875, 0.01049041748046875, 0.01119232177734375, -0.0176544189453125, -0.021087646484375, -0.03692626953125, -0.02911376953125, -0.003314971923828125, -0.069580078125, 0.00200653076171875, 0.058929443359375, -0.0211029052734375, -0.00836944580078125, -0.023712158203125, -0.0107574462890625, -0.0290069580078125, -0.017852783203125, -0.0244903564453125, 0.033782958984375, -0.06317138671875, -0.07037353515625, -0.0789794921875, -0.09033203125, -0.030975341796875, 0.0080718994140625, -0.00975799560546875, 0.00766754150390625, 0.0638427734375, 0.00672149658203125, -0.05609130859375, 0.028717041015625, 0.006038665771484375, -0.0129241943359375, 0.04156494140625, 0.0250701904296875, -0.042999267578125, 0.022857666015625, 0.00702667236328125, 0.054107666015625, 0.04150390625, -0.03350830078125, -0.006359100341796875, -0.00687408447265625, -0.0047607421875, 0.0176544189453125, -0.017822265625, 0.0171051025390625, -0.0037174224853515625, -0.01087188720703125, -0.055572509765625, -0.025482177734375, -0.00130462646484375, -0.03302001953125, 0.003177642822265625, -0.0157623291015625, -0.0056304931640625, -0.003971099853515625, 0.02972412109375, -0.022918701171875, 0.008697509765625, -0.00019085407257080078, -0.059478759765625, 0.053375244140625, -0.0009732246398925781, 0.01450347900390625, 0.002017974853515625, -0.01412200927734375, -0.05682373046875, 0.03961181640625, -0.00865936279296875, -0.0313720703125, -0.026611328125, 0.02252197265625, -0.0203399658203125, -0.06298828125, 0.03045654296875, -0.08154296875, -0.01364898681640625, -0.048370361328125, -0.0023555755615234375, 0.0070037841796875, 0.0916748046875, -0.04620361328125, 0.0057525634765625, 0.0161285400390625, -0.0034503936767578125, 0.010772705078125, 0.006496429443359375, -0.07977294921875, -0.0318603515625, -0.070556640625, 0.0106658935546875, 0.004276275634765625, -0.03515625, -0.0153656005859375, 0.0298614501953125, -0.0550537109375, -0.0200347900390625, 0.046661376953125, -0.0447998046875, 0.0185546875, -0.01806640625, 0.00933837890625, -0.06298828125, -0.03131103515625, -0.01654052734375, -0.045318603515625, -0.00580596923828125, -0.005283355712890625, 0.0179290771484375, 0.00022923946380615234, -0.01253509521484375, -0.0022125244140625, 0.045379638671875, 0.039093017578125, 0.023406982421875, 0.01108551025390625, -0.0267486572265625, 0.007526397705078125, -0.01560211181640625, 0.0212249755859375, -0.017547607421875, 0.00881195068359375, -0.003429412841796875, -0.037200927734375, 0.0285797119140625, -0.01235198974609375, 0.03497314453125, 0.0182037353515625, -0.032867431640625, -0.0430908203125, -0.002704620361328125, -0.06512451171875, -0.00998687744140625, -0.034912109375, -0.0186309814453125, 0.01070404052734375, -0.05828857421875, 0.027618408203125, 0.0031452178955078125, 0.0245208740234375, 0.01568603515625, 0.1136474609375, 0.01239776611328125, -0.0030364990234375, -0.052490234375, 0.0281524658203125, 0.04107666015625, 0.0189971923828125, 0.016204833984375, -0.0100555419921875, -0.029052734375, 0.048309326171875, 0.0008053779602050781, -0.010528564453125, -0.0115814208984375, 0.024444580078125, -0.009979248046875, 0.0020465850830078125, -0.006252288818359375, -0.03277587890625, 0.0552978515625, 0.0248260498046875, -0.010223388671875, -0.003932952880859375, -0.037811279296875, 0.0284576416015625, -0.00469207763671875, 0.013092041015625, -0.037841796875, -0.0211334228515625, 0.019073486328125, 0.0384521484375, 0.0251007080078125, 0.005298614501953125, -0.01287841796875, -0.00553131103515625, -0.03814697265625, -0.00406646728515625, 0.0010356903076171875, 0.0152130126953125, -0.017852783203125, 0.021026611328125, 0.003871917724609375, -0.00595855712890625, -0.0166778564453125, 0.0059356689453125, 0.0076904296875, -0.02099609375, -0.01227569580078125, -0.03753662109375, -0.0187835693359375, 0.038177490234375, 0.0146942138671875, 0.0148468017578125, 0.04901123046875, 0.0391845703125, 0.005035400390625, -0.01255035400390625, -0.0284423828125, 0.0295562744140625, -0.0389404296875, 0.0262908935546875, 0.0058441162109375, -0.003307342529296875, -0.0222625732421875, 0.08050537109375, 0.017181396484375, 0.022003173828125, -0.01207733154296875, 0.0322265625, 0.0258026123046875, 0.015716552734375, 0.00714111328125, -0.016754150390625, 0.00617218017578125, -0.0152435302734375, -0.00502777099609375, -0.05230712890625, 0.00878143310546875, -0.031982421875, 0.0404052734375, -0.0246734619140625, -0.0445556640625, 0.061859130859375, -0.029937744140625, -0.01122283935546875, 0.00246429443359375, -0.0234527587890625, -0.02899169921875, -0.0169525146484375, 0.0107269287109375, 0.0144500732421875, 0.00411224365234375, -0.0230560302734375, 0.0305328369140625, -0.0330810546875, 0.042633056640625, -0.00960540771484375, 0.00439453125, 0.006000518798828125, -0.0011463165283203125, -0.00913238525390625, 0.0003914833068847656, 0.0295257568359375, -0.0740966796875, -0.0283203125, -0.0012073516845703125, 0.0003616809844970703, 0.01275634765625, -0.004199981689453125, 0.058441162109375, -0.0200042724609375, -0.053253173828125, 0.037200927734375, 0.005901336669921875, 0.0221710205078125, 0.0018205642700195312, -0.04254150390625, 0.0044097900390625, -0.0196533203125, 0.0122222900390625, 0.0271759033203125, -0.023223876953125, -0.0176544189453125, -0.03582763671875, 0.030303955078125, 0.0220184326171875, -0.0043182373046875, -0.0311279296875, -0.03302001953125, 0.0218658447265625, 0.0400390625, 0.04736328125, -0.028961181640625, 0.0545654296875, 0.005401611328125, 0.045074462890625, -0.0031642913818359375, -0.006908416748046875, -0.01447296142578125, -0.020477294921875, -0.0159454345703125, -0.10150146484375, -0.032928466796875, 0.0390625, -0.05682373046875, 0.07666015625, 0.036224365234375, 0.0189056396484375, 0.0223236083984375, -0.00748443603515625, 0.0083160400390625, -0.004734039306640625, -0.02777099609375, -0.02044677734375, -0.0093231201171875, 0.04364013671875, 0.027587890625, 0.0692138671875, 0.01407623291015625, -0.053131103515625, 0.0259857177734375, 0.01349639892578125, 0.04541015625, -0.013916015625, -0.0034427642822265625, 0.01088714599609375, 0.0099029541015625, 0.01529693603515625, 0.020111083984375, 0.0040130615234375, 0.0223541259765625, -0.00458526611328125, 0.0010471343994140625, -0.018157958984375, 0.0010995864868164062, 0.05731201171875, 0.014862060546875, -0.00008851289749145508, 0.051239013671875, -0.01355743408203125, -0.03387451171875, 0.0592041015625, 0.0209808349609375, -0.06280517578125, -0.023284912109375, -0.008880615234375, 0.0157470703125, 0.0110015869140625, 0.0235595703125, 0.008148193359375, -0.00533294677734375, -0.0235748291015625, -0.0145416259765625, -0.0238037109375, -0.0273590087890625, -0.00007545948028564453, 0.00936126708984375, 0.0005269050598144531, 0.0310821533203125, 0.005462646484375, -0.03363037109375, -0.0260772705078125, 0.0301513671875, -0.0142059326171875, 0.006000518798828125, 0.0088958740234375, -0.01898193359375, -0.00510406494140625, 0.012603759765625, 0.05596923828125, -0.055450439453125, 0.0299530029296875, 0.060302734375, 0.0007200241088867188, 0.0104522705078125, 0.0130462646484375, -0.0003826618194580078, 0.0084381103515625, -0.03265380859375, -0.033233642578125, 0.0113983154296875, -0.0187225341796875, -0.0007143020629882812, 0.005809783935546875, -0.032989501953125, 0.0074310302734375, -0.0306854248046875, -0.002941131591796875, -0.0152435302734375, 0.01526641845703125, 0.1263427734375, -0.041290283203125, -0.0256195068359375, 0.02435302734375, 0.022064208984375, -0.0131072998046875, 0.005615234375, 0.015045166015625, -0.0254669189453125, 0.0021457672119140625, 0.01023101806640625, -0.01020050048828125, 0.0026340484619140625, 0.0178680419921875, -0.0513916015625, 0.09625244140625, -0.01343536376953125, 0.015899658203125, 0.027313232421875, 0.046417236328125, 0.002346038818359375, 0.032318115234375, -0.009368896484375, 0.01215362548828125, -0.0111236572265625, 0.024688720703125, -0.04412841796875, -0.0196990966796875, 0.01318359375, 0.06329345703125, 0.07574462890625, 0.01593017578125, -0.032562255859375, -0.013671875, 0.0452880859375, 0.04534912109375, -0.0120849609375, 0.0278778076171875, 0.006465911865234375, 0.03887939453125, 0.018768310546875, 0.0033473968505859375, 0.03521728515625, 0.0099029541015625, -0.060516357421875, 0.039306640625, 0.032135009765625, 0.039886474609375, 0.00536346435546875, -0.0369873046875, -0.024444580078125, -0.00461578369140625, 0.045989990234375, -0.0210418701171875, 0.0177001953125, -0.00579071044921875, 0.0220489501953125, -0.044647216796875, -0.02581787109375, -0.0064697265625, 0.033050537109375, -0.003971099853515625, 0.04119873046875, 0.0061492919921875, 0.01094818115234375, 0.01018524169921875, -0.021575927734375, 0.0224761962890625, 0.0300750732421875, -0.03558349609375, 0.040435791015625, 0.01461029052734375, 0.01544952392578125, -0.009979248046875, 0.016632080078125, 0.033966064453125, 0.0419921875, -0.040130615234375, -0.0631103515625, 0.01531982421875, 0.0310211181640625, 0.007747650146484375, 0.02386474609375, 0.006923675537109375, 0.0228729248046875, 0.083984375, -0.048431396484375, -0.0234375, 0.00015425682067871094, 0.05621337890625, -0.019287109375, -0.051544189453125, -0.006992340087890625, -0.038970947265625, -0.0888671875, 0.0634765625, 0.0311431884765625, 0.0947265625, 0.0181884765625, 0.0728759765625, -0.0401611328125, -0.04803466796875, 0.003978729248046875, 0.004421234130859375, -0.0083465576171875, 0.00445556640625, -0.0267333984375, -0.01311492919921875, 0.0287322998046875, 0.04864501953125, 0.0215911865234375, 0.005191802978515625, -0.0079345703125, 0.0123291015625, 0.06842041015625, -0.00949859619140625, 0.0239105224609375, 0.006847381591796875, 0.01434326171875, -0.067138671875, 0.05157470703125, 0.01519775390625, 0.006572723388671875, 0.01459503173828125, -0.0211334228515625, 0.054840087890625, -0.0523681640625, 0.0411376953125, -0.00861358642578125, -0.038299560546875, 0.045623779296875, -0.0360107421875, 0.07293701171875, -0.0201873779296875, -0.031402587890625, 0.004116058349609375, -0.050262451171875, -0.048980712890625, 0.0299835205078125, 0.0472412109375, -0.004070281982421875, -0.004680633544921875, 0.01224517822265625, -0.0382080078125, -0.0118560791015625, 0.0200347900390625, 0.0328369140625, 0.01439666748046875, -0.0162200927734375, 0.015655517578125, -0.04803466796875, -0.050201416015625, -0.0247344970703125, 0.047637939453125, 0.00433349609375, 0.0784912109375, -0.022918701171875, 0.0186767578125, -0.051727294921875, 0.053436279296875, -0.06427001953125, -0.037506103515625, 0.046478271484375, 0.037017822265625, 0.01398468017578125, -0.01320648193359375, -0.050750732421875, 0.0071563720703125, 0.0447998046875, -0.03961181640625, 0.0020885467529296875, -0.006641387939453125, 0.01326751708984375, -0.032135009765625, 0.03631591796875, -0.032470703125, -0.04205322265625, -0.06683349609375, -0.0270538330078125, 0.0191497802734375, 0.005786895751953125, -0.0225067138671875, -0.00388336181640625, 0.01067352294921875, -0.0281982421875, 0.0149688720703125, 0.0012617111206054688, 0.0565185546875, 0.05706787109375, -0.033203125, -0.0161285400390625, 0.004856109619140625, -0.01512908935546875, 0.006656646728515625, 0.002716064453125, 0.0004818439483642578, 0.01216888427734375, -0.055328369140625, 0.017059326171875, -0.02606201171875, 0.02044677734375, -0.0301513671875, 0.0021820068359375, -0.031890869140625, 0.0115966796875, 0.0230712890625, -0.00725555419921875, -0.03656005859375, -0.04412841796875, 0.0248565673828125, 0.03350830078125, -0.0115509033203125, -0.00476837158203125, -0.0875244140625, -0.01485443115234375, 0.07244873046875, 0.0029621124267578125, -0.006908416748046875, -0.006198883056640625, -0.04803466796875, 0.023834228515625, 0.0229644775390625, -0.0687255859375, 0.0292205810546875, 0.04425048828125, -0.005523681640625, 0.015777587890625, -0.0229034423828125, -0.048797607421875, -0.0177459716796875, 0.0291290283203125, 0.0281982421875, -0.040496826171875, -0.00238800048828125, 0.0202789306640625, 0.0171966552734375, 0.07928466796875, 0.03729248046875, -0.003692626953125, -0.0052490234375, 0.017791748046875, -0.052001953125, -0.03106689453125, 0.033843994140625, -0.0235137939453125, -0.0478515625, -0.003631591796875, -0.01641845703125, 0.0078582763671875, -0.0440673828125, -0.073974609375, 0.07049560546875, -0.01983642578125, -0.03668212890625, -0.02593994140625, -0.007663726806640625, -0.0086822509765625, 0.0173797607421875, -0.001377105712890625, -0.0275115966796875, -0.024658203125, 0.0310821533203125, 0.01177215576171875, 0.035430908203125, 0.0024394989013671875, 0.0150604248046875, 0.0053558349609375, 0.03314208984375, 0.0286865234375, -0.0096282958984375, 0.021148681640625, -0.0158233642578125, 0.0235748291015625, 0.01557159423828125, -0.06158447265625, -0.0232391357421875, -0.0290374755859375, 0.0300445556640625, 0.02142333984375, -0.03924560546875, -0.0205230712890625, -0.0367431640625, 0.0338134765625, -0.020782470703125, 0.00839996337890625, 0.0025463104248046875, -0.025665283203125, -0.0374755859375, -0.04034423828125, -0.0007715225219726562, 0.035400390625, -0.06103515625, 0.0137481689453125, 0.0261688232421875, 0.0168609619140625, 0.01055908203125, 0.00012159347534179688, 0.0038928985595703125, -0.007110595703125, 0.0235443115234375, -0.016876220703125, -0.033599853515625, 0.0283660888671875, -0.01386260986328125, -0.01271820068359375, -0.0276641845703125, -0.00753021240234375, -0.0137939453125, -0.0268402099609375, -0.01525115966796875, -0.0243988037109375, -0.008697509765625, 0.015869140625, 0.01959228515625, 0.004505157470703125, 0.0014667510986328125, 0.00628662109375, 0.012237548828125, -0.002166748046875, 0.00579833984375, -0.005657196044921875, -0.0024242401123046875, -0.0177154541015625, 0.020263671875, -0.00862884521484375, 0.05718994140625, 0.00876617431640625, 0.01532745361328125, 0.0016622543334960938, 0.039581298828125, -0.055419921875, 0.0027217864990234375, -0.044219970703125, -0.04583740234375, 0.01436614990234375, -0.020233154296875, 0.004161834716796875, -0.01605224609375, -0.0006928443908691406, -0.0245513916015625, -0.02337646484375, 0.0215911865234375 ]
40ab50b6afdc90354d7f971171e11cc93b8b79f4
Wordpress Stackexchange Q: WooCommerce prices location in DB I'm looking for the location of a product's prices according to the option which the user selects in the product price. For example, this WooCommerce shop has a select which prices change according to the user selection. I want to know where are prices for different options stored in DB. Thanks A: As LoicTheAztec told, the product data lives in the posts and postmeta tables. Here is a query, I used to get the prices in my environment (WC Role Based Price installed) SELECT wpp.ID, wppm.meta_key AS FIELD, wppm.meta_value AS VALUE, wppm.* FROM wp_posts AS wpp LEFT JOIN wp_postmeta AS wppm ON wpp.ID = wppm.post_id WHERE wpp.post_type = 'product' AND (wppm.meta_key = '_regular_price' OR wppm.meta_key = '_sale_price' OR wppm.meta_key = '_price' OR wppm.meta_key = '_product_attributes') ORDER BY wpp.ID ASC, FIELD ASC, wppm.meta_id DESC; Perhaps this is helpful.
Q: WooCommerce prices location in DB I'm looking for the location of a product's prices according to the option which the user selects in the product price. For example, this WooCommerce shop has a select which prices change according to the user selection. I want to know where are prices for different options stored in DB. Thanks A: As LoicTheAztec told, the product data lives in the posts and postmeta tables. Here is a query, I used to get the prices in my environment (WC Role Based Price installed) SELECT wpp.ID, wppm.meta_key AS FIELD, wppm.meta_value AS VALUE, wppm.* FROM wp_posts AS wpp LEFT JOIN wp_postmeta AS wppm ON wpp.ID = wppm.post_id WHERE wpp.post_type = 'product' AND (wppm.meta_key = '_regular_price' OR wppm.meta_key = '_sale_price' OR wppm.meta_key = '_price' OR wppm.meta_key = '_product_attributes') ORDER BY wpp.ID ASC, FIELD ASC, wppm.meta_id DESC; Perhaps this is helpful. A: All the data like different prices of a product custom post type are store (for each product) in postmeta table. To find the post id of all products you have to use this query on posts table: SELECT * FROM 'posts' WHERE 'post_type' = 'product' For each product id (post_id), you can retrieve all related data with this query on postmeta table: SELECT * FROM 'postmeta' WHERE 'post_id' = nnnn (nnnn is the number id (post_id) of a product) You will get the list of all product properties metakey and metavalues. For related price meta_key(s) you have, for example: - _regular_price - _sale_price - _price - … To get a particular value of a product meta_key, you can use the wordpress function: get_post_meta($post_id, '$meta_key'); A: Ηere are three meta_keys in postmeta table. [ _sale_price, _regular_price, _price ] First array contains value and second array contains WHERE condition. You can add more conditions. You can update values using the following code. //update _price $wpdb->update( $wpdb->postmeta, array( 'meta_value' => $default_product_price ), array( 'meta_key' => '_price' ) ); //update _regular_price $wpdb->update( $wpdb->postmeta, array( 'meta_value' => $default_product_price ), array( 'meta_key' => '_regular_price' ) ); //update _price $wpdb->update( $wpdb->postmeta, array( 'meta_value' => $default_sale_price ), array( 'meta_key' => '_sale_price' ) ); A: This prints product title and it's price. SELECT distinct p.id, p.post_title,pm.meta_key, pm.meta_value FROM {db_prefix}_postmeta pm inner join {db_prefix}_posts p on p.id= pm.post_id WHERE pm.meta_key = '_sale_price'
wordpress
{ "language": "en", "length": 376, "provenance": "stackexchange_00019.jsonl.gz:462678", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215802" }
[ 0.01446533203125, 0.0019483566284179688, -0.0103607177734375, 0.026580810546875, 0.000042557716369628906, -0.035675048828125, 0.062225341796875, -0.0235137939453125, 0.040313720703125, 0.046722412109375, -0.046875, -0.036712646484375, 0.031951904296875, -0.0105438232421875, -0.037689208984375, -0.025146484375, 0.043487548828125, 0.0004849433898925781, 0.0281829833984375, 0.020172119140625, -0.039093017578125, 0.056732177734375, 0.024658203125, 0.016693115234375, 0.032012939453125, -0.053192138671875, 0.087646484375, -0.019927978515625, 0.06768798828125, 0.006763458251953125, 0.050445556640625, -0.0595703125, 0.019989013671875, -0.06329345703125, 0.08416748046875, -0.01372528076171875, 0.01143646240234375, -0.0143280029296875, 0.024261474609375, -0.0200958251953125, 0.031982421875, -0.015472412109375, -0.020416259765625, 0.0443115234375, -0.024993896484375, -0.045806884765625, 0.021728515625, -0.04449462890625, 0.026458740234375, -0.0160064697265625, 0.030181884765625, 0.01277923583984375, 0.033233642578125, -0.0168914794921875, -0.0303955078125, -0.0104827880859375, -0.018218994140625, -0.006580352783203125, 0.021881103515625, -0.0196685791015625, -0.0111541748046875, -0.021514892578125, 0.022552490234375, 0.0158233642578125, 0.005649566650390625, -0.007221221923828125, 0.058074951171875, 0.0281982421875, -0.04827880859375, 0.00719451904296875, 0.037628173828125, -0.01369476318359375, 0.00447845458984375, 0.022125244140625, -0.03570556640625, -0.052154541015625, 0.02899169921875, -0.033203125, 0.006488800048828125, 0.0210418701171875, -0.0257568359375, -0.0015869140625, -0.013214111328125, -0.04498291015625, 0.021331787109375, -0.0250701904296875, -0.007171630859375, 0.00921630859375, -0.0423583984375, -0.052886962890625, -0.041229248046875, -0.0276641845703125, -0.056182861328125, -0.007221221923828125, -0.04754638671875, -0.003177642822265625, 0.0012912750244140625, 0.02777099609375, -0.026580810546875, 0.00441741943359375, -0.004848480224609375, -0.01296234130859375, -0.018585205078125, -0.02471923828125, 0.0050506591796875, 0.03924560546875, -0.005702972412109375, -0.0021190643310546875, 0.022308349609375, 0.016754150390625, -0.00478363037109375, -0.01016998291015625, -0.01751708984375, -0.050323486328125, 0.01337432861328125, 0.00701141357421875, -0.060150146484375, 0.037841796875, 0.033935546875, -0.0318603515625, -0.00206756591796875, 0.029998779296875, 0.01233673095703125, -0.0258331298828125, -0.01519775390625, -0.01580810546875, -0.021087646484375, -0.0305023193359375, -0.125732421875, 0.06524658203125, -0.00682830810546875, -0.00104522705078125, 0.036895751953125, 0.0472412109375, -0.016571044921875, -0.028167724609375, 0.04248046875, 0.031280517578125, 0.004711151123046875, 0.01175689697265625, 0.006988525390625, -0.0081329345703125, -0.01006317138671875, -0.007213592529296875, 0.0284271240234375, -0.017425537109375, 0.00377655029296875, 0.03271484375, 0.0028133392333984375, 0.028289794921875, -0.00481414794921875, 0.054595947265625, 0.01175689697265625, 0.0189056396484375, 0.0225067138671875, 0.005950927734375, 0.0721435546875, -0.019927978515625, -0.032623291015625, -0.05389404296875, -0.0282135009765625, -0.025299072265625, 0.0225830078125, -0.031768798828125, -0.040679931640625, 0.04437255859375, -0.0245208740234375, -0.0214080810546875, 0.02520751953125, 0.0848388671875, -0.0255279541015625, -0.0221710205078125, 0.006427764892578125, 0.0005822181701660156, -0.032135009765625, 0.0096282958984375, 0.00571441650390625, -0.001346588134765625, 0.0457763671875, -0.003582000732421875, -0.0294647216796875, -0.03143310546875, 0.064453125, -0.0347900390625, -0.032470703125, 0.0379638671875, 0.025177001953125, 0.0445556640625, -0.0225830078125, 0.013641357421875, 0.0240325927734375, 0.05029296875, -0.054473876953125, 0.06365966796875, -0.011444091796875, -0.033172607421875, -0.0216522216796875, -0.004428863525390625, -0.0177154541015625, -0.01401519775390625, -0.014892578125, 0.07635498046875, -0.029327392578125, 0.0517578125, 0.0211181640625, 0.037261962890625, 0.0214080810546875, 0.0245513916015625, -0.0208282470703125, -0.0009241104125976562, 0.0199432373046875, 0.0009722709655761719, -0.0154571533203125, -0.0469970703125, -0.0111541748046875, 0.00786590576171875, -0.058349609375, 0.05377197265625, -0.005245208740234375, 0.048828125, -0.019287109375, -0.038543701171875, 0.004119873046875, -0.001953125, 0.0140533447265625, 0.030181884765625, -0.0024471282958984375, 0.0193328857421875, 0.083740234375, 0.03997802734375, 0.0238037109375, -0.054931640625, 0.005611419677734375, -0.006931304931640625, -0.0210418701171875, 0.0100250244140625, 0.00672149658203125, -0.06170654296875, 0.0024318695068359375, 0.03173828125, 0.0250701904296875, 0.039306640625, -0.003753662109375, 0.0001131296157836914, 0.0679931640625, -0.052032470703125, -0.018798828125, 0.0097808837890625, 0.0115814208984375, 0.046417236328125, 0.0029544830322265625, 0.0014791488647460938, 0.0037136077880859375, -0.01515960693359375, 0.0179901123046875, 0.027923583984375, -0.042083740234375, 0.058929443359375, -0.006221771240234375, 0.0048370361328125, -0.0355224609375, -0.006221771240234375, 0.052459716796875, -0.060272216796875, 0.04779052734375, 0.0129241943359375, 0.050628662109375, 0.0289154052734375, -0.029266357421875, 0.00347137451171875, 0.005527496337890625, -0.0014028549194335938, 0.0116729736328125, -0.047821044921875, -0.08343505859375, -0.07501220703125, -0.03009033203125, 0.062744140625, 0.001766204833984375, -0.0794677734375, 0.01409912109375, 0.0657958984375, -0.049346923828125, -0.01898193359375, -0.049560546875, -0.06195068359375, -0.01303863525390625, 0.045867919921875, -0.0086212158203125, -0.0020236968994140625, 0.01416015625, 0.0303497314453125, -0.0144805908203125, 0.029266357421875, 0.006481170654296875, -0.01465606689453125, 0.031585693359375, -0.0159912109375, 0.0181732177734375, -0.024749755859375, 0.0211181640625, 0.04425048828125, -0.0182342529296875, -0.011077880859375, -0.00641632080078125, -0.017333984375, 0.0234527587890625, -0.01517486572265625, -0.031158447265625, 0.01354217529296875, -0.08575439453125, -0.0184173583984375, 0.004245758056640625, -0.0090484619140625, -0.0171966552734375, -0.031524658203125, -0.0228271484375, -0.0269927978515625, -0.095703125, -0.0809326171875, -0.022735595703125, -0.04833984375, -0.02044677734375, -0.03125, -0.0230255126953125, 0.01554107666015625, -0.03271484375, 0.005283355712890625, 0.00560760498046875, -0.004261016845703125, -0.042938232421875, -0.03753662109375, -0.046234130859375, -0.0029125213623046875, -0.00933074951171875, 0.0096435546875, -0.005950927734375, 0.0238800048828125, -0.02130126953125, -0.05010986328125, -0.01922607421875, 0.0142822265625, -0.0025310516357421875, -0.0241546630859375, -0.0150604248046875, -0.03924560546875, -0.0189666748046875, -0.009246826171875, 0.030853271484375, -0.0008292198181152344, -0.0003418922424316406, 0.01242828369140625, 0.018890380859375, 0.009246826171875, 0.0206146240234375, 0.00833892822265625, -0.0223541259765625, 0.008514404296875, 0.00415802001953125, -0.048797607421875, -0.046600341796875, -0.02349853515625, -0.059478759765625, 0.0272064208984375, 0.01343536376953125, 0.0251617431640625, -0.001972198486328125, 0.0236968994140625, 0.047393798828125, 0.005878448486328125, 0.0192413330078125, -0.02398681640625, 0.0157623291015625, 0.011260986328125, 0.0294952392578125, -0.0574951171875, -0.0171966552734375, -0.0511474609375, 0.03302001953125, -0.003429412841796875, -0.00865936279296875, -0.0184783935546875, 0.0212249755859375, -0.007503509521484375, -0.031768798828125, 0.0650634765625, 0.03240966796875, 0.03125, -0.0191497802734375, -0.055755615234375, -0.0013093948364257812, 0.10443115234375, -0.00937652587890625, -0.0233001708984375, -0.002490997314453125, -0.005096435546875, -0.051483154296875, 0.004291534423828125, -0.04144287109375, 0.0155181884765625, -0.0631103515625, -0.004924774169921875, 0.00710296630859375, -0.02960205078125, -0.00983428955078125, 0.0158233642578125, -0.046051025390625, -0.0234832763671875, 0.0290679931640625, -0.0589599609375, 0.010162353515625, 0.030303955078125, 0.00958251953125, 0.00008493661880493164, -0.01702880859375, -0.039794921875, -0.006458282470703125, -0.0245819091796875, 0.03143310546875, 0.020965576171875, 0.005096435546875, -0.0287322998046875, -0.00930023193359375, 0.0202484130859375, -0.03643798828125, 0.050689697265625, 0.0150909423828125, 0.07489013671875, -0.034271240234375, -0.0709228515625, 0.0162811279296875, -0.08837890625, -0.032379150390625, -0.0280303955078125, 0.019561767578125, 0.031494140625, -0.0106964111328125, 0.037872314453125, -0.01953125, 0.00429534912109375, -0.06292724609375, 0.0020008087158203125, 0.017974853515625, -0.0029773712158203125, -0.01430511474609375, 0.00827789306640625, 0.011505126953125, -0.048980712890625, 0.038177490234375, -0.034942626953125, -0.00482940673828125, 0.0209808349609375, 0.050262451171875, 0.005794525146484375, -0.0052032470703125, -0.036376953125, -0.0166778564453125, 0.022430419921875, 0.04620361328125, -0.007045745849609375, -0.0175323486328125, -0.02008056640625, 0.0013399124145507812, 0.0116729736328125, 0.01543426513671875, -0.0165252685546875, 0.054534912109375, -0.023895263671875, -0.0012502670288085938, 0.0218048095703125, -0.032318115234375, -0.0224609375, 0.02362060546875, -0.0228729248046875, -0.0228118896484375, -0.0305023193359375, 0.056488037109375, -0.012359619140625, 0.02752685546875, -0.05438232421875, -0.0158233642578125, -0.00151824951171875, -0.004505157470703125, 0.0261993408203125, 0.044464111328125, -0.003078460693359375, 0.00943756103515625, -0.0033664703369140625, 0.00614166259765625, 0.0114898681640625, 0.0063629150390625, 0.0007910728454589844, 0.0101776123046875, -0.005970001220703125, -0.0188446044921875, -0.0124969482421875, -0.0060882568359375, 0.010040283203125, -0.042327880859375, -0.059844970703125, -0.00336456298828125, -0.053009033203125, -0.01020050048828125, 0.0455322265625, -0.0162353515625, 0.0244903564453125, 0.036590576171875, -0.0033473968505859375, -0.004863739013671875, -0.04754638671875, 0.006496429443359375, -0.047454833984375, -0.0036029815673828125, -0.008544921875, 0.00986480712890625, 0.0100555419921875, 0.08612060546875, -0.040008544921875, 0.06719970703125, 0.0067596435546875, 0.0248260498046875, 0.01184844970703125, 0.0401611328125, 0.037841796875, -0.045745849609375, 0.0036487579345703125, -0.01004791259765625, -0.019866943359375, -0.00437164306640625, 0.0005412101745605469, 0.00870513916015625, -0.0020809173583984375, -0.031707763671875, -0.006610870361328125, 0.04248046875, -0.003101348876953125, 0.01064300537109375, 0.0009899139404296875, -0.0255279541015625, -0.0272979736328125, -0.00928497314453125, 0.032073974609375, 0.01873779296875, -0.016845703125, -0.003681182861328125, -0.0653076171875, -0.0443115234375, -0.0194854736328125, -0.00888824462890625, -0.0101470947265625, -0.01104736328125, -0.0186614990234375, -0.0191802978515625, -0.01605224609375, 0.004364013671875, -0.0011949539184570312, -0.01511383056640625, -0.01180267333984375, -0.01190185546875, 0.028076171875, -0.0238800048828125, 0.026519775390625, 0.00150299072265625, -0.0347900390625, -0.0161590576171875, 0.027740478515625, 0.0201416015625, 0.00457000732421875, -0.0382080078125, -0.0159912109375, -0.0309295654296875, -0.016448974609375, 0.033050537109375, -0.01727294921875, -0.0108642578125, -0.023712158203125, -0.0037631988525390625, 0.0204620361328125, -0.01280975341796875, -0.03759765625, -0.0294647216796875, -0.00910186767578125, 0.0105438232421875, -0.0259857177734375, -0.006366729736328125, 0.068359375, -0.028228759765625, 0.0714111328125, 0.0090484619140625, 0.03460693359375, -0.0377197265625, -0.018035888671875, 0.0193023681640625, -0.012786865234375, -0.036163330078125, -0.032958984375, 0.01213836669921875, -0.00035691261291503906, 0.020904541015625, -0.01380157470703125, 0.01432037353515625, -0.0178070068359375, 0.00749969482421875, -0.0162811279296875, -0.003276824951171875, -0.020111083984375, -0.003864288330078125, 0.01422882080078125, -0.04205322265625, -0.00949859619140625, -0.002777099609375, 0.00955963134765625, 0.023040771484375, -0.033355712890625, -0.0028209686279296875, 0.0477294921875, -0.03271484375, 0.014984130859375, 0.07000732421875, 0.0438232421875, 0.073974609375, -0.0141143798828125, 0.0430908203125, 0.046905517578125, 0.01096343994140625, -0.006359100341796875, 0.004779815673828125, 0.03704833984375, -0.00469970703125, -0.01288604736328125, 0.0265960693359375, -0.0176849365234375, 0.0011348724365234375, 0.022186279296875, 0.05047607421875, -0.060516357421875, 0.01505279541015625, 0.01380157470703125, -0.0022735595703125, -0.0103759765625, 0.0206451416015625, -0.0304718017578125, -0.0726318359375, -0.013763427734375, 0.00399017333984375, -0.0250244140625, -0.02294921875, 0.0042724609375, 0.0001468658447265625, 0.0184478759765625, 0.0011682510375976562, -0.005008697509765625, -0.0714111328125, -0.0184326171875, 0.056640625, -0.03863525390625, -0.044921875, -0.0021991729736328125, -0.0026035308837890625, -0.0179901123046875, -0.0697021484375, 0.01195526123046875, -0.0037937164306640625, 0.0216064453125, -0.0012750625610351562, 0.01357269287109375, 0.05810546875, 0.0740966796875, 0.0038299560546875, -0.01593017578125, 0.0287628173828125, 0.01490020751953125, -0.001041412353515625, 0.00045299530029296875, -0.00579833984375, 0.007175445556640625, -0.0703125, 0.01059722900390625, -0.06793212890625, 0.040435791015625, 0.00241851806640625, -0.0012903213500976562, 0.01407623291015625, -0.0218658447265625, -0.013275146484375, 0.030914306640625, 0.02764892578125, 0.01432037353515625, 0.0204315185546875, -0.007366180419921875, 0.004276275634765625, 0.0343017578125, 0.00478363037109375, 0.019866943359375, 0.00970458984375, 0.022613525390625, -0.0251922607421875, 0.01078033447265625, -0.0693359375, -0.004741668701171875, 0.0086822509765625, 0.0122222900390625, 0.0447998046875, 0.008941650390625, -0.03369140625, 0.068115234375, 0.01311492919921875, 0.05230712890625, -0.033233642578125, -0.01090240478515625, 0.01226043701171875, 0.036529541015625, 0.04974365234375, 0.002704620361328125, -0.0173492431640625, 0.0296478271484375, 0.0811767578125, 0.0172882080078125, -0.004878997802734375, 0.0262603759765625, 0.020477294921875, 0.02642822265625, 0.0789794921875, -0.03887939453125, 0.03607177734375, -0.02313232421875, 0.040863037109375, 0.0323486328125, 0.0173187255859375, 0.0142669677734375, -0.051177978515625, 0.028076171875, 0.022247314453125, -0.033050537109375, -0.0019683837890625, -0.053924560546875, 0.0313720703125, -0.008453369140625, 0.0269317626953125, -0.03546142578125, -0.00925445556640625, -0.00498199462890625, 0.0406494140625, 0.01480865478515625, -0.0005502700805664062, 0.03472900390625, 0.0202789306640625, 0.00722503662109375, -0.00457000732421875, 0.01459503173828125, 0.0156402587890625, -0.035888671875, 0.07281494140625, 0.06170654296875, 0.0180816650390625, 0.01380157470703125, 0.060577392578125, 0.0218505859375, 0.062103271484375, -0.06988525390625, -0.019561767578125, 0.017242431640625, -0.00331878662109375, -0.0196990966796875, -0.028717041015625, -0.041412353515625, -0.0159912109375, 0.0195159912109375, -0.042205810546875, -0.03558349609375, 0.022369384765625, 0.051544189453125, 0.01084136962890625, 0.01244354248046875, -0.045928955078125, -0.0863037109375, 0.0036220550537109375, -0.01085662841796875, -0.0009326934814453125, 0.0102691650390625, -0.007205963134765625, 0.0286102294921875, -0.006282806396484375, -0.00577545166015625, -0.024078369140625, 0.040618896484375, -0.005718231201171875, 0.02423095703125, -0.06585693359375, -0.039947509765625, -0.008758544921875, 0.063720703125, 0.01197052001953125, 0.024261474609375, 0.01215362548828125, 0.0238494873046875, 0.02777099609375, 0.002521514892578125, 0.05682373046875, -0.005596160888671875, 0.020111083984375, -0.01308441162109375, 0.0236358642578125, -0.01531982421875, -0.00019037723541259766, -0.038421630859375, 0.07427978515625, -0.0217742919921875, -0.00682830810546875, 0.044281005859375, -0.0087738037109375, 0.0221405029296875, 0.0054168701171875, -0.006877899169921875, 0.004810333251953125, 0.015533447265625, -0.061126708984375, -0.01898193359375, -0.01910400390625, 0.0142974853515625, -0.0302276611328125, 0.0137786865234375, -0.00995635986328125, 0.038482666015625, -0.007488250732421875, -0.032623291015625, -0.0006451606750488281, 0.02728271484375, 0.01751708984375, 0.00022113323211669922, 0.005107879638671875, -0.009124755859375, 0.013702392578125, 0.006168365478515625, 0.035308837890625, 0.007259368896484375, -0.0134429931640625, 0.0219268798828125, -0.0088348388671875, 0.0058746337890625, -0.0042877197265625, -0.0140533447265625, 0.0216827392578125, -0.01287841796875, 0.051666259765625, 0.0008192062377929688, -0.02813720703125, -0.0120086669921875, 0.041015625, -0.0157318115234375, 0.058074951171875, -0.034637451171875, -0.0374755859375, -0.0496826171875, 0.0565185546875, 0.00872039794921875, 0.021728515625, -0.01338958740234375, -0.031494140625, -0.0209197998046875, -0.01959228515625, 0.025970458984375, 0.019378662109375, 0.013336181640625, 0.034393310546875, 0.0291748046875, -0.003665924072265625, 0.03717041015625, -0.03997802734375, 0.0865478515625, 0.060821533203125, -0.017364501953125, 0.0163116455078125, 0.0181884765625, -0.0101470947265625, 0.0241546630859375, 0.0141143798828125, 0.0089874267578125, 0.035675048828125, 0.00864410400390625, -0.01861572265625, 0.0158233642578125, 0.02447509765625, 0.006488800048828125, 0.00905609130859375, 0.02630615234375, -0.0293426513671875, -0.01788330078125, -0.005603790283203125, -0.024383544921875, -0.0177154541015625, 0.0263824462890625, 0.014892578125, 0.03253173828125, 0.00617218017578125, -0.031524658203125, -0.026824951171875, 0.025146484375, -0.005462646484375, -0.02294921875, -0.0156707763671875, 0.0023860931396484375, 0.0333251953125, 0.0022907257080078125, -0.04522705078125, 0.0266265869140625, 0.048095703125, -0.01000213623046875, -0.0024700164794921875, -0.0205841064453125, -0.0253448486328125, -0.01438140869140625, 0.020172119140625, 0.0231781005859375, -0.0204010009765625, 0.0163726806640625, 0.01473236083984375, 0.0052490234375, 0.05859375, 0.002536773681640625, -0.06341552734375, -0.00004571676254272461, 0.020538330078125, 0.042999267578125, -0.038848876953125, -0.019805908203125, -0.0214691162109375, 0.041717529296875, 0.0026397705078125, 0.004360198974609375, 0.01849365234375, -0.0400390625, -0.069091796875, 0.0709228515625, -0.01064300537109375, -0.0293426513671875, -0.0161285400390625, -0.0099029541015625, -0.0203704833984375, -0.0023136138916015625, -0.0013332366943359375, -0.0220794677734375, -0.0288238525390625, 0.027099609375, 0.0023956298828125, -0.02069091796875, 0.0301055908203125, -0.04339599609375, -0.05322265625, 0.002193450927734375, 0.02349853515625, 0.00977325439453125, 0.0246734619140625, -0.01258087158203125, 0.0169677734375, 0.04412841796875, -0.01971435546875, -0.01953125, -0.0205078125, -0.0428466796875, 0.00342559814453125, -0.0462646484375, 0.003936767578125, -0.01488494873046875, 0.0302581787109375, 0.0120391845703125, 0.007122039794921875, -0.0234375, 0.0147705078125, -0.00762939453125, 0.0095367431640625, 0.022979736328125, -0.01488494873046875, 0.004856109619140625, 0.015899658203125, -0.0024280548095703125, -0.00345611572265625, 0.01739501953125, 0.037567138671875, -0.021240234375, -0.01125335693359375, 0.032928466796875, -0.01178741455078125, -0.0672607421875, -0.03912353515625, 0.0020904541015625, -0.0238189697265625, -0.02685546875, -0.0127105712890625, 0.026824951171875, -0.0253753662109375, -0.01007843017578125, -0.009765625, -0.007274627685546875, -0.0006508827209472656, 0.021240234375, 0.00270843505859375, 0.01184844970703125, -0.0218963623046875, 0.011962890625, -0.0279693603515625, 0.03057861328125, 0.011932373046875, 0.0225067138671875, -0.026031494140625, 0.053924560546875, 0.02008056640625, 0.053497314453125, 0.01148223876953125, 0.0826416015625, -0.005245208740234375, 0.07049560546875, 0.01313018798828125, -0.032958984375, 0.015777587890625, -0.035400390625, -0.002727508544921875, 0.0204315185546875, -0.00952911376953125, -0.035552978515625, 0.00980377197265625, 0.037567138671875, 0.00846099853515625, 0.00849151611328125 ]
13f2dca68438d5f5e93323d5e250ea478f332a74
Wordpress Stackexchange Q: wp_enqueue_scripts not working in custom theme This one may have been answered before but I could not find it anywhere. I have created a custom theme and a plugin for my site. My theme's functions.php file only contain a wp_nav_menu() function for generating a menu. Now in my plugin when I try to connect my CSS and JS with function my_css_js() { wp_enqueue_style( 'css_style', theme_URL . 'css/style.css' ); wp_enqueue_script( 'my-jquery_file', theme_URL . 'js/jquery.uploadfile.min.js', array(), null ); } add_action('wp_enqueue_scripts', 'my_css_js'); This does not load any CSS or JS in on my site. As you can see I have used wp_enqueue_style and wp_enqueue_script. This is not loading the CSS and JS I need. Is there anything I missed? When I use this same plugin with the same hook in ready made theme this works like charm. I appreciate any help, thank you A: I have found this small error in my code which stops wp_enqueue_scripts() to work in my theme was I forget to put wp_head in my head section. For another person who may make same mistake are advised to check that they have include wp_head in head part and wp_foot at end of your theme.
Q: wp_enqueue_scripts not working in custom theme This one may have been answered before but I could not find it anywhere. I have created a custom theme and a plugin for my site. My theme's functions.php file only contain a wp_nav_menu() function for generating a menu. Now in my plugin when I try to connect my CSS and JS with function my_css_js() { wp_enqueue_style( 'css_style', theme_URL . 'css/style.css' ); wp_enqueue_script( 'my-jquery_file', theme_URL . 'js/jquery.uploadfile.min.js', array(), null ); } add_action('wp_enqueue_scripts', 'my_css_js'); This does not load any CSS or JS in on my site. As you can see I have used wp_enqueue_style and wp_enqueue_script. This is not loading the CSS and JS I need. Is there anything I missed? When I use this same plugin with the same hook in ready made theme this works like charm. I appreciate any help, thank you A: I have found this small error in my code which stops wp_enqueue_scripts() to work in my theme was I forget to put wp_head in my head section. For another person who may make same mistake are advised to check that they have include wp_head in head part and wp_foot at end of your theme.
wordpress
{ "language": "en", "length": 196, "provenance": "stackexchange_00019.jsonl.gz:462696", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215879" }
[ 0.0112762451171875, -0.0096893310546875, -0.03289794921875, 0.009307861328125, 0.0020275115966796875, -0.04510498046875, 0.035552978515625, -0.01251983642578125, -0.01806640625, -0.003124237060546875, -0.047119140625, 0.019805908203125, -0.032684326171875, -0.0162200927734375, 0.0095062255859375, -0.05523681640625, 0.054046630859375, -0.0361328125, 0.0014781951904296875, -0.0038738250732421875, 0.00673675537109375, 0.03778076171875, 0.00728607177734375, 0.1141357421875, 0.0202789306640625, -0.050506591796875, 0.09796142578125, 0.02374267578125, 0.003429412841796875, -0.0128631591796875, 0.027374267578125, -0.01064300537109375, 0.0305328369140625, 0.011383056640625, -0.03375244140625, -0.01297760009765625, 0.0223236083984375, -0.0168304443359375, -0.007694244384765625, 0.02886962890625, 0.02703857421875, -0.00814056396484375, 0.01175689697265625, 0.03485107421875, -0.0114288330078125, -0.0631103515625, 0.04022216796875, -0.01751708984375, -0.01114654541015625, -0.038360595703125, -0.001483917236328125, -0.034637451171875, 0.017852783203125, -0.0254669189453125, -0.01194000244140625, 0.009063720703125, -0.024658203125, -0.014862060546875, 0.0125732421875, 0.06109619140625, 0.01361083984375, -0.00443267822265625, -0.001941680908203125, -0.03857421875, -0.019317626953125, 0.0226287841796875, 0.01117706298828125, -0.00629425048828125, -0.03997802734375, -0.02471923828125, 0.01470947265625, -0.0230560302734375, -0.00719451904296875, 0.01751708984375, -0.04559326171875, -0.0221710205078125, 0.0185699462890625, -0.0274810791015625, 0.0252838134765625, 0.002166748046875, -0.00264739990234375, -0.0325927734375, -0.03765869140625, -0.0012979507446289062, 0.016204833984375, 0.04052734375, -0.0106048583984375, -0.0225677490234375, -0.0246429443359375, 0.0005688667297363281, -0.0300750732421875, -0.006500244140625, -0.0167236328125, -0.0093536376953125, 0.01126861572265625, -0.0180511474609375, 0.039337158203125, 0.0733642578125, -0.00016939640045166016, 0.0257415771484375, 0.0116424560546875, -0.05731201171875, 0.08209228515625, -0.07073974609375, -0.0034427642822265625, 0.0469970703125, 0.006649017333984375, 0.00080108642578125, 0.01323699951171875, 0.005878448486328125, 0.00795745849609375, -0.02520751953125, 0.03076171875, -0.006641387939453125, 0.00860595703125, -0.0293426513671875, -0.025604248046875, 0.03509521484375, -0.000194549560546875, 0.0006341934204101562, 0.0178985595703125, 0.052459716796875, -0.04486083984375, -0.021942138671875, 0.0024471282958984375, -0.0185394287109375, 0.0003807544708251953, -0.0155792236328125, 0.041595458984375, 0.035430908203125, -0.032196044921875, -0.0280303955078125, 0.0751953125, 0.044647216796875, 0.0303955078125, -0.029449462890625, 0.061767578125, -0.006256103515625, -0.0153350830078125, -0.011138916015625, 0.003082275390625, -0.0007653236389160156, -0.0083770751953125, -0.038238525390625, -0.0193023681640625, 0.0026760101318359375, 0.0162200927734375, 0.040557861328125, -0.0140228271484375, -0.03997802734375, 0.040740966796875, -0.03643798828125, 0.034820556640625, -0.00388336181640625, 0.0197601318359375, -0.033843994140625, 0.0457763671875, -0.0428466796875, -0.0018329620361328125, -0.033294677734375, -0.037933349609375, 0.003520965576171875, 0.032928466796875, -0.046478271484375, -0.0118408203125, -0.032012939453125, -0.0234222412109375, 0.00785064697265625, 0.02001953125, 0.0074615478515625, -0.009857177734375, -0.0245361328125, 0.04620361328125, 0.021240234375, -0.00786590576171875, 0.037628173828125, -0.007640838623046875, 0.025543212890625, 0.04022216796875, 0.0120391845703125, -0.01209259033203125, -0.0270843505859375, 0.08184814453125, -0.034088134765625, -0.05499267578125, 0.0079498291015625, 0.0272674560546875, 0.05255126953125, 0.0020008087158203125, 0.0243377685546875, 0.079345703125, 0.00664520263671875, -0.0228271484375, -0.00921630859375, -0.00638580322265625, -0.0060882568359375, -0.0135498046875, 0.0030193328857421875, -0.003147125244140625, 0.017486572265625, -0.004245758056640625, 0.0010986328125, 0.035919189453125, -0.01641845703125, -0.05120849609375, 0.0252838134765625, -0.040985107421875, 0.056549072265625, 0.008514404296875, 0.021484375, -0.00199127197265625, 0.014007568359375, -0.000820159912109375, -0.07586669921875, -0.038116455078125, 0.00829315185546875, -0.04107666015625, 0.0836181640625, -0.0124664306640625, 0.03814697265625, 0.00384521484375, -0.068603515625, 0.01678466796875, 0.004955291748046875, -0.00884246826171875, 0.004833221435546875, -0.022857666015625, -0.0013647079467773438, -0.0105133056640625, 0.0190887451171875, -0.0004444122314453125, 0.0250701904296875, 0.018524169921875, 0.067138671875, -0.0186004638671875, -0.035552978515625, -0.0023288726806640625, -0.004367828369140625, 0.01116943359375, 0.02734375, 0.046356201171875, 0.0316162109375, -0.00568389892578125, -0.0266265869140625, 0.051544189453125, -0.051666259765625, 0.00524139404296875, -0.03057861328125, 0.005222320556640625, -0.0196533203125, 0.05035400390625, -0.03204345703125, 0.046844482421875, -0.050018310546875, 0.0228424072265625, 0.045928955078125, -0.000827789306640625, 0.004222869873046875, -0.01119232177734375, -0.0058135986328125, 0.01012420654296875, -0.003795623779296875, -0.030853271484375, -0.006862640380859375, 0.02215576171875, 0.01070404052734375, 0.0231170654296875, 0.0113372802734375, -0.0044403076171875, 0.009490966796875, 0.0025310516357421875, -0.0589599609375, -0.005458831787109375, 0.0175628662109375, 0.03997802734375, 0.000713348388671875, -0.0166015625, -0.0219879150390625, 0.0113067626953125, 0.0194244384765625, 0.0036334991455078125, 0.03533935546875, -0.039947509765625, -0.015625, -0.0084075927734375, -0.05157470703125, -0.0084228515625, 0.0168609619140625, 0.043731689453125, 0.0310821533203125, 0.057403564453125, 0.02178955078125, -0.008697509765625, 0.03851318359375, -0.0026607513427734375, -0.0186309814453125, 0.050048828125, -0.004474639892578125, 0.018310546875, -0.01163482666015625, 0.046600341796875, 0.037994384765625, -0.01140594482421875, 0.01525115966796875, 0.0159149169921875, 0.0091552734375, 0.019195556640625, 0.020538330078125, 0.016998291015625, 0.01047515869140625, -0.06793212890625, -0.0196990966796875, 0.033172607421875, 0.0307464599609375, 0.043212890625, -0.018829345703125, 0.0176544189453125, 0.0297393798828125, -0.060089111328125, -0.109130859375, -0.0270538330078125, -0.06939697265625, 0.033599853515625, -0.0312042236328125, -0.00928497314453125, -0.007965087890625, -0.0159149169921875, 0.026885986328125, -0.05413818359375, -0.04010009765625, -0.019317626953125, -0.0706787109375, -0.059478759765625, 0.0160064697265625, 0.0171051025390625, 0.0170135498046875, -0.00618743896484375, 0.034393310546875, 0.0066070556640625, -0.035064697265625, 0.01309967041015625, 0.011444091796875, -0.00295257568359375, 0.004573822021484375, 0.0257110595703125, -0.037384033203125, -0.01363372802734375, -0.00832366943359375, -0.0189056396484375, 0.0305023193359375, -0.032012939453125, 0.00742340087890625, -0.037933349609375, -0.03387451171875, -0.0102996826171875, 0.06494140625, 0.0560302734375, -0.01194000244140625, 0.04150390625, -0.0309600830078125, -0.0498046875, 0.002994537353515625, -0.050994873046875, 0.0400390625, 0.0297393798828125, -0.02069091796875, -0.0129547119140625, 0.037994384765625, 0.052703857421875, 0.0042266845703125, -0.005016326904296875, -0.01568603515625, 0.08203125, 0.02349853515625, 0.06781005859375, -0.03570556640625, 0.03546142578125, -0.017852783203125, 0.0233612060546875, 0.01519775390625, -0.0108489990234375, -0.02825927734375, -0.0092010498046875, -0.06610107421875, -0.01476287841796875, 0.02288818359375, -0.03131103515625, 0.0230712890625, -0.003265380859375, -0.0025348663330078125, 0.0174102783203125, 0.06768798828125, -0.05999755859375, -0.0016460418701171875, 0.02703857421875, 0.03515625, -0.053436279296875, -0.0513916015625, -0.05255126953125, -0.009521484375, -0.1046142578125, 0.0045166015625, -0.02227783203125, -0.0428466796875, 0.0162353515625, -0.01416778564453125, -0.04144287109375, -0.07135009765625, 0.041229248046875, -0.01279449462890625, 0.0014848709106445312, 0.004100799560546875, -0.006763458251953125, -0.03594970703125, -0.021240234375, 0.003509521484375, -0.1114501953125, -0.0188751220703125, -0.04595947265625, 0.09283447265625, 0.0266571044921875, 0.0172271728515625, -0.0200958251953125, 0.0626220703125, 0.024810791015625, 0.03985595703125, 0.013275146484375, -0.0086212158203125, 0.0224456787109375, -0.0009098052978515625, 0.0200042724609375, -0.0246429443359375, -0.004375457763671875, -0.006183624267578125, -0.05657958984375, 0.008819580078125, -0.0129852294921875, -0.0122833251953125, 0.033905029296875, -0.034027099609375, -0.007472991943359375, -0.005870819091796875, -0.01507568359375, -0.01519775390625, 0.0147857666015625, -0.027435302734375, -0.007221221923828125, -0.007549285888671875, 0.0312042236328125, -0.0731201171875, 0.022216796875, 0.0030002593994140625, 0.0538330078125, 0.0247802734375, -0.00027060508728027344, 0.0262908935546875, 0.0321044921875, 0.01476287841796875, 0.00662994384765625, 0.06353759765625, -0.017791748046875, -0.015899658203125, 0.0765380859375, -0.0083160400390625, 0.00931549072265625, 0.00909423828125, 0.03955078125, 0.0228271484375, -0.006542205810546875, -0.00804901123046875, 0.03955078125, -0.04974365234375, -0.01497650146484375, -0.00943756103515625, 0.003459930419921875, 0.0093536376953125, -0.00026607513427734375, 0.0035572052001953125, -0.004558563232421875, -0.01496124267578125, -0.031005859375, 0.0016984939575195312, -0.0416259765625, 0.08514404296875, 0.034332275390625, -0.0166778564453125, 0.055755615234375, 0.049774169921875, 0.0230865478515625, -0.0184783935546875, 0.0186614990234375, -0.0281982421875, 0.0261383056640625, 0.035308837890625, 0.019287109375, -0.0164947509765625, -0.006137847900390625, 0.04766845703125, 0.0302581787109375, -0.00870513916015625, -0.02325439453125, -0.01385498046875, 0.03839111328125, -0.019439697265625, 0.006824493408203125, 0.028350830078125, 0.023101806640625, -0.0297393798828125, -0.004161834716796875, 0.00522613525390625, 0.01192474365234375, -0.036529541015625, 0.056304931640625, 0.00921630859375, -0.00423431396484375, -0.022735595703125, 0.0439453125, 0.0311431884765625, 0.002437591552734375, -0.0142974853515625, 0.014068603515625, -0.01812744140625, 0.062255859375, 0.0104827880859375, -0.05682373046875, 0.0321044921875, 0.026275634765625, 0.026092529296875, -0.028533935546875, -0.0108795166015625, 0.0072021484375, 0.019989013671875, 0.01097869873046875, 0.0089263916015625, 0.0176849365234375, 0.005054473876953125, -0.03790283203125, 0.032806396484375, 0.008880615234375, -0.039794921875, -0.0199737548828125, -0.01448822021484375, 0.0299530029296875, 0.024505615234375, 0.0113067626953125, 0.022430419921875, 0.0000864863395690918, 0.0112152099609375, 0.006298065185546875, -0.0007901191711425781, -0.0195159912109375, -0.011199951171875, 0.0330810546875, 0.0147552490234375, 0.005107879638671875, -0.0489501953125, -0.05401611328125, -0.01111602783203125, 0.002040863037109375, 0.020599365234375, -0.0418701171875, 0.00038361549377441406, -0.0316162109375, -0.0015344619750976562, -0.005279541015625, 0.0174713134765625, 0.051727294921875, 0.03021240234375, -0.04107666015625, -0.002841949462890625, -0.0309906005859375, -0.003498077392578125, -0.0310516357421875, -0.05072021484375, -0.026123046875, -0.01502227783203125, -0.0246429443359375, 0.0225830078125, -0.04559326171875, -0.037811279296875, -0.01198577880859375, 0.0154876708984375, 0.0209197998046875, 0.03607177734375, -0.039764404296875, 0.0765380859375, 0.03271484375, 0.01922607421875, 0.015838623046875, 0.049468994140625, 0.018524169921875, -0.020233154296875, -0.00644683837890625, -0.049346923828125, -0.0033168792724609375, -0.02545166015625, 0.015533447265625, 0.049652099609375, 0.052154541015625, 0.0014333724975585938, 0.038055419921875, 0.002506256103515625, 0.0017261505126953125, -0.01142120361328125, -0.01549530029296875, 0.016876220703125, -0.006336212158203125, 0.07525634765625, 0.0005450248718261719, 0.0270233154296875, -0.01068115234375, 0.0033588409423828125, 0.033111572265625, -0.028350830078125, 0.05126953125, -0.03521728515625, -0.05810546875, 0.051300048828125, 0.054595947265625, 0.003490447998046875, 0.0258941650390625, -0.0037708282470703125, 0.01025390625, 0.0013675689697265625, 0.048675537109375, -0.02996826171875, -0.04132080078125, 0.0197296142578125, -0.007274627685546875, -0.0184478759765625, -0.005855560302734375, -0.0035190582275390625, 0.0038852691650390625, 0.042083740234375, 0.0452880859375, -0.07135009765625, 0.0081787109375, 0.0133056640625, 0.002811431884765625, -0.00714874267578125, -0.0247344970703125, 0.019439697265625, -0.0017518997192382812, 0.0252685546875, 0.053314208984375, -0.022186279296875, 0.0288238525390625, 0.0017995834350585938, -0.01221466064453125, -0.048553466796875, -0.01287078857421875, 0.007213592529296875, -0.060516357421875, 0.042449951171875, 0.0615234375, -0.0335693359375, -0.01861572265625, 0.002513885498046875, 0.00274658203125, -0.0253448486328125, -0.03631591796875, 0.039459228515625, -0.0247344970703125, 0.00408935546875, 0.00859832763671875, 0.01255035400390625, 0.0304412841796875, 0.0304412841796875, 0.00275421142578125, 0.01141357421875, -0.0054168701171875, -0.0037593841552734375, 0.039581298828125, -0.02911376953125, 0.043182373046875, 0.0184326171875, -0.05340576171875, 0.0134735107421875, 0.0162200927734375, -0.0413818359375, -0.00812530517578125, -0.005084991455078125, 0.07049560546875, -0.038604736328125, -0.01666259765625, -0.0031642913818359375, 0.019866943359375, 0.0265045166015625, -0.01385498046875, 0.0301361083984375, -0.059295654296875, -0.026611328125, 0.0103302001953125, -0.03399658203125, -0.0301361083984375, -0.03314208984375, -0.026702880859375, 0.0941162109375, -0.03460693359375, -0.013214111328125, 0.0175018310546875, 0.0478515625, -0.0009198188781738281, 0.03662109375, -0.0110931396484375, 0.021728515625, -0.0260009765625, 0.01397705078125, -0.04632568359375, -0.00250244140625, 0.0033817291259765625, 0.046722412109375, 0.0026493072509765625, -0.004791259765625, 0.01076507568359375, -0.0034999847412109375, 0.052001953125, 0.061676025390625, 0.0277557373046875, -0.0214996337890625, -0.0238800048828125, -0.027130126953125, -0.01934814453125, -0.0257110595703125, 0.0200958251953125, -0.0428466796875, -0.042205810546875, -0.011383056640625, -0.0013074874877929688, -0.007335662841796875, -0.007129669189453125, -0.0073089599609375, -0.06439208984375, 0.0247650146484375, 0.029632568359375, 0.033782958984375, -0.04632568359375, 0.0552978515625, -0.0122528076171875, -0.007801055908203125, -0.07177734375, -0.01180267333984375, 0.0079498291015625, -0.009857177734375, -0.001804351806640625, -0.0263671875, -0.0001308917999267578, -0.01666259765625, -0.00952911376953125, -0.023773193359375, 0.034881591796875, -0.020416259765625, 0.046630859375, 0.0144500732421875, 0.03680419921875, -0.0304718017578125, -0.00794219970703125, -0.0198516845703125, 0.03546142578125, -0.03643798828125, -0.003711700439453125, 0.006988525390625, 0.0078582763671875, 0.0011463165283203125, -0.037811279296875, 0.0143280029296875, 0.0103607177734375, 0.011199951171875, 0.016632080078125, 0.0084228515625, 0.0035419464111328125, 0.002132415771484375, -0.0034008026123046875, 0.0098114013671875, -0.0187835693359375, 0.054534912109375, -0.049346923828125, 0.0286102294921875, 0.0172576904296875, 0.062255859375, 0.023101806640625, 0.02862548828125, -0.025115966796875, -0.01849365234375, 0.0032672882080078125, 0.0616455078125, -0.035980224609375, 0.0223236083984375, -0.03521728515625, -0.046875, -0.03472900390625, 0.03509521484375, 0.0030364990234375, 0.0099029541015625, 0.01910400390625, -0.0020275115966796875, -0.05224609375, 0.0004048347473144531, 0.047210693359375, -0.0232391357421875, -0.0325927734375, 0.0200958251953125, 0.0164337158203125, 0.04071044921875, 0.00565338134765625, -0.0030536651611328125, 0.071533203125, 0.0238037109375, -0.0225067138671875, 0.0131072998046875, 0.004055023193359375, -0.034149169921875, -0.0038280487060546875, 0.0065460205078125, 0.06597900390625, 0.0082244873046875, -0.050872802734375, -0.02581787109375, -0.0255279541015625, 0.0294342041015625, 0.0214691162109375, 0.033172607421875, 0.0022106170654296875, 0.0247802734375, 0.037384033203125, -0.043182373046875, 0.007404327392578125, 0.037567138671875, 0.005462646484375, -0.0059356689453125, 0.0220794677734375, 0.010040283203125, -0.0352783203125, -0.0257568359375, 0.00016951560974121094, 0.042938232421875, 0.00748443603515625, 0.0279693603515625, -0.00882720947265625, 0.0055999755859375, 0.036468505859375, -0.001617431640625, 0.00469207763671875, 0.0209503173828125, -0.022186279296875, -0.023406982421875, 0.01299285888671875, -0.01305389404296875, -0.052825927734375, 0.01435089111328125, 0.017242431640625, -0.00008946657180786133, -0.00970458984375, 0.00013005733489990234, 0.021636962890625, 0.0122833251953125, -0.01444244384765625, -0.054229736328125, -0.00972747802734375, -0.040557861328125, -0.0160980224609375, 0.017852783203125, -0.033660888671875, -0.0182647705078125, -0.00827789306640625, -0.00527191162109375, -0.04705810546875, 0.021728515625, -0.019561767578125, 0.017669677734375, 0.025421142578125, 0.041839599609375, -0.0074005126953125, 0.016357421875, -0.0105133056640625, 0.00390625, 0.019683837890625, 0.014556884765625, 0.00014078617095947266, -0.04449462890625, 0.040252685546875, 0.033203125, 0.046630859375, 0.0067596435546875, 0.01132965087890625, 0.053558349609375, -0.03448486328125, -0.036895751953125, -0.056732177734375, -0.0206451416015625, -0.047821044921875, -0.0002732276916503906, 0.0350341796875, -0.0225372314453125, 0.00952911376953125, -0.0275726318359375, 0.01354217529296875, 0.004913330078125, 0.0094146728515625, -0.0670166015625, 0.04083251953125, -0.040618896484375, 0.0352783203125, -0.032135009765625, 0.033538818359375, 0.00592041015625, 0.03704833984375, -0.0416259765625, -0.038421630859375, -0.0107879638671875, 0.05230712890625, -0.023223876953125, 0.028472900390625, 0.05487060546875, -0.019500732421875, -0.0117645263671875, 0.04071044921875, 0.0098876953125, 0.08648681640625, 0.00580596923828125, -0.006725311279296875, -0.0188446044921875, 0.037689208984375, -0.018798828125, -0.06005859375, -0.0040130615234375, -0.0083160400390625, -0.0013036727905273438, -0.033111572265625, -0.0020694732666015625, 0.0017452239990234375, -0.04449462890625, -0.07427978515625, 0.01107025146484375, -0.0022449493408203125, -0.0391845703125, -0.08514404296875, 0.00919342041015625, 0.017608642578125, -0.0294952392578125, -0.035980224609375, -0.04376220703125, -0.0567626953125, 0.03509521484375, 0.01148223876953125, 0.0465087890625, 0.02471923828125, -0.01334381103515625, -0.04620361328125, -0.0196380615234375, -0.0189056396484375, 0.0236358642578125, -0.00691986083984375, -0.0165252685546875, 0.024810791015625, 0.047454833984375, -0.00988006591796875, -0.03887939453125, 0.0004992485046386719, -0.03717041015625, 0.003017425537109375, 0.012420654296875, -0.03143310546875, -0.0175628662109375, 0.052276611328125, 0.00604248046875, 0.015960693359375, -0.00005936622619628906, -0.026702880859375, -0.0272979736328125, 0.005268096923828125, -0.022430419921875, 0.0067138671875, -0.054901123046875, -0.007297515869140625, 0.0097198486328125, -0.024566650390625, -0.047332763671875, -0.01441192626953125, -0.054595947265625, -0.0125732421875, -0.0157470703125, 0.0147552490234375, 0.0102691650390625, -0.0509033203125, 0.0831298828125, -0.034423828125, 0.032623291015625, 0.0155181884765625, 0.034454345703125, 0.055816650390625, 0.0264892578125, -0.0185394287109375, 0.018463134765625, -0.034637451171875, 0.003082275390625, -0.01479339599609375, 0.0220794677734375, -0.00457000732421875, 0.004741668701171875, 0.007579803466796875, 0.007190704345703125, -0.018218994140625, 0.01444244384765625, 0.0004363059997558594, 0.0248870849609375, -0.01198577880859375, 0.0296630859375, -0.033416748046875, -0.024871826171875, -0.0205230712890625, 0.0014638900756835938, 0.004688262939453125, 0.01849365234375, 0.05377197265625, -0.02142333984375, 0.006961822509765625, 0.0104217529296875, 0.00531768798828125, -0.01446533203125, 0.01045989990234375, -0.0310211181640625, -0.0003962516784667969, 0.005710601806640625 ]
f74411d4257ca870cab53112abe69a87847ebef1
Wordpress Stackexchange Q: Can I create customizer setting that can handle plugin shortcode? Can I create a customizer setting which will handle a shortcode from a plugin? Do I violate and rules or guidelines in WordPress theme development? If it's possible what is the best way to sanitize the shortcode data from my customizer setting? A: It's probably best to render the shortcode on output by running it through do_shortcode()
Q: Can I create customizer setting that can handle plugin shortcode? Can I create a customizer setting which will handle a shortcode from a plugin? Do I violate and rules or guidelines in WordPress theme development? If it's possible what is the best way to sanitize the shortcode data from my customizer setting? A: It's probably best to render the shortcode on output by running it through do_shortcode()
wordpress
{ "language": "en", "length": 68, "provenance": "stackexchange_00019.jsonl.gz:462706", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215913" }
[ 0.03363037109375, -0.0035495758056640625, 0.0202789306640625, -0.01169586181640625, -0.00962066650390625, 0.0009889602661132812, -0.00018286705017089844, -0.044219970703125, -0.060638427734375, 0.0221710205078125, 0.03448486328125, 0.0234222412109375, -0.06787109375, -0.03167724609375, 0.0037860870361328125, -0.043792724609375, 0.0218505859375, -0.005840301513671875, 0.0272216796875, -0.038177490234375, 0.0025577545166015625, -0.0235443115234375, 0.020965576171875, 0.06689453125, 0.038726806640625, -0.008544921875, 0.052642822265625, 0.00762176513671875, 0.020050048828125, 0.00015676021575927734, 0.040802001953125, -0.04034423828125, 0.034759521484375, 0.0416259765625, -0.041839599609375, 0.08660888671875, 0.011749267578125, 0.0092010498046875, 0.007579803466796875, 0.03668212890625, 0.06939697265625, -0.0450439453125, 0.04205322265625, 0.01343536376953125, 0.016021728515625, -0.0262908935546875, 0.08746337890625, -0.03802490234375, 0.009490966796875, -0.0243072509765625, 0.01678466796875, -0.003170013427734375, 0.03179931640625, -0.07647705078125, -0.00911712646484375, -0.011474609375, -0.00868988037109375, -0.0133209228515625, 0.0194244384765625, 0.0087738037109375, -0.014312744140625, -0.01052093505859375, 0.0237579345703125, -0.0151824951171875, 0.047515869140625, -0.0018129348754882812, -0.042327880859375, 0.03955078125, -0.003124237060546875, 0.08221435546875, 0.0226898193359375, -0.065185546875, 0.0068511962890625, -0.003887176513671875, -0.0245361328125, -0.008636474609375, 0.0094146728515625, -0.0163726806640625, 0.022430419921875, -0.004436492919921875, 0.01549530029296875, -0.045654296875, 0.0215301513671875, -0.01172637939453125, -0.0030345916748046875, 0.003917694091796875, 0.00388336181640625, -0.0048370361328125, 0.011444091796875, -0.0007824897766113281, -0.0014562606811523438, 0.00989532470703125, 0.00447845458984375, 0.03900146484375, -0.01495361328125, -0.00214385986328125, -0.01033782958984375, 0.0227508544921875, -0.0176544189453125, 0.034454345703125, -0.002971649169921875, -0.0423583984375, 0.060699462890625, -0.04559326171875, -0.00415802001953125, 0.00347900390625, 0.01277923583984375, -0.013336181640625, 0.0165863037109375, 0.02264404296875, -0.0297088623046875, 0.01410675048828125, 0.0035343170166015625, -0.01262664794921875, -0.01654052734375, -0.0099029541015625, -0.041015625, 0.0223541259765625, -0.01214599609375, -0.0186004638671875, 0.033966064453125, 0.030731201171875, 0.0276336669921875, -0.00959014892578125, -0.052703857421875, -0.041412353515625, -0.0386962890625, -0.046417236328125, 0.022125244140625, 0.000850677490234375, -0.032623291015625, -0.0017757415771484375, 0.0638427734375, 0.050628662109375, 0.0364990234375, -0.01236724853515625, 0.06103515625, -0.0200958251953125, 0.01776123046875, -0.0095977783203125, 0.01549530029296875, 0.0121307373046875, 0.0128173828125, -0.01082611083984375, 0.022979736328125, 0.032135009765625, 0.031463623046875, 0.01959228515625, -0.0087738037109375, -0.06829833984375, 0.03955078125, -0.0024433135986328125, 0.01491546630859375, 0.01467132568359375, 0.039581298828125, -0.0151824951171875, 0.043731689453125, -0.032806396484375, 0.01235198974609375, -0.0164031982421875, 0.00943756103515625, 0.006259918212890625, 0.0089263916015625, 0.0013828277587890625, -0.0131072998046875, -0.0082855224609375, -0.0194091796875, -0.0016613006591796875, 0.0174407958984375, 0.0032444000244140625, 0.01629638671875, 0.0222625732421875, -0.0322265625, 0.034393310546875, 0.0275115966796875, 0.003208160400390625, -0.05645751953125, -0.021270751953125, 0.040863037109375, 0.0115814208984375, 0.009429931640625, -0.031463623046875, -0.0185699462890625, 0.044464111328125, -0.04644775390625, 0.020233154296875, 0.0016698837280273438, 0.06707763671875, 0.03515625, 0.0212860107421875, 0.01166534423828125, -0.0308074951171875, -0.0175628662109375, -0.011444091796875, 0.0076446533203125, -0.032073974609375, -0.00823211669921875, -0.034881591796875, -0.0014400482177734375, 0.0260009765625, -0.02410888671875, -0.0175323486328125, 0.01392364501953125, -0.01171875, -0.0216217041015625, 0.00005739927291870117, -0.0249481201171875, 0.0290374755859375, 0.0181427001953125, -0.0162353515625, -0.01033782958984375, -0.01537322998046875, -0.002246856689453125, -0.009490966796875, -0.03045654296875, 0.043701171875, -0.031646728515625, 0.0355224609375, 0.01383209228515625, 0.00958251953125, 0.036834716796875, -0.031646728515625, 0.0318603515625, 0.0241241455078125, -0.006816864013671875, 0.00074005126953125, -0.01012420654296875, -0.006343841552734375, -0.0160675048828125, 0.026275634765625, -0.02008056640625, -0.0001150965690612793, 0.0001049041748046875, 0.0028896331787109375, -0.01117706298828125, -0.01209259033203125, 0.008087158203125, -0.07086181640625, 0.0200653076171875, 0.046905517578125, 0.046112060546875, 0.01399993896484375, -0.0110321044921875, -0.03179931640625, 0.06024169921875, 0.0038909912109375, 0.0303497314453125, -0.0299224853515625, 0.0291900634765625, 0.037109375, -0.001956939697265625, -0.041961669921875, 0.009674072265625, -0.0521240234375, 0.01421356201171875, 0.008758544921875, -0.050750732421875, -0.037353515625, 0.0218963623046875, -0.011993408203125, 0.011444091796875, -0.00481414794921875, 0.0111083984375, -0.011962890625, 0.06805419921875, 0.00150299072265625, 0.040252685546875, 0.0222320556640625, -0.0244140625, 0.035736083984375, -0.00460052490234375, -0.052276611328125, 0.006134033203125, 0.006805419921875, 0.03741455078125, 0.005962371826171875, -0.0374755859375, -0.01515960693359375, 0.0338134765625, 0.0101165771484375, -0.01363372802734375, 0.020233154296875, -0.0204010009765625, -0.0124053955078125, -0.0026187896728515625, -0.054046630859375, 0.0050201416015625, 0.0211639404296875, 0.021148681640625, -0.00756072998046875, 0.0084381103515625, 0.0252838134765625, -0.035430908203125, 0.056365966796875, 0.0390625, -0.0253448486328125, 0.033172607421875, -0.058135986328125, 0.04425048828125, -0.044342041015625, 0.0201568603515625, 0.0654296875, -0.0074005126953125, -0.0013704299926757812, 0.0102081298828125, 0.0164337158203125, 0.007671356201171875, 0.008392333984375, 0.002674102783203125, 0.01093292236328125, -0.05682373046875, -0.0197601318359375, 0.0088348388671875, 0.05633544921875, -0.01238250732421875, -0.040618896484375, 0.0070953369140625, 0.046295166015625, 0.0010576248168945312, -0.0120086669921875, 0.029083251953125, -0.0268402099609375, -0.00004190206527709961, -0.032196044921875, -0.004253387451171875, -0.01203155517578125, -0.0242919921875, -0.004100799560546875, 0.01441192626953125, -0.036895751953125, 0.0058441162109375, -0.032867431640625, -0.05718994140625, -0.0289154052734375, 0.019439697265625, 0.00910186767578125, -0.0008273124694824219, 0.080322265625, 0.00794219970703125, -0.0589599609375, -0.01401519775390625, -0.0166015625, -0.016510009765625, 0.01235198974609375, 0.01070404052734375, -0.0166015625, 0.003269195556640625, -0.003429412841796875, 0.01105499267578125, 0.0250091552734375, -0.021697998046875, -0.0196380615234375, -0.01355743408203125, -0.002445220947265625, -0.0062255859375, 0.0058441162109375, 0.002819061279296875, -0.010406494140625, -0.0024623870849609375, -0.051055908203125, -0.016754150390625, 0.015655517578125, -0.040191650390625, -0.0066986083984375, 0.00943756103515625, -0.0221405029296875, -0.01153564453125, 0.0083160400390625, 0.0411376953125, 0.01239013671875, 0.029205322265625, -0.0178375244140625, 0.00933074951171875, 0.013671875, 0.03875732421875, -0.03338623046875, -0.0006809234619140625, -0.0293121337890625, 0.0267486572265625, -0.01163482666015625, 0.004848480224609375, -0.01522064208984375, 0.0245513916015625, -0.0369873046875, -0.032196044921875, 0.056488037109375, 0.038970947265625, 0.07025146484375, -0.03607177734375, -0.043609619140625, -0.01995849609375, 0.10577392578125, -0.0191497802734375, 0.004657745361328125, 0.0130615234375, -0.00556182861328125, -0.00542449951171875, 0.007671356201171875, -0.081298828125, -0.0219879150390625, -0.0926513671875, 0.0272064208984375, 0.00688934326171875, -0.032958984375, -0.0289154052734375, 0.0103607177734375, -0.0625, -0.027130126953125, 0.0238800048828125, -0.01287078857421875, 0.04278564453125, -0.036651611328125, 0.031951904296875, -0.05670166015625, -0.004207611083984375, -0.027313232421875, -0.0804443359375, -0.0198822021484375, -0.007503509521484375, 0.0570068359375, 0.040496826171875, -0.06158447265625, -0.01224517822265625, 0.040191650390625, -0.0153045654296875, 0.01824951171875, -0.006320953369140625, 0.01348114013671875, -0.01441192626953125, 0.034759521484375, 0.01355743408203125, 0.0032444000244140625, -0.0031528472900390625, 0.01544189453125, -0.0103302001953125, 0.0472412109375, -0.02203369140625, -0.040679931640625, 0.0005526542663574219, -0.038116455078125, -0.034332275390625, -0.01172637939453125, -0.0357666015625, -0.00460052490234375, -0.0305938720703125, -0.0016241073608398438, -0.0062255859375, -0.05029296875, 0.03973388671875, 0.000553131103515625, -0.004749298095703125, -0.004413604736328125, 0.0703125, 0.013458251953125, -0.0258331298828125, -0.04595947265625, -0.02020263671875, 0.03765869140625, 0.0013265609741210938, 0.0235748291015625, 0.0163421630859375, -0.0484619140625, 0.07073974609375, 0.0132904052734375, -0.004688262939453125, -0.021820068359375, 0.052276611328125, -0.00978851318359375, -0.00818634033203125, 0.00019538402557373047, -0.012237548828125, 0.02691650390625, 0.057647705078125, -0.0021190643310546875, 0.004314422607421875, -0.0200653076171875, -0.004344940185546875, -0.031005859375, -0.0024166107177734375, 0.00878143310546875, -0.032958984375, 0.012481689453125, 0.02130126953125, 0.0208892822265625, 0.0258636474609375, -0.018798828125, -0.0010671615600585938, -0.005329132080078125, 0.0135040283203125, 0.00908660888671875, 0.01336669921875, -0.029815673828125, 0.03375244140625, -0.014801025390625, -0.01153564453125, 0.0183563232421875, -0.0003712177276611328, 0.08331298828125, -0.01593017578125, -0.032440185546875, -0.047698974609375, -0.0185546875, -0.03143310546875, 0.01184844970703125, 0.01264190673828125, 0.0290374755859375, 0.025787353515625, -0.006084442138671875, -0.0009684562683105469, -0.0156402587890625, 0.028564453125, -0.0318603515625, -0.010711669921875, -0.022552490234375, -0.0173492431640625, 0.00047707557678222656, 0.0218658447265625, -0.040557861328125, 0.004611968994140625, 0.01103973388671875, 0.0225067138671875, 0.06201171875, -0.0262451171875, 0.0214996337890625, 0.0281219482421875, -0.007373809814453125, -0.053863525390625, 0.004138946533203125, -0.0216217041015625, -0.04180908203125, -0.020233154296875, 0.01837158203125, -0.056976318359375, 0.0035419464111328125, 0.06011962890625, 0.010223388671875, -0.044830322265625, 0.0095367431640625, -0.004230499267578125, -0.0236053466796875, -0.04815673828125, -0.0150909423828125, 0.035003662109375, 0.05328369140625, 0.00463104248046875, -0.0103759765625, -0.01375579833984375, 0.00421142578125, -0.0220794677734375, -0.00955963134765625, -0.0187530517578125, -0.0260772705078125, -0.001659393310546875, -0.002529144287109375, -0.033966064453125, -0.0438232421875, -0.040618896484375, 0.0162506103515625, 0.005767822265625, 0.03619384765625, -0.03765869140625, 0.04107666015625, -0.029632568359375, 0.0157470703125, -0.0199737548828125, 0.022369384765625, 0.0287628173828125, 0.0169525146484375, -0.052490234375, 0.0022945404052734375, -0.032684326171875, 0.005096435546875, -0.02789306640625, -0.035247802734375, -0.0440673828125, -0.0165863037109375, 0.0016803741455078125, 0.024688720703125, -0.0277557373046875, -0.032318115234375, -0.002696990966796875, -0.005252838134765625, -0.0009212493896484375, 0.039215087890625, -0.027587890625, 0.0089263916015625, 0.01158905029296875, 0.019622802734375, -0.0127410888671875, -0.0138397216796875, 0.0179901123046875, -0.019134521484375, 0.0089111328125, 0.0042877197265625, -0.058868408203125, -0.0223846435546875, 0.035125732421875, 0.037078857421875, 0.058868408203125, -0.01334381103515625, 0.05169677734375, -0.035064697265625, 0.0019102096557617188, -0.01506805419921875, 0.0185089111328125, -0.0804443359375, 0.004611968994140625, 0.00490570068359375, -0.02020263671875, 0.0028839111328125, -0.0131988525390625, -0.024261474609375, 0.0168609619140625, -0.002162933349609375, 0.017547607421875, -0.00597381591796875, -0.019622802734375, 0.055450439453125, 0.048919677734375, -0.0218963623046875, 0.013916015625, 0.052703857421875, -0.003047943115234375, -0.01134490966796875, 0.01337432861328125, -0.0204620361328125, 0.00400543212890625, 0.0401611328125, -0.0014047622680664062, -0.0256805419921875, -0.0056304931640625, -0.024505615234375, 0.050750732421875, 0.08038330078125, 0.1055908203125, -0.14599609375, 0.04888916015625, 0.051177978515625, -0.0012025833129882812, 0.020294189453125, -0.01342010498046875, 0.031951904296875, 0.01190185546875, 0.03594970703125, -0.004547119140625, -0.022369384765625, 0.0197296142578125, -0.0196685791015625, 0.0004665851593017578, 0.007694244384765625, 0.0576171875, 0.012298583984375, -0.0121307373046875, -0.0204315185546875, 0.0025806427001953125, -0.003692626953125, -0.0218048095703125, 0.0104827880859375, 0.003833770751953125, -0.033416748046875, -0.03643798828125, 0.0265655517578125, 0.00626373291015625, -0.00405120849609375, -0.0250091552734375, -0.01108551025390625, 0.0217132568359375, 0.04547119140625, -0.0255889892578125, 0.004619598388671875, 0.01462554931640625, 0.023773193359375, 0.00957489013671875, -0.0212249755859375, 0.00885772705078125, 0.07904052734375, -0.04736328125, 0.01369476318359375, 0.0198822021484375, 0.0025844573974609375, -0.0253143310546875, -0.0185546875, 0.10833740234375, -0.058319091796875, -0.00014507770538330078, 0.0224456787109375, 0.044921875, -0.022216796875, -0.0531005859375, 0.005512237548828125, -0.0516357421875, 0.031829833984375, -0.0390625, 0.0274505615234375, 0.0156402587890625, -0.034393310546875, -0.07696533203125, 0.09063720703125, -0.00698089599609375, 0.062286376953125, 0.0003533363342285156, 0.0291595458984375, 0.01800537109375, 0.01067352294921875, 0.0004687309265136719, 0.0955810546875, -0.027130126953125, 0.0380859375, -0.040618896484375, -0.01409149169921875, 0.037322998046875, 0.0587158203125, 0.042572021484375, 0.0083160400390625, 0.0195770263671875, 0.01088714599609375, 0.0236358642578125, -0.0228424072265625, -0.0517578125, 0.03656005859375, -0.00010907649993896484, -0.0022296905517578125, 0.0247955322265625, -0.017333984375, 0.03057861328125, -0.0086517333984375, -0.0093536376953125, 0.0212860107421875, 0.006473541259765625, -0.00769805908203125, 0.005489349365234375, 0.03192138671875, -0.021759033203125, 0.0077972412109375, 0.01396942138671875, -0.0263519287109375, -0.038787841796875, 0.0396728515625, 0.004528045654296875, -0.04107666015625, -0.02032470703125, -0.0262298583984375, 0.033050537109375, -0.01265716552734375, 0.05560302734375, -0.004669189453125, 0.0132598876953125, 0.0164642333984375, -0.01543426513671875, 0.03662109375, 0.032745361328125, -0.06561279296875, -0.0091094970703125, -0.0174713134765625, 0.0167694091796875, -0.052703857421875, -0.03948974609375, 0.00738525390625, 0.010589599609375, 0.0038661956787109375, -0.0208740234375, 0.00958251953125, 0.01432037353515625, -0.0008859634399414062, -0.01483154296875, 0.00800323486328125, -0.0192413330078125, 0.0207061767578125, -0.048065185546875, 0.0195159912109375, 0.0306854248046875, 0.04229736328125, -0.00012612342834472656, 0.025726318359375, -0.09271240234375, -0.01296234130859375, -0.0060882568359375, -0.0157623291015625, -0.0116424560546875, 0.0426025390625, 0.025115966796875, 0.025177001953125, -0.05047607421875, -0.0255584716796875, 0.003948211669921875, 0.031158447265625, 0.01081085205078125, -0.01331329345703125, -0.007137298583984375, -0.0222320556640625, -0.0133056640625, 0.0271759033203125, -0.01132965087890625, 0.01312255859375, 0.00553131103515625, 0.0264434814453125, 0.01540374755859375, -0.0167388916015625, 0.039031982421875, -0.01371002197265625, 0.003437042236328125, -0.04425048828125, -0.004268646240234375, 0.004405975341796875, -0.004955291748046875, -0.00797271728515625, -0.0105133056640625, 0.0311126708984375, -0.007358551025390625, 0.038543701171875, 0.005764007568359375, -0.0304412841796875, 0.0076446533203125, -0.006092071533203125, 0.052001953125, 0.026947021484375, 0.01523590087890625, -0.00833892822265625, 0.0165252685546875, -0.0313720703125, 0.0185699462890625, 0.038787841796875, -0.0183258056640625, 0.0292816162109375, 0.0083770751953125, -0.045654296875, 0.0139923095703125, 0.03704833984375, -0.0039520263671875, -0.033935546875, 0.0016841888427734375, -0.033233642578125, -0.0743408203125, -0.07611083984375, -0.048309326171875, 0.0950927734375, 0.037506103515625, 0.051483154296875, -0.028472900390625, 0.054595947265625, -0.004451751708984375, -0.021209716796875, 0.0013971328735351562, -0.005115509033203125, 0.042510986328125, 0.007144927978515625, -0.033447265625, -0.020782470703125, -0.0129241943359375, 0.0306396484375, 0.011810302734375, -0.01934814453125, 0.00823211669921875, -0.0223236083984375, 0.0080108642578125, -0.0027866363525390625, 0.044158935546875, -0.0284576416015625, -0.0709228515625, -0.061004638671875, 0.0189361572265625, -0.01318359375, 0.0010128021240234375, -0.01238250732421875, 0.007793426513671875, 0.011077880859375, -0.0027675628662109375, 0.0033168792724609375, 0.0015211105346679688, 0.015869140625, 0.035888671875, -0.040496826171875, -0.0300140380859375, 0.00954437255859375, -0.01203155517578125, 0.0003752708435058594, 0.0223541259765625, 0.028900146484375, 0.012603759765625, -0.04461669921875, 0.034423828125, 0.0328369140625, 0.07281494140625, 0.0063629150390625, 0.0168304443359375, -0.0122528076171875, 0.01023101806640625, -0.0022373199462890625, -0.039276123046875, -0.032684326171875, -0.078857421875, 0.005828857421875, 0.02294921875, -0.03985595703125, -0.02691650390625, -0.029876708984375, 0.023895263671875, 0.023712158203125, 0.00014400482177734375, -0.06964111328125, 0.033050537109375, -0.01812744140625, 0.042755126953125, -0.018310546875, 0.00841522216796875, -0.01548004150390625, -0.0157470703125, -0.02294921875, -0.042816162109375, -0.03607177734375, 0.042572021484375, -0.0229034423828125, 0.0293426513671875, 0.05206298828125, -0.03289794921875, -0.049102783203125, 0.10357666015625, 0.0261993408203125, 0.1478271484375, 0.007049560546875, -0.00550079345703125, 0.0265350341796875, 0.00444793701171875, -0.04315185546875, -0.0855712890625, 0.0025043487548828125, -0.071533203125, 0.0166015625, 0.01082611083984375, -0.03619384765625, -0.00824737548828125, -0.054351806640625, -0.09576416015625, 0.061187744140625, -0.0113372802734375, -0.041412353515625, -0.033111572265625, 0.0291748046875, 0.028289794921875, -0.041229248046875, -0.01580810546875, -0.0051422119140625, -0.04217529296875, -0.00860595703125, -0.01129150390625, 0.054046630859375, -0.0203399658203125, 0.00012683868408203125, -0.0170440673828125, 0.01549530029296875, -0.006175994873046875, -0.0154571533203125, 0.0037631988525390625, -0.0181732177734375, 0.028533935546875, 0.0274658203125, -0.0350341796875, -0.04766845703125, 0.0077972412109375, 0.00249481201171875, 0.0125732421875, -0.031829833984375, -0.005657196044921875, 0.00841522216796875, 0.04901123046875, 0.015533447265625, 0.00803375244140625, -0.0411376953125, -0.0072021484375, -0.01690673828125, 0.01239776611328125, 0.002521514892578125, -0.0014629364013671875, -0.0323486328125, -0.007022857666015625, 0.007537841796875, 0.0115814208984375, -0.02581787109375, 0.015838623046875, -0.002414703369140625, -0.0316162109375, 0.012603759765625, -0.0140228271484375, -0.0269012451171875, -0.015472412109375, 0.041717529296875, -0.024200439453125, 0.01251220703125, 0.00611114501953125, 0.017608642578125, 0.02178955078125, 0.03277587890625, 0.0207061767578125, 0.0014009475708007812, -0.0264739990234375, 0.01885986328125, 0.012603759765625, 0.033477783203125, -0.0200653076171875, -0.038665771484375, 0.0114593505859375, 0.014434814453125, 0.01158905029296875, 0.0105438232421875, -0.01519775390625, 0.01105499267578125, 0.006473541259765625, -0.0147857666015625, -0.0188751220703125, -0.001140594482421875, -0.0308990478515625, 0.0487060546875, -0.019500732421875, -0.00933074951171875, 0.01470947265625, -0.02996826171875, 0.021331787109375, 0.0225830078125, 0.0645751953125, -0.0091552734375, 0.032379150390625, -0.012359619140625, 0.0232086181640625, 0.01235198974609375 ]
f40e3bbf2f72457df315286c36466df9fcd3c820
Wordpress Stackexchange Q: REST API: How can I restrict a custom post type to only be accessible by authenticated users? I have a custom post type configured to be accessible via the WP Rest API v2. How do I lock the access to this custom post type so that only the authenticated users can perform GET requests? A: Looks like I found a snippet that do exactly that. It's from Daniel Bachhuber, the API developer. add_filter( 'rest_authentication_errors', function( $result ) { if ( ! empty( $result ) ) { return $result; } if ( ! is_user_logged_in() ) { return new WP_Error( 'restx_logged_out', 'Sorry, you must be logged in to make a request.', array( 'status' => 401 ) ); } return $result; }); This is posted in his gist on GitHub.
Q: REST API: How can I restrict a custom post type to only be accessible by authenticated users? I have a custom post type configured to be accessible via the WP Rest API v2. How do I lock the access to this custom post type so that only the authenticated users can perform GET requests? A: Looks like I found a snippet that do exactly that. It's from Daniel Bachhuber, the API developer. add_filter( 'rest_authentication_errors', function( $result ) { if ( ! empty( $result ) ) { return $result; } if ( ! is_user_logged_in() ) { return new WP_Error( 'restx_logged_out', 'Sorry, you must be logged in to make a request.', array( 'status' => 401 ) ); } return $result; }); This is posted in his gist on GitHub.
wordpress
{ "language": "en", "length": 128, "provenance": "stackexchange_00019.jsonl.gz:462728", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/215985" }
[ 0.046417236328125, 0.0011310577392578125, -0.0242919921875, -0.00457000732421875, 0.0207061767578125, -0.043243408203125, 0.059356689453125, 0.004085540771484375, -0.03778076171875, 0.0101318359375, 0.0013179779052734375, -0.0008144378662109375, -0.024871826171875, -0.04327392578125, 0.01812744140625, -0.03814697265625, 0.024017333984375, 0.030426025390625, 0.038818359375, -0.0228729248046875, 0.0237884521484375, -0.0178680419921875, 0.0274505615234375, 0.0859375, 0.005382537841796875, 0.0201263427734375, 0.044525146484375, -0.028472900390625, 0.029388427734375, 0.01363372802734375, 0.0192413330078125, -0.0633544921875, -0.0170745849609375, 0.07891845703125, -0.059295654296875, 0.02044677734375, 0.022247314453125, 0.03741455078125, 0.006381988525390625, 0.040130615234375, 0.017852783203125, -0.009185791015625, -0.04998779296875, 0.0087432861328125, -0.05401611328125, -0.02032470703125, 0.0144805908203125, 0.0089569091796875, 0.0295562744140625, 0.0562744140625, -0.016815185546875, 0.03741455078125, -0.0139617919921875, 0.03167724609375, -0.01212310791015625, -0.02197265625, 0.0445556640625, -0.060455322265625, 0.0504150390625, -0.03759765625, -0.04888916015625, -0.049896240234375, 0.05218505859375, -0.013946533203125, 0.0266265869140625, -0.01849365234375, 0.04864501953125, 0.0301361083984375, -0.00409698486328125, 0.01139068603515625, 0.00516510009765625, 0.0202789306640625, 0.01502227783203125, -0.00955963134765625, 0.0013723373413085938, -0.01776123046875, 0.00879669189453125, 0.005634307861328125, 0.027191162109375, -0.00012922286987304688, 0.00861358642578125, -0.036102294921875, 0.00043129920959472656, 0.0126495361328125, -0.035614013671875, 0.01137542724609375, -0.01161956787109375, 0.006084442138671875, 0.03692626953125, 0.0229339599609375, 0.00010120868682861328, -0.0012378692626953125, 0.03436279296875, 0.05078125, -0.0106048583984375, -0.02008056640625, 0.0226898193359375, -0.02752685546875, 0.00968170166015625, 0.0004150867462158203, 0.040130615234375, -0.053955078125, 0.037139892578125, -0.010040283203125, 0.02099609375, 0.01155853271484375, -0.0104827880859375, 0.00007021427154541016, 0.038482666015625, 0.021942138671875, -0.003040313720703125, 0.0258331298828125, -0.0005283355712890625, -0.03253173828125, -0.021087646484375, -0.00008445978164672852, -0.015594482421875, -0.01235198974609375, 0.00872039794921875, -0.012176513671875, -0.0185089111328125, 0.005706787109375, 0.0211029052734375, -0.00482940673828125, 0.015380859375, 0.00494384765625, -0.0197296142578125, -0.02099609375, 0.00798797607421875, 0.06256103515625, -0.028656005859375, -0.0147247314453125, 0.0242919921875, 0.01337432861328125, 0.00681304931640625, -0.03863525390625, 0.0179443359375, 0.02215576171875, -0.007476806640625, 0.0200347900390625, 0.007198333740234375, -0.03277587890625, -0.0111541748046875, -0.01061248779296875, 0.0296630859375, 0.0474853515625, 0.0234832763671875, -0.0082244873046875, -0.007030487060546875, -0.06256103515625, -0.007152557373046875, 0.0077056884765625, 0.0125274658203125, 0.0247039794921875, 0.0141754150390625, 0.012725830078125, 0.08172607421875, -0.0232696533203125, -0.041656494140625, -0.033477783203125, 0.0418701171875, -0.00341033935546875, -0.0104522705078125, 0.0066375732421875, -0.03814697265625, 0.00299072265625, -0.0045013427734375, -0.006282806396484375, 0.0204315185546875, 0.05999755859375, -0.022613525390625, -0.04022216796875, -0.0125732421875, 0.008087158203125, -0.02008056640625, 0.0260162353515625, -0.012298583984375, 0.05535888671875, 0.017608642578125, -0.01453399658203125, 0.0166778564453125, -0.02935791015625, 0.08135986328125, 0.00998687744140625, -0.0380859375, 0.048797607421875, 0.01800537109375, 0.055511474609375, -0.015716552734375, 0.0249481201171875, 0.014251708984375, 0.055023193359375, 0.011138916015625, 0.004375457763671875, -0.0236053466796875, -0.07757568359375, 0.0203094482421875, -0.0406494140625, -0.0301513671875, 0.08233642578125, 0.00951385498046875, -0.0177001953125, -0.0038909912109375, -0.036651611328125, -0.047332763671875, -0.0305938720703125, -0.0103607177734375, 0.01556396484375, -0.05120849609375, 0.002201080322265625, 0.041015625, -0.00449371337890625, -0.03924560546875, 0.0361328125, 0.0298309326171875, 0.008880615234375, -0.006114959716796875, 0.050567626953125, -0.00019848346710205078, 0.0286712646484375, 0.0130767822265625, -0.06103515625, 0.01291656494140625, 0.0048980712890625, 0.050140380859375, 0.0008029937744140625, 0.0001875162124633789, -0.005336761474609375, 0.0994873046875, 0.0132904052734375, 0.044952392578125, -0.0218505859375, 0.041900634765625, 0.01146697998046875, -0.0229949951171875, -0.0009832382202148438, 0.007472991943359375, -0.06158447265625, 0.00567626953125, 0.05364990234375, 0.01067352294921875, 0.018402099609375, -0.018157958984375, 0.03607177734375, 0.0154571533203125, -0.03631591796875, 0.0019006729125976562, 0.00908660888671875, 0.00382232666015625, 0.010986328125, 0.0088958740234375, -0.00550079345703125, 0.035186767578125, -0.0144195556640625, 0.023529052734375, 0.019287109375, 0.00872802734375, -0.0007448196411132812, 0.0015287399291992188, -0.023468017578125, -0.0004987716674804688, -0.042236328125, -0.0267486572265625, -0.01367950439453125, 0.00646209716796875, -0.0224456787109375, 0.042449951171875, 0.037109375, -0.0145111083984375, -0.04296875, 0.02740478515625, 0.06884765625, -0.007251739501953125, 0.0254364013671875, 0.07696533203125, -0.0030117034912109375, -0.032562255859375, -0.01824951171875, 0.043548583984375, 0.028594970703125, -0.01158905029296875, 0.00628662109375, -0.031829833984375, 0.003841400146484375, -0.00102996826171875, -0.032470703125, 0.0234375, 0.0318603515625, 0.018951416015625, -0.0009241104125976562, 0.0117645263671875, 0.037567138671875, 0.0172882080078125, 0.024688720703125, 0.01259613037109375, -0.006694793701171875, -0.0166473388671875, -0.07354736328125, 0.0684814453125, -0.05596923828125, -0.00391387939453125, 0.071044921875, -0.00612640380859375, 0.01861572265625, 0.006359100341796875, 0.015625, -0.0269012451171875, 0.0577392578125, 0.014678955078125, -0.06781005859375, 0.037078857421875, 0.031707763671875, 0.0182647705078125, 0.0198211669921875, 0.0186920166015625, -0.0183868408203125, 0.01715087890625, 0.02191162109375, -0.0238800048828125, -0.053955078125, 0.057708740234375, -0.05303955078125, 0.0118408203125, -0.0457763671875, -0.037872314453125, -0.026153564453125, -0.01800537109375, -0.0180511474609375, -0.042022705078125, 0.005275726318359375, -0.028472900390625, -0.0252685546875, -0.029388427734375, 0.0227508544921875, -0.01262664794921875, 0.005062103271484375, 0.005535125732421875, 0.08148193359375, 0.001743316650390625, -0.050811767578125, -0.00672149658203125, 0.01340484619140625, -0.00849151611328125, 0.0038700103759765625, -0.028167724609375, 0.0038852691650390625, 0.027313232421875, 0.0017385482788085938, 0.00041222572326660156, 0.0099639892578125, 0.0027217864990234375, -0.025970458984375, 0.013092041015625, -0.004619598388671875, 0.015533447265625, 0.053436279296875, -0.0231170654296875, 0.0003685951232910156, 0.03399658203125, -0.036376953125, 0.006103515625, -0.02642822265625, -0.042877197265625, -0.013702392578125, 0.021575927734375, -0.00641632080078125, -0.037841796875, 0.01451873779296875, 0.0238189697265625, 0.0211944580078125, 0.005313873291015625, -0.0167388916015625, 0.06231689453125, 0.009246826171875, 0.02252197265625, -0.0357666015625, 0.052734375, -0.0017547607421875, -0.0191497802734375, 0.0118560791015625, -0.0112457275390625, -0.03778076171875, -0.0191497802734375, -0.062408447265625, -0.031890869140625, 0.050079345703125, -0.005077362060546875, 0.00040721893310546875, -0.02362060546875, -0.0233001708984375, -0.005615234375, 0.06341552734375, -0.037139892578125, -0.01021575927734375, -0.021942138671875, 0.004558563232421875, -0.01068878173828125, -0.022918701171875, -0.019195556640625, -0.005191802978515625, 0.0209808349609375, -0.01200103759765625, -0.016204833984375, -0.005718231201171875, -0.006916046142578125, -0.060821533203125, 0.0043487548828125, -0.011749267578125, 0.032440185546875, -0.062164306640625, 0.034698486328125, 0.009613037109375, 0.045318603515625, -0.04180908203125, -0.0133514404296875, -0.034759521484375, -0.0882568359375, -0.023590087890625, -0.012908935546875, 0.0687255859375, 0.017425537109375, -0.0147247314453125, -0.0247039794921875, 0.032135009765625, 0.0225982666015625, 0.00493621826171875, -0.00714874267578125, -0.030303955078125, 0.0178375244140625, 0.0226898193359375, -0.01148223876953125, -0.00005733966827392578, -0.007720947265625, 0.00861358642578125, -0.032745361328125, 0.0045318603515625, -0.0005393028259277344, -0.047760009765625, 0.031951904296875, -0.05322265625, -0.07281494140625, -0.053558349609375, -0.048187255859375, 0.0266571044921875, -0.004268646240234375, -0.0174713134765625, -0.07891845703125, -0.08905029296875, 0.050201416015625, 0.0164947509765625, 0.0002484321594238281, -0.0183258056640625, 0.0345458984375, 0.011260986328125, -0.038482666015625, -0.0213775634765625, 0.017791748046875, 0.01091766357421875, -0.0205078125, 0.057708740234375, -0.00414276123046875, -0.004039764404296875, 0.09222412109375, -0.035003662109375, -0.0185546875, 0.0195465087890625, 0.02508544921875, 0.0091094970703125, -0.01480865478515625, -0.001224517822265625, -0.0059051513671875, -0.00821685791015625, 0.007640838623046875, -0.006069183349609375, -0.0007090568542480469, 0.01274871826171875, 0.02178955078125, -0.0236053466796875, 0.0141754150390625, -0.01123046875, -0.00787353515625, 0.02532958984375, -0.036376953125, -0.01544189453125, -0.00748443603515625, 0.00841522216796875, -0.0299072265625, -0.035186767578125, 0.008819580078125, -0.029083251953125, -0.00872802734375, -0.00952911376953125, 0.0374755859375, -0.0311126708984375, 0.01438140869140625, -0.031158447265625, -0.0121917724609375, 0.049285888671875, -0.00843048095703125, -0.08636474609375, 0.0290069580078125, -0.00986480712890625, 0.046112060546875, 0.046905517578125, -0.0115814208984375, 0.0223388671875, -0.01325225830078125, -0.01212310791015625, 0.01849365234375, -0.01473236083984375, -0.03387451171875, -0.03509521484375, 0.032135009765625, 0.032379150390625, -0.0050201416015625, -0.022064208984375, 0.0821533203125, 0.0236968994140625, 0.024261474609375, -0.028472900390625, 0.044891357421875, 0.055419921875, 0.00797271728515625, -0.0027904510498046875, 0.03302001953125, -0.024322509765625, 0.01221466064453125, -0.006481170654296875, -0.022918701171875, -0.042388916015625, 0.03350830078125, 0.022216796875, -0.01000213623046875, 0.001003265380859375, 0.001674652099609375, -0.0061492919921875, -0.01424407958984375, -0.00028395652770996094, -0.025482177734375, -0.03857421875, -0.0225982666015625, 0.01369476318359375, 0.03363037109375, -0.004909515380859375, -0.0009179115295410156, 0.0030651092529296875, -0.0019168853759765625, 0.006317138671875, 0.0142364501953125, -0.032196044921875, 0.01715087890625, 0.026947021484375, -0.041717529296875, -0.033905029296875, -0.016143798828125, 0.01497650146484375, 0.0025501251220703125, 0.010894775390625, -0.0212860107421875, -0.03179931640625, -0.020355224609375, 0.01255035400390625, -0.0308074951171875, 0.0025730133056640625, -0.039764404296875, 0.0179290771484375, 0.03668212890625, 0.01751708984375, -0.00927734375, -0.018798828125, -0.01515960693359375, -0.0189666748046875, 0.00856781005859375, 0.0006585121154785156, -0.02105712890625, 0.0002799034118652344, 0.02197265625, 0.03717041015625, 0.0033359527587890625, -0.0236968994140625, -0.00875091552734375, 0.0102081298828125, 0.007656097412109375, 0.037261962890625, -0.039459228515625, 0.10546875, 0.01593017578125, 0.09576416015625, 0.0217132568359375, 0.050506591796875, -0.01442718505859375, -0.0220184326171875, -0.0015659332275390625, -0.10589599609375, -0.0206451416015625, -0.0142059326171875, 0.00322723388671875, 0.09521484375, 0.0288848876953125, 0.007781982421875, -0.0165557861328125, -0.035858154296875, -0.003292083740234375, -0.0343017578125, 0.07366943359375, -0.05084228515625, -0.00696563720703125, -0.0462646484375, 0.0259857177734375, 0.04534912109375, -0.03125, -0.03973388671875, 0.039337158203125, 0.01540374755859375, 0.05224609375, -0.0185699462890625, -0.00720977783203125, 0.00666046142578125, 0.0819091796875, 0.015106201171875, 0.07550048828125, 0.016448974609375, 0.04034423828125, 0.078125, 0.004261016845703125, -0.025054931640625, 0.0036563873291015625, -0.00135040283203125, -0.006793975830078125, -0.02044677734375, -0.02227783203125, -0.0184478759765625, 0.0115814208984375, 0.046112060546875, 0.05950927734375, -0.07025146484375, 0.0026493072509765625, -0.0050506591796875, -0.016693115234375, 0.0273284912109375, -0.0006470680236816406, 0.002490997314453125, -0.001995086669921875, 0.036163330078125, -0.039947509765625, -0.0269622802734375, 0.007610321044921875, -0.0325927734375, 0.008148193359375, -0.025238037109375, 0.061492919921875, 0.010650634765625, 0.04962158203125, -0.0012664794921875, -0.0491943359375, 0.050506591796875, -0.0009207725524902344, 0.00685882568359375, -0.01152801513671875, -0.029998779296875, -0.06439208984375, -0.036468505859375, -0.03521728515625, -0.0236358642578125, 0.0194549560546875, 0.022003173828125, 0.035369873046875, 0.048309326171875, -0.0103607177734375, 0.032501220703125, 0.0108184814453125, 0.023345947265625, -0.0025272369384765625, -0.07373046875, -0.0400390625, 0.058319091796875, -0.0304107666015625, 0.0302886962890625, 0.04345703125, -0.042266845703125, -0.005916595458984375, -0.027435302734375, 0.1015625, -0.030029296875, -0.023468017578125, 0.022186279296875, 0.00038814544677734375, -0.01496124267578125, -0.0016021728515625, 0.00765228271484375, -0.036224365234375, -0.000835418701171875, 0.006420135498046875, -0.00957489013671875, -0.01617431640625, 0.0267181396484375, -0.01385498046875, 0.045623779296875, 0.0007576942443847656, -0.00360870361328125, 0.025390625, 0.01009368896484375, -0.0181884765625, 0.024261474609375, -0.042144775390625, 0.040130615234375, -0.0019245147705078125, 0.0201263427734375, -0.020721435546875, -0.004547119140625, 0.002079010009765625, 0.0121307373046875, 0.07684326171875, 0.02667236328125, -0.044342041015625, -0.05120849609375, -0.032958984375, 0.0187225341796875, -0.048248291015625, 0.0511474609375, 0.0284271240234375, 0.056610107421875, 0.05706787109375, -0.0312347412109375, 0.03564453125, -0.005176544189453125, 0.0014600753784179688, 0.0330810546875, 0.00386810302734375, -0.024261474609375, 0.00023102760314941406, 0.017791748046875, -0.045166015625, -0.0013065338134765625, 0.034698486328125, -0.01236724853515625, -0.0239410400390625, 0.0697021484375, 0.038543701171875, -0.01467132568359375, 0.0284271240234375, -0.051422119140625, 0.061309814453125, -0.005214691162109375, 0.03228759765625, 0.037689208984375, 0.02789306640625, -0.04010009765625, 0.02667236328125, 0.028961181640625, 0.0264129638671875, -0.050933837890625, 0.0007643699645996094, 0.01434326171875, 0.017181396484375, -0.0343017578125, 0.00292205810546875, 0.0260162353515625, 0.0117950439453125, -0.02618408203125, -0.025543212890625, 0.0069122314453125, 0.0264434814453125, 0.027191162109375, 0.015716552734375, 0.06182861328125, 0.037841796875, 0.058502197265625, -0.048431396484375, 0.048858642578125, 0.040252685546875, 0.0185546875, -0.005889892578125, -0.001201629638671875, -0.078857421875, 0.032867431640625, -0.01551055908203125, -0.039031982421875, 0.0175628662109375, 0.00893402099609375, 0.02020263671875, 0.0176239013671875, 0.030731201171875, -0.0031795501708984375, 0.01934814453125, 0.0035076141357421875, -0.01177978515625, -0.01253509521484375, -0.0166473388671875, -0.056671142578125, 0.0183258056640625, 0.0223541259765625, 0.00591278076171875, -0.0162353515625, 0.00864410400390625, -0.003185272216796875, -0.0216064453125, -0.017425537109375, 0.031982421875, -0.00740814208984375, -0.005062103271484375, -0.0167388916015625, -0.057952880859375, -0.01515960693359375, -0.051849365234375, 0.007503509521484375, -0.036224365234375, 0.0254058837890625, 0.014312744140625, 0.050811767578125, 0.00923919677734375, -0.000640869140625, 0.0162200927734375, -0.0316162109375, 0.04150390625, 0.01219940185546875, -0.03961181640625, 0.0177001953125, -0.039337158203125, -0.08251953125, 0.017425537109375, 0.0310821533203125, -0.02435302734375, 0.022918701171875, 0.0196685791015625, -0.01129913330078125, -0.00911712646484375, 0.0033359527587890625, 0.0293731689453125, -0.00768280029296875, 0.00665283203125, 0.01416015625, -0.05340576171875, -0.04669189453125, -0.02899169921875, 0.047576904296875, -0.00846099853515625, 0.0341796875, -0.00775909423828125, 0.0316162109375, -0.05059814453125, 0.045013427734375, -0.0592041015625, -0.014129638671875, -0.03509521484375, 0.02435302734375, 0.03680419921875, 0.0210418701171875, -0.0443115234375, 0.052276611328125, 0.0006241798400878906, 0.01242828369140625, 0.0615234375, -0.045562744140625, 0.006832122802734375, -0.01219940185546875, 0.003574371337890625, -0.0360107421875, -0.029754638671875, -0.034149169921875, 0.0049896240234375, 0.007171630859375, 0.00702667236328125, -0.004436492919921875, 0.02935791015625, -0.060882568359375, -0.03045654296875, 0.00798797607421875, -0.039154052734375, -0.0152740478515625, 0.0066375732421875, -0.0274810791015625, 0.048980712890625, -0.044158935546875, -0.043853759765625, 0.01122283935546875, -0.0030803680419921875, -0.06451416015625, -0.004032135009765625, 0.003543853759765625, -0.052398681640625, -0.007244110107421875, 0.01873779296875, -0.0049896240234375, -0.005374908447265625, -0.0275115966796875, -0.0196990966796875, -0.032257080078125, -0.01004791259765625, -0.023468017578125, -0.02032470703125, 0.005550384521484375, 0.0175628662109375, 0.0091705322265625, -0.0257110595703125, -0.0423583984375, -0.0015783309936523438, 0.002811431884765625, -0.0121307373046875, -0.0123138427734375, 0.011627197265625, -0.022735595703125, 0.024139404296875, -0.0174560546875, 0.0034275054931640625, 0.0201263427734375, 0.047637939453125, -0.037078857421875, -0.0015611648559570312, 0.0008478164672851562, -0.00897216796875, 0.0241546630859375, -0.01300811767578125, 0.0165252685546875, -0.0003681182861328125, -0.019134521484375, -0.0302581787109375, -0.020599365234375, 0.0094451904296875, -0.030120849609375, -0.0081634521484375, 0.010162353515625, -0.0048828125, -0.033172607421875, -0.0194549560546875, 0.0192413330078125, -0.053070068359375, -0.0416259765625, -0.0217132568359375, 0.024078369140625, 0.04962158203125, -0.0063323974609375, -0.051116943359375, 0.0635986328125, -0.0252532958984375, -0.00960540771484375, -0.1055908203125, 0.015533447265625, 0.00904083251953125, 0.0136260986328125, -0.041290283203125, -0.00559234619140625, -0.03564453125, 0.04290771484375, 0.01140594482421875, 0.004535675048828125, 0.016998291015625, 0.0194854736328125, -0.055419921875, 0.00833892822265625, 0.0030307769775390625, 0.01200103759765625, -0.0262298583984375, 0.007717132568359375, 0.0231170654296875, 0.02264404296875, -0.020599365234375, 0.07470703125, 0.0031604766845703125, 0.0262451171875, -0.020294189453125, -0.034912109375, -0.00829315185546875, -0.032806396484375, 0.01113128662109375, 0.060638427734375, 0.0008535385131835938, -0.0161285400390625, -0.0171051025390625, -0.06787109375, -0.0259857177734375, -0.0205078125, 0.007305145263671875, -0.045623779296875, 0.018218994140625, 0.014923095703125, 0.0142669677734375, 0.0029468536376953125, -0.01338958740234375, 0.0007686614990234375, -0.021881103515625, 0.0179901123046875, -0.0076446533203125, -0.0299835205078125, 0.035430908203125, -0.0072784423828125, -0.01549530029296875, 0.0080108642578125, -0.0282745361328125, 0.002323150634765625, -0.01285552978515625, -0.0299072265625, -0.03546142578125, -0.02783203125, -0.00980377197265625, 0.0192108154296875, -0.0095977783203125, 0.0357666015625, -0.0181732177734375, 0.00661468505859375, -0.04443359375, 0.01395416259765625, 0.0240478515625, 0.024383544921875, -0.0312347412109375, 0.01322174072265625, 0.045806884765625, 0.01366424560546875, -0.0207977294921875, 0.00089263916015625, -0.01416778564453125, -0.00780487060546875, 0.0039825439453125, 0.016815185546875, 0.018096923828125, 0.00959014892578125, 0.01041412353515625, -0.00919342041015625, 0.0008001327514648438, -0.0382080078125, 0.01003265380859375, -0.006992340087890625, -0.0034313201904296875, 0.01033782958984375 ]
e13ad56294163120e079688381dd8e084d3c70ca
Wordpress Stackexchange Q: Loosen/disable password policy Can anyone guide me in the right direction on how to loosen or disable the strong password policy? Would like to do it without the use of a plugin. I'm running a non-public site and don't need strong security. A: Currently it's not possible to change the strength requirements of the password. You can only deactivate it the functionality completely by dequeueing the password script: add_action( 'wp_print_scripts', 'DisableStrongPW', 100 ); function DisableStrongPW() { if ( wp_script_is( 'user-profile', 'enqueued' ) ) { wp_dequeue_script( 'user-profile' ); } } For changing the minimum strength of the password I can recommend this plugin which builds on the same library and integrates nicely into woocommerce: https://wordpress.org/plugins/wc-password-strength-settings/
Q: Loosen/disable password policy Can anyone guide me in the right direction on how to loosen or disable the strong password policy? Would like to do it without the use of a plugin. I'm running a non-public site and don't need strong security. A: Currently it's not possible to change the strength requirements of the password. You can only deactivate it the functionality completely by dequeueing the password script: add_action( 'wp_print_scripts', 'DisableStrongPW', 100 ); function DisableStrongPW() { if ( wp_script_is( 'user-profile', 'enqueued' ) ) { wp_dequeue_script( 'user-profile' ); } } For changing the minimum strength of the password I can recommend this plugin which builds on the same library and integrates nicely into woocommerce: https://wordpress.org/plugins/wc-password-strength-settings/ A: This will do it :-) add_action( 'wp_print_scripts', 'DisableStrongPW', 100 ); function DisableStrongPW() { if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) { wp_dequeue_script( 'wc-password-strength-meter' ); } } I found the solution here. A: Just to update this answer: add_action( 'wp_print_scripts', 'DisableStrongPW', 100 ); function DisableStrongPW() { if ( wp_script_is( 'user-profile', 'enqueued' ) ) { wp_dequeue_script( 'user-profile' ); } } A: It can also be set in the wp_generate_password function. Just in case you use it for your own code. See: https://codex.wordpress.org/Function_Reference/wp_generate_password
wordpress
{ "language": "en", "length": 196, "provenance": "stackexchange_00019.jsonl.gz:462781", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/216183" }
[ 0.053680419921875, -0.0105743408203125, 0.00007599592208862305, -0.006805419921875, 0.005123138427734375, -0.0267486572265625, 0.05950927734375, -0.02630615234375, 0.0003237724304199219, 0.0225067138671875, -0.0017461776733398438, -0.01056671142578125, -0.01983642578125, -0.021728515625, -0.006534576416015625, -0.024169921875, 0.01418304443359375, 0.0284271240234375, 0.0018129348754882812, -0.025177001953125, 0.00899505615234375, -0.0149383544921875, -0.0169525146484375, 0.04681396484375, -0.014801025390625, 0.06427001953125, 0.1392822265625, -0.04644775390625, 0.00982666015625, -0.01165008544921875, 0.0185089111328125, -0.06646728515625, 0.01207733154296875, 0.017059326171875, -0.0199127197265625, -0.01546478271484375, -0.01885986328125, 0.01611328125, -0.0045013427734375, 0.017486572265625, 0.024688720703125, -0.0065155029296875, -0.04296875, 0.031768798828125, -0.031768798828125, -0.04010009765625, 0.0216217041015625, -0.025177001953125, 0.028900146484375, 0.044647216796875, 0.00238037109375, 0.00563812255859375, 0.009429931640625, -0.01470184326171875, -0.0284881591796875, -0.060546875, -0.056549072265625, -0.01491546630859375, 0.0100555419921875, 0.0745849609375, 0.02978515625, -0.0243377685546875, -0.0171356201171875, -0.055999755859375, -0.01549530029296875, -0.0170440673828125, -0.0207672119140625, 0.00786590576171875, -0.039794921875, -0.001049041748046875, 0.058441162109375, -0.024993896484375, 0.004444122314453125, -0.00550079345703125, -0.008148193359375, 0.0079498291015625, -0.00516510009765625, 0.0173797607421875, 0.022613525390625, -0.0025844573974609375, 0.0304107666015625, 0.034454345703125, -0.0517578125, -0.01702880859375, 0.018768310546875, -0.001422882080078125, 0.0012216567993164062, -0.0310821533203125, 0.0016326904296875, -0.00408935546875, -0.02130126953125, 0.03900146484375, 0.01447296142578125, -0.00909423828125, -0.05908203125, 0.00257110595703125, 0.029388427734375, -0.00927734375, 0.0037708282470703125, -0.00913238525390625, 0.012176513671875, -0.048553466796875, 0.02008056640625, 0.006656646728515625, -0.033050537109375, 0.0357666015625, 0.017425537109375, 0.005279541015625, -0.005645751953125, 0.0262451171875, -0.01409912109375, -0.06549072265625, -0.016937255859375, -0.037017822265625, 0.0105133056640625, 0.017822265625, -0.02935791015625, 0.022003173828125, 0.008575439453125, -0.00554656982421875, -0.01477813720703125, 0.00444793701171875, -0.03240966796875, 0.041778564453125, -0.036529541015625, -0.0265655517578125, 0.0149383544921875, -0.000014185905456542969, -0.0145263671875, 0.00922393798828125, -0.038848876953125, 0.00514984130859375, 0.0767822265625, 0.060882568359375, 0.025909423828125, -0.006839752197265625, 0.039764404296875, 0.045074462890625, -0.0094757080078125, 0.0131072998046875, -0.0178375244140625, -0.009735107421875, 0.0002359151840209961, -0.02825927734375, 0.003299713134765625, 0.00354766845703125, 0.0026950836181640625, 0.033721923828125, 0.032989501953125, -0.0146484375, 0.00803375244140625, -0.03662109375, -0.016448974609375, 0.0330810546875, 0.03839111328125, 0.01016998291015625, 0.058868408203125, -0.01284027099609375, -0.00536346435546875, -0.00595855712890625, 0.005588531494140625, -0.0097503662109375, 0.0224609375, 0.033233642578125, 0.0017557144165039062, 0.0241851806640625, 0.008087158203125, 0.0018291473388671875, 0.0156402587890625, 0.01554107666015625, 0.044158935546875, -0.0303955078125, -0.040374755859375, 0.002849578857421875, 0.0009984970092773438, 0.0132598876953125, -0.0217132568359375, 0.0322265625, 0.019195556640625, 0.003635406494140625, 0.0011043548583984375, -0.03399658203125, 0.0745849609375, -0.01519775390625, -0.00835418701171875, -0.0215606689453125, 0.0254669189453125, 0.0191497802734375, 0.00353240966796875, 0.04046630859375, 0.0013780593872070312, 0.0133819580078125, 0.0181427001953125, 0.020660400390625, -0.019134521484375, -0.045989990234375, 0.0218963623046875, -0.0010471343994140625, -0.0232086181640625, 0.0106658935546875, 0.038330078125, -0.040740966796875, 0.01178741455078125, -0.05682373046875, -0.07843017578125, -0.035980224609375, -0.0122222900390625, 0.031280517578125, -0.043365478515625, 0.034881591796875, 0.026397705078125, -0.0052490234375, -0.040313720703125, 0.00856781005859375, 0.0099334716796875, -0.04058837890625, -0.0312347412109375, 0.0882568359375, -0.0006680488586425781, 0.06890869140625, 0.0182342529296875, -0.04913330078125, 0.038818359375, -0.0143280029296875, -0.00684356689453125, -0.0165557861328125, -0.00693511962890625, -0.01357269287109375, -0.003162384033203125, -0.02685546875, 0.02398681640625, 0.031158447265625, 0.0036029815673828125, 0.0267181396484375, -0.03521728515625, -0.003200531005859375, 0.0060882568359375, -0.0174560546875, 0.0078277587890625, 0.038238525390625, 0.055633544921875, 0.034271240234375, -0.0263519287109375, -0.058685302734375, 0.06146240234375, -0.067138671875, 0.0029392242431640625, -0.023345947265625, 0.0051422119140625, 0.035308837890625, -0.01309967041015625, 0.011016845703125, 0.020111083984375, 0.0129241943359375, -0.0021839141845703125, 0.04522705078125, -0.01061248779296875, 0.007266998291015625, 0.007965087890625, 0.0012750625610351562, -0.007595062255859375, -0.0140228271484375, 0.0195465087890625, -0.03399658203125, 0.011962890625, -0.018463134765625, 0.0174560546875, 0.018280029296875, 0.00653839111328125, -0.01174163818359375, 0.020599365234375, -0.025115966796875, -0.0136260986328125, 0.032135009765625, 0.034515380859375, -0.033233642578125, -0.041473388671875, -0.0000641942024230957, -0.01560211181640625, 0.0051422119140625, -0.02874755859375, -0.02166748046875, -0.01416015625, -0.00131988525390625, -0.0301361083984375, -0.0712890625, 0.046295166015625, 0.04229736328125, -0.005046844482421875, 0.006153106689453125, 0.022186279296875, 0.0343017578125, -0.0031681060791015625, 0.018524169921875, 0.0054473876953125, 0.0009179115295410156, -0.0328369140625, -0.022003173828125, 0.031951904296875, -0.03887939453125, 0.026702880859375, 0.06011962890625, -0.01076507568359375, 0.0206298828125, 0.01175689697265625, -0.018646240234375, 0.00237274169921875, 0.0185699462890625, 0.004238128662109375, 0.0188446044921875, -0.05279541015625, 0.03057861328125, 0.00490570068359375, 0.005939483642578125, -0.0136566162109375, -0.025543212890625, -0.004299163818359375, 0.004421234130859375, -0.005462646484375, 0.00701904296875, -0.0595703125, -0.074462890625, -0.005336761474609375, 0.0287017822265625, -0.0313720703125, 0.007305145263671875, 0.06524658203125, 0.0151824951171875, -0.007747650146484375, -0.006595611572265625, -0.0285797119140625, -0.024688720703125, -0.0250244140625, -0.0218353271484375, -0.0124053955078125, -0.0106353759765625, -0.007259368896484375, 0.1328125, -0.0014886856079101562, -0.055877685546875, -0.045806884765625, -0.047607421875, -0.0271148681640625, 0.0006589889526367188, -0.0272216796875, -0.0221405029296875, 0.0203704833984375, -0.0028095245361328125, -0.05810546875, -0.031341552734375, 0.058319091796875, -0.029571533203125, 0.015960693359375, -0.0179595947265625, 0.00125885009765625, 0.048828125, -0.007659912109375, -0.0291290283203125, -0.0184326171875, -0.05987548828125, -0.02947998046875, 0.0076446533203125, -0.0294647216796875, 0.00307464599609375, -0.000027239322662353516, -0.0120086669921875, 0.0004124641418457031, 0.01145172119140625, 0.01119232177734375, -0.0027980804443359375, 0.0063323974609375, -0.011077880859375, 0.01003265380859375, -0.0128936767578125, -0.0084381103515625, -0.0144500732421875, 0.028350830078125, -0.031402587890625, 0.01520538330078125, 0.0016698837280273438, 0.004230499267578125, -0.0140380859375, 0.00567626953125, -0.0123443603515625, -0.0631103515625, 0.03961181640625, -0.0626220703125, 0.00890350341796875, -0.064208984375, -0.023193359375, -0.016510009765625, 0.1024169921875, -0.04388427734375, -0.02386474609375, -0.00042128562927246094, 0.035064697265625, -0.05126953125, -0.08221435546875, -0.007080078125, -0.02044677734375, -0.045684814453125, -0.026947021484375, -0.0240325927734375, -0.03369140625, 0.0121002197265625, -0.07373046875, -0.0189208984375, -0.05145263671875, 0.0030879974365234375, -0.0131683349609375, -0.004608154296875, -0.0010967254638671875, -0.03363037109375, -0.00470733642578125, 0.00554656982421875, -0.03369140625, -0.056121826171875, -0.003025054931640625, -0.01161956787109375, 0.043792724609375, 0.0206298828125, -0.0384521484375, -0.011260986328125, 0.033721923828125, 0.045745849609375, -0.006011962890625, 0.019287109375, -0.0325927734375, 0.01512908935546875, 0.03173828125, 0.01551055908203125, 0.0110015869140625, -0.017364501953125, -0.01177978515625, -0.022705078125, 0.019927978515625, 0.0034046173095703125, 0.04742431640625, 0.037689208984375, -0.0254974365234375, -0.08294677734375, -0.04840087890625, -0.004756927490234375, 0.01611328125, -0.0218963623046875, 0.02923583984375, -0.04486083984375, -0.0587158203125, 0.08636474609375, -0.00180816650390625, -0.007526397705078125, -0.01522064208984375, 0.06396484375, -0.0091552734375, -0.0362548828125, -0.0157470703125, 0.00858306884765625, 0.0183258056640625, 0.0202789306640625, 0.033111572265625, 0.01540374755859375, -0.00009942054748535156, 0.015716552734375, -0.00937652587890625, -0.01323699951171875, -0.00594329833984375, -0.0037136077880859375, 0.005367279052734375, -0.037139892578125, 0.0188751220703125, 0.0149993896484375, 0.0240478515625, 0.0247344970703125, 0.0196380615234375, -0.018402099609375, -0.006572723388671875, 0.02069091796875, 0.027496337890625, -0.054107666015625, -0.026092529296875, -0.048614501953125, 0.029388427734375, 0.0014448165893554688, -0.048675537109375, -0.0020294189453125, 0.0163116455078125, -0.032318115234375, -0.0228271484375, -0.007686614990234375, -0.040008544921875, -0.041015625, -0.006450653076171875, 0.0174560546875, -0.045745849609375, 0.0108489990234375, -0.01317596435546875, -0.0247650146484375, 0.07305908203125, -0.014617919921875, -0.0679931640625, 0.022369384765625, -0.027069091796875, 0.06927490234375, 0.046630859375, -0.0169830322265625, 0.08447265625, -0.0077362060546875, -0.029052734375, -0.037841796875, -0.075927734375, -0.053955078125, -0.09130859375, 0.043060302734375, 0.0224609375, -0.01456451416015625, 0.030487060546875, 0.0276641845703125, 0.03851318359375, 0.0094451904296875, -0.0176849365234375, 0.016326904296875, 0.0159912109375, -0.01898193359375, -0.0022296905517578125, 0.0787353515625, -0.011383056640625, -0.0291748046875, 0.0283050537109375, -0.0128936767578125, -0.03472900390625, 0.01404571533203125, 0.0229034423828125, -0.01180267333984375, 0.0187530517578125, 0.0005469322204589844, -0.00019025802612304688, -0.016754150390625, 0.05413818359375, 0.009613037109375, -0.0509033203125, -0.0249786376953125, 0.026763916015625, 0.03424072265625, -0.0301361083984375, 0.0161895751953125, -0.0546875, -0.02862548828125, -0.04852294921875, 0.009613037109375, -0.031707763671875, -0.0288848876953125, -0.0244598388671875, -0.024658203125, 0.0005941390991210938, -0.01132965087890625, -0.01067352294921875, -0.03753662109375, 0.00440216064453125, 0.00396728515625, 0.0280303955078125, -0.0303192138671875, 0.02008056640625, 0.01134490966796875, -0.0137786865234375, 0.04351806640625, 0.02899169921875, -0.01568603515625, -0.0230712890625, -0.035736083984375, -0.031951904296875, -0.013763427734375, -0.0268707275390625, -0.0028324127197265625, 0.0222625732421875, -0.047393798828125, 0.0173797607421875, 0.013824462890625, 0.011627197265625, -0.0010585784912109375, -0.0134735107421875, -0.035675048828125, 0.0268707275390625, 0.03900146484375, 0.036407470703125, -0.0088958740234375, 0.01262664794921875, 0.036834716796875, 0.006378173828125, 0.037353515625, 0.028411865234375, -0.0063018798828125, -0.037872314453125, 0.023040771484375, -0.03167724609375, -0.0232391357421875, -0.00893402099609375, 0.0017461776733398438, -0.0159759521484375, -0.0074615478515625, -0.0155792236328125, -0.0034084320068359375, -0.0190277099609375, 0.01421356201171875, -0.0233001708984375, 0.05047607421875, -0.026519775390625, -0.0296630859375, 0.00698089599609375, -0.0196075439453125, 0.047760009765625, -0.0218353271484375, -0.032196044921875, 0.069580078125, -0.038238525390625, 0.062286376953125, 0.0176544189453125, -0.04095458984375, 0.055389404296875, 0.003021240234375, -0.0231475830078125, 0.0115966796875, 0.003879547119140625, 0.0163421630859375, -0.0306549072265625, -0.0257568359375, -0.0391845703125, 0.04071044921875, 0.01117706298828125, 0.0013685226440429688, 0.001285552978515625, 0.01410675048828125, -0.005535125732421875, 0.03045654296875, 0.05267333984375, 0.06951904296875, -0.0819091796875, 0.0305633544921875, 0.0303955078125, -0.01421356201171875, 0.04095458984375, -0.003040313720703125, -0.003406524658203125, -0.00980377197265625, 0.0404052734375, -0.0298614501953125, -0.0123443603515625, 0.0037441253662109375, -0.0303497314453125, -0.0021915435791015625, -0.007007598876953125, 0.054046630859375, 0.034271240234375, -0.04779052734375, 0.040985107421875, 0.029754638671875, 0.04840087890625, -0.003887176513671875, -0.007022857666015625, 0.023651123046875, -0.0758056640625, -0.12066650390625, -0.0570068359375, 0.0149078369140625, -0.0828857421875, 0.045501708984375, 0.00913238525390625, 0.032440185546875, 0.06744384765625, -0.01092529296875, 0.0188751220703125, 0.0186920166015625, 0.0032196044921875, -0.0282440185546875, -0.044342041015625, 0.0186614990234375, -0.0005540847778320312, -0.040313720703125, 0.0205841064453125, -0.01824951171875, -0.056365966796875, -0.019622802734375, -0.037750244140625, 0.047119140625, 0.004978179931640625, -0.015838623046875, 0.00859832763671875, 0.031219482421875, -0.002338409423828125, -0.016021728515625, 0.0242919921875, -0.00864410400390625, 0.02178955078125, -0.007511138916015625, 0.0006999969482421875, -0.020904541015625, -0.04559326171875, -0.04058837890625, 0.1046142578125, -0.03179931640625, -0.00511932373046875, 0.0205230712890625, 0.036285400390625, -0.01433563232421875, 0.0223541259765625, -0.0006537437438964844, 0.034698486328125, -0.01555633544921875, 0.039031982421875, 0.03839111328125, 0.00897216796875, 0.03472900390625, 0.015289306640625, 0.00623321533203125, 0.0040283203125, 0.00856781005859375, -0.02716064453125, -0.0020904541015625, 0.025390625, -0.005588531494140625, -0.001544952392578125, -0.0180511474609375, 0.01189422607421875, 0.0031280517578125, -0.0899658203125, 0.006847381591796875, -0.072509765625, 0.01348876953125, 0.008697509765625, 0.0167083740234375, 0.0019216537475585938, 0.00812530517578125, 0.0667724609375, -0.051239013671875, 0.01116943359375, 0.03314208984375, 0.0244293212890625, 0.00959014892578125, 0.04376220703125, 0.04205322265625, -0.0160675048828125, 0.00838470458984375, -0.027435302734375, 0.059783935546875, -0.002635955810546875, 0.0219268798828125, 0.036041259765625, 0.028167724609375, 0.0008339881896972656, -0.015960693359375, 0.00905609130859375, 0.0005578994750976562, -0.021453857421875, 0.0118865966796875, -0.007579803466796875, 0.00508880615234375, -0.032623291015625, 0.06915283203125, 0.03167724609375, 0.017303466796875, -0.056396484375, -0.029205322265625, 0.014862060546875, 0.016265869140625, 0.0081634521484375, -0.01073455810546875, 0.00026488304138183594, 0.0121612548828125, 0.047607421875, -0.0012235641479492188, 0.0200347900390625, 0.02520751953125, -0.0015687942504882812, 0.0157012939453125, 0.0816650390625, -0.059814453125, 0.023651123046875, -0.01031494140625, 0.01546478271484375, -0.01702880859375, 0.004589080810546875, 0.0015039443969726562, 0.0159454345703125, -0.0157623291015625, 0.0128021240234375, -0.002399444580078125, 0.043212890625, 0.003681182861328125, -0.0036754608154296875, -0.0294036865234375, -0.051727294921875, 0.00400543212890625, 0.0269775390625, -0.018890380859375, -0.0024051666259765625, 0.03387451171875, 0.052215576171875, -0.0272979736328125, -0.0355224609375, 0.033599853515625, -0.0092315673828125, 0.0219573974609375, -0.0247039794921875, 0.034332275390625, 0.007488250732421875, -0.0022945404052734375, -0.027740478515625, 0.0467529296875, 0.014556884765625, 0.036224365234375, 0.019439697265625, 0.0117950439453125, 0.03741455078125, -0.005535125732421875, 0.035552978515625, -0.042572021484375, 0.06658935546875, -0.0224456787109375, 0.00860595703125, -0.028564453125, -0.07122802734375, 0.0206451416015625, 0.02581787109375, -0.05023193359375, 0.052978515625, 0.0086669921875, -0.007709503173828125, 0.0002598762512207031, 0.00940704345703125, -0.0180511474609375, -0.0234832763671875, 0.01611328125, -0.0285491943359375, -0.044036865234375, -0.0293731689453125, -0.03912353515625, 0.033721923828125, 0.0261688232421875, 0.0577392578125, 0.005130767822265625, 0.010589599609375, 0.00984954833984375, -0.0173492431640625, 0.022552490234375, -0.00659942626953125, -0.0196380615234375, 0.013275146484375, 0.0176239013671875, -0.0196685791015625, -0.066650390625, 0.08551025390625, -0.007221221923828125, 0.047454833984375, 0.061676025390625, -0.007659912109375, 0.0020542144775390625, 0.00847625732421875, 0.01120758056640625, -0.0413818359375, -0.045501708984375, -0.0162353515625, 0.01129150390625, -0.0290985107421875, -0.04205322265625, -0.0234527587890625, 0.0011529922485351562, -0.0282745361328125, -0.0257110595703125, -0.0005168914794921875, -0.0112457275390625, -0.04022216796875, 0.01236724853515625, -0.00797271728515625, 0.01558685302734375, -0.0031757354736328125, -0.0233612060546875, 0.00328826904296875, 0.016937255859375, -0.0341796875, 0.0083160400390625, -0.0716552734375, 0.00704193115234375, 0.03924560546875, 0.050567626953125, 0.005420684814453125, 0.00902557373046875, 0.0122833251953125, -0.028839111328125, 0.0003294944763183594, -0.01100921630859375, -0.016204833984375, -0.030242919921875, 0.00443267822265625, 0.026885986328125, -0.00970458984375, -0.0038623809814453125, -0.0235443115234375, 0.02532958984375, 0.03179931640625, 0.005176544189453125, -0.066162109375, 0.043609619140625, -0.022857666015625, 0.050079345703125, -0.01129150390625, 0.0008287429809570312, 0.0149993896484375, 0.0271453857421875, -0.03485107421875, -0.032379150390625, -0.01519012451171875, 0.037109375, -0.0175323486328125, 0.00738525390625, 0.041534423828125, -0.007350921630859375, -0.0019178390502929688, -0.003604888916015625, -0.0093841552734375, 0.051910400390625, -0.08905029296875, -0.009521484375, 0.0305633544921875, 0.001819610595703125, -0.0185699462890625, -0.072998046875, -0.002765655517578125, -0.06298828125, 0.01209259033203125, -0.00341796875, -0.0100555419921875, 0.00547027587890625, -0.04595947265625, -0.06597900390625, -0.0029888153076171875, 0.011077880859375, -0.035308837890625, -0.01207733154296875, -0.0267333984375, -0.01517486572265625, -0.008056640625, 0.002353668212890625, -0.01690673828125, -0.04351806640625, 0.032684326171875, 0.00814056396484375, 0.03533935546875, -0.00763702392578125, 0.01050567626953125, 0.0258636474609375, 0.056854248046875, 0.05596923828125, 0.003742218017578125, -0.0350341796875, 0.00817108154296875, -0.004909515380859375, 0.0110626220703125, -0.02447509765625, 0.021759033203125, 0.0240631103515625, 0.032501220703125, 0.004749298095703125, -0.009979248046875, 0.009979248046875, 0.005405426025390625, 0.024932861328125, 0.0184783935546875, 0.003482818603515625, -0.01407623291015625, -0.0224151611328125, -0.01806640625, 0.04290771484375, 0.003681182861328125, -0.0028533935546875, -0.04888916015625, -0.005939483642578125, 0.0173797607421875, -0.0157623291015625, 0.01160430908203125, -0.042236328125, -0.019927978515625, 0.004791259765625, 0.0108642578125, 0.00014293193817138672, 0.00977325439453125, 0.01519012451171875, 0.051971435546875, -0.0518798828125, -0.025360107421875, 0.00662994384765625, -0.0056610107421875, 0.009033203125, -0.01082611083984375, -0.032623291015625, 0.00821685791015625, 0.00437164306640625, 0.0567626953125, -0.0038127899169921875, 0.01490020751953125, -0.0438232421875, 0.033111572265625, -0.00962066650390625, -0.0215911865234375, -0.007122039794921875, -0.0219268798828125, 0.0145263671875, -0.0181121826171875, 0.00032830238342285156, 0.004123687744140625, -0.006961822509765625, -0.0258636474609375, -0.04052734375, 0.035369873046875, 0.0057525634765625, -0.01488494873046875, 0.0304412841796875, -0.006206512451171875, 0.0204620361328125, 0.015472412109375, 0.0704345703125, -0.03350830078125, 0.055389404296875, 0.036712646484375, 0.034637451171875, 0.03192138671875 ]
255b7ec5b82e7afdd3e25fb7dc18669faf481a1d
Wordpress Stackexchange Q: Sort Popular Posts by Views for the Last Week I'm trying to sort the popular posts so it shows the most visited in the last week, but it hasn't worked. Anyone have an idea of why it isn't working? <?php $popularpost = new WP_Query( array ( 'posts_per_page' => 5, 'ignore_sticky_posts' => 1, 'meta_key' => 'sw_post_views_count', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'date_query' => array ( array ( 'year' => date( 'Y' ), 'week' => date( 'W' ), ), ), ) ); while( $popularpost->have_posts() ) : $popularpost->the_post(); ?> A: Use strtotime to compare dates. $start = strtotime('yesterday'); $end = strtotime( '+1 week',$start); $args = array( 'posts_per_page' => 5, 'ignore_sticky_posts' => 1, 'meta_key' => 'sw_post_views_count', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'date_query' => array( 'after' => $end, 'before' => $start, ), ); $popularpost = new WP_Query( $args ); if ( $popularpost->have_posts() ) { while ( $popularpost->have_posts() ) { $popularpost->the_post(); // Do your stuffs } } Please note, this will return the posts from last 7 days, not last week.
Q: Sort Popular Posts by Views for the Last Week I'm trying to sort the popular posts so it shows the most visited in the last week, but it hasn't worked. Anyone have an idea of why it isn't working? <?php $popularpost = new WP_Query( array ( 'posts_per_page' => 5, 'ignore_sticky_posts' => 1, 'meta_key' => 'sw_post_views_count', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'date_query' => array ( array ( 'year' => date( 'Y' ), 'week' => date( 'W' ), ), ), ) ); while( $popularpost->have_posts() ) : $popularpost->the_post(); ?> A: Use strtotime to compare dates. $start = strtotime('yesterday'); $end = strtotime( '+1 week',$start); $args = array( 'posts_per_page' => 5, 'ignore_sticky_posts' => 1, 'meta_key' => 'sw_post_views_count', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'date_query' => array( 'after' => $end, 'before' => $start, ), ); $popularpost = new WP_Query( $args ); if ( $popularpost->have_posts() ) { while ( $popularpost->have_posts() ) { $popularpost->the_post(); // Do your stuffs } } Please note, this will return the posts from last 7 days, not last week. A: If you are looking for plugin then this is simple way to install Plugin: WordPress Popular Posts Add Shortcode to sidebar: [wpp range=weekly stats_comments=0 thumbnail_width=30 thumbnail_height=30 thumbnail_selection=usergenerated do_pattern=1 pattern_form={image}]
wordpress
{ "language": "en", "length": 198, "provenance": "stackexchange_00019.jsonl.gz:462793", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/216217" }
[ 0.0631103515625, -0.026275634765625, 0.028076171875, -0.015960693359375, 0.0014619827270507812, -0.032379150390625, 0.069580078125, -0.0214691162109375, 0.0372314453125, 0.0138702392578125, -0.0307159423828125, -0.0158538818359375, -0.043548583984375, -0.023101806640625, -0.03790283203125, -0.033905029296875, 0.03753662109375, -0.0164947509765625, 0.037811279296875, -0.006069183349609375, 0.0005011558532714844, 0.01006317138671875, 0.06280517578125, 0.045654296875, 0.005084991455078125, -0.015533447265625, 0.07421875, -0.0546875, 0.0145263671875, -0.0239105224609375, 0.01517486572265625, -0.00966644287109375, 0.008514404296875, -0.004638671875, 0.031280517578125, -0.0254364013671875, 0.044036865234375, -0.0175018310546875, 0.0162200927734375, 0.0179901123046875, -0.0238037109375, 0.041229248046875, -0.02008056640625, 0.0220947265625, -0.055511474609375, -0.03985595703125, -0.0223541259765625, 0.003078460693359375, 0.03265380859375, 0.04071044921875, -0.022674560546875, 0.01116943359375, -0.0182952880859375, -0.0181121826171875, -0.00007623434066772461, -0.00214385986328125, 0.01111602783203125, 0.006435394287109375, 0.059967041015625, -0.049774169921875, -0.06768798828125, -0.0438232421875, 0.05743408203125, -0.0203399658203125, -0.0307464599609375, 0.006191253662109375, 0.00811004638671875, 0.01033782958984375, -0.02972412109375, -0.047637939453125, 0.0146942138671875, -0.0080718994140625, 0.00665283203125, 0.00925445556640625, 0.001735687255859375, -0.05828857421875, 0.0074920654296875, -0.0496826171875, 0.013427734375, 0.0289764404296875, -0.026092529296875, 0.0159454345703125, -0.02264404296875, -0.01042938232421875, -0.0186614990234375, 0.0029468536376953125, -0.0374755859375, -0.00902557373046875, -0.016204833984375, -0.0426025390625, -0.0078277587890625, -0.0142974853515625, -0.03997802734375, 0.0182342529296875, -0.004207611083984375, -0.040557861328125, 0.0267181396484375, 0.027191162109375, -0.032196044921875, -0.04132080078125, -0.03228759765625, -0.003528594970703125, -0.04486083984375, 0.01129150390625, 0.0015239715576171875, 0.0162506103515625, -0.013275146484375, 0.043731689453125, 0.055572509765625, 0.05322265625, 0.0167236328125, -0.019805908203125, 0.01432037353515625, -0.005558013916015625, -0.041839599609375, 0.006198883056640625, -0.0256195068359375, 0.002132415771484375, -0.00563812255859375, 0.015899658203125, -0.00916290283203125, 0.008758544921875, -0.005947113037109375, -0.0386962890625, 0.018798828125, -0.01314544677734375, -0.03399658203125, 0.00749969482421875, 0.01413726806640625, 0.0657958984375, -0.0311737060546875, -0.02423095703125, 0.0196990966796875, 0.00824737548828125, 0.0008502006530761719, -0.0390625, 0.03106689453125, -0.04296875, -0.013275146484375, 0.00415802001953125, -0.0018253326416015625, -0.0237274169921875, 0.0074920654296875, -0.01035308837890625, 0.049041748046875, 0.014556884765625, 0.0257568359375, 0.024017333984375, 0.004058837890625, -0.03106689453125, 0.07208251953125, -0.0318603515625, 0.021728515625, 0.005054473876953125, -0.0380859375, 0.006000518798828125, -0.0139312744140625, -0.01261138916015625, -0.00504302978515625, -0.031768798828125, 0.028656005859375, 0.00737762451171875, -0.0104827880859375, -0.046142578125, -0.05419921875, -0.0177459716796875, -0.04937744140625, -0.009613037109375, 0.0203857421875, 0.0018415451049804688, 0.0193023681640625, 0.0142059326171875, 0.047515869140625, 0.01419830322265625, -0.0033931732177734375, 0.01511383056640625, 0.0049285888671875, -0.01971435546875, 0.0055389404296875, 0.01238250732421875, -0.031646728515625, -0.032470703125, 0.0017099380493164062, -0.01348114013671875, -0.01136016845703125, 0.01275634765625, 0.0223236083984375, 0.0159149169921875, -0.028106689453125, 0.016082763671875, 0.0283203125, 0.05194091796875, -0.0297698974609375, 0.09906005859375, 0.004230499267578125, -0.03192138671875, -0.0640869140625, 0.010833740234375, -0.0236053466796875, -0.0628662109375, -0.018707275390625, 0.03607177734375, -0.021209716796875, 0.02191162109375, -0.0556640625, 0.0230712890625, -0.00711822509765625, 0.037078857421875, -0.0151519775390625, 0.029144287109375, 0.0257415771484375, 0.027618408203125, -0.033966064453125, 0.007564544677734375, -0.00630950927734375, 0.0191497802734375, 0.0089569091796875, 0.00943756103515625, -0.0308685302734375, 0.0228118896484375, -0.0400390625, -0.041046142578125, -0.046478271484375, 0.038909912109375, 0.04388427734375, -0.0163116455078125, -0.017120361328125, -0.026397705078125, -0.0242462158203125, 0.01200103759765625, -0.068115234375, 0.048858642578125, 0.04058837890625, 0.0400390625, -0.0673828125, -0.0159759521484375, -0.038604736328125, -0.00469207763671875, 0.003078460693359375, 0.057830810546875, 0.045654296875, 0.0278472900390625, 0.01476287841796875, -0.01031494140625, 0.042999267578125, -0.061767578125, 0.00600433349609375, -0.0296173095703125, 0.006633758544921875, 0.037322998046875, 0.0272369384765625, 0.0144805908203125, -0.0036067962646484375, -0.026153564453125, 0.0244598388671875, 0.02520751953125, 0.019073486328125, 0.0406494140625, -0.0252838134765625, 0.00687408447265625, 0.00946044921875, -0.0037403106689453125, -0.027435302734375, 0.0006365776062011719, 0.05126953125, -0.0249176025390625, 0.03216552734375, 0.01117706298828125, -0.000980377197265625, -0.01904296875, 0.00616455078125, -0.0212860107421875, 0.0106048583984375, -0.0176239013671875, -0.0191497802734375, 0.017822265625, -0.05792236328125, 0.02886962890625, 0.037750244140625, -0.0196533203125, 0.004444122314453125, 0.0292510986328125, 0.020050048828125, 0.0019321441650390625, -0.0206146240234375, -0.0105743408203125, 0.021392822265625, 0.06195068359375, 0.02410888671875, 0.0207672119140625, 0.015716552734375, 0.048309326171875, -0.0122833251953125, 0.058990478515625, 0.0244598388671875, 0.0034732818603515625, -0.01398468017578125, -0.0565185546875, 0.047943115234375, -0.061370849609375, 0.025848388671875, 0.05499267578125, -0.0193023681640625, 0.0103759765625, -0.0137939453125, 0.004901885986328125, -0.0176849365234375, 0.013275146484375, -0.01546478271484375, -0.043426513671875, -0.04254150390625, 0.004268646240234375, 0.05078125, 0.05047607421875, 0.0259857177734375, -0.00832366943359375, 0.009429931640625, 0.058868408203125, -0.090087890625, -0.142822265625, -0.0028934478759765625, -0.030548095703125, -0.032440185546875, 0.00423431396484375, -0.035736083984375, 0.01299285888671875, 0.00521087646484375, -0.00913238525390625, -0.025421142578125, 0.007293701171875, -0.03277587890625, -0.033111572265625, -0.035003662109375, 0.01023101806640625, 0.0024280548095703125, 0.01214599609375, 0.0035991668701171875, 0.07440185546875, -0.00701141357421875, -0.06689453125, -0.04534912109375, -0.0196685791015625, -0.0277099609375, -0.0285186767578125, 0.01552581787109375, 0.038665771484375, -0.0477294921875, 0.006046295166015625, 0.046051025390625, 0.0289459228515625, -0.058837890625, -0.0008187294006347656, 0.0027141571044921875, 0.0090484619140625, 0.01131439208984375, 0.025146484375, 0.020751953125, 0.03851318359375, 0.0357666015625, -0.0111236572265625, 0.013214111328125, -0.0118408203125, -0.018218994140625, 0.012908935546875, 0.006015777587890625, 0.00124359130859375, -0.007503509521484375, 0.003662109375, 0.00103759765625, -0.023284912109375, -0.01715087890625, -0.0394287109375, 0.03253173828125, 0.01557159423828125, 0.045654296875, 0.00386810302734375, -0.01027679443359375, -0.0226898193359375, 0.016510009765625, -0.01000213623046875, -0.0006651878356933594, -0.01531982421875, 0.027618408203125, -0.0296478271484375, 0.004238128662109375, 0.03912353515625, 0.021697998046875, 0.030426025390625, -0.01154327392578125, -0.05670166015625, -0.0169219970703125, 0.0614013671875, -0.027862548828125, -0.0238800048828125, -0.001865386962890625, -0.0048065185546875, 0.0036945343017578125, 0.021484375, -0.0300750732421875, -0.007762908935546875, -0.067138671875, -0.0092926025390625, -0.0016241073608398438, -0.0306396484375, -0.0291595458984375, 0.033050537109375, -0.0816650390625, -0.0269012451171875, 0.05975341796875, -0.033203125, 0.0153961181640625, 0.0219268798828125, -0.0011348724365234375, -0.00469970703125, -0.06695556640625, 0.0278778076171875, -0.043304443359375, 0.005523681640625, -0.00997161865234375, 0.0237274169921875, -0.0186309814453125, 0.035369873046875, -0.0275421142578125, 0.039764404296875, 0.0321044921875, -0.0010280609130859375, 0.00470733642578125, -0.0260772705078125, -0.01085662841796875, 0.0035572052001953125, -0.0007939338684082031, -0.01543426513671875, 0.01299285888671875, -0.0499267578125, -0.0704345703125, -0.03564453125, -0.04742431640625, 0.0289764404296875, -0.00830841064453125, -0.0218658447265625, -0.0200958251953125, -0.023681640625, 0.00981903076171875, 0.040924072265625, -0.0180816650390625, 0.026947021484375, -0.05340576171875, -0.0423583984375, 0.04522705078125, 0.04022216796875, -0.0166473388671875, 0.001712799072265625, 0.1082763671875, 0.01373291015625, -0.0316162109375, -0.093994140625, -0.037933349609375, 0.01090240478515625, -0.0039215087890625, -0.020111083984375, -0.0112152099609375, -0.0316162109375, 0.0200347900390625, -0.0285186767578125, 0.0101470947265625, -0.0170440673828125, 0.025299072265625, -0.010955810546875, -0.00788116455078125, 0.010223388671875, -0.0297698974609375, 0.018585205078125, -0.0030231475830078125, 0.00923919677734375, -0.051788330078125, -0.0016813278198242188, 0.05877685546875, 0.00458526611328125, 0.033935546875, -0.031982421875, -0.0226898193359375, 0.004024505615234375, -0.062744140625, 0.045196533203125, -0.0009851455688476562, 0.000003814697265625, 0.00939178466796875, 0.030975341796875, 0.00794219970703125, 0.00585174560546875, 0.061859130859375, -0.01824951171875, 0.03460693359375, 0.0416259765625, -0.00415802001953125, -0.0258331298828125, 0.00379180908203125, 0.0538330078125, 0.006511688232421875, -0.02398681640625, -0.0246734619140625, -0.029876708984375, -0.0263824462890625, -0.01464080810546875, 0.0029430389404296875, 0.038177490234375, -0.003231048583984375, 0.00417327880859375, 0.0007562637329101562, -0.0535888671875, 0.0015039443969726562, -0.041168212890625, 0.01139068603515625, 0.00360870361328125, -0.016754150390625, 0.00885772705078125, 0.057403564453125, -0.031890869140625, 0.02935791015625, -0.0210723876953125, 0.0295562744140625, 0.01198577880859375, 0.034820556640625, 0.021209716796875, -0.0209503173828125, 0.0106201171875, -0.0126953125, 0.0232696533203125, -0.0182647705078125, -0.0113677978515625, 0.0018787384033203125, 0.0062713623046875, -0.0157318115234375, 0.0097808837890625, 0.023468017578125, 0.021331787109375, -0.033294677734375, 0.016021728515625, 0.0447998046875, -0.01342010498046875, -0.00864410400390625, -0.01450347900390625, -0.01922607421875, 0.019378662109375, 0.0065155029296875, -0.00911712646484375, -0.039642333984375, 0.0182342529296875, -0.04608154296875, 0.06671142578125, -0.058074951171875, -0.0833740234375, 0.0172119140625, -0.00943756103515625, -0.00606536865234375, -0.01806640625, -0.0210418701171875, -0.004528045654296875, -0.003894805908203125, 0.0305328369140625, 0.003612518310546875, 0.05865478515625, -0.0308074951171875, -0.05035400390625, 0.0158538818359375, 0.0068511962890625, 0.0386962890625, 0.001922607421875, -0.034698486328125, 0.0261993408203125, -0.055023193359375, -0.01983642578125, 0.012420654296875, -0.03173828125, -0.049285888671875, -0.037078857421875, 0.0293426513671875, 0.0256500244140625, 0.00212860107421875, -0.05267333984375, -0.0509033203125, -0.038909912109375, 0.02435302734375, -0.0175628662109375, -0.0025463104248046875, 0.07891845703125, -0.035858154296875, 0.03759765625, 0.008575439453125, 0.038848876953125, -0.0496826171875, -0.005611419677734375, 0.0036830902099609375, -0.03179931640625, -0.0122222900390625, 0.0268402099609375, -0.038055419921875, -0.021636962890625, 0.004741668701171875, -0.01535797119140625, 0.028839111328125, -0.0283050537109375, -0.01129150390625, -0.0225677490234375, 0.0076141357421875, -0.0140228271484375, 0.0283660888671875, 0.002048492431640625, -0.0137939453125, -0.0178680419921875, 0.006610870361328125, 0.0005340576171875, 0.0010700225830078125, 0.008331298828125, -0.012847900390625, -0.017974853515625, -0.02215576171875, 0.0234527587890625, 0.095947265625, 0.00473785400390625, 0.054595947265625, 0.014862060546875, 0.0129241943359375, 0.041900634765625, 0.0028858184814453125, 0.032989501953125, -0.01210784912109375, 0.03350830078125, -0.014373779296875, 0.032989501953125, 0.0084991455078125, -0.0191650390625, -0.0254364013671875, 0.01308441162109375, 0.00015985965728759766, -0.0280609130859375, -0.01439666748046875, -0.010223388671875, 0.0028095245361328125, 0.01849365234375, 0.028472900390625, -0.00766754150390625, 0.01280975341796875, 0.03643798828125, -0.0582275390625, -0.0166778564453125, 0.0262451171875, -0.0225067138671875, -0.0024776458740234375, 0.01568603515625, 0.0224609375, -0.0181427001953125, -0.09515380859375, -0.01100921630859375, 0.041412353515625, -0.035186767578125, -0.0248870849609375, 0.013092041015625, -0.02490234375, 0.01242828369140625, -0.046844482421875, 0.0174102783203125, -0.0401611328125, -0.00325775146484375, -0.0051422119140625, -0.01123809814453125, 0.0206756591796875, 0.055999755859375, -0.0210723876953125, 0.010772705078125, 0.03143310546875, -0.0091400146484375, 0.005611419677734375, -0.024078369140625, -0.0088043212890625, 0.020416259765625, 0.0286865234375, 0.015655517578125, 0.0201873779296875, -0.05096435546875, -0.027130126953125, -0.0258026123046875, 0.06341552734375, -0.042999267578125, -0.003223419189453125, 0.01276397705078125, 0.071533203125, -0.0038166046142578125, 0.025054931640625, -0.01548004150390625, -0.019287109375, -0.00978851318359375, 0.00771331787109375, -0.029327392578125, -0.01311492919921875, -0.01074981689453125, -0.033294677734375, 0.0826416015625, -0.012939453125, 0.0162200927734375, 0.01509857177734375, 0.032012939453125, -0.027252197265625, 0.00818634033203125, -0.032958984375, 0.039642333984375, -0.0257415771484375, 0.033599853515625, -0.0567626953125, -0.005374908447265625, -0.0085601806640625, 0.04541015625, 0.003437042236328125, -0.00817108154296875, -0.06103515625, 0.007381439208984375, 0.0731201171875, 0.044219970703125, 0.043243408203125, 0.021270751953125, -0.0186004638671875, 0.0604248046875, 0.030303955078125, -0.0955810546875, 0.0158233642578125, -0.0094757080078125, -0.0272216796875, -0.007495880126953125, 0.0217742919921875, 0.025421142578125, -0.040802001953125, -0.01593017578125, -0.061279296875, 0.0000521540641784668, 0.02874755859375, 0.034027099609375, 0.0113525390625, 0.018402099609375, 0.0289764404296875, -0.07318115234375, -0.095458984375, -0.01050567626953125, 0.022186279296875, 0.01788330078125, 0.01285552978515625, 0.028106689453125, 0.03887939453125, 0.0224151611328125, -0.06201171875, -0.0007524490356445312, -0.01151275634765625, -0.042083740234375, 0.08428955078125, 0.03851318359375, 0.033477783203125, -0.056976318359375, -0.02813720703125, 0.034423828125, 0.10198974609375, -0.042327880859375, 0.03302001953125, 0.00769805908203125, -0.0048828125, -0.021514892578125, -0.06817626953125, -0.03125, 0.01343536376953125, -0.007686614990234375, -0.053009033203125, -0.01385498046875, 0.0298919677734375, 0.0230255126953125, -0.00750732421875, -0.0229644775390625, -0.00179290771484375, -0.0244293212890625, 0.0012216567993164062, -0.01490020751953125, 0.01318359375, 0.037353515625, 0.01751708984375, -0.0007958412170410156, -0.054473876953125, -0.0062255859375, -0.032379150390625, 0.0155181884765625, -0.0162353515625, 0.03204345703125, -0.0183258056640625, -0.0026340484619140625, -0.019195556640625, 0.0239410400390625, 0.00946807861328125, 0.02960205078125, 0.03411865234375, 0.037353515625, -0.02838134765625, -0.00214385986328125, 0.092529296875, -0.015838623046875, -0.04119873046875, -0.0114898681640625, -0.041473388671875, 0.0198516845703125, -0.00820159912109375, 0.0400390625, 0.0020961761474609375, 0.02166748046875, -0.0258941650390625, 0.052825927734375, -0.0017480850219726562, 0.00689697265625, 0.0250701904296875, 0.00792694091796875, 0.0411376953125, -0.0001710653305053711, -0.0301513671875, -0.004817962646484375, -0.0487060546875, -0.0204925537109375, 0.03912353515625, 0.029052734375, -0.00732421875, 0.038238525390625, 0.004901885986328125, -0.004352569580078125, 0.027618408203125, -0.00629425048828125, -0.0008473396301269531, 0.0201263427734375, 0.032806396484375, 0.004100799560546875, -0.0733642578125, -0.03704833984375, -0.020782470703125, 0.030181884765625, 0.01371002197265625, 0.004421234130859375, 0.028350830078125, 0.02301025390625, -0.03173828125, 0.02679443359375, -0.025787353515625, -0.041839599609375, 0.05908203125, -0.007659912109375, -0.0171356201171875, -0.00030612945556640625, 0.027984619140625, -0.01435089111328125, 0.04071044921875, -0.049774169921875, -0.054962158203125, 0.007381439208984375, 0.037811279296875, 0.0105438232421875, 0.00962066650390625, -0.036834716796875, -0.0028362274169921875, -0.038330078125, -0.050537109375, 0.0247802734375, -0.02685546875, 0.00311279296875, 0.0177154541015625, 0.009918212890625, -0.019012451171875, 0.0297088623046875, -0.0010814666748046875, 0.048095703125, 0.032745361328125, -0.013336181640625, -0.001407623291015625, 0.0063629150390625, -0.016204833984375, 0.00907135009765625, 0.019775390625, -0.0016632080078125, 0.0223388671875, -0.00726318359375, 0.0082244873046875, 0.0066070556640625, 0.044158935546875, -0.036712646484375, 0.00653839111328125, -0.0184173583984375, -0.00045371055603027344, 0.01195526123046875, 0.0096282958984375, -0.0262298583984375, -0.035797119140625, -0.0016450881958007812, -0.006549835205078125, -0.0018367767333984375, 0.0099334716796875, 0.005279541015625, 0.0009326934814453125, -0.0166168212890625, -0.0177764892578125, -0.001476287841796875, 0.0076446533203125, -0.01934814453125, -0.0231170654296875, -0.0261993408203125, -0.05413818359375, -0.008331298828125, -0.0218963623046875, 0.026824951171875, 0.01141357421875, -0.04937744140625, 0.0164031982421875, -0.006198883056640625, 0.0031948089599609375, 0.03741455078125, 0.0018873214721679688, -0.05877685546875, -0.007297515869140625, -0.03216552734375, 0.01503753662109375, -0.044097900390625, 0.008819580078125, 0.036224365234375, 0.00804901123046875, -0.05401611328125, -0.07452392578125, 0.0182037353515625, -0.041229248046875, 0.01262664794921875, -0.02801513671875, 0.004810333251953125, 0.005950927734375, -0.04962158203125, -0.1064453125, 0.041656494140625, -0.024139404296875, -0.041259765625, -0.084716796875, 0.01023101806640625, 0.007171630859375, 0.005298614501953125, -0.0185699462890625, -0.00882720947265625, -0.0282745361328125, 0.032073974609375, 0.00377655029296875, 0.0278778076171875, 0.01690673828125, -0.00893402099609375, -0.04046630859375, -0.002346038818359375, -0.0097198486328125, -0.0227508544921875, 0.010345458984375, 0.00014638900756835938, 0.0272979736328125, 0.0245819091796875, -0.020233154296875, 0.01320648193359375, 0.004276275634765625, -0.00621795654296875, 0.0058441162109375, -0.04156494140625, -0.037353515625, -0.0179443359375, 0.041015625, 0.032989501953125, 0.02008056640625, -0.0200653076171875, -0.020233154296875, -0.033599853515625, -0.01136016845703125, -0.034759521484375, 0.0108642578125, -0.07073974609375, -0.01947021484375, -0.0099029541015625, -0.00348663330078125, 0.003925323486328125, -0.028533935546875, -0.043731689453125, -0.001789093017578125, 0.005367279052734375, 0.0171966552734375, -0.0465087890625, 0.047760009765625, 0.0106353759765625, -0.0277099609375, -0.004978179931640625, -0.0308837890625, -0.0090789794921875, -0.00911712646484375, -0.01374053955078125, 0.0297698974609375, -0.00327301025390625, 0.0489501953125, 0.00423431396484375, 0.066162109375, -0.0235748291015625, 0.050811767578125, -0.01338958740234375, -0.005275726318359375, 0.0079803466796875, 0.01171112060546875, -0.032257080078125, -0.041778564453125, 0.02685546875, -0.00812530517578125, 0.06512451171875, -0.0023860931396484375, 0.036041259765625, -0.0007414817810058594, 0.019561767578125, -0.023956298828125, -0.0096893310546875, 0.01410675048828125, -0.0144805908203125, 0.0025043487548828125, 0.0067138671875, -0.03021240234375, 0.006103515625, -0.0257415771484375, 0.00872039794921875, -0.0350341796875, -0.005504608154296875 ]
c963ab9fabeae90474f83a0b66d6f3d577c48b80
Wordpress Stackexchange Q: Comment form not showing up without comments My posts dont show the comment form unless that post already has comments. If post has one or more comments, everything works perfectly. Everything used to work fine (that's why some posts have comments) and I have no idea why this is happening as I haven't touched any settings. According to my settings, comments are enabled without restrictions and they are not closed after specific time. I also doubt that there's anything wrong with the code since putting <?php comment_form(); ?> on my template bahaves the same: doesn't show up without comments, shows up with comments. I also tried to deactive all plugins one by one to see if some plugin was causing problems, but without results. Does someone know what could be causing this issue? A: Ok I feel stupid now. The problem was that for whatever reason some of the posts had comments disabled. I did not know that the only place where they could be toggled was under "Quick Edit". Problem solved...
Q: Comment form not showing up without comments My posts dont show the comment form unless that post already has comments. If post has one or more comments, everything works perfectly. Everything used to work fine (that's why some posts have comments) and I have no idea why this is happening as I haven't touched any settings. According to my settings, comments are enabled without restrictions and they are not closed after specific time. I also doubt that there's anything wrong with the code since putting <?php comment_form(); ?> on my template bahaves the same: doesn't show up without comments, shows up with comments. I also tried to deactive all plugins one by one to see if some plugin was causing problems, but without results. Does someone know what could be causing this issue? A: Ok I feel stupid now. The problem was that for whatever reason some of the posts had comments disabled. I did not know that the only place where they could be toggled was under "Quick Edit". Problem solved...
wordpress
{ "language": "en", "length": 173, "provenance": "stackexchange_00019.jsonl.gz:462800", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/216261" }
[ 0.05902099609375, 0.005603790283203125, 0.012939453125, -0.0116729736328125, 0.012908935546875, -0.0287322998046875, 0.04351806640625, -0.04296875, 0.015716552734375, 0.0206146240234375, -0.06085205078125, -0.00229644775390625, -0.043701171875, 0.0006008148193359375, -0.046539306640625, -0.0650634765625, 0.0184173583984375, 0.045196533203125, 0.03656005859375, -0.033905029296875, 0.033599853515625, -0.01030731201171875, -0.00861358642578125, 0.06805419921875, 0.0197296142578125, -0.04296875, 0.123779296875, -0.01776123046875, 0.0251312255859375, -0.02313232421875, 0.03289794921875, -0.02923583984375, 0.0185394287109375, 0.0132598876953125, -0.00307464599609375, -0.01534271240234375, -0.01202392578125, 0.000024199485778808594, -0.00011348724365234375, 0.0200042724609375, 0.03753662109375, -0.04339599609375, 0.0196685791015625, -0.0347900390625, 0.0174102783203125, -0.011688232421875, 0.0276641845703125, -0.041839599609375, 0.0159759521484375, -0.039276123046875, 0.0170745849609375, 0.06158447265625, 0.0484619140625, -0.016815185546875, -0.02239990234375, -0.0168609619140625, -0.036163330078125, 0.04425048828125, 0.037017822265625, -0.01502227783203125, -0.00467681884765625, -0.00753021240234375, 0.0213470458984375, 0.01214599609375, -0.022552490234375, 0.016876220703125, 0.01000213623046875, 0.003177642822265625, -0.005718231201171875, -0.02593994140625, 0.01204681396484375, -0.03790283203125, 0.00803375244140625, -0.03961181640625, 0.023406982421875, -0.0173492431640625, -0.01345062255859375, -0.0159759521484375, 0.020538330078125, 0.01007080078125, -0.00550079345703125, -0.00243377685546875, -0.0258026123046875, -0.02618408203125, 0.0234832763671875, 0.01222991943359375, -0.0032367706298828125, -0.0230560302734375, -0.04718017578125, -0.0140228271484375, -0.0224609375, -0.097900390625, -0.03857421875, 0.052001953125, 0.017120361328125, -0.016021728515625, 0.033111572265625, 0.0584716796875, -0.0065155029296875, -0.0011005401611328125, -0.0166015625, -0.02178955078125, -0.021209716796875, -0.03106689453125, -0.0012502670288085938, -0.0036754608154296875, -0.0173187255859375, 0.001983642578125, 0.03094482421875, 0.036529541015625, -0.017120361328125, 0.004024505615234375, -0.01849365234375, -0.011993408203125, 0.006969451904296875, -0.0023059844970703125, -0.0606689453125, 0.02850341796875, -0.0184478759765625, 0.01500701904296875, -0.01605224609375, 0.016143798828125, -0.027923583984375, -0.03173828125, 0.02703857421875, -0.0153045654296875, -0.00959014892578125, 0.007122039794921875, 0.02728271484375, 0.00667572021484375, -0.019927978515625, 0.00812530517578125, 0.037689208984375, 0.018707275390625, 0.001255035400390625, -0.0153350830078125, -0.03387451171875, -0.024932861328125, -0.012176513671875, 0.0302276611328125, -0.0199432373046875, -0.0550537109375, 0.006519317626953125, -0.005847930908203125, -0.047119140625, 0.0207366943359375, 0.03900146484375, 0.02032470703125, -0.03424072265625, -0.06671142578125, -0.0175628662109375, 0.022430419921875, 0.03448486328125, 0.0018444061279296875, -0.00417327880859375, -0.031341552734375, 0.0255279541015625, -0.045654296875, -0.01308441162109375, -0.034881591796875, 0.03912353515625, 0.03338623046875, 0.0134124755859375, -0.038482666015625, -0.035797119140625, -0.06927490234375, -0.04168701171875, -0.002109527587890625, 0.0194091796875, -0.0121002197265625, 0.012420654296875, -0.00977325439453125, 0.018646240234375, -0.006359100341796875, 0.001445770263671875, 0.0054779052734375, 0.0019102096557617188, 0.039154052734375, -0.002140045166015625, -0.032989501953125, -0.025115966796875, -0.04632568359375, 0.018646240234375, -0.0022525787353515625, -0.050445556640625, 0.05517578125, 0.030792236328125, 0.06500244140625, -0.0192108154296875, 0.0219573974609375, 0.047637939453125, 0.049285888671875, 0.0231170654296875, 0.0247344970703125, -0.006374359130859375, -0.045318603515625, -0.01485443115234375, 0.0138092041015625, -0.01152801513671875, -0.0177154541015625, 0.004123687744140625, -0.0232391357421875, -0.0036563873291015625, -0.00926971435546875, -0.058441162109375, -0.02093505859375, -0.0142059326171875, 0.0207672119140625, -0.0160980224609375, 0.0164642333984375, 0.02392578125, 0.0120391845703125, -0.043212890625, 0.007694244384765625, -0.01812744140625, 0.000972747802734375, -0.0235748291015625, 0.0186767578125, -0.00036454200744628906, 0.057647705078125, 0.013275146484375, -0.0243682861328125, -0.00852203369140625, -0.0384521484375, 0.0293426513671875, -0.00984954833984375, -0.0238800048828125, -0.028045654296875, 0.010528564453125, -0.0090179443359375, -0.01457977294921875, 0.05072021484375, -0.005069732666015625, -0.01328277587890625, -0.0528564453125, 0.004825592041015625, -0.03546142578125, -0.01129913330078125, -0.00855255126953125, 0.055755615234375, 0.0122222900390625, 0.0229644775390625, 0.0181427001953125, 0.08197021484375, 0.03265380859375, 0.002765655517578125, 0.0311737060546875, 0.0174713134765625, 0.035491943359375, 0.009857177734375, 0.040008544921875, -0.0245513916015625, 0.041839599609375, -0.005096435546875, 0.052490234375, 0.00792694091796875, -0.016448974609375, -0.0121917724609375, 0.0260467529296875, -0.0101776123046875, 0.0042724609375, -0.017608642578125, -0.0082244873046875, -0.02166748046875, -0.026824951171875, -0.0008015632629394531, -0.01363372802734375, -0.0031452178955078125, -0.01149749755859375, 0.00482177734375, 0.0184326171875, -0.00875091552734375, 0.00559234619140625, 0.03173828125, 0.0196380615234375, 0.0217742919921875, 0.00021088123321533203, -0.042572021484375, 0.0306549072265625, 0.01995849609375, -0.023345947265625, 0.010101318359375, -0.0157318115234375, -0.01544189453125, 0.0138397216796875, -0.0426025390625, -0.0075225830078125, -0.01861572265625, -0.031524658203125, -0.0191802978515625, 0.0196990966796875, 0.0225677490234375, -0.01468658447265625, 0.0030498504638671875, 0.0130615234375, -0.0084381103515625, 0.0002758502960205078, -0.079833984375, 0.06219482421875, -0.047210693359375, 0.039337158203125, 0.081787109375, -0.005157470703125, 0.01198577880859375, 0.00998687744140625, 0.0262451171875, 0.04132080078125, -0.0019197463989257812, -0.011383056640625, 0.01120758056640625, -0.0640869140625, -0.0255279541015625, 0.0180206298828125, 0.0625, -0.0159759521484375, -0.050201416015625, 0.006771087646484375, 0.039703369140625, 0.001461029052734375, 0.029449462890625, -0.05963134765625, -0.01090240478515625, -0.0175323486328125, 0.0006203651428222656, 0.0016469955444335938, 0.01702880859375, -0.0305938720703125, 0.0203399658203125, -0.0186004638671875, -0.03033447265625, -0.07080078125, -0.038665771484375, -0.0738525390625, 0.0372314453125, -0.01039886474609375, 0.0279541015625, 0.0107421875, 0.08056640625, 0.01189422607421875, -0.055511474609375, 0.01103973388671875, -0.060272216796875, -0.027313232421875, 0.03570556640625, 0.0243072509765625, -0.0384521484375, 0.021881103515625, 0.00875091552734375, -0.04595947265625, 0.0101165771484375, 0.005401611328125, -0.040740966796875, -0.00652313232421875, -0.007488250732421875, 0.012420654296875, 0.0289154052734375, 0.00981903076171875, 0.009979248046875, 0.035736083984375, -0.03155517578125, 0.0023097991943359375, -0.042510986328125, -0.055267333984375, -0.0389404296875, 0.01023101806640625, 0.0149993896484375, -0.045562744140625, 0.0244598388671875, 0.0027179718017578125, 0.0153656005859375, 0.03314208984375, -0.0276947021484375, -0.00946044921875, 0.00739288330078125, 0.004154205322265625, -0.017730712890625, -0.0096588134765625, -0.02032470703125, -0.002185821533203125, -0.03265380859375, 0.00469207763671875, -0.034271240234375, 0.04779052734375, -0.049285888671875, -0.039764404296875, 0.050445556640625, -0.0237274169921875, 0.00547027587890625, -0.043365478515625, -0.0270538330078125, -0.0240936279296875, 0.06781005859375, -0.031219482421875, -0.0142669677734375, -0.0028438568115234375, 0.0106353759765625, -0.042022705078125, -0.0124359130859375, -0.02752685546875, -0.0014247894287109375, -0.04888916015625, 0.03167724609375, -0.0010690689086914062, -0.01375579833984375, -0.028350830078125, -0.01483917236328125, -0.030609130859375, -0.02679443359375, -0.00321197509765625, -0.022125244140625, -0.0274810791015625, 0.00949859619140625, -0.046661376953125, 0.00339508056640625, 0.0200347900390625, -0.05133056640625, -0.0474853515625, -0.00006896257400512695, -0.00881195068359375, -0.002651214599609375, -0.0035457611083984375, -0.01029205322265625, -0.0177459716796875, 0.0081024169921875, 0.00792694091796875, 0.0477294921875, -0.005702972412109375, 0.0146484375, -0.024444580078125, -0.011138916015625, 0.006938934326171875, -0.0230255126953125, 0.004703521728515625, 0.0275115966796875, 0.022491455078125, 0.0654296875, -0.03436279296875, 0.0031604766845703125, -0.01120758056640625, -0.031524658203125, 0.04376220703125, -0.028656005859375, -0.0237579345703125, 0.0116119384765625, -0.00792694091796875, -0.0120086669921875, -0.0177154541015625, 0.040924072265625, -0.020416259765625, -0.054931640625, -0.001979827880859375, 0.024200439453125, 0.04559326171875, 0.019287109375, 0.0166168212890625, -0.00879669189453125, -0.0093994140625, 0.0214996337890625, 0.05316162109375, 0.0088043212890625, -0.020233154296875, -0.0245361328125, 0.055145263671875, 0.011566162109375, 0.038055419921875, -0.046875, 0.05035400390625, -0.0178375244140625, -0.0345458984375, 0.07012939453125, -0.003559112548828125, 0.0010471343994140625, 0.006282806396484375, 0.00365447998046875, 0.0008654594421386719, 0.0020732879638671875, 0.025054931640625, 0.0221405029296875, -0.032135009765625, -0.036895751953125, -0.0205841064453125, -0.017822265625, 0.01058197021484375, 0.058746337890625, 0.0537109375, -0.0038776397705078125, 0.053558349609375, 0.0478515625, 0.002223968505859375, 0.007572174072265625, 0.00542449951171875, -0.024932861328125, 0.018585205078125, 0.025146484375, -0.004199981689453125, -0.003215789794921875, -0.016326904296875, 0.09832763671875, 0.029632568359375, -0.022430419921875, 0.00702667236328125, -0.01385498046875, 0.021270751953125, 0.0084228515625, 0.0201873779296875, -0.00669097900390625, -0.0292205810546875, 0.019439697265625, 0.043243408203125, 0.021697998046875, -0.01178741455078125, 0.01297760009765625, 0.017364501953125, 0.0233154296875, -0.01204681396484375, 0.033538818359375, 0.0249176025390625, -0.0229644775390625, 0.042877197265625, -0.0118255615234375, -0.018463134765625, -0.01097869873046875, 0.020965576171875, 0.0279541015625, 0.002628326416015625, -0.0112152099609375, 0.0010662078857421875, 0.038848876953125, -0.002162933349609375, -0.034515380859375, 0.02557373046875, -0.0111236572265625, 0.0399169921875, 0.0496826171875, -0.01000213623046875, 0.0238037109375, -0.0276031494140625, 0.0248260498046875, 0.034149169921875, -0.03302001953125, -0.00887298583984375, 0.029205322265625, 0.02044677734375, 0.00608062744140625, -0.0164031982421875, 0.004779815673828125, -0.02886962890625, -0.00449371337890625, 0.027801513671875, -0.053466796875, 0.0211181640625, 0.029571533203125, -0.010528564453125, -0.0301513671875, -0.009735107421875, -0.0258941650390625, -0.003780364990234375, -0.0136871337890625, 0.0020427703857421875, 0.0291595458984375, -0.00807952880859375, 0.0142059326171875, -0.00923919677734375, 0.007076263427734375, 0.0079803466796875, 0.00981903076171875, 0.0137481689453125, -0.01137542724609375, -0.008941650390625, 0.0020542144775390625, -0.064208984375, -0.043853759765625, -0.07366943359375, -0.05224609375, -0.045745849609375, 0.0074005126953125, 0.01290130615234375, 0.01629638671875, -0.024169921875, -0.042449951171875, -0.029144287109375, 0.046539306640625, 0.0305938720703125, 0.056060791015625, 0.00873565673828125, 0.037872314453125, -0.0281829833984375, 0.044830322265625, 0.00396728515625, 0.036956787109375, -0.005504608154296875, -0.03564453125, 0.032501220703125, -0.01904296875, -0.036895751953125, -0.02825927734375, -0.0187225341796875, -0.0042877197265625, 0.042022705078125, -0.0145111083984375, -0.0142364501953125, -0.01392364501953125, 0.00858306884765625, -0.035797119140625, 0.0567626953125, 0.006450653076171875, 0.016998291015625, -0.0362548828125, -0.0243988037109375, 0.0113372802734375, -0.0079345703125, -0.004001617431640625, 0.003902435302734375, -0.005702972412109375, 0.005756378173828125, 0.0183868408203125, -0.0124664306640625, 0.03790283203125, 0.060577392578125, 0.0016298294067382812, 0.0272216796875, 0.034576416015625, 0.0033111572265625, -0.00980377197265625, 0.0116119384765625, -0.0287017822265625, -0.046356201171875, 0.0325927734375, 0.0140533447265625, -0.0338134765625, 0.022613525390625, -0.027191162109375, 0.050872802734375, 0.045684814453125, 0.04718017578125, -0.08868408203125, 0.027923583984375, -0.019500732421875, -0.0091400146484375, 0.09503173828125, -0.02020263671875, 0.0239715576171875, -0.0214996337890625, 0.064453125, 0.00395965576171875, -0.005641937255859375, 0.036651611328125, -0.0188751220703125, -0.004245758056640625, -0.056304931640625, 0.0491943359375, -0.0028591156005859375, -0.0284576416015625, 0.013153076171875, 0.0251312255859375, -0.01108551025390625, -0.03533935546875, -0.041290283203125, 0.007793426513671875, -0.0487060546875, -0.09197998046875, -0.0174102783203125, -0.05780029296875, 0.01538848876953125, 0.054107666015625, 0.0203704833984375, 0.018524169921875, 0.054901123046875, -0.0164794921875, 0.03558349609375, 0.00959014892578125, -0.0219879150390625, -0.01270294189453125, -0.01837158203125, 0.026763916015625, 0.0271148681640625, -0.004772186279296875, 0.037109375, 0.0067901611328125, -0.04962158203125, 0.002185821533203125, 0.0303802490234375, 0.07989501953125, -0.03143310546875, -0.0205078125, 0.0294036865234375, 0.0084686279296875, -0.004901885986328125, -0.0308990478515625, -0.01873779296875, -0.0097808837890625, 0.06298828125, -0.042236328125, 0.0239715576171875, 0.0166778564453125, -0.043670654296875, -0.0751953125, 0.044769287109375, 0.0297698974609375, 0.02130126953125, -0.0101165771484375, 0.0069580078125, -0.033843994140625, -0.024993896484375, -0.0170135498046875, 0.03863525390625, -0.049407958984375, 0.05914306640625, -0.075439453125, -0.02166748046875, 0.00586700439453125, 0.08392333984375, 0.0662841796875, 0.0007433891296386719, 0.0230712890625, 0.019805908203125, 0.0902099609375, 0.07183837890625, 0.0035305023193359375, -0.0258331298828125, -0.01120758056640625, 0.0002799034118652344, 0.009674072265625, -0.018035888671875, 0.0217437744140625, -0.016204833984375, -0.0308380126953125, 0.00786590576171875, -0.0106964111328125, -0.021331787109375, -0.0031833648681640625, 0.06951904296875, -0.006481170654296875, -0.0208282470703125, 0.01128387451171875, -0.032257080078125, -0.0450439453125, 0.0506591796875, 0.01776123046875, -0.089599609375, -0.0288238525390625, -0.055511474609375, 0.044281005859375, 0.0202178955078125, 0.007328033447265625, -0.004146575927734375, 0.00591278076171875, 0.01279449462890625, -0.06597900390625, -0.006000518798828125, 0.00045680999755859375, -0.035308837890625, 0.019439697265625, 0.018463134765625, 0.03631591796875, -0.015594482421875, -0.04632568359375, 0.01399993896484375, 0.0350341796875, -0.01297760009765625, -0.031158447265625, 0.01213836669921875, 0.004497528076171875, 0.0134735107421875, -0.006961822509765625, 0.00252532958984375, 0.03045654296875, 0.035888671875, 0.00624847412109375, -0.025054931640625, -0.03692626953125, 0.031890869140625, -0.007648468017578125, -0.015167236328125, 0.0340576171875, -0.00760650634765625, -0.02880859375, 0.0292816162109375, 0.01081085205078125, 0.03887939453125, -0.00341033935546875, 0.06781005859375, -0.0242767333984375, -0.005077362060546875, 0.0211334228515625, 0.0247802734375, -0.01154327392578125, -0.024932861328125, 0.004375457763671875, -0.0299072265625, -0.0284423828125, 0.0084381103515625, 0.03265380859375, -0.0110015869140625, 0.00911712646484375, -0.0163116455078125, -0.01245880126953125, 0.009521484375, 0.005596160888671875, -0.023284912109375, -0.0280914306640625, -0.035675048828125, 0.0276947021484375, 0.0614013671875, 0.01259613037109375, 0.02215576171875, -0.033416748046875, 0.08892822265625, -0.00829315185546875, 0.004512786865234375, 0.0124359130859375, -0.02105712890625, 0.06494140625, 0.006847381591796875, 0.04315185546875, 0.01904296875, -0.0301513671875, 0.009765625, -0.0117034912109375, -0.06280517578125, 0.013092041015625, 0.034088134765625, -0.03204345703125, 0.017913818359375, 0.014129638671875, 0.00366973876953125, 0.00789642333984375, -0.038726806640625, 0.04339599609375, 0.007587432861328125, -0.004161834716796875, 0.01357269287109375, -0.087646484375, -0.0633544921875, -0.03302001953125, 0.05078125, 0.0095367431640625, 0.08935546875, -0.0128326416015625, 0.0244598388671875, -0.042236328125, 0.0221710205078125, -0.020233154296875, -0.0300750732421875, 0.06512451171875, 0.03326416015625, -0.0180511474609375, -0.02801513671875, -0.0406494140625, 0.07427978515625, 0.0035190582275390625, 0.0058746337890625, 0.057525634765625, -0.0035610198974609375, -0.01068115234375, 0.0029964447021484375, -0.0119781494140625, -0.0253448486328125, -0.0219268798828125, -0.0024089813232421875, 0.01479339599609375, 0.01396942138671875, 0.0225067138671875, -0.02899169921875, 0.044036865234375, -0.014556884765625, 0.006862640380859375, -0.0031375885009765625, -0.028167724609375, -0.01953125, 0.020477294921875, 0.0026035308837890625, 0.010711669921875, -0.01071929931640625, -0.0211334228515625, 0.0042724609375, 0.0029468536376953125, -0.014862060546875, -0.00635528564453125, 0.0318603515625, -0.0023784637451171875, -0.0024814605712890625, 0.02374267578125, -0.059478759765625, 0.0062255859375, 0.0128173828125, 0.01371002197265625, 0.030059814453125, -0.00814056396484375, -0.0135650634765625, -0.0236358642578125, -0.01514434814453125, 0.01116943359375, -0.01514434814453125, -0.03717041015625, -0.05767822265625, 0.0020122528076171875, -0.01030731201171875, -0.00435638427734375, -0.06182861328125, 0.042236328125, -0.006305694580078125, 0.0318603515625, -0.06280517578125, 0.01898193359375, 0.01561737060546875, 0.0318603515625, -0.031982421875, 0.0269317626953125, -0.0188751220703125, -0.02215576171875, 0.0212554931640625, 0.03472900390625, 0.0297698974609375, -0.03631591796875, 0.00614166259765625, 0.0745849609375, 0.060028076171875, 0.108154296875, 0.065673828125, -0.00498199462890625, -0.01324462890625, 0.01104736328125, -0.02154541015625, -0.0285797119140625, 0.031463623046875, -0.037139892578125, -0.039886474609375, -0.04931640625, 0.044189453125, 0.0400390625, -0.03643798828125, -0.080322265625, 0.0310211181640625, -0.028961181640625, -0.035400390625, -0.0172882080078125, -0.03533935546875, 0.006099700927734375, 0.0236358642578125, -0.0044403076171875, -0.0269775390625, -0.035064697265625, 0.0399169921875, -0.0022258758544921875, 0.017486572265625, 0.03924560546875, -0.0186004638671875, -0.01959228515625, -0.0164337158203125, 0.0006551742553710938, -0.0101165771484375, 0.0236358642578125, -0.038726806640625, 0.0284271240234375, 0.05010986328125, -0.0548095703125, -0.052947998046875, -0.00013506412506103516, 0.0043792724609375, 0.021087646484375, 0.0039215087890625, -0.033447265625, -0.033843994140625, -0.01232147216796875, 0.036956787109375, 0.00392913818359375, 0.0006732940673828125, 0.06402587890625, -0.0179595947265625, -0.0816650390625, -0.01348114013671875, 0.01261138916015625, -0.032196044921875, 0.0034580230712890625, 0.00675201416015625, -0.03167724609375, 0.006351470947265625, -0.055694580078125, -0.0433349609375, 0.00240325927734375, -0.058380126953125, -0.01210784912109375, 0.01226806640625, -0.03826904296875, 0.036346435546875, -0.022979736328125, -0.00222015380859375, -0.0144805908203125, 0.036346435546875, -0.0051116943359375, 0.016021728515625, 0.00720977783203125, -0.037689208984375, 0.01151275634765625, 0.02435302734375, 0.018768310546875, 0.034881591796875, -0.00021791458129882812, -0.0390625, -0.00965118408203125, 0.0230255126953125, -0.005817413330078125, 0.032989501953125, -0.00311279296875, 0.0164642333984375, 0.004489898681640625, 0.0301513671875, -0.0276031494140625, -0.00501251220703125, -0.0143280029296875, 0.0202789306640625, -0.000004649162292480469, -0.00125885009765625, 0.04022216796875, -0.0235137939453125, -0.01385498046875, 0.004062652587890625, -0.01383209228515625, -0.05694580078125, 0.042022705078125, 0.0221710205078125, 0.0245208740234375, 0.0360107421875 ]
b0e9b8f22033be3930d6a3a2a43258e34a148cc5
Wordpress Stackexchange Q: How to save media files under "http://example.com/custom_folder" for a specific page I want to upload images in a specific folder like http://example.com/custom_folder. Note: Not in http://example.com/wp-content/uploads/custom_folder/image1.jpg A: The filter you'd want to use is upload_dir. Check for the post_id key in the $_REQUEST super global array to be equal to the page ID you want to limit this for. Then change the uploads directory accordingly. In code: add_filter( 'upload_dir', 'my_uploads_dir' ); function my_uploads_dir( $param ){ // change this to the ID of your page $post_id = 135; // skips all uploads not associated with your page if ( empty( $_REQUEST['post_id'] ) || $_REQUEST['post_id'] != $post_id ) { return $param; } // set the name of your custom dir relative to WP root $mydir = 'awesome'; $param['path'] = $param['basedir'] = ABSPATH . $mydir; $param['url'] = $param['baseurl'] = site_url('/') . $mydir; // ignore date-based sorting $param['subdir'] = ''; return $param; } Where $mydir corresponds to your custom directory in the WordPress install root.
Q: How to save media files under "http://example.com/custom_folder" for a specific page I want to upload images in a specific folder like http://example.com/custom_folder. Note: Not in http://example.com/wp-content/uploads/custom_folder/image1.jpg A: The filter you'd want to use is upload_dir. Check for the post_id key in the $_REQUEST super global array to be equal to the page ID you want to limit this for. Then change the uploads directory accordingly. In code: add_filter( 'upload_dir', 'my_uploads_dir' ); function my_uploads_dir( $param ){ // change this to the ID of your page $post_id = 135; // skips all uploads not associated with your page if ( empty( $_REQUEST['post_id'] ) || $_REQUEST['post_id'] != $post_id ) { return $param; } // set the name of your custom dir relative to WP root $mydir = 'awesome'; $param['path'] = $param['basedir'] = ABSPATH . $mydir; $param['url'] = $param['baseurl'] = site_url('/') . $mydir; // ignore date-based sorting $param['subdir'] = ''; return $param; } Where $mydir corresponds to your custom directory in the WordPress install root. A: Try this add_filter('upload_dir', 'upload_image_specific_calback'); function upload_image_specific_calback( $param ){ //$_GET['post'] which is your target post like 10 is post id. //After click update button. if(isset($_GET['post'])){ if($_GET['post'] == 10){ $param = array( 'path' => get_home_path().'logos', 'url' => home_url().'/logos', 'subdir' => '', 'basedir' => get_home_path(), 'baseurl' => home_url(), 'error' => false ); } } //$_POST['post_id'] which is your target post like 10 is post id. //instant upload time before save if(isset($_POST['post_id'])){ if($_POST['post_id'] == 10) { $param = array( 'path' => get_home_path().'logos', 'url' => home_url().'/logos', 'subdir' => '', 'basedir' => get_home_path(), 'baseurl' => home_url(), 'error' => false ); } } error_log("path={$param['path']}"); error_log("url={$param['url']}"); error_log("subdir={$param['subdir']}"); error_log("basedir={$param['basedir']}"); error_log("baseurl={$param['baseurl']}"); error_log("error={$param['error']}"); return $param; } A: Add this in your wp-config.php file define( 'UPLOADS', 'custom_folder' ); And make sure to add this code before that. require_once( ABSPATH.’wp-settings.php’ ); For more information you can check here https://premium.wpmudev.org/blog/change-default-wordpress-uploads-folder/ Thanks
wordpress
{ "language": "en", "length": 300, "provenance": "stackexchange_00019.jsonl.gz:462813", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/216291" }
[ 0.05743408203125, 0.0016241073608398438, 0.015838623046875, -0.059112548828125, 0.0277862548828125, 0.0014781951904296875, 0.04339599609375, -0.00815582275390625, 0.0227203369140625, -0.007038116455078125, 0.01016998291015625, -0.013702392578125, 0.00124359130859375, -0.0574951171875, 0.00505828857421875, 0.0008873939514160156, 0.0206146240234375, 0.01165008544921875, 0.031829833984375, -0.005828857421875, -0.01078033447265625, 0.017547607421875, 0.02923583984375, 0.0012063980102539062, -0.0023136138916015625, 0.02850341796875, 0.0274810791015625, 0.0006647109985351562, -0.0128173828125, -0.0161895751953125, 0.0016813278198242188, -0.0009655952453613281, 0.018829345703125, -0.00579833984375, 0.0284271240234375, 0.04315185546875, 0.04205322265625, -0.0021038055419921875, 0.03985595703125, -0.003719329833984375, 0.019775390625, 0.0007939338684082031, 0.018798828125, -0.01450347900390625, 0.0006136894226074219, -0.03143310546875, 0.0278167724609375, -0.020172119140625, 0.0269775390625, 0.0179290771484375, 0.0032062530517578125, -0.0004162788391113281, 0.003200531005859375, -0.006626129150390625, -0.01389312744140625, -0.0279541015625, 0.0251312255859375, 0.005092620849609375, 0.04217529296875, -0.060516357421875, -0.06646728515625, -0.02484130859375, 0.0413818359375, 0.00609588623046875, 0.0050811767578125, -0.004047393798828125, 0.01666259765625, 0.0399169921875, -0.07623291015625, -0.024444580078125, 0.0287628173828125, -0.040435791015625, 0.01389312744140625, -0.027740478515625, -0.0173187255859375, 0.01332855224609375, -0.007251739501953125, -0.0279541015625, 0.02996826171875, -0.0172119140625, -0.01145172119140625, -0.02166748046875, -0.007022857666015625, -0.034149169921875, 0.0196380615234375, 0.0182647705078125, -0.0164947509765625, 0.00002580881118774414, -0.01529693603515625, 0.040771484375, -0.0227203369140625, -0.0008254051208496094, 0.0277557373046875, -0.00821685791015625, -0.016021728515625, -0.01593017578125, 0.0156707763671875, 0.038238525390625, -0.02813720703125, -0.0023632049560546875, 0.004352569580078125, -0.038482666015625, 0.032989501953125, -0.036712646484375, 0.02947998046875, 0.03741455078125, 0.01222991943359375, -0.046630859375, 0.021209716796875, 0.004322052001953125, -0.0033283233642578125, 0.045318603515625, -0.0009965896606445312, -0.025390625, -0.0158843994140625, 0.0162506103515625, -0.0183563232421875, 0.00713348388671875, -0.00013720989227294922, -0.01065826416015625, -0.006313323974609375, 0.032501220703125, -0.009307861328125, -0.04559326171875, 0.02630615234375, -0.01026153564453125, -0.038787841796875, -0.015960693359375, 0.00240325927734375, 0.043731689453125, -0.0280914306640625, 0.005329132080078125, 0.04522705078125, -0.01458740234375, -0.010772705078125, -0.0219879150390625, 0.012298583984375, -0.034637451171875, -0.0239715576171875, 0.0294036865234375, 0.01229095458984375, -0.040008544921875, -0.0225982666015625, -0.0146484375, -0.01415252685546875, 0.046661376953125, 0.00933837890625, 0.0217132568359375, -0.00006794929504394531, -0.098388671875, 0.01763916015625, -0.01385498046875, 0.036529541015625, -0.00414276123046875, -0.026885986328125, -0.032806396484375, 0.0071258544921875, -0.02978515625, 0.00737762451171875, -0.0389404296875, 0.0006999969482421875, 0.0016641616821289062, 0.0226593017578125, -0.0254974365234375, -0.0184326171875, -0.0276641845703125, -0.023284912109375, -0.004100799560546875, 0.0201873779296875, 0.01385498046875, 0.0008358955383300781, 0.00890350341796875, 0.009796142578125, 0.01163482666015625, -0.0037937164306640625, 0.01128387451171875, 0.011871337890625, 0.0024356842041015625, 0.007411956787109375, 0.060089111328125, 0.0054779052734375, -0.0157623291015625, 0.0218505859375, 0.005237579345703125, -0.03173828125, 0.0215606689453125, -0.0013904571533203125, 0.023681640625, 0.0017976760864257812, 0.008697509765625, 0.0305328369140625, 0.028411865234375, -0.0472412109375, -0.0030536651611328125, -0.029510498046875, -0.005519866943359375, -0.0257568359375, 0.00363922119140625, -0.02178955078125, 0.03631591796875, -0.011871337890625, 0.004642486572265625, 0.0202178955078125, 0.0227203369140625, 0.00005221366882324219, -0.0012607574462890625, -0.0043487548828125, 0.0116119384765625, -0.0171661376953125, -0.002498626708984375, 0.0279083251953125, 0.012359619140625, -0.0137786865234375, -0.0692138671875, -0.0261688232421875, 0.010833740234375, -0.0181884765625, 0.03167724609375, -0.022430419921875, 0.06475830078125, -0.055572509765625, -0.046417236328125, -0.05596923828125, -0.00795745849609375, 0.0254364013671875, 0.01294708251953125, -0.0196990966796875, 0.002796173095703125, 0.0163116455078125, 0.0309906005859375, -0.040618896484375, -0.0016183853149414062, 0.003948211669921875, -0.006664276123046875, -0.044677734375, -0.01358795166015625, -0.043304443359375, -0.07080078125, -0.0008254051208496094, 0.07073974609375, 0.020721435546875, 0.03668212890625, 0.003574371337890625, 0.0308685302734375, 0.08648681640625, 0.004688262939453125, 0.00543212890625, -0.00012385845184326172, -0.0014257431030273438, 0.017547607421875, 0.0038890838623046875, -0.03253173828125, 0.0154571533203125, -0.0911865234375, -0.00846099853515625, 0.03155517578125, -0.00994873046875, -0.0018205642700195312, 0.0118255615234375, 0.0149993896484375, -0.00528717041015625, 0.037811279296875, 0.00745391845703125, 0.0179901123046875, -0.01337432861328125, 0.040771484375, 0.03082275390625, 0.0289459228515625, -0.0201416015625, 0.0196685791015625, 0.0109100341796875, -0.0474853515625, -0.015167236328125, 0.006671905517578125, 0.0435791015625, -0.027191162109375, -0.011932373046875, 0.00811004638671875, -0.0132293701171875, -0.01020050048828125, -0.00777435302734375, 0.029266357421875, -0.0223846435546875, -0.00521087646484375, -0.03692626953125, -0.06298828125, 0.0269317626953125, 0.05322265625, 0.00021147727966308594, -0.016082763671875, 0.0257720947265625, 0.015106201171875, -0.0123748779296875, 0.01861572265625, -0.002567291259765625, -0.0205841064453125, 0.050140380859375, -0.035003662109375, 0.0292205810546875, -0.019622802734375, 0.01287841796875, 0.059417724609375, 0.01096343994140625, -0.0158538818359375, 0.0057373046875, -0.0008182525634765625, 0.008148193359375, 0.042144775390625, 0.0012598037719726562, -0.03533935546875, -0.03546142578125, -0.04107666015625, 0.0014553070068359375, -0.03369140625, 0.0034236907958984375, -0.02386474609375, -0.01385498046875, -0.0294342041015625, -0.09783935546875, -0.0731201171875, 0.0055999755859375, -0.0784912109375, 0.00925445556640625, 0.01390838623046875, -0.038909912109375, -0.029815673828125, 0.0572509765625, 0.0017833709716796875, -0.06298828125, -0.00344085693359375, 0.004878997802734375, -0.039886474609375, -0.02264404296875, 0.01393890380859375, 0.0225372314453125, 0.0073089599609375, -0.0011472702026367188, 0.034637451171875, -0.00391387939453125, -0.021270751953125, 0.00257110595703125, 0.042083740234375, 0.00010830163955688477, -0.0242767333984375, 0.01422119140625, -0.0293731689453125, 0.01201629638671875, -0.024261474609375, 0.08477783203125, 0.06207275390625, -0.048095703125, 0.0292510986328125, -0.010986328125, -0.0347900390625, -0.032379150390625, 0.0252685546875, 0.03912353515625, -0.0462646484375, -0.0168914794921875, -0.065185546875, -0.03363037109375, -0.02899169921875, -0.04815673828125, 0.047698974609375, 0.0234832763671875, 0.00722503662109375, -0.00428009033203125, 0.042816162109375, 0.00897216796875, 0.034210205078125, 0.0032749176025390625, -0.049407958984375, 0.023468017578125, 0.00568389892578125, 0.031494140625, -0.0066375732421875, 0.06903076171875, 0.00518798828125, 0.0281982421875, 0.049530029296875, 0.025665283203125, -0.01364898681640625, -0.01076507568359375, -0.0648193359375, -0.06573486328125, 0.033416748046875, -0.022491455078125, 0.03143310546875, -0.050750732421875, -0.0196685791015625, -0.031524658203125, 0.0660400390625, -0.077392578125, -0.01140594482421875, 0.0010395050048828125, 0.0096588134765625, -0.0012960433959960938, -0.0535888671875, -0.052459716796875, -0.013580322265625, -0.054840087890625, 0.007080078125, -0.004444122314453125, -0.0209197998046875, 0.02337646484375, -0.07958984375, -0.004608154296875, -0.0537109375, 0.033477783203125, -0.021484375, 0.0148468017578125, -0.002105712890625, 0.017791748046875, -0.022003173828125, 0.0006718635559082031, -0.0272369384765625, -0.13427734375, -0.02392578125, -0.0078887939453125, 0.06298828125, -0.031097412109375, 0.040374755859375, -0.04205322265625, 0.06573486328125, 0.024810791015625, 0.0270233154296875, 0.008392333984375, -0.0180206298828125, 0.0272979736328125, -0.015869140625, 0.025115966796875, -0.03729248046875, 0.014495849609375, -0.04248046875, -0.042388916015625, -0.0244598388671875, -0.04620361328125, 0.01351165771484375, -0.0287933349609375, -0.01690673828125, -0.0219879150390625, -0.02471923828125, -0.07025146484375, 0.00814056396484375, -0.043243408203125, -0.0285186767578125, -0.03509521484375, -0.06158447265625, 0.016357421875, -0.00566864013671875, -0.0010557174682617188, 0.01110076904296875, 0.06634521484375, 0.01116180419921875, -0.00911712646484375, -0.039520263671875, -0.0234375, 0.0303497314453125, -0.020782470703125, 0.0518798828125, 0.0380859375, 0.00405120849609375, 0.0226593017578125, -0.0062408447265625, 0.0062408447265625, 0.00653839111328125, 0.03350830078125, -0.009185791015625, -0.02227783203125, -0.00145721435546875, -0.0289459228515625, -0.00492095947265625, 0.01251220703125, -0.038848876953125, -0.00021719932556152344, -0.060333251953125, 0.0523681640625, 0.003101348876953125, 0.0244903564453125, -0.06292724609375, -0.08233642578125, 0.0174560546875, -0.023040771484375, 0.0411376953125, 0.000125885009765625, 0.005504608154296875, 0.06134033203125, 0.046142578125, 0.023956298828125, 0.0164947509765625, 0.040771484375, -0.01146697998046875, 0.043121337890625, 0.041015625, 0.0175933837890625, -0.0196990966796875, 0.0184326171875, -0.0269775390625, 0.020782470703125, -0.003864288330078125, -0.045166015625, 0.01505279541015625, 0.01010894775390625, -0.0191650390625, -0.023223876953125, 0.024810791015625, 0.026641845703125, -0.03057861328125, 0.0082855224609375, -0.0292816162109375, 0.0176849365234375, -0.04925537109375, 0.0015430450439453125, 0.0301971435546875, -0.03753662109375, -0.0283203125, 0.018157958984375, 0.01552581787109375, -0.030670166015625, -0.0004982948303222656, 0.016204833984375, 0.047027587890625, 0.0091552734375, 0.00836944580078125, 0.013641357421875, -0.007076263427734375, 0.004726409912109375, 0.027099609375, -0.01320648193359375, 0.017578125, -0.01474761962890625, 0.037841796875, -0.024505615234375, -0.026123046875, 0.0279541015625, -0.0596923828125, -0.006580352783203125, -0.0230865478515625, -0.048187255859375, -0.03887939453125, -0.004947662353515625, -0.020660400390625, 0.0017709732055664062, -0.0204620361328125, -0.01546478271484375, -0.00673675537109375, -0.041259765625, 0.003314971923828125, 0.0015354156494140625, -0.026641845703125, -0.0080108642578125, -0.019805908203125, 0.0179595947265625, 0.0214996337890625, 0.00528717041015625, -0.021240234375, -0.0185089111328125, -0.036102294921875, -0.0265350341796875, 0.07647705078125, -0.0421142578125, -0.006866455078125, 0.0004527568817138672, -0.0010919570922851562, -0.032684326171875, 0.03485107421875, 0.01261138916015625, 0.005985260009765625, -0.04278564453125, 0.0032329559326171875, -0.0293731689453125, -0.003925323486328125, 0.0216827392578125, -0.0093841552734375, -0.028839111328125, -0.0219268798828125, -0.03643798828125, 0.025115966796875, -0.0029239654541015625, 0.0288848876953125, -0.03472900390625, -0.007625579833984375, -0.0160064697265625, -0.004917144775390625, -0.0008935928344726562, 0.02740478515625, -0.031097412109375, 0.0244140625, -0.012908935546875, -0.00811767578125, -0.007293701171875, -0.0031280517578125, -0.025604248046875, -0.04736328125, -0.0018138885498046875, 0.01358795166015625, 0.0031452178955078125, 0.0589599609375, 0.046875, 0.014617919921875, 0.00342559814453125, -0.011993408203125, -0.007770538330078125, -0.040252685546875, 0.01131439208984375, -0.03076171875, 0.0162811279296875, -0.036773681640625, -0.0283355712890625, 0.026611328125, -0.00286102294921875, -0.0176544189453125, 0.0491943359375, -0.033721923828125, 0.037384033203125, 0.031982421875, -0.02850341796875, 0.036956787109375, 0.085693359375, 0.031707763671875, 0.07745361328125, 0.0110931396484375, 0.03741455078125, 0.035919189453125, 0.0128631591796875, 0.040557861328125, -0.0005216598510742188, 0.06573486328125, 0.005847930908203125, -0.0178070068359375, 0.03863525390625, -0.03277587890625, 0.03338623046875, 0.0214080810546875, 0.07501220703125, -0.0369873046875, 0.017608642578125, 0.0246429443359375, -0.00519561767578125, 0.052032470703125, -0.0098724365234375, 0.00528717041015625, -0.01209259033203125, -0.006336212158203125, 0.00110626220703125, -0.0289154052734375, -0.031951904296875, 0.0078582763671875, 0.0010585784912109375, 0.0163726806640625, 0.0244903564453125, -0.0177001953125, -0.0238189697265625, -0.07098388671875, 0.021087646484375, -0.06549072265625, 0.007640838623046875, 0.0160064697265625, -0.047515869140625, -0.00934600830078125, -0.02490234375, -0.0185089111328125, -0.0325927734375, -0.0014858245849609375, 0.0300140380859375, -0.01053619384765625, 0.08172607421875, 0.043792724609375, 0.0160369873046875, -0.0215301513671875, 0.021759033203125, -0.0024662017822265625, 0.01415252685546875, -0.01055145263671875, 0.03192138671875, 0.01271820068359375, -0.045135498046875, 0.00894927978515625, -0.0221099853515625, -0.0091705322265625, 0.005645751953125, -0.0018310546875, 0.060272216796875, -0.0716552734375, -0.0034732818603515625, 0.02362060546875, 0.0273284912109375, 0.005352020263671875, 0.0128936767578125, 0.0290374755859375, -0.0762939453125, -0.050872802734375, -0.00536346435546875, -0.05511474609375, 0.00518035888671875, -0.01465606689453125, -0.055328369140625, 0.09942626953125, -0.0286865234375, 0.04949951171875, 0.034423828125, 0.03582763671875, -0.01995849609375, 0.0100860595703125, -0.03582763671875, -0.01511383056640625, 0.020843505859375, 0.0085601806640625, -0.056549072265625, -0.0019092559814453125, -0.028900146484375, 0.0290069580078125, 0.09051513671875, 0.031219482421875, -0.0380859375, -0.01580810546875, 0.03717041015625, 0.033050537109375, -0.01739501953125, 0.03961181640625, 0.006610870361328125, 0.005954742431640625, 0.03302001953125, -0.016448974609375, 0.01641845703125, 0.0177764892578125, -0.020782470703125, 0.036407470703125, -0.00885772705078125, -0.0257720947265625, 0.0158233642578125, -0.0127105712890625, -0.04522705078125, 0.006092071533203125, 0.02191162109375, -0.018524169921875, 0.027374267578125, 0.0087127685546875, 0.0174560546875, -0.0157012939453125, -0.053466796875, 0.00921630859375, 0.024444580078125, 0.0008225440979003906, 0.02685546875, 0.02410888671875, 0.01396942138671875, 0.02020263671875, 0.03076171875, 0.002899169921875, 0.03179931640625, -0.0023040771484375, 0.0567626953125, 0.0126800537109375, 0.025390625, -0.040313720703125, 0.0268402099609375, 0.0260772705078125, 0.055511474609375, -0.04571533203125, -0.038482666015625, 0.010040283203125, -0.027801513671875, -0.018096923828125, -0.01222991943359375, -0.01873779296875, -0.043701171875, -0.017303466796875, -0.069091796875, 0.01525115966796875, 0.050048828125, 0.03497314453125, -0.022674560546875, -0.030792236328125, -0.03131103515625, -0.0207366943359375, -0.0114288330078125, -0.029144287109375, -0.00443267822265625, 0.01776123046875, 0.0190277099609375, -0.0078125, -0.003002166748046875, -0.004131317138671875, -0.0217742919921875, 0.05987548828125, -0.0018854141235351562, 0.024658203125, -0.056427001953125, -0.046661376953125, -0.006763458251953125, 0.04754638671875, 0.008331298828125, 0.054229736328125, 0.041961669921875, 0.0218048095703125, -0.0172119140625, 0.00797271728515625, 0.027679443359375, -0.0247955322265625, 0.0171356201171875, -0.01593017578125, 0.01239013671875, 0.0191650390625, -0.016143798828125, -0.01129150390625, -0.011016845703125, 0.06707763671875, -0.03985595703125, 0.031463623046875, -0.0175018310546875, -0.0263519287109375, 0.0111846923828125, -0.0137786865234375, 0.06585693359375, -0.0199432373046875, -0.025543212890625, 0.0119171142578125, -0.044525146484375, -0.03704833984375, 0.00841522216796875, 0.03509521484375, -0.0015850067138671875, 0.0110015869140625, 0.0133514404296875, 0.0025386810302734375, 0.005168914794921875, -0.0257720947265625, 0.0123443603515625, 0.014251708984375, 0.02276611328125, 0.0255584716796875, -0.026275634765625, 0.0004761219024658203, -0.01837158203125, 0.027618408203125, 0.010955810546875, 0.110107421875, -0.037139892578125, 0.0199127197265625, 0.030548095703125, 0.01256561279296875, -0.027313232421875, 0.0273590087890625, 0.01361846923828125, -0.0182342529296875, 0.00110626220703125, -0.0256195068359375, 0.0265045166015625, -0.0008153915405273438, 0.02685546875, -0.05902099609375, -0.044158935546875, -0.004550933837890625, 0.025665283203125, 0.04913330078125, 0.041534423828125, -0.01197052001953125, -0.0170440673828125, -0.058990478515625, -0.0125732421875, 0.050994873046875, 0.0189666748046875, -0.049530029296875, 0.0146331787109375, 0.0060577392578125, -0.0204315185546875, 0.043212890625, -0.0283203125, 0.08245849609375, 0.047576904296875, -0.053070068359375, -0.032470703125, -0.02423095703125, -0.0162506103515625, -0.0254974365234375, 0.003910064697265625, 0.0164642333984375, -0.01055908203125, -0.04669189453125, -0.033111572265625, 0.0025653839111328125, 0.0171051025390625, -0.01751708984375, 0.00995635986328125, -0.00937652587890625, -0.00875091552734375, 0.00015842914581298828, -0.021728515625, -0.005466461181640625, -0.02886962890625, -0.0007390975952148438, 0.0231475830078125, -0.008544921875, 0.005970001220703125, -0.021240234375, 0.0012035369873046875, 0.050140380859375, 0.014556884765625, -0.0714111328125, 0.0251922607421875, -0.0225372314453125, 0.03228759765625, 0.002552032470703125, 0.03680419921875, -0.01445770263671875, 0.0181427001953125, -0.00992584228515625, -0.05023193359375, -0.0167999267578125, 0.0618896484375, 0.0018510818481445312, 0.004024505615234375, 0.0125579833984375, -0.013763427734375, 0.0076751708984375, 0.033050537109375, -0.00652313232421875, 0.08807373046875, -0.043182373046875, -0.032073974609375, -0.009033203125, -0.01490020751953125, -0.01415252685546875, 0.0021152496337890625, 0.01959228515625, -0.0207672119140625, -0.0304107666015625, -0.023468017578125, -0.024200439453125, -0.01898193359375, -0.05877685546875, -0.09295654296875, 0.0004801750183105469, -0.01204681396484375, -0.05694580078125, -0.0195465087890625, 0.0221710205078125, -0.0215606689453125, 0.051605224609375, 0.01142120361328125, -0.04400634765625, -0.0018596649169921875, 0.018890380859375, 0.041656494140625, 0.010986328125, 0.01409912109375, 0.0396728515625, -0.056640625, 0.0221710205078125, 0.00318145751953125, 0.01045989990234375, 0.048553466796875, -0.0235595703125, 0.04644775390625, 0.046539306640625, -0.00753021240234375, 0.0248870849609375, -0.00041365623474121094, -0.07275390625, -0.03997802734375, -0.02197265625, -0.038238525390625, -0.0251007080078125, 0.08740234375, 0.080078125, 0.019287109375, -0.0286407470703125, -0.01727294921875, -0.0240325927734375, -0.010223388671875, 0.01062774658203125, 0.017181396484375, -0.05157470703125, -0.004947662353515625, 0.0279388427734375, 0.01044464111328125, -0.0180816650390625, 0.0025615692138671875, -0.009185791015625, -0.01537322998046875, 0.043487548828125, -0.0016622543334960938, -0.0175933837890625, 0.0161285400390625, 0.058074951171875, -0.03125, 0.0362548828125, -0.0261383056640625, 0.00952911376953125, 0.045806884765625, -0.02239990234375, -0.01093292236328125, 0.044525146484375, -0.04571533203125, -0.0061492919921875, 0.005687713623046875, 0.0269775390625, -0.02032470703125, 0.007358551025390625, -0.02294921875, -0.030853271484375, 0.00600433349609375, -0.06231689453125, -0.0230255126953125, 0.0154266357421875, -0.01058197021484375, 0.09820556640625, 0.005329132080078125, -0.0136566162109375, -0.0170745849609375, 0.0174560546875, -0.0129547119140625, -0.017181396484375, 0.02630615234375, -0.04736328125, 0.01021575927734375, -0.0130157470703125, -0.0124664306640625, -0.041656494140625, 0.0166473388671875, 0.0004634857177734375, -0.01361846923828125, 0.01153564453125 ]
e647002c28e135da01c9650895608b1ae9c61157
Wordpress Stackexchange Q: Display child taxonomy until the last child I want to show child categories list on parent taxonomy which I almost obtained using wp_list_categories The problem is I want to show my custom post type of the last child category when I reach last child Category. A: Got some ideas for your requirement. Check below code... $parent=get_queried_object()->term_id; $child = get_categories('child_of='.$parent. '&hide_empty=0&echo=0&taxonomy=custom_taxonomy'); if(count($child)>0){ $i=0; foreach ( $child as $row ) { $i++; echo '<li><a href="'.get_term_link($row,$row->taxonomy).'">'.$row->name.'</a></li>'; if(count($child)==$i){ $args=array( 'post_type' => 'custom_post','order' => 'DESC', 'posts_per_page'=>1,'tax_query' => array( array('taxonomy' => 'custom_taxonomy','terms' =>$row->term_id, 'field' => 'id' )) ); $second_query = new WP_Query( $args ); if ($second_query->have_posts()) : while ($second_query->have_posts()) : $second_query->the_post(); echo get_the_title(); endwhile; endif; wp_reset_query(); } } }
Q: Display child taxonomy until the last child I want to show child categories list on parent taxonomy which I almost obtained using wp_list_categories The problem is I want to show my custom post type of the last child category when I reach last child Category. A: Got some ideas for your requirement. Check below code... $parent=get_queried_object()->term_id; $child = get_categories('child_of='.$parent. '&hide_empty=0&echo=0&taxonomy=custom_taxonomy'); if(count($child)>0){ $i=0; foreach ( $child as $row ) { $i++; echo '<li><a href="'.get_term_link($row,$row->taxonomy).'">'.$row->name.'</a></li>'; if(count($child)==$i){ $args=array( 'post_type' => 'custom_post','order' => 'DESC', 'posts_per_page'=>1,'tax_query' => array( array('taxonomy' => 'custom_taxonomy','terms' =>$row->term_id, 'field' => 'id' )) ); $second_query = new WP_Query( $args ); if ($second_query->have_posts()) : while ($second_query->have_posts()) : $second_query->the_post(); echo get_the_title(); endwhile; endif; wp_reset_query(); } } }
wordpress
{ "language": "en", "length": 114, "provenance": "stackexchange_00019.jsonl.gz:462846", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/216385" }
[ 0.038238525390625, 0.005039215087890625, -0.01261138916015625, -0.05450439453125, 0.0203094482421875, -0.0200347900390625, -0.01812744140625, -0.014984130859375, -0.05218505859375, 0.03173828125, -0.047332763671875, -0.00839996337890625, -0.0364990234375, -0.0187530517578125, -0.00777435302734375, -0.0826416015625, 0.04150390625, -0.047027587890625, 0.01459503173828125, -0.0065155029296875, -0.01470947265625, 0.001537322998046875, 0.080322265625, 0.034759521484375, -0.007720947265625, -0.00860595703125, 0.052764892578125, -0.039031982421875, -0.0095977783203125, -0.040191650390625, -0.00484466552734375, 0.0156097412109375, 0.022186279296875, 0.001007080078125, 0.019500732421875, -0.025970458984375, 0.038055419921875, -0.02215576171875, 0.020294189453125, 0.038116455078125, 0.0234527587890625, -0.01285552978515625, -0.0025634765625, 0.001514434814453125, -0.019622802734375, -0.01026153564453125, 0.006267547607421875, -0.0150146484375, -0.005512237548828125, -0.016326904296875, 0.038482666015625, -0.00782012939453125, 0.0516357421875, -0.00875091552734375, -0.018157958984375, 0.0088348388671875, 0.0176544189453125, -0.054107666015625, 0.041412353515625, -0.027587890625, -0.042999267578125, -0.037109375, 0.05242919921875, -0.007843017578125, -0.0102996826171875, 0.0220794677734375, 0.007843017578125, 0.0107421875, -0.022674560546875, -0.0287017822265625, 0.022247314453125, -0.0233154296875, -0.0220489501953125, 0.0027866363525390625, -0.0372314453125, -0.033935546875, 0.0143280029296875, -0.048309326171875, -0.0015707015991210938, 0.035888671875, -0.002262115478515625, -0.0194091796875, -0.0640869140625, 0.01413726806640625, 0.0017805099487304688, 0.032196044921875, -0.0235748291015625, -0.019256591796875, -0.0080718994140625, -0.00960540771484375, -0.00007015466690063477, 0.01047515869140625, -0.00954437255859375, 0.00751495361328125, 0.0036869049072265625, -0.045074462890625, 0.0269317626953125, 0.04949951171875, -0.04913330078125, -0.01491546630859375, -0.025604248046875, -0.0108642578125, -0.02044677734375, -0.0157623291015625, 0.037139892578125, 0.0266265869140625, -0.033660888671875, -0.055694580078125, 0.053955078125, 0.03582763671875, 0.0160675048828125, 0.053863525390625, -0.03521728515625, -0.032745361328125, -0.02099609375, 0.0390625, -0.04150390625, -0.0122833251953125, -0.005245208740234375, -0.0006852149963378906, -0.02056884765625, -0.01229095458984375, 0.0034332275390625, -0.0169219970703125, 0.01849365234375, 0.00424957275390625, -0.0214996337890625, -0.004718780517578125, 0.027801513671875, 0.0250091552734375, -0.039031982421875, -0.00982666015625, 0.055145263671875, 0.04620361328125, 0.021514892578125, -0.00725555419921875, 0.007598876953125, 0.0013017654418945312, 0.028900146484375, -0.03753662109375, 0.04052734375, 0.019195556640625, 0.04486083984375, 0.01541900634765625, -0.0292816162109375, 0.0156097412109375, 0.01013946533203125, 0.006244659423828125, -0.002838134765625, -0.0293426513671875, -0.0038509368896484375, -0.0309600830078125, 0.08673095703125, -0.021575927734375, -0.1060791015625, -0.0225677490234375, -0.021575927734375, -0.0224151611328125, -0.0540771484375, -0.0615234375, 0.0005269050598144531, 0.01091766357421875, 0.03466796875, -0.06939697265625, -0.068359375, -0.0009431838989257812, -0.06304931640625, -0.0189361572265625, 0.01021575927734375, -0.040008544921875, 0.046295166015625, 0.01445770263671875, 0.0300140380859375, 0.01366424560546875, 0.0223846435546875, 0.01110076904296875, -0.031494140625, -0.0021457672119140625, 0.050201416015625, 0.004547119140625, -0.020904541015625, -0.037567138671875, 0.01861572265625, -0.00396728515625, -0.0256195068359375, 0.0178070068359375, 0.00125885009765625, 0.0010519027709960938, -0.01131439208984375, 0.014312744140625, 0.017822265625, 0.059234619140625, -0.069580078125, 0.07696533203125, 0.0285797119140625, -0.0242767333984375, -0.042144775390625, -0.0208587646484375, 0.0002760887145996094, -0.04632568359375, -0.046112060546875, 0.00485992431640625, -0.0171966552734375, 0.005157470703125, -0.06439208984375, 0.01097869873046875, -0.0225372314453125, 0.052825927734375, 0.007251739501953125, 0.006122589111328125, 0.01497650146484375, -0.00481414794921875, -0.023773193359375, -0.024688720703125, -0.051177978515625, 0.002044677734375, -0.029296875, 0.0127716064453125, 0.0014314651489257812, -0.00577545166015625, -0.005084991455078125, -0.0284271240234375, 0.006626129150390625, 0.0178070068359375, 0.08636474609375, 0.0100860595703125, -0.003238677978515625, -0.0257568359375, 0.043426513671875, 0.038177490234375, -0.0975341796875, 0.00007641315460205078, 0.037872314453125, 0.0070953369140625, -0.04193115234375, 0.007595062255859375, -0.0007824897766113281, -0.040130615234375, -0.0143890380859375, 0.05572509765625, 0.02349853515625, 0.01279449462890625, -0.0230865478515625, -0.01157379150390625, 0.053497314453125, -0.044036865234375, -0.01105499267578125, -0.00868988037109375, 0.00843048095703125, 0.041168212890625, 0.0195770263671875, 0.0096435546875, 0.0194091796875, 0.0285491943359375, 0.0211029052734375, 0.0084381103515625, -0.01177978515625, -0.007167816162109375, -0.005199432373046875, -0.02099609375, 0.0277099609375, -0.07135009765625, -0.05499267578125, 0.0029850006103515625, 0.042083740234375, 0.022186279296875, 0.04345703125, 0.0244903564453125, -0.028228759765625, 0.01044464111328125, 0.0128631591796875, -0.00882720947265625, 0.005710601806640625, -0.016754150390625, -0.00873565673828125, -0.024932861328125, -0.0078887939453125, 0.00572967529296875, -0.0121307373046875, -0.037750244140625, 0.013275146484375, 0.057281494140625, -0.012908935546875, -0.006092071533203125, -0.061065673828125, -0.020782470703125, 0.0027313232421875, 0.0684814453125, -0.03619384765625, -0.005298614501953125, 0.0273284912109375, 0.05615234375, -0.01116180419921875, 0.023590087890625, -0.0124969482421875, 0.017120361328125, -0.0189361572265625, -0.0245361328125, 0.032623291015625, -0.053436279296875, -0.0007109642028808594, 0.038665771484375, -0.00522613525390625, -0.011444091796875, -0.0006651878356933594, -0.0152130126953125, -0.00183868408203125, 0.035552978515625, 0.0009517669677734375, -0.03411865234375, -0.015045166015625, 0.005924224853515625, 0.036468505859375, 0.06622314453125, 0.0160369873046875, -0.034088134765625, 0.01438140869140625, 0.05352783203125, -0.031646728515625, -0.0565185546875, 0.0242156982421875, -0.0079345703125, -0.0198516845703125, 0.0045318603515625, 0.0001518726348876953, -0.0186614990234375, -0.005191802978515625, -0.0012426376342773438, 0.0255584716796875, -0.068115234375, -0.0672607421875, -0.09857177734375, -0.07843017578125, -0.033966064453125, 0.0083160400390625, -0.0133514404296875, 0.0061187744140625, 0.0740966796875, 0.022064208984375, -0.060333251953125, 0.0004279613494873047, 0.034820556640625, -0.0306396484375, 0.0118865966796875, 0.0005984306335449219, -0.0162353515625, 0.01715087890625, 0.007015228271484375, 0.0124053955078125, 0.0152435302734375, -0.00908660888671875, -0.0216522216796875, -0.0255889892578125, 0.039794921875, 0.0263671875, -0.0171966552734375, 0.014984130859375, 0.07568359375, 0.03753662109375, 0.0139923095703125, -0.04205322265625, -0.01122283935546875, -0.041015625, 0.033172607421875, 0.014190673828125, 0.0169830322265625, -0.02520751953125, 0.01512908935546875, -0.033935546875, -0.021484375, -0.02978515625, -0.046600341796875, 0.05615234375, 0.006824493408203125, 0.00637054443359375, 0.025848388671875, 0.0131378173828125, -0.013702392578125, -0.0003399848937988281, -0.010406494140625, 0.0309295654296875, 0.002071380615234375, -0.00341033935546875, -0.0667724609375, -0.06463623046875, 0.043365478515625, -0.01076507568359375, 0.01161956787109375, -0.038238525390625, -0.03106689453125, -0.00214385986328125, 0.09033203125, -0.04052734375, -0.03369140625, -0.029815673828125, -0.01090240478515625, -0.00815582275390625, -0.0059356689453125, -0.0216522216796875, -0.01485443115234375, -0.0936279296875, 0.01058197021484375, 0.00926971435546875, -0.032470703125, -0.0032634735107421875, 0.02880859375, -0.06036376953125, -0.0278472900390625, 0.0377197265625, -0.03704833984375, -0.00215911865234375, 0.0163421630859375, -0.0096282958984375, -0.00513458251953125, -0.0357666015625, -0.00481414794921875, -0.044525146484375, -0.0038967132568359375, 0.0009927749633789062, 0.006805419921875, 0.01064300537109375, -0.01250457763671875, 0.00563812255859375, 0.050323486328125, 0.052947998046875, 0.0298919677734375, -0.005046844482421875, -0.046844482421875, -0.01043701171875, 0.0094757080078125, 0.015869140625, -0.0223846435546875, -0.022735595703125, -0.037109375, 0.0115814208984375, 0.007373809814453125, -0.046295166015625, -0.01354217529296875, -0.035400390625, 0.00461578369140625, -0.0440673828125, -0.0286102294921875, -0.0144195556640625, 0.008453369140625, -0.01641845703125, 0.00160980224609375, -0.027008056640625, -0.0672607421875, 0.01519012451171875, 0.01055145263671875, -0.039276123046875, 0.0185394287109375, 0.06640625, 0.030548095703125, -0.0207977294921875, -0.031494140625, -0.0229644775390625, 0.01715087890625, -0.02374267578125, 0.0288238525390625, 0.004764556884765625, -0.01971435546875, 0.0631103515625, -0.0168304443359375, 0.007778167724609375, 0.00916290283203125, 0.0623779296875, -0.0004379749298095703, -0.040374755859375, 0.037139892578125, -0.01169586181640625, -0.040130615234375, 0.0024242401123046875, -0.033782958984375, 0.0012197494506835938, -0.03533935546875, 0.0343017578125, 0.00496673583984375, 0.02935791015625, -0.039154052734375, -0.0254669189453125, 0.01218414306640625, 0.00919342041015625, 0.007411956787109375, 0.0268402099609375, -0.0164642333984375, -0.0021419525146484375, -0.0114593505859375, 0.007762908935546875, -0.0160980224609375, 0.0338134765625, 0.0047149658203125, 0.042938232421875, -0.007564544677734375, 0.01470947265625, -0.033538818359375, 0.0146026611328125, -0.006946563720703125, 0.01520538330078125, -0.0009255409240722656, -0.023956298828125, 0.0099029541015625, 0.0202178955078125, -0.032928466796875, 0.03570556640625, 0.03338623046875, 0.0002582073211669922, 0.029510498046875, -0.0205841064453125, -0.00022351741790771484, 0.013702392578125, -0.00914764404296875, -0.004093170166015625, 0.00577545166015625, -0.00868988037109375, -0.0286712646484375, 0.08905029296875, 0.02117919921875, 0.0131378173828125, -0.034759521484375, -0.01155853271484375, -0.006702423095703125, 0.0248870849609375, 0.046600341796875, -0.0151519775390625, 0.01172637939453125, -0.018280029296875, 0.03338623046875, -0.03399658203125, -0.0258941650390625, 0.007076263427734375, 0.04644775390625, 0.006786346435546875, 0.003627777099609375, 0.0208587646484375, 0.0043487548828125, -0.0401611328125, 0.00612640380859375, 0.0285797119140625, 0.031494140625, -0.026397705078125, -0.0290374755859375, 0.032257080078125, 0.052703857421875, -0.021087646484375, 0.02496337890625, -0.0535888671875, 0.020782470703125, 0.00273895263671875, -0.01446533203125, 0.0115509033203125, 0.0008907318115234375, -0.052642822265625, -0.0169830322265625, 0.01776123046875, -0.0211639404296875, -0.0304718017578125, -0.0012578964233398438, -0.02587890625, -0.0347900390625, -0.0195159912109375, 0.06011962890625, -0.0517578125, -0.0147247314453125, -0.031463623046875, -0.0099945068359375, 0.078857421875, 0.060821533203125, -0.056365966796875, 0.007320404052734375, -0.052581787109375, -0.003871917724609375, -0.017669677734375, -0.052093505859375, -0.036407470703125, -0.0131378173828125, 0.01953125, 0.0304107666015625, -0.01076507568359375, -0.042938232421875, -0.028045654296875, -0.0201568603515625, 0.011810302734375, 0.01331329345703125, 0.0051422119140625, 0.076416015625, -0.01311492919921875, 0.0479736328125, 0.03704833984375, 0.0289459228515625, -0.04815673828125, -0.01214599609375, -0.0009832382202148438, -0.03326416015625, -0.01372528076171875, 0.005741119384765625, -0.043670654296875, -0.01568603515625, 0.031341552734375, -0.00630950927734375, 0.052398681640625, -0.0077056884765625, -0.0003662109375, 0.0010700225830078125, -0.03863525390625, -0.0106658935546875, 0.023681640625, 0.08123779296875, -0.03265380859375, -0.031280517578125, 0.017578125, -0.00959014892578125, 0.02490234375, 0.005374908447265625, -0.0012788772583007812, -0.0028781890869140625, -0.0156707763671875, 0.025482177734375, 0.016204833984375, -0.004047393798828125, 0.03607177734375, 0.006744384765625, 0.045318603515625, 0.0161590576171875, -0.0104522705078125, -0.01430511474609375, 0.004291534423828125, 0.048004150390625, -0.00795745849609375, -0.00923919677734375, 0.033203125, -0.02716064453125, -0.042633056640625, -0.016143798828125, 0.02679443359375, 0.026824951171875, -0.0216522216796875, 0.02093505859375, -0.0067596435546875, 0.0026950836181640625, 0.01666259765625, 0.003437042236328125, -0.0019702911376953125, -0.0295562744140625, -0.01078033447265625, -0.03582763671875, -0.014190673828125, -0.00994873046875, -0.0026531219482421875, -0.00958251953125, 0.05078125, 0.0127105712890625, -0.0252227783203125, -0.006961822509765625, 0.004306793212890625, -0.007343292236328125, -0.02532958984375, 0.0122833251953125, -0.04290771484375, 0.01067352294921875, -0.046112060546875, 0.006877899169921875, -0.0290985107421875, 0.01605224609375, 0.04486083984375, 0.016082763671875, -0.0263671875, 0.042877197265625, -0.012451171875, 0.051361083984375, -0.00534820556640625, -0.05706787109375, -0.039398193359375, 0.01540374755859375, -0.0029048919677734375, 0.003314971923828125, -0.053070068359375, 0.021087646484375, -0.0672607421875, 0.0287933349609375, -0.0082550048828125, -0.016265869140625, 0.024688720703125, -0.0455322265625, 0.00777435302734375, 0.031890869140625, 0.053314208984375, -0.01433563232421875, 0.00695037841796875, -0.009368896484375, -0.034576416015625, -0.0179901123046875, 0.0023822784423828125, -0.0224456787109375, -0.024169921875, -0.0335693359375, -0.053802490234375, 0.11090087890625, -0.00719451904296875, 0.045013427734375, 0.0261993408203125, 0.037750244140625, -0.048736572265625, -0.000835418701171875, -0.0263671875, 0.0472412109375, 0.045562744140625, 0.04400634765625, -0.0667724609375, -0.0380859375, 0.0135040283203125, 0.08599853515625, 0.0166015625, -0.0049285888671875, -0.045196533203125, -0.0005049705505371094, 0.0228729248046875, 0.0183868408203125, -0.00606536865234375, 0.049072265625, 0.00897979736328125, 0.006626129150390625, 0.051055908203125, 0.003833770751953125, 0.046539306640625, -0.0013141632080078125, -0.016693115234375, 0.02587890625, 0.01273345947265625, 0.016510009765625, -0.02899169921875, 0.00984954833984375, -0.0313720703125, -0.0153961181640625, 0.01168060302734375, -0.01038360595703125, -0.004329681396484375, 0.06005859375, 0.0352783203125, -0.057525634765625, -0.00136566162109375, -0.041717529296875, 0.043304443359375, -0.0243682861328125, 0.0233001708984375, 0.017059326171875, 0.01479339599609375, 0.0457763671875, -0.0027675628662109375, 0.0269622802734375, 0.03778076171875, -0.040985107421875, 0.0418701171875, 0.0191802978515625, 0.0213165283203125, -0.037933349609375, 0.0287322998046875, 0.0040130615234375, 0.055633544921875, -0.05755615234375, -0.05792236328125, 0.016876220703125, 0.026580810546875, 0.0028514862060546875, 0.028472900390625, 0.0108642578125, 0.058258056640625, 0.0980224609375, -0.038604736328125, -0.00270843505859375, 0.00920867919921875, 0.04571533203125, -0.0216217041015625, -0.0175933837890625, -0.0361328125, -0.04266357421875, -0.0174407958984375, -0.01010894775390625, 0.0263214111328125, 0.06005859375, 0.0223388671875, 0.047882080078125, -0.059906005859375, -0.03271484375, -0.01253509521484375, 0.000644683837890625, 0.01387786865234375, 0.01506805419921875, 0.0017786026000976562, 0.016021728515625, -0.007282257080078125, 0.0177764892578125, 0.041351318359375, 0.006175994873046875, 0.039886474609375, 0.022552490234375, -0.001659393310546875, 0.007537841796875, 0.0291900634765625, -0.01141357421875, 0.01031494140625, -0.0223541259765625, 0.0276031494140625, 0.0374755859375, 0.0029430389404296875, 0.004611968994140625, -0.0033931732177734375, 0.07366943359375, -0.003215789794921875, 0.0266265869140625, -0.002994537353515625, -0.033477783203125, 0.032501220703125, -0.006008148193359375, 0.0902099609375, 0.0186767578125, -0.09814453125, -0.0384521484375, -0.0224609375, -0.0179595947265625, 0.050811767578125, 0.039642333984375, -0.01270294189453125, 0.01678466796875, 0.0009965896606445312, -0.051422119140625, -0.00627899169921875, 0.036529541015625, 0.01367950439453125, 0.01485443115234375, -0.0305023193359375, -0.00797271728515625, -0.0169219970703125, -0.0017595291137695312, -0.0019817352294921875, 0.020416259765625, 0.0267181396484375, 0.0034961700439453125, 0.01212310791015625, 0.028900146484375, -0.033538818359375, 0.043792724609375, -0.039825439453125, -0.039459228515625, 0.053466796875, -0.005710601806640625, -0.004703521728515625, -0.00534820556640625, -0.0268096923828125, 0.03759765625, 0.04071044921875, -0.01259613037109375, 0.0189208984375, 0.01206207275390625, 0.003337860107421875, -0.035858154296875, 0.0190277099609375, -0.0213623046875, 0.01441192626953125, -0.01904296875, -0.044097900390625, 0.05694580078125, 0.0036773681640625, -0.015655517578125, 0.00998687744140625, 0.0234222412109375, -0.014007568359375, 0.030426025390625, 0.0005278587341308594, 0.035614013671875, 0.037384033203125, -0.021575927734375, -0.0189666748046875, 0.01248931884765625, -0.0229034423828125, 0.0122833251953125, 0.013397216796875, 0.0125732421875, 0.00884246826171875, -0.0246124267578125, -0.000043272972106933594, 0.0350341796875, 0.038421630859375, -0.03582763671875, 0.00969696044921875, 0.0130615234375, -0.020477294921875, 0.032470703125, -0.04437255859375, -0.039825439453125, -0.051116943359375, 0.019622802734375, 0.01428985595703125, 0.003246307373046875, -0.019866943359375, -0.00299835205078125, 0.0120697021484375, 0.06817626953125, 0.025177001953125, -0.043304443359375, 0.0252532958984375, -0.058624267578125, 0.014556884765625, 0.0229644775390625, -0.038330078125, 0.00839996337890625, -0.006744384765625, -0.0194549560546875, 0.01375579833984375, -0.0489501953125, -0.00927734375, -0.027252197265625, 0.0113372802734375, 0.0024394989013671875, -0.0307769775390625, 0.0308380126953125, 0.005290985107421875, 0.03021240234375, 0.052154541015625, 0.07073974609375, -0.0184478759765625, -0.0152740478515625, 0.033599853515625, -0.03277587890625, -0.0179595947265625, 0.04534912109375, -0.0189971923828125, -0.0400390625, 0.01038360595703125, 0.021697998046875, 0.0516357421875, -0.0271453857421875, -0.050445556640625, 0.09014892578125, -0.0218505859375, -0.028594970703125, -0.035064697265625, 0.041778564453125, -0.01097869873046875, -0.0229949951171875, 0.003787994384765625, -0.009033203125, 0.0192413330078125, 0.010711669921875, 0.015869140625, 0.03167724609375, -0.005950927734375, 0.007251739501953125, -0.0731201171875, 0.01108551025390625, -0.02239990234375, 0.0179595947265625, 0.017608642578125, -0.0208892822265625, 0.030609130859375, 0.0247802734375, -0.03692626953125, -0.00971221923828125, 0.01120758056640625, 0.01447296142578125, -0.0005421638488769531, -0.0277099609375, -0.0122222900390625, -0.0093994140625, 0.04150390625, -0.008392333984375, 0.00930023193359375, -0.01438140869140625, -0.04638671875, -0.02264404296875, -0.002384185791015625, 0.007740020751953125, 0.017303466796875, -0.055145263671875, 0.007659912109375, 0.01422882080078125, -0.03375244140625, -0.01367950439453125, -0.00908660888671875, -0.06927490234375, -0.007396697998046875, -0.0258636474609375, 0.01261138916015625, -0.0653076171875, 0.053192138671875, -0.01421356201171875, -0.00655364990234375, -0.01168060302734375, -0.022796630859375, -0.007328033447265625, -0.0305938720703125, -0.017486572265625, -0.0022411346435546875, 0.0231781005859375, 0.00804901123046875, 0.005855560302734375, 0.0275115966796875, -0.0065155029296875, 0.0111236572265625, 0.0128021240234375, -0.034576416015625, 0.01010894775390625, 0.0183868408203125, -0.020599365234375, -0.0185089111328125, 0.064697265625, 0.03204345703125, 0.06085205078125, 0.0035953521728515625, 0.035675048828125, 0.00797271728515625, 0.0352783203125, -0.0267333984375, -0.002544403076171875, -0.01395416259765625, -0.02032470703125, 0.006534576416015625, -0.0177154541015625, -0.0024204254150390625, -0.0203094482421875, 0.0005359649658203125, 0.0168304443359375, -0.03094482421875, 0.0154876708984375 ]
0b7673a1baa110ac4862d91ea3efd6733e41e147
Wordpress Stackexchange Q: Check if page parent has certain template I want to check if a page has a parent with a certain page template attached to it. If I know that I can determine which scripts to load or not. Normally I would just get the page template and if it is a match load the scripts needed but now I have the script in my functions.php file and can't get the $page->ID to check. I don't really know how to solve this. In my functions.php: require_once('js/my_script.php'); my_script.php: add_filter( 'admin_post_thumbnail_html', 'function_name'); function functions_name( $myhtml ) { //do stuff }; This hooks into an existing function. I can't check within the function because that would disable the complete function if the statement would be false. A: This question has been answered on Stack Overflow before: https://stackoverflow.com/a/14626254/844732 add_action( 'admin_head', 'check_page_template' ); function check_page_template() { global $post; if ( 'page-homepage.php' == get_post_meta( $post->ID, '_wp_page_template', true ) ) { // The current page has the foobar template assigned // do something } }
Q: Check if page parent has certain template I want to check if a page has a parent with a certain page template attached to it. If I know that I can determine which scripts to load or not. Normally I would just get the page template and if it is a match load the scripts needed but now I have the script in my functions.php file and can't get the $page->ID to check. I don't really know how to solve this. In my functions.php: require_once('js/my_script.php'); my_script.php: add_filter( 'admin_post_thumbnail_html', 'function_name'); function functions_name( $myhtml ) { //do stuff }; This hooks into an existing function. I can't check within the function because that would disable the complete function if the statement would be false. A: This question has been answered on Stack Overflow before: https://stackoverflow.com/a/14626254/844732 add_action( 'admin_head', 'check_page_template' ); function check_page_template() { global $post; if ( 'page-homepage.php' == get_post_meta( $post->ID, '_wp_page_template', true ) ) { // The current page has the foobar template assigned // do something } }
wordpress
{ "language": "en", "length": 168, "provenance": "stackexchange_00019.jsonl.gz:462883", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/216583" }
[ -0.00875091552734375, 0.03424072265625, -0.03790283203125, -0.023773193359375, 0.01071929931640625, -0.00909423828125, -0.04058837890625, -0.052947998046875, -0.004779815673828125, -0.0003643035888671875, -0.0305023193359375, 0.0227203369140625, -0.043853759765625, -0.0194091796875, 0.007175445556640625, -0.038665771484375, 0.043548583984375, -0.0251617431640625, 0.039093017578125, -0.01546478271484375, -0.01039886474609375, -0.00875091552734375, 0.06304931640625, 0.059539794921875, 0.0338134765625, -0.0863037109375, 0.057769775390625, 0.0012922286987304688, 0.022674560546875, -0.035400390625, 0.02569580078125, 0.024444580078125, 0.02020263671875, -0.00093841552734375, -0.0025157928466796875, -0.049041748046875, -0.008697509765625, 0.0127716064453125, 0.01116943359375, 0.01873779296875, 0.01377105712890625, 0.004917144775390625, -0.02496337890625, 0.01538848876953125, -0.0439453125, -0.031646728515625, 0.004123687744140625, -0.00994110107421875, 0.0216522216796875, 0.05926513671875, -0.0015192031860351562, -0.0307769775390625, -0.0157318115234375, 0.032257080078125, -0.0046844482421875, -0.021820068359375, -0.0238189697265625, -0.01416015625, 0.012603759765625, 0.0318603515625, 0.00420379638671875, 0.003528594970703125, -0.0028018951416015625, -0.0189208984375, -0.01409149169921875, -0.0180206298828125, -0.037750244140625, 0.0262908935546875, -0.031982421875, -0.017547607421875, 0.030914306640625, -0.025665283203125, -0.022735595703125, 0.006618499755859375, 0.006397247314453125, -0.0093231201171875, -0.00756072998046875, -0.0112762451171875, 0.0009589195251464844, 0.0499267578125, -0.0022182464599609375, 0.005374908447265625, -0.0445556640625, 0.00457763671875, 0.01253509521484375, 0.048126220703125, -0.0181732177734375, -0.023651123046875, -0.033111572265625, -0.00792694091796875, -0.03375244140625, -0.042724609375, 0.01922607421875, -0.011077880859375, -0.0213623046875, -0.02569580078125, 0.06243896484375, 0.12335205078125, -0.041961669921875, -0.01434326171875, -0.04669189453125, -0.0169525146484375, -0.033203125, -0.038421630859375, 0.00154876708984375, 0.0438232421875, 0.0037479400634765625, 0.0024700164794921875, 0.03497314453125, 0.007965087890625, 0.01360321044921875, 0.0084381103515625, -0.0306243896484375, -0.0004138946533203125, -0.043670654296875, 0.0254058837890625, -0.042938232421875, -0.04705810546875, -0.0098724365234375, -0.02410888671875, 0.01456451416015625, 0.03863525390625, 0.042266845703125, -0.0236053466796875, 0.01329803466796875, 0.03173828125, -0.02880859375, -0.07958984375, -0.0038013458251953125, -0.003208160400390625, -0.0267486572265625, -0.00809478759765625, 0.045562744140625, 0.0458984375, 0.01105499267578125, -0.01354217529296875, 0.0023174285888671875, -0.0106964111328125, -0.0030307769775390625, -0.027313232421875, 0.005161285400390625, -0.010406494140625, 0.0136260986328125, -0.0211029052734375, -0.0360107421875, 0.007617950439453125, 0.033233642578125, 0.0167236328125, -0.03155517578125, -0.03399658203125, 0.01528167724609375, -0.0235595703125, 0.0352783203125, 0.00156402587890625, 0.0073089599609375, -0.04180908203125, -0.0097198486328125, -0.023162841796875, 0.009796142578125, -0.0187835693359375, 0.00431060791015625, 0.0006761550903320312, 0.0236053466796875, -0.04058837890625, -0.046234130859375, -0.003681182861328125, -0.03765869140625, -0.0204620361328125, 0.0283050537109375, 0.0379638671875, 0.0360107421875, -0.0238494873046875, 0.007137298583984375, -0.00922393798828125, -0.0252685546875, -0.00904083251953125, -0.0080413818359375, 0.02032470703125, 0.02349853515625, 0.00817108154296875, -0.022674560546875, -0.03704833984375, 0.039703369140625, -0.0204315185546875, -0.037322998046875, 0.0238494873046875, 0.0167236328125, 0.02935791015625, -0.0075225830078125, 0.01580810546875, 0.053192138671875, 0.023895263671875, -0.043060302734375, 0.028350830078125, 0.0096282958984375, -0.0026645660400390625, 0.008056640625, 0.03253173828125, -0.00897979736328125, -0.05316162109375, 0.037017822265625, -0.01421356201171875, 0.0273895263671875, -0.01486968994140625, -0.03399658203125, 0.00263214111328125, -0.0235595703125, 0.0299530029296875, 0.0244903564453125, 0.0231170654296875, -0.00786590576171875, -0.01910400390625, -0.0198516845703125, 0.017333984375, -0.021728515625, -0.005340576171875, -0.004364013671875, 0.01690673828125, -0.00872039794921875, 0.0204010009765625, -0.021942138671875, -0.0021800994873046875, -0.03643798828125, 0.012969970703125, 0.042938232421875, 0.045166015625, -0.06341552734375, 0.007476806640625, -0.0235443115234375, 0.048828125, -0.1026611328125, 0.057220458984375, -0.0204620361328125, -0.024078369140625, -0.0312347412109375, 0.0041961669921875, -0.0025272369384765625, -0.045562744140625, 0.006500244140625, 0.044586181640625, 0.034881591796875, 0.032501220703125, -0.005645751953125, 0.01190948486328125, 0.0386962890625, -0.07318115234375, -0.02105712890625, 0.0223388671875, 0.00853729248046875, 0.036590576171875, -0.01314544677734375, 0.0036945343017578125, -0.002834320068359375, -0.0248260498046875, 0.0027103424072265625, 0.031829833984375, -0.0248565673828125, 0.03326416015625, -0.046478271484375, 0.037506103515625, -0.0234527587890625, 0.037506103515625, 0.051666259765625, -0.0079345703125, 0.047576904296875, 0.003826141357421875, 0.030731201171875, 0.01033782958984375, -0.03131103515625, 0.00888824462890625, 0.0234527587890625, -0.0086669921875, 0.002635955810546875, 0.0240631103515625, 0.034881591796875, 0.0311126708984375, -0.036651611328125, -0.0141143798828125, 0.00823974609375, 0.035980224609375, -0.01442718505859375, 0.036712646484375, -0.037506103515625, -0.00628662109375, -0.03466796875, -0.034637451171875, 0.0025482177734375, 0.032135009765625, 0.057952880859375, 0.018707275390625, 0.0322265625, 0.044647216796875, -0.0188751220703125, 0.08270263671875, 0.0038852691650390625, -0.01541900634765625, 0.05084228515625, -0.044952392578125, 0.05010986328125, -0.027496337890625, 0.037994384765625, 0.047119140625, -0.0299224853515625, 0.0248260498046875, -0.0245208740234375, 0.0106048583984375, -0.000957489013671875, -0.0308837890625, -0.021942138671875, -0.02496337890625, 0.0028705596923828125, 0.03216552734375, 0.0252685546875, 0.0634765625, -0.02056884765625, -0.038818359375, -0.009857177734375, 0.0184173583984375, -0.06683349609375, -0.08154296875, 0.015045166015625, -0.026519775390625, -0.027130126953125, -0.0232391357421875, -0.007686614990234375, -0.009368896484375, -0.028289794921875, -0.0101776123046875, -0.018218994140625, -0.061370849609375, -0.07147216796875, -0.08416748046875, -0.0654296875, 0.006458282470703125, -0.006786346435546875, -0.021942138671875, 0.0036754608154296875, 0.02960205078125, -0.0002872943878173828, -0.087890625, -0.025238037109375, 0.0208892822265625, -0.01068878173828125, 0.01099395751953125, -0.0305023193359375, 0.00704193115234375, -0.004764556884765625, 0.004100799560546875, -0.06744384765625, -0.01299285888671875, 0.033966064453125, -0.0257110595703125, -0.0275421142578125, -0.005733489990234375, 0.006542205810546875, -0.00669097900390625, 0.0218048095703125, -0.00888824462890625, 0.01544189453125, -0.04559326171875, -0.06036376953125, -0.037445068359375, -0.0791015625, 0.08392333984375, 0.068115234375, 0.0034313201904296875, 0.00923919677734375, 0.0023860931396484375, 0.0254058837890625, 0.003948211669921875, 0.00948333740234375, -0.0010356903076171875, 0.0273895263671875, 0.005619049072265625, 0.0230560302734375, -0.022003173828125, 0.0226593017578125, -0.0172882080078125, -0.0076446533203125, -0.002056121826171875, 0.0020542144775390625, -0.006763458251953125, -0.00020611286163330078, -0.0272369384765625, -0.0316162109375, 0.04254150390625, 0.009368896484375, 0.0249176025390625, -0.0269927978515625, -0.027923583984375, -0.003063201904296875, 0.0775146484375, 0.007293701171875, -0.02545166015625, -0.028961181640625, 0.01029205322265625, -0.0215911865234375, -0.041656494140625, 0.0172576904296875, 0.002414703369140625, -0.0390625, -0.000553131103515625, -0.017120361328125, -0.0199737548828125, -0.01398468017578125, 0.0163116455078125, -0.036224365234375, -0.0193939208984375, 0.02935791015625, -0.039337158203125, -0.011016845703125, 0.0618896484375, -0.034576416015625, 0.0455322265625, -0.031707763671875, -0.028961181640625, -0.0692138671875, -0.0110015869140625, -0.03253173828125, 0.051605224609375, 0.0198211669921875, -0.029937744140625, -0.03961181640625, 0.005764007568359375, 0.0253753662109375, 0.01006317138671875, 0.007465362548828125, -0.009674072265625, 0.0262603759765625, -0.019744873046875, -0.00022983551025390625, -0.02447509765625, -0.00418853759765625, -0.0022602081298828125, -0.030029296875, -0.01114654541015625, -0.0233612060546875, -0.0361328125, 0.031402587890625, -0.025909423828125, -0.05340576171875, -0.0234527587890625, 0.0239410400390625, 0.0090789794921875, 0.016357421875, -0.0230712890625, -0.023529052734375, -0.0467529296875, 0.01490020751953125, 0.024444580078125, -0.025909423828125, -0.00666046142578125, 0.05047607421875, 0.036865234375, -0.03936767578125, 0.00675201416015625, 0.0266876220703125, 0.0433349609375, 0.0245513916015625, 0.0401611328125, 0.029876708984375, -0.0269012451171875, 0.0210113525390625, 0.03814697265625, 0.0010843276977539062, 0.001903533935546875, 0.0390625, -0.0009140968322753906, -0.0224761962890625, 0.0113372802734375, -0.01169586181640625, 0.0007276535034179688, 0.035858154296875, -0.0279693603515625, -0.02728271484375, -0.0256805419921875, 0.0545654296875, -0.020782470703125, 0.05169677734375, -0.046295166015625, -0.0227203369140625, -0.0115814208984375, 0.0091552734375, 0.0273590087890625, 0.0335693359375, -0.00655364990234375, 0.0189208984375, 0.0292816162109375, 0.0087738037109375, 0.022613525390625, 0.05670166015625, -0.01027679443359375, 0.053466796875, -0.01090240478515625, 0.005268096923828125, -0.022430419921875, 0.000019848346710205078, 0.02545166015625, -0.0022068023681640625, -0.0291595458984375, -0.005580902099609375, -0.008544921875, -0.017425537109375, -0.000044286251068115234, 0.043212890625, 0.042572021484375, -0.0179901123046875, -0.03350830078125, -0.0288238525390625, -0.01354217529296875, -0.0231475830078125, -0.06048583984375, -0.033905029296875, 0.004566192626953125, -0.0306854248046875, -0.0115509033203125, 0.003940582275390625, 0.01953125, -0.033966064453125, -0.01039886474609375, 0.003963470458984375, -0.0228424072265625, 0.044921875, 0.027008056640625, -0.0304718017578125, 0.00797271728515625, 0.0015020370483398438, -0.003292083740234375, -0.024078369140625, -0.005176544189453125, 0.028961181640625, 0.042083740234375, -0.0168609619140625, -0.028045654296875, 0.01419830322265625, -0.0240936279296875, -0.00005161762237548828, 0.017974853515625, 0.003875732421875, -0.0087127685546875, -0.020599365234375, -0.0123291015625, 0.016387939453125, 0.0262451171875, -0.03021240234375, 0.02490234375, -0.0506591796875, 0.019927978515625, 0.0506591796875, -0.041168212890625, 0.0338134765625, 0.0208282470703125, -0.0313720703125, -0.01465606689453125, 0.0233612060546875, -0.047119140625, -0.0246124267578125, -0.02764892578125, -0.022674560546875, 0.0380859375, 0.021240234375, 0.0362548828125, -0.028167724609375, -0.04986572265625, 0.0039215087890625, -0.0100555419921875, 0.0543212890625, 0.005859375, -0.0143890380859375, -0.0127105712890625, -0.0841064453125, -0.037261962890625, -0.07781982421875, -0.06298828125, -0.034027099609375, 0.026123046875, -0.049652099609375, 0.020477294921875, -0.02691650390625, 0.045989990234375, -0.010833740234375, 0.028717041015625, -0.0223236083984375, 0.06689453125, -0.01261138916015625, 0.11383056640625, -0.04766845703125, 0.03997802734375, -0.0102996826171875, 0.04144287109375, -0.01425933837890625, -0.003055572509765625, -0.00797271728515625, -0.002712249755859375, 0.0193634033203125, -0.005741119384765625, 0.00002199411392211914, -0.026702880859375, 0.04913330078125, 0.006381988525390625, 0.0029239654541015625, -0.029266357421875, 0.0013093948364257812, -0.0157928466796875, 0.033599853515625, -0.022186279296875, -0.046356201171875, 0.038421630859375, -0.017730712890625, -0.02777099609375, 0.03350830078125, -0.01557159423828125, 0.0183258056640625, 0.0204620361328125, 0.00042128562927246094, -0.02044677734375, -0.063232421875, 0.08685302734375, 0.060150146484375, -0.017425537109375, 0.020477294921875, -0.0029354095458984375, -0.01108551025390625, -0.00391387939453125, 0.053192138671875, -0.005863189697265625, -0.03778076171875, 0.04168701171875, 0.01399993896484375, -0.00360870361328125, 0.01544189453125, -0.0112457275390625, 0.0001017451286315918, -0.006679534912109375, 0.0260467529296875, -0.004924774169921875, 0.0029315948486328125, 0.006916046142578125, -0.034027099609375, -0.0294189453125, -0.032745361328125, 0.0193328857421875, -0.0190887451171875, 0.07025146484375, -0.0017538070678710938, -0.01001739501953125, 0.0279083251953125, -0.029266357421875, -0.032806396484375, -0.03961181640625, 0.0484619140625, 0.0167388916015625, 0.027862548828125, 0.0123138427734375, -0.00778961181640625, 0.00984954833984375, -0.0225982666015625, 0.03338623046875, -0.03948974609375, 0.0240020751953125, -0.00726318359375, 0.017669677734375, -0.042938232421875, 0.020172119140625, -0.0237884521484375, 0.056854248046875, 0.0175628662109375, 0.04595947265625, -0.0016202926635742188, -0.01904296875, 0.037567138671875, -0.01470947265625, -0.03173828125, -0.0254058837890625, 0.0189666748046875, 0.0059814453125, -0.03704833984375, 0.01078033447265625, -0.033660888671875, -0.019775390625, 0.017242431640625, 0.0182037353515625, 0.026214599609375, -0.033111572265625, -0.017791748046875, 0.01654052734375, 0.03570556640625, 0.005725860595703125, 0.01297760009765625, 0.0014667510986328125, -0.03277587890625, -0.0301513671875, 0.0056304931640625, -0.061309814453125, -0.038116455078125, -0.0177459716796875, -0.0677490234375, 0.1070556640625, 0.022613525390625, 0.050079345703125, 0.0178680419921875, 0.031951904296875, -0.03515625, 0.00466156005859375, -0.026031494140625, 0.0291748046875, 0.060028076171875, 0.046630859375, -0.006855010986328125, -0.02313232421875, 0.022979736328125, 0.056549072265625, 0.0217437744140625, -0.0007166862487792969, -0.0010786056518554688, -0.0166168212890625, 0.017242431640625, 0.01296234130859375, -0.00518798828125, 0.02044677734375, -0.0091705322265625, 0.018951416015625, -0.006534576416015625, -0.05670166015625, 0.00443267822265625, -0.0284576416015625, -0.0266876220703125, 0.00849151611328125, 0.014739990234375, 0.0190887451171875, -0.0170440673828125, 0.0027313232421875, -0.0204315185546875, -0.01111602783203125, 0.0311279296875, -0.04345703125, 0.00984954833984375, 0.014129638671875, 0.0162200927734375, -0.0430908203125, -0.0479736328125, -0.0152130126953125, 0.0249176025390625, -0.002956390380859375, -0.0014505386352539062, -0.025177001953125, 0.0160980224609375, -0.036773681640625, -0.005573272705078125, 0.0015163421630859375, 0.0261993408203125, -0.044342041015625, 0.050994873046875, 0.00928497314453125, 0.01132965087890625, -0.0255584716796875, 0.02191162109375, 0.022430419921875, 0.047882080078125, -0.036285400390625, -0.0115509033203125, 0.03070068359375, 0.0094757080078125, -0.03582763671875, -0.0027980804443359375, -0.0200958251953125, 0.0282745361328125, 0.05413818359375, -0.0119171142578125, -0.01849365234375, 0.017120361328125, 0.00881195068359375, -0.00687408447265625, -0.00611114501953125, 0.00283050537109375, -0.006664276123046875, -0.03668212890625, -0.0008487701416015625, 0.02105712890625, 0.058441162109375, 0.0268096923828125, 0.037322998046875, -0.04046630859375, -0.0261383056640625, -0.0039520263671875, -0.0063018798828125, -0.0239105224609375, 0.016448974609375, -0.0181121826171875, 0.0006361007690429688, 0.012054443359375, 0.03125, -0.0007205009460449219, 0.0251922607421875, 0.03125, 0.004436492919921875, -0.0241546630859375, -0.0169525146484375, 0.0235748291015625, -0.030059814453125, 0.039947509765625, -0.026519775390625, 0.0019779205322265625, -0.034820556640625, -0.0223388671875, -0.025299072265625, 0.020233154296875, 0.0055999755859375, -0.0178375244140625, 0.04742431640625, 0.005908966064453125, -0.0014972686767578125, 0.0282745361328125, 0.049224853515625, 0.06646728515625, 0.053558349609375, -0.07098388671875, 0.0024738311767578125, -0.008209228515625, -0.06597900390625, 0.02490234375, 0.053070068359375, -0.033721923828125, 0.01360321044921875, 0.045135498046875, -0.0013914108276367188, -0.005435943603515625, 0.00937652587890625, 0.0200653076171875, -0.0161590576171875, 0.01363372802734375, 0.0229034423828125, -0.00044989585876464844, 0.005794525146484375, 0.00537872314453125, 0.0191497802734375, 0.0311126708984375, 0.040924072265625, -0.02508544921875, 0.0159454345703125, 0.025604248046875, 0.04119873046875, -0.02716064453125, -0.028076171875, 0.10064697265625, 0.0011739730834960938, 0.0107574462890625, -0.02362060546875, -0.07073974609375, 0.076171875, 0.022979736328125, 0.0516357421875, 0.051727294921875, 0.014434814453125, -0.003269195556640625, 0.00501251220703125, 0.01403045654296875, -0.005588531494140625, -0.01255035400390625, -0.00617218017578125, -0.0016489028930664062, 0.037261962890625, 0.051788330078125, -0.01172637939453125, 0.06512451171875, -0.0007414817810058594, -0.02484130859375, 0.01165771484375, -0.0516357421875, 0.01113128662109375, 0.0228118896484375, -0.01259613037109375, -0.03985595703125, 0.0188751220703125, 0.00757598876953125, 0.014495849609375, -0.0011644363403320312, 0.037384033203125, 0.02862548828125, -0.0274810791015625, 0.01444244384765625, 0.006500244140625, 0.0094451904296875, -0.0433349609375, -0.008636474609375, 0.031585693359375, -0.006946563720703125, 0.005382537841796875, -0.046295166015625, -0.01139068603515625, -0.01654052734375, -0.0019683837890625, 0.017120361328125, 0.0177154541015625, -0.022003173828125, 0.0006070137023925781, 0.00807952880859375, 0.0230560302734375, 0.00460052490234375, -0.038604736328125, 0.03363037109375, -0.045806884765625, 0.0253448486328125, -0.002712249755859375, 0.0265655517578125, -0.007587432861328125, 0.0055694580078125, -0.035980224609375, 0.0330810546875, -0.01511383056640625, -0.0248260498046875, 0.0303802490234375, 0.030517578125, 0.034088134765625, -0.0187835693359375, -0.037628173828125, 0.028045654296875, 0.0174407958984375, 0.0809326171875, 0.0108642578125, -0.03692626953125, 0.006389617919921875, -0.0162353515625, 0.0191802978515625, 0.0243988037109375, 0.002666473388671875, -0.01479339599609375, -0.004486083984375, -0.0243072509765625, 0.032867431640625, 0.04840087890625, -0.0310516357421875, -0.0732421875, 0.017486572265625, -0.0082855224609375, -0.03533935546875, 0.002857208251953125, 0.031890869140625, 0.0011692047119140625, -0.0170440673828125, -0.0026378631591796875, -0.02362060546875, 0.0117340087890625, 0.0021610260009765625, 0.036895751953125, -0.025909423828125, 0.040008544921875, 0.00305938720703125, -0.09063720703125, 0.003940582275390625, -0.01302337646484375, 0.005870819091796875, -0.00940704345703125, 0.0033893585205078125, 0.0035686492919921875, 0.03814697265625, -0.036376953125, -0.037078857421875, -0.0110931396484375, 0.012451171875, -0.0110321044921875, 0.01824951171875, -0.00632476806640625, 0.024749755859375, 0.06549072265625, 0.05517578125, 0.00894927978515625, -0.04150390625, -0.006267547607421875, -0.06292724609375, -0.06610107421875, -0.00485992431640625, 0.0396728515625, -0.0726318359375, 0.0301055908203125, 0.030364990234375, -0.01413726806640625, -0.035400390625, 0.00853729248046875, -0.059295654296875, 0.00010126829147338867, 0.0001989603042602539, 0.00200653076171875, -0.024200439453125, -0.01491546630859375, 0.0684814453125, -0.037384033203125, 0.0038623809814453125, -0.001735687255859375, 0.0203857421875, 0.029815673828125, -0.00029468536376953125, 0.0296478271484375, 0.059661865234375, -0.07769775390625, -0.01457977294921875, 0.018157958984375, 0.00502777099609375, -0.0284423828125, -0.0156707763671875, 0.004009246826171875, 0.005645751953125, -0.006298065185546875, -0.0249786376953125, -0.041412353515625, 0.066162109375, -0.0255584716796875, 0.0992431640625, 0.00774383544921875, 0.05255126953125, 0.0013532638549804688, 0.054656982421875, 0.027252197265625, -0.0338134765625, 0.032318115234375, -0.033843994140625, -0.0162353515625, -0.016326904296875, -0.031341552734375, -0.089599609375, 0.061431884765625, -0.00920867919921875, 0.007904052734375, 0.033660888671875 ]
d5b40483c4ebe5ae475eb3f8acc9768d2c771fc6
Wordpress Stackexchange Q: new WP_Query() - what is the earliest valid hook? Specifically, is it valid to run a new WP_Query() during the plugins_loaded action? A: As @Milo pointed out in the comments above, custom post types and taxonomies are registered on init, so this would seem to be the earliest hook available that is guaranteed to work for all content.
Q: new WP_Query() - what is the earliest valid hook? Specifically, is it valid to run a new WP_Query() during the plugins_loaded action? A: As @Milo pointed out in the comments above, custom post types and taxonomies are registered on init, so this would seem to be the earliest hook available that is guaranteed to work for all content. A: You should not use any hook before wp_loaded unless it performs some initialization, or required for user authentication, therefor the earliest is wp_loaded A: This is template_redirect Here : https://www.rarst.net/images/wordpress_core_load.png add_action('template_redirect', 'yourFunction');
wordpress
{ "language": "en", "length": 92, "provenance": "stackexchange_00019.jsonl.gz:462887", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/216598" }
[ 0.035980224609375, -0.01678466796875, -0.0020160675048828125, -0.0303802490234375, -0.004192352294921875, -0.01141357421875, 0.007091522216796875, -0.01349639892578125, -0.019439697265625, 0.024993896484375, -0.0133819580078125, -0.00025081634521484375, -0.00445556640625, -0.0325927734375, 0.0046539306640625, -0.03369140625, 0.0271453857421875, -0.0411376953125, -0.0010242462158203125, -0.0305633544921875, 0.035797119140625, -0.007343292236328125, 0.02099609375, 0.05889892578125, 0.041046142578125, -0.04998779296875, 0.031280517578125, 0.0008015632629394531, 0.038726806640625, 0.01024627685546875, 0.0274505615234375, -0.03790283203125, -0.006183624267578125, 0.0309906005859375, 0.004730224609375, 0.0171661376953125, 0.044342041015625, 0.014251708984375, 0.034515380859375, 0.043060302734375, 0.030364990234375, -0.022735595703125, 0.002124786376953125, 0.0151824951171875, -0.00800323486328125, -0.030029296875, 0.044708251953125, -0.0240325927734375, 0.006683349609375, -0.049652099609375, 0.0159759521484375, -0.0132598876953125, 0.0396728515625, -0.03363037109375, -0.0276947021484375, 0.01537322998046875, -0.01209259033203125, -0.026763916015625, 0.011627197265625, 0.02392578125, 0.0001327991485595703, -0.010528564453125, 0.004436492919921875, -0.0211334228515625, 0.0281524658203125, 0.016326904296875, 0.037445068359375, 0.03192138671875, 0.004566192626953125, 0.0206146240234375, -0.0071258544921875, -0.0186614990234375, -0.02911376953125, 0.023834228515625, -0.01523590087890625, -0.0186614990234375, 0.021942138671875, -0.034820556640625, 0.0057830810546875, 0.06298828125, 0.00893402099609375, -0.0269317626953125, -0.0278472900390625, 0.025787353515625, -0.0222015380859375, 0.003467559814453125, 0.00485992431640625, -0.00031065940856933594, -0.0251312255859375, -0.024505615234375, -0.0235443115234375, 0.00801849365234375, -0.04913330078125, -0.02679443359375, -0.01715087890625, -0.034088134765625, 0.02557373046875, 0.0484619140625, -0.0052032470703125, 0.01334381103515625, -0.019500732421875, -0.03472900390625, 0.032196044921875, -0.02008056640625, 0.03582763671875, 0.0254058837890625, 0.00836181640625, -0.057464599609375, 0.0276641845703125, -0.006320953369140625, -0.024932861328125, 0.058135986328125, -0.0015649795532226562, 0.0160675048828125, -0.04791259765625, 0.0031223297119140625, -0.0102996826171875, 0.005764007568359375, -0.00746917724609375, 0.0243682861328125, 0.01137542724609375, 0.022613525390625, 0.04010009765625, -0.0191650390625, 0.00038242340087890625, -0.0005083084106445312, -0.030517578125, -0.043792724609375, -0.032623291015625, 0.033477783203125, 0.00716400146484375, -0.00521087646484375, -0.0267791748046875, 0.008880615234375, -0.0467529296875, -0.005252838134765625, -0.0009446144104003906, 0.01385498046875, 0.0024433135986328125, -0.024871826171875, 0.02801513671875, -0.03826904296875, -0.034393310546875, 0.032073974609375, 0.029815673828125, -0.006435394287109375, 0.00949859619140625, 0.037689208984375, 0.0160675048828125, -0.0015153884887695312, 0.030853271484375, -0.0021533966064453125, 0.051239013671875, -0.033050537109375, -0.0235595703125, -0.034149169921875, 0.01158905029296875, -0.03350830078125, -0.03802490234375, -0.034881591796875, 0.0028514862060546875, -0.00396728515625, -0.01959228515625, -0.039031982421875, -0.05615234375, -0.0193023681640625, -0.00982666015625, 0.0084228515625, 0.0160064697265625, 0.0134735107421875, 0.0214385986328125, 0.00754547119140625, 0.0460205078125, -0.003337860107421875, -0.026611328125, -0.0157470703125, -0.019439697265625, 0.0053558349609375, 0.043426513671875, 0.01535797119140625, -0.019866943359375, -0.0290985107421875, 0.057952880859375, -0.015228271484375, -0.046112060546875, 0.02032470703125, 0.031097412109375, 0.06591796875, -0.003810882568359375, 0.025390625, 0.049713134765625, 0.0221710205078125, -0.0703125, 0.0198211669921875, -0.007232666015625, 0.0152587890625, 0.002887725830078125, 0.006313323974609375, 0.0031566619873046875, -0.017425537109375, 0.0056610107421875, 0.006893157958984375, -0.038726806640625, -0.0029544830322265625, -0.09619140625, 0.0032215118408203125, -0.029388427734375, 0.038665771484375, 0.040283203125, -0.00554656982421875, -0.01029205322265625, -0.0019893646240234375, -0.0026760101318359375, -0.0255126953125, -0.0574951171875, 0.0159912109375, -0.051849365234375, 0.03631591796875, -0.006038665771484375, 0.0158843994140625, 0.0175628662109375, -0.05987548828125, 0.015716552734375, -0.0112152099609375, 0.03240966796875, 0.0019702911376953125, 0.00637054443359375, -0.007534027099609375, 0.0390625, 0.02557373046875, -0.0129547119140625, -0.01407623291015625, 0.016082763671875, 0.04290771484375, -0.02349853515625, -0.019073486328125, -0.003204345703125, -0.03875732421875, 0.0159149169921875, 0.0310516357421875, 0.027435302734375, 0.0269775390625, -0.04022216796875, -0.0167236328125, 0.046600341796875, -0.048492431640625, -0.00046181678771972656, 0.004032135009765625, 0.0079803466796875, 0.037506103515625, 0.01491546630859375, 0.033599853515625, 0.01462554931640625, 0.07025146484375, 0.028594970703125, 0.00470733642578125, 0.0161590576171875, -0.041748046875, -0.01617431640625, 0.02825927734375, 0.0193328857421875, -0.043853759765625, -0.07147216796875, 0.016754150390625, 0.07562255859375, -0.017730712890625, 0.059661865234375, 0.0266265869140625, -0.01387786865234375, -0.00433349609375, 0.0029754638671875, -0.0167083740234375, -0.01171875, 0.0152435302734375, 0.040863037109375, 0.019134521484375, -0.042236328125, -0.005916595458984375, 0.00921630859375, 0.01360321044921875, -0.01363372802734375, -0.00562286376953125, -0.0020160675048828125, 0.0013589859008789062, -0.033233642578125, -0.041046142578125, 0.046417236328125, 0.041748046875, 0.0239715576171875, 0.0004086494445800781, 0.04241943359375, -0.0072479248046875, -0.0626220703125, 0.064208984375, -0.03045654296875, -0.051605224609375, -0.07720947265625, -0.05218505859375, 0.03546142578125, -0.03582763671875, 0.00335693359375, 0.07928466796875, 0.0293426513671875, -0.020355224609375, 0.0166168212890625, -0.032745361328125, 0.02423095703125, 0.038360595703125, 0.01415252685546875, -0.0311126708984375, 0.0052490234375, 0.0316162109375, 0.03125, 0.0938720703125, -0.01934814453125, -0.048095703125, -0.00653076171875, 0.05120849609375, -0.05804443359375, -0.07977294921875, -0.035980224609375, -0.004638671875, 0.01456451416015625, -0.035888671875, 0.020050048828125, 0.006893157958984375, -0.048919677734375, 0.009735107421875, -0.01421356201171875, -0.03668212890625, -0.046783447265625, -0.05950927734375, -0.04510498046875, 0.04327392578125, 0.01175689697265625, 0.00994873046875, 0.01421356201171875, 0.05731201171875, 0.016571044921875, -0.054412841796875, 0.01320648193359375, -0.0198974609375, -0.0294952392578125, 0.01300811767578125, 0.0031337738037109375, 0.01064300537109375, 0.0240325927734375, -0.0008153915405273438, 0.01451873779296875, 0.039703369140625, -0.038604736328125, -0.0352783203125, -0.004230499267578125, -0.0219573974609375, 0.017242431640625, 0.0250396728515625, -0.0124969482421875, -0.0208587646484375, 0.050384521484375, -0.05126953125, 0.00127410888671875, 0.00939178466796875, -0.0076751708984375, 0.0208892822265625, -0.013336181640625, -0.0189208984375, 0.021759033203125, 0.01081085205078125, -0.0307769775390625, -0.0305938720703125, 0.03759765625, -0.044769287109375, 0.032318115234375, -0.02203369140625, -0.017486572265625, -0.024017333984375, 0.03369140625, -0.0034427642822265625, -0.01451873779296875, 0.0069122314453125, 0.005725860595703125, -0.00514984130859375, 0.015289306640625, -0.0285186767578125, -0.0189056396484375, 0.03411865234375, -0.00769805908203125, 0.0163421630859375, -0.01297760009765625, -0.0181427001953125, -0.02056884765625, 0.051727294921875, -0.03472900390625, -0.0212249755859375, 0.01259613037109375, 0.0179443359375, -0.031494140625, -0.0117034912109375, -0.027496337890625, -0.0126800537109375, -0.070068359375, 0.01378631591796875, 0.009033203125, -0.0256195068359375, -0.02630615234375, 0.00406646728515625, -0.058319091796875, -0.032806396484375, 0.042877197265625, -0.0380859375, -0.0012874603271484375, 0.0175018310546875, -0.0164642333984375, -0.01116180419921875, -0.0401611328125, -0.01302337646484375, -0.1141357421875, -0.01934814453125, -0.05035400390625, 0.094970703125, 0.03790283203125, -0.03436279296875, -0.0257415771484375, 0.0426025390625, -0.005138397216796875, 0.038177490234375, 0.01251220703125, 0.00527191162109375, -0.0036449432373046875, 0.0019512176513671875, 0.015655517578125, -0.0231170654296875, -0.0248565673828125, -0.042694091796875, 0.0010957717895507812, -0.01206207275390625, -0.039947509765625, -0.0195159912109375, -0.059783935546875, 0.009429931640625, -0.01898193359375, -0.0183868408203125, -0.056396484375, 0.00567626953125, -0.01708984375, -0.00626373291015625, -0.03338623046875, -0.034271240234375, 0.029937744140625, -0.0132293701171875, 0.0164794921875, -0.00881195068359375, 0.09173583984375, 0.0191650390625, 0.0015468597412109375, -0.0005578994750976562, -0.03472900390625, 0.0131072998046875, 0.007671356201171875, 0.0162353515625, -0.005199432373046875, -0.016754150390625, 0.055267333984375, -0.01190948486328125, -0.002471923828125, -0.016387939453125, 0.04443359375, 0.01238250732421875, 0.0252685546875, -0.02056884765625, 0.00521087646484375, 0.02203369140625, 0.04730224609375, -0.0308837890625, -0.01082611083984375, -0.0095672607421875, 0.01366424560546875, -0.07470703125, 0.071533203125, -0.0096282958984375, -0.005687713623046875, 0.01355743408203125, 0.0518798828125, 0.01325225830078125, 0.0081634521484375, 0.0088348388671875, -0.037109375, -0.035064697265625, 0.0044708251953125, 0.032501220703125, 0.019256591796875, -0.01084136962890625, 0.033111572265625, 0.031524658203125, -0.01178741455078125, 0.0045013427734375, 0.00024318695068359375, 0.031341552734375, -0.046051025390625, -0.078857421875, -0.0439453125, -0.01299285888671875, 0.04052734375, 0.057373046875, 0.0168914794921875, 0.05615234375, 0.0266571044921875, -0.01264190673828125, -0.0182647705078125, 0.017669677734375, -0.007732391357421875, -0.05322265625, -0.0162200927734375, 0.003627777099609375, -0.0184783935546875, 0.0291595458984375, 0.007579803466796875, 0.0018157958984375, 0.007175445556640625, -0.01230621337890625, 0.03411865234375, 0.0290679931640625, 0.0199432373046875, 0.0299072265625, -0.0081939697265625, 0.00482177734375, 0.005527496337890625, -0.001972198486328125, -0.049285888671875, -0.00855255126953125, 0.006710052490234375, 0.005146026611328125, -0.048004150390625, -0.035858154296875, 0.071044921875, 0.035797119140625, -0.0081634521484375, 0.0271148681640625, 0.038665771484375, -0.02532958984375, 0.00905609130859375, 0.01470947265625, 0.006511688232421875, -0.0093994140625, -0.00029468536376953125, 0.047027587890625, -0.020416259765625, 0.053955078125, -0.06439208984375, 0.03411865234375, -0.01279449462890625, -0.016998291015625, 0.0238037109375, -0.00699615478515625, -0.0298309326171875, 0.033599853515625, 0.01027679443359375, -0.01146697998046875, -0.004711151123046875, 0.03619384765625, -0.033599853515625, 0.036407470703125, -0.047882080078125, 0.01549530029296875, -0.0711669921875, 0.00994110107421875, 0.04827880859375, 0.048065185546875, -0.0132598876953125, 0.006435394287109375, -0.036468505859375, -0.01360321044921875, 0.0150909423828125, -0.04541015625, -0.0149993896484375, -0.037506103515625, 0.01438140869140625, 0.023223876953125, -0.01554107666015625, -0.057525634765625, -0.01378631591796875, -0.0167083740234375, 0.0310516357421875, 0.0167999267578125, -0.047332763671875, 0.048004150390625, 0.034027099609375, 0.0178985595703125, -0.0031490325927734375, 0.008514404296875, -0.0008139610290527344, 0.0172119140625, -0.041351318359375, -0.052947998046875, 0.0104827880859375, 0.0252532958984375, 0.0187225341796875, 0.06298828125, 0.03839111328125, 0.017913818359375, 0.06048583984375, -0.004550933837890625, 0.007572174072265625, -0.005619049072265625, -0.0174713134765625, -0.025543212890625, 0.0008730888366699219, 0.0806884765625, -0.0197601318359375, 0.0087738037109375, 0.026885986328125, 0.021636962890625, -0.005153656005859375, -0.0233917236328125, -0.01922607421875, 0.01143646240234375, -0.00496673583984375, -0.0101165771484375, -0.030853271484375, -0.013671875, 0.0220794677734375, -0.037506103515625, 0.01678466796875, 0.037200927734375, 0.01146697998046875, -0.0199737548828125, -0.048004150390625, 0.030303955078125, 0.009368896484375, -0.0111083984375, 0.023895263671875, -0.0176849365234375, -0.019134521484375, 0.0191650390625, 0.0293731689453125, -0.059051513671875, -0.00074005126953125, 0.01464080810546875, 0.01739501953125, -0.01552581787109375, -0.006099700927734375, -0.0178680419921875, -0.020843505859375, 0.025299072265625, 0.00940704345703125, -0.02178955078125, 0.0224761962890625, 0.0298004150390625, -0.0189666748046875, -0.0022258758544921875, 0.00453948974609375, 0.010955810546875, -0.0206756591796875, 0.0440673828125, 0.0155029296875, 0.04296875, 0.00620269775390625, 0.048370361328125, -0.01444244384765625, 0.0012903213500976562, 0.0175933837890625, 0.0513916015625, -0.009246826171875, -0.0230255126953125, 0.00527191162109375, -0.0005631446838378906, 0.032745361328125, 0.03314208984375, -0.0013532638549804688, 0.00286102294921875, -0.00955963134765625, 0.005401611328125, -0.08941650390625, -0.05389404296875, -0.006038665771484375, 0.07855224609375, -0.0229034423828125, 0.057373046875, 0.015533447265625, -0.03973388671875, -0.0032253265380859375, -0.06396484375, 0.036224365234375, -0.044219970703125, 0.0062255859375, -0.0026874542236328125, -0.00775146484375, 0.0268402099609375, 0.0128326416015625, -0.0266876220703125, -0.0269012451171875, 0.01202392578125, -0.01253509521484375, -0.0174713134765625, 0.0007843971252441406, 0.008514404296875, -0.0494384765625, 0.0888671875, -0.0258941650390625, 0.01087188720703125, 0.024444580078125, 0.025665283203125, -0.02581787109375, 0.00824737548828125, -0.0235748291015625, 0.049652099609375, 0.0242156982421875, 0.03363037109375, -0.029571533203125, -0.01548004150390625, 0.01015472412109375, 0.023651123046875, 0.006740570068359375, -0.01081085205078125, -0.003131866455078125, -0.0035495758056640625, 0.0418701171875, 0.01064300537109375, -0.0086212158203125, 0.007030487060546875, 0.031646728515625, 0.006793975830078125, 0.055816650390625, 0.03424072265625, 0.0859375, -0.0655517578125, 0.00011116266250610352, 0.0283966064453125, 0.01146697998046875, 0.01702880859375, 0.0004029273986816406, -0.02557373046875, -0.0258331298828125, 0.0146484375, 0.0211944580078125, 0.01480865478515625, -0.01004791259765625, 0.004444122314453125, 0.0081939697265625, -0.030853271484375, -0.0309295654296875, -0.02752685546875, 0.021820068359375, 0.003498077392578125, 0.0206146240234375, -0.011505126953125, 0.01506805419921875, 0.06304931640625, -0.05389404296875, 0.004390716552734375, 0.033355712890625, -0.05810546875, 0.0546875, -0.0033416748046875, 0.0217437744140625, -0.0589599609375, -0.01654052734375, 0.0182952880859375, 0.07464599609375, -0.037384033203125, -0.06317138671875, 0.004703521728515625, 0.0253448486328125, -0.000019550323486328125, 0.060333251953125, 0.03253173828125, 0.052978515625, 0.09832763671875, -0.046173095703125, -0.0230865478515625, 0.0202484130859375, 0.0252532958984375, -0.01401519775390625, 0.005847930908203125, -0.006275177001953125, -0.04241943359375, 0.0066070556640625, -0.026092529296875, 0.0158843994140625, 0.04351806640625, -0.0027980804443359375, 0.02105712890625, -0.04608154296875, -0.00539398193359375, -0.0300750732421875, 0.0154876708984375, -0.02032470703125, 0.04193115234375, -0.0423583984375, -0.005435943603515625, -0.00881195068359375, 0.041168212890625, 0.058807373046875, 0.041259765625, 0.035675048828125, 0.028350830078125, 0.0259857177734375, 0.0273284912109375, 0.0306243896484375, -0.00731658935546875, 0.00504302978515625, -0.0284881591796875, 0.03216552734375, -0.00228118896484375, -0.002086639404296875, -0.02606201171875, 0.055908203125, -0.00792694091796875, -0.012939453125, 0.0330810546875, 0.0008821487426757812, -0.033905029296875, 0.040130615234375, -0.01280975341796875, 0.09124755859375, 0.01300811767578125, -0.055389404296875, -0.030364990234375, -0.0251617431640625, -0.006702423095703125, 0.03900146484375, 0.0423583984375, 0.004543304443359375, 0.0055999755859375, 0.07525634765625, -0.0137481689453125, -0.0170135498046875, 0.01320648193359375, 0.0223541259765625, -0.03900146484375, 0.01154327392578125, 0.007015228271484375, -0.034515380859375, -0.00009262561798095703, 0.0012273788452148438, -0.01404571533203125, -0.029693603515625, 0.07421875, 0.0013723373413085938, -0.01123046875, 0.020904541015625, 0.0128936767578125, -0.0166778564453125, 0.006725311279296875, 0.0234527587890625, -0.05078125, -0.0149688720703125, 0.00861358642578125, -0.006809234619140625, 0.01374053955078125, 0.0305023193359375, -0.0138702392578125, 0.0172271728515625, -0.03778076171875, 0.0214691162109375, -0.014129638671875, 0.0299530029296875, -0.0218048095703125, 0.0100860595703125, -0.006771087646484375, -0.020355224609375, 0.045379638671875, -0.0036163330078125, -0.00970458984375, -0.00609588623046875, -0.031280517578125, -0.037750244140625, -0.004314422607421875, -0.00771331787109375, -0.022247314453125, 0.026397705078125, 0.0100860595703125, 0.01345062255859375, 0.01062774658203125, -0.0245208740234375, 0.0177154541015625, 0.0226898193359375, -0.0059661865234375, 0.01194000244140625, -0.00836181640625, 0.02655029296875, 0.0180206298828125, 0.05419921875, -0.03887939453125, 0.0247344970703125, 0.006717681884765625, 0.010528564453125, 0.050537109375, -0.05035400390625, -0.03167724609375, -0.0224151611328125, -0.01568603515625, 0.007171630859375, -0.0214996337890625, -0.056884765625, -0.025421142578125, -0.00574493408203125, 0.0261383056640625, 0.0024204254150390625, -0.05706787109375, 0.0108642578125, -0.0177154541015625, 0.050628662109375, -0.0146942138671875, 0.00402069091796875, 0.0161590576171875, 0.033966064453125, -0.00525665283203125, -0.0059814453125, 0.003936767578125, 0.0201873779296875, 0.018890380859375, 0.0203857421875, 0.033416748046875, -0.0216827392578125, -0.07025146484375, 0.054443359375, 0.006084442138671875, 0.09478759765625, 0.0177001953125, -0.007701873779296875, 0.05169677734375, -0.01024627685546875, -0.042877197265625, -0.0711669921875, -0.0011396408081054688, -0.0577392578125, -0.0029754638671875, -0.0318603515625, -0.00328826904296875, 0.0018701553344726562, -0.05242919921875, -0.11529541015625, 0.0860595703125, -0.045562744140625, -0.0280609130859375, -0.0601806640625, 0.043853759765625, 0.0372314453125, -0.046234130859375, -0.024505615234375, -0.0000693202018737793, -0.033050537109375, -0.0079193115234375, -0.01070404052734375, 0.0024509429931640625, 0.036468505859375, -0.051513671875, -0.03204345703125, -0.0027027130126953125, 0.01220703125, 0.0203094482421875, 0.0138092041015625, -0.003814697265625, 0.040985107421875, 0.037139892578125, -0.033599853515625, 0.05364990234375, -0.004253387451171875, 0.007373809814453125, -0.0198211669921875, 0.0008015632629394531, -0.007503509521484375, 0.0283660888671875, 0.08099365234375, 0.0272369384765625, 0.0182647705078125, -0.04705810546875, -0.0206146240234375, -0.0238494873046875, -0.0225372314453125, -0.032623291015625, 0.029815673828125, -0.084228515625, -0.01348114013671875, 0.0016498565673828125, -0.0011434555053710938, 0.00041866302490234375, -0.0131378173828125, -0.0130767822265625, -0.0215301513671875, -0.0184478759765625, -0.0239410400390625, -0.00910186767578125, 0.005474090576171875, 0.033660888671875, -0.01824951171875, -0.0274200439453125, 0.018096923828125, -0.0014238357543945312, -0.01432037353515625, 0.01277923583984375, 0.07830810546875, 0.039093017578125, -0.0384521484375, -0.01120758056640625, 0.052886962890625, -0.03179931640625, 0.00457763671875, -0.06494140625, 0.0010766983032226562, 0.0263519287109375, -0.01336669921875, 0.03912353515625, 0.0174102783203125, 0.0013523101806640625, -0.005733489990234375, 0.0209503173828125, 0.004238128662109375, 0.0206298828125, -0.019866943359375, 0.041656494140625, 0.010345458984375, -0.0251312255859375, 0.0305023193359375, -0.0108642578125, 0.001468658447265625, 0.0289306640625, -0.03857421875, -0.03021240234375, 0.022308349609375, 0.0138702392578125, -0.025848388671875, 0.01033782958984375 ]
16a49a1b9d68509d8b6c5dd253c3c34d49d4ffbc
Wordpress Stackexchange Q: When attempting to update a self-hosted WordPress site, I'm seeing "ASN1 unknown message digest algorithm" I've got several WordPress sites that I self-host on a Windows Server. When attempting to perform the upgrade process, via /wp-admin/update-core.php?action=do-core-upgrade I see the following error: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm It's entirely unclear to me where to begin resolving this issue. Interestingly, the "WordPress News" applet shows a similar error: RSS Error: WP HTTP Error: Failure when receiving data from the peer RSS Error: WP HTTP Error: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm A: @Kika is right that you have an older, insecure, version of OpenSSL. This sounds like: https://wordpress.org/support/topic/getting-download-failed-error0d0890a1asn1-encoding-routinesfunc137reason I wrote a small bit of code to skip the SSL test when trying to access the download server. It is not a good idea to use this code but will get you out of a pinch. <?php /* Plugin Name: Skip SSL Verify Plugin URI: http://www.damiencarbery.com Description: Skip SSL verify in curl downloads - fixes: Download failed. error:0D0890A1:asn1 encoding routines:func(137):reason(161). Author: Damien Carbery Version: 0.1 */ function ssv_skip_ssl_verify($ssl_verify) { return false; } add_filter('https_ssl_verify', 'ssv_skip_ssl_verify'); add_filter('https_local_ssl_verify', 'ssv_skip_ssl_verify');
Q: When attempting to update a self-hosted WordPress site, I'm seeing "ASN1 unknown message digest algorithm" I've got several WordPress sites that I self-host on a Windows Server. When attempting to perform the upgrade process, via /wp-admin/update-core.php?action=do-core-upgrade I see the following error: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm It's entirely unclear to me where to begin resolving this issue. Interestingly, the "WordPress News" applet shows a similar error: RSS Error: WP HTTP Error: Failure when receiving data from the peer RSS Error: WP HTTP Error: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm A: @Kika is right that you have an older, insecure, version of OpenSSL. This sounds like: https://wordpress.org/support/topic/getting-download-failed-error0d0890a1asn1-encoding-routinesfunc137reason I wrote a small bit of code to skip the SSL test when trying to access the download server. It is not a good idea to use this code but will get you out of a pinch. <?php /* Plugin Name: Skip SSL Verify Plugin URI: http://www.damiencarbery.com Description: Skip SSL verify in curl downloads - fixes: Download failed. error:0D0890A1:asn1 encoding routines:func(137):reason(161). Author: Damien Carbery Version: 0.1 */ function ssv_skip_ssl_verify($ssl_verify) { return false; } add_filter('https_ssl_verify', 'ssv_skip_ssl_verify'); add_filter('https_local_ssl_verify', 'ssv_skip_ssl_verify');
wordpress
{ "language": "en", "length": 185, "provenance": "stackexchange_00019.jsonl.gz:462951", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/216824" }
[ 0.005687713623046875, -0.01093292236328125, -0.0117034912109375, -0.006969451904296875, -0.0008931159973144531, -0.026458740234375, 0.04119873046875, 0.00576019287109375, 0.00041937828063964844, 0.0163116455078125, 0.0321044921875, -0.03350830078125, -0.0018568038940429688, -0.050323486328125, 0.007266998291015625, -0.004680633544921875, 0.0289154052734375, 0.043182373046875, 0.03790283203125, -0.0079193115234375, 0.01192474365234375, 0.0338134765625, -0.0226287841796875, 0.04522705078125, -0.0101470947265625, 0.0308990478515625, 0.09100341796875, -0.033935546875, 0.02056884765625, -0.016265869140625, 0.0080718994140625, -0.04339599609375, 0.026153564453125, 0.03033447265625, -0.07110595703125, -0.088623046875, -0.039581298828125, 0.0217742919921875, -0.036529541015625, 0.032196044921875, -0.0016307830810546875, 0.0023822784423828125, 0.08026123046875, -0.002933502197265625, 0.01013946533203125, 0.01094818115234375, -0.0205535888671875, -0.044586181640625, 0.023712158203125, 0.05511474609375, 0.0099029541015625, -0.0296783447265625, 0.01178741455078125, 0.0263671875, -0.0288238525390625, -0.056182861328125, -0.00261688232421875, 0.10015869140625, 0.003997802734375, -0.005313873291015625, -0.01459503173828125, 0.06671142578125, -0.005046844482421875, 0.0113983154296875, -0.0093994140625, -0.011962890625, 0.049530029296875, 0.007396697998046875, -0.045745849609375, -0.0078582763671875, 0.041412353515625, 0.0013322830200195312, 0.01381683349609375, -0.0033473968505859375, -0.0020275115966796875, -0.00040912628173828125, 0.0211944580078125, 0.012420654296875, 0.01035308837890625, 0.0135040283203125, 0.03338623046875, -0.01479339599609375, -0.06866455078125, -0.028839111328125, 0.045196533203125, 0.019500732421875, -0.0010194778442382812, -0.04193115234375, 0.0194549560546875, -0.0144195556640625, -0.013031005859375, 0.0531005859375, 0.0294342041015625, -0.02227783203125, -0.040618896484375, -0.031494140625, 0.027008056640625, 0.05487060546875, -0.0210113525390625, 0.0124359130859375, -0.003261566162109375, -0.051666259765625, 0.0278167724609375, -0.060150146484375, -0.031524658203125, 0.01605224609375, 0.00789642333984375, 0.02459716796875, 0.02423095703125, 0.03948974609375, 0.005084991455078125, 0.00664520263671875, -0.041168212890625, -0.0235443115234375, -0.00844573974609375, 0.05731201171875, -0.031280517578125, -0.00414276123046875, -0.0124664306640625, 0.0233306884765625, -0.0037479400634765625, 0.033538818359375, -0.061065673828125, -0.00884246826171875, 0.0189666748046875, 0.00344085693359375, 0.0054168701171875, 0.01403045654296875, -0.01348876953125, 0.026336669921875, -0.022003173828125, -0.0007071495056152344, 0.04461669921875, 0.040008544921875, 0.0009679794311523438, -0.0256500244140625, 0.042999267578125, 0.02093505859375, -0.025177001953125, 0.0290374755859375, 0.0039825439453125, -0.0518798828125, -0.031219482421875, -0.01464080810546875, -0.003551483154296875, 0.00467681884765625, 0.025726318359375, 0.00664520263671875, 0.01264190673828125, -0.041015625, -0.01378631591796875, 0.01568603515625, 0.0316162109375, -0.0006098747253417969, -0.01094818115234375, -0.0217437744140625, 0.0200042724609375, -0.041351318359375, -0.0208587646484375, -0.0266571044921875, -0.02301025390625, -0.02471923828125, 0.0090179443359375, 0.0201568603515625, 0.0024166107177734375, 0.04345703125, 0.013275146484375, 0.01186370849609375, 0.01303863525390625, -0.015899658203125, -0.0156402587890625, -0.0174560546875, 0.0009226799011230469, 0.0003142356872558594, 0.01313018798828125, 0.03619384765625, 0.015472412109375, 0.013885498046875, 0.0313720703125, 0.0301055908203125, -0.01384735107421875, -0.03582763671875, 0.0938720703125, -0.0469970703125, -0.043182373046875, 0.049530029296875, -0.0104217529296875, 0.0570068359375, 0.0158843994140625, 0.012451171875, 0.00891876220703125, 0.0257720947265625, -0.0121307373046875, 0.0355224609375, -0.0281524658203125, -0.0511474609375, -0.031951904296875, -0.0006356239318847656, -0.037994384765625, 0.0225830078125, -0.0183258056640625, -0.01497650146484375, 0.00765228271484375, 0.004962921142578125, 0.0091400146484375, -0.0117645263671875, -0.0110321044921875, 0.006687164306640625, 0.0090179443359375, 0.03729248046875, 0.01385498046875, 0.0242462158203125, -0.0313720703125, -0.0008559226989746094, -0.0142822265625, -0.02032470703125, -0.01285552978515625, 0.038116455078125, -0.01276397705078125, 0.04730224609375, -0.0333251953125, -0.046234130859375, -0.040679931640625, -0.0037631988525390625, 0.007640838623046875, -0.03955078125, 0.01453399658203125, -0.020233154296875, 0.04815673828125, -0.004314422607421875, 0.041412353515625, -0.00848388671875, 0.021453857421875, 0.0208587646484375, -0.0364990234375, 0.0081634521484375, -0.029205322265625, -0.0242462158203125, 0.0077972412109375, 0.04693603515625, 0.06219482421875, 0.02783203125, 0.0015363693237304688, -0.06072998046875, 0.04119873046875, -0.05255126953125, 0.025909423828125, -0.04217529296875, -0.00856781005859375, -0.018646240234375, -0.0028533935546875, -0.0249786376953125, 0.04327392578125, -0.032012939453125, 0.0254058837890625, 0.041351318359375, 0.0226287841796875, 0.005146026611328125, -0.041839599609375, 0.001628875732421875, 0.0220794677734375, -0.048980712890625, -0.0675048828125, 0.0074920654296875, -0.01163482666015625, -0.028594970703125, 0.0095367431640625, -0.004486083984375, 0.0294952392578125, -0.04791259765625, -0.0018444061279296875, -0.0455322265625, -0.00531005859375, 0.0215301513671875, 0.03729248046875, 0.028045654296875, -0.03594970703125, -0.0112762451171875, -0.002140045166015625, 0.0251617431640625, -0.021453857421875, 0.00850677490234375, -0.006336212158203125, -0.003734588623046875, -0.03253173828125, -0.03472900390625, 0.027587890625, 0.0027141571044921875, -0.039093017578125, -0.01690673828125, 0.0350341796875, -0.027801513671875, -0.039398193359375, -0.0033626556396484375, 0.00882720947265625, -0.03948974609375, 0.0692138671875, 0.004665374755859375, -0.00388336181640625, 0.005031585693359375, 0.08770751953125, 0.032958984375, -0.017608642578125, 0.0076904296875, 0.00341033935546875, -0.0082550048828125, 0.0184783935546875, 0.01064300537109375, -0.005847930908203125, -0.004123687744140625, -0.0606689453125, -0.0298614501953125, 0.026641845703125, -0.01033782958984375, 0.029205322265625, -0.033203125, -0.0111846923828125, -0.010345458984375, -0.0966796875, -0.11285400390625, -0.036651611328125, -0.035491943359375, 0.031402587890625, 0.0204315185546875, -0.0006709098815917969, -0.01274871826171875, 0.0205078125, 0.03118896484375, 0.0183868408203125, -0.0169219970703125, -0.09375, -0.05230712890625, -0.1031494140625, 0.03369140625, -0.0168609619140625, 0.033966064453125, 0.0115966796875, -0.0357666015625, -0.003940582275390625, 0.005435943603515625, 0.03240966796875, 0.0009937286376953125, 0.0036029815673828125, 0.0008087158203125, -0.058563232421875, 0.051544189453125, -0.01049041748046875, 0.0086212158203125, 0.0133056640625, 0.0130157470703125, -0.0297698974609375, -0.0013170242309570312, -0.01171112060546875, -0.00691986083984375, 0.0023403167724609375, -0.0231475830078125, 0.00399017333984375, -0.01375579833984375, 0.0032024383544921875, -0.044036865234375, 0.007778167724609375, -0.00933074951171875, -0.0192413330078125, 0.019439697265625, 0.0201416015625, -0.00531768798828125, -0.0147552490234375, 0.0103912353515625, -0.044281005859375, -0.01358795166015625, 0.056396484375, -0.03436279296875, -0.0250396728515625, -0.03466796875, -0.06024169921875, -0.0084381103515625, 0.06201171875, -0.0298614501953125, 0.00481414794921875, 0.01171875, -0.0239105224609375, -0.0055389404296875, -0.0282135009765625, -0.0184478759765625, -0.036224365234375, 0.047119140625, -0.0267791748046875, 0.00868988037109375, -0.050201416015625, -0.00719451904296875, -0.035552978515625, 0.070068359375, 0.037109375, -0.035888671875, 0.0003895759582519531, 0.00177764892578125, -0.02606201171875, 0.0172576904296875, 0.021240234375, 0.00800323486328125, -0.04443359375, 0.005199432373046875, -0.0205078125, -0.0214385986328125, 0.035247802734375, -0.09197998046875, 0.020538330078125, -0.05450439453125, 0.0148773193359375, 0.01116180419921875, -0.009185791015625, 0.004680633544921875, -0.03076171875, -0.01435089111328125, -0.0125732421875, 0.0028209686279296875, -0.107177734375, 0.0036678314208984375, -0.0594482421875, 0.05059814453125, -0.0173797607421875, 0.06597900390625, -0.045501708984375, 0.0199127197265625, 0.01119232177734375, -0.051727294921875, 0.006359100341796875, -0.028106689453125, 0.0213775634765625, 0.072998046875, -0.00656890869140625, 0.02301025390625, -0.017120361328125, -0.003215789794921875, -0.03173828125, -0.018341064453125, 0.01055145263671875, -0.0257110595703125, 0.06622314453125, -0.05615234375, -0.04443359375, -0.0543212890625, -0.006374359130859375, 0.05584716796875, -0.0211639404296875, 0.033111572265625, -0.0740966796875, -0.037811279296875, 0.046783447265625, -0.0181732177734375, 0.01141357421875, 0.0188140869140625, 0.055450439453125, 0.00785064697265625, -0.0162506103515625, -0.042877197265625, -0.0189056396484375, -0.005565643310546875, 0.00528717041015625, 0.06060791015625, 0.00409698486328125, 0.010589599609375, 0.05450439453125, -0.0189361572265625, 0.01125335693359375, 0.007701873779296875, -0.0150299072265625, 0.0277099609375, -0.01169586181640625, -0.0023860931396484375, 0.04107666015625, -0.01009368896484375, 0.0435791015625, 0.0489501953125, 0.00321197509765625, 0.0380859375, -0.0501708984375, 0.007659912109375, -0.04937744140625, 0.028594970703125, -0.07220458984375, 0.036865234375, -0.0357666015625, -0.00626373291015625, 0.01059722900390625, -0.0016889572143554688, 0.01267242431640625, -0.025604248046875, 0.02069091796875, -0.0440673828125, 0.057373046875, -0.07940673828125, 0.043731689453125, -0.04071044921875, -0.040985107421875, -0.044647216796875, -0.0181121826171875, 0.0501708984375, -0.007659912109375, -0.06756591796875, 0.052947998046875, -0.006671905517578125, -0.026092529296875, 0.029296875, 0.0248870849609375, 0.046600341796875, -0.0161285400390625, -0.01000213623046875, -0.002285003662109375, -0.00487518310546875, -0.028839111328125, -0.042266845703125, 0.0201568603515625, 0.0482177734375, -0.053375244140625, -0.00855255126953125, 0.0237884521484375, 0.03411865234375, -0.030517578125, -0.0024585723876953125, 0.015533447265625, 0.05010986328125, -0.01372528076171875, 0.0394287109375, -0.00490570068359375, -0.0178070068359375, -0.0240325927734375, -0.0014972686767578125, -0.01540374755859375, -0.046142578125, 0.021240234375, 0.0219268798828125, 0.0159454345703125, 0.03558349609375, 0.0027217864990234375, 0.0283355712890625, -0.01392364501953125, 0.026275634765625, 0.018524169921875, -0.00634765625, -0.02886962890625, -0.0239410400390625, 0.02947998046875, 0.0262298583984375, -0.02435302734375, -0.0027179718017578125, -0.0126953125, 0.011566162109375, 0.0146942138671875, -0.058074951171875, 0.042083740234375, 0.035247802734375, 0.0926513671875, -0.03289794921875, -0.049560546875, 0.040557861328125, 0.03173828125, -0.045623779296875, 0.0195159912109375, 0.0621337890625, -0.01323699951171875, 0.00038814544677734375, -0.01104736328125, 0.0106048583984375, -0.0017795562744140625, 0.010772705078125, 0.0202178955078125, -0.0042724609375, 0.0029697418212890625, -0.016265869140625, -0.01215362548828125, -0.023529052734375, 0.03228759765625, -0.0005311965942382812, -0.017578125, -0.004016876220703125, -0.01556396484375, -0.002635955810546875, -0.016571044921875, -0.0161285400390625, -0.0051727294921875, 0.021209716796875, 0.0027561187744140625, -0.0035076141357421875, -0.027801513671875, 0.05755615234375, 0.01464080810546875, 0.042022705078125, -0.0048980712890625, 0.021240234375, 0.006015777587890625, -0.0022029876708984375, -0.020416259765625, -0.018951416015625, -0.006595611572265625, -0.007110595703125, -0.006771087646484375, 0.033782958984375, 0.05999755859375, 0.00624847412109375, -0.00827789306640625, 0.004398345947265625, 0.0150909423828125, -0.00848388671875, 0.0246734619140625, 0.03662109375, -0.00872802734375, 0.056884765625, -0.0242156982421875, -0.00647735595703125, 0.00274658203125, -0.0135345458984375, 0.00818634033203125, -0.0045166015625, -0.011627197265625, 0.00859832763671875, -0.00003427267074584961, -0.00414276123046875, 0.05255126953125, 0.00521087646484375, 0.029296875, 0.028472900390625, 0.02642822265625, 0.0275421142578125, -0.01186370849609375, 0.037506103515625, 0.00745391845703125, 0.0210723876953125, -0.0287628173828125, -0.018890380859375, -0.0211334228515625, -0.03619384765625, 0.03271484375, 0.04608154296875, 0.077880859375, -0.0833740234375, 0.009063720703125, 0.042877197265625, -0.0253143310546875, -0.0013332366943359375, -0.003993988037109375, 0.0017404556274414062, -0.0679931640625, 0.027679443359375, -0.01496124267578125, -0.00982666015625, -0.01470947265625, -0.045196533203125, -0.02703857421875, -0.0175628662109375, -0.027587890625, -0.0031604766845703125, -0.0230255126953125, 0.00634765625, 0.0124969482421875, -0.019317626953125, 0.006378173828125, -0.00027751922607421875, -0.0322265625, -0.04541015625, -0.045989990234375, -0.0350341796875, -0.0223541259765625, -0.0379638671875, 0.01084136962890625, 0.0002968311309814453, 0.05438232421875, 0.037445068359375, 0.004180908203125, -0.019500732421875, 0.006195068359375, 0.006931304931640625, 0.028594970703125, -0.0247802734375, -0.0219573974609375, 0.057861328125, 0.00368499755859375, 0.024169921875, 0.0321044921875, 0.00836944580078125, 0.00159454345703125, -0.01084136962890625, 0.038360595703125, -0.01111602783203125, -0.014862060546875, 0.03424072265625, -0.0126190185546875, -0.0095672607421875, 0.0230712890625, 0.06097412109375, -0.038909912109375, -0.013214111328125, 0.041412353515625, 0.006893157958984375, -0.04986572265625, 0.029052734375, -0.056732177734375, 0.10662841796875, 0.006244659423828125, 0.043701171875, 0.02728271484375, 0.0221099853515625, -0.04461669921875, -0.003200531005859375, -0.0223236083984375, 0.05126953125, 0.01161956787109375, -0.009552001953125, -0.00856781005859375, 0.0167999267578125, -0.0183563232421875, -0.0137481689453125, 0.0477294921875, 0.0275115966796875, -0.06353759765625, -0.0052032470703125, 0.01177215576171875, 0.01666259765625, -0.0009403228759765625, 0.058197021484375, -0.02154541015625, 0.03094482421875, 0.01540374755859375, -0.03228759765625, 0.012176513671875, 0.0044403076171875, -0.047760009765625, 0.018951416015625, 0.017242431640625, 0.00400543212890625, 0.0218048095703125, 0.0321044921875, -0.0311126708984375, 0.0304107666015625, 0.0235595703125, 0.040374755859375, 0.035675048828125, 0.0165863037109375, -0.0194854736328125, 0.051361083984375, -0.002376556396484375, -0.005374908447265625, 0.023193359375, -0.027801513671875, 0.006649017333984375, 0.041748046875, 0.0081787109375, 0.031951904296875, -0.0355224609375, 0.0038890838623046875, -0.011505126953125, 0.0024585723876953125, -0.0183258056640625, -0.01934814453125, 0.025848388671875, -0.0010156631469726562, 0.036346435546875, 0.006053924560546875, -0.02691650390625, -0.0063018798828125, -0.0399169921875, 0.0033092498779296875, -0.01824951171875, 0.02557373046875, -0.033294677734375, 0.0158233642578125, -0.034698486328125, -0.0250091552734375, -0.023651123046875, -0.0086669921875, 0.0206451416015625, 0.012176513671875, -0.0021800994873046875, -0.00507354736328125, -0.01068115234375, 0.00414276123046875, -0.03753662109375, 0.006744384765625, -0.0152435302734375, 0.0297698974609375, 0.04486083984375, 0.01010894775390625, 0.0041656494140625, -0.00807952880859375, -0.019287109375, 0.01345062255859375, 0.0177764892578125, 0.0101470947265625, -0.016326904296875, 0.005771636962890625, -0.0086212158203125, 0.0316162109375, 0.00292205810546875, -0.01129150390625, 0.0272064208984375, 0.07208251953125, -0.021942138671875, -0.0123138427734375, 0.05804443359375, 0.005458831787109375, 0.00713348388671875, -0.0469970703125, -0.0038738250732421875, -0.0286712646484375, -0.007049560546875, 0.0210723876953125, -0.0246734619140625, 0.01226043701171875, 0.0292816162109375, 0.0254669189453125, 0.0146636962890625, 0.02435302734375, -0.0189971923828125, 0.00035309791564941406, -0.0144805908203125, 0.053375244140625, -0.0343017578125, -0.0020904541015625, 0.0014333724975585938, -0.00818634033203125, -0.0065155029296875, 0.0221405029296875, -0.0233154296875, 0.0460205078125, 0.01152801513671875, -0.0227813720703125, 0.050872802734375, -0.0212554931640625, 0.0164794921875, -0.0294036865234375, -0.0048828125, -0.0186614990234375, -0.0175933837890625, -0.003509521484375, -0.006946563720703125, 0.035919189453125, 0.00803375244140625, 0.1319580078125, -0.053802490234375, 0.0107879638671875, 0.00235748291015625, 0.01140594482421875, -0.025421142578125, 0.02667236328125, -0.070068359375, 0.0003039836883544922, 0.017730712890625, -0.00406646728515625, -0.0102386474609375, 0.040435791015625, 0.027740478515625, -0.0278778076171875, 0.0238494873046875, 0.005023956298828125, -0.0034313201904296875, -0.0211334228515625, -0.0276336669921875, -0.0250091552734375, -0.052703857421875, 0.0039005279541015625, 0.038177490234375, -0.02044677734375, 0.009613037109375, -0.033782958984375, 0.041473388671875, 0.004070281982421875, 0.00893402099609375, -0.00579071044921875, -0.017181396484375, -0.01009368896484375, 0.01319122314453125, -0.01837158203125, 0.0322265625, -0.01157379150390625, -0.0195159912109375, -0.0009703636169433594, 0.0089263916015625, -0.0015163421630859375, -0.0357666015625, -0.01074981689453125, 0.00036144256591796875, 0.03753662109375, -0.00916290283203125, -0.048553466796875, -0.00457763671875, 0.0699462890625, -0.029052734375, -0.01519775390625, 0.0037784576416015625, -0.0084686279296875, 0.00010025501251220703, -0.00445556640625, -0.0003857612609863281, 0.036651611328125, 0.006847381591796875, 0.055908203125, 0.002544403076171875, -0.00664520263671875, -0.048980712890625, 0.02960205078125, -0.00727081298828125, -0.05462646484375, 0.0198974609375, -0.0682373046875, 0.0355224609375, -0.0187835693359375, 0.0201263427734375, -0.05596923828125, -0.08087158203125, -0.016876220703125, 0.06451416015625, -0.0455322265625, -0.01076507568359375, 0.0198822021484375, 0.00027441978454589844, -0.065673828125, -0.0196990966796875, -0.022064208984375, 0.016876220703125, 0.0266265869140625, -0.013397216796875, 0.039764404296875, -0.01149749755859375, -0.0182037353515625, -0.1153564453125, -0.0167236328125, -0.10736083984375, 0.0230255126953125, -0.029327392578125, 0.0168914794921875, 0.0214080810546875, -0.031341552734375, -0.061981201171875, 0.0552978515625, -0.00792694091796875, -0.0210418701171875, -0.08270263671875, 0.01971435546875, 0.01416015625, 0.0250701904296875, -0.0265350341796875, -0.002918243408203125, -0.06060791015625, 0.022857666015625, -0.00228118896484375, 0.033599853515625, -0.04095458984375, 0.0233154296875, -0.042236328125, 0.0416259765625, 0.02008056640625, -0.01406097412109375, -0.034149169921875, 0.0067291259765625, 0.0181121826171875, 0.037261962890625, -0.0007319450378417969, -0.007244110107421875, 0.032623291015625, -0.038970947265625, -0.0195159912109375, 0.00426483154296875, -0.0010480880737304688, 0.01189422607421875, 0.05767822265625, 0.01320648193359375, 0.00018072128295898438, -0.0302734375, -0.01500701904296875, -0.01558685302734375, 0.01119232177734375, -0.04400634765625, 0.004055023193359375, -0.07513427734375, -0.04119873046875, -0.0209808349609375, 0.007770538330078125, 0.015899658203125, -0.0091400146484375, 0.0013856887817382812, -0.0016727447509765625, 0.004047393798828125, -0.0161895751953125, -0.018402099609375, -0.009918212890625, 0.03790283203125, -0.01096343994140625, 0.0095367431640625, -0.0095977783203125, 0.0142974853515625, 0.01407623291015625, 0.01232147216796875, -0.007659912109375, -0.002658843994140625, -0.023193359375, 0.017242431640625, 0.0007505416870117188, 0.033111572265625, -0.014617919921875, -0.0007433891296386719, 0.01505279541015625, -0.013946533203125, -0.0008473396301269531, -0.005207061767578125, -0.01020050048828125, -0.01470184326171875, -0.0279388427734375, 0.0015354156494140625, -0.014007568359375, 0.007572174072265625, -0.020263671875, 0.0021419525146484375, -0.01427459716796875, 0.0219268798828125, 0.0264892578125, 0.00505828857421875, 0.01490020751953125, 0.017059326171875, -0.0137939453125, -0.0031032562255859375, -0.01030731201171875, -0.059326171875, -0.0021419525146484375, -0.0048980712890625 ]
fedfa38660be11dfa1b97b36a9d77389b75b74e0
Wordpress Stackexchange Q: How to convert the file path to a URL of the same file? How do I convert file system path to URL? I have found some general PHP solutions that can be error prone. Is there some WordPress specific way to do it? A: Or global function abs_path_to_url( $path = '' ) { $url = str_replace( wp_normalize_path( untrailingslashit( ABSPATH ) ), site_url(), wp_normalize_path( $path ) ); return esc_url_raw( $url ); }
Q: How to convert the file path to a URL of the same file? How do I convert file system path to URL? I have found some general PHP solutions that can be error prone. Is there some WordPress specific way to do it? A: Or global function abs_path_to_url( $path = '' ) { $url = str_replace( wp_normalize_path( untrailingslashit( ABSPATH ) ), site_url(), wp_normalize_path( $path ) ); return esc_url_raw( $url ); } A: Here is my solution for this: function convert_url_to_path( $url ) { return str_replace( wp_get_upload_dir()['baseurl'], wp_get_upload_dir()['basedir'], $url ); } A: In a theme, if you want to literally convert a file system path to a URL for a given file, you would do this: $url = str_replace( get_stylesheet_directory(), get_stylesheet_directory_uri(), $systempath); A: Kind of depends on where you are in the WordPress environment. Plugins If you're in a plugin, you can use plugins_url. <?php $url = plugins_url('css/admin.css', __FILE__); The above will give you the path relative to the file passed into the second argument. So if you're in the main plugin file you might get something like http://example.com/wp-content/plugins/your-plugin/css/admin.css. There's also plugin_dir_url to get the URL of a directory. One fairly common pattern is to define a constant with your plugin url in the main plugin file. <?php /** plugin name: wpse216913 example */ define('WPSE216913_PLUGINURL', plugin_dir_url(__FILE__)); // wp_enqueue_style('example', WPSE216913_PLUGINURL.'css/admin.css'); Themes Themes, on the other hand should use get_template_directory_uri or get_stylesheet_directory_uri. get_template_directory_uri will return the parent theme's directory URI if there is a parent theme. get_stylesheet_directory_uri will return the child theme's URI if there is a child theme, or the parent theme's otherwise. Read the codex for more on the differences. The twenty fifteen theme has some examples of how these are used. wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri().'/css/ie.css', array('twentyfifteen-style'), '20141010' ); Uploads Use wp_get_attachment_image_src for uploaded images. The return value will also include the width and height of the image. This also let's you say which size you want. Or there's wp_get_attachment_url to retrieve the URL of the attachment that was uploaded. If used on images, this will return the URL of the original image. If you need the URL (or path) of the upload directory so you can do something like a custom upload or otherwise, you can use wp_upload_dir which returns an array with all the info you'll need. print_r(wp_upload_dir()) /* Array ( [path] => /path/to/wordpress/wp-content/uploads/2016/02 [url] => http://example.com/wp-content/uploads/2016/02 [subdir] => /2016/02 [basedir] => /path/to/wordpress/wp-content/uploads [baseurl] => http://example.com/wp-content/uploads [error] => false ) */ Other Useful URL Functions All of these have the same signature, urlFunc($path, $scheme), and both arguments are optionall. home_url returns a path relative to the sites home page. echo home_url('/example'); // http://example.com/example site_url returns a URL relative to where the WordPress core files are. Say you had WordPress in the directory wp... echo site_url('/example'); // http://example.com/wp/example admin_url returns a URL relative to the wp-admin path. Useful when you need the path to admin-ajax.php, for instance. echo admin_url('admin-ajax.php'); // http://example.com/wp/wp-admin/admin-ajax.php There are a few others like content_url and includes_url which return the paths to the WP content and includes directories (or paths relative to them) respectively. A: This should work with any wordpress path: function path_to_url( $path ) { return get_site_url() . '/' . str_replace( ABSPATH, '', $path ); } echo path_to_url( YOUR_PATH_HERE );
wordpress
{ "language": "en", "length": 535, "provenance": "stackexchange_00019.jsonl.gz:462978", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/216913" }
[ 0.057708740234375, -0.009307861328125, -0.01348876953125, -0.042816162109375, 0.01371002197265625, -0.032501220703125, 0.0311279296875, 0.0017452239990234375, 0.0110626220703125, 0.00589752197265625, -0.0118408203125, -0.010772705078125, -0.0130157470703125, -0.028900146484375, -0.0068817138671875, -0.0290069580078125, 0.0330810546875, -0.0145416259765625, 0.033233642578125, -0.0019426345825195312, 0.0026721954345703125, 0.007381439208984375, 0.050872802734375, 0.02545166015625, 0.01513671875, 0.00913238525390625, 0.05364990234375, -0.030670166015625, 0.01123046875, -0.0284881591796875, 0.01390838623046875, -0.00289154052734375, 0.012359619140625, 0.0058746337890625, 0.00386810302734375, -0.023162841796875, 0.00995635986328125, 0.00439453125, 0.0026340484619140625, 0.007511138916015625, 0.03570556640625, -0.031951904296875, 0.01280975341796875, -0.005123138427734375, -0.0006589889526367188, -0.02838134765625, 0.06329345703125, -0.0201873779296875, -0.00589752197265625, 0.056732177734375, 0.027435302734375, 0.0187225341796875, 0.025604248046875, 0.00011169910430908203, -0.006870269775390625, -0.03326416015625, 0.034454345703125, 0.0045623779296875, 0.0266876220703125, -0.07769775390625, -0.045562744140625, 0.004253387451171875, 0.049407958984375, 0.038330078125, -0.005764007568359375, 0.005374908447265625, -0.005870819091796875, 0.035186767578125, -0.03955078125, -0.039215087890625, 0.004039764404296875, -0.0221710205078125, -0.022491455078125, -0.0233154296875, -0.004425048828125, 0.05633544921875, -0.02001953125, 0.00547027587890625, 0.021392822265625, 0.019317626953125, 0.01105499267578125, -0.00832366943359375, -0.0306396484375, -0.03558349609375, 0.03106689453125, 0.006687164306640625, -0.00391387939453125, -0.01316070556640625, -0.042083740234375, -0.00653076171875, -0.03839111328125, 0.06475830078125, -0.0227508544921875, -0.0301055908203125, -0.0606689453125, 0.0070037841796875, -0.01505279541015625, -0.020782470703125, -0.01146697998046875, 0.0214996337890625, 0.0128173828125, -0.0173187255859375, 0.0201873779296875, -0.01068878173828125, 0.0006198883056640625, 0.07080078125, 0.01500701904296875, -0.027008056640625, -0.0035839080810546875, -0.0170135498046875, -0.0077056884765625, 0.02203369140625, -0.0016775131225585938, -0.0362548828125, -0.0016231536865234375, 0.05572509765625, -0.0111846923828125, 0.016326904296875, 0.00962066650390625, 0.038238525390625, -0.0267486572265625, -0.00832366943359375, 0.0009679794311523438, 0.020050048828125, 0.007965087890625, -0.01031494140625, -0.0185394287109375, 0.0143585205078125, -0.00551605224609375, 0.01084136962890625, 0.005222320556640625, 0.017547607421875, 0.01380157470703125, 0.0183258056640625, -0.026153564453125, -0.0010957717895507812, -0.0019702911376953125, 0.009857177734375, -0.002727508544921875, 0.036468505859375, -0.00363922119140625, -0.054443359375, -0.014129638671875, 0.0202178955078125, 0.020599365234375, 0.0361328125, 0.004283905029296875, 0.017547607421875, 0.01222991943359375, -0.05145263671875, 0.005245208740234375, -0.0271453857421875, -0.006183624267578125, 0.0184326171875, 0.004657745361328125, -0.042572021484375, 0.01898193359375, -0.044952392578125, 0.047027587890625, -0.036041259765625, 0.0008563995361328125, -0.00954437255859375, 0.0200042724609375, -0.006885528564453125, 0.007213592529296875, -0.01152801513671875, -0.03021240234375, 0.01143646240234375, -0.0013742446899414062, 0.017822265625, -0.01287078857421875, 0.038818359375, -0.042572021484375, -0.0249176025390625, -0.0008597373962402344, -0.03338623046875, -0.0258636474609375, -0.0164031982421875, 0.005687713623046875, 0.07476806640625, 0.0229644775390625, -0.03265380859375, -0.032501220703125, 0.0245361328125, -0.03179931640625, 0.03948974609375, -0.01812744140625, 0.0215911865234375, 0.0287017822265625, -0.004852294921875, -0.01329803466796875, 0.006908416748046875, 0.005428314208984375, 0.017120361328125, -0.01885986328125, -0.03851318359375, 0.0014944076538085938, 0.0015897750854492188, -0.026519775390625, 0.0027904510498046875, 0.001522064208984375, 0.006389617919921875, 0.007228851318359375, 0.0196533203125, -0.013671875, 0.0177459716796875, -0.0189056396484375, 0.0224456787109375, 0.0185089111328125, -0.00345611572265625, 0.0183868408203125, 0.0196380615234375, -0.0168304443359375, -0.0384521484375, -0.036651611328125, 0.05474853515625, 0.021759033203125, -0.04425048828125, -0.033172607421875, -0.042877197265625, -0.029754638671875, 0.040985107421875, -0.0472412109375, 0.05487060546875, -0.015777587890625, -0.008697509765625, -0.044219970703125, 0.00032329559326171875, -0.0261077880859375, -0.01551055908203125, 0.031829833984375, 0.054931640625, 0.0053558349609375, 0.00986480712890625, -0.00955963134765625, -0.01273345947265625, 0.00616455078125, -0.06903076171875, 0.019317626953125, 0.05792236328125, 0.04400634765625, 0.002117156982421875, -0.006275177001953125, -0.004924774169921875, 0.028564453125, -0.033050537109375, 0.0097198486328125, -0.0287017822265625, 0.0035610198974609375, 0.029632568359375, 0.0130462646484375, -0.00791168212890625, -0.00032448768615722656, -0.07806396484375, -0.00862884521484375, 0.023956298828125, -0.004657745361328125, -0.01132965087890625, -0.029083251953125, 0.035369873046875, -0.003604888916015625, 0.03985595703125, -0.02008056640625, 0.0229644775390625, -0.05224609375, 0.058380126953125, 0.0182342529296875, 0.0222930908203125, -0.00588226318359375, 0.0129241943359375, 0.00745391845703125, 0.006633758544921875, -0.0019626617431640625, 0.0426025390625, 0.030853271484375, -0.0235443115234375, 0.0115966796875, -0.0183258056640625, -0.01476287841796875, 0.006725311279296875, 0.0029621124267578125, -0.01044464111328125, 0.00803375244140625, -0.01271820068359375, 0.03521728515625, -0.01198577880859375, 0.0080718994140625, 0.010498046875, -0.04052734375, -0.01311492919921875, 0.0309906005859375, 0.0078582763671875, -0.028076171875, 0.01361846923828125, -0.008209228515625, -0.00492095947265625, 0.07635498046875, -0.022674560546875, 0.01000213623046875, -0.0217437744140625, 0.0282135009765625, 0.04119873046875, 0.00846099853515625, -0.0259246826171875, -0.0053863525390625, 0.04364013671875, 0.036865234375, -0.0224609375, -0.010833740234375, 0.0241851806640625, -0.07415771484375, -0.0535888671875, -0.006542205810546875, 0.0163421630859375, -0.028656005859375, -0.048187255859375, -0.00568389892578125, -0.01384735107421875, -0.1287841796875, -0.0777587890625, -0.043212890625, -0.06488037109375, 0.01219940185546875, 0.029937744140625, -0.031707763671875, 0.0014715194702148438, 0.057525634765625, 0.025787353515625, 0.0276031494140625, -0.0177154541015625, -0.07012939453125, -0.0489501953125, -0.07965087890625, 0.0040740966796875, -0.009979248046875, 0.0009016990661621094, 0.00746917724609375, -0.0136871337890625, 0.0015516281127929688, 0.02398681640625, 0.0228424072265625, 0.061126708984375, 0.021240234375, -0.05645751953125, 0.01343536376953125, 0.0116119384765625, -0.0174102783203125, -0.0082855224609375, 0.07855224609375, 0.057220458984375, -0.0631103515625, 0.023956298828125, -0.0016546249389648438, 0.02618408203125, 0.0116424560546875, 0.0014820098876953125, 0.0071258544921875, -0.0037097930908203125, -0.0193634033203125, -0.048553466796875, 0.0063629150390625, -0.0028324127197265625, -0.01261138916015625, 0.045257568359375, -0.00667572021484375, -0.0250091552734375, -0.00443267822265625, 0.022918701171875, -0.01116180419921875, -0.00479888916015625, -0.00899505615234375, -0.014617919921875, 0.01140594482421875, -0.0129852294921875, -0.007236480712890625, 0.005130767822265625, 0.07672119140625, 0.0082855224609375, 0.00827789306640625, 0.0386962890625, 0.047271728515625, 0.0301666259765625, -0.0330810546875, -0.038604736328125, -0.0233306884765625, 0.07098388671875, 0.0018301010131835938, 0.033660888671875, -0.0543212890625, -0.043121337890625, -0.05487060546875, 0.067626953125, -0.02301025390625, -0.0176849365234375, 0.0260467529296875, 0.033172607421875, -0.07427978515625, -0.06732177734375, -0.058013916015625, -0.01099395751953125, -0.0740966796875, 0.000019371509552001953, -0.007568359375, -0.0413818359375, -0.010406494140625, -0.048004150390625, -0.04107666015625, -0.04620361328125, 0.0189056396484375, -0.02520751953125, 0.03668212890625, 0.03692626953125, 0.032806396484375, 0.0289459228515625, -0.0210723876953125, -0.03363037109375, -0.08013916015625, -0.0197601318359375, -0.022918701171875, 0.060760498046875, 0.003406524658203125, -0.0220794677734375, -0.00824737548828125, 0.05694580078125, 0.024444580078125, 0.01580810546875, 0.005405426025390625, -0.032501220703125, 0.033599853515625, 0.0164642333984375, 0.0137786865234375, -0.01071929931640625, 0.0011873245239257812, -0.058837890625, -0.0517578125, -0.036712646484375, -0.0264434814453125, 0.04522705078125, -0.0025157928466796875, -0.019744873046875, -0.02581787109375, 0.00403594970703125, -0.0115509033203125, 0.0149688720703125, -0.01415252685546875, -0.032135009765625, -0.0013170242309570312, -0.043212890625, 0.0413818359375, 0.023040771484375, -0.00803375244140625, -0.0008654594421386719, 0.01218414306640625, 0.00659942626953125, -0.037811279296875, -0.0240478515625, -0.0118865966796875, 0.025299072265625, -0.0115814208984375, 0.05413818359375, 0.024139404296875, -0.00506591796875, 0.0494384765625, -0.01326751708984375, 0.0184173583984375, -0.018829345703125, 0.0269927978515625, -0.0056915283203125, -0.0164031982421875, 0.032501220703125, -0.002513885498046875, -0.01006317138671875, 0.054656982421875, -0.0138092041015625, 0.009674072265625, -0.00197601318359375, 0.018707275390625, -0.0028018951416015625, -0.054473876953125, -0.033416748046875, -0.06170654296875, 0.012298583984375, 0.00405120849609375, 0.0169677734375, 0.0357666015625, -0.0010395050048828125, 0.042388916015625, 0.025360107421875, -0.002132415771484375, 0.0200347900390625, 0.05267333984375, -0.0182647705078125, 0.038055419921875, 0.01009368896484375, -0.034027099609375, 0.002590179443359375, -0.00907135009765625, 0.03497314453125, 0.048187255859375, -0.00244903564453125, -0.00864410400390625, -0.009613037109375, -0.031341552734375, -0.03448486328125, -0.005184173583984375, 0.0059661865234375, 0.00759124755859375, -0.04254150390625, -0.004734039306640625, 0.00499725341796875, -0.045379638671875, -0.0347900390625, 0.045379638671875, 0.0201263427734375, 0.0018377304077148438, 0.006103515625, 0.05731201171875, 0.01355743408203125, 0.0150909423828125, -0.0133056640625, -0.0035400390625, 0.04547119140625, -0.0247650146484375, 0.0169219970703125, 0.030548095703125, -0.0312347412109375, -0.01215362548828125, 0.02972412109375, -0.025970458984375, -0.019561767578125, 0.0479736328125, 0.0305023193359375, -0.01490020751953125, -0.0198516845703125, -0.0030994415283203125, -0.0216217041015625, -0.01201629638671875, -0.01471710205078125, -0.0247802734375, -0.00568389892578125, -0.029937744140625, -0.01605224609375, 0.041595458984375, 0.0007867813110351562, -0.0269927978515625, 0.006160736083984375, -0.028472900390625, 0.02557373046875, -0.01136016845703125, -0.025787353515625, 0.025360107421875, 0.0287017822265625, 0.006282806396484375, -0.01316070556640625, -0.013397216796875, 0.0086822509765625, -0.0005931854248046875, -0.0391845703125, -0.03436279296875, 0.08251953125, -0.014068603515625, 0.01445770263671875, -0.04376220703125, 0.0158843994140625, 0.0162200927734375, 0.0015659332275390625, 0.06121826171875, 0.0241546630859375, -0.0791015625, -0.005863189697265625, -0.049163818359375, 0.00232696533203125, -0.0006704330444335938, 0.0003857612609863281, -0.0126495361328125, 0.0130615234375, 0.0088958740234375, 0.036102294921875, 0.0174560546875, 0.0265655517578125, 0.0271453857421875, 0.0068817138671875, -0.039398193359375, 0.037200927734375, 0.004970550537109375, 0.0243377685546875, 0.010040283203125, 0.031768798828125, 0.01456451416015625, 0.00965118408203125, -0.01021575927734375, -0.0242156982421875, 0.004974365234375, -0.0272369384765625, -0.0091705322265625, -0.02679443359375, 0.050994873046875, 0.0204620361328125, 0.0207977294921875, 0.0067138671875, -0.022979736328125, -0.0008292198181152344, -0.0007925033569335938, -0.0256805419921875, 0.045928955078125, 0.006778717041015625, 0.03094482421875, -0.059600830078125, 0.0248870849609375, 0.053131103515625, -0.0192108154296875, 0.005435943603515625, -0.036285400390625, 0.009857177734375, -0.0025920867919921875, -0.006420135498046875, -0.057769775390625, 0.06341552734375, 0.0982666015625, -0.0084991455078125, 0.035125732421875, 0.0252838134765625, -0.0130615234375, 0.0255279541015625, 0.024139404296875, -0.00699615478515625, 0.00821685791015625, 0.02923583984375, 0.0069732666015625, -0.00940704345703125, 0.004852294921875, -0.01235198974609375, 0.034332275390625, 0.07904052734375, 0.0650634765625, -0.1048583984375, 0.03204345703125, 0.000453948974609375, 0.0029392242431640625, 0.05419921875, 0.01277923583984375, 0.002223968505859375, -0.005458831787109375, 0.004619598388671875, -0.013397216796875, -0.00835418701171875, -0.0073394775390625, 0.00734710693359375, 0.0217742919921875, -0.0233917236328125, 0.055145263671875, -0.000476837158203125, -0.05120849609375, -0.032623291015625, 0.047332763671875, -0.05401611328125, -0.032318115234375, -0.0015783309936523438, 0.01163482666015625, 0.006595611572265625, -0.0304718017578125, 0.043548583984375, -0.0232086181640625, 0.035186767578125, -0.021759033203125, -0.00693511962890625, 0.06793212890625, 0.032562255859375, 0.0017175674438476562, -0.00507354736328125, 0.01523590087890625, 0.04473876953125, 0.055145263671875, 0.01560211181640625, -0.006946563720703125, 0.00995635986328125, 0.00598907470703125, -0.0287017822265625, -0.033843994140625, 0.040008544921875, -0.010345458984375, 0.023773193359375, 0.11639404296875, -0.034027099609375, -0.0216064453125, 0.057342529296875, -0.01343536376953125, -0.039276123046875, 0.002170562744140625, 0.03167724609375, -0.064453125, -0.0210723876953125, 0.01346588134765625, -0.00713348388671875, 0.007293701171875, -0.01360321044921875, -0.0178070068359375, 0.05316162109375, -0.038665771484375, 0.0128936767578125, 0.03228759765625, 0.004241943359375, 0.007190704345703125, 0.02398681640625, -0.0302581787109375, 0.057403564453125, 0.061126708984375, -0.0010967254638671875, -0.024383544921875, -0.020904541015625, -0.0009760856628417969, 0.0302581787109375, 0.005031585693359375, 0.004291534423828125, -0.0277557373046875, -0.0108642578125, 0.034332275390625, 0.060302734375, 0.032745361328125, 0.0230865478515625, 0.0149993896484375, 0.0213775634765625, 0.0701904296875, -0.0390625, 0.01824951171875, 0.005096435546875, 0.0238494873046875, 0.036407470703125, 0.03192138671875, 0.0208587646484375, -0.00034308433532714844, 0.00363922119140625, -0.059417724609375, 0.008331298828125, 0.039947509765625, -0.0117645263671875, 0.016448974609375, -0.0028400421142578125, -0.00745391845703125, 0.030975341796875, 0.013885498046875, 0.002716064453125, 0.037109375, 0.00202178955078125, -0.00946044921875, -0.00586700439453125, 0.001873016357421875, 0.04315185546875, -0.01482391357421875, -0.03466796875, 0.01259613037109375, 0.01068878173828125, 0.0670166015625, 0.05908203125, 0.040924072265625, 0.0260467529296875, 0.03125, 0.0283203125, 0.057891845703125, -0.047821044921875, -0.036712646484375, -0.0031833648681640625, -0.017669677734375, 0.00397491455078125, 0.00576019287109375, 0.040496826171875, -0.00713348388671875, -0.01544952392578125, -0.0355224609375, 0.02032470703125, 0.035308837890625, 0.0220489501953125, 0.00135040283203125, -0.006046295166015625, -0.045196533203125, 0.0038700103759765625, -0.0416259765625, 0.00591278076171875, 0.00957489013671875, 0.031646728515625, 0.023651123046875, 0.0400390625, 0.000606536865234375, -0.01190185546875, 0.01715087890625, 0.07110595703125, -0.0008177757263183594, -0.01259613037109375, -0.0158538818359375, -0.07440185546875, -0.0010843276977539062, 0.0246734619140625, 0.01166534423828125, 0.060028076171875, 0.0477294921875, 0.0211334228515625, 0.0120849609375, 0.001705169677734375, 0.035064697265625, -0.026824951171875, 0.034698486328125, -0.036773681640625, 0.044586181640625, -0.0079803466796875, 0.0158538818359375, -0.03204345703125, 0.04443359375, 0.01739501953125, -0.01788330078125, 0.05419921875, -0.01340484619140625, -0.00824737548828125, 0.007457733154296875, -0.0267486572265625, 0.03240966796875, 0.0034923553466796875, -0.0426025390625, 0.01226043701171875, -0.00005626678466796875, -0.06378173828125, 0.00787353515625, 0.04229736328125, -0.046478271484375, 0.0440673828125, 0.0010747909545898438, 0.0165252685546875, 0.0244903564453125, -0.029449462890625, -0.01557159423828125, 0.0146026611328125, 0.0478515625, 0.001819610595703125, -0.0439453125, -0.057098388671875, -0.0533447265625, 0.0791015625, 0.018768310546875, 0.12493896484375, -0.06500244140625, 0.046539306640625, 0.01322174072265625, 0.005062103271484375, -0.0161285400390625, 0.0113983154296875, 0.00640869140625, 0.01300811767578125, 0.01438140869140625, -0.0207977294921875, -0.033203125, 0.030548095703125, 0.0110626220703125, -0.0173187255859375, -0.002227783203125, 0.007843017578125, 0.01763916015625, 0.02972412109375, 0.0330810546875, -0.0224761962890625, -0.037353515625, -0.0479736328125, 0.0002944469451904297, 0.0203857421875, 0.0302581787109375, -0.0227203369140625, 0.03692626953125, 0.042022705078125, -0.0148773193359375, 0.022003173828125, -0.045318603515625, 0.036163330078125, 0.03668212890625, 0.01398468017578125, -0.02264404296875, -0.004604339599609375, -0.0234222412109375, 0.019500732421875, -0.01345062255859375, 0.06268310546875, -0.01055145263671875, 0.025726318359375, -0.03521728515625, -0.0302581787109375, 0.0154876708984375, 0.0031108856201171875, -0.00606536865234375, -0.02593994140625, 0.0118255615234375, -0.03643798828125, -0.0267486572265625, -0.0040130615234375, -0.0218048095703125, -0.0009031295776367188, 0.017486572265625, 0.0015382766723632812, 0.001094818115234375, 0.039581298828125, -0.00643157958984375, 0.0216827392578125, 0.00433349609375, -0.0303192138671875, 0.005527496337890625, -0.01617431640625, 0.015350341796875, -0.011077880859375, 0.0147552490234375, -0.0190887451171875, 0.0086517333984375, -0.040374755859375, -0.03741455078125, -0.062255859375, 0.0367431640625, -0.05364990234375, 0.0631103515625, 0.04840087890625, -0.042724609375, 0.00846099853515625, 0.081787109375, 0.045440673828125, 0.1337890625, 0.002208709716796875, -0.054962158203125, -0.04107666015625, 0.0148773193359375, 0.0189056396484375, 0.0008683204650878906, 0.015838623046875, -0.034881591796875, -0.0220184326171875, 0.00586700439453125, 0.00891876220703125, 0.0255279541015625, -0.0245513916015625, -0.075927734375, 0.01273345947265625, -0.0091400146484375, -0.04437255859375, -0.034881591796875, -0.01291656494140625, -0.00010573863983154297, 0.0148162841796875, -0.018280029296875, 0.01453399658203125, -0.0257110595703125, 0.026153564453125, 0.03167724609375, 0.057830810546875, 0.002086639404296875, 0.03839111328125, -0.01035308837890625, 0.052734375, 0.021728515625, 0.0303802490234375, -0.0037097930908203125, -0.006694793701171875, 0.006145477294921875, 0.04254150390625, 0.00295257568359375, -0.01235198974609375, -0.007671356201171875, -0.04754638671875, -0.01776123046875, -0.03338623046875, 0.019622802734375, 0.0177154541015625, 0.00798797607421875, 0.03411865234375, -0.00624847412109375, -0.0267181396484375, -0.045074462890625, -0.02789306640625, -0.021514892578125, -0.0249481201171875, 0.0279998779296875, -0.08807373046875, 0.002349853515625, 0.003322601318359375, -0.01074981689453125, -0.0016078948974609375, -0.03472900390625, -0.021636962890625, -0.0013856887817382812, -0.0157928466796875, -0.005870819091796875, 0.0162506103515625, -0.0215606689453125, 0.0850830078125, -0.046844482421875, 0.01922607421875, -0.0033817291259765625, 0.0227813720703125, 0.05224609375, -0.03228759765625, 0.006748199462890625, 0.0168304443359375, 0.00820159912109375, -0.007568359375, 0.02398681640625, -0.031494140625, 0.00926971435546875, -0.010284423828125, -0.004962921142578125, 0.0190887451171875, -0.0033130645751953125, 0.0259552001953125, 0.014556884765625, 0.0227813720703125, -0.0009183883666992188, 0.044677734375, -0.019622802734375, 0.033782958984375, 0.005664825439453125, 0.01378631591796875, -0.07708740234375, 0.02166748046875, -0.024658203125, -0.056365966796875, -0.0016679763793945312, 0.0267333984375, -0.0462646484375, -0.0257720947265625, 0.00736236572265625, -0.048187255859375, 0.0012178421020507812, 0.0055389404296875 ]
97f7b55fb68405a6209cdae0faad49618e5461f3
Wordpress Stackexchange Q: What's the difference between the permissions "edit_published_posts" and "edit_posts" What's the difference between the permissions "edit_published_posts" and "edit_posts"? It's not clear on the wordpress manual. A: The difference is that 'edit_published_posts' allows the user to edit posts whose status has been set to 'published', in other words, live content. The 'edit_posts' allows users to edit unpublished (e.g. draft) posts. For most bloggers, the distinction is irrelevant, but if you're using Wordpress for a company or a newsroom, you may want all posts to be reviewed by an editor prior to release. In that case you would also not want anyone but an editor making changes to live content.
Q: What's the difference between the permissions "edit_published_posts" and "edit_posts" What's the difference between the permissions "edit_published_posts" and "edit_posts"? It's not clear on the wordpress manual. A: The difference is that 'edit_published_posts' allows the user to edit posts whose status has been set to 'published', in other words, live content. The 'edit_posts' allows users to edit unpublished (e.g. draft) posts. For most bloggers, the distinction is irrelevant, but if you're using Wordpress for a company or a newsroom, you may want all posts to be reviewed by an editor prior to release. In that case you would also not want anyone but an editor making changes to live content.
wordpress
{ "language": "en", "length": 109, "provenance": "stackexchange_00019.jsonl.gz:463046", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/217146" }
[ 0.0306549072265625, -0.0247039794921875, 0.01372528076171875, 0.0016603469848632812, -0.01739501953125, -0.0124969482421875, 0.0380859375, -0.019622802734375, 0.0033588409423828125, 0.00689697265625, -0.017974853515625, 0.00021016597747802734, -0.0281829833984375, -0.0206756591796875, -0.003597259521484375, -0.0316162109375, 0.0221099853515625, -0.0301513671875, -0.004528045654296875, -0.0255584716796875, -0.0009522438049316406, -0.01407623291015625, 0.00970458984375, 0.039093017578125, -0.007213592529296875, -0.0067291259765625, 0.0364990234375, -0.0080718994140625, -0.0006623268127441406, -0.0006642341613769531, 0.0109405517578125, -0.0135498046875, 0.0303192138671875, 0.032135009765625, -0.065673828125, -0.011474609375, -0.00580596923828125, 0.0077056884765625, -0.037567138671875, 0.0404052734375, 0.0250091552734375, -0.011474609375, 0.01210784912109375, 0.02337646484375, -0.0035495758056640625, -0.04486083984375, 0.050048828125, -0.01739501953125, 0.00047779083251953125, -0.00582122802734375, 0.007373809814453125, 0.01059722900390625, 0.016326904296875, 0.0243682861328125, -0.0212860107421875, -0.01351165771484375, 0.03240966796875, 0.01678466796875, 0.0550537109375, -0.0721435546875, -0.07391357421875, -0.01215362548828125, 0.0399169921875, 0.0085296630859375, 0.005069732666015625, 0.005252838134765625, 0.06292724609375, 0.00955963134765625, -0.048553466796875, -0.01348114013671875, 0.02435302734375, -0.0223236083984375, 0.0253143310546875, -0.0271148681640625, 0.01190185546875, 0.0229949951171875, -0.01204681396484375, 0.0138397216796875, 0.0171356201171875, 0.007358551025390625, 0.0277252197265625, 0.0245208740234375, -0.001129150390625, -0.0271453857421875, 0.00832366943359375, -0.0273895263671875, 0.0009069442749023438, -0.01001739501953125, -0.0015306472778320312, 0.002529144287109375, -0.0110321044921875, -0.03192138671875, -0.030364990234375, 0.09014892578125, 0.0234222412109375, -0.009857177734375, 0.036224365234375, 0.036865234375, -0.00446319580078125, -0.01384735107421875, 0.00226593017578125, -0.046051025390625, -0.00420379638671875, -0.0203399658203125, 0.014556884765625, 0.00803375244140625, -0.0020503997802734375, -0.00897979736328125, 0.031768798828125, 0.0234527587890625, -0.01708984375, 0.03558349609375, 0.0221710205078125, -0.047515869140625, 0.0292816162109375, 0.01080322265625, -0.005001068115234375, 0.0718994140625, 0.026153564453125, 0.036285400390625, -0.002117156982421875, 0.0005965232849121094, 0.02349853515625, -0.0184326171875, 0.00830078125, 0.01070404052734375, -0.042755126953125, -0.009429931640625, 0.040008544921875, 0.06854248046875, -0.043304443359375, -0.02166748046875, 0.06475830078125, 0.006252288818359375, 0.005084991455078125, -0.050384521484375, -0.053131103515625, -0.0027179718017578125, -0.018585205078125, 0.0194854736328125, -0.052520751953125, -0.01023101806640625, 0.0706787109375, -0.0430908203125, -0.00907135009765625, 0.044464111328125, 0.0222625732421875, -0.0014352798461914062, -0.0027599334716796875, -0.049346923828125, -0.01502227783203125, -0.0176239013671875, -0.007793426513671875, -0.006855010986328125, 0.037567138671875, -0.062347412109375, 0.0265045166015625, -0.0621337890625, 0.06903076171875, -0.03497314453125, 0.005672454833984375, 0.0162200927734375, 0.048736572265625, -0.028289794921875, -0.07244873046875, -0.004764556884765625, -0.037261962890625, -0.0201263427734375, 0.0110626220703125, -0.031280517578125, 0.0435791015625, -0.021881103515625, 0.01055145263671875, -0.0201568603515625, -0.00579833984375, 0.01401519775390625, -0.02130126953125, 0.005794525146484375, 0.00807952880859375, 0.041656494140625, 0.0217742919921875, -0.01263427734375, -0.0010013580322265625, 0.01418304443359375, -0.0203094482421875, -0.0009250640869140625, -0.01198577880859375, 0.004192352294921875, 0.0309906005859375, 0.01250457763671875, 0.0035877227783203125, -0.0003566741943359375, 0.007648468017578125, 0.03973388671875, 0.007293701171875, -0.0535888671875, 0.00856781005859375, -0.0150299072265625, -0.005123138427734375, -0.0321044921875, 0.007274627685546875, 0.0238800048828125, -0.0163116455078125, 0.01113128662109375, -0.0667724609375, 0.0253143310546875, -0.0302581787109375, 0.03887939453125, -0.05108642578125, -0.0113067626953125, 0.0262603759765625, -0.0302734375, 0.0039043426513671875, -0.022979736328125, -0.0282745361328125, 0.004184722900390625, -0.0264434814453125, -0.01415252685546875, 0.0131072998046875, -0.01187896728515625, 0.0266265869140625, -0.0008325576782226562, 0.001750946044921875, 0.0138397216796875, 0.08831787109375, -0.0313720703125, 0.00951385498046875, -0.049774169921875, 0.07568359375, -0.02227783203125, -0.0018138885498046875, 0.0391845703125, 0.0211181640625, 0.034515380859375, -0.017242431640625, -0.017425537109375, -0.0149383544921875, -0.0775146484375, 0.024658203125, 0.06597900390625, 0.032806396484375, 0.0172882080078125, 0.0026416778564453125, 0.0183563232421875, 0.057891845703125, 0.0252838134765625, 0.0321044921875, -0.0118255615234375, 0.034576416015625, 0.09271240234375, -0.0086669921875, 0.016265869140625, -0.01363372802734375, -0.0509033203125, 0.00237274169921875, 0.02569580078125, 0.0027675628662109375, 0.050323486328125, -0.0113067626953125, -0.003662109375, -0.028594970703125, -0.0767822265625, -0.00449371337890625, -0.05560302734375, 0.022186279296875, -0.0004646778106689453, 0.03955078125, 0.034027099609375, -0.0216522216796875, -0.01727294921875, 0.0195770263671875, 0.0210113525390625, 0.01800537109375, 0.062255859375, -0.0313720703125, 0.0300140380859375, -0.025848388671875, -0.00003695487976074219, 0.00470733642578125, 0.0220489501953125, -0.043212890625, -0.04022216796875, -0.01593017578125, -0.006862640380859375, 0.025482177734375, -0.046905517578125, 0.0163726806640625, -0.0357666015625, 0.029998779296875, -0.02923583984375, 0.00165557861328125, -0.004543304443359375, -0.028076171875, 0.04412841796875, 0.0152740478515625, -0.040313720703125, -0.0005650520324707031, -0.045867919921875, 0.03631591796875, -0.037353515625, 0.039215087890625, 0.060150146484375, -0.0133514404296875, 0.015777587890625, 0.0283203125, -0.01043701171875, 0.025634765625, 0.0097808837890625, -0.0012636184692382812, 0.048095703125, -0.09197998046875, 0.00392913818359375, 0.006908416748046875, -0.018524169921875, 0.00962066650390625, -0.004665374755859375, -0.0084381103515625, 0.0007338523864746094, -0.043243408203125, -0.0307464599609375, -0.033203125, -0.0572509765625, 0.021240234375, -0.0158233642578125, -0.002532958984375, -0.01313018798828125, 0.01004791259765625, 0.0173187255859375, -0.01381683349609375, 0.043548583984375, 0.01413726806640625, 0.0211181640625, -0.0242462158203125, -0.022552490234375, -0.005481719970703125, 0.016143798828125, 0.00017893314361572266, 0.0579833984375, 0.0019073486328125, -0.0197296142578125, -0.0026111602783203125, -0.036651611328125, -0.035736083984375, -0.021697998046875, -0.005535125732421875, 0.0270538330078125, -0.00789642333984375, 0.0233001708984375, 0.005680084228515625, 0.004512786865234375, -0.0239105224609375, -0.0258026123046875, 0.003101348876953125, 0.0231781005859375, 0.03692626953125, 0.0259857177734375, -0.0120849609375, 0.054779052734375, 0.04656982421875, -0.0109710693359375, -0.040130615234375, -0.014739990234375, -0.05535888671875, 0.0286102294921875, 0.0199737548828125, 0.0222930908203125, -0.0266876220703125, 0.044952392578125, 0.038482666015625, 0.035888671875, 0.036651611328125, -0.00531005859375, 0.0341796875, -0.01010894775390625, 0.004058837890625, -0.05615234375, -0.041534423828125, -0.03387451171875, 0.051025390625, -0.039398193359375, 0.015838623046875, -0.04522705078125, 0.047576904296875, -0.07275390625, -0.04296875, 0.0251312255859375, -0.086181640625, -0.0164642333984375, -0.03582763671875, 0.003082275390625, -0.006732940673828125, 0.05157470703125, -0.01300811767578125, -0.0251007080078125, -0.01528167724609375, 0.0126495361328125, -0.03662109375, -0.045684814453125, 0.00472259521484375, -0.01044464111328125, 0.00490570068359375, 0.024810791015625, -0.0010271072387695312, 0.0199432373046875, -0.056976318359375, 0.06134033203125, -0.03167724609375, 0.0045623779296875, 0.0187225341796875, -0.006366729736328125, 0.0179595947265625, 0.004680633544921875, -0.00760650634765625, 0.00673675537109375, -0.0171966552734375, -0.03936767578125, -0.05841064453125, 0.0074005126953125, 0.00044918060302734375, 0.0125274658203125, 0.00196075439453125, 0.0060577392578125, 0.0030059814453125, 0.03594970703125, 0.017242431640625, -0.0021076202392578125, 0.0015811920166015625, -0.00982666015625, -0.0194091796875, -0.0209197998046875, -0.00428009033203125, -0.0404052734375, -0.0135345458984375, -0.03778076171875, -0.043853759765625, -0.004909515380859375, -0.0253753662109375, 0.01459503173828125, -0.0173797607421875, -0.0126495361328125, -0.07073974609375, -0.01021575927734375, -0.0217742919921875, 0.026336669921875, -0.0179901123046875, 0.004413604736328125, -0.021270751953125, -0.0775146484375, 0.052337646484375, -0.02618408203125, 0.0164947509765625, -0.006649017333984375, 0.09796142578125, 0.006687164306640625, -0.005889892578125, -0.003223419189453125, -0.01459503173828125, 0.048828125, 0.00829315185546875, 0.050689697265625, 0.0711669921875, -0.0255584716796875, 0.0081787109375, 0.047210693359375, -0.042388916015625, 0.005565643310546875, 0.038604736328125, 0.00909423828125, 0.0193023681640625, -0.041412353515625, -0.0205841064453125, 0.059722900390625, -0.01003265380859375, -0.025970458984375, 0.01325225830078125, 0.026123046875, 0.032073974609375, -0.030059814453125, 0.029510498046875, -0.0006651878356933594, 0.00617218017578125, -0.001171112060546875, 0.0294647216796875, 0.0225982666015625, 0.0234527587890625, 0.0011930465698242188, -0.0299224853515625, 0.0008215904235839844, -0.01314544677734375, -0.029693603515625, -0.01351165771484375, -0.00592041015625, 0.0033855438232421875, 0.00606536865234375, -0.004169464111328125, -0.031585693359375, -0.00942230224609375, 0.047943115234375, -0.019134521484375, -0.060394287109375, -0.0188140869140625, 0.00942230224609375, 0.039764404296875, 0.0272216796875, -0.0145263671875, 0.0142974853515625, 0.0301361083984375, -0.003719329833984375, 0.015411376953125, 0.0435791015625, -0.0292205810546875, -0.0166015625, -0.005218505859375, 0.020294189453125, -0.02349853515625, 0.056884765625, 0.033843994140625, -0.01384735107421875, 0.03564453125, -0.0198211669921875, 0.049285888671875, 0.045135498046875, -0.0293426513671875, 0.00577545166015625, 0.06854248046875, -0.0163421630859375, -0.032379150390625, -0.01503753662109375, -0.01174163818359375, -0.025970458984375, 0.01361083984375, 0.00933837890625, -0.007144927978515625, 0.02313232421875, 0.017181396484375, 0.0183868408203125, -0.019134521484375, 0.024444580078125, 0.04705810546875, -0.0399169921875, 0.01245880126953125, 0.018768310546875, -0.01483917236328125, 0.01169586181640625, -0.0114898681640625, 0.0084228515625, -0.0124053955078125, 0.0157012939453125, 0.019073486328125, -0.037353515625, 0.005413055419921875, 0.0022373199462890625, -0.0230255126953125, -0.0213165283203125, 0.0188751220703125, -0.017578125, 0.006763458251953125, -0.0294036865234375, -0.011016845703125, 0.046478271484375, -0.01000213623046875, -0.01203155517578125, -0.03436279296875, 0.014068603515625, -0.005321502685546875, -0.010223388671875, 0.08648681640625, 0.0310821533203125, -0.06585693359375, -0.0042724609375, -0.073486328125, -0.0183563232421875, -0.055084228515625, -0.03070068359375, -0.044219970703125, 0.0198516845703125, 0.01145172119140625, 0.0196075439453125, -0.00199127197265625, -0.02471923828125, -0.04522705078125, 0.0301971435546875, 0.0304718017578125, 0.053863525390625, 0.01552581787109375, 0.0321044921875, 0.0024394989013671875, 0.04925537109375, 0.0174560546875, 0.0175018310546875, -0.04827880859375, -0.03680419921875, 0.00876617431640625, -0.047119140625, -0.024139404296875, 0.003154754638671875, 0.01123046875, 0.004119873046875, -0.023956298828125, 0.002105712890625, 0.00829315185546875, -0.02728271484375, 0.0160369873046875, -0.0173492431640625, 0.00007420778274536133, -0.048309326171875, -0.048004150390625, 0.034698486328125, -0.024169921875, 0.042816162109375, -0.0084228515625, -0.0280609130859375, 0.029815673828125, -0.02978515625, 0.0262908935546875, 0.046478271484375, -0.03826904296875, 0.01433563232421875, 0.040008544921875, -0.012969970703125, 0.0297698974609375, 0.026763916015625, 0.00897216796875, 0.0297698974609375, -0.044036865234375, 0.00701141357421875, 0.0201416015625, 0.039276123046875, -0.0091094970703125, 0.00030922889709472656, 0.042877197265625, -0.022918701171875, 0.0401611328125, 0.1019287109375, 0.08587646484375, -0.1343994140625, 0.0056304931640625, 0.00920867919921875, -0.016754150390625, 0.04248046875, 0.0164642333984375, -0.014068603515625, -0.040802001953125, 0.03302001953125, -0.0699462890625, 0.0013179779052734375, 0.02398681640625, -0.0261383056640625, -0.0196685791015625, -0.051177978515625, 0.002574920654296875, 0.0281982421875, 0.0283355712890625, 0.033843994140625, -0.0194854736328125, 0.02752685546875, -0.0043182373046875, -0.005096435546875, -0.00878143310546875, -0.024932861328125, -0.055694580078125, -0.01143646240234375, -0.03204345703125, -0.02545166015625, 0.0243682861328125, -0.0113372802734375, 0.0172576904296875, 0.0540771484375, -0.0225067138671875, 0.02642822265625, 0.01450347900390625, 0.0042724609375, -0.049713134765625, -0.033050537109375, 0.0229339599609375, 0.06402587890625, -0.0762939453125, 0.03863525390625, -0.01410675048828125, -0.01397705078125, 0.00273895263671875, -0.042510986328125, 0.0291900634765625, -0.028594970703125, -0.01297760009765625, 0.03167724609375, -0.006328582763671875, -0.01084136962890625, 0.00864410400390625, -0.01421356201171875, -0.032257080078125, 0.001613616943359375, -0.01397705078125, -0.038970947265625, 0.00608062744140625, -0.0009150505065917969, -0.046173095703125, 0.08416748046875, 0.00598907470703125, 0.0224151611328125, 0.02593994140625, 0.0244140625, -0.03704833984375, -0.0062713623046875, -0.039642333984375, 0.043701171875, -0.01279449462890625, -0.00405120849609375, -0.05157470703125, 0.0248870849609375, -0.040374755859375, -0.0207977294921875, 0.10430908203125, 0.040557861328125, -0.047637939453125, -0.05767822265625, -0.00043582916259765625, 0.027587890625, -0.018585205078125, 0.056915283203125, 0.012664794921875, 0.054443359375, 0.035675048828125, -0.0265045166015625, 0.040985107421875, -0.0275421142578125, -0.01727294921875, 0.046112060546875, 0.01018524169921875, 0.025543212890625, -0.007633209228515625, 0.0130462646484375, 0.0118255615234375, -0.0216522216796875, 0.00489044189453125, -0.01389312744140625, -0.004833221435546875, 0.016998291015625, 0.032867431640625, -0.05499267578125, -0.05340576171875, -0.01409912109375, 0.02508544921875, 0.01898193359375, 0.037445068359375, 0.0269622802734375, 0.005603790283203125, 0.03692626953125, 0.031524658203125, 0.02386474609375, 0.050445556640625, 0.0024890899658203125, 0.0096588134765625, 0.048126220703125, 0.011810302734375, 0.00007426738739013672, 0.0300140380859375, 0.06512451171875, 0.0269012451171875, -0.030853271484375, 0.015655517578125, 0.0164337158203125, 0.0257568359375, -0.00460052490234375, -0.038818359375, -0.001300811767578125, -0.02490234375, 0.00250244140625, -0.01959228515625, -0.00460052490234375, 0.0270843505859375, -0.01483154296875, 0.0060272216796875, 0.0074310302734375, 0.0029506683349609375, 0.0182647705078125, -0.0106658935546875, -0.0255584716796875, 0.0188751220703125, -0.021514892578125, 0.01171112060546875, 0.019744873046875, 0.06591796875, 0.0174560546875, -0.01116943359375, 0.016571044921875, -0.0087127685546875, 0.01290130615234375, -0.07220458984375, -0.07122802734375, 0.040863037109375, 0.0570068359375, 0.01389312744140625, -0.005748748779296875, 0.031341552734375, 0.0130157470703125, -0.028045654296875, -0.006183624267578125, -0.0171966552734375, -0.01558685302734375, -0.05145263671875, -0.0110931396484375, -0.0290069580078125, 0.0147247314453125, 0.005039215087890625, 0.00493621826171875, 0.057708740234375, -0.00809478759765625, -0.0268402099609375, 0.033477783203125, -0.005771636962890625, -0.01018524169921875, 0.003875732421875, -0.0097503662109375, 0.004840850830078125, -0.01473236083984375, -0.0526123046875, 0.0120086669921875, -0.0577392578125, -0.032196044921875, 0.016754150390625, 0.021148681640625, -0.02056884765625, 0.0357666015625, -0.00865936279296875, 0.0003185272216796875, 0.00734710693359375, 0.0002651214599609375, 0.00995635986328125, 0.00397491455078125, 0.0005311965942382812, -0.0002574920654296875, -0.0394287109375, -0.040557861328125, -0.02484130859375, 0.061065673828125, -0.007476806640625, 0.054901123046875, -0.037567138671875, 0.0233306884765625, 0.0018291473388671875, 0.06884765625, -0.09320068359375, -0.0290679931640625, 0.046844482421875, -0.05072021484375, -0.008758544921875, 0.02154541015625, 0.00848388671875, 0.0301361083984375, 0.0238494873046875, -0.0338134765625, 0.0121307373046875, -0.0193328857421875, -0.0017385482788085938, -0.0263824462890625, -0.0211639404296875, -0.0289459228515625, -0.003261566162109375, 0.00957489013671875, 0.0125274658203125, -0.010498046875, -0.044647216796875, -0.020660400390625, 0.014312744140625, 0.006130218505859375, -0.04248046875, 0.002593994140625, -0.0234375, -0.007427215576171875, 0.0181732177734375, 0.007476806640625, -0.004482269287109375, 0.045135498046875, -0.0031681060791015625, -0.0044097900390625, 0.0254669189453125, 0.01129150390625, 0.040557861328125, -0.0457763671875, -0.04412841796875, -0.040283203125, -0.0016918182373046875, -0.0267333984375, 0.0010833740234375, -0.045562744140625, 0.0034732818603515625, -0.00481414794921875, 0.0210418701171875, -0.01383209228515625, 0.0023899078369140625, -0.025299072265625, 0.0006847381591796875, 0.0015840530395507812, -0.061737060546875, -0.05419921875, -0.0262298583984375, -0.0185089111328125, -0.014312744140625, -0.0184326171875, 0.00022423267364501953, 0.004241943359375, 0.01200103759765625, -0.048004150390625, -0.026885986328125, 0.0016641616821289062, 0.019378662109375, -0.0288543701171875, 0.0240478515625, -0.0350341796875, -0.030059814453125, 0.006679534912109375, 0.023345947265625, 0.034332275390625, -0.027801513671875, -0.0152435302734375, 0.045684814453125, 0.0232391357421875, 0.07281494140625, -0.00624847412109375, -0.027801513671875, -0.023223876953125, 0.00916290283203125, 0.01361846923828125, -0.03546142578125, -0.009490966796875, -0.01409149169921875, -0.0259246826171875, 0.0210723876953125, -0.006404876708984375, 0.03265380859375, -0.0182647705078125, -0.039398193359375, 0.029571533203125, 0.008148193359375, -0.04046630859375, -0.0016803741455078125, -0.033111572265625, -0.0194091796875, 0.0413818359375, 0.0214385986328125, -0.030517578125, -0.04437255859375, 0.0051116943359375, -0.0003719329833984375, 0.048065185546875, 0.0109710693359375, -0.0198211669921875, -0.0169830322265625, 0.007495880126953125, 0.01214599609375, -0.0186920166015625, -0.0160369873046875, 0.0159912109375, 0.00768280029296875, 0.044830322265625, -0.0171966552734375, -0.033111572265625, -0.0079498291015625, 0.004718780517578125, -0.0273284912109375, -0.0191802978515625, -0.037689208984375, -0.0177001953125, 0.09619140625, 0.076171875, 0.0242919921875, -0.03875732421875, 0.062225341796875, -0.0299835205078125, -0.08746337890625, 0.0178985595703125, 0.033050537109375, -0.023406982421875, 0.015869140625, 0.053131103515625, -0.0259246826171875, 0.011810302734375, -0.04315185546875, -0.06005859375, 0.0031261444091796875, -0.06866455078125, 0.0014476776123046875, -0.040069580078125, -0.020751953125, 0.046875, -0.0313720703125, -0.00664520263671875, 0.02874755859375, 0.01003265380859375, 0.01309967041015625, 0.06805419921875, 0.01220703125, 0.0017185211181640625, -0.01739501953125, 0.0023250579833984375, 0.007221221923828125, 0.011138916015625, 0.003421783447265625, -0.0172271728515625, 0.00893402099609375, 0.0238189697265625, -0.022796630859375, 0.0172576904296875, 0.00722503662109375, 0.0560302734375, -0.0209197998046875, 0.09979248046875, -0.00394439697265625, 0.0250701904296875, -0.012451171875, 0.0251922607421875, -0.02655029296875, 0.0037078857421875, -0.00027108192443847656, -0.021575927734375, 0.00482940673828125, 0.0036296844482421875, -0.0193939208984375, -0.018035888671875, 0.006191253662109375, -0.030517578125, -0.01934814453125, 0.006389617919921875 ]
d6b98a4be1866f557a3170aa16ae8de947775375
Wordpress Stackexchange Q: How to show only manual / custom excerpts? I know how to add the more-link in the post editor to show the excerpt of post instead of the full post. In this method excerpts created automatically. If I want to manually enter the excerpt I have to use the field excerpt (after showing it from screen options). I expected excerpt will be shown on front page like the method above, but instead the excerpt is shown over the full post, both are displayed !! I need the manual excerpt (like in method 2) but to display only the excerpt on the front page without the full post. How to achieve that (without coding if possible) for the end-user? Notes: * I'm using the latest version of WP (4.4.2). * Theme used is "Twenty Sixteen". * Default plugins only are installed. A: You can use has_excerpt() for this, which checks whether the post has a manually set excerpt. The sample code below uses this function: <?php if ( has_excerpt() ) : // Only show custom excerpts not autoexcerpts ?> <span class="entry-subtitle"><?php echo get_the_excerpt(); ?></span> <?php endif; ?>
Q: How to show only manual / custom excerpts? I know how to add the more-link in the post editor to show the excerpt of post instead of the full post. In this method excerpts created automatically. If I want to manually enter the excerpt I have to use the field excerpt (after showing it from screen options). I expected excerpt will be shown on front page like the method above, but instead the excerpt is shown over the full post, both are displayed !! I need the manual excerpt (like in method 2) but to display only the excerpt on the front page without the full post. How to achieve that (without coding if possible) for the end-user? Notes: * I'm using the latest version of WP (4.4.2). * Theme used is "Twenty Sixteen". * Default plugins only are installed. A: You can use has_excerpt() for this, which checks whether the post has a manually set excerpt. The sample code below uses this function: <?php if ( has_excerpt() ) : // Only show custom excerpts not autoexcerpts ?> <span class="entry-subtitle"><?php echo get_the_excerpt(); ?></span> <?php endif; ?> A: Found out a quick and easy way to fix it. Follow these instructions: * *Create a new post *Do not introduce anything at the "Excerpt" field (in fact, disable Advanced Editing) *Write your post *Introduce the following tag <!--more--> at the place where you want the text to break And there you have it! Your post should now have something like (more...) or (read everything...) at the place where you included the tag. I am assuming you are still running wordpress with the php the_content tag in place. If you want to change what's inside the brackets, just go to Presentation>Theme Editor and edit the Main Template, and then find the_content tag and change it to something like: <?php the_content(__('(hey! Why not read the rest of this message, since you got this far?)')); ?> Hope this helps. Cheers. A: You've got the most useful part to your answer from Vasim with $post->post_excerpt. Then you need a test of the type of page you're in, i.e. if in single post show the post's content, if in index or archive, show only the post_excerpt. A: First of all, did you create a child theme? Because doing this in a Parent theme the changes will be 'lost' as soon it will be updated! Steps to take: * *Assuming you have a child theme or else you create one like shown here. *Create also a folder in that child-theme named template-parts *Copy following 2 files into that folder(from the parent template-parts folder): content.php and content-single.php *Open content.php and you see: *line 27 the_content( sprintf( Remove this line or add // in front of it *line 28 __( 'Continue reading bla bla, Remove it or add // in front of it *Line 29 get_the_title() Add a semicolon behind it like this get_the_title(); *Line 30 ) ); Remove it or add // in front of it *Save this file now *Open content-single.php *On line 16 you see <?php twentysixteen_excerpt(); ?> Remove this line or do like this <?php //twentysixteen_excerpt(); ?> (Add 2 backslashes) *Save this file now Now you activate in the admin panel Tab Appearance/Themes the child-theme you created. If I have been correct and you did as shown, you have what you want :) From now on add/edit all you want in functions.php and style.css IN that child-theme (and of course you can add other files also in that child-theme Note: I have made just a quick test with changes as shown, but...if some still is messing up, let it know. Cheers A: For the record and for anyone who comes next. I found the issue. Although the excerpts is a native WordPress feature it is not supported -in the right way- by the "official" "pre-installed" themes like the twenty-xxx series. Not Supporting (in the right way) a native feature isn't a common sense!!! It is a bad behavior of the official theme to display the excerpt above the full-post!!. Excerpts supported correctly by some third party themes like FlatBox: https://wordpress.org/themes/flatbox/ For whom tried to help me I appreciate your effort and thank you.
wordpress
{ "language": "en", "length": 698, "provenance": "stackexchange_00019.jsonl.gz:463073", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/217272" }
[ 0.037017822265625, -0.0186004638671875, 0.00676727294921875, 0.01145172119140625, -0.020050048828125, -0.041351318359375, 0.049468994140625, -0.031158447265625, -0.0202484130859375, 0.025115966796875, -0.0196990966796875, 0.00695037841796875, -0.002246856689453125, -0.022186279296875, -0.00667572021484375, -0.0472412109375, 0.028411865234375, -0.042083740234375, 0.0133819580078125, -0.01708984375, 0.04962158203125, -0.005275726318359375, 0.013763427734375, 0.012603759765625, 0.0087738037109375, -0.0169830322265625, 0.046417236328125, -0.01079559326171875, 0.006984710693359375, -0.01348114013671875, 0.0165863037109375, -0.00992584228515625, 0.0200958251953125, 0.041778564453125, -0.05804443359375, 0.01003265380859375, 0.01204681396484375, 0.01203155517578125, -0.0087127685546875, 0.03875732421875, 0.00328826904296875, 0.00788116455078125, -0.07940673828125, 0.024322509765625, -0.04620361328125, -0.0253143310546875, -0.0254669189453125, -0.0300750732421875, -0.00914764404296875, -0.004322052001953125, 0.01947021484375, 0.041473388671875, 0.02215576171875, 0.023406982421875, -0.007171630859375, 0.0113372802734375, 0.00286102294921875, -0.029449462890625, 0.03167724609375, -0.0237274169921875, -0.00261688232421875, -0.0264739990234375, 0.0287322998046875, 0.004184722900390625, -0.005527496337890625, 0.009185791015625, -0.04119873046875, 0.0106658935546875, -0.035491943359375, -0.01125335693359375, 0.0178070068359375, -0.056182861328125, -0.00010156631469726562, -0.04736328125, -0.04144287109375, 0.044891357421875, -0.033447265625, -0.0443115234375, 0.0119476318359375, -0.021728515625, -0.0270843505859375, -0.0017347335815429688, -0.030609130859375, -0.05206298828125, 0.0207366943359375, -0.0223236083984375, -0.0309906005859375, 0.0023651123046875, 0.00682830810546875, -0.0093994140625, -0.005168914794921875, -0.026092529296875, 0.021331787109375, 0.024993896484375, -0.0004839897155761719, -0.040435791015625, 0.01052093505859375, 0.051513671875, -0.02069091796875, -0.0038299560546875, -0.0130157470703125, -0.01287841796875, 0.030059814453125, -0.049591064453125, 0.003032684326171875, 0.01947021484375, 0.0015954971313476562, -0.003932952880859375, 0.0223541259765625, 0.0256195068359375, -0.0012960433959960938, 0.0163726806640625, -0.007465362548828125, -0.055816650390625, -0.01151275634765625, 0.050018310546875, -0.002655029296875, -0.01372528076171875, 0.028289794921875, -0.0013856887817382812, 0.007282257080078125, 0.0455322265625, -0.004840850830078125, -0.04364013671875, -0.0084381103515625, -0.00008434057235717773, 0.009033203125, -0.06292724609375, 0.0252838134765625, 0.005626678466796875, -0.032470703125, -0.00392913818359375, 0.0413818359375, 0.03375244140625, 0.02490234375, -0.00455474853515625, -0.01433563232421875, 0.0172119140625, -0.01129150390625, -0.005401611328125, -0.0064697265625, -0.0312347412109375, 0.01219940185546875, -0.004673004150390625, -0.03729248046875, 0.046142578125, 0.0303802490234375, -0.01026153564453125, -0.02386474609375, -0.0237274169921875, -0.05517578125, -0.0019044876098632812, 0.05096435546875, -0.00911712646484375, -0.03955078125, -0.058868408203125, -0.003925323486328125, -0.0254974365234375, 0.00888824462890625, -0.044525146484375, 0.04669189453125, -0.01204681396484375, -0.05633544921875, -0.0199737548828125, -0.042724609375, 0.004055023193359375, -0.012176513671875, -0.0128021240234375, 0.027557373046875, 0.0301971435546875, 0.03155517578125, -0.034088134765625, 0.0227813720703125, 0.00804901123046875, -0.0241546630859375, 0.0017910003662109375, 0.007472991943359375, -0.0218963623046875, 0.0211639404296875, 0.053802490234375, 0.0143890380859375, -0.0016384124755859375, 0.0419921875, -0.01560211181640625, -0.054962158203125, 0.0367431640625, 0.00818634033203125, 0.0970458984375, 0.0296783447265625, 0.02630615234375, -0.01654052734375, -0.0225067138671875, -0.02276611328125, -0.0301055908203125, -0.0178375244140625, -0.035614013671875, 0.00787353515625, -0.0285186767578125, -0.0150146484375, 0.06121826171875, 0.031890869140625, -0.0287933349609375, 0.047149658203125, -0.0305023193359375, -0.042327880859375, -0.0025119781494140625, -0.0183563232421875, 0.03546142578125, 0.01837158203125, 0.04559326171875, 0.00792694091796875, 0.0035686492919921875, -0.0024814605712890625, -0.057403564453125, -0.04290771484375, -0.00848388671875, -0.0007929801940917969, 0.030487060546875, 0.005321502685546875, 0.01715087890625, 0.06256103515625, -0.0562744140625, 0.05328369140625, 0.0384521484375, 0.072998046875, -0.059051513671875, 0.00786590576171875, -0.0660400390625, 0.052215576171875, -0.0172271728515625, -0.030426025390625, 0.04656982421875, 0.04254150390625, 0.01044464111328125, -0.064453125, -0.0096893310546875, -0.005687713623046875, -0.006214141845703125, 0.004669189453125, 0.05596923828125, 0.0281219482421875, 0.055999755859375, -0.00926971435546875, -0.014556884765625, 0.06304931640625, -0.032318115234375, 0.01873779296875, -0.0149383544921875, -0.031005859375, -0.0232391357421875, -0.00589752197265625, 0.0077362060546875, 0.043609619140625, -0.0125885009765625, 0.007289886474609375, 0.04510498046875, 0.0088653564453125, -0.0027618408203125, -0.00047326087951660156, 0.00980377197265625, 0.00904083251953125, -0.00897979736328125, -0.0295562744140625, -0.00536346435546875, 0.031158447265625, 0.025360107421875, 0.05145263671875, 0.046051025390625, -0.04437255859375, -0.00638580322265625, 0.0162506103515625, 0.07708740234375, 0.005084991455078125, 0.0001690387725830078, 0.01183319091796875, -0.01428985595703125, 0.0025157928466796875, -0.0037670135498046875, 0.00980377197265625, -0.02703857421875, -0.016632080078125, -0.00689697265625, -0.00659942626953125, -0.0051422119140625, 0.0139007568359375, -0.10516357421875, 0.0083160400390625, 0.0256805419921875, -0.01451873779296875, -0.042572021484375, -0.001430511474609375, 0.01558685302734375, -0.04571533203125, 0.0246429443359375, -0.0105133056640625, -0.026641845703125, -0.0238494873046875, -0.07171630859375, 0.07647705078125, -0.0667724609375, 0.06689453125, 0.08404541015625, -0.04962158203125, 0.05377197265625, 0.00736236572265625, -0.042083740234375, -0.01092529296875, 0.007061004638671875, -0.01629638671875, -0.00849151611328125, -0.0556640625, 0.0113677978515625, 0.026336669921875, 0.07177734375, -0.032928466796875, -0.03521728515625, -0.0195159912109375, 0.056488037109375, -0.02716064453125, 0.00739288330078125, 0.018218994140625, -0.048431396484375, -0.021514892578125, 0.01058197021484375, -0.0438232421875, -0.0124969482421875, 0.041046142578125, -0.0109405517578125, -0.0012569427490234375, -0.033966064453125, -0.02154541015625, -0.053619384765625, -0.0677490234375, -0.0269012451171875, 0.022003173828125, 0.0158843994140625, 0.0057830810546875, 0.06890869140625, 0.0186309814453125, -0.041900634765625, 0.0038852691650390625, -0.01445770263671875, -0.03692626953125, 0.0160675048828125, 0.048492431640625, -0.047607421875, -0.00447845458984375, 0.0235748291015625, 0.01132965087890625, 0.01444244384765625, -0.01284027099609375, -0.034271240234375, -0.0246429443359375, -0.01168060302734375, -0.0003743171691894531, 0.024017333984375, 0.021453857421875, 0.0286865234375, 0.037139892578125, -0.0196075439453125, -0.033905029296875, 0.0004420280456542969, -0.062469482421875, -0.0164794921875, 0.047393798828125, -0.01708984375, -0.045501708984375, 0.00852203369140625, 0.004119873046875, 0.0155029296875, 0.055267333984375, -0.0299530029296875, -0.00269317626953125, -0.0126495361328125, -0.01898193359375, -0.0284881591796875, 0.01528167724609375, -0.0114288330078125, 0.0271759033203125, 0.002269744873046875, 0.0272216796875, -0.00975799560546875, 0.0100860595703125, -0.0478515625, -0.061553955078125, 0.01288604736328125, -0.06207275390625, -0.0025234222412109375, -0.002532958984375, -0.01108551025390625, 0.0361328125, 0.089599609375, -0.053955078125, -0.021453857421875, 0.0036563873291015625, 0.0011034011840820312, 0.019989013671875, -0.02752685546875, -0.024749755859375, -0.0206298828125, -0.03668212890625, -0.002655029296875, -0.033599853515625, 0.0008211135864257812, -0.039825439453125, 0.01354217529296875, -0.031280517578125, -0.01837158203125, 0.04412841796875, -0.0023288726806640625, -0.014068603515625, 0.026702880859375, -0.0137481689453125, -0.013916015625, -0.0428466796875, -0.004062652587890625, -0.07440185546875, -0.01678466796875, -0.0009632110595703125, 0.0533447265625, -0.00994110107421875, 0.0076141357421875, -0.02447509765625, 0.053131103515625, 0.0274658203125, -0.0234222412109375, 0.01306915283203125, -0.0247802734375, 0.00510406494140625, 0.000019431114196777344, -0.00079345703125, -0.0301666259765625, -0.01361846923828125, -0.043212890625, -0.037872314453125, 0.020294189453125, -0.0164031982421875, 0.07391357421875, 0.0086822509765625, 0.00864410400390625, -0.0281982421875, -0.039764404296875, -0.0251312255859375, -0.01273345947265625, 0.000010013580322265625, -0.032501220703125, -0.0159454345703125, -0.025421142578125, 0.0233306884765625, 0.0265045166015625, -0.0298004150390625, 0.01320648193359375, 0.034454345703125, 0.0170440673828125, -0.023101806640625, -0.051727294921875, 0.037689208984375, 0.044158935546875, 0.0138702392578125, 0.00444793701171875, 0.00937652587890625, -0.04779052734375, 0.0391845703125, 0.01690673828125, -0.0074005126953125, 0.005779266357421875, 0.004306793212890625, 0.0007963180541992188, -0.034637451171875, 0.0252532958984375, -0.01456451416015625, 0.03228759765625, -0.015228271484375, -0.01141357421875, -0.0114898681640625, 0.0237884521484375, 0.041046142578125, -0.00795745849609375, 0.04888916015625, -0.012603759765625, 0.002475738525390625, -0.0166015625, 0.061309814453125, 0.0193023681640625, 0.028045654296875, 0.008697509765625, -0.0078582763671875, 0.02642822265625, 0.0057220458984375, 0.039215087890625, -0.0200958251953125, 0.02581787109375, 0.006931304931640625, 0.0352783203125, -0.00760650634765625, 0.0293426513671875, 0.0094757080078125, 0.00984954833984375, -0.0499267578125, -0.0731201171875, -0.0555419921875, 0.00681304931640625, 0.0413818359375, 0.062286376953125, 0.0020294189453125, 0.035003662109375, 0.039520263671875, 0.01244354248046875, 0.002666473388671875, 0.006195068359375, 0.00605010986328125, -0.02978515625, 0.0179901123046875, 0.0151519775390625, -0.004726409912109375, -0.00689697265625, 0.08209228515625, -0.0306396484375, 0.05291748046875, -0.003864288330078125, -0.005687713623046875, -0.017730712890625, 0.040924072265625, 0.020416259765625, 0.00835418701171875, -0.0021076202392578125, 0.003932952880859375, 0.015899658203125, -0.039947509765625, -0.041046142578125, 0.027008056640625, 0.048309326171875, -0.024627685546875, -0.017730712890625, 0.0014925003051757812, -0.0272979736328125, -0.037689208984375, 0.07550048828125, 0.01464080810546875, -0.0587158203125, -0.05218505859375, 0.0081024169921875, 0.06591796875, 0.00445556640625, -0.02490234375, 0.02838134765625, -0.0015592575073242188, 0.01165771484375, 0.0145263671875, -0.057159423828125, 0.03240966796875, 0.03912353515625, 0.01251983642578125, -0.01477813720703125, -0.016571044921875, 0.010528564453125, -0.017364501953125, -0.012359619140625, -0.0036163330078125, 0.057037353515625, -0.0290374755859375, -0.0279541015625, 0.0170440673828125, -0.0030460357666015625, -0.05810546875, 0.0226898193359375, 0.043670654296875, 0.02410888671875, -0.049774169921875, 0.0101776123046875, -0.043487548828125, -0.005649566650390625, -0.015777587890625, -0.047698974609375, -0.043121337890625, -0.0170440673828125, 0.0015859603881835938, 0.0211639404296875, -0.0189056396484375, -0.04931640625, -0.0305023193359375, 0.0244140625, 0.0302581787109375, 0.035430908203125, -0.0030231475830078125, 0.040374755859375, -0.00873565673828125, 0.042388916015625, 0.00531005859375, 0.002246856689453125, -0.0180511474609375, -0.0231170654296875, -0.0223388671875, -0.031341552734375, -0.00666046142578125, 0.026153564453125, -0.0124664306640625, 0.0232086181640625, 0.04388427734375, 0.01436614990234375, -0.0296783447265625, 0.01763916015625, 0.0184783935546875, -0.00524139404296875, 0.0102691650390625, 0.046661376953125, -0.0196685791015625, -0.00714111328125, 0.006504058837890625, 0.0283966064453125, -0.0005674362182617188, 0.01149749755859375, 0.007717132568359375, 0.0009250640869140625, 0.024322509765625, -0.0275421142578125, -0.0191192626953125, 0.031494140625, 0.05865478515625, -0.00933074951171875, 0.057830810546875, 0.0291748046875, 0.01177978515625, 0.037841796875, 0.0404052734375, -0.0499267578125, 0.005573272705078125, 0.039581298828125, 0.004795074462890625, -0.019378662109375, -0.00231170654296875, -0.01549530029296875, 0.0014352798461914062, 0.072509765625, 0.06463623046875, -0.06854248046875, -0.0004839897155761719, 0.01690673828125, -0.018310546875, 0.01275634765625, 0.0105743408203125, 0.0081329345703125, -0.0016546249389648438, 0.0207977294921875, -0.041595458984375, -0.006694793701171875, 0.015045166015625, -0.0252227783203125, 0.004138946533203125, -0.039947509765625, 0.059722900390625, 0.0176544189453125, -0.037994384765625, 0.04266357421875, 0.021392822265625, 0.036590576171875, -0.01947021484375, -0.01207733154296875, -0.00418853759765625, -0.0246734619140625, -0.0396728515625, 0.00036406517028808594, -0.02606201171875, 0.031097412109375, 0.02728271484375, 0.0172882080078125, 0.00893402099609375, 0.01715087890625, -0.01381683349609375, 0.0103302001953125, -0.00562286376953125, -0.018951416015625, -0.05096435546875, -0.0189208984375, 0.01438140869140625, 0.05609130859375, 0.0125885009765625, 0.039215087890625, 0.01143646240234375, -0.04705810546875, -0.0199127197265625, -0.0114898681640625, 0.10699462890625, -0.03485107421875, -0.0236968994140625, 0.0159912109375, 0.0006871223449707031, -0.0183868408203125, -0.0224151611328125, 0.0225067138671875, -0.0648193359375, 0.0186920166015625, -0.0048065185546875, 0.0183258056640625, -0.041259765625, -0.0249481201171875, -0.043548583984375, 0.127197265625, 0.00157928466796875, -0.00024890899658203125, -0.01471710205078125, 0.06658935546875, -0.00829315185546875, 0.0732421875, -0.04486083984375, 0.0631103515625, 0.0092926025390625, 0.01824951171875, -0.058929443359375, 0.00013065338134765625, -0.00738525390625, 0.0210113525390625, 0.028564453125, -0.003566741943359375, 0.03814697265625, -0.004634857177734375, 0.0220489501953125, 0.0128173828125, -0.03826904296875, -0.0038299560546875, 0.0180511474609375, 0.043243408203125, 0.0731201171875, -0.0229949951171875, 0.045074462890625, 0.00460052490234375, -0.0007238388061523438, 0.044891357421875, 0.005016326904296875, 0.005001068115234375, 0.0210113525390625, -0.01163482666015625, -0.049896240234375, 0.0031299591064453125, 0.0318603515625, -0.052215576171875, 0.0211334228515625, 0.04803466796875, 0.06390380859375, -0.0948486328125, -0.0283966064453125, -0.029296875, 0.053955078125, -0.0031185150146484375, 0.052764892578125, 0.00458526611328125, -0.004261016845703125, 0.06573486328125, 0.01111602783203125, 0.02288818359375, 0.0235748291015625, -0.00855255126953125, -0.01806640625, 0.03485107421875, 0.02703857421875, 0.008880615234375, 0.0037212371826171875, 0.03533935546875, -0.020965576171875, -0.01543426513671875, -0.03265380859375, 0.0217437744140625, -0.0125274658203125, -0.036895751953125, 0.01502227783203125, -0.047027587890625, 0.0275115966796875, 0.03179931640625, -0.00669097900390625, -0.0096435546875, -0.0166778564453125, 0.0203704833984375, 0.005336761474609375, 0.0251312255859375, -0.00882720947265625, -0.004375457763671875, -0.059661865234375, 0.01226043701171875, 0.046661376953125, 0.0261688232421875, -0.0032367706298828125, 0.06146240234375, 0.07171630859375, 0.0107421875, -0.012359619140625, 0.058837890625, -0.0068359375, 0.01702880859375, -0.01047515869140625, -0.017059326171875, -0.035369873046875, 0.0135040283203125, -0.00969696044921875, -0.048980712890625, -0.0074615478515625, 0.000023365020751953125, -0.03680419921875, -0.023284912109375, 0.003307342529296875, -0.017669677734375, -0.00893402099609375, -0.050384521484375, -0.00106048583984375, 0.018402099609375, -0.001262664794921875, 0.0233306884765625, 0.006877899169921875, 0.05059814453125, -0.034912109375, 0.03839111328125, 0.0010251998901367188, -0.00867462158203125, -0.004436492919921875, -0.024810791015625, 0.0230255126953125, -0.000865936279296875, -0.0712890625, 0.003997802734375, -0.050079345703125, -0.0716552734375, 0.037628173828125, 0.046051025390625, -0.0229949951171875, 0.0029735565185546875, -0.023529052734375, 0.0313720703125, -0.0010347366333007812, -0.060272216796875, 0.02642822265625, 0.0193634033203125, -0.0026798248291015625, 0.0110626220703125, -0.050628662109375, -0.0274505615234375, -0.0069122314453125, 0.0216217041015625, 0.017913818359375, 0.08074951171875, -0.0010766983032226562, 0.0166473388671875, 0.0036754608154296875, 0.0186309814453125, -0.03759765625, -0.0248260498046875, 0.016357421875, -0.03643798828125, 0.010528564453125, -0.0005092620849609375, -0.052886962890625, 0.0675048828125, 0.0262451171875, 0.00702667236328125, 0.0753173828125, 0.0070343017578125, -0.018890380859375, -0.057220458984375, 0.0109405517578125, -0.0284271240234375, -0.03753662109375, -0.04693603515625, 0.000006318092346191406, -0.0031490325927734375, 0.00830841064453125, -0.00689697265625, 0.027801513671875, 0.034515380859375, -0.01033782958984375, 0.0152435302734375, -0.005710601806640625, 0.039154052734375, 0.05291748046875, -0.00653839111328125, -0.009765625, 0.01363372802734375, -0.016754150390625, 0.0299072265625, 0.00008237361907958984, 0.0318603515625, 0.01177978515625, -0.0246124267578125, -0.0018529891967773438, -0.01263427734375, 0.03631591796875, -0.04052734375, 0.0020771026611328125, -0.00420379638671875, 0.0184478759765625, 0.027313232421875, -0.030426025390625, -0.017791748046875, -0.028045654296875, -0.006580352783203125, 0.0199737548828125, -0.0240020751953125, -0.038818359375, -0.073974609375, -0.0178070068359375, -0.001056671142578125, -0.00818634033203125, -0.0269622802734375, -0.035247802734375, 0.0236358642578125, 0.0889892578125, -0.0782470703125, 0.0196990966796875, 0.0024433135986328125, 0.018402099609375, -0.034210205078125, 0.0226593017578125, -0.0299530029296875, -0.00789642333984375, -0.003997802734375, 0.007415771484375, 0.03863525390625, -0.018035888671875, -0.025848388671875, 0.0055084228515625, 0.006275177001953125, 0.055145263671875, 0.0174713134765625, -0.018218994140625, -0.00765228271484375, 0.014495849609375, -0.021728515625, -0.041534423828125, 0.0176239013671875, -0.04095458984375, -0.000701904296875, 0.01474761962890625, -0.0093994140625, 0.005901336669921875, -0.024749755859375, -0.020721435546875, 0.0193023681640625, 0.00818634033203125, -0.038665771484375, -0.01404571533203125, -0.01580810546875, -0.0173797607421875, 0.0261077880859375, 0.002948760986328125, -0.02703857421875, -0.0151824951171875, 0.017913818359375, 0.0195770263671875, 0.04058837890625, 0.0017986297607421875, 0.0171356201171875, -0.02154541015625, 0.01392364501953125, 0.01009368896484375, -0.00644683837890625, -0.01214599609375, 0.0008382797241210938, -0.0094757080078125, 0.022491455078125, -0.048004150390625, -0.04937744140625, -0.0183563232421875, 0.0167388916015625, -0.0096435546875, -0.016387939453125, -0.0220794677734375, -0.0214996337890625, 0.0013055801391601562, 0.05755615234375, -0.00264739990234375, -0.01366424560546875, 0.031951904296875, 0.00960540771484375, -0.0263519287109375, 0.0237274169921875, 0.0048828125, -0.0010881423950195312, 0.002880096435546875, -0.0009489059448242188, -0.023162841796875, -0.0084075927734375, 0.001895904541015625, -0.06610107421875, -0.005466461181640625, -0.041900634765625, 0.0189971923828125, -0.107666015625, 0.01494598388671875, 0.0462646484375, -0.046966552734375, -0.042694091796875, 0.006946563720703125, -0.0236053466796875, -0.013336181640625, -0.0281219482421875, -0.00580596923828125, 0.00843048095703125, -0.03497314453125, 0.0024509429931640625, 0.01079559326171875, 0.041748046875, -0.01983642578125, -0.01154327392578125, -0.0002582073211669922, 0.0247039794921875, -0.0095367431640625, 0.018585205078125, -0.0160675048828125, 0.02447509765625, -0.004985809326171875, 0.01519775390625, -0.0257415771484375, -0.0024204254150390625, -0.0123443603515625, 0.007411956787109375, -0.005634307861328125, 0.020111083984375, 0.0287933349609375, -0.027679443359375, 0.0225372314453125, -0.01363372802734375, -0.033233642578125, 0.016357421875, -0.042083740234375, -0.034210205078125, -0.041290283203125, -0.004795074462890625 ]
753f9462260edff6a9d9a800bb7af530219653a5
Wordpress Stackexchange Q: Get post count in wp rest API v2 and get all categories I want to get the count of my posts. I think use wp-json/wp/v2/categories?page=1 >> count it's a good way to go. But using above solution is not a cup of tea in term of speed and i don't know how to get all the categories by one call.(if u know it would be so helpful if u share it). is there any way/tutorial/... enable me to add the post count in a main call? like this route: wp-json/wp/v2/posts.... A: In case it's not clear how to actually access the header (with the post count) from the Ajax request, following is how to do it with jQuery .get. The key is that the callback function has an optional parameter containing the request, which includes the headers. $.get( 'http://demo.wp-api.org/wp-json/wp/v2/posts', function( data, status, request ) { numPosts = request.getResponseHeader('x-wp-total'); console.log( numPosts ); //outputs number of posts to console });
Q: Get post count in wp rest API v2 and get all categories I want to get the count of my posts. I think use wp-json/wp/v2/categories?page=1 >> count it's a good way to go. But using above solution is not a cup of tea in term of speed and i don't know how to get all the categories by one call.(if u know it would be so helpful if u share it). is there any way/tutorial/... enable me to add the post count in a main call? like this route: wp-json/wp/v2/posts.... A: In case it's not clear how to actually access the header (with the post count) from the Ajax request, following is how to do it with jQuery .get. The key is that the callback function has an optional parameter containing the request, which includes the headers. $.get( 'http://demo.wp-api.org/wp-json/wp/v2/posts', function( data, status, request ) { numPosts = request.getResponseHeader('x-wp-total'); console.log( numPosts ); //outputs number of posts to console }); A: The WP Rest API sends the total count(found_posts) property from WP_Query. in a header called X-WP-Total. FOR POSTS: you can make a call to posts endpoint of the REST API http://demo.wp-api.org/wp-json/wp/v2/posts The value for posts count is returned in the header as X-WP-Total. Below is a sample response from the hosted demo Access-Control-Allow-Headers:Authorization, Content-Type Access-Control-Expose-Headers:X-WP-Total, X-WP-TotalPages Allow:GET Cache-Control:max-age=300, must-revalidate Connection:keep-alive Content-Encoding:gzip Content-Type:application/json; charset=UTF-8 Date:Wed, 28 Dec 2016 12:48:50 GMT Last-Modified:Wed, 28 Dec 2016 12:48:50 GMT Link:<https://demo.wp-api.org/wp-json/wp/v2/posts?page=2>; rel="next" Server:nginx/1.4.6 (Ubuntu) Transfer-Encoding:chunked Vary:Cookie Via:1.1 dfa2cbb51ec90b28f03125592b887c7d.cloudfront.net (CloudFront) X-Amz-Cf-Id:ri4C3e-AdixwqGv_wYNdGRq9ChsIroy1Waxe2GqkiTqbk4CpiSIQfw== X-Batcache:MISS X-Cache:Miss from cloudfront X-Content-Type-Options:nosniff X-EC2-Instance-Id:i-198c7e94 X-Powered-By:PHP/7.0.11-1+deb.sury.org~trusty+1 X-Robots-Tag:noindex X-WP-Total:71 X-WP-TotalPages:8 NOTE: You can also limit the posts per page you're fetching to 1 so you're not getting all your wordpress posts just to get the posts count http://demo.wp-api.org/wp-json/wp/v2/posts?per_page=1 To Get All Categories All you have to do is make a GET request to the categories endpoint at: http://demo.wp-api.org/wp-json/wp/v2/categories This would return all the categories and also the total count of categories can be found in the X-WP-Total header. A: Try to answer to part of your question. Count of post wp rest api v2 returned in headers. You can get value something like this: headers('X-WP-Total') Count posts per page: wp-json/wp/v2/categories?page=1&per_page=5 A: I've spent hours on searching on getting number of posts with WP REST API even v2 through Google and WordPress or the library official docs but unfortunately came up with nothing. So I tried getting posts with increasing page number until the returned JSON array length becomes 0 which means there's no more page with posts on the category, and stopped increasing the page number. But if you want to get an arbitrary number of posts per page with WP REST API you can easily use filter[posts_per_page]={$numberOfPosts} parameter while sending the request. Hope it helps.
wordpress
{ "language": "en", "length": 451, "provenance": "stackexchange_00019.jsonl.gz:463132", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/217490" }
[ 0.03131103515625, 0.01531219482421875, -0.04266357421875, -0.04742431640625, 0.031890869140625, -0.041595458984375, 0.01715087890625, 0.0030841827392578125, -0.007343292236328125, 0.00884246826171875, -0.0120697021484375, -0.00879669189453125, -0.0145111083984375, -0.0335693359375, -0.004619598388671875, -0.03814697265625, 0.04180908203125, -0.01019287109375, 0.051971435546875, 0.003192901611328125, 0.010406494140625, 0.031768798828125, 0.0312042236328125, 0.0806884765625, -0.0028247833251953125, 0.01415252685546875, 0.03570556640625, -0.031585693359375, -0.0002970695495605469, -0.0291748046875, 0.007747650146484375, 0.01593017578125, -0.0028324127197265625, 0.0199737548828125, -0.028076171875, -0.017608642578125, 0.0210418701171875, -0.002651214599609375, -0.00374603271484375, 0.035675048828125, 0.038726806640625, -0.02789306640625, 0.05328369140625, 0.006313323974609375, 0.0268707275390625, 0.0008802413940429688, 0.034393310546875, -0.05670166015625, 0.0267333984375, -0.0265655517578125, -0.00768280029296875, 0.01403045654296875, 0.0030918121337890625, -0.019866943359375, -0.017608642578125, 0.00861358642578125, 0.035552978515625, -0.0213470458984375, 0.053131103515625, -0.067626953125, -0.06512451171875, -0.0384521484375, 0.05743408203125, -0.011627197265625, -0.016571044921875, -0.0065460205078125, 0.031341552734375, 0.023162841796875, 0.0095367431640625, -0.0181121826171875, -0.002750396728515625, 0.0106658935546875, -0.0033893585205078125, -0.0005002021789550781, 0.01079559326171875, -0.052398681640625, -0.005458831787109375, -0.037139892578125, 0.0095367431640625, 0.0283966064453125, 0.01629638671875, -0.006168365478515625, -0.015716552734375, 0.012420654296875, -0.0147857666015625, -0.0037212371826171875, -0.0118560791015625, -0.01529693603515625, -0.035858154296875, -0.0286865234375, -0.01678466796875, -0.04779052734375, -0.0689697265625, 0.04779052734375, 0.032928466796875, -0.0259857177734375, 0.01007843017578125, 0.027679443359375, -0.01071929931640625, -0.017913818359375, 0.0009794235229492188, -0.0257415771484375, -0.03717041015625, -0.0013904571533203125, 0.0433349609375, 0.00588226318359375, -0.02557373046875, 0.0102386474609375, 0.084228515625, 0.0238037109375, -0.0067291259765625, 0.0726318359375, 0.0097503662109375, -0.0080413818359375, -0.0235443115234375, -0.006610870361328125, -0.0262603759765625, 0.004016876220703125, -0.00811004638671875, -0.012969970703125, -0.02777099609375, -0.014923095703125, 0.023468017578125, 0.035430908203125, 0.0183563232421875, 0.018096923828125, -0.0117950439453125, -0.01453399658203125, 0.0064697265625, 0.0070648193359375, 0.001220703125, 0.0303192138671875, 0.001407623291015625, 0.0001773834228515625, -0.033905029296875, -0.01227569580078125, 0.0146026611328125, 0.004425048828125, -0.014373779296875, 0.007282257080078125, -0.0155487060546875, -0.0209503173828125, -0.0023975372314453125, -0.037811279296875, 0.03204345703125, -0.0116729736328125, 0.00997161865234375, 0.02734375, 0.011962890625, 0.01409149169921875, 0.0311431884765625, 0.0026302337646484375, 0.012847900390625, 0.0215301513671875, -0.0015039443969726562, 0.0179290771484375, -0.0008616447448730469, -0.0005717277526855469, -0.01284027099609375, -0.0041351318359375, 0.042724609375, -0.01184844970703125, -0.015625, 0.004467010498046875, -0.040252685546875, 0.0235595703125, -0.019500732421875, -0.006061553955078125, 0.0219573974609375, 0.0107421875, 0.007785797119140625, -0.0035381317138671875, 0.0217742919921875, -0.019317626953125, -0.01242828369140625, -0.013336181640625, -0.025421142578125, -0.025543212890625, 0.040374755859375, 0.0167388916015625, -0.0191650390625, -0.0207366943359375, 0.031036376953125, -0.00015032291412353516, -0.038818359375, 0.037933349609375, 0.037353515625, 0.0599365234375, -0.0310516357421875, 0.0209808349609375, 0.045074462890625, 0.053955078125, -0.0203857421875, 0.01125335693359375, -0.00920867919921875, -0.013458251953125, -0.019195556640625, 0.010223388671875, -0.0199127197265625, 0.005290985107421875, 0.016448974609375, -0.00278472900390625, -0.01461029052734375, -0.00855255126953125, -0.011199951171875, -0.03900146484375, 0.0160980224609375, 0.006435394287109375, -0.019378662109375, 0.04815673828125, 0.0318603515625, 0.001789093017578125, -0.042083740234375, -0.002346038818359375, 0.0018701553344726562, -0.0145111083984375, -0.01493072509765625, -0.01233673095703125, -0.035369873046875, 0.00305938720703125, -0.0377197265625, -0.00980377197265625, -0.0474853515625, 0.046417236328125, 0.058380126953125, -0.00838470458984375, -0.0023593902587890625, -0.04156494140625, 0.061309814453125, 0.0055389404296875, -0.012237548828125, 0.0050048828125, 0.0157623291015625, 0.040313720703125, -0.0234222412109375, -0.018768310546875, 0.006549835205078125, -0.029327392578125, 0.0186614990234375, 0.0404052734375, 0.01186370849609375, -0.00004476308822631836, -0.03521728515625, 0.006572723388671875, 0.0251922607421875, -0.0233917236328125, -0.0023746490478515625, 0.005939483642578125, 0.016021728515625, 0.037200927734375, 0.0251312255859375, 0.0008335113525390625, 0.01422882080078125, -0.0364990234375, 0.01316070556640625, 0.040679931640625, 0.01806640625, 0.007709503173828125, -0.05279541015625, 0.0287322998046875, 0.01611328125, -0.0235137939453125, -0.0572509765625, -0.0115509033203125, 0.02740478515625, -0.0264434814453125, 0.04034423828125, 0.03717041015625, -0.0010843276977539062, -0.040863037109375, 0.0016260147094726562, 0.039031982421875, -0.00201416015625, 0.0487060546875, 0.00731658935546875, 0.0183868408203125, -0.03717041015625, -0.020294189453125, 0.02032470703125, 0.0210723876953125, -0.01337432861328125, 0.039031982421875, -0.0214996337890625, -0.0164031982421875, -0.0177001953125, -0.0487060546875, -0.01381683349609375, 0.00030159950256347656, -0.00860595703125, 0.046234130859375, 0.0413818359375, 0.039703369140625, 0.0101318359375, 0.01424407958984375, -0.01433563232421875, 0.034423828125, 0.04449462890625, -0.07647705078125, 0.041595458984375, -0.0379638671875, 0.052734375, 0.05511474609375, 0.0077362060546875, -0.005405426025390625, -0.01018524169921875, -0.0172882080078125, -0.01654052734375, 0.0242919921875, -0.0024204254150390625, -0.05096435546875, -0.0074615478515625, 0.04364013671875, 0.0227813720703125, 0.0406494140625, -0.0037059783935546875, -0.059051513671875, 0.0004687309265136719, 0.00974273681640625, -0.1268310546875, -0.1192626953125, 0.06280517578125, -0.07012939453125, 0.01132965087890625, -0.01611328125, -0.0572509765625, -0.02587890625, 0.0128326416015625, -0.00958251953125, -0.02044677734375, 0.0009241104125976562, -0.05474853515625, -0.04827880859375, -0.06353759765625, -0.04449462890625, -0.018890380859375, 0.002410888671875, 0.00018298625946044922, 0.062042236328125, 0.002895355224609375, -0.042327880859375, -0.0318603515625, 0.056854248046875, -0.0146636962890625, -0.030975341796875, -0.034454345703125, 0.0292205810546875, -0.0077667236328125, 0.01329803466796875, -0.005710601806640625, 0.02301025390625, -0.0148162841796875, -0.004772186279296875, -0.01056671142578125, -0.0143890380859375, 0.0009293556213378906, 0.05523681640625, 0.005523681640625, -0.01209259033203125, 0.02191162109375, -0.039398193359375, -0.0172576904296875, -0.003276824951171875, -0.0374755859375, -0.0372314453125, 0.0416259765625, -0.0158538818359375, -0.03155517578125, -0.0175018310546875, 0.004932403564453125, -0.0076446533203125, 0.01279449462890625, -0.03094482421875, 0.054931640625, -0.00331878662109375, 0.00717926025390625, -0.0129852294921875, -0.014312744140625, -0.022613525390625, -0.0007872581481933594, -0.034881591796875, -0.005702972412109375, -0.0435791015625, 0.055816650390625, -0.022979736328125, -0.03485107421875, 0.052947998046875, 0.0469970703125, -0.038360595703125, 0.019073486328125, -0.036895751953125, 0.040283203125, 0.0550537109375, 0.02777099609375, -0.055389404296875, -0.0545654296875, 0.0165557861328125, -0.027252197265625, -0.059722900390625, 0.05633544921875, -0.00528717041015625, -0.046295166015625, 0.01300811767578125, -0.0097503662109375, -0.0129547119140625, -0.0281524658203125, 0.0108642578125, -0.0221710205078125, -0.0236968994140625, 0.035858154296875, -0.05059814453125, -0.0007166862487792969, -0.0313720703125, -0.004878997802734375, -0.060333251953125, -0.0155487060546875, -0.0107574462890625, -0.01334381103515625, -0.0016832351684570312, 0.00913238525390625, 0.0106201171875, 0.0030517578125, -0.0213165283203125, 0.01251983642578125, 0.0249176025390625, 0.0005054473876953125, 0.056396484375, -0.0215911865234375, 0.0173797607421875, -0.02447509765625, -0.00867462158203125, 0.0008001327514648438, -0.0174102783203125, -0.0201568603515625, -0.0182342529296875, 0.0023441314697265625, 0.0086212158203125, -0.033935546875, -0.0176239013671875, -0.019287109375, -0.01386260986328125, -0.01427459716796875, -0.04498291015625, -0.03753662109375, 0.007564544677734375, -0.0172119140625, 0.005931854248046875, -0.047149658203125, -0.025482177734375, 0.0399169921875, 0.032958984375, -0.00879669189453125, -0.004131317138671875, 0.0655517578125, 0.0081634521484375, -0.0338134765625, -0.059295654296875, -0.002811431884765625, 0.055908203125, -0.045074462890625, 0.049774169921875, 0.0183258056640625, -0.058563232421875, 0.1217041015625, 0.00839996337890625, 0.01200103759765625, -0.0010099411010742188, 0.017120361328125, 0.00586700439453125, -0.00841522216796875, 0.004058837890625, 0.0108795166015625, -0.00623321533203125, 0.0369873046875, -0.0202178955078125, 0.0170745849609375, 0.00034356117248535156, 0.0020427703857421875, -0.0364990234375, 0.0099945068359375, -0.01287078857421875, 0.00799560546875, 0.005252838134765625, 0.000029206275939941406, 0.049530029296875, 0.0200958251953125, -0.00482177734375, 0.0217742919921875, 0.0252227783203125, 0.0010175704956054688, 0.007595062255859375, 0.047760009765625, -0.0198516845703125, 0.04595947265625, -0.0189056396484375, -0.0212249755859375, -0.02496337890625, -0.00933837890625, -0.005157470703125, -0.0175323486328125, -0.073486328125, 0.03253173828125, -0.027801513671875, 0.009857177734375, 0.043701171875, 0.0022487640380859375, 0.04473876953125, 0.01145172119140625, -0.01422882080078125, -0.0175018310546875, -0.037933349609375, -0.024566650390625, -0.04742431640625, 0.057373046875, 0.0098876953125, -0.0011796951293945312, -0.0069732666015625, 0.07525634765625, 0.030670166015625, 0.02197265625, -0.02008056640625, 0.0655517578125, -0.00013458728790283203, 0.0777587890625, 0.0230865478515625, -0.05035400390625, 0.0083465576171875, 0.021942138671875, -0.05670166015625, -0.0306549072265625, -0.0099029541015625, 0.0382080078125, 0.035400390625, 0.0229034423828125, -0.00888824462890625, -0.006626129150390625, 0.00656890869140625, -0.0152435302734375, -0.0509033203125, -0.0232391357421875, 0.0292816162109375, -0.0114288330078125, -0.004291534423828125, 0.007602691650390625, 0.046844482421875, 0.01351165771484375, -0.05078125, 0.0224761962890625, 0.025634765625, -0.0266265869140625, -0.0018758773803710938, 0.0187225341796875, 0.0136260986328125, -0.0706787109375, -0.024993896484375, 0.007537841796875, 0.00995635986328125, -0.013092041015625, 0.0144500732421875, -0.042694091796875, -0.006374359130859375, -0.01168060302734375, 0.0170440673828125, -0.006359100341796875, -0.0001608133316040039, -0.00707244873046875, 0.00870513916015625, 0.0197296142578125, 0.01116180419921875, -0.0016069412231445312, -0.020599365234375, -0.0162200927734375, -0.035980224609375, 0.07183837890625, 0.0253448486328125, -0.0245819091796875, -0.01873779296875, 0.03924560546875, 0.0142059326171875, 0.017608642578125, -0.042724609375, -0.03546142578125, -0.00970458984375, 0.04248046875, 0.012847900390625, -0.034942626953125, 0.0975341796875, -0.0053253173828125, 0.055145263671875, -0.002758026123046875, 0.051727294921875, 0.001552581787109375, -0.01806640625, 0.0118865966796875, -0.042236328125, -0.025482177734375, 0.01407623291015625, -0.03350830078125, -0.016357421875, -0.00542449951171875, -0.00212860107421875, -0.007476806640625, -0.000965118408203125, 0.0089569091796875, -0.0107574462890625, -0.0222625732421875, 0.02020263671875, -0.0340576171875, 0.047607421875, 0.0224609375, 0.0281524658203125, -0.0284576416015625, -0.02593994140625, 0.01512908935546875, 0.01515960693359375, 0.021514892578125, -0.01035308837890625, -0.0189056396484375, 0.062286376953125, 0.08868408203125, 0.005252838134765625, 0.044403076171875, 0.0308990478515625, 0.00945281982421875, 0.004665374755859375, 0.00464630126953125, 0.033050537109375, -0.004581451416015625, 0.04852294921875, -0.006744384765625, -0.01062774658203125, 0.0219879150390625, -0.04144287109375, 0.0200958251953125, -0.036956787109375, 0.03997802734375, 0.022491455078125, 0.007640838623046875, 0.006999969482421875, -0.039459228515625, 0.0245361328125, -0.007549285888671875, -0.0250091552734375, -0.03765869140625, 0.0535888671875, -0.0400390625, -0.0287933349609375, 0.00983428955078125, -0.0152435302734375, -0.0243377685546875, -0.0145721435546875, 0.0157318115234375, 0.0273284912109375, -0.0004127025604248047, 0.01255035400390625, -0.0012340545654296875, 0.021026611328125, -0.0042266845703125, 0.0032367706298828125, 0.0172119140625, -0.006191253662109375, -0.056396484375, 0.037353515625, -0.0199127197265625, -0.0198516845703125, 0.00408172607421875, -0.008697509765625, -0.0036487579345703125, 0.03350830078125, -0.01532745361328125, 0.00714874267578125, 0.0031185150146484375, -0.047119140625, -0.011505126953125, 0.00225067138671875, 0.0198516845703125, 0.0179901123046875, -0.0265350341796875, 0.0177154541015625, -0.02618408203125, 0.0050048828125, -0.0155487060546875, -0.0280914306640625, 0.0858154296875, -0.043182373046875, -0.00899505615234375, 0.0267333984375, 0.0364990234375, -0.00635528564453125, -0.00618743896484375, 0.04571533203125, -0.029693603515625, 0.0142364501953125, 0.02978515625, 0.0531005859375, -0.01134490966796875, 0.016937255859375, -0.03717041015625, 0.09588623046875, -0.0162200927734375, 0.009552001953125, 0.0225372314453125, 0.04302978515625, -0.02081298828125, 0.0276031494140625, -0.06390380859375, 0.0538330078125, 0.01293182373046875, 0.045867919921875, -0.064208984375, -0.0151214599609375, 0.0045166015625, 0.0302886962890625, 0.0802001953125, 0.012481689453125, -0.02459716796875, -0.046630859375, 0.004299163818359375, 0.04681396484375, -0.0228424072265625, 0.03057861328125, 0.0217437744140625, 0.0149993896484375, 0.058990478515625, -0.0280914306640625, 0.0238494873046875, 0.0021514892578125, 0.02716064453125, 0.0290374755859375, 0.0307464599609375, 0.027130126953125, -0.00313568115234375, 0.026123046875, -0.031890869140625, -0.0022411346435546875, 0.035491943359375, 0.01253509521484375, -0.01163482666015625, 0.098876953125, 0.058929443359375, -0.05419921875, 0.00165557861328125, -0.056884765625, 0.06451416015625, -0.0137786865234375, 0.051055908203125, 0.0102691650390625, 0.0196380615234375, 0.06903076171875, 0.005146026611328125, 0.012725830078125, 0.032562255859375, -0.0280303955078125, 0.0867919921875, 0.020263671875, 0.0374755859375, -0.048919677734375, -0.041961669921875, 0.0220794677734375, 0.08416748046875, -0.0325927734375, -0.05474853515625, 0.01103973388671875, 0.0235137939453125, 0.02423095703125, 0.03216552734375, 0.0577392578125, 0.00579071044921875, 0.03900146484375, -0.02276611328125, -0.004901885986328125, 0.01007843017578125, 0.035308837890625, 0.0291595458984375, 0.0184783935546875, -0.040863037109375, -0.023193359375, -0.049224853515625, -0.0018787384033203125, 0.0009284019470214844, 0.06719970703125, 0.0257110595703125, 0.06378173828125, -0.03778076171875, -0.032562255859375, 0.0205841064453125, -0.00196075439453125, 0.0251007080078125, -0.041412353515625, 0.0210723876953125, -0.0318603515625, 0.0391845703125, 0.01020050048828125, 0.0214996337890625, -0.022247314453125, 0.034515380859375, 0.058502197265625, -0.01561737060546875, -0.0187835693359375, 0.03546142578125, -0.0016565322875976562, -0.0273590087890625, -0.036224365234375, -0.034698486328125, -0.00478363037109375, -0.025360107421875, 0.0308990478515625, -0.0264739990234375, 0.0142822265625, -0.007282257080078125, 0.0278778076171875, 0.00458526611328125, -0.0287322998046875, 0.039764404296875, 0.0128021240234375, 0.06756591796875, 0.0205078125, -0.0909423828125, -0.019439697265625, -0.037139892578125, -0.054840087890625, 0.046539306640625, 0.039093017578125, -0.0511474609375, 0.034637451171875, -0.0266571044921875, -0.03106689453125, 0.00630950927734375, 0.00872039794921875, 0.01525115966796875, 0.0221099853515625, 0.003505706787109375, 0.0000011324882507324219, -0.032684326171875, -0.03338623046875, 0.0029888153076171875, 0.02593994140625, 0.035003662109375, -0.00196075439453125, 0.0196990966796875, 0.0216217041015625, -0.035675048828125, 0.02947998046875, -0.052703857421875, -0.035919189453125, -0.0019054412841796875, 0.026641845703125, 0.041259765625, -0.005496978759765625, -0.062225341796875, 0.011566162109375, 0.036285400390625, -0.0024280548095703125, 0.05853271484375, -0.04217529296875, 0.0167236328125, -0.02252197265625, 0.01558685302734375, -0.031707763671875, -0.0210418701171875, -0.039825439453125, -0.032958984375, 0.01122283935546875, -0.00426483154296875, 0.007659912109375, 0.01371002197265625, -0.0185699462890625, -0.0223388671875, 0.0118408203125, -0.01384735107421875, 0.021514892578125, 0.043182373046875, -0.056854248046875, 0.045989990234375, 0.026947021484375, -0.0100555419921875, 0.010284423828125, 0.02301025390625, -0.031402587890625, 0.022430419921875, 0.006610870361328125, -0.04351806640625, 0.0133819580078125, 0.038177490234375, 0.0004930496215820312, 0.0307464599609375, -0.0521240234375, -0.006977081298828125, 0.025054931640625, -0.00821685791015625, -0.0233917236328125, -0.038818359375, 0.008453369140625, 0.024749755859375, 0.003887176513671875, 0.0160980224609375, -0.01154327392578125, 0.00722503662109375, 0.0034999847412109375, -0.025238037109375, 0.00911712646484375, 0.02923583984375, -0.05133056640625, -0.0010385513305664062, -0.039337158203125, -0.010955810546875, 0.0031452178955078125, 0.022796630859375, -0.049591064453125, 0.0019683837890625, -0.049407958984375, -0.03826904296875, -0.037506103515625, 0.0188446044921875, 0.00396728515625, -0.03729248046875, 0.0445556640625, -0.017333984375, 0.032073974609375, 0.039581298828125, 0.042449951171875, 0.0111236572265625, 0.00914764404296875, 0.025390625, -0.033599853515625, -0.08258056640625, 0.01497650146484375, -0.040740966796875, -0.009185791015625, -0.03436279296875, 0.0260467529296875, 0.02716064453125, -0.0250396728515625, -0.054656982421875, 0.048431396484375, -0.0255889892578125, -0.0226593017578125, -0.10906982421875, -0.0016126632690429688, 0.038970947265625, -0.0009765625, -0.05560302734375, 0.005474090576171875, -0.07879638671875, 0.0477294921875, 0.0290069580078125, 0.003658294677734375, 0.0303192138671875, 0.0020122528076171875, -0.036346435546875, 0.020111083984375, -0.005496978759765625, 0.0273284912109375, -0.015350341796875, 0.0196990966796875, 0.01383209228515625, 0.037841796875, -0.04168701171875, 0.053802490234375, -0.0221099853515625, 0.030487060546875, -0.0024566650390625, -0.058563232421875, -0.032012939453125, -0.03656005859375, 0.055877685546875, 0.0205841064453125, 0.01352691650390625, -0.0191192626953125, -0.01934814453125, -0.0310821533203125, 0.031829833984375, -0.0162353515625, -0.021759033203125, -0.03692626953125, -0.0020389556884765625, -0.01031494140625, 0.0110626220703125, 0.005901336669921875, -0.058685302734375, -0.0032176971435546875, -0.02410888671875, -0.04620361328125, 0.0066680908203125, 0.0013322830200195312, 0.00548553466796875, -0.0287017822265625, 0.004734039306640625, -0.0089111328125, -0.02099609375, 0.0185699462890625, -0.03271484375, 0.01305389404296875, -0.0106048583984375, -0.002803802490234375, 0.002651214599609375, 0.03350830078125, 0.0005908012390136719, -0.00501251220703125, -0.0187530517578125, 0.00542449951171875, -0.018463134765625, 0.007793426513671875, 0.0020008087158203125, 0.0084686279296875, 0.00453948974609375, 0.01229095458984375, 0.0265045166015625, 0.0127716064453125, 0.001132965087890625, 0.020660400390625, -0.00656890869140625, 0.03375244140625, -0.0156707763671875, -0.0231475830078125, 0.0209503173828125, -0.0479736328125, -0.00798797607421875, 0.0143890380859375, -0.0540771484375, -0.048797607421875, 0.0099945068359375, 0.033172607421875, -0.0014982223510742188, 0.0133056640625 ]
5dd69d6d80637a6945f1edada9b9343b56ca26ed
Wordpress Stackexchange Q: WP REST API route request explain Maybe can someone explain or show additional info about "WP REST API route request" from beginning to the end. Main questions, how handle this request in most earlier stage. For example for ajax requests, is second check: if (defined('DOING_AJAX') && DOING_AJAX) { /* it's an AJAX call */ } What check can be most fast to handle rest api request? Main my approach in app logic, after route request init, immediately check what route type was and do we have saved by current request result with wp standart set_transient function. If it is, grab result directly from database (transients), and don't generate expansive in time new object result. So more in global view of logic: * *Getted request. *In functions.php detected that request and disabling loading some stuff for speed up this. *In some "rest_api" action we handle type | url of request and checking for availability of transients. *If is transient result, immediately return it without generating expansive in cpu and time answer from server.
Q: WP REST API route request explain Maybe can someone explain or show additional info about "WP REST API route request" from beginning to the end. Main questions, how handle this request in most earlier stage. For example for ajax requests, is second check: if (defined('DOING_AJAX') && DOING_AJAX) { /* it's an AJAX call */ } What check can be most fast to handle rest api request? Main my approach in app logic, after route request init, immediately check what route type was and do we have saved by current request result with wp standart set_transient function. If it is, grab result directly from database (transients), and don't generate expansive in time new object result. So more in global view of logic: * *Getted request. *In functions.php detected that request and disabling loading some stuff for speed up this. *In some "rest_api" action we handle type | url of request and checking for availability of transients. *If is transient result, immediately return it without generating expansive in cpu and time answer from server.
wordpress
{ "language": "en", "length": 173, "provenance": "stackexchange_00019.jsonl.gz:463135", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/217497" }
[ 0.0288543701171875, -0.002696990966796875, -0.0328369140625, -0.0275726318359375, 0.0204620361328125, -0.0250396728515625, 0.04400634765625, 0.013885498046875, -0.023468017578125, -0.004894256591796875, -0.035980224609375, 0.030029296875, -0.06396484375, -0.0106658935546875, 0.00930023193359375, -0.0601806640625, 0.041717529296875, -0.0161285400390625, 0.0090789794921875, -0.01611328125, -0.010589599609375, -0.004520416259765625, 0.0295867919921875, 0.09381103515625, 0.0126953125, -0.019256591796875, -0.0049896240234375, -0.0307159423828125, -0.0016317367553710938, -0.02886962890625, 0.0016908645629882812, 0.012725830078125, 0.0084381103515625, 0.035308837890625, -0.042327880859375, 0.0147857666015625, 0.0065460205078125, 0.01934814453125, 0.01201629638671875, 0.0208587646484375, 0.031951904296875, -0.0182647705078125, 0.0189208984375, -0.00858306884765625, -0.02239990234375, 0.0152587890625, 0.0124664306640625, -0.0175323486328125, 0.01776123046875, 0.0325927734375, 0.01148223876953125, -0.0048065185546875, -0.0013685226440429688, 0.042236328125, -0.0208892822265625, -0.028106689453125, 0.035125732421875, -0.03533935546875, 0.038238525390625, -0.043548583984375, -0.041412353515625, -0.030181884765625, 0.0494384765625, 0.00623321533203125, 0.00676727294921875, -0.025146484375, 0.064208984375, 0.0386962890625, 0.00926971435546875, -0.0137481689453125, -0.00409698486328125, 0.0313720703125, -0.01751708984375, -0.005863189697265625, 0.0009098052978515625, 0.000408172607421875, 0.018890380859375, -0.005279541015625, -0.0038623809814453125, 0.0352783203125, 0.00681304931640625, -0.0137176513671875, 0.0227813720703125, -0.03009033203125, 0.0160369873046875, -0.005207061767578125, -0.00958251953125, -0.0005903244018554688, -0.053619384765625, -0.0297698974609375, -0.03070068359375, -0.09210205078125, -0.0367431640625, 0.01605224609375, 0.00640106201171875, -0.019134521484375, -0.01495361328125, -0.061981201171875, 0.02362060546875, 0.0016336441040039062, 0.0595703125, -0.05853271484375, 0.036865234375, 0.016754150390625, 0.0188751220703125, -0.006237030029296875, 0.00959014892578125, -0.010101318359375, 0.048309326171875, 0.0139312744140625, -0.01678466796875, 0.126953125, 0.033355712890625, 0.01067352294921875, -0.037567138671875, -0.046905517578125, -0.016143798828125, -0.00848388671875, -0.0049896240234375, -0.030242919921875, -0.0263824462890625, -0.01166534423828125, 0.035980224609375, -0.01183319091796875, 0.033935546875, 0.0236053466796875, -0.01837158203125, -0.0251922607421875, -0.0303497314453125, 0.032073974609375, 0.0101165771484375, 0.0195465087890625, -0.0174407958984375, -0.001312255859375, -0.037078857421875, -0.01904296875, 0.0506591796875, 0.051177978515625, 0.033172607421875, 0.009490966796875, 0.0015993118286132812, -0.03973388671875, -0.00958251953125, 0.02655029296875, 0.035430908203125, 0.0130767822265625, 0.01351165771484375, 0.0077362060546875, 0.01885986328125, -0.00811004638671875, 0.0044708251953125, -0.0025615692138671875, -0.00536346435546875, 0.0304107666015625, 0.046600341796875, 0.0151214599609375, 0.0460205078125, -0.0222320556640625, -0.0096435546875, -0.00832366943359375, -0.0146942138671875, -0.043975830078125, 0.015899658203125, -0.022918701171875, -0.030059814453125, 0.05218505859375, -0.040924072265625, -0.00421905517578125, 0.021392822265625, 0.0577392578125, 0.0214691162109375, -0.004856109619140625, -0.035858154296875, 0.0022182464599609375, -0.007259368896484375, -0.002819061279296875, 0.00321197509765625, 0.01082611083984375, 0.004894256591796875, 0.015106201171875, -0.0015478134155273438, -0.029693603515625, 0.0555419921875, -0.0006070137023925781, -0.048553466796875, 0.0877685546875, 0.01297760009765625, 0.081298828125, -0.04052734375, 0.00830841064453125, 0.029998779296875, 0.06414794921875, 0.023651123046875, 0.027984619140625, -0.0014276504516601562, -0.097900390625, 0.0267333984375, -0.0318603515625, -0.024566650390625, 0.0128631591796875, 0.0012340545654296875, 0.02203369140625, -0.005298614501953125, -0.026031494140625, -0.047515869140625, -0.001712799072265625, -0.0162811279296875, 0.044464111328125, -0.02008056640625, 0.01424407958984375, 0.01456451416015625, 0.03411865234375, -0.038848876953125, -0.01142120361328125, 0.003986358642578125, 0.0204315185546875, -0.031646728515625, -0.0037708282470703125, -0.0304718017578125, 0.00586700439453125, -0.04541015625, 0.004756927490234375, -0.0345458984375, 0.0130767822265625, 0.0199127197265625, -0.015594482421875, 0.00676727294921875, -0.0037555694580078125, 0.05560302734375, 0.004184722900390625, 0.036468505859375, -0.0208740234375, 0.0482177734375, 0.041961669921875, -0.017578125, -0.00373077392578125, -0.01308441162109375, -0.0772705078125, 0.0014019012451171875, 0.051116943359375, 0.0247955322265625, 0.01812744140625, -0.01453399658203125, 0.0273895263671875, -0.01412200927734375, -0.0675048828125, 0.0005550384521484375, 0.01331329345703125, -0.00809478759765625, -0.006183624267578125, 0.006256103515625, -0.04144287109375, 0.021820068359375, -0.0555419921875, -0.005863189697265625, 0.01250457763671875, -0.0203704833984375, -0.0212249755859375, -0.0179901123046875, -0.003147125244140625, 0.015716552734375, -0.00841522216796875, -0.0276641845703125, 0.004878997802734375, -0.0046234130859375, -0.0086822509765625, 0.0250244140625, 0.0236663818359375, 0.01092529296875, -0.023406982421875, 0.0122528076171875, 0.0007319450378417969, 0.011566162109375, 0.048553466796875, 0.06341552734375, -0.0072021484375, 0.007152557373046875, -0.045806884765625, 0.0252685546875, 0.0298004150390625, -0.027862548828125, 0.0211639404296875, 0.010498046875, -0.0112152099609375, -0.0277099609375, -0.003429412841796875, 0.0350341796875, -0.016387939453125, 0.047271728515625, 0.042938232421875, 0.039520263671875, 0.028778076171875, 0.00731658935546875, 0.043792724609375, -0.003021240234375, -0.014373779296875, -0.004924774169921875, -0.035003662109375, 0.04498291015625, -0.03558349609375, -0.0084075927734375, 0.04827880859375, 0.00370025634765625, -0.0044708251953125, -0.004016876220703125, 0.0007987022399902344, 0.01065826416015625, -0.0166015625, -0.0240325927734375, -0.025848388671875, -0.0279693603515625, 0.034759521484375, 0.0189361572265625, 0.027801513671875, 0.00273895263671875, -0.033660888671875, 0.003993988037109375, 0.01509857177734375, -0.0487060546875, -0.08392333984375, 0.04840087890625, -0.051849365234375, 0.00891876220703125, -0.02001953125, -0.029266357421875, -0.0237579345703125, 0.00325775146484375, -0.01303863525390625, -0.041717529296875, -0.0238800048828125, -0.058441162109375, -0.0709228515625, -0.08062744140625, 0.0219268798828125, -0.01113128662109375, 0.0208892822265625, 0.002017974853515625, 0.067626953125, 0.003204345703125, -0.04119873046875, -0.01526641845703125, 0.0162200927734375, -0.011749267578125, -0.0179290771484375, 0.0150299072265625, -0.0281829833984375, -0.013641357421875, -0.01056671142578125, 0.030242919921875, 0.0225982666015625, -0.02313232421875, 0.0157318115234375, -0.0137176513671875, -0.0001341104507446289, 0.01398468017578125, 0.0268096923828125, 0.00437164306640625, 0.006565093994140625, 0.03521728515625, -0.038604736328125, -0.0291900634765625, -0.00255584716796875, -0.04132080078125, -0.023162841796875, 0.048248291015625, -0.016265869140625, -0.03985595703125, 0.010711669921875, 0.00797271728515625, -0.01248931884765625, -0.023193359375, -0.016143798828125, 0.072021484375, 0.01094818115234375, 0.0077972412109375, -0.0088958740234375, 0.07159423828125, -0.00580596923828125, -0.045318603515625, 0.0106964111328125, -0.025970458984375, -0.021240234375, -0.0242156982421875, -0.0228729248046875, 0.0099639892578125, 0.01324462890625, -0.0077056884765625, -0.0156707763671875, 0.0017404556274414062, -0.0083160400390625, 0.006549835205078125, 0.0177154541015625, 0.0297393798828125, -0.014739990234375, -0.035858154296875, 0.018463134765625, -0.049957275390625, -0.040557861328125, 0.008941650390625, 0.00551605224609375, 0.028289794921875, 0.017486572265625, -0.004718780517578125, -0.0055999755859375, -0.01192474365234375, -0.032318115234375, 0.01531982421875, -0.00261688232421875, 0.0491943359375, -0.10882568359375, 0.0211639404296875, -0.027923583984375, 0.0215606689453125, -0.07220458984375, -0.0101470947265625, -0.051055908203125, -0.016571044921875, -0.01287841796875, -0.03558349609375, 0.038330078125, 0.052886962890625, -0.0594482421875, 0.0299835205078125, 0.0307159423828125, 0.00933074951171875, 0.01474761962890625, -0.008880615234375, -0.0264434814453125, 0.031494140625, 0.0330810546875, 0.0030765533447265625, 0.0107421875, -0.024688720703125, 0.002101898193359375, -0.017120361328125, 0.0262603759765625, 0.002323150634765625, -0.0271759033203125, 0.014373779296875, -0.0166778564453125, -0.045501708984375, -0.04595947265625, -0.06561279296875, 0.020477294921875, -0.029083251953125, 0.005123138427734375, -0.05889892578125, -0.083984375, 0.0306243896484375, 0.016876220703125, -0.00861358642578125, -0.00604248046875, 0.04443359375, 0.01898193359375, -0.0279693603515625, -0.007236480712890625, -0.01087188720703125, 0.01471710205078125, 0.01800537109375, 0.0151824951171875, -0.022979736328125, -0.02349853515625, 0.07958984375, -0.0089111328125, 0.0084228515625, 0.035552978515625, 0.01198577880859375, 0.0206451416015625, 0.00004887580871582031, -0.00008589029312133789, 0.034698486328125, -0.07666015625, 0.0213165283203125, -0.0265960693359375, -0.006427764892578125, -0.00890350341796875, 0.021270751953125, -0.056854248046875, 0.06768798828125, 0.0006480216979980469, -0.0127105712890625, 0.0116119384765625, -0.01413726806640625, 0.06829833984375, 0.00954437255859375, 0.01119232177734375, 0.01580810546875, 0.0189666748046875, -0.0022487640380859375, -0.00420379638671875, 0.052093505859375, -0.055450439453125, 0.0218658447265625, -0.0261688232421875, -0.039947509765625, -0.040985107421875, -0.0196533203125, 0.0748291015625, -0.0069580078125, -0.045806884765625, -0.01558685302734375, -0.025360107421875, 0.04144287109375, 0.030731201171875, -0.0016813278198242188, 0.00969696044921875, 0.0071563720703125, -0.0211639404296875, -0.0216064453125, -0.0009851455688476562, -0.040435791015625, -0.039703369140625, 0.017730712890625, 0.0042724609375, -0.0002865791320800781, -0.0107879638671875, 0.051544189453125, -0.04376220703125, 0.03448486328125, -0.004451751708984375, 0.04248046875, 0.0188446044921875, 0.022552490234375, 0.00943756103515625, 0.02423095703125, 0.0176239013671875, -0.03265380859375, 0.0017118453979492188, -0.033966064453125, -0.0164337158203125, 0.05072021484375, 0.042236328125, -0.05316162109375, -0.04437255859375, 0.021728515625, -0.0081329345703125, -0.032073974609375, 0.005977630615234375, 0.0009493827819824219, -0.0006322860717773438, -0.03753662109375, -0.00738525390625, 0.029327392578125, 0.045013427734375, 0.0092926025390625, 0.04791259765625, 0.059722900390625, 0.09210205078125, -0.046295166015625, 0.0266571044921875, 0.01515960693359375, 0.0227813720703125, -0.004245758056640625, -0.04315185546875, -0.0248870849609375, 0.0208587646484375, 0.037139892578125, -0.0270233154296875, -0.019927978515625, -0.0003235340118408203, 0.0050201416015625, 0.00048613548278808594, -0.04876708984375, 0.014862060546875, -0.04461669921875, 0.00748443603515625, 0.02056884765625, -0.002490997314453125, -0.023773193359375, -0.04534912109375, -0.033966064453125, -0.033599853515625, -0.01264190673828125, -0.0061187744140625, -0.033233642578125, 0.0187835693359375, -0.0028514862060546875, 0.008941650390625, 0.006679534912109375, 0.0254974365234375, -0.012664794921875, 0.029510498046875, -0.01074981689453125, 0.0240325927734375, -0.01430511474609375, 0.0892333984375, -0.031463623046875, 0.05291748046875, -0.0007762908935546875, 0.0246734619140625, -0.0244598388671875, 0.00922393798828125, 0.005535125732421875, -0.04168701171875, -0.030303955078125, -0.035919189453125, -0.037322998046875, 0.050628662109375, 0.08447265625, -0.0014553070068359375, 0.0038776397705078125, -0.01227569580078125, -0.01715087890625, -0.01690673828125, 0.040008544921875, -0.00955963134765625, 0.03497314453125, -0.02392578125, 0.0187225341796875, -0.0112457275390625, -0.0391845703125, -0.049102783203125, 0.01654052734375, 0.042236328125, -0.0023136138916015625, -0.016143798828125, -0.0279388427734375, 0.03448486328125, 0.123046875, 0.037139892578125, 0.07647705078125, 0.039398193359375, 0.0282440185546875, 0.03680419921875, 0.016876220703125, 0.025421142578125, -0.025970458984375, -0.017974853515625, -0.0133056640625, 0.0038814544677734375, -0.0244140625, -0.017974853515625, 0.0279541015625, 0.053741455078125, 0.07855224609375, -0.07537841796875, 0.0308380126953125, 0.025390625, -0.0262298583984375, 0.00042247772216796875, -0.0228118896484375, -0.01232147216796875, -0.0389404296875, 0.03924560546875, -0.0203399658203125, -0.036285400390625, -0.0111846923828125, -0.025482177734375, -0.007709503173828125, -0.0012569427490234375, 0.0577392578125, 0.0240325927734375, -0.0159912109375, 0.00528717041015625, 0.007568359375, 0.0238800048828125, -0.0087890625, 0.042144775390625, 0.03216552734375, -0.0032596588134765625, -0.031829833984375, 0.060394287109375, 0.0138397216796875, -0.056396484375, 0.027801513671875, 0.00908660888671875, 0.01427459716796875, 0.04278564453125, -0.02191162109375, 0.00818634033203125, 0.019683837890625, -0.0301971435546875, -0.004489898681640625, -0.0264434814453125, 0.0182342529296875, 0.040496826171875, -0.045135498046875, 0.0259857177734375, -0.0048828125, -0.0186309814453125, -0.006137847900390625, -0.045013427734375, 0.08026123046875, -0.03765869140625, 0.00262451171875, 0.0187225341796875, -0.00522613525390625, -0.00444793701171875, -0.020416259765625, 0.0158843994140625, -0.0069427490234375, 0.017364501953125, -0.00826263427734375, -0.0093536376953125, -0.00502777099609375, -0.0160369873046875, -0.0177459716796875, 0.05029296875, 0.0185394287109375, -0.02569580078125, 0.01410675048828125, 0.0242919921875, -0.03582763671875, 0.0223388671875, -0.037841796875, 0.04150390625, -0.004146575927734375, 0.0235595703125, -0.036285400390625, 0.0049591064453125, -0.006927490234375, 0.015472412109375, 0.02899169921875, 0.005340576171875, -0.045806884765625, -0.0230712890625, 0.01020050048828125, 0.01036834716796875, -0.007568359375, 0.06072998046875, 0.003021240234375, 0.034698486328125, 0.07965087890625, -0.03790283203125, 0.010986328125, 0.0294036865234375, -0.0019216537475585938, 0.0282440185546875, 0.03271484375, 0.035736083984375, -0.011444091796875, 0.07305908203125, -0.01212310791015625, -0.0186920166015625, 0.037750244140625, -0.0264739990234375, 0.007617950439453125, 0.0202484130859375, -0.00039887428283691406, -0.02056884765625, 0.0019159317016601562, -0.0281982421875, 0.026580810546875, -0.0264434814453125, 0.04998779296875, 0.020782470703125, 0.0219573974609375, 0.04486083984375, 0.0208740234375, 0.0279388427734375, 0.032623291015625, -0.048614501953125, 0.05029296875, 0.0280303955078125, 0.038238525390625, -0.038665771484375, -0.07708740234375, -0.0009584426879882812, 0.06719970703125, -0.0114898681640625, -0.01678466796875, 0.004486083984375, 0.005710601806640625, 0.0298309326171875, -0.01837158203125, 0.049652099609375, -0.044952392578125, -0.035888671875, -0.0015087127685546875, 0.0177001953125, 0.01508331298828125, 0.01218414306640625, -0.0032024383544921875, 0.0190887451171875, -0.0294952392578125, 0.01284027099609375, -0.0278167724609375, 0.0008535385131835938, 0.016693115234375, 0.0283966064453125, -0.0147247314453125, 0.052947998046875, 0.01380157470703125, -0.01204681396484375, 0.0240478515625, 0.005687713623046875, -0.002925872802734375, -0.0273284912109375, 0.0163116455078125, -0.06268310546875, 0.06170654296875, 0.00214385986328125, 0.0106201171875, 0.0094146728515625, 0.037139892578125, 0.0019378662109375, -0.0533447265625, -0.0013027191162109375, 0.06756591796875, -0.0277099609375, -0.02630615234375, -0.040069580078125, -0.038116455078125, 0.001804351806640625, -0.02557373046875, 0.038330078125, -0.0162353515625, 0.008453369140625, -0.039886474609375, 0.05230712890625, -0.019256591796875, -0.050140380859375, 0.040374755859375, -0.04168701171875, 0.08624267578125, -0.029876708984375, -0.033935546875, 0.014312744140625, -0.045379638671875, -0.007762908935546875, -0.01995849609375, 0.0132904052734375, -0.00212860107421875, 0.034332275390625, -0.0026569366455078125, -0.018585205078125, 0.00408935546875, 0.0018110275268554688, 0.00725555419921875, 0.00647735595703125, 0.0092620849609375, -0.009033203125, -0.061004638671875, -0.0284576416015625, -0.0274810791015625, 0.0244140625, -0.00778961181640625, 0.06768798828125, -0.0024013519287109375, 0.01329803466796875, 0.006587982177734375, -0.01171112060546875, 0.01629638671875, 0.0031032562255859375, 0.01146697998046875, 0.004123687744140625, -0.003963470458984375, -0.00662994384765625, -0.07427978515625, 0.038970947265625, -0.0014543533325195312, 0.0242919921875, 0.07879638671875, -0.0670166015625, 0.0227508544921875, -0.004810333251953125, 0.013336181640625, -0.048065185546875, -0.03521728515625, -0.007049560546875, 0.015777587890625, -0.016265869140625, -0.0283203125, -0.0166778564453125, 0.01068878173828125, -0.0260772705078125, -0.024627685546875, 0.0245208740234375, -0.026641845703125, 0.03558349609375, 0.0246734619140625, -0.03375244140625, 0.0017843246459960938, -0.03466796875, -0.02923583984375, 0.01198577880859375, -0.012420654296875, 0.00740814208984375, -0.0108184814453125, 0.06915283203125, -0.05633544921875, -0.017974853515625, 0.01438140869140625, 0.0062408447265625, 0.0004074573516845703, -0.04443359375, 0.005191802978515625, -0.042755126953125, 0.00473785400390625, -0.0080718994140625, -0.01467132568359375, 0.0009593963623046875, 0.0007991790771484375, 0.01007080078125, -0.019256591796875, -0.0296173095703125, -0.007213592529296875, 0.007259368896484375, -0.03271484375, 0.0287933349609375, -0.0299835205078125, -0.0340576171875, 0.020904541015625, -0.0297393798828125, -0.0137481689453125, -0.0041046142578125, 0.0163421630859375, -0.0287017822265625, -0.01216888427734375, -0.034912109375, -0.004138946533203125, -0.0141143798828125, 0.0006594657897949219, 0.01178741455078125, -0.0003380775451660156, -0.0236053466796875, -0.01534271240234375, -0.0101165771484375, 0.0379638671875, -0.00043320655822753906, -0.0037860870361328125, 0.01026153564453125, 0.01480865478515625, -0.0197906494140625, -0.032867431640625, -0.005680084228515625, 0.00347900390625, 0.006481170654296875, -0.0209503173828125, 0.029754638671875, 0.0345458984375, -0.0268402099609375, -0.06787109375, 0.060791015625, -0.0159759521484375, -0.0239105224609375, -0.0950927734375, -0.043701171875, 0.003021240234375, 0.0307159423828125, -0.0487060546875, -0.0165252685546875, -0.0635986328125, 0.06671142578125, 0.01495361328125, 0.05926513671875, 0.0029735565185546875, -0.01351165771484375, -0.03729248046875, -0.0016832351684570312, -0.0245819091796875, 0.05450439453125, -0.006206512451171875, 0.0171661376953125, 0.0234527587890625, 0.03424072265625, -0.00846099853515625, 0.059051513671875, 0.004398345947265625, -0.0143585205078125, -0.0209808349609375, -0.00769805908203125, 0.01493072509765625, 0.035400390625, 0.051361083984375, 0.051727294921875, -0.0003025531768798828, -0.07232666015625, 0.04119873046875, -0.005069732666015625, -0.0060272216796875, -0.026214599609375, -0.0090179443359375, -0.037445068359375, -0.0287933349609375, -0.0160064697265625, 0.0285491943359375, -0.0052337646484375, -0.0302276611328125, 0.006282806396484375, -0.032073974609375, 0.006107330322265625, -0.011322021484375, 0.0217742919921875, -0.030792236328125, 0.044677734375, -0.031402587890625, -0.00618743896484375, 0.01326751708984375, 0.0369873046875, -0.0001989603042602539, 0.0241851806640625, 0.0003063678741455078, 0.00373077392578125, -0.025726318359375, 0.01268768310546875, 0.0008473396301269531, -0.031707763671875, -0.020599365234375, 0.004180908203125, -0.0126800537109375, 0.0283966064453125, 0.01285552978515625, 0.031890869140625, -0.0007929801940917969, -0.014892578125, -0.001949310302734375, -0.0014047622680664062, -0.0152435302734375, 0.103271484375, 0.00045228004455566406, 0.04632568359375, -0.003025054931640625, -0.00817108154296875, 0.04058837890625, -0.03778076171875, 0.003116607666015625, 0.02313232421875, -0.0162353515625, -0.02911376953125, -0.0062255859375, 0.01108551025390625, 0.0079345703125, -0.0016689300537109375 ]
eb371e23dc10024f781d680abab3bdce56e70fc9
Wordpress Stackexchange Q: WooCommerce - Hook after Loading Variation in Admin Edit page? In Product's Edit page, when we click Variations, we will see AJAX loading for all of its variations. Is there a Hook for when it finished? I want to run a script to add some "at-a-glance" information on each Toggle Header. For example "Sold Out" label when the variation has 0 stock. Thanks A: In woocommerce/includes/class-wc-ajax.php there is a method on the WC_AJAX class responsible for loading variations called load_variations, it contains only one hook, which is a filter, named woocommerce_ajax_admin_get_variations_args which fires early in the method. However if you are looking for something client side, then woocommerce/assets/js/admin/meta-boxes-product-variation.js triggers an event on the success callback of the load_variations function named woocommerce_variations_loaded. Therefore if you are looking to fire subsequent actions using JS, then: $(document).on('woocommerce_variations_loaded', function(event) { //your code here... }); Or you can try binding to the element in which the trigger is executed upon: $('#woocommerce-product-data').on('woocommerce_variations_loaded', function(event) { //your code here... });
Q: WooCommerce - Hook after Loading Variation in Admin Edit page? In Product's Edit page, when we click Variations, we will see AJAX loading for all of its variations. Is there a Hook for when it finished? I want to run a script to add some "at-a-glance" information on each Toggle Header. For example "Sold Out" label when the variation has 0 stock. Thanks A: In woocommerce/includes/class-wc-ajax.php there is a method on the WC_AJAX class responsible for loading variations called load_variations, it contains only one hook, which is a filter, named woocommerce_ajax_admin_get_variations_args which fires early in the method. However if you are looking for something client side, then woocommerce/assets/js/admin/meta-boxes-product-variation.js triggers an event on the success callback of the load_variations function named woocommerce_variations_loaded. Therefore if you are looking to fire subsequent actions using JS, then: $(document).on('woocommerce_variations_loaded', function(event) { //your code here... }); Or you can try binding to the element in which the trigger is executed upon: $('#woocommerce-product-data').on('woocommerce_variations_loaded', function(event) { //your code here... });
wordpress
{ "language": "en", "length": 163, "provenance": "stackexchange_00019.jsonl.gz:463141", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/217518" }
[ 0.006099700927734375, -0.0271759033203125, -0.0352783203125, -0.08319091796875, -0.007801055908203125, -0.00879669189453125, -0.0416259765625, 0.0316162109375, -0.007701873779296875, 0.0218963623046875, -0.0191497802734375, 0.0103302001953125, -0.0166778564453125, -0.01404571533203125, -0.01044464111328125, -0.023193359375, 0.04217529296875, -0.0052490234375, 0.033447265625, 0.016357421875, -0.018768310546875, 0.05364990234375, -0.00653839111328125, 0.0665283203125, 0.05609130859375, -0.051025390625, 0.0673828125, -0.034393310546875, 0.046966552734375, -0.0211334228515625, 0.0416259765625, -0.0219573974609375, 0.035736083984375, -0.00598907470703125, -0.00882720947265625, 0.035491943359375, 0.015106201171875, -0.003208160400390625, 0.00745391845703125, 0.01216888427734375, 0.0548095703125, -0.0450439453125, 0.0217132568359375, 0.042205810546875, 0.0013208389282226562, -0.036712646484375, 0.050506591796875, -0.043548583984375, 0.0189666748046875, 0.031585693359375, 0.01512908935546875, -0.0193634033203125, 0.006847381591796875, 0.016998291015625, -0.0005650520324707031, 0.0162811279296875, -0.07647705078125, 0.046417236328125, 0.034515380859375, 0.041412353515625, -0.00659942626953125, -0.02215576171875, -0.005157470703125, -0.055755615234375, -0.001499176025390625, -0.0181121826171875, -0.0245513916015625, 0.021270751953125, -0.048828125, -0.0041656494140625, 0.055206298828125, -0.035400390625, -0.0240478515625, 0.0009746551513671875, -0.0267791748046875, -0.029693603515625, 0.0509033203125, -0.007343292236328125, -0.0219573974609375, 0.039764404296875, 0.044281005859375, 0.0100555419921875, 0.00930023193359375, -0.01001739501953125, 0.005191802978515625, 0.00555419921875, -0.0015668869018554688, -0.019378662109375, -0.02850341796875, -0.029998779296875, -0.028076171875, -0.0030002593994140625, -0.01412200927734375, 0.00537109375, -0.06024169921875, 0.0099639892578125, -0.039794921875, -0.01125335693359375, 0.0150604248046875, 0.0302276611328125, 0.006988525390625, -0.027587890625, 0.017608642578125, -0.022735595703125, -0.01355743408203125, 0.0246429443359375, 0.0281982421875, 0.04595947265625, 0.0259246826171875, 0.006343841552734375, -0.020355224609375, 0.0211029052734375, -0.0015096664428710938, 0.012054443359375, -0.007843017578125, -0.00193023681640625, -0.047332763671875, 0.0189971923828125, -0.026702880859375, 0.006992340087890625, 0.031951904296875, 0.016143798828125, 0.07171630859375, 0.0014257431030273438, -0.02337646484375, -0.01155853271484375, -0.03228759765625, -0.0845947265625, -0.033203125, -0.01132965087890625, -0.023773193359375, 0.028472900390625, 0.05474853515625, 0.0275726318359375, -0.0065155029296875, 0.0084686279296875, 0.016143798828125, 0.045074462890625, -0.00494384765625, -0.01537322998046875, 0.005859375, -0.002773284912109375, -0.0171051025390625, -0.004741668701171875, 0.051422119140625, -0.0291748046875, 0.00826263427734375, 0.0390625, 0.0170135498046875, 0.03680419921875, 0.00765228271484375, 0.0174407958984375, 0.041900634765625, 0.0098876953125, 0.0225372314453125, -0.0017366409301757812, 0.060638427734375, -0.03326416015625, -0.0263671875, -0.05645751953125, -0.019561767578125, -0.00555419921875, 0.009246826171875, -0.0304718017578125, -0.048919677734375, 0.0236663818359375, 0.003726959228515625, -0.00423431396484375, 0.0308685302734375, 0.0292510986328125, 0.030670166015625, -0.0030193328857421875, 0.01392364501953125, 0.0138092041015625, 0.0011930465698242188, -0.00981903076171875, 0.0027675628662109375, 0.01153564453125, 0.06121826171875, -0.049652099609375, -0.06439208984375, -0.04388427734375, 0.09320068359375, -0.05877685546875, -0.0235595703125, 0.056549072265625, 0.01477813720703125, 0.048797607421875, -0.00864410400390625, 0.018951416015625, -0.005168914794921875, 0.041748046875, -0.036468505859375, 0.01442718505859375, -0.043365478515625, 0.0213470458984375, -0.013580322265625, 0.037322998046875, -0.035003662109375, 0.0068817138671875, 0.041259765625, 0.01953125, -0.01776123046875, -0.0181121826171875, -0.05181884765625, 0.002338409423828125, -0.01317596435546875, 0.030181884765625, 0.0147705078125, 0.036529541015625, 0.0234832763671875, 0.036468505859375, -0.05242919921875, 0.005588531494140625, -0.0145416259765625, -0.0157012939453125, -0.048370361328125, 0.09124755859375, 0.00994110107421875, 0.046905517578125, 0.03271484375, -0.060028076171875, 0.050811767578125, -0.0062408447265625, 0.0283050537109375, 0.01421356201171875, -0.01006317138671875, -0.0036678314208984375, 0.034210205078125, 0.019927978515625, 0.004852294921875, 0.0088958740234375, 0.0254058837890625, -0.036865234375, -0.06695556640625, -0.0203094482421875, -0.024993896484375, -0.08367919921875, 0.0002522468566894531, 0.0908203125, 0.0238037109375, 0.0584716796875, -0.021087646484375, -0.01406097412109375, 0.08221435546875, -0.022613525390625, -0.00353240966796875, -0.011199951171875, -0.0182037353515625, 0.0300445556640625, -0.002513885498046875, 0.0115814208984375, 0.0027675628662109375, -0.01080322265625, -0.00959014892578125, 0.03106689453125, -0.040252685546875, -0.014862060546875, -0.0195465087890625, -0.00576019287109375, -0.002193450927734375, -0.052459716796875, -0.004642486572265625, -0.0281829833984375, 0.04840087890625, -0.028564453125, 0.029876708984375, 0.0095367431640625, -0.0124664306640625, -0.0212860107421875, 0.0190887451171875, -0.00960540771484375, -0.0036754608154296875, 0.00910186767578125, 0.00830841064453125, -0.0130462646484375, -0.03619384765625, 0.00461578369140625, 0.026214599609375, -0.0157318115234375, -0.004558563232421875, 0.0163421630859375, -0.0128021240234375, -0.007232666015625, 0.007358551025390625, -0.051300048828125, 0.00347137451171875, 0.0106353759765625, 0.0159149169921875, 0.00604248046875, 0.0290374755859375, 0.0238800048828125, -0.01294708251953125, 0.0283966064453125, -0.02734375, -0.01995849609375, -0.00835418701171875, -0.0033111572265625, 0.021942138671875, -0.046112060546875, 0.043426513671875, 0.053314208984375, -0.0195465087890625, 0.01305389404296875, 0.007778167724609375, -0.0002448558807373047, 0.015472412109375, -0.0025959014892578125, -0.0146331787109375, 0.02020263671875, -0.071044921875, 0.01200103759765625, 0.037200927734375, 0.059967041015625, 0.0244140625, -0.00798797607421875, 0.0084075927734375, 0.043487548828125, -0.023773193359375, -0.04791259765625, -0.0501708984375, -0.0777587890625, 0.03302001953125, -0.026641845703125, -0.0219879150390625, -0.01416015625, -0.01009368896484375, 0.038726806640625, -0.043304443359375, -0.0303497314453125, -0.0221099853515625, -0.0660400390625, -0.05389404296875, 0.01543426513671875, 0.007389068603515625, 0.0275421142578125, -0.0030975341796875, 0.0215606689453125, -0.028045654296875, -0.045989990234375, -0.038909912109375, 0.018951416015625, -0.0024585723876953125, -0.0233917236328125, -0.0070343017578125, -0.0352783203125, 0.006320953369140625, -0.01166534423828125, -0.021209716796875, 0.01302337646484375, 0.00308990478515625, -0.0088958740234375, -0.0186004638671875, -0.0197601318359375, 0.030181884765625, 0.0168304443359375, 0.006053924560546875, 0.020355224609375, 0.05230712890625, -0.01262664794921875, -0.005706787109375, 0.0009832382202148438, -0.0243988037109375, -0.03826904296875, 0.011962890625, -0.01279449462890625, -0.01029205322265625, -0.0090789794921875, 0.0203857421875, 0.004085540771484375, 0.036529541015625, -0.0173797607421875, 0.0171051025390625, -0.01493072509765625, -0.00696563720703125, -0.04718017578125, 0.00981903076171875, 0.00020062923431396484, 0.004871368408203125, 0.00354766845703125, 0.0295257568359375, -0.0301666259765625, 0.07037353515625, -0.052459716796875, -0.01715087890625, 0.031402587890625, 0.001277923583984375, 0.01125335693359375, 0.0018968582153320312, -0.019134521484375, 0.00347900390625, 0.0684814453125, 0.04425048828125, -0.0158843994140625, -0.0172576904296875, -0.0145263671875, -0.0256500244140625, 0.0026798248291015625, -0.002170562744140625, 0.00606536865234375, -0.0989990234375, 0.0660400390625, 0.028472900390625, -0.005584716796875, -0.0413818359375, 0.035308837890625, -0.0712890625, -0.025299072265625, 0.021392822265625, -0.031219482421875, -0.019378662109375, 0.0531005859375, -0.0183258056640625, 0.01216888427734375, -0.0080718994140625, -0.0293426513671875, -0.039520263671875, -0.00795745849609375, 0.0207366943359375, 0.0105438232421875, 0.01369476318359375, -0.049713134765625, 0.0009551048278808594, 0.020263671875, 0.0224151611328125, 0.0126800537109375, 0.00998687744140625, 0.01380157470703125, 0.0080718994140625, -0.05322265625, -0.00820159912109375, -0.0506591796875, -0.031524658203125, -0.0257415771484375, -0.021820068359375, 0.0074462890625, -0.0008873939514160156, -0.01081085205078125, 0.022003173828125, -0.0115814208984375, -0.10302734375, -0.016632080078125, 0.00847625732421875, -0.0162811279296875, 0.011810302734375, -0.0174102783203125, -0.0012102127075195312, -0.08154296875, 0.00086212158203125, -0.0316162109375, -0.022491455078125, 0.0169677734375, 0.01276397705078125, 0.01849365234375, 0.006351470947265625, 0.014923095703125, -0.0200653076171875, 0.037078857421875, 0.0037593841552734375, 0.035552978515625, 0.00885009765625, -0.0105133056640625, 0.055877685546875, 0.0135498046875, -0.0020275115966796875, 0.0033397674560546875, 0.040313720703125, 0.00791168212890625, -0.0212249755859375, 0.00656890869140625, -0.007076263427734375, -0.02789306640625, -0.01143646240234375, -0.034820556640625, 0.02911376953125, 0.023590087890625, -0.0012998580932617188, -0.051727294921875, 0.04345703125, 0.01611328125, 0.00412750244140625, -0.01500701904296875, 0.0310821533203125, 0.09405517578125, 0.0270538330078125, 0.0215301513671875, 0.006328582763671875, 0.035552978515625, 0.0210723876953125, 0.0039520263671875, 0.0025806427001953125, -0.00992584228515625, 0.03179931640625, 0.02923583984375, 0.014373779296875, -0.0137786865234375, 0.004852294921875, -0.005573272705078125, -0.004344940185546875, -0.026458740234375, -0.0245513916015625, -0.007122039794921875, -0.0196380615234375, 0.007293701171875, -0.019775390625, 0.032806396484375, 0.039794921875, -0.00475311279296875, -0.0238800048828125, -0.0155029296875, 0.01323699951171875, -0.043701171875, 0.06732177734375, 0.0108489990234375, 0.01285552978515625, 0.00621795654296875, 0.05047607421875, 0.05914306640625, -0.001071929931640625, -0.0269622802734375, 0.042510986328125, 0.0020771026611328125, 0.0439453125, 0.037109375, -0.059356689453125, 0.0258026123046875, -0.007076263427734375, -0.020477294921875, -0.057220458984375, -0.017822265625, 0.032928466796875, 0.050811767578125, -0.01361846923828125, -0.015899658203125, 0.01959228515625, 0.00661468505859375, -0.0308837890625, 0.0267181396484375, -0.010284423828125, -0.04290771484375, -0.043365478515625, -0.02764892578125, 0.0194091796875, 0.0004146099090576172, -0.0247344970703125, 0.0291748046875, -0.055908203125, 0.0073699951171875, -0.023101806640625, -0.001369476318359375, -0.00453948974609375, -0.01114654541015625, -0.05474853515625, -0.0177001953125, 0.0108795166015625, -0.028961181640625, -0.0272064208984375, 0.01824951171875, -0.01227569580078125, 0.002651214599609375, -0.0238800048828125, 0.019500732421875, -0.019134521484375, -0.0134735107421875, -0.03582763671875, 0.0129241943359375, 0.031494140625, 0.0169677734375, -0.0195159912109375, -0.00830078125, -0.025421142578125, -0.02679443359375, -0.01422882080078125, -0.04296875, -0.0012845993041992188, -0.00701904296875, -0.0020465850830078125, 0.0175018310546875, -0.0186309814453125, -0.0537109375, -0.02783203125, -0.0230865478515625, 0.02685546875, -0.00905609130859375, 0.0006418228149414062, 0.006664276123046875, 0.014739990234375, -0.0141143798828125, 0.00785064697265625, -0.0103607177734375, -0.0094451904296875, -0.01007843017578125, -0.038360595703125, -0.0119781494140625, 0.02099609375, 0.00485992431640625, 0.0017175674438476562, 0.03240966796875, 0.08734130859375, 0.0130615234375, 0.018341064453125, -0.01715087890625, -0.01097869873046875, -0.006500244140625, 0.0301361083984375, -0.01824951171875, -0.0438232421875, 0.08837890625, -0.043609619140625, -0.0302886962890625, 0.0185089111328125, -0.021453857421875, 0.046173095703125, -0.0272369384765625, 0.0157623291015625, 0.03033447265625, -0.0345458984375, 0.05206298828125, 0.05120849609375, 0.004730224609375, 0.0253448486328125, 0.00493621826171875, 0.0014848709106445312, 0.001636505126953125, 0.0714111328125, -0.0238800048828125, -0.07867431640625, 0.058685302734375, 0.023040771484375, -0.0406494140625, 0.037017822265625, -0.0294952392578125, 0.0185699462890625, 0.0264129638671875, 0.0538330078125, -0.07037353515625, 0.0267791748046875, 0.035308837890625, 0.00550079345703125, 0.004566192626953125, 0.00010466575622558594, -0.031646728515625, -0.07183837890625, 0.00988006591796875, 0.010986328125, -0.0290374755859375, -0.01113128662109375, 0.001758575439453125, -0.0180816650390625, -0.0087890625, -0.004016876220703125, -0.003604888916015625, -0.0682373046875, 0.0216827392578125, 0.0255279541015625, -0.0156097412109375, -0.006984710693359375, 0.0198516845703125, 0.042449951171875, -0.0223388671875, -0.024688720703125, 0.061737060546875, 0.00047278404235839844, -0.0127105712890625, 0.0221405029296875, 0.0176849365234375, 0.0183868408203125, 0.02899169921875, 0.0190887451171875, -0.023162841796875, -0.00811004638671875, -0.01629638671875, -0.040863037109375, -0.005218505859375, 0.028900146484375, 0.003978729248046875, -0.05126953125, 0.014373779296875, -0.049835205078125, -0.01373291015625, -0.0041351318359375, 0.018035888671875, 0.049896240234375, -0.0170745849609375, -0.02294921875, 0.05279541015625, 0.0279998779296875, -0.0248260498046875, 0.0206146240234375, 0.04150390625, 0.0038242340087890625, 0.00679779052734375, 0.00020933151245117188, -0.045318603515625, -0.06927490234375, -0.043609619140625, -0.046661376953125, 0.07965087890625, -0.0241241455078125, -0.00531005859375, 0.0180816650390625, 0.0302886962890625, -0.0213623046875, 0.008331298828125, -0.04754638671875, 0.07177734375, 0.0107879638671875, 0.052703857421875, -0.06219482421875, -0.005458831787109375, 0.00949859619140625, 0.02178955078125, -0.051605224609375, -0.0174407958984375, 0.052490234375, 0.0019683837890625, 0.042083740234375, 0.00568389892578125, -0.00386810302734375, -0.0138702392578125, 0.0230255126953125, 0.0100555419921875, 0.057891845703125, -0.04815673828125, 0.0205078125, -0.034423828125, 0.044677734375, 0.031951904296875, 0.017425537109375, 0.035064697265625, 0.00252532958984375, 0.036407470703125, -0.01087188720703125, -0.0025348663330078125, 0.0222930908203125, -0.02227783203125, -0.00783538818359375, 0.02978515625, 0.0135498046875, 0.033905029296875, 0.0229644775390625, -0.0287933349609375, 0.0285797119140625, 0.0235595703125, -0.035980224609375, -0.006694793701171875, 0.0010614395141601562, 0.036590576171875, -0.0282135009765625, -0.0433349609375, 0.004932403564453125, 0.015045166015625, 0.004398345947265625, -0.0114288330078125, 0.01154327392578125, -0.031280517578125, 0.0133209228515625, 0.04046630859375, 0.0034160614013671875, -0.020782470703125, -0.036041259765625, 0.006290435791015625, -0.0117340087890625, -0.0184783935546875, -0.012176513671875, -0.02349853515625, -0.0521240234375, -0.003688812255859375, -0.00936126708984375, -0.00890350341796875, 0.02777099609375, 0.01325225830078125, 0.03326416015625, 0.09246826171875, -0.061065673828125, -0.03497314453125, -0.0150909423828125, 0.027496337890625, -0.0010519027709960938, 0.0377197265625, -0.021270751953125, 0.06109619140625, -0.047393798828125, -0.0125732421875, 0.0081787109375, 0.007411956787109375, -0.006664276123046875, -0.0034580230712890625, -0.039398193359375, -0.0269317626953125, -0.018402099609375, 0.053253173828125, 0.00849151611328125, 0.034027099609375, 0.048004150390625, 0.045745849609375, -0.004619598388671875, -0.006671905517578125, 0.0201416015625, -0.0092315673828125, -0.0007224082946777344, -0.012420654296875, 0.006992340087890625, -0.005970001220703125, -0.0128326416015625, -0.01422882080078125, 0.03375244140625, 0.0113525390625, -0.049896240234375, 0.0139312744140625, -0.017913818359375, -0.046173095703125, 0.00884246826171875, 0.0213165283203125, 0.070068359375, -0.004589080810546875, -0.064453125, -0.0042877197265625, -0.021148681640625, -0.0276641845703125, 0.005390167236328125, 0.023529052734375, -0.040802001953125, 0.067138671875, -0.029266357421875, -0.00557708740234375, 0.01386260986328125, 0.0007724761962890625, -0.005252838134765625, -0.0206451416015625, 0.0028629302978515625, -0.017120361328125, -0.02880859375, -0.007122039794921875, 0.026031494140625, -0.0015316009521484375, -0.01532745361328125, 0.004638671875, 0.0260162353515625, 0.00489044189453125, 0.0389404296875, -0.056610107421875, 0.0269012451171875, -0.0169219970703125, 0.05401611328125, -0.05999755859375, -0.052581787109375, 0.006011962890625, -0.00033974647521972656, 0.005859375, 0.051177978515625, 0.0016851425170898438, 0.016845703125, -0.03692626953125, 0.0263671875, -0.02642822265625, 0.0557861328125, -0.01062774658203125, -0.0301361083984375, -0.031402587890625, 0.0087738037109375, 0.0216217041015625, 0.0099029541015625, -0.038421630859375, -0.0171661376953125, 0.00685882568359375, 0.006145477294921875, 0.0009965896606445312, 0.062103271484375, -0.0102996826171875, 0.01947021484375, -0.0125885009765625, 0.01458740234375, 0.0023021697998046875, -0.01194000244140625, 0.03179931640625, -0.0029163360595703125, 0.00005251169204711914, 0.00911712646484375, -0.044036865234375, 0.0301055908203125, 0.06494140625, 0.047637939453125, -0.024871826171875, 0.01528167724609375, 0.051055908203125, -0.028106689453125, 0.036956787109375, 0.01189422607421875, -0.0207672119140625, -0.01311492919921875, -0.01386260986328125, -0.000017464160919189453, 0.0283966064453125, -0.0303497314453125, 0.013427734375, 0.0159759521484375, 0.03515625, 0.01030731201171875, -0.0670166015625, 0.027740478515625, -0.01169586181640625, 0.0699462890625, -0.0121002197265625, 0.01241302490234375, 0.008544921875, 0.0201873779296875, -0.02093505859375, -0.00786590576171875, -0.0296783447265625, -0.0139312744140625, -0.024322509765625, -0.011932373046875, 0.034942626953125, -0.01169586181640625, -0.060546875, -0.0311126708984375, -0.019775390625, 0.0234222412109375, -0.002239227294921875, -0.0390625, 0.035400390625, 0.01435089111328125, -0.00926971435546875, -0.06890869140625, -0.0272064208984375, -0.0254364013671875, 0.045745849609375, 0.0014591217041015625, -0.04248046875, -0.013031005859375, -0.053009033203125, -0.093017578125, 0.08709716796875, -0.0148162841796875, -0.0214385986328125, -0.082275390625, -0.0017957687377929688, 0.0188446044921875, -0.0022735595703125, -0.050537109375, 0.01065826416015625, -0.0684814453125, 0.034576416015625, -0.0108184814453125, 0.00435638427734375, 0.046966552734375, -0.0281982421875, -0.0251617431640625, -0.01355743408203125, -0.006687164306640625, -0.0092315673828125, 0.0221099853515625, -0.04296875, 0.040313720703125, 0.03594970703125, -0.0189056396484375, -0.08197021484375, 0.0037689208984375, -0.0474853515625, 0.0083770751953125, -0.04180908203125, -0.01605224609375, -0.0212860107421875, 0.06011962890625, -0.019195556640625, 0.00823974609375, 0.0025043487548828125, 0.007320404052734375, -0.04986572265625, -0.01470184326171875, -0.03131103515625, 0.002819061279296875, -0.06414794921875, -0.0121917724609375, 0.0169677734375, -0.027374267578125, 0.0034961700439453125, 0.02685546875, -0.056884765625, 0.01406097412109375, -0.0009813308715820312, 0.00821685791015625, -0.09197998046875, -0.0276947021484375, -0.020751953125, -0.007488250732421875, -0.0248565673828125, 0.0198211669921875, 0.0197601318359375, -0.024078369140625, 0.0416259765625, 0.003154754638671875, -0.002506256103515625, -0.024444580078125, 0.0153656005859375, 0.0016117095947265625, 0.04229736328125, -0.03826904296875, -0.0116424560546875, -0.01629638671875, 0.01235198974609375, -0.005615234375, -0.004016876220703125, 0.01354217529296875, 0.00370025634765625, 0.00293731689453125, 0.054779052734375, -0.03692626953125, 0.0665283203125, -0.0203704833984375, 0.035858154296875, -0.0158843994140625, 0.0300445556640625, 0.03070068359375, 0.0170745849609375, -0.005031585693359375, -0.01093292236328125, -0.0038909912109375, -0.0271759033203125, 0.000453948974609375, 0.021484375, -0.0239410400390625, 0.0087890625 ]
93082515c5012de677c53f86170b0ec0e4b34345
Wordpress Stackexchange Q: Proper way to hook wp_get_attachment_url or any other way to change that url in media library I am trying to hook wp_get_attachment_url() with my custom implementation. I am trying to get my post videos and any other static data from the Amazon S3 and I was wondering if I can configure the URL with my Amazon bucket URL. This is what I was trying to do add_filter('wp_get_attachment_url', 'custom_get_attachment_url', 1, 1); function clrs_get_attachment_url($post_id = 0) { // change URL for Amazon bucket } but this is not working as expected as I am getting $post_id as 0. How to do it in a proper way? A: The filter has 2 parameters, also the function name doesn't match. So your code should look like this: add_filter('wp_get_attachment_url', 'clrs_get_attachment_url', 10, 2); function clrs_get_attachment_url($url, $post_id) { // Do what you want to $url return $url; }
Q: Proper way to hook wp_get_attachment_url or any other way to change that url in media library I am trying to hook wp_get_attachment_url() with my custom implementation. I am trying to get my post videos and any other static data from the Amazon S3 and I was wondering if I can configure the URL with my Amazon bucket URL. This is what I was trying to do add_filter('wp_get_attachment_url', 'custom_get_attachment_url', 1, 1); function clrs_get_attachment_url($post_id = 0) { // change URL for Amazon bucket } but this is not working as expected as I am getting $post_id as 0. How to do it in a proper way? A: The filter has 2 parameters, also the function name doesn't match. So your code should look like this: add_filter('wp_get_attachment_url', 'clrs_get_attachment_url', 10, 2); function clrs_get_attachment_url($url, $post_id) { // Do what you want to $url return $url; }
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:463248", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/217926" }
[ 0.0382080078125, -0.009429931640625, -0.001445770263671875, -0.0028057098388671875, -0.00817108154296875, -0.03326416015625, 0.056976318359375, -0.028533935546875, -0.0226898193359375, 0.0227203369140625, 0.0416259765625, -0.00858306884765625, -0.045623779296875, -0.047454833984375, -0.0243682861328125, -0.040863037109375, 0.06573486328125, -0.0372314453125, 0.053558349609375, 0.013702392578125, 0.02008056640625, 0.06414794921875, 0.033538818359375, 0.046173095703125, 0.0261383056640625, -0.0185394287109375, 0.0677490234375, -0.0225372314453125, 0.017608642578125, -0.00518798828125, 0.0280609130859375, -0.029388427734375, 0.0312042236328125, 0.0031337738037109375, -0.0350341796875, -0.0205230712890625, 0.0111083984375, -0.003940582275390625, -0.03485107421875, 0.047210693359375, 0.0250244140625, -0.00859832763671875, -0.02044677734375, 0.0044097900390625, -0.03302001953125, -0.0205078125, 0.0107269287109375, -0.0161590576171875, 0.040771484375, 0.033172607421875, -0.0026702880859375, 0.0262451171875, 0.0021724700927734375, 0.0289764404296875, -0.0258331298828125, -0.0242919921875, -0.01611328125, 0.01467132568359375, 0.010589599609375, -0.0100555419921875, -0.01236724853515625, 0.02642822265625, 0.0087127685546875, 0.007480621337890625, 0.0202484130859375, -0.00737762451171875, 0.02593994140625, 0.0281982421875, -0.08245849609375, -0.02862548828125, 0.043212890625, -0.036346435546875, -0.036346435546875, -0.0037288665771484375, -0.01544952392578125, -0.0226287841796875, 0.04302978515625, -0.044097900390625, -0.0275726318359375, 0.0277557373046875, 0.02978515625, -0.0189208984375, 0.0287628173828125, -0.0081787109375, 0.0257568359375, 0.031280517578125, 0.00002956390380859375, -0.024810791015625, -0.00016510486602783203, -0.0159149169921875, -0.0127410888671875, -0.0247650146484375, 0.0211639404296875, -0.0195159912109375, -0.0216522216796875, -0.0467529296875, 0.035064697265625, -0.0174102783203125, 0.01611328125, -0.00998687744140625, 0.042205810546875, -0.054779052734375, 0.03271484375, -0.00931549072265625, 0.01409912109375, 0.021728515625, 0.01242828369140625, -0.033477783203125, 0.035125732421875, 0.00858306884765625, -0.0137786865234375, 0.08203125, 0.039764404296875, 0.034820556640625, -0.01727294921875, -0.0443115234375, -0.021575927734375, 0.025726318359375, -0.0279998779296875, 0.0193939208984375, 0.014068603515625, 0.01184844970703125, 0.019683837890625, -0.0059356689453125, 0.00927734375, 0.018646240234375, -0.0207977294921875, -0.0328369140625, -0.00032830238342285156, 0.0234527587890625, -0.0212860107421875, 0.019439697265625, 0.04058837890625, 0.007129669189453125, -0.006717681884765625, -0.01548004150390625, -0.01552581787109375, -0.0137939453125, 0.002079010009765625, 0.01412200927734375, 0.01274871826171875, -0.010772705078125, 0.02239990234375, 0.01509857177734375, 0.031951904296875, 0.0160064697265625, 0.0157012939453125, 0.01511383056640625, 0.001316070556640625, -0.01396942138671875, 0.003009796142578125, -0.0239410400390625, 0.040130615234375, 0.01079559326171875, 0.005809783935546875, -0.031494140625, 0.06756591796875, -0.055694580078125, -0.0017423629760742188, -0.072021484375, -0.001674652099609375, -0.0281219482421875, -0.023529052734375, -0.01666259765625, -0.03271484375, 0.03985595703125, 0.012908935546875, -0.00010955333709716797, 0.004638671875, 0.058441162109375, 0.00010734796524047852, 0.0205535888671875, -0.021728515625, 0.01123046875, 0.002147674560546875, -0.0196533203125, -0.02020263671875, 0.026641845703125, 0.0299072265625, 0.0247344970703125, 0.01207733154296875, -0.02362060546875, 0.0814208984375, -0.0185394287109375, -0.06085205078125, 0.056060791015625, 0.00905609130859375, 0.07000732421875, 0.0270233154296875, 0.01277923583984375, 0.021575927734375, 0.02398681640625, -0.0158538818359375, 0.01219940185546875, 0.0032596588134765625, -0.01507568359375, -0.00640869140625, -0.009674072265625, -0.003780364990234375, 0.005023956298828125, -0.00884246826171875, 0.0165252685546875, 0.0250091552734375, 0.00030732154846191406, -0.00771331787109375, 0.01294708251953125, -0.0160675048828125, 0.030853271484375, -0.0467529296875, 0.0157928466796875, 0.035369873046875, 0.016510009765625, -0.041107177734375, -0.010345458984375, 0.0068511962890625, -0.00003546476364135742, 0.01154327392578125, 0.0213165283203125, -0.040771484375, 0.03399658203125, -0.046295166015625, -0.017730712890625, -0.0322265625, 0.033233642578125, 0.042755126953125, 0.00197601318359375, -0.0012722015380859375, -0.0103912353515625, 0.046722412109375, 0.0208587646484375, -0.02447509765625, -0.007717132568359375, -0.0035533905029296875, 0.0190277099609375, -0.0281982421875, -0.005695343017578125, 0.0006618499755859375, -0.036712646484375, 0.01114654541015625, 0.04736328125, 0.05035400390625, 0.02197265625, -0.0155181884765625, -0.0325927734375, 0.059600830078125, -0.00965118408203125, 0.019683837890625, -0.03582763671875, -0.021270751953125, 0.03662109375, 0.0293121337890625, 0.014434814453125, -0.0222015380859375, -0.053436279296875, -0.0062255859375, 0.0207977294921875, -0.00553131103515625, 0.005657196044921875, -0.01058197021484375, 0.0129852294921875, 0.0016603469848632812, 0.00189208984375, -0.0084228515625, -0.00482177734375, -0.0005588531494140625, 0.03729248046875, 0.0139312744140625, 0.0266876220703125, 0.0004284381866455078, 0.0096282958984375, 0.0025043487548828125, -0.01451873779296875, 0.010223388671875, 0.05560302734375, 0.0270843505859375, -0.0311279296875, 0.02911376953125, -0.036773681640625, -0.02093505859375, 0.0006256103515625, -0.020538330078125, 0.03497314453125, -0.00836944580078125, -0.0120697021484375, -0.02899169921875, -0.0634765625, 0.001739501953125, -0.00952911376953125, -0.0185089111328125, -0.01091766357421875, 0.036956787109375, 0.0141448974609375, 0.005962371826171875, 0.0099945068359375, -0.02557373046875, -0.00800323486328125, 0.0228729248046875, -0.06524658203125, 0.060455322265625, -0.042205810546875, 0.06561279296875, 0.07330322265625, -0.01812744140625, 0.019775390625, -0.00592803955078125, 0.01458740234375, -0.0237274169921875, 0.021240234375, 0.0084075927734375, -0.019378662109375, -0.04046630859375, 0.0099639892578125, 0.0032939910888671875, 0.02294921875, -0.02203369140625, -0.0501708984375, -0.0181121826171875, -0.01263427734375, -0.0994873046875, -0.06597900390625, 0.0399169921875, -0.04437255859375, 0.05682373046875, 0.017181396484375, -0.0183258056640625, -0.055267333984375, 0.065185546875, 0.00412750244140625, 0.0292510986328125, -0.014556884765625, -0.09918212890625, -0.0227813720703125, -0.08746337890625, 0.03717041015625, -0.0241241455078125, 0.01342010498046875, 0.007457733154296875, 0.03472900390625, 0.028350830078125, -0.0174407958984375, 0.022735595703125, 0.060791015625, -0.0233612060546875, -0.028106689453125, 0.01262664794921875, 0.002124786376953125, -0.0052947998046875, -0.01407623291015625, 0.07537841796875, 0.05194091796875, -0.06488037109375, 0.0172119140625, -0.0302581787109375, -0.040496826171875, 0.005374908447265625, 0.036468505859375, 0.0300445556640625, -0.01184844970703125, 0.054595947265625, -0.033935546875, 0.037017822265625, -0.00626373291015625, 0.018218994140625, 0.0311279296875, -0.02532958984375, -0.035888671875, -0.0024356842041015625, 0.0277557373046875, -0.040924072265625, -0.0084686279296875, -0.0097503662109375, 0.00093841552734375, 0.0013189315795898438, -0.0278778076171875, -0.042144775390625, 0.0355224609375, 0.0718994140625, 0.00482940673828125, -0.058197021484375, 0.021453857421875, 0.01198577880859375, 0.0034770965576171875, -0.028228759765625, -0.03997802734375, -0.060791015625, 0.056640625, -0.0218963623046875, 0.018341064453125, -0.0579833984375, -0.0487060546875, -0.0241241455078125, 0.1036376953125, -0.036376953125, -0.0212249755859375, -0.0140533447265625, 0.014007568359375, -0.0114593505859375, -0.053314208984375, -0.0179901123046875, -0.002471923828125, -0.0292205810546875, -0.0294189453125, -0.00270843505859375, -0.035064697265625, -0.00927734375, -0.006160736083984375, -0.045867919921875, -0.01493072509765625, 0.03302001953125, -0.007049560546875, 0.0173797607421875, 0.0440673828125, -0.027313232421875, 0.046234130859375, -0.067138671875, 0.00295257568359375, -0.07281494140625, -0.025634765625, 0.029937744140625, 0.043701171875, -0.016632080078125, -0.0263824462890625, -0.011566162109375, 0.05767822265625, 0.0170745849609375, 0.0017290115356445312, 0.0007419586181640625, -0.0312347412109375, 0.020782470703125, -0.0083465576171875, -0.02398681640625, -0.0028438568115234375, -0.005767822265625, -0.0677490234375, -0.09454345703125, -0.06060791015625, -0.0216522216796875, 0.06793212890625, 0.017425537109375, -0.013763427734375, -0.090087890625, -0.0350341796875, 0.006214141845703125, 0.0222320556640625, -0.0006775856018066406, -0.0011196136474609375, -0.033294677734375, -0.0845947265625, 0.03192138671875, -0.0114898681640625, 0.00316619873046875, -0.0011425018310546875, 0.037200927734375, 0.01305389404296875, -0.0205535888671875, -0.00919342041015625, -0.0014696121215820312, 0.035430908203125, -0.05255126953125, 0.074462890625, 0.0599365234375, -0.0108642578125, 0.0300750732421875, -0.00811767578125, 0.049530029296875, 0.0059814453125, -0.0037403106689453125, 0.0196075439453125, 0.00495147705078125, 0.0218353271484375, 0.04754638671875, -0.043914794921875, -0.007602691650390625, -0.035552978515625, 0.01293182373046875, -0.0070953369140625, -0.0034580230712890625, -0.005245208740234375, 0.02349853515625, -0.00738525390625, -0.041290283203125, 0.01012420654296875, -0.026458740234375, 0.0640869140625, 0.03277587890625, -0.01308441162109375, 0.03778076171875, 0.020538330078125, 0.0174560546875, -0.0117950439453125, 0.0258941650390625, -0.0152435302734375, 0.06640625, -0.02752685546875, 0.007198333740234375, -0.0189361572265625, -0.004528045654296875, -0.0114898681640625, 0.003482818603515625, -0.0036907196044921875, -0.043914794921875, 0.00240325927734375, -0.006481170654296875, -0.00942230224609375, -0.048065185546875, 0.04656982421875, 0.0172882080078125, -0.053253173828125, -0.031402587890625, -0.08441162109375, -0.04583740234375, -0.0882568359375, 0.0748291015625, 0.037994384765625, 0.0036487579345703125, 0.017974853515625, 0.055206298828125, 0.055389404296875, 0.0021190643310546875, -0.0220489501953125, 0.0197601318359375, 0.032470703125, 0.006866455078125, 0.0008912086486816406, 0.0248260498046875, -0.0222320556640625, -0.006168365478515625, 0.01311492919921875, -0.0494384765625, 0.0106353759765625, 0.0117645263671875, 0.05731201171875, -0.0260772705078125, -0.046173095703125, 0.0281829833984375, -0.041473388671875, -0.029693603515625, 0.038116455078125, -0.00357818603515625, -0.0209197998046875, -0.0364990234375, 0.004787445068359375, 0.05157470703125, 0.011962890625, 0.0012216567993164062, -0.0152740478515625, -0.0034618377685546875, 0.00983428955078125, 0.006542205810546875, 0.0016736984252929688, 0.00717926025390625, -0.00521087646484375, 0.00458526611328125, -0.01238250732421875, 0.011199951171875, -0.0058441162109375, -0.0203704833984375, -0.032196044921875, -0.0097808837890625, 0.07855224609375, -0.0243988037109375, 0.0190277099609375, -0.032989501953125, -0.0008440017700195312, -0.07562255859375, -0.0036468505859375, 0.0491943359375, 0.048675537109375, -0.043670654296875, 0.020355224609375, -0.01143646240234375, 0.0135345458984375, 0.0399169921875, -0.03448486328125, -0.025665283203125, -0.05621337890625, 0.00859832763671875, 0.042755126953125, -0.007228851318359375, -0.01520538330078125, 0.021728515625, -0.00038552284240722656, 0.0020503997802734375, 0.04815673828125, -0.005054473876953125, 0.0099029541015625, 0.01349639892578125, 0.01126861572265625, 0.0022258758544921875, -0.0211639404296875, -0.019927978515625, -0.005031585693359375, -0.043701171875, -0.06634521484375, 0.0152130126953125, 0.035736083984375, 0.0027713775634765625, 0.03314208984375, 0.00701904296875, 0.02435302734375, -0.004245758056640625, -0.0232086181640625, -0.021636962890625, -0.0211944580078125, 0.058685302734375, -0.0164337158203125, 0.0018205642700195312, -0.023895263671875, -0.0229034423828125, 0.0287628173828125, 0.01285552978515625, 0.00405120849609375, 0.0127716064453125, -0.0181121826171875, 0.006427764892578125, 0.0143585205078125, 0.0009965896606445312, 0.0372314453125, 0.09326171875, 0.0029201507568359375, 0.051361083984375, 0.04425048828125, 0.0039215087890625, 0.01018524169921875, 0.018646240234375, -0.013946533203125, 0.0018329620361328125, 0.05169677734375, 0.00531768798828125, -0.0234375, 0.025360107421875, -0.0286712646484375, 0.0222320556640625, 0.0069427490234375, 0.039703369140625, 0.0015506744384765625, -0.005840301513671875, 0.005474090576171875, -0.0391845703125, 0.00583648681640625, 0.0221099853515625, -0.014190673828125, 0.0009684562683105469, 0.0091094970703125, -0.054473876953125, -0.024139404296875, -0.010162353515625, -0.0020885467529296875, 0.00946044921875, -0.002864837646484375, 0.03564453125, -0.020751953125, -0.0570068359375, -0.033294677734375, 0.0210113525390625, -0.025909423828125, -0.0250091552734375, -0.007511138916015625, 0.00818634033203125, -0.025604248046875, -0.06854248046875, -0.009124755859375, -0.029937744140625, 0.0013532638549804688, -0.027313232421875, -0.0178985595703125, 0.0265045166015625, 0.03192138671875, -0.01105499267578125, -0.035888671875, 0.0374755859375, -0.0626220703125, 0.0185699462890625, 0.0289764404296875, 0.020599365234375, 0.05035400390625, -0.0506591796875, 0.003261566162109375, -0.054779052734375, 0.047698974609375, -0.004840850830078125, 0.004802703857421875, 0.034637451171875, -0.03240966796875, -0.0058746337890625, 0.043701171875, 0.0297698974609375, -0.016265869140625, 0.011871337890625, 0.0408935546875, -0.056121826171875, -0.033172607421875, 0.0264129638671875, -0.042694091796875, -0.039825439453125, -0.010101318359375, -0.02130126953125, 0.049346923828125, -0.03656005859375, 0.0288848876953125, 0.0157928466796875, 0.010894775390625, 0.0219268798828125, 0.01091766357421875, -0.03778076171875, 0.0074462890625, 0.041900634765625, 0.006893157958984375, -0.02099609375, -0.00213623046875, -0.00801849365234375, 0.022674560546875, 0.03558349609375, 0.0099945068359375, -0.0119781494140625, -0.039276123046875, 0.0012874603271484375, 0.020904541015625, -0.0015573501586914062, 0.0192413330078125, 0.00089263916015625, 0.05963134765625, 0.041290283203125, -0.024688720703125, 0.056488037109375, -0.04156494140625, -0.0313720703125, 0.01433563232421875, 0.0044097900390625, 0.01296234130859375, -0.0226287841796875, 0.050384521484375, -0.0408935546875, -0.0218353271484375, 0.052947998046875, -0.053436279296875, -0.0005984306335449219, 0.010650634765625, 0.0169219970703125, -0.034210205078125, 0.01067352294921875, -0.0212554931640625, 0.04150390625, 0.0107421875, -0.053680419921875, 0.0237274169921875, -0.0031032562255859375, -0.017608642578125, -0.004283905029296875, -0.041534423828125, 0.0026149749755859375, 0.040252685546875, 0.05389404296875, -0.0026035308837890625, 0.003063201904296875, -0.041839599609375, 0.028411865234375, 0.0214385986328125, 0.033660888671875, -0.048828125, -0.0205230712890625, 0.0229949951171875, -0.01111602783203125, -0.0227203369140625, -0.01195526123046875, -0.01837158203125, -0.031280517578125, -0.02679443359375, -0.047760009765625, 0.01357269287109375, 0.031280517578125, 0.04718017578125, -0.00925445556640625, 0.001155853271484375, -0.062103271484375, -0.007442474365234375, -0.0242462158203125, -0.02606201171875, 0.006381988525390625, 0.0499267578125, 0.049774169921875, 0.00542449951171875, -0.0206451416015625, -0.0307464599609375, -0.0219573974609375, 0.042388916015625, 0.00531768798828125, 0.0264129638671875, -0.031585693359375, -0.0333251953125, 0.015625, 0.0233154296875, 0.03253173828125, 0.0102691650390625, 0.0124969482421875, -0.019805908203125, -0.00601959228515625, 0.00612640380859375, 0.00833892822265625, -0.01143646240234375, 0.052215576171875, -0.06951904296875, 0.01375579833984375, -0.0282135009765625, -0.0171051025390625, -0.0262603759765625, -0.059600830078125, 0.0458984375, -0.06402587890625, 0.03704833984375, -0.019012451171875, -0.029693603515625, 0.0430908203125, -0.01763916015625, 0.048553466796875, -0.025299072265625, -0.07666015625, -0.01114654541015625, -0.04119873046875, -0.027862548828125, 0.00461578369140625, 0.036651611328125, 0.003589630126953125, 0.0162200927734375, -0.016632080078125, 0.003864288330078125, -0.004901885986328125, 0.00559234619140625, -0.0154876708984375, -0.02630615234375, 0.0294952392578125, -0.0171966552734375, -0.0126800537109375, -0.0203704833984375, -0.0106658935546875, 0.04718017578125, 0.035491943359375, 0.034942626953125, 0.00005692243576049805, 0.024658203125, 0.00965118408203125, 0.01355743408203125, -0.0286102294921875, 0.0271759033203125, -0.06341552734375, -0.01238250732421875, 0.03680419921875, -0.01270294189453125, 0.052337646484375, 0.0295257568359375, 0.01187896728515625, -0.051025390625, 0.018463134765625, -0.056243896484375, 0.01004791259765625, -0.01409912109375, 0.007568359375, -0.030364990234375, -0.0107879638671875, 0.005817413330078125, -0.01096343994140625, 0.02215576171875, 0.01145172119140625, 0.0186004638671875, 0.0297698974609375, -0.01436614990234375, 0.0039043426513671875, 0.01529693603515625, -0.00839996337890625, 0.03228759765625, 0.0305023193359375, -0.0819091796875, -0.00494384765625, 0.00861358642578125, -0.01520538330078125, 0.0122833251953125, 0.00647735595703125, 0.040802001953125, 0.0035858154296875, -0.005615234375, -0.018524169921875, -0.0036830902099609375, 0.0168304443359375, -0.010406494140625, 0.0127410888671875, -0.005100250244140625, -0.00897979736328125, -0.01059722900390625, 0.01020050048828125, -0.0107421875, -0.01348114013671875, -0.01265716552734375, 0.00997161865234375, 0.003780364990234375, -0.020263671875, -0.033477783203125, -0.01168060302734375, 0.03741455078125, -0.0017604827880859375, -0.062103271484375, 0.01505279541015625, -0.0213165283203125, 0.047332763671875, -0.0244293212890625, 0.017242431640625, -0.003368377685546875, 0.0308380126953125, -0.01256561279296875, -0.056976318359375, -0.02557373046875, 0.0645751953125, -0.0299835205078125, 0.0197906494140625, 0.055877685546875, -0.0193023681640625, -0.07293701171875, 0.010772705078125, -0.0031528472900390625, 0.046600341796875, -0.0307464599609375, -0.0091552734375, -0.0350341796875, 0.02740478515625, -0.0262298583984375, 0.014739990234375, 0.0247650146484375, 0.00463104248046875, -0.037567138671875, -0.000949859619140625, -0.0028934478759765625, 0.014495849609375, -0.03643798828125, -0.059844970703125, 0.038299560546875, -0.00742340087890625, -0.02008056640625, -0.051788330078125, -0.0026493072509765625, -0.00909423828125, 0.01088714599609375, -0.01849365234375, -0.01125335693359375, -0.0304412841796875, 0.027313232421875, 0.0171356201171875, 0.025390625, 0.006488800048828125, 0.0294342041015625, -0.033203125, 0.044677734375, 0.019378662109375, 0.0160369873046875, -0.0298919677734375, -0.0081024169921875, 0.04779052734375, 0.0150604248046875, -0.011260986328125, 0.03582763671875, 0.05291748046875, 0.0013608932495117188, -0.0101318359375, -0.0194244384765625, -0.0310211181640625, 0.016387939453125, 0.051055908203125, 0.08551025390625, 0.016265869140625, -0.044403076171875, -0.02581787109375, -0.0160980224609375, -0.06103515625, -0.01480865478515625, 0.04217529296875, -0.07568359375, 0.00608062744140625, 0.00215911865234375, 0.0094146728515625, -0.0199127197265625, -0.044342041015625, -0.024658203125, -0.0244140625, -0.0230865478515625, 0.00772857666015625, 0.01568603515625, -0.0214996337890625, 0.07855224609375, -0.048370361328125, -0.00656890869140625, 0.002166748046875, 0.0288848876953125, 0.0240631103515625, -0.03521728515625, -0.0105743408203125, -0.0391845703125, 0.00792694091796875, 0.022552490234375, 0.0044097900390625, 0.04229736328125, 0.01025390625, -0.0295562744140625, -0.00688934326171875, 0.0255126953125, -0.0223236083984375, 0.0189361572265625, 0.04034423828125, 0.0209503173828125, 0.003948211669921875, 0.06439208984375, -0.01197052001953125, 0.001972198486328125, -0.0215911865234375, 0.007274627685546875, -0.032562255859375, 0.026947021484375, -0.004886627197265625, -0.00620269775390625, 0.0108184814453125, 0.0037708282470703125, -0.0128173828125, -0.0367431640625, 0.0127410888671875, -0.02545166015625, -0.0010099411010742188, 0.0035800933837890625 ]
2c5a54c8095e54c8949fe60b6912e5c43a96e238
Wordpress Stackexchange Q: Hide the term description on the term edit page, for a given taxonomy I have written some long descriptions for a custom category taxonomy. I don't want to remove them, I just want to hide it from the management page: /wp-admin/term.php?taxonomy=custom_category I could use CSS to hide the class "column-description", but I don't know how to only apply it to this taxonomy. A: The cleanest way to do that, removing the description field from the edit screen also in the add screen: function hide_description_row() { echo "<style> .term-description-wrap { display:none; } </style>"; } add_action( "{taxonomy_slug}_edit_form", 'hide_description_row'); add_action( "{taxonomy_slug}_add_form", 'hide_description_row'); Of course you need to replace {taxonomy_slug} with your taxonomy slug.
Q: Hide the term description on the term edit page, for a given taxonomy I have written some long descriptions for a custom category taxonomy. I don't want to remove them, I just want to hide it from the management page: /wp-admin/term.php?taxonomy=custom_category I could use CSS to hide the class "column-description", but I don't know how to only apply it to this taxonomy. A: The cleanest way to do that, removing the description field from the edit screen also in the add screen: function hide_description_row() { echo "<style> .term-description-wrap { display:none; } </style>"; } add_action( "{taxonomy_slug}_edit_form", 'hide_description_row'); add_action( "{taxonomy_slug}_add_form", 'hide_description_row'); Of course you need to replace {taxonomy_slug} with your taxonomy slug. A: If you also need to hide the description field in the add form use this code /** * Hide the term description in the edit form */ add_action( '{taxonomy_slug}_add_form', function( $taxonomy ) { ?><style>.term-description-wrap{display:none;}</style><?php }, 10, 2 ); A: You could target the edit form for the post_tag taxonomy, through the post_tag_edit_form hook: /** * Hide the term description in the post_tag edit form */ add_action( "post_tag_edit_form", function( $tag, $taxonomy ) { ?><style>.term-description-wrap{display:none;}</style><?php }, 10, 2 ); Here you can also target an individual tag. If you need something similar for other taxonomies, you can use the {taxonomy_slug}_edit_form hook. Update It looks like the question was about the list tables, not the edit form. I dug into the list tables in WorPress and found a way to remove the description column from the term table in edit-tags.php /** * Remove the 'description' column from the table in 'edit-tags.php' * but only for the 'post_tag' taxonomy */ add_filter('manage_edit-post_tag_columns', function ( $columns ) { if( isset( $columns['description'] ) ) unset( $columns['description'] ); return $columns; } ); If you want to do the same for other taxonomies, use the manage_edit-{taxonomy_slug}_columns filter.
wordpress
{ "language": "en", "length": 300, "provenance": "stackexchange_00019.jsonl.gz:463250", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/217932" }
[ 0.0262298583984375, 0.0149383544921875, -0.030059814453125, -0.0115509033203125, 0.0168914794921875, -0.056060791015625, 0.0276947021484375, -0.0234527587890625, -0.031829833984375, 0.005855560302734375, -0.01531982421875, -0.02777099609375, -0.0297393798828125, -0.03729248046875, 0.0101165771484375, -0.0648193359375, 0.01197052001953125, 0.0235748291015625, 0.07403564453125, 0.0027828216552734375, 0.02093505859375, 0.00787353515625, 0.039703369140625, -0.0290985107421875, 0.005672454833984375, -0.023040771484375, 0.10406494140625, -0.023712158203125, 0.0306396484375, -0.007129669189453125, 0.03216552734375, -0.0304412841796875, -0.00001996755599975586, 0.017822265625, 0.00975799560546875, -0.0165252685546875, 0.006412506103515625, -0.003040313720703125, -0.0013685226440429688, 0.0382080078125, 0.0394287109375, -0.031951904296875, -0.0299530029296875, -0.014984130859375, -0.02197265625, 0.005645751953125, -0.006694793701171875, -0.024383544921875, 0.005542755126953125, -0.03997802734375, 0.037261962890625, 0.031005859375, 0.057342529296875, -0.0440673828125, -0.0069122314453125, 0.03662109375, -0.023834228515625, 0.040435791015625, 0.033966064453125, -0.02227783203125, -0.03387451171875, -0.003978729248046875, 0.0195465087890625, -0.00836181640625, 0.0025463104248046875, 0.003856658935546875, -0.01192474365234375, 0.0240325927734375, -0.05108642578125, -0.01314544677734375, 0.0289459228515625, -0.051483154296875, 0.035400390625, -0.037628173828125, -0.0137176513671875, -0.004467010498046875, 0.0307769775390625, 0.00864410400390625, 0.005229949951171875, -0.0246734619140625, 0.03631591796875, -0.0216217041015625, -0.01102447509765625, -0.006732940673828125, 0.021484375, 0.026031494140625, 0.00365447998046875, -0.0205535888671875, 0.00962066650390625, -0.00524139404296875, 0.00875091552734375, -0.025421142578125, -0.0187530517578125, 0.036956787109375, 0.0275115966796875, -0.038299560546875, -0.0028095245361328125, 0.048583984375, -0.0201568603515625, 0.0182037353515625, -0.03521728515625, -0.0158538818359375, 0.015411376953125, -0.037078857421875, 0.0011081695556640625, 0.031219482421875, 0.0009164810180664062, -0.000028073787689208984, 0.0242156982421875, -0.0019369125366210938, 0.006008148193359375, -0.0192108154296875, -0.0084991455078125, 0.012664794921875, 0.001895904541015625, -0.0101318359375, -0.047393798828125, 0.034820556640625, -0.01517486572265625, 0.03265380859375, 0.01137542724609375, 0.01331329345703125, 0.0031642913818359375, 0.0031261444091796875, -0.0188140869140625, -0.0300750732421875, -0.034637451171875, 0.00008410215377807617, 0.04486083984375, -0.0200347900390625, -0.065673828125, 0.013916015625, 0.10919189453125, 0.048675537109375, 0.053070068359375, -0.01187896728515625, 0.004291534423828125, 0.0130462646484375, 0.00516510009765625, -0.0203094482421875, -0.0018329620361328125, -0.0005483627319335938, 0.0293731689453125, -0.0274810791015625, -0.0309906005859375, 0.018310546875, 0.017852783203125, 0.01421356201171875, -0.00826263427734375, -0.0291748046875, -0.0243988037109375, -0.0171051025390625, 0.09271240234375, 0.00673675537109375, -0.061309814453125, -0.00945281982421875, 0.055023193359375, -0.034149169921875, -0.0740966796875, -0.07342529296875, -0.00725555419921875, -0.01338958740234375, 0.01235198974609375, -0.01062774658203125, -0.03948974609375, 0.02764892578125, -0.02386474609375, -0.01259613037109375, 0.00971221923828125, -0.0307159423828125, 0.029083251953125, -0.03631591796875, -0.0223846435546875, -0.0017099380493164062, 0.0025386810302734375, 0.0286407470703125, -0.0386962890625, 0.0082855224609375, 0.0333251953125, -0.01413726806640625, -0.0197601318359375, -0.04779052734375, 0.0123443603515625, 0.0125274658203125, -0.049102783203125, 0.05615234375, 0.00860595703125, 0.044891357421875, 0.0099639892578125, 0.005756378173828125, 0.047149658203125, 0.033843994140625, -0.06561279296875, 0.01552581787109375, 0.027923583984375, 0.02178955078125, -0.04327392578125, -0.0009064674377441406, 0.00494384765625, -0.03411865234375, -0.040985107421875, 0.016143798828125, -0.02459716796875, 0.026519775390625, -0.03619384765625, -0.0026702880859375, -0.01404571533203125, 0.0472412109375, -0.0240478515625, 0.0143890380859375, 0.01070404052734375, -0.0233154296875, -0.0075836181640625, -0.029022216796875, -0.0214080810546875, -0.023834228515625, -0.021881103515625, 0.0212249755859375, 0.004642486572265625, 0.0033359527587890625, 0.0203399658203125, -0.01171112060546875, 0.0184478759765625, 0.0244293212890625, 0.01373291015625, -0.00034618377685546875, -0.0180816650390625, -0.00638580322265625, 0.0128021240234375, 0.01033782958984375, 0.0005426406860351562, 0.00833892822265625, 0.07452392578125, 0.0533447265625, -0.0034732818603515625, -0.0004303455352783203, 0.036529541015625, -0.0748291015625, -0.009857177734375, 0.033447265625, 0.0276641845703125, -0.01361846923828125, -0.0297393798828125, -0.003887176513671875, 0.034698486328125, -0.03857421875, -0.007480621337890625, 0.0027561187744140625, -0.00920867919921875, -0.0128936767578125, 0.05682373046875, -0.017669677734375, 0.01824951171875, -0.01212310791015625, 0.01471710205078125, 0.018951416015625, -0.0228271484375, -0.0167388916015625, 0.05499267578125, -0.042266845703125, 0.0117340087890625, -0.023040771484375, -0.01470947265625, 0.000621795654296875, 0.0223236083984375, 0.0173797607421875, 0.0306396484375, 0.0292816162109375, -0.039947509765625, 0.007442474365234375, 0.0294952392578125, 0.036773681640625, 0.004718780517578125, 0.006488800048828125, 0.0214385986328125, -0.0299072265625, -0.0340576171875, 0.0013370513916015625, -0.0000438690185546875, -0.01438140869140625, 0.019561767578125, 0.04547119140625, 0.026397705078125, -0.0016775131225585938, -0.0012102127075195312, -0.053924560546875, 0.01898193359375, 0.0372314453125, -0.049163818359375, -0.003002166748046875, -0.00496673583984375, 0.0714111328125, -0.00711822509765625, 0.0258941650390625, -0.01346588134765625, 0.0309600830078125, -0.0257415771484375, -0.015838623046875, 0.04669189453125, -0.028656005859375, -0.00634002685546875, 0.0531005859375, -0.01245880126953125, 0.0093841552734375, 0.0235443115234375, -0.036865234375, 0.0251007080078125, 0.00930023193359375, 0.01568603515625, 0.0128936767578125, -0.044647216796875, 0.04705810546875, 0.0142364501953125, 0.01078033447265625, -0.015655517578125, -0.033843994140625, -0.01392364501953125, 0.0063018798828125, -0.0205841064453125, 0.03961181640625, 0.03216552734375, -0.033966064453125, 0.01049041748046875, 0.007511138916015625, -0.0222625732421875, -0.044097900390625, 0.050628662109375, -0.0030879974365234375, 0.0020465850830078125, -0.04864501953125, -0.0521240234375, -0.0482177734375, -0.061920166015625, 0.0102386474609375, 0.005817413330078125, 0.001239776611328125, 0.0117645263671875, 0.0977783203125, 0.0263671875, -0.061553955078125, 0.03857421875, -0.047882080078125, -0.0163726806640625, 0.0833740234375, -0.00344085693359375, -0.03216552734375, 0.012237548828125, 0.005779266357421875, 0.0139617919921875, 0.007236480712890625, 0.0086822509765625, -0.022705078125, -0.0185546875, 0.01172637939453125, 0.01323699951171875, -0.00829315185546875, 0.0157012939453125, 0.00759124755859375, 0.01471710205078125, -0.03240966796875, -0.045867919921875, -0.01678466796875, -0.045440673828125, 0.0281982421875, 0.00926971435546875, 0.004878997802734375, -0.0153961181640625, 0.048065185546875, -0.0177154541015625, 0.00988006591796875, -0.001781463623046875, -0.0222015380859375, 0.005664825439453125, 0.0007963180541992188, -0.026641845703125, 0.001743316650390625, 0.030029296875, -0.0117950439453125, -0.00507354736328125, -0.0009360313415527344, 0.021270751953125, 0.0010499954223632812, 0.0097198486328125, -0.03179931640625, -0.05609130859375, 0.032867431640625, -0.0443115234375, -0.01690673828125, -0.0256500244140625, -0.0004546642303466797, 0.00864410400390625, 0.06573486328125, -0.019805908203125, -0.0236053466796875, 0.00977325439453125, -0.00772857666015625, 0.01105499267578125, 0.0175628662109375, -0.0458984375, -0.020233154296875, -0.12225341796875, 0.03387451171875, 0.016510009765625, -0.0458984375, -0.0215911865234375, 0.033538818359375, -0.09844970703125, -0.029052734375, 0.039093017578125, 0.0033969879150390625, 0.0113525390625, 0.0174102783203125, -0.00650787353515625, -0.015960693359375, -0.034759521484375, -0.01120758056640625, -0.041290283203125, -0.00176239013671875, 0.0013589859008789062, -0.0024394989013671875, -0.02972412109375, 0.026947021484375, -0.00464630126953125, 0.025543212890625, 0.0499267578125, -0.003604888916015625, -0.00787353515625, -0.044921875, -0.01021575927734375, 0.0177459716796875, 0.0018177032470703125, -0.01433563232421875, -0.0335693359375, -0.017333984375, -0.0174407958984375, 0.016204833984375, -0.0096435546875, 0.007160186767578125, 0.016571044921875, -0.01453399658203125, -0.01299285888671875, -0.040802001953125, -0.06610107421875, 0.0101470947265625, -0.0251007080078125, -0.00933837890625, -0.041748046875, -0.03515625, 0.054473876953125, 0.016326904296875, -0.016021728515625, 0.00801849365234375, 0.06671142578125, 0.010406494140625, -0.028839111328125, -0.07476806640625, -0.0007047653198242188, 0.033660888671875, 0.0055694580078125, 0.028900146484375, -0.00812530517578125, -0.03704833984375, 0.0687255859375, 0.005451202392578125, -0.0101318359375, -0.00702667236328125, 0.0745849609375, -0.026580810546875, -0.04150390625, 0.01415252685546875, -0.064453125, 0.01153564453125, 0.0020656585693359375, -0.01280975341796875, -0.0192108154296875, -0.026702880859375, 0.04705810546875, 0.0048370361328125, 0.0218048095703125, -0.027587890625, -0.038421630859375, 0.0181732177734375, -0.0177154541015625, 0.0230712890625, -0.0006394386291503906, 0.01561737060546875, 0.013916015625, -0.0162200927734375, 0.013641357421875, -0.0185394287109375, -0.032928466796875, -0.07049560546875, -0.002471923828125, -0.020843505859375, -0.03643798828125, 0.04388427734375, 0.0029582977294921875, 0.012786865234375, -0.04498291015625, -0.06268310546875, -0.0085296630859375, -0.00846099853515625, 0.02117919921875, 0.06365966796875, 0.034088134765625, 0.024017333984375, 0.006622314453125, 0.041290283203125, 0.006748199462890625, 0.01409912109375, 0.015869140625, -0.001949310302734375, 0.01303863525390625, 0.017791748046875, -0.0157318115234375, 0.03314208984375, 0.036834716796875, -0.01104736328125, 0.031402587890625, -0.01384735107421875, 0.027923583984375, 0.01885986328125, 0.027099609375, 0.01003265380859375, 0.0006189346313476562, 0.0156402587890625, -0.0212860107421875, 0.00007075071334838867, -0.042816162109375, -0.031097412109375, 0.0133209228515625, 0.033599853515625, -0.0227203369140625, -0.025054931640625, 0.02532958984375, 0.005054473876953125, -0.0204925537109375, 0.0022106170654296875, -0.0173492431640625, -0.040008544921875, -0.0121307373046875, 0.01666259765625, 0.0258941650390625, -0.00461578369140625, -0.0163116455078125, 0.004558563232421875, -0.045989990234375, 0.011932373046875, -0.02288818359375, 0.003448486328125, -0.017547607421875, -0.017486572265625, -0.0421142578125, 0.0177764892578125, -0.01276397705078125, -0.028228759765625, -0.07733154296875, 0.0294189453125, -0.0005564689636230469, 0.007049560546875, -0.0137481689453125, 0.0296630859375, -0.0207366943359375, -0.0168914794921875, -0.003978729248046875, 0.00534820556640625, 0.06805419921875, 0.04046630859375, -0.04559326171875, -0.001979827880859375, -0.047210693359375, -0.0015497207641601562, -0.06103515625, -0.07232666015625, -0.0295867919921875, 0.01428985595703125, -0.043701171875, -0.01255035400390625, -0.002193450927734375, 0.0249176025390625, -0.035247802734375, 0.03216552734375, 0.002819061279296875, -0.031646728515625, -0.0061798095703125, 0.0122833251953125, 0.0185394287109375, 0.038604736328125, 0.0246124267578125, 0.0142059326171875, 0.00717926025390625, -0.051422119140625, 0.00592803955078125, -0.055084228515625, -0.027862548828125, -0.007465362548828125, -0.05279541015625, 0.0306854248046875, 0.0382080078125, -0.001361846923828125, 0.006771087646484375, -0.01482391357421875, 0.0006642341613769531, -0.03289794921875, 0.0132904052734375, -0.028076171875, -0.0009813308715820312, -0.0135498046875, -0.00868988037109375, 0.064208984375, -0.007061004638671875, -0.021148681640625, 0.026641845703125, -0.0301361083984375, 0.036041259765625, 0.0229949951171875, 0.004314422607421875, 0.0304718017578125, 0.026092529296875, -0.02410888671875, 0.0294342041015625, 0.01491546630859375, 0.019805908203125, 0.01837158203125, -0.012298583984375, -0.0217132568359375, 0.0142669677734375, 0.07171630859375, 0.0185394287109375, 0.0014066696166992188, 0.07476806640625, -0.02276611328125, 0.0181427001953125, 0.04852294921875, 0.056793212890625, -0.067138671875, 0.0145721435546875, 0.0196533203125, -0.00714111328125, 0.045989990234375, 0.015106201171875, -0.0015478134155273438, -0.0048370361328125, -0.0634765625, -0.04571533203125, -0.04705810546875, -0.035797119140625, -0.004638671875, -0.005023956298828125, -0.0235748291015625, 0.02734375, 0.0166778564453125, -0.037017822265625, 0.030548095703125, 0.02630615234375, 0.00275421142578125, -0.0384521484375, -0.02020263671875, 0.0228271484375, -0.0255584716796875, -0.0592041015625, 0.044830322265625, -0.03564453125, 0.028594970703125, 0.0655517578125, 0.032806396484375, -0.0261688232421875, 0.04095458984375, -0.01084136962890625, 0.035400390625, -0.00261688232421875, -0.05621337890625, -0.01488494873046875, -0.0157470703125, 0.006771087646484375, 0.01499176025390625, -0.04962158203125, 0.0211029052734375, -0.031890869140625, -0.004016876220703125, -0.0295257568359375, -0.0294189453125, 0.11572265625, -0.03753662109375, -0.0183868408203125, 0.0073699951171875, 0.02703857421875, 0.005161285400390625, -0.0214996337890625, 0.036224365234375, -0.03240966796875, 0.00707244873046875, -0.005115509033203125, -0.00788116455078125, -0.02337646484375, -0.03765869140625, -0.08929443359375, 0.08819580078125, -0.0022220611572265625, 0.04058837890625, -0.0240325927734375, 0.033355712890625, -0.0070343017578125, 0.0163726806640625, -0.048431396484375, 0.0487060546875, 0.0233612060546875, 0.06683349609375, -0.01043701171875, -0.00276947021484375, 0.040679931640625, 0.01334381103515625, 0.0555419921875, 0.003528594970703125, 0.007965087890625, -0.015899658203125, 0.05206298828125, 0.028472900390625, -0.01043701171875, 0.021759033203125, -0.0015363693237304688, 0.0141143798828125, 0.0151214599609375, 0.002246856689453125, 0.0278778076171875, 0.0020904541015625, -0.055511474609375, 0.04193115234375, 0.01393890380859375, 0.0251617431640625, 0.0189971923828125, 0.0220947265625, -0.0244598388671875, 0.013580322265625, 0.03521728515625, -0.030303955078125, -0.029449462890625, 0.019439697265625, 0.0017986297607421875, -0.07232666015625, 0.0251922607421875, -0.046844482421875, 0.043609619140625, 0.00024509429931640625, 0.056915283203125, 0.04656982421875, 0.0225067138671875, 0.0672607421875, -0.00501251220703125, 0.04998779296875, 0.01506805419921875, -0.0231475830078125, 0.020843505859375, -0.00139617919921875, 0.027069091796875, -0.032928466796875, -0.007595062255859375, -0.00020170211791992188, 0.034027099609375, -0.0240020751953125, -0.0147247314453125, 0.01039886474609375, 0.005367279052734375, -0.0161285400390625, -0.0163421630859375, -0.0186614990234375, 0.055419921875, 0.0760498046875, -0.047882080078125, -0.01236724853515625, 0.032745361328125, 0.04730224609375, -0.007251739501953125, -0.018798828125, -0.0202178955078125, -0.0501708984375, -0.0692138671875, 0.0138397216796875, 0.01514434814453125, 0.06268310546875, 0.053192138671875, 0.0293121337890625, 0.0299224853515625, -0.0312042236328125, -0.01525115966796875, 0.0218048095703125, 0.002178192138671875, 0.0107421875, -0.040740966796875, -0.006534576416015625, 0.0157928466796875, 0.020965576171875, -0.01227569580078125, 0.0204620361328125, 0.02081298828125, 0.034515380859375, 0.0010700225830078125, -0.0265045166015625, 0.0248870849609375, -0.01493072509765625, 0.01140594482421875, -0.037322998046875, 0.039581298828125, 0.033233642578125, 0.003459930419921875, -0.01206207275390625, 0.01067352294921875, 0.0704345703125, -0.0272064208984375, 0.0166473388671875, 0.015106201171875, -0.032745361328125, 0.031646728515625, -0.0045013427734375, 0.0184326171875, 0.013092041015625, -0.0528564453125, -0.004627227783203125, -0.0236358642578125, -0.05987548828125, 0.025604248046875, 0.0426025390625, -0.0190887451171875, 0.0191650390625, 0.0096282958984375, 0.006702423095703125, -0.033905029296875, 0.01220703125, 0.005817413330078125, -0.06268310546875, 0.01371002197265625, -0.028656005859375, -0.049896240234375, -0.0265045166015625, -0.038909912109375, 0.037933349609375, 0.0233612060546875, 0.11529541015625, -0.035247802734375, 0.0168304443359375, -0.05181884765625, 0.0192413330078125, -0.0445556640625, -0.04010009765625, 0.0230865478515625, 0.0084075927734375, 0.01418304443359375, 0.00669097900390625, -0.05706787109375, 0.04022216796875, 0.0171356201171875, -0.0123138427734375, 0.04034423828125, 0.006252288818359375, -0.005939483642578125, -0.0367431640625, 0.0007567405700683594, -0.022674560546875, -0.0070037841796875, 0.00899505615234375, 0.0033779144287109375, 0.01062774658203125, -0.0018320083618164062, -0.0213470458984375, -0.0009741783142089844, 0.00339508056640625, -0.0382080078125, 0.0357666015625, -0.02130126953125, 0.055511474609375, 0.04180908203125, -0.0139007568359375, -0.0097503662109375, 0.01456451416015625, -0.01103973388671875, 0.0167694091796875, 0.01318359375, 0.0106048583984375, 0.0174102783203125, -0.036529541015625, -0.03900146484375, -0.028900146484375, -0.016326904296875, -0.049774169921875, -0.0031032562255859375, -0.01377105712890625, -0.007587432861328125, 0.0172271728515625, 0.00809478759765625, -0.0321044921875, -0.02197265625, -0.01568603515625, 0.0236663818359375, -0.0276947021484375, -0.0445556640625, -0.09625244140625, -0.01020050048828125, 0.033660888671875, -0.016143798828125, -0.000911712646484375, -0.0010547637939453125, -0.03662109375, 0.017791748046875, 0.00037598609924316406, 0.01276397705078125, 0.021026611328125, 0.0477294921875, -0.03564453125, 0.017425537109375, -0.01479339599609375, -0.031890869140625, 0.001407623291015625, 0.0199127197265625, 0.027008056640625, -0.02862548828125, 0.00913238525390625, 0.021820068359375, 0.0209197998046875, 0.0628662109375, 0.01168060302734375, -0.0196533203125, -0.0143890380859375, 0.024444580078125, -0.0240325927734375, -0.040252685546875, 0.01123809814453125, 0.0026607513427734375, -0.025848388671875, -0.0018415451049804688, -0.036895751953125, -0.017730712890625, -0.05767822265625, -0.08843994140625, 0.0157470703125, 0.0097808837890625, -0.04901123046875, 0.0222015380859375, -0.0004360675811767578, -0.036834716796875, 0.020355224609375, 0.022125244140625, -0.0299530029296875, 0.028045654296875, 0.02447509765625, 0.014739990234375, 0.059234619140625, 0.0121307373046875, 0.00614166259765625, -0.022247314453125, 0.00656890869140625, -0.0188446044921875, 0.01812744140625, 0.00034046173095703125, -0.00891876220703125, 0.0039825439453125, 0.0133514404296875, -0.057952880859375, -0.045501708984375, -0.0017642974853515625, 0.0248870849609375, -0.00521087646484375, -0.0217132568359375, -0.0278167724609375, -0.0364990234375, 0.059356689453125, 0.0312347412109375, 0.0025730133056640625, -0.0018682479858398438, -0.0309600830078125, -0.01439666748046875, -0.018524169921875, 0.0147552490234375, 0.038421630859375, -0.0712890625, 0.016387939453125, 0.061126708984375, -0.01236724853515625, 0.0171356201171875, 0.0178985595703125, -0.021881103515625, -0.0026111602783203125, 0.010833740234375, -0.0059814453125, -0.09039306640625, 0.0250701904296875, 0.0026836395263671875, -0.033050537109375, -0.029266357421875, -0.030181884765625, 0.0022983551025390625, -0.0304107666015625, -0.054901123046875, -0.08984375, -0.0212249755859375, 0.011016845703125, 0.0501708984375, -0.053253173828125, 0.023284912109375, -0.0238494873046875, 0.05511474609375, -0.0294342041015625, 0.0171356201171875, 0.01096343994140625, 0.00911712646484375, -0.049224853515625, 0.034271240234375, 0.0111846923828125, 0.049774169921875, -0.0158233642578125, 0.040802001953125, -0.0190277099609375, 0.0307464599609375, -0.0022907257080078125, -0.01363372802734375, 0.0229644775390625, -0.0240325927734375, 0.00959014892578125, 0.005100250244140625, 0.00804901123046875, -0.0225830078125, 0.00969696044921875, -0.04437255859375, 0.005016326904296875, 0.0176849365234375 ]
336f9b819ebcb21d601b3a62d9c161c61eed5502
Wordpress Stackexchange Q: Do tags have dates? I've created something using reverse tags – when something isn't tagged, it's flagged up to say "Hey! This post hasn't been checked yet!" Now i'm wondering, is there a way to get the last tag created? Do tags have modified / created dates? Is there a way of getting around this if they haven't? The user case I have is security patches for a CMS and I have a team who are documenting everything about it. I want them to create a new tag for the patch, then have a notice display saying "New patch available" Anyone crossed anything like this before? A: Following @PieterGoosen's (credit due) train of thought hook onto the following: function update_term_timestamps($term_id) { switch( current_filter() ) { case 'created_term': update_term_meta($term_id, '_term_created_at', current_time('mysql', true)); break; case 'edited_term': update_term_meta($term_id, '_term_edited_at', current_time('mysql', true)); break; } } add_action('created_term', 'update_term_timestamps'); add_action('edited_term', 'update_term_timestamps'); Now the meta data is accessible with: //for created timestamp... $timestamp = get_term_meta($term_id, '_term_created_at', true); //for edited timestamp... $timestamp = get_term_meta($term_id, '_term_edited_at', true);
Q: Do tags have dates? I've created something using reverse tags – when something isn't tagged, it's flagged up to say "Hey! This post hasn't been checked yet!" Now i'm wondering, is there a way to get the last tag created? Do tags have modified / created dates? Is there a way of getting around this if they haven't? The user case I have is security patches for a CMS and I have a team who are documenting everything about it. I want them to create a new tag for the patch, then have a notice display saying "New patch available" Anyone crossed anything like this before? A: Following @PieterGoosen's (credit due) train of thought hook onto the following: function update_term_timestamps($term_id) { switch( current_filter() ) { case 'created_term': update_term_meta($term_id, '_term_created_at', current_time('mysql', true)); break; case 'edited_term': update_term_meta($term_id, '_term_edited_at', current_time('mysql', true)); break; } } add_action('created_term', 'update_term_timestamps'); add_action('edited_term', 'update_term_timestamps'); Now the meta data is accessible with: //for created timestamp... $timestamp = get_term_meta($term_id, '_term_created_at', true); //for edited timestamp... $timestamp = get_term_meta($term_id, '_term_edited_at', true);
wordpress
{ "language": "en", "length": 169, "provenance": "stackexchange_00019.jsonl.gz:463324", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218189" }
[ 0.0313720703125, 0.007678985595703125, -0.0163726806640625, -0.0289459228515625, 0.0254974365234375, -0.007480621337890625, 0.0137481689453125, -0.01178741455078125, 0.033782958984375, 0.0047760009765625, -0.027801513671875, -0.038665771484375, -0.0104522705078125, -0.02691650390625, -0.03900146484375, -0.040863037109375, 0.04241943359375, -0.0673828125, -0.012664794921875, -0.004863739013671875, -0.0117340087890625, 0.02606201171875, 0.0265960693359375, -0.0029354095458984375, 0.005340576171875, 0.0126800537109375, 0.06304931640625, -0.0179901123046875, 0.0292510986328125, -0.0009260177612304688, 0.0157928466796875, -0.035003662109375, 0.0115814208984375, 0.01470184326171875, -0.01312255859375, -0.0304107666015625, 0.0299072265625, 0.005252838134765625, -0.0132293701171875, 0.0338134765625, 0.045379638671875, -0.01369476318359375, 0.01183319091796875, 0.032745361328125, -0.01146697998046875, -0.048858642578125, 0.0582275390625, -0.020538330078125, 0.0209197998046875, 0.02154541015625, 0.0214691162109375, -0.003795623779296875, 0.0285186767578125, 0.005435943603515625, -0.036895751953125, -0.0299530029296875, -0.00937652587890625, -0.01357269287109375, -0.00261688232421875, -0.019073486328125, 0.01009368896484375, 0.0092010498046875, 0.021453857421875, 0.02960205078125, -0.00714874267578125, 0.003910064697265625, 0.05889892578125, 0.01245880126953125, -0.07965087890625, -0.015777587890625, 0.0523681640625, -0.0297088623046875, 0.00849151611328125, -0.001316070556640625, 0.0108184814453125, -0.006092071533203125, -0.00647735595703125, -0.00690460205078125, 0.01360321044921875, 0.00975799560546875, 0.0345458984375, -0.000576019287109375, 0.009857177734375, -0.016143798828125, 0.020263671875, 0.0158843994140625, -0.00920867919921875, -0.00809478759765625, -0.0305633544921875, -0.021331787109375, -0.023773193359375, -0.0297088623046875, -0.0267486572265625, 0.02392578125, 0.006076812744140625, -0.0185546875, 0.0184783935546875, 0.06256103515625, -0.059783935546875, -0.032135009765625, -0.01338958740234375, -0.00540924072265625, -0.040985107421875, -0.02569580078125, 0.0153961181640625, 0.04608154296875, 0.01212310791015625, 0.0178680419921875, 0.03131103515625, -0.0063018798828125, 0.0021495819091796875, 0.017913818359375, -0.00759124755859375, -0.023834228515625, -0.03155517578125, -0.0149383544921875, -0.035491943359375, 0.005168914794921875, 0.0146942138671875, -0.006443023681640625, 0.0010890960693359375, 0.00505828857421875, 0.00250244140625, -0.00890350341796875, 0.009857177734375, -0.0039825439453125, -0.027252197265625, -0.00034046173095703125, -0.01296234130859375, 0.01265716552734375, -0.040740966796875, 0.023101806640625, 0.05865478515625, 0.01219940185546875, 0.002368927001953125, -0.0115814208984375, 0.0176239013671875, -0.039764404296875, -0.043426513671875, 0.03790283203125, -0.03338623046875, -0.009124755859375, 0.04913330078125, -0.061614990234375, 0.0015687942504882812, 0.0229644775390625, 0.01340484619140625, -0.005130767822265625, 0.004253387451171875, -0.0208587646484375, 0.0018291473388671875, -0.020538330078125, 0.06976318359375, -0.022735595703125, -0.051300048828125, -0.017547607421875, 0.006290435791015625, -0.034912109375, -0.041778564453125, -0.046173095703125, 0.022430419921875, -0.0215606689453125, -0.021942138671875, -0.0251922607421875, -0.04339599609375, 0.01490020751953125, -0.0265960693359375, -0.010894775390625, 0.0293121337890625, 0.0570068359375, 0.0139923095703125, -0.0225067138671875, 0.049652099609375, 0.0306243896484375, -0.0195465087890625, 0.0122833251953125, -0.01324462890625, 0.0228118896484375, 0.00588226318359375, -0.00920867919921875, -0.0264129638671875, -0.04736328125, 0.0264739990234375, -0.0144195556640625, -0.0325927734375, 0.0274505615234375, -0.0006337165832519531, 0.048065185546875, 0.0362548828125, 0.01093292236328125, 0.0175323486328125, -0.0012102127075195312, -0.0299835205078125, 0.049530029296875, -0.0036907196044921875, 0.018310546875, -0.06390380859375, 0.03424072265625, -0.039825439453125, -0.048980712890625, -0.0141448974609375, 0.060791015625, -0.04840087890625, 0.0286712646484375, -0.0830078125, 0.031005859375, -0.04010009765625, 0.05145263671875, -0.00018358230590820312, 0.005672454833984375, 0.006122589111328125, -0.047882080078125, -0.01470184326171875, 0.0322265625, -0.0005578994750976562, 0.0187530517578125, -0.05035400390625, 0.0296783447265625, -0.00537109375, 0.02398681640625, 0.006343841552734375, -0.01226806640625, 0.0215606689453125, 0.014190673828125, 0.00853729248046875, 0.01375579833984375, -0.027191162109375, 0.00881195068359375, 0.0068206787109375, 0.038543701171875, -0.031890869140625, -0.01934814453125, 0.040924072265625, -0.0014133453369140625, -0.0225982666015625, -0.00916290283203125, -0.00402069091796875, -0.12225341796875, -0.004611968994140625, 0.08087158203125, 0.03729248046875, 0.0106658935546875, -0.0137176513671875, -0.0105133056640625, 0.03167724609375, -0.032135009765625, 0.0133056640625, -0.005157470703125, 0.036895751953125, 0.052032470703125, -0.03863525390625, -0.0017290115356445312, 0.022125244140625, -0.0168914794921875, 0.0228271484375, 0.02587890625, -0.03582763671875, -0.0264739990234375, 0.01708984375, -0.00733184814453125, 0.005870819091796875, -0.093017578125, -0.0302734375, -0.03350830078125, 0.06610107421875, 0.0242919921875, 0.06573486328125, 0.06182861328125, -0.01751708984375, 0.006053924560546875, -0.00528717041015625, 0.0019464492797851562, 0.01203155517578125, 0.01462554931640625, -0.0147247314453125, 0.032257080078125, -0.037353515625, 0.00885772705078125, 0.017242431640625, 0.0093994140625, -0.011077880859375, 0.0248565673828125, 0.033050537109375, -0.01175689697265625, -0.00713348388671875, -0.0269317626953125, 0.018951416015625, -0.0030727386474609375, 0.021209716796875, 0.0005846023559570312, 0.0244598388671875, 0.0101165771484375, -0.033233642578125, 0.042938232421875, 0.03216552734375, -0.0197906494140625, -0.051971435546875, -0.006053924560546875, 0.0257720947265625, -0.0213775634765625, 0.0023555755615234375, 0.056793212890625, 0.0163421630859375, 0.0009965896606445312, 0.00749969482421875, -0.024383544921875, -0.013885498046875, 0.0057220458984375, -0.00868988037109375, 0.003337860107421875, -0.0626220703125, 0.0090179443359375, 0.03472900390625, 0.08001708984375, -0.0086669921875, -0.06317138671875, 0.006549835205078125, 0.0299224853515625, -0.042144775390625, -0.0299072265625, -0.00007963180541992188, -0.050537109375, -0.018890380859375, -0.0067138671875, -0.0377197265625, 0.01128387451171875, 0.0006527900695800781, 0.0151519775390625, -0.032867431640625, -0.017059326171875, -0.01120758056640625, -0.045623779296875, -0.04425048828125, -0.01209259033203125, 0.00971221923828125, 0.01490020751953125, -0.007633209228515625, 0.09783935546875, 0.01331329345703125, -0.062744140625, -0.0143585205078125, -0.0343017578125, -0.02447509765625, 0.0260162353515625, 0.00377655029296875, -0.0065460205078125, 0.0104522705078125, 0.0189666748046875, -0.01806640625, 0.038909912109375, -0.02911376953125, -0.02032470703125, -0.00762176513671875, -0.01003265380859375, 0.045562744140625, -0.018798828125, -0.0208282470703125, 0.0284423828125, 0.07568359375, -0.0036945343017578125, -0.00310516357421875, 0.00928497314453125, -0.007843017578125, 0.02423095703125, -0.04254150390625, -0.0029296875, 0.01305389404296875, 0.023590087890625, 0.015655517578125, 0.01522064208984375, 0.044189453125, 0.01320648193359375, -0.0096588134765625, -0.0273284912109375, -0.0343017578125, -0.046539306640625, 0.007198333740234375, -0.01396942138671875, 0.03326416015625, -0.002643585205078125, 0.0298309326171875, -0.00522613525390625, 0.020721435546875, -0.04296875, -0.01103973388671875, 0.007518768310546875, -0.088134765625, 0.0300140380859375, -0.06463623046875, -0.005157470703125, -0.04461669921875, 0.043365478515625, -0.026031494140625, -0.0452880859375, -0.00833892822265625, 0.0225372314453125, -0.0304412841796875, -0.00829315185546875, 0.00439453125, -0.0216827392578125, -0.12396240234375, 0.032196044921875, 0.0311126708984375, -0.033050537109375, -0.032928466796875, 0.0279388427734375, -0.11090087890625, -0.0281524658203125, 0.0296478271484375, -0.00873565673828125, 0.015594482421875, 0.026947021484375, 0.0211334228515625, -0.011322021484375, -0.025421142578125, -0.00252532958984375, -0.01251983642578125, -0.0010442733764648438, -0.01445770263671875, 0.0050201416015625, 0.00765228271484375, -0.01305389404296875, 0.0273895263671875, 0.0401611328125, 0.040252685546875, -0.035736083984375, 0.010284423828125, -0.02581787109375, -0.0029888153076171875, 0.02880859375, -0.00030684471130371094, -0.0164642333984375, -0.041961669921875, -0.0228729248046875, 0.001987457275390625, 0.039581298828125, -0.0210418701171875, -0.0032482147216796875, -0.004123687744140625, -0.0002701282501220703, -0.0175323486328125, -0.01479339599609375, -0.02777099609375, 0.0232391357421875, -0.022918701171875, -0.013427734375, -0.0260467529296875, -0.04833984375, 0.060791015625, 0.0049896240234375, -0.008026123046875, -0.01401519775390625, 0.0799560546875, 0.0216064453125, -0.0364990234375, 0.004486083984375, 0.029998779296875, 0.047027587890625, -0.00156402587890625, 0.0271453857421875, -0.0013761520385742188, -0.038665771484375, 0.05126953125, -0.001132965087890625, -0.00681304931640625, -0.026397705078125, 0.03369140625, -0.01445770263671875, -0.0208282470703125, -0.00560760498046875, -0.04571533203125, 0.049713134765625, 0.009735107421875, -0.0238037109375, -0.0290679931640625, -0.006557464599609375, 0.0831298828125, -0.034759521484375, 0.05377197265625, -0.048309326171875, -0.050689697265625, 0.0306243896484375, 0.0013599395751953125, -0.0083160400390625, 0.0077362060546875, 0.0005788803100585938, 0.0015153884887695312, -0.01265716552734375, 0.020111083984375, -0.08587646484375, -0.07177734375, -0.05523681640625, 0.01507568359375, -0.028167724609375, -0.005950927734375, 0.0103607177734375, 0.0031299591064453125, 0.06256103515625, -0.02197265625, -0.05841064453125, 0.00118255615234375, -0.0168914794921875, -0.024993896484375, 0.05657958984375, -0.0169677734375, -0.0024890899658203125, 0.0108795166015625, 0.0017404556274414062, 0.01485443115234375, 0.0027408599853515625, -0.0020198822021484375, -0.0006070137023925781, -0.006023406982421875, -0.010162353515625, -0.017578125, 0.00977325439453125, 0.050689697265625, -0.01016998291015625, 0.0203704833984375, -0.0285186767578125, 0.005893707275390625, 0.0193328857421875, 0.038421630859375, 0.05010986328125, -0.0616455078125, -0.01513671875, 0.0106353759765625, -0.012664794921875, -0.0172882080078125, -0.00884246826171875, -0.004886627197265625, 0.01471710205078125, -0.02423095703125, -0.0132293701171875, 0.030548095703125, -0.0009570121765136719, -0.0154571533203125, 0.01198577880859375, -0.0015058517456054688, -0.01210784912109375, -0.01197052001953125, -0.0182952880859375, 0.0026874542236328125, 0.005817413330078125, 0.0194091796875, 0.0258331298828125, 0.006580352783203125, 0.037445068359375, -0.07989501953125, 0.043792724609375, -0.047454833984375, -0.03411865234375, -0.0251922607421875, -0.02099609375, -0.01922607421875, 0.06439208984375, 0.0092620849609375, -0.03582763671875, -0.0418701171875, 0.05120849609375, -0.021453857421875, 0.0306854248046875, -0.013031005859375, -0.0137786865234375, 0.0259246826171875, 0.003589630126953125, 0.04046630859375, 0.016632080078125, -0.0311279296875, -0.0014820098876953125, -0.03619384765625, 0.0006089210510253906, -0.02703857421875, -0.04046630859375, -0.00830841064453125, -0.015533447265625, -0.00081634521484375, 0.03424072265625, -0.0159912109375, -0.04022216796875, 0.0246429443359375, -0.0155487060546875, -0.016937255859375, 0.047515869140625, 0.04864501953125, 0.0250701904296875, -0.00974273681640625, 0.0274810791015625, 0.053497314453125, 0.030792236328125, -0.048248291015625, -0.0380859375, -0.01157379150390625, -0.034149169921875, 0.0063018798828125, -0.0235137939453125, 0.00701904296875, 0.0103759765625, 0.0257568359375, 0.0134735107421875, 0.030242919921875, 0.0045013427734375, 0.019866943359375, 0.007537841796875, -0.0008597373962402344, 0.0267333984375, -0.00768280029296875, 0.10565185546875, -0.03887939453125, -0.0018110275268554688, -0.0257110595703125, 0.03216552734375, 0.004695892333984375, -0.04498291015625, -0.0012102127075195312, 0.04541015625, 0.005428314208984375, -0.0004143714904785156, 0.03997802734375, -0.0281219482421875, 0.035430908203125, 0.01351165771484375, 0.0194244384765625, 0.06451416015625, 0.0015764236450195312, -0.02166748046875, 0.00916290283203125, 0.0364990234375, 0.00428009033203125, 0.0177459716796875, 0.0604248046875, 0.00021588802337646484, 0.0013294219970703125, -0.01171112060546875, 0.0159912109375, -0.00688934326171875, 0.0100860595703125, 0.01110076904296875, 0.00736236572265625, 0.046295166015625, 0.0120391845703125, -0.0106658935546875, -0.0306549072265625, 0.000499725341796875, -0.0322265625, -0.0092010498046875, 0.0156707763671875, 0.0201263427734375, -0.0218963623046875, -0.03814697265625, 0.002727508544921875, -0.002532958984375, 0.006694793701171875, 0.00921630859375, -0.0377197265625, -0.00618743896484375, -0.061004638671875, -0.0059661865234375, 0.004375457763671875, -0.0153045654296875, -0.056182861328125, 0.04052734375, 0.0231170654296875, 0.036285400390625, -0.0159454345703125, -0.01227569580078125, 0.0548095703125, 0.028564453125, -0.0113525390625, -0.0217437744140625, 0.0103912353515625, 0.00179290771484375, -0.0855712890625, -0.0286865234375, 0.00670623779296875, 0.0226593017578125, 0.04302978515625, 0.049102783203125, 0.0112457275390625, -0.055084228515625, -0.00485992431640625, -0.00994110107421875, 0.02215576171875, 0.005962371826171875, -0.032440185546875, 0.022064208984375, 0.0262451171875, -0.01509857177734375, -0.0101318359375, -0.053680419921875, -0.0484619140625, -0.00977325439453125, -0.031982421875, -0.04473876953125, 0.046844482421875, -0.016510009765625, -0.076904296875, 0.1212158203125, 0.040130615234375, 0.01096343994140625, -0.0063629150390625, 0.0504150390625, -0.0677490234375, 0.0032634735107421875, -0.0264434814453125, 0.0545654296875, -0.014312744140625, 0.051605224609375, -0.055999755859375, -0.005603790283203125, 0.0247344970703125, 0.039520263671875, 0.06201171875, 0.023193359375, -0.032958984375, 0.0034046173095703125, 0.0289154052734375, -0.0092315673828125, -0.0258636474609375, 0.059844970703125, 0.022705078125, 0.030181884765625, 0.029083251953125, -0.00980377197265625, 0.036529541015625, -0.036895751953125, -0.007244110107421875, 0.0474853515625, 0.01074981689453125, 0.00826263427734375, -0.05389404296875, 0.0150604248046875, -0.0155792236328125, -0.0343017578125, -0.0002155303955078125, -0.0034332275390625, -0.0011739730834960938, 0.02435302734375, 0.03558349609375, -0.07244873046875, -0.0248870849609375, -0.0184783935546875, 0.0504150390625, 0.0008902549743652344, -0.0005011558532714844, 0.041717529296875, 0.01009368896484375, 0.041290283203125, -0.0110931396484375, -0.00013947486877441406, 0.0184326171875, 0.00926971435546875, 0.06793212890625, 0.018524169921875, 0.00860595703125, -0.05731201171875, 0.014617919921875, 0.0672607421875, 0.087890625, -0.0501708984375, 0.0089569091796875, 0.004634857177734375, 0.00466156005859375, 0.008575439453125, -0.0157928466796875, 0.04632568359375, 0.01531219482421875, -0.0110626220703125, -0.033447265625, 0.0017843246459960938, 0.0247039794921875, 0.03448486328125, 0.01373291015625, 0.041351318359375, -0.053802490234375, -0.0266571044921875, -0.06646728515625, 0.02838134765625, 0.0062408447265625, 0.0242767333984375, 0.0225982666015625, 0.024688720703125, 0.061309814453125, -0.0001442432403564453, -0.0160064697265625, 0.055145263671875, 0.029388427734375, -0.0062103271484375, 0.0108642578125, -0.0021038055419921875, -0.01517486572265625, -0.002971649169921875, 0.0219879150390625, 0.035858154296875, 0.056365966796875, 0.0308990478515625, -0.03997802734375, 0.0025463104248046875, 0.03326416015625, -0.0430908203125, -0.040802001953125, -0.0290679931640625, 0.00563812255859375, 0.0418701171875, 0.0199432373046875, 0.03302001953125, 0.01303863525390625, 0.0357666015625, -0.039215087890625, 0.0247802734375, -0.003025054931640625, 0.01081085205078125, 0.054534912109375, -0.0299835205078125, -0.01165008544921875, -0.02886962890625, -0.0053253173828125, 0.02880859375, -0.065185546875, -0.044921875, -0.0003783702850341797, 0.01152801513671875, -0.01554107666015625, 0.04315185546875, -0.0252532958984375, -0.0090179443359375, 0.047698974609375, -0.044464111328125, 0.0015249252319335938, 0.0102691650390625, -0.00518798828125, -0.0302276611328125, -0.041107177734375, -0.005504608154296875, -0.0009112358093261719, 0.0116119384765625, 0.000006020069122314453, 0.003742218017578125, 0.024383544921875, 0.01812744140625, -0.0035381317138671875, 0.041046142578125, -0.06243896484375, -0.020538330078125, 0.05426025390625, -0.038238525390625, -0.0022563934326171875, -0.004909515380859375, -0.061279296875, -0.007038116455078125, 0.03759765625, -0.025390625, 0.01171112060546875, 0.0110626220703125, 0.007701873779296875, -0.0294036865234375, 0.01922607421875, -0.020599365234375, -0.03375244140625, 0.0164337158203125, 0.0014276504516601562, -0.0108642578125, 0.01456451416015625, 0.033843994140625, 0.026123046875, 0.0177764892578125, -0.0299835205078125, 0.0107574462890625, -0.0179443359375, 0.0199737548828125, 0.033660888671875, -0.0282745361328125, 0.01739501953125, -0.01454925537109375, -0.01715087890625, -0.0038127899169921875, 0.0279998779296875, -0.0269775390625, -0.0064697265625, 0.032470703125, 0.0278472900390625, 0.01071929931640625, 0.043365478515625, -0.01004791259765625, 0.0189361572265625, 0.01070404052734375, 0.0185546875, -0.01177215576171875, -0.0341796875, -0.040863037109375, -0.0777587890625, 0.01172637939453125, 0.01605224609375, -0.021514892578125, -0.04266357421875, -0.041473388671875, 0.01509857177734375, 0.00719451904296875, -0.0005826950073242188, -0.0271148681640625, 0.047515869140625, -0.02862548828125, -0.006710052490234375, -0.00594329833984375, -0.0577392578125, -0.0009131431579589844, 0.0006513595581054688, -0.0198822021484375, -0.02728271484375, -0.0394287109375, 0.0291595458984375, -0.020599365234375, 0.0034027099609375, 0.0024280548095703125, -0.00439453125, 0.00695037841796875, -0.0192718505859375, 0.01143646240234375, 0.0153961181640625, -0.0107421875, -0.0138397216796875, -0.01422882080078125, -0.0036602020263671875, -0.03826904296875, -0.04510498046875, 0.038604736328125, -0.06640625, -0.04193115234375, 0.0033817291259765625, -0.00424957275390625, 0.004489898681640625, -0.03668212890625, -0.085693359375, 0.005832672119140625, -0.003314971923828125, -0.04461669921875, -0.0174713134765625, 0.0169219970703125, -0.0144195556640625, 0.006519317626953125, -0.0006766319274902344, 0.00856781005859375, 0.029815673828125, 0.01190185546875, 0.005191802978515625, 0.015289306640625, 0.0260162353515625, -0.01451873779296875, -0.0413818359375, -0.0081787109375, -0.01451873779296875, -0.007266998291015625, 0.006732940673828125, 0.0020046234130859375, 0.0208587646484375, 0.0386962890625, -0.02642822265625, -0.0716552734375, -0.00919342041015625, -0.031341552734375, -0.01287078857421875, -0.04754638671875, -0.0694580078125, -0.034210205078125, 0.10260009765625, 0.0518798828125, 0.04058837890625, -0.040771484375, 0.01007080078125, -0.005764007568359375, -0.05078125, 0.0240020751953125, 0.0227508544921875, -0.043304443359375, 0.0035457611083984375, 0.02398681640625, -0.0199127197265625, 0.004238128662109375, 0.01279449462890625, -0.032257080078125, 0.0200653076171875, 0.00540924072265625, -0.0214691162109375, -0.051483154296875, 0.0284576416015625, -0.01104736328125, -0.0284881591796875, -0.03631591796875, -0.01806640625, 0.0019159317016601562, -0.034088134765625, -0.04541015625, 0.0295257568359375, 0.012237548828125, 0.04443359375, 0.0177459716796875, 0.06256103515625, -0.036468505859375, 0.055877685546875, -0.0261383056640625, -0.0088348388671875, -0.006320953369140625, -0.0101318359375, -0.0404052734375, 0.0052947998046875, 0.007534027099609375, -0.0154876708984375, 0.06756591796875, -0.0205841064453125, 0.046600341796875, -0.005889892578125, 0.0330810546875, -0.034576416015625, 0.004978179931640625, -0.00494384765625, -0.0112762451171875, 0.0103912353515625, -0.031585693359375, 0.004955291748046875, -0.0289459228515625, 0.01128387451171875, -0.0472412109375, -0.0206451416015625, 0.021881103515625 ]
a3099b1bef99ee6ea847e514c735c19f608dbf61
Wordpress Stackexchange Q: Hook *after* user password change? I know that password_reset hooks: Runs after the user submits a new password during password reset but before the new password is actually set. but there is a similar hook AFTER the new password is actually set? EDIT: It would be logical to use profile_update but I tried, and profile_update seems not get called in case of password change for a 'lost password' procedure, for example. My real problem is auto login after password reset, and the only solution found till now, was using password_reset hook calling manually a wp_set_password before executing my code, so to be sure that password gets changed and THEN my code gets executed. This is not a clean procedure, and I am wondering if there is a solution that is less 'hacky'... I searched a lot, looking at every action hook in wordpress doc, but i can't find a proper solution. A: It seems that you have to use profile_update hook. There is a similar question here, and here. So this post might actually be considered duplicate.
Q: Hook *after* user password change? I know that password_reset hooks: Runs after the user submits a new password during password reset but before the new password is actually set. but there is a similar hook AFTER the new password is actually set? EDIT: It would be logical to use profile_update but I tried, and profile_update seems not get called in case of password change for a 'lost password' procedure, for example. My real problem is auto login after password reset, and the only solution found till now, was using password_reset hook calling manually a wp_set_password before executing my code, so to be sure that password gets changed and THEN my code gets executed. This is not a clean procedure, and I am wondering if there is a solution that is less 'hacky'... I searched a lot, looking at every action hook in wordpress doc, but i can't find a proper solution. A: It seems that you have to use profile_update hook. There is a similar question here, and here. So this post might actually be considered duplicate. A: I wonder if you're looking for this one: /** * Fires after the user's password is reset. * * @since 4.4.0 * * @param object $user The user. * @param string $new_pass New user password. */ do_action( 'after_password_reset', $user, $new_pass ); It was introduced in WordPress 4.4 and lives within the reset_password() function. The after_password_reset hook fires after the wp_set_password(). Update Here's an untested pre 4.4 workaround idea: /** * Support for the 'after_password_reset' hook in WordPress pre 4.4 */ add_action( 'password_reset', function( $user, $new_pass ) { add_filter( 'pre_option_admin_email', function( $pre_option, $option ) use ( $user, $new_pass ) { // Setup our 'after_password_reset' hook if( ! did_action( 'after_password_reset' ) ) do_action( 'after_password_reset', $user, $new_pass ); return $pre_option; } 10, 2 ); }, 10, 2 ); where you should now have your own custom after_password_reset hook. Remember to backup database before testing.
wordpress
{ "language": "en", "length": 320, "provenance": "stackexchange_00019.jsonl.gz:463329", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218204" }
[ 0.036956787109375, -0.008697509765625, 0.00864410400390625, 0.0091094970703125, 0.002704620361328125, -0.0225677490234375, 0.036651611328125, -0.042083740234375, -0.040618896484375, 0.047943115234375, -0.004909515380859375, 0.04608154296875, 0.019073486328125, -0.004932403564453125, 0.00923919677734375, -0.005168914794921875, 0.0224761962890625, -0.035675048828125, 0.007297515869140625, -0.0186767578125, 0.01922607421875, 0.0075531005859375, 0.00983428955078125, -0.00807952880859375, -0.0098724365234375, 0.022613525390625, 0.059844970703125, -0.0292510986328125, 0.01287841796875, -0.00389862060546875, 0.004787445068359375, -0.039520263671875, 0.01200103759765625, 0.03643798828125, -0.03253173828125, -0.004642486572265625, 0.00452423095703125, 0.01273345947265625, -0.0110931396484375, 0.047576904296875, 0.037933349609375, -0.0224151611328125, -0.01849365234375, 0.036834716796875, -0.0009851455688476562, -0.053985595703125, 0.056182861328125, -0.038726806640625, 0.032135009765625, 0.0002129077911376953, 0.00408935546875, -0.0003349781036376953, 0.0031795501708984375, 0.054840087890625, -0.02130126953125, 0.001697540283203125, -0.050323486328125, 0.0179290771484375, 0.0263214111328125, 0.044769287109375, 0.01251220703125, -0.0286712646484375, -0.00583648681640625, -0.0679931640625, -0.0308990478515625, 0.00626373291015625, 0.0011434555053710938, -0.00566864013671875, -0.0194091796875, -0.0330810546875, 0.0134124755859375, -0.01082611083984375, -0.05413818359375, 0.019195556640625, 0.0012941360473632812, 0.007610321044921875, 0.00560760498046875, -0.00888824462890625, -0.007781982421875, 0.0693359375, -0.01995849609375, 0.0003993511199951172, -0.0048065185546875, -0.0118560791015625, -0.01702880859375, -0.00147247314453125, -0.0206756591796875, 0.00563812255859375, -0.0252685546875, -0.0159149169921875, -0.0231781005859375, -0.0011043548583984375, -0.0251922607421875, 0.009063720703125, -0.03326416015625, 0.00571441650390625, 0.007213592529296875, 0.040771484375, -0.0218048095703125, -0.0030956268310546875, -0.005817413330078125, -0.017822265625, -0.0291748046875, -0.0212554931640625, -0.0028324127197265625, 0.03375244140625, 0.0221710205078125, -0.03265380859375, -0.01316070556640625, 0.0106201171875, -0.0235137939453125, -0.033294677734375, -0.0235137939453125, -0.034576416015625, -0.002223968505859375, 0.0176849365234375, -0.0340576171875, 0.008880615234375, -0.0006990432739257812, -0.00782012939453125, -0.0215301513671875, -0.01446533203125, -0.010772705078125, -0.020355224609375, 0.0254364013671875, -0.005496978759765625, -0.006500244140625, 0.0206451416015625, -0.001979827880859375, 0.03973388671875, -0.039093017578125, -0.0128936767578125, 0.08111572265625, 0.033843994140625, 0.02996826171875, -0.0391845703125, -0.0214996337890625, 0.01364898681640625, -0.023162841796875, 0.0462646484375, -0.02203369140625, -0.079345703125, -0.019378662109375, -0.01027679443359375, 0.0205535888671875, 0.0153961181640625, 0.0007863044738769531, 0.01110076904296875, 0.041290283203125, -0.040374755859375, 0.01079559326171875, -0.03533935546875, -0.0205535888671875, 0.033721923828125, 0.06585693359375, 0.0131378173828125, 0.039276123046875, -0.012359619140625, 0.0243988037109375, 0.023193359375, 0.038787841796875, -0.036376953125, -0.03045654296875, -0.006778717041015625, -0.05682373046875, 0.0374755859375, -0.0275115966796875, 0.0016069412231445312, 0.0292205810546875, -0.0214080810546875, 0.058258056640625, 0.034210205078125, 0.0218048095703125, 0.005992889404296875, 0.01309967041015625, -0.01202392578125, -0.022216796875, 0.033447265625, 0.0263214111328125, -0.0256805419921875, -0.029144287109375, -0.047271728515625, 0.0635986328125, -0.0287017822265625, -0.0173187255859375, 0.001590728759765625, 0.034423828125, 0.07720947265625, -0.00362396240234375, 0.048187255859375, -0.0102081298828125, 0.0016183853149414062, -0.03643798828125, 0.076416015625, 0.0043182373046875, -0.041900634765625, -0.0033168792724609375, -0.0011348724365234375, -0.0160064697265625, -0.044403076171875, 0.00400543212890625, -0.0003032684326171875, -0.0323486328125, -0.027252197265625, -0.1260986328125, -0.0133209228515625, -0.037506103515625, 0.048919677734375, 0.00921630859375, 0.0328369140625, -0.0007877349853515625, -0.0042877197265625, 0.0060272216796875, -0.03277587890625, -0.024993896484375, -0.036529541015625, -0.0391845703125, 0.061767578125, -0.0021762847900390625, 0.0924072265625, -0.01088714599609375, -0.043975830078125, 0.00557708740234375, -0.051300048828125, 0.0306549072265625, -0.04974365234375, -0.000396728515625, -0.048004150390625, 0.004638671875, -0.037109375, -0.00470733642578125, 0.06256103515625, -0.02703857421875, 0.00568389892578125, -0.0526123046875, -0.009368896484375, -0.037567138671875, -0.0203857421875, 0.01071929931640625, 0.04248046875, 0.0240478515625, 0.0285797119140625, -0.020538330078125, -0.004352569580078125, 0.0294647216796875, 0.0170135498046875, 0.04071044921875, -0.023284912109375, -0.0149078369140625, 0.045867919921875, -0.0159149169921875, 0.0210723876953125, -0.004497528076171875, -0.04461669921875, -0.027069091796875, 0.04168701171875, -0.0200653076171875, 0.0139312744140625, -0.026611328125, -0.0011501312255859375, -0.003509521484375, -0.06256103515625, -0.00698089599609375, -0.036041259765625, 0.0270538330078125, -0.046844482421875, 0.003448486328125, -0.00688934326171875, -0.002429962158203125, -0.024078369140625, 0.03704833984375, -0.03399658203125, -0.0015239715576171875, 0.031982421875, -0.00742340087890625, -0.00759124755859375, -0.002246856689453125, -0.0179443359375, -0.02490234375, -0.005290985107421875, -0.012420654296875, -0.014678955078125, -0.024810791015625, -0.013763427734375, 0.0208587646484375, -0.02197265625, -0.0062103271484375, 0.003520965576171875, 0.01171112060546875, -0.016448974609375, 0.02783203125, -0.0162353515625, -0.028900146484375, 0.036712646484375, -0.016754150390625, -0.0389404296875, -0.053741455078125, -0.0122222900390625, 0.0204010009765625, -0.03973388671875, 0.007755279541015625, 0.06005859375, -0.00659942626953125, 0.00091552734375, 0.0114288330078125, -0.036773681640625, 0.00351715087890625, 0.016876220703125, 0.004970550537109375, -0.0151824951171875, -0.0248260498046875, 0.03997802734375, 0.026702880859375, 0.059173583984375, -0.0198822021484375, -0.022216796875, -0.01251983642578125, 0.0239715576171875, -0.01361083984375, -0.0199127197265625, -0.0762939453125, -0.0574951171875, 0.0231170654296875, -0.005523681640625, -0.00974273681640625, 0.0130615234375, -0.0052947998046875, 0.035858154296875, 0.009521484375, -0.0384521484375, -0.034027099609375, -0.0682373046875, -0.06390380859375, -0.01262664794921875, 0.006866455078125, 0.01314544677734375, 0.0013885498046875, 0.07562255859375, -0.0181427001953125, -0.060577392578125, -0.03289794921875, -0.02764892578125, -0.0223541259765625, 0.00635528564453125, -0.01904296875, -0.0290985107421875, 0.0188140869140625, -0.017547607421875, -0.02667236328125, -0.0011796951293945312, 0.03125, -0.0179595947265625, -0.004791259765625, -0.07159423828125, 0.0145416259765625, 0.015472412109375, -0.01157379150390625, -0.0113372802734375, 0.051666259765625, -0.040069580078125, 0.01462554931640625, -0.0182647705078125, -0.0287017822265625, 0.020660400390625, -0.003849029541015625, -0.01230621337890625, -0.0009107589721679688, 0.006439208984375, -0.0543212890625, -0.0111541748046875, -0.0299835205078125, -0.0201263427734375, 0.0322265625, -0.0307464599609375, -0.049407958984375, 0.03399658203125, -0.011810302734375, -0.02642822265625, 0.00615692138671875, -0.0218353271484375, 0.0286102294921875, -0.020751953125, 0.03582763671875, -0.0338134765625, -0.0692138671875, 0.0372314453125, -0.044677734375, 0.001293182373046875, -0.04656982421875, -0.008453369140625, -0.0079498291015625, 0.093994140625, -0.0092620849609375, -0.01363372802734375, -0.00833892822265625, 0.005191802978515625, -0.059906005859375, -0.00890350341796875, -0.044403076171875, 0.01558685302734375, -0.06732177734375, 0.0025081634521484375, -0.01430511474609375, -0.022857666015625, -0.018798828125, -0.0145263671875, -0.03607177734375, -0.0308990478515625, 0.0157318115234375, -0.01824951171875, 0.003284454345703125, -0.003997802734375, -0.0022430419921875, -0.037933349609375, 0.01503753662109375, -0.0275115966796875, -0.042022705078125, 0.002300262451171875, -0.028167724609375, 0.029144287109375, 0.052215576171875, -0.0570068359375, -0.006412506103515625, 0.0167999267578125, 0.045013427734375, 0.006591796875, 0.0185394287109375, -0.0126953125, -0.006011962890625, 0.011749267578125, 0.01322174072265625, -0.0126495361328125, -0.0194549560546875, -0.0176849365234375, -0.005970001220703125, 0.038238525390625, -0.0230865478515625, 0.015411376953125, -0.0008759498596191406, -0.01641845703125, -0.03887939453125, -0.0057525634765625, -0.0018663406372070312, -0.0260772705078125, 0.0017108917236328125, -0.0081787109375, 0.001216888427734375, -0.021026611328125, 0.030364990234375, 0.007236480712890625, -0.01184844970703125, -0.00728607177734375, 0.062042236328125, 0.01541900634765625, -0.0236358642578125, 0.0364990234375, 0.02117919921875, 0.0362548828125, 0.0017948150634765625, -0.0305023193359375, -0.03436279296875, -0.043426513671875, 0.045440673828125, -0.0011892318725585938, -0.0164642333984375, -0.0178070068359375, 0.02618408203125, 0.0290985107421875, 0.0082244873046875, -0.02490234375, 0.0200958251953125, 0.0159149169921875, 0.0108489990234375, 0.0145721435546875, -0.002361297607421875, 0.032318115234375, -0.0098419189453125, -0.00804901123046875, -0.0122833251953125, 0.0121612548828125, -0.03009033203125, 0.006801605224609375, 0.01032257080078125, -0.02001953125, -0.00600433349609375, 0.0202484130859375, -0.046783447265625, -0.03192138671875, 0.0004076957702636719, -0.042388916015625, -0.050445556640625, -0.01374053955078125, 0.0281219482421875, -0.053466796875, 0.01239776611328125, -0.0181121826171875, -0.0200958251953125, 0.07647705078125, 0.018341064453125, -0.045806884765625, 0.03570556640625, -0.0271148681640625, 0.051361083984375, 0.00882720947265625, -0.02716064453125, 0.0289306640625, -0.0316162109375, -0.0203399658203125, -0.01499176025390625, -0.0269012451171875, -0.0518798828125, -0.038665771484375, 0.042816162109375, 0.0282440185546875, -0.01401519775390625, 0.053131103515625, -0.01263427734375, 0.041259765625, -0.0012378692626953125, -0.01666259765625, 0.03558349609375, 0.0484619140625, -0.040771484375, 0.0215301513671875, 0.0718994140625, -0.0287628173828125, -0.04705810546875, 0.0006957054138183594, -0.05108642578125, -0.0256500244140625, -0.010589599609375, 0.04095458984375, 0.00801849365234375, 0.00620269775390625, 0.032318115234375, 0.01678466796875, -0.004852294921875, 0.0654296875, 0.0170440673828125, -0.08172607421875, -0.009918212890625, 0.041107177734375, 0.021728515625, -0.040374755859375, 0.0103607177734375, -0.037689208984375, -0.0189971923828125, -0.034759521484375, -0.0188446044921875, -0.0254364013671875, -0.03778076171875, -0.0233154296875, -0.0131988525390625, -0.0362548828125, -0.031982421875, 0.0272979736328125, 0.0140533447265625, -0.00643157958984375, -0.0124969482421875, 0.024993896484375, 0.006496429443359375, 0.0296478271484375, -0.0305328369140625, -0.01226043701171875, 0.00814056396484375, -0.0032558441162109375, 0.0294342041015625, -0.015045166015625, -0.09039306640625, 0.027801513671875, -0.049774169921875, 0.01479339599609375, -0.003665924072265625, -0.0511474609375, -0.04168701171875, -0.0406494140625, 0.00641632080078125, 0.01306915283203125, 0.01192474365234375, 0.0037403106689453125, 0.0013179779052734375, 0.005931854248046875, -0.004611968994140625, 0.00945281982421875, -0.0207672119140625, 0.0308685302734375, 0.0238800048828125, 0.0137939453125, 0.0161895751953125, 0.003650665283203125, -0.0025882720947265625, -0.0084381103515625, -0.002086639404296875, -0.0094451904296875, -0.01116943359375, -0.0187530517578125, 0.03173828125, 0.0008182525634765625, 0.031646728515625, -0.00418853759765625, -0.031524658203125, -0.004673004150390625, -0.0009608268737792969, -0.0225067138671875, 0.078125, 0.04022216796875, -0.0297698974609375, 0.041595458984375, -0.013916015625, 0.01479339599609375, -0.00405120849609375, -0.0164642333984375, 0.031646728515625, -0.0189361572265625, 0.0193939208984375, 0.0012998580932617188, -0.0147552490234375, 0.0430908203125, 0.04534912109375, -0.035186767578125, 0.01165771484375, 0.0212554931640625, -0.004825592041015625, 0.01001739501953125, -0.04132080078125, 0.0137481689453125, 0.040191650390625, 0.03668212890625, -0.0222930908203125, 0.00921630859375, 0.01751708984375, -0.0245208740234375, 0.002857208251953125, 0.06103515625, 0.039031982421875, -0.09698486328125, 0.0023746490478515625, -0.004512786865234375, -0.0030994415283203125, 0.021820068359375, 0.00023055076599121094, -0.00946044921875, -0.0106048583984375, 0.042755126953125, -0.056121826171875, -0.0267181396484375, 0.0170135498046875, -0.0269317626953125, -0.01314544677734375, -0.01837158203125, 0.0323486328125, 0.01302337646484375, -0.03875732421875, 0.0249481201171875, 0.02001953125, 0.0160369873046875, -0.0182952880859375, -0.027130126953125, 0.02001953125, -0.049072265625, -0.07672119140625, -0.01666259765625, -0.0247802734375, -0.00916290283203125, 0.01548004150390625, 0.028778076171875, 0.0278472900390625, 0.0038433074951171875, 0.02191162109375, -0.0264739990234375, -0.0206298828125, 0.011474609375, -0.03314208984375, -0.01849365234375, 0.0113525390625, 0.0236053466796875, -0.045806884765625, 0.027679443359375, -0.0216217041015625, -0.01025390625, -0.0178985595703125, -0.026214599609375, 0.042694091796875, -0.0139923095703125, -0.00850677490234375, 0.0306854248046875, 0.04754638671875, -0.0115814208984375, 0.023712158203125, 0.0128936767578125, -0.002532958984375, 0.008575439453125, 0.022735595703125, -0.00852203369140625, -0.018707275390625, 0.020294189453125, -0.0229339599609375, 0.104736328125, -0.048858642578125, -0.0095367431640625, -0.0008015632629394531, 0.046234130859375, 0.0191650390625, 0.056976318359375, -0.045196533203125, 0.0450439453125, 0.01171875, 0.045684814453125, -0.03875732421875, -0.0037326812744140625, 0.00157928466796875, 0.0092926025390625, 0.0235137939453125, 0.018341064453125, -0.02984619140625, -0.018035888671875, -0.0187835693359375, 0.037109375, -0.001575469970703125, 0.0215911865234375, 0.002315521240234375, 0.0438232421875, 0.023956298828125, -0.049530029296875, 0.03515625, -0.06915283203125, -0.0223388671875, 0.01419830322265625, 0.0090179443359375, -0.010528564453125, -0.00403594970703125, 0.10748291015625, -0.08062744140625, 0.008941650390625, 0.046112060546875, 0.030548095703125, 0.044647216796875, 0.01398468017578125, 0.053924560546875, 0.034912109375, 0.013275146484375, -0.0031261444091796875, 0.048370361328125, 0.011383056640625, 0.006683349609375, 0.024627685546875, 0.018798828125, 0.00983428955078125, 0.0002639293670654297, 0.0004298686981201172, 0.020477294921875, 0.006725311279296875, 0.07861328125, 0.0186767578125, 0.03204345703125, -0.0152587890625, 0.046478271484375, -0.00438690185546875, 0.06317138671875, -0.061370849609375, -0.0457763671875, 0.006320953369140625, 0.01558685302734375, 0.024627685546875, 0.0279693603515625, 0.051177978515625, -0.01953125, 0.02197265625, -0.0023860931396484375, -0.007720947265625, -0.002033233642578125, -0.0015878677368164062, 0.0020465850830078125, 0.0295867919921875, 0.003070831298828125, 0.01021575927734375, -0.0118255615234375, 0.003597259521484375, -0.00469207763671875, -0.0014896392822265625, -0.029815673828125, 0.032989501953125, 0.005405426025390625, 0.01496124267578125, -0.0112457275390625, -0.00441741943359375, 0.0005717277526855469, 0.014739990234375, -0.033050537109375, -0.0157318115234375, -0.020172119140625, 0.0491943359375, 0.02313232421875, 0.0038089752197265625, 0.058807373046875, 0.03594970703125, -0.045654296875, -0.01166534423828125, 0.0087890625, -0.0194244384765625, 0.026275634765625, 0.01264190673828125, 0.018768310546875, 0.00600433349609375, -0.009674072265625, -0.06256103515625, 0.052886962890625, 0.02801513671875, -0.0091552734375, 0.050018310546875, 0.009765625, 0.00588226318359375, 0.01210784912109375, 0.033294677734375, 0.0302734375, 0.0360107421875, -0.00348663330078125, 0.0265655517578125, -0.0254058837890625, -0.0718994140625, 0.004077911376953125, 0.0307769775390625, -0.0118255615234375, 0.0185394287109375, 0.0132904052734375, -0.045684814453125, 0.0178680419921875, 0.02685546875, -0.0006394386291503906, -0.043243408203125, -0.0006151199340820312, -0.038604736328125, -0.047332763671875, -0.0280914306640625, -0.0173492431640625, 0.036163330078125, 0.0226287841796875, 0.033782958984375, 0.01506805419921875, 0.01904296875, -0.0187835693359375, 0.0176239013671875, -0.04193115234375, -0.019012451171875, 0.0059814453125, -0.021484375, -0.00995635986328125, 0.00862884521484375, -0.032379150390625, 0.1046142578125, -0.014495849609375, 0.055206298828125, 0.07611083984375, -0.0193634033203125, -0.006866455078125, 0.025421142578125, -0.007472991943359375, -0.030029296875, -0.038818359375, -0.006259918212890625, 0.024261474609375, -0.00745391845703125, -0.0009860992431640625, -0.0290069580078125, 0.033538818359375, -0.037353515625, 0.0253753662109375, -0.0197296142578125, 0.01285552978515625, -0.06378173828125, 0.004673004150390625, -0.054443359375, -0.0074615478515625, -0.0174560546875, -0.01183319091796875, -0.0165252685546875, 0.0236968994140625, -0.00595855712890625, -0.0012722015380859375, 0.0244903564453125, -0.0115509033203125, 0.0634765625, 0.08660888671875, 0.0167999267578125, 0.056640625, -0.01551055908203125, -0.007686614990234375, 0.03619384765625, -0.017974853515625, -0.0418701171875, -0.044158935546875, -0.01001739501953125, 0.005367279052734375, -0.033050537109375, -0.07379150390625, -0.0777587890625, 0.025360107421875, 0.053619384765625, 0.0145721435546875, -0.0843505859375, 0.043853759765625, -0.0249481201171875, 0.058685302734375, -0.004398345947265625, -0.074462890625, 0.02789306640625, 0.03375244140625, -0.0080413818359375, 0.01544189453125, -0.056243896484375, -0.05706787109375, -0.034881591796875, -0.0182037353515625, 0.036102294921875, 0.00298309326171875, -0.06097412109375, -0.060028076171875, -0.0260467529296875, -0.016845703125, -0.046112060546875, -0.03216552734375, -0.0121612548828125, 0.01849365234375, 0.04998779296875, -0.060638427734375, -0.0428466796875, -0.01384735107421875, 0.032135009765625, -0.00351715087890625, 0.005222320556640625, 0.02142333984375, -0.036773681640625, -0.0721435546875, 0.00750732421875, 0.0018787384033203125, -0.04083251953125, -0.0501708984375, 0.02435302734375, 0.008270263671875, -0.0217132568359375, -0.0297698974609375, 0.01061248779296875, -0.02374267578125, 0.01546478271484375, -0.00196075439453125, 0.0086517333984375, 0.00719451904296875, 0.004421234130859375, -0.0230712890625, 0.033355712890625, 0.0222015380859375, -0.0151214599609375, 0.0150604248046875, -0.022735595703125, 0.04248046875, 0.0421142578125, -0.034759521484375, 0.006603240966796875, -0.0018672943115234375, -0.018310546875, -0.019989013671875, 0.0042266845703125, 0.012542724609375, 0.003444671630859375, 0.03759765625, 0.01209259033203125, -0.00017750263214111328, -0.02020263671875, -0.03399658203125, 0.0009851455688476562, 0.00896453857421875, -0.00695037841796875, 0.0118255615234375, -0.055206298828125, -0.0043487548828125, 0.001621246337890625, 0.006618499755859375, -0.055908203125, -0.04412841796875, -0.031829833984375, -0.035888671875, -0.0343017578125, 0.017974853515625, 0.038726806640625, -0.0186614990234375, 0.062744140625, -0.02923583984375, -0.006622314453125, 0.040771484375, 0.0023517608642578125, 0.020843505859375, 0.07171630859375, 0.06512451171875, 0.058135986328125, -0.0458984375, 0.0011949539184570312, 0.042877197265625, -0.01059722900390625, -0.036651611328125, -0.0304107666015625, -0.0025081634521484375, 0.007480621337890625, -0.007732391357421875, 0.01471710205078125, 0.00814056396484375, 0.05419921875, 0.0238037109375, 0.0298309326171875, -0.0255889892578125, 0.0170135498046875, -0.0178680419921875, 0.0341796875, -0.01561737060546875, -0.00917816162109375, 0.0307159423828125, -0.031494140625, -0.0066680908203125, 0.015716552734375, 0.03033447265625, -0.05126953125, 0.068603515625, 0.051971435546875, 0.0302581787109375, 0.037994384765625 ]
f63da7eed3a3f2b2a9405a3778bde0358b42171b
Wordpress Stackexchange Q: DOING_AUTOSAVE function in wordpress Can anybody please explain in simple words (layman's terms), what this function actually does. if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } I am learning to code custom post types and I found this function for saving the content of meta boxes. Thanks in advance :) A: That conditional logic first checkes if the constant DOING_AUTOSAVE is defined by using the PHP function defined('SOME_CONSTANT_NAME'). Then the logic checks to see if the state/value of the constant DOING_AUTOSAVE is true, that's the second part of the conditional right after the && (and). So if DOING_AUTOSAVE has been defined in the request lifecycle and the state/value of DOING_AUTOSAVE is true then we return which is a means of aborting the logic that is to follow beneath the conditional. DOING_AUTOSAVE only gets defined and set as true in the wp-admin/includes/post.php file within the wp_autosave() function. Of course it may be defined elsewhere customly... * *Learn more about wp_auto_save() here: https://developer.wordpress.org/reference/functions/wp_autosave/ *Learn more about defined() here: http://php.net/manual/en/function.defined.php
Q: DOING_AUTOSAVE function in wordpress Can anybody please explain in simple words (layman's terms), what this function actually does. if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } I am learning to code custom post types and I found this function for saving the content of meta boxes. Thanks in advance :) A: That conditional logic first checkes if the constant DOING_AUTOSAVE is defined by using the PHP function defined('SOME_CONSTANT_NAME'). Then the logic checks to see if the state/value of the constant DOING_AUTOSAVE is true, that's the second part of the conditional right after the && (and). So if DOING_AUTOSAVE has been defined in the request lifecycle and the state/value of DOING_AUTOSAVE is true then we return which is a means of aborting the logic that is to follow beneath the conditional. DOING_AUTOSAVE only gets defined and set as true in the wp-admin/includes/post.php file within the wp_autosave() function. Of course it may be defined elsewhere customly... * *Learn more about wp_auto_save() here: https://developer.wordpress.org/reference/functions/wp_autosave/ *Learn more about defined() here: http://php.net/manual/en/function.defined.php
wordpress
{ "language": "en", "length": 171, "provenance": "stackexchange_00019.jsonl.gz:463351", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218289" }
[ 0.0239410400390625, 0.0023784637451171875, -0.005096435546875, -0.053466796875, 0.00481414794921875, -0.000024497509002685547, -0.01097869873046875, -0.0205535888671875, 0.0016307830810546875, 0.013092041015625, -0.063720703125, -0.004833221435546875, 0.01490020751953125, 0.001972198486328125, -0.0052032470703125, -0.04388427734375, 0.046844482421875, -0.0308380126953125, 0.01873779296875, -0.008697509765625, -0.00876617431640625, 0.01885986328125, 0.039581298828125, 0.032135009765625, 0.0288848876953125, -0.028839111328125, 0.014129638671875, -0.022674560546875, 0.0249481201171875, 0.005329132080078125, 0.0239105224609375, -0.0105743408203125, 0.002899169921875, 0.028839111328125, -0.019378662109375, -0.00616455078125, 0.01505279541015625, 0.0091400146484375, 0.0188140869140625, 0.0233154296875, -0.018829345703125, 0.01751708984375, 0.005153656005859375, -0.02655029296875, -0.0292205810546875, -0.032867431640625, -0.020599365234375, -0.0190887451171875, 0.01357269287109375, -0.0146331787109375, 0.016815185546875, 0.005062103271484375, 0.0281524658203125, 0.01355743408203125, -0.00487518310546875, 0.005828857421875, -0.02313232421875, 0.0128173828125, 0.0430908203125, 0.00876617431640625, -0.03460693359375, -0.0304718017578125, 0.015625, -0.05279541015625, -0.021697998046875, -0.0182037353515625, -0.0007481575012207031, 0.022491455078125, -0.06781005859375, -0.050537109375, 0.033203125, -0.0097503662109375, -0.01371002197265625, 0.0171051025390625, 0.018310546875, -0.0244598388671875, 0.0214996337890625, 0.0165557861328125, -0.01079559326171875, 0.0426025390625, 0.030517578125, 0.006626129150390625, 0.03466796875, -0.0164642333984375, 0.05059814453125, 0.051971435546875, -0.0006380081176757812, -0.0270233154296875, -0.042388916015625, -0.03594970703125, -0.0246124267578125, -0.01090240478515625, -0.02734375, -0.038238525390625, -0.027191162109375, -0.0382080078125, -0.00952911376953125, 0.044647216796875, -0.022491455078125, 0.0010633468627929688, -0.031951904296875, -0.0064849853515625, -0.02691650390625, -0.02191162109375, -0.005035400390625, 0.0841064453125, -0.017333984375, -0.0660400390625, -0.01305389404296875, 0.0227813720703125, 0.0262298583984375, -0.06683349609375, -0.0177154541015625, -0.042724609375, -0.0183563232421875, 0.0338134765625, -0.0309600830078125, -0.0019140243530273438, 0.0093536376953125, 0.0088958740234375, 0.01306915283203125, 0.0144195556640625, -0.004642486572265625, -0.042236328125, 0.044464111328125, 0.0126800537109375, -0.036651611328125, -0.01027679443359375, 0.020172119140625, 0.0504150390625, -0.02349853515625, -0.0216827392578125, 0.053070068359375, 0.01470184326171875, 0.0031909942626953125, -0.0294647216796875, 0.0192108154296875, 0.024200439453125, 0.0004661083221435547, 0.0261383056640625, 0.0033359527587890625, -0.07745361328125, -0.0345458984375, 0.0247039794921875, -0.004669189453125, 0.0251312255859375, 0.020477294921875, 0.02239990234375, -0.0099639892578125, -0.07281494140625, 0.040435791015625, -0.05426025390625, 0.038726806640625, -0.00757598876953125, -0.019927978515625, -0.004932403564453125, -0.00640869140625, -0.0129547119140625, -0.0284423828125, -0.0266571044921875, -0.0234527587890625, -0.03472900390625, -0.00988006591796875, -0.04595947265625, -0.053863525390625, 0.041900634765625, -0.0217132568359375, 0.006397247314453125, 0.0256500244140625, 0.010498046875, 0.0172271728515625, 0.030303955078125, 0.0050048828125, 0.008758544921875, 0.00489044189453125, -0.006473541259765625, 0.01195526123046875, 0.01727294921875, 0.01800537109375, 0.035186767578125, -0.025634765625, -0.0355224609375, 0.043243408203125, -0.0174713134765625, -0.044281005859375, 0.047210693359375, -0.00542449951171875, 0.0660400390625, 0.0257110595703125, 0.00514984130859375, -0.00290679931640625, -0.01947021484375, -0.0137481689453125, 0.027313232421875, 0.000946044921875, -0.0240478515625, 0.000675201416015625, 0.0018949508666992188, -0.0129547119140625, -0.01174163818359375, 0.02117919921875, -0.051116943359375, -0.00212860107421875, -0.02880859375, -0.1563720703125, -0.024139404296875, -0.064697265625, 0.033782958984375, 0.00435638427734375, 0.0478515625, -0.0017824172973632812, -0.0250396728515625, 0.0224761962890625, -0.03485107421875, 0.00472259521484375, -0.0096282958984375, -0.0015926361083984375, 0.027099609375, -0.012847900390625, 0.0465087890625, -0.0281982421875, -0.023651123046875, -0.032562255859375, -0.01593017578125, 0.03765869140625, -0.01549530029296875, -0.031951904296875, -0.02130126953125, -0.02105712890625, -0.0039520263671875, -0.03863525390625, 0.06402587890625, 0.035308837890625, 0.004253387451171875, -0.040618896484375, -0.0391845703125, -0.0919189453125, -0.1314697265625, -0.0085906982421875, 0.11260986328125, 0.01515960693359375, 0.02117919921875, -0.0242462158203125, 0.0146636962890625, 0.01100921630859375, -0.025146484375, 0.01800537109375, 0.0005517005920410156, -0.00788116455078125, 0.02484130859375, 0.024200439453125, 0.004650115966796875, 0.00885772705078125, -0.059326171875, -0.0043182373046875, 0.03424072265625, -0.055511474609375, -0.0084228515625, 0.042327880859375, -0.0192108154296875, -0.010101318359375, -0.031829833984375, 0.0482177734375, -0.0382080078125, 0.032135009765625, -0.0338134765625, 0.037261962890625, 0.0128021240234375, 0.01129913330078125, -0.0423583984375, 0.011932373046875, 0.012115478515625, -0.0137786865234375, 0.03118896484375, 0.03924560546875, 0.007556915283203125, -0.032562255859375, -0.0020084381103515625, 0.004894256591796875, 0.0180816650390625, -0.0307769775390625, 0.019561767578125, -0.040374755859375, -0.00588226318359375, 0.01311492919921875, -0.015411376953125, -0.00447845458984375, -0.024688720703125, -0.0010633468627929688, -0.0192413330078125, 0.007305145263671875, 0.029327392578125, -0.04595947265625, 0.053009033203125, 0.0294189453125, -0.0281524658203125, -0.01885986328125, -0.03143310546875, 0.0162506103515625, -0.030975341796875, 0.038299560546875, 0.07086181640625, 0.00977325439453125, 0.00942230224609375, -0.0030193328857421875, 0.0462646484375, 0.006221771240234375, 0.004962921142578125, -0.0167694091796875, -0.017333984375, -0.05987548828125, -0.039459228515625, 0.044891357421875, 0.08929443359375, -0.0029163360595703125, -0.0249481201171875, 0.0167388916015625, 0.04840087890625, -0.01337432861328125, -0.04644775390625, 0.0233001708984375, -0.06719970703125, -0.01508331298828125, -0.011474609375, -0.04425048828125, -0.00844573974609375, 0.0092926025390625, -0.010406494140625, -0.08526611328125, -0.005809783935546875, -0.0199432373046875, -0.07183837890625, -0.038360595703125, 0.0094451904296875, 0.00342559814453125, 0.033355712890625, 0.0048828125, 0.08990478515625, 0.011138916015625, -0.06890869140625, -0.01190948486328125, -0.038909912109375, -0.03192138671875, 0.028778076171875, -0.010528564453125, -0.03424072265625, -0.01641845703125, -0.0103912353515625, 0.01548004150390625, -0.01751708984375, 0.0255584716796875, -0.016845703125, 0.0015821456909179688, -0.02392578125, 0.03570556640625, 0.023773193359375, -0.01812744140625, 0.0292816162109375, 0.07464599609375, -0.022247314453125, -0.041534423828125, 0.004444122314453125, -0.049957275390625, 0.031463623046875, 0.0443115234375, -0.0157318115234375, 0.006587982177734375, -0.0020999908447265625, -0.0119171142578125, 0.00452423095703125, -0.0176849365234375, -0.001766204833984375, 0.002655029296875, -0.0008769035339355469, 0.0038700103759765625, 0.0200958251953125, 0.0947265625, 0.02294921875, -0.008026123046875, 0.044525146484375, 0.046722412109375, 0.0305023193359375, -0.054901123046875, -0.0545654296875, -0.018768310546875, 0.0291290283203125, -0.031097412109375, 0.0010728836059570312, -0.0261993408203125, -0.0033092498779296875, -0.02496337890625, 0.038116455078125, 0.0084991455078125, -0.002040863037109375, -0.007709503173828125, -0.016693115234375, -0.022216796875, 0.0019378662109375, -0.06573486328125, 0.01229095458984375, -0.0340576171875, 0.012786865234375, -0.0030536651611328125, -0.01136016845703125, -0.0194549560546875, 0.0360107421875, -0.02191162109375, -0.0160980224609375, 0.0254364013671875, -0.08251953125, 0.040008544921875, 0.0263519287109375, 0.036163330078125, -0.03729248046875, 0.00740814208984375, -0.07440185546875, -0.07958984375, -0.000331878662109375, -0.06671142578125, 0.07330322265625, 0.03570556640625, 0.00707244873046875, -0.01300811767578125, 0.042266845703125, 0.058929443359375, -0.00736236572265625, 0.0245513916015625, -0.0280303955078125, 0.016876220703125, 0.00537109375, 0.040557861328125, -0.0162200927734375, -0.00923919677734375, -0.0190887451171875, -0.036376953125, 0.016326904296875, -0.0127410888671875, 0.0227203369140625, 0.016510009765625, -0.033355712890625, -0.0110321044921875, 0.0007576942443847656, -0.050750732421875, -0.01006317138671875, -0.0214080810546875, -0.03143310546875, -0.00489044189453125, -0.044677734375, 0.0252685546875, -0.0154876708984375, -0.0091400146484375, 0.026153564453125, 0.09747314453125, 0.0172119140625, -0.0020198822021484375, -0.0667724609375, -0.004192352294921875, 0.034393310546875, -0.0164947509765625, 0.0013360977172851562, -0.00920867919921875, -0.019561767578125, 0.03302001953125, -0.00090789794921875, 0.042266845703125, -0.0877685546875, 0.0845947265625, -0.0185089111328125, 0.00037288665771484375, 0.01459503173828125, -0.05029296875, 0.034332275390625, 0.043487548828125, -0.021697998046875, 0.003772735595703125, -0.004283905029296875, 0.01116180419921875, -0.0399169921875, 0.0207061767578125, -0.02130126953125, -0.008880615234375, -0.004222869873046875, -0.002593994140625, 0.0254669189453125, 0.057464599609375, -0.0177459716796875, 0.02935791015625, 0.01611328125, -0.0004203319549560547, -0.015655517578125, 0.0224761962890625, -0.017822265625, 0.0021648406982421875, 0.028656005859375, -0.01409912109375, -0.038970947265625, 0.01088714599609375, -0.012603759765625, -0.0036830902099609375, -0.043426513671875, -0.0323486328125, 0.011474609375, 0.0386962890625, 0.0111083984375, -0.004638671875, 0.03033447265625, 0.039520263671875, -0.0281829833984375, -0.0155792236328125, -0.00220489501953125, 0.02777099609375, -0.0452880859375, -0.0045318603515625, 0.027557373046875, -0.0279083251953125, -0.005634307861328125, 0.041473388671875, 0.061981201171875, -0.01262664794921875, -0.041748046875, 0.049652099609375, 0.05010986328125, 0.0224761962890625, 0.0004239082336425781, 0.013427734375, -0.006336212158203125, -0.005340576171875, -0.0160369873046875, -0.033660888671875, -0.0288238525390625, 0.018768310546875, 0.036163330078125, -0.03515625, -0.0164337158203125, 0.031463623046875, 0.0048675537109375, -0.0129241943359375, 0.031097412109375, 0.00908660888671875, -0.0240478515625, -0.013580322265625, -0.007038116455078125, 0.004444122314453125, -0.0078582763671875, 0.00870513916015625, -0.0078887939453125, -0.00905609130859375, 0.020843505859375, -0.04803466796875, 0.030059814453125, -0.0360107421875, -0.032989501953125, -0.04547119140625, -0.034912109375, 0.00047516822814941406, 0.007183074951171875, 0.01090240478515625, -0.0210418701171875, -0.0579833984375, 0.031341552734375, -0.050201416015625, 0.0226593017578125, -0.0285797119140625, 0.0300750732421875, 0.0235443115234375, 0.0305633544921875, 0.0179595947265625, -0.002704620361328125, -0.03656005859375, 0.00017070770263671875, -0.03753662109375, -0.01141357421875, -0.0107879638671875, -0.037445068359375, -0.0255584716796875, -0.0029773712158203125, -0.0108184814453125, 0.04107666015625, -0.0094146728515625, 0.0175323486328125, 0.011810302734375, -0.007213592529296875, -0.032745361328125, 0.04486083984375, 0.0059967041015625, 0.046478271484375, 0.016021728515625, 0.04052734375, 0.0198974609375, 0.01082611083984375, -0.022216796875, -0.0192413330078125, -0.0024013519287109375, 0.00942230224609375, -0.01262664794921875, -0.0311279296875, 0.0254364013671875, 0.03814697265625, 0.0880126953125, -0.0014362335205078125, -0.003444671630859375, 0.0028743743896484375, 0.0014867782592773438, -0.02490234375, 0.001918792724609375, 0.00969696044921875, -0.01580810546875, -0.010345458984375, -0.05242919921875, -0.052764892578125, 0.01132965087890625, -0.0318603515625, 0.04461669921875, -0.006839752197265625, 0.005222320556640625, 0.041748046875, -0.0535888671875, 0.06866455078125, 0.07440185546875, 0.0184478759765625, 0.058837890625, 0.01473236083984375, 0.0203399658203125, 0.0267486572265625, -0.005054473876953125, -0.0192108154296875, -0.0021839141845703125, 0.05120849609375, 0.007373809814453125, -0.0169525146484375, 0.042327880859375, -0.016571044921875, 0.0287322998046875, 0.0394287109375, 0.06964111328125, -0.07440185546875, 0.02227783203125, 0.060546875, -0.0121002197265625, -0.01885986328125, -0.023345947265625, 0.00736236572265625, -0.005901336669921875, 0.02471923828125, -0.0209808349609375, -0.03082275390625, -0.002025604248046875, -0.0229949951171875, -0.017364501953125, -0.015625, -0.0009975433349609375, 0.013336181640625, -0.0282440185546875, 0.031402587890625, 0.0308685302734375, -0.004650115966796875, -0.0035381317138671875, 0.006900787353515625, -0.0089263916015625, -0.044921875, -0.0526123046875, -0.0249481201171875, -0.01015472412109375, -0.0177459716796875, 0.0047149658203125, 0.0097808837890625, 0.01270294189453125, 0.0775146484375, -0.03741455078125, 0.0450439453125, 0.0206756591796875, 0.04815673828125, -0.0633544921875, -0.0264892578125, 0.059234619140625, 0.0077972412109375, -0.0911865234375, 0.037933349609375, -0.0638427734375, -0.02679443359375, -0.01047515869140625, -0.01154327392578125, 0.056854248046875, -0.016845703125, -0.00946044921875, 0.0277557373046875, 0.033935546875, -0.01336669921875, -0.0241241455078125, 0.0643310546875, -0.0660400390625, -0.04132080078125, 0.0032863616943359375, -0.0297088623046875, -0.0188751220703125, -0.056396484375, -0.037994384765625, 0.0579833984375, 0.024688720703125, 0.00414276123046875, -0.0180816650390625, 0.0234375, 0.0193939208984375, 0.039337158203125, -0.03631591796875, 0.060699462890625, 0.048126220703125, 0.0139007568359375, -0.068603515625, -0.007801055908203125, -0.033050537109375, 0.034088134765625, 0.006103515625, 0.005840301513671875, -0.01715087890625, 0.00787353515625, 0.03961181640625, 0.03143310546875, 0.005992889404296875, 0.0255126953125, -0.0020961761474609375, 0.0294189453125, 0.020599365234375, -0.056854248046875, 0.01274871826171875, -0.0290374755859375, -0.00933074951171875, 0.020172119140625, 0.00521087646484375, 0.00290679931640625, -0.03228759765625, -0.006561279296875, -0.007282257080078125, -0.0208740234375, -0.015625, 0.0208892822265625, 0.02813720703125, -0.0005474090576171875, 0.0171966552734375, -0.053375244140625, 0.0019664764404296875, -0.0240020751953125, 0.039154052734375, -0.00882720947265625, -0.006229400634765625, 0.057525634765625, 0.0186767578125, -0.029693603515625, 0.00872039794921875, -0.0032978057861328125, -0.0211029052734375, 0.027130126953125, 0.052093505859375, 0.038238525390625, 0.03057861328125, -0.006359100341796875, 0.002986907958984375, 0.0227813720703125, 0.04949951171875, -0.0255279541015625, -0.047271728515625, -0.006130218505859375, -0.018646240234375, 0.007579803466796875, -0.00897216796875, -0.0024623870849609375, -0.0248870849609375, -0.0220489501953125, -0.036773681640625, -0.0074005126953125, 0.03900146484375, -0.0213470458984375, 0.014312744140625, 0.033477783203125, 0.008056640625, -0.0029468536376953125, -0.03302001953125, -0.0347900390625, 0.0091400146484375, 0.04376220703125, 0.05078125, -0.00457000732421875, 0.01390838623046875, -0.02069091796875, -0.00707244873046875, 0.00926971435546875, -0.0014314651489257812, 0.00447845458984375, -0.033905029296875, -0.033447265625, 0.028167724609375, 0.035308837890625, 0.005344390869140625, -0.0005769729614257812, 0.047821044921875, 0.039093017578125, -0.0263671875, -0.01373291015625, 0.056884765625, -0.023040771484375, -0.0026531219482421875, -0.033843994140625, 0.037994384765625, 0.04864501953125, 0.01904296875, -0.0117645263671875, 0.01520538330078125, 0.06219482421875, -0.0160369873046875, 0.0296630859375, -0.01050567626953125, -0.004924774169921875, 0.01340484619140625, -0.0113372802734375, 0.041473388671875, 0.011474609375, 0.00493621826171875, 0.01678466796875, 0.0048065185546875, -0.040252685546875, -0.02630615234375, 0.00975799560546875, -0.0033092498779296875, 0.031097412109375, -0.007720947265625, -0.00299835205078125, 0.0238189697265625, -0.00327301025390625, -0.0102081298828125, 0.01305389404296875, 0.036865234375, -0.007808685302734375, -0.047210693359375, -0.031585693359375, -0.0248870849609375, 0.045318603515625, 0.0249786376953125, 0.00435638427734375, 0.0213470458984375, 0.046356201171875, -0.0418701171875, -0.030364990234375, -0.03448486328125, -0.050079345703125, -0.002140045166015625, -0.0183563232421875, -0.0191802978515625, 0.018341064453125, 0.0010471343994140625, 0.03729248046875, 0.03570556640625, -0.017181396484375, 0.010986328125, 0.005550384521484375, 0.024688720703125, 0.0030002593994140625, 0.0094451904296875, -0.0360107421875, -0.01220703125, -0.020965576171875, -0.0013952255249023438, 0.0286712646484375, 0.024993896484375, -0.01055145263671875, 0.01373291015625, 0.004146575927734375, -0.0411376953125, 0.0251922607421875, -0.04217529296875, 0.009918212890625, 0.0200958251953125, 0.01021575927734375, -0.0298614501953125, -0.0374755859375, -0.026641845703125, -0.01108551025390625, -0.018402099609375, 0.0157012939453125, -0.00939178466796875, -0.035247802734375, -0.0283660888671875, 0.00982666015625, 0.004421234130859375, -0.041595458984375, 0.00698089599609375, 0.00022137165069580078, -0.0017557144165039062, 0.019927978515625, 0.0081787109375, 0.0001914501190185547, -0.0095977783203125, -0.036041259765625, 0.006092071533203125, -0.01519012451171875, -0.0120391845703125, -0.0211334228515625, 0.026153564453125, 0.0282440185546875, -0.0151824951171875, -0.0126800537109375, -0.008087158203125, -0.04339599609375, 0.06103515625, -0.005523681640625, 0.0017642974853515625, -0.004688262939453125, 0.0382080078125, 0.00033211708068847656, -0.01177215576171875, -0.028106689453125, 0.037384033203125, -0.00762939453125, 0.0214080810546875, 0.01468658447265625, -0.0295867919921875, 0.0017681121826171875, -0.00995635986328125, 0.01100921630859375, 0.0361328125, 0.042572021484375, -0.0278472900390625, 0.037689208984375, 0.0124969482421875, 0.0190887451171875, -0.028839111328125, -0.038726806640625, 0.02349853515625, 0.0233612060546875, 0.0031299591064453125, 0.02099609375, 0.0457763671875, 0.00019478797912597656, -0.0406494140625, 0.01091766357421875, 0.00954437255859375, -0.026397705078125, -0.0494384765625, -0.003589630126953125, -0.0058746337890625, 0.04345703125, -0.0150299072265625, -0.0093841552734375, -0.0280914306640625, 0.028472900390625, 0.005924224853515625, -0.0084228515625, 0.0418701171875, -0.0014276504516601562, -0.09136962890625, -0.0419921875, -0.053009033203125, -0.01253509521484375, 0.02642822265625, -0.011077880859375, 0.033538818359375, 0.06451416015625, -0.0021038055419921875, -0.040496826171875, -0.004177093505859375, -0.0599365234375, -0.0006227493286132812, -0.024810791015625, 0.0149383544921875, 0.0011224746704101562, 0.0626220703125, -0.02020263671875, 0.01033782958984375, -0.0218963623046875, 0.035614013671875, 0.0039215087890625, -0.04132080078125, -0.0031909942626953125, 0.00540924072265625, -0.0138702392578125, -0.00896453857421875, -0.00882720947265625, -0.024169921875, 0.0202789306640625, -0.0033283233642578125, -0.032623291015625, 0.003055572509765625, -0.0195465087890625, -0.0264892578125, -0.036102294921875, -0.0229949951171875, 0.04095458984375, -0.02880859375, 0.00432586669921875, 0.0308380126953125, 0.01122283935546875, 0.01129150390625, 0.069091796875, 0.0440673828125, 0.07196044921875, -0.07891845703125, -0.039825439453125, 0.02239990234375, 0.039154052734375, -0.026824951171875, -0.03399658203125, -0.01519775390625, 0.0135040283203125, 0.006748199462890625, 0.0160980224609375, -0.013214111328125, 0.00598907470703125, 0.003383636474609375, -0.01210784912109375, -0.0176544189453125, 0.0723876953125, -0.0005860328674316406, 0.031097412109375, -0.045501708984375, 0.012542724609375, -0.01416778564453125, -0.01488494873046875, 0.01012420654296875, 0.00432586669921875, 0.037811279296875, -0.029449462890625, 0.017333984375, 0.0162200927734375, 0.0140838623046875, 0.0224456787109375 ]
d269b94dad45918c6aae1adfed7ec3e29f4f34a7
Wordpress Stackexchange Q: Where to enqueue stylesheets for plugin? I want to enqueue stylesheet to plugin I'm developing, like this: function utm_user_scripts() { $plugin_url = plugin_dir_url( __FILE__ ); wp_enqueue_style( 'style', $plugin_url . "/css/style.css"); } add_action( 'wp_enqueue_scripts', 'utm_user_scripts' ); I am adding this code in the main file, [plugin_name].php. Nothing is loaded, which part am I doing wrong? A: Add this code in your main file: [plugin-name].php: function utm_user_scripts() { $plugin_url = plugin_dir_url( __FILE__ ); wp_enqueue_style( 'style', $plugin_url . "/css/style.css"); } add_action( 'admin_print_styles', 'utm_user_scripts' ); So basically, you need to use 'admin_print_styles'. At least it did the trick for me.
Q: Where to enqueue stylesheets for plugin? I want to enqueue stylesheet to plugin I'm developing, like this: function utm_user_scripts() { $plugin_url = plugin_dir_url( __FILE__ ); wp_enqueue_style( 'style', $plugin_url . "/css/style.css"); } add_action( 'wp_enqueue_scripts', 'utm_user_scripts' ); I am adding this code in the main file, [plugin_name].php. Nothing is loaded, which part am I doing wrong? A: Add this code in your main file: [plugin-name].php: function utm_user_scripts() { $plugin_url = plugin_dir_url( __FILE__ ); wp_enqueue_style( 'style', $plugin_url . "/css/style.css"); } add_action( 'admin_print_styles', 'utm_user_scripts' ); So basically, you need to use 'admin_print_styles'. At least it did the trick for me. A: I did a quick Google Search on how to enqueue styles for Plugins and I've came across these two questions on WordPress StackExchange. You can find them below and hopefully they will help you solve your problem. Best of Luck :) wp_enqueue_style for Plugin with multiple stylesheets Where is the right place to register/enqueue scripts & styles
wordpress
{ "language": "en", "length": 155, "provenance": "stackexchange_00019.jsonl.gz:463395", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218452" }
[ 0.0101165771484375, 0.0038604736328125, -0.02813720703125, -0.0287933349609375, -0.0019350051879882812, -0.034698486328125, -0.007190704345703125, -0.0007839202880859375, -0.0219268798828125, 0.022552490234375, -0.00537872314453125, 0.0237274169921875, -0.034027099609375, -0.01515960693359375, 0.000004649162292480469, -0.025665283203125, 0.031768798828125, -0.0240325927734375, -0.005401611328125, -0.00493621826171875, 0.0156097412109375, 0.0297698974609375, -0.019927978515625, 0.048004150390625, 0.004669189453125, -0.01146697998046875, 0.11749267578125, -0.001888275146484375, 0.006572723388671875, -0.017669677734375, 0.0280609130859375, -0.036102294921875, 0.0258636474609375, 0.002918243408203125, -0.016876220703125, -0.032623291015625, 0.038238525390625, -0.0299224853515625, -0.00738525390625, 0.039215087890625, 0.03900146484375, -0.01364898681640625, -0.02166748046875, 0.051116943359375, -0.017669677734375, -0.06396484375, 0.058837890625, -0.019866943359375, -0.016754150390625, 0.005130767822265625, 0.028900146484375, -0.021148681640625, 0.039581298828125, 0.00438690185546875, 0.005710601806640625, 0.003742218017578125, -0.0176849365234375, -0.0079345703125, 0.0200653076171875, 0.01348876953125, -0.01110076904296875, -0.01947021484375, 0.021240234375, -0.0144500732421875, -0.0023059844970703125, 0.005893707275390625, 0.0239105224609375, 0.0137939453125, -0.0255279541015625, 0.004550933837890625, 0.0180816650390625, -0.0212860107421875, 0.0245208740234375, -0.0140533447265625, -0.051513671875, 0.00736236572265625, 0.025482177734375, 0.00010371208190917969, 0.032958984375, -0.045166015625, -0.0045318603515625, -0.0087127685546875, -0.0249481201171875, -0.0221710205078125, 0.016876220703125, -0.004718780517578125, -0.017578125, -0.0030879974365234375, 0.007503509521484375, -0.0308685302734375, -0.0174560546875, 0.0176239013671875, -0.00983428955078125, -0.0228118896484375, -0.03173828125, -0.029083251953125, 0.05255126953125, 0.08135986328125, 0.00865936279296875, 0.043975830078125, -0.029937744140625, -0.04791259765625, 0.04229736328125, -0.04754638671875, -0.01509857177734375, 0.047943115234375, 0.023223876953125, 0.0256805419921875, 0.0162506103515625, 0.01412200927734375, 0.00846099853515625, -0.01544952392578125, -0.0104522705078125, -0.006214141845703125, -0.005519866943359375, -0.01354217529296875, -0.03271484375, 0.0252685546875, -0.0023822784423828125, 0.0091094970703125, 0.00434112548828125, 0.0253143310546875, -0.01506805419921875, -0.02972412109375, -0.040374755859375, -0.054962158203125, -0.0037136077880859375, -0.03558349609375, 0.0218963623046875, 0.01479339599609375, -0.0122833251953125, -0.0012569427490234375, 0.035430908203125, 0.0244140625, -0.004852294921875, -0.01605224609375, 0.04132080078125, -0.032196044921875, -0.0240020751953125, -0.01153564453125, -0.00899505615234375, -0.015960693359375, -0.004680633544921875, -0.036651611328125, -0.00829315185546875, 0.01470947265625, 0.03082275390625, 0.0158233642578125, -0.027557373046875, -0.0396728515625, 0.01514434814453125, -0.027191162109375, 0.02728271484375, 0.00572967529296875, 0.01398468017578125, -0.01104736328125, 0.051544189453125, -0.019134521484375, -0.004726409912109375, -0.0233154296875, -0.031158447265625, 0.018829345703125, 0.0296630859375, -0.00937652587890625, 0.0014104843139648438, -0.03155517578125, -0.00732421875, 0.00574493408203125, 0.036102294921875, -0.0120391845703125, -0.00002390146255493164, -0.04132080078125, 0.0506591796875, 0.021209716796875, -0.004436492919921875, 0.054168701171875, -0.00792694091796875, 0.0221099853515625, 0.041229248046875, -0.005069732666015625, -0.0313720703125, -0.0272064208984375, 0.1051025390625, -0.0501708984375, -0.0325927734375, -0.0101318359375, -0.0085601806640625, 0.0260772705078125, 0.042755126953125, 0.023193359375, 0.01110076904296875, -0.004852294921875, -0.024444580078125, -0.010833740234375, -0.0172119140625, 0.001598358154296875, 0.012298583984375, 0.019744873046875, -0.001850128173828125, -0.007293701171875, 0.0011014938354492188, 0.0015163421630859375, 0.0176849365234375, 0.0035305023193359375, -0.007030487060546875, 0.0013837814331054688, -0.0020771026611328125, 0.01059722900390625, -0.004322052001953125, 0.00574493408203125, -0.02606201171875, -0.0400390625, 0.04302978515625, -0.05718994140625, -0.018463134765625, 0.0477294921875, 0.00902557373046875, 0.047149658203125, 0.018157958984375, 0.03564453125, 0.02838134765625, -0.0157318115234375, 0.019287109375, 0.00011283159255981445, -0.016845703125, 0.006908416748046875, -0.016754150390625, 0.0006704330444335938, -0.01483154296875, 0.0048675537109375, 0.0153656005859375, 0.035125732421875, 0.03668212890625, 0.09295654296875, 0.002246856689453125, -0.0132904052734375, 0.007373809814453125, -0.017608642578125, 0.03515625, 0.00460052490234375, 0.04962158203125, 0.0236968994140625, 0.01275634765625, -0.01061248779296875, 0.05938720703125, 0.0100555419921875, 0.03594970703125, -0.040313720703125, 0.01326751708984375, 0.00848388671875, 0.000255584716796875, -0.0120086669921875, 0.03961181640625, -0.060882568359375, 0.0159454345703125, 0.036041259765625, -0.016632080078125, -0.005153656005859375, -0.006351470947265625, -0.0115814208984375, 0.03228759765625, 0.02392578125, -0.01995849609375, 0.010009765625, 0.0182952880859375, -0.0006122589111328125, 0.01119232177734375, 0.007541656494140625, -0.0301055908203125, 0.0013494491577148438, 0.0281219482421875, -0.01033782958984375, 0.005931854248046875, 0.02838134765625, 0.014068603515625, -0.031402587890625, -0.045654296875, 0.00659942626953125, 0.024200439453125, 0.0097503662109375, 0.002288818359375, 0.0147857666015625, -0.04791259765625, -0.01287078857421875, -0.01666259765625, -0.03411865234375, 0.007633209228515625, 0.033782958984375, 0.04443359375, 0.0251312255859375, 0.046112060546875, 0.0098419189453125, -0.005279541015625, 0.0267791748046875, -0.01435089111328125, -0.023529052734375, 0.042755126953125, 0.006473541259765625, 0.0223388671875, -0.01546478271484375, 0.0132598876953125, 0.034332275390625, -0.0063323974609375, -0.01751708984375, 0.0248870849609375, 0.0027561187744140625, 0.004302978515625, 0.002246856689453125, 0.006988525390625, 0.0243682861328125, -0.052093505859375, 0.02276611328125, 0.046539306640625, 0.00525665283203125, 0.034088134765625, -0.0238800048828125, -0.0093231201171875, 0.044281005859375, -0.08807373046875, -0.0902099609375, -0.040008544921875, -0.0927734375, 0.0283355712890625, -0.037994384765625, -0.038818359375, 0.00041937828063964844, -0.00040221214294433594, 0.0232086181640625, -0.0046539306640625, -0.018157958984375, -0.060546875, -0.0704345703125, -0.07965087890625, -0.0113677978515625, 0.0055389404296875, 0.0198974609375, 0.01275634765625, 0.05548095703125, -0.00506591796875, -0.033538818359375, 0.00015103816986083984, 0.015655517578125, -0.0128936767578125, -0.004451751708984375, 0.051177978515625, -0.04791259765625, -0.0174713134765625, 0.00677490234375, 0.0281982421875, 0.0445556640625, -0.054229736328125, 0.01129913330078125, -0.0205078125, -0.03131103515625, -0.0159149169921875, 0.006572723388671875, 0.02294921875, -0.026397705078125, -0.002727508544921875, -0.05889892578125, -0.029998779296875, 0.0011587142944335938, -0.032623291015625, 0.06396484375, 0.0094757080078125, -0.0084686279296875, 0.0208587646484375, 0.0309906005859375, 0.00351715087890625, -0.011932373046875, 0.00934600830078125, -0.0246124267578125, 0.04388427734375, -0.00765228271484375, -0.0021076202392578125, -0.024017333984375, 0.0228729248046875, -0.00927734375, 0.01456451416015625, 0.00778961181640625, 0.01181793212890625, -0.002147674560546875, -0.0089874267578125, -0.035980224609375, -0.0355224609375, 0.0169830322265625, -0.0182342529296875, 0.02020263671875, -0.0230255126953125, -0.0036830902099609375, -0.00689697265625, 0.059906005859375, -0.06744384765625, -0.011199951171875, 0.006107330322265625, 0.007110595703125, -0.06378173828125, -0.04998779296875, -0.056365966796875, 0.017913818359375, -0.10546875, -0.00380706787109375, -0.0146026611328125, -0.05584716796875, 0.00754547119140625, -0.03826904296875, -0.07183837890625, -0.051788330078125, 0.0256500244140625, 0.0168304443359375, -0.02130126953125, 0.0215606689453125, -0.0262603759765625, -0.002498626708984375, 0.004779815673828125, -0.004611968994140625, -0.1165771484375, -0.0126953125, -0.059906005859375, 0.09454345703125, 0.051025390625, -0.033111572265625, -0.00934600830078125, 0.038909912109375, -0.0165863037109375, -0.0003032684326171875, 0.024627685546875, 0.044525146484375, -0.0220794677734375, -0.01354217529296875, 0.0142364501953125, -0.033660888671875, -0.006824493408203125, 0.034576416015625, -0.0294036865234375, 0.028167724609375, 0.008941650390625, -0.061492919921875, 0.0689697265625, -0.05804443359375, -0.01220703125, 0.0059661865234375, 0.0163726806640625, -0.0218353271484375, 0.0023517608642578125, -0.0236968994140625, 0.01020050048828125, 0.010528564453125, -0.006526947021484375, -0.0008592605590820312, -0.01119232177734375, 0.00681304931640625, 0.004566192626953125, 0.0389404296875, -0.0254974365234375, 0.0080413818359375, 0.00616455078125, 0.031585693359375, 0.03802490234375, -0.01097869873046875, -0.023193359375, -0.0355224609375, 0.027435302734375, 0.01335906982421875, 0.00794219970703125, -0.0200958251953125, 0.0570068359375, -0.004322052001953125, -0.055206298828125, 0.03472900390625, -0.0181732177734375, -0.028472900390625, 0.0196380615234375, 0.00521087646484375, -0.0268707275390625, 0.00011324882507324219, 0.0142059326171875, 0.017791748046875, -0.016021728515625, -0.033477783203125, -0.056121826171875, 0.0026340484619140625, -0.0128021240234375, 0.0618896484375, 0.053131103515625, -0.03387451171875, 0.057159423828125, 0.036346435546875, -0.00380706787109375, 0.057830810546875, 0.057769775390625, 0.01184844970703125, 0.034423828125, 0.041015625, -0.003406524658203125, -0.018341064453125, -0.0022487640380859375, 0.029632568359375, -0.0223236083984375, -0.0265960693359375, -0.0758056640625, 0.006519317626953125, 0.055389404296875, 0.0228424072265625, -0.002460479736328125, 0.044281005859375, -0.0139923095703125, -0.01323699951171875, -0.02899169921875, -0.0295867919921875, -0.0192108154296875, -0.0506591796875, 0.0131072998046875, -0.024749755859375, -0.0262908935546875, -0.0193328857421875, 0.025146484375, -0.0162506103515625, 0.00738525390625, -0.0011692047119140625, 0.002147674560546875, -0.0134429931640625, 0.0247344970703125, 0.016357421875, -0.01291656494140625, 0.0399169921875, -0.0211334228515625, 0.0428466796875, -0.033172607421875, 0.0276641845703125, 0.00698089599609375, 0.036529541015625, -0.03070068359375, -0.055389404296875, 0.057403564453125, -0.030609130859375, -0.039031982421875, -0.0015878677368164062, -0.0203094482421875, -0.004253387451171875, -0.05145263671875, -0.0208282470703125, 0.051605224609375, 0.045654296875, -0.004283905029296875, -0.007709503173828125, -0.005626678466796875, 0.025299072265625, -0.00585174560546875, -0.020721435546875, 0.01493072509765625, -0.004276275634765625, -0.025299072265625, 0.0048065185546875, 0.0073089599609375, -0.041595458984375, -0.056060791015625, 0.0022792816162109375, -0.0014944076538085938, 0.00479888916015625, -0.039093017578125, 0.064208984375, -0.040771484375, -0.0144500732421875, -0.047149658203125, 0.013458251953125, 0.039581298828125, 0.040069580078125, -0.01554107666015625, -0.0173187255859375, -0.01023101806640625, -0.01357269287109375, -0.041168212890625, -0.029876708984375, -0.013763427734375, -0.00418853759765625, -0.0157623291015625, -0.0010118484497070312, -0.051605224609375, -0.048248291015625, -0.038543701171875, 0.028533935546875, 0.06097412109375, 0.0296783447265625, -0.030731201171875, 0.08526611328125, 0.0287933349609375, 0.031494140625, 0.018707275390625, 0.0443115234375, -0.020599365234375, -0.01001739501953125, -0.03155517578125, -0.02252197265625, 0.019378662109375, -0.0036640167236328125, 0.022430419921875, 0.041259765625, 0.0885009765625, 0.01108551025390625, 0.014434814453125, 0.006786346435546875, 0.0045318603515625, -0.0228271484375, -0.0005345344543457031, 0.0246429443359375, 0.0028285980224609375, 0.02337646484375, 0.0019464492797851562, 0.041259765625, -0.0106201171875, 0.00876617431640625, 0.0316162109375, -0.01837158203125, 0.06121826171875, -0.04351806640625, -0.0389404296875, 0.06427001953125, 0.034912109375, 0.0008730888366699219, 0.0199127197265625, -0.0141448974609375, 0.007175445556640625, -0.02740478515625, -0.00800323486328125, 0.03253173828125, -0.0181884765625, 0.06756591796875, -0.010406494140625, 0.0082855224609375, 0.062255859375, -0.0307464599609375, -0.0027446746826171875, 0.036376953125, 0.0259857177734375, -0.07568359375, 0.0209197998046875, -0.0271453857421875, 0.01557159423828125, 0.054351806640625, -0.00749969482421875, 0.00743865966796875, -0.0155029296875, 0.061279296875, 0.034393310546875, 0.01861572265625, 0.05712890625, -0.00452423095703125, -0.01540374755859375, -0.01192474365234375, -0.0323486328125, -0.0006804466247558594, -0.036834716796875, -0.006439208984375, 0.023345947265625, -0.032012939453125, -0.021270751953125, 0.01198577880859375, 0.0127716064453125, 0.0008950233459472656, -0.0020160675048828125, 0.06427001953125, -0.0266265869140625, 0.007289886474609375, 0.04071044921875, 0.0130767822265625, 0.041259765625, 0.020233154296875, 0.026824951171875, -0.0260162353515625, -0.01300048828125, 0.0226287841796875, 0.038116455078125, -0.0335693359375, 0.02001953125, 0.0017852783203125, -0.06927490234375, 0.019256591796875, -0.0092010498046875, -0.023345947265625, -0.0203857421875, -0.01406097412109375, 0.08734130859375, -0.0222015380859375, -0.016204833984375, -0.01345062255859375, 0.047576904296875, 0.01337432861328125, -0.0241241455078125, 0.0169219970703125, -0.061187744140625, -0.01873779296875, -0.004669189453125, -0.0208282470703125, -0.0041351318359375, -0.043792724609375, -0.05682373046875, 0.06866455078125, -0.03948974609375, 0.037445068359375, 0.0254058837890625, 0.0209197998046875, -0.003498077392578125, -0.0107574462890625, -0.01092529296875, 0.02337646484375, -0.016021728515625, 0.0046234130859375, -0.0219879150390625, 0.006076812744140625, -0.0009946823120117188, 0.0355224609375, 0.039276123046875, 0.0166778564453125, -0.04864501953125, 0.010009765625, 0.04986572265625, 0.039825439453125, 0.0207061767578125, 0.027557373046875, 0.01507568359375, 0.006855010986328125, 0.0125579833984375, 0.002079010009765625, 0.043670654296875, -0.065673828125, -0.0221405029296875, 0.022857666015625, -0.0284576416015625, -0.047149658203125, -0.0181732177734375, -0.016815185546875, -0.048248291015625, 0.005893707275390625, 0.0146484375, -0.0218505859375, -0.0201873779296875, 0.0389404296875, -0.0209808349609375, 0.0307464599609375, -0.06561279296875, 0.00749969482421875, 0.0004811286926269531, 0.0005846023559570312, 0.00151824951171875, -0.012298583984375, 0.01305389404296875, 0.048309326171875, -0.0313720703125, -0.0107574462890625, 0.0215606689453125, -0.011077880859375, 0.020965576171875, 0.00597381591796875, 0.0166015625, -0.0239410400390625, 0.00171661376953125, -0.004058837890625, 0.007534027099609375, -0.0242767333984375, -0.00347137451171875, 0.01555633544921875, 0.0167236328125, -0.007755279541015625, -0.0117340087890625, 0.01373291015625, -0.052032470703125, -0.01702880859375, -0.0286712646484375, -0.01461029052734375, 0.01457977294921875, -0.0223388671875, -0.004077911376953125, 0.00225067138671875, 0.0142974853515625, 0.031341552734375, -0.039825439453125, 0.040191650390625, -0.01526641845703125, 0.01407623291015625, 0.0150909423828125, 0.0122222900390625, -0.0128326416015625, -0.00714874267578125, -0.042724609375, 0.0338134765625, 0.0274200439453125, 0.03338623046875, -0.0229949951171875, 0.0263519287109375, 0.0030498504638671875, 0.032928466796875, 0.006237030029296875, -0.032684326171875, 0.0172271728515625, -0.001033782958984375, -0.0740966796875, -0.02252197265625, -0.006183624267578125, -0.033050537109375, 0.0207061767578125, -0.01044464111328125, 0.041595458984375, 0.0185089111328125, 0.00202178955078125, -0.023101806640625, 0.031829833984375, 0.037994384765625, -0.05352783203125, 0.03472900390625, -0.00434112548828125, -0.0158843994140625, -0.00691986083984375, -0.0291290283203125, 0.0077972412109375, -0.0214385986328125, -0.044891357421875, -0.009033203125, -0.0204925537109375, 0.0269775390625, -0.0165863037109375, 0.0054931640625, -0.022674560546875, 0.060577392578125, 0.041839599609375, -0.05035400390625, 0.015960693359375, 0.0215606689453125, 0.0171356201171875, 0.0251007080078125, -0.000926971435546875, 0.005466461181640625, -0.055511474609375, -0.05023193359375, -0.0557861328125, 0.07171630859375, 0.0087890625, 0.057861328125, -0.04296875, 0.0293426513671875, 0.0494384765625, -0.0247955322265625, 0.03173828125, 0.0020885467529296875, 0.0347900390625, -0.036529541015625, -0.00868988037109375, -0.01012420654296875, -0.03424072265625, -0.0006570816040039062, 0.02154541015625, 0.002719879150390625, -0.032989501953125, 0.01146697998046875, 0.0251922607421875, 0.037872314453125, 0.0377197265625, -0.032196044921875, -0.024993896484375, -0.03936767578125, 0.006191253662109375, 0.0012464523315429688, -0.029876708984375, -0.0142822265625, 0.000797271728515625, 0.043701171875, -0.02703857421875, 0.034210205078125, -0.0101776123046875, 0.06781005859375, 0.04534912109375, -0.00986480712890625, -0.037078857421875, 0.006988525390625, -0.0040130615234375, 0.0088958740234375, 0.004180908203125, 0.06829833984375, 0.00263214111328125, -0.0147857666015625, 0.039520263671875, 0.0426025390625, 0.03656005859375, -0.004405975341796875, -0.007747650146484375, 0.062103271484375, -0.038818359375, -0.049530029296875, -0.048675537109375, -0.035064697265625, -0.08642578125, 0.0191192626953125, 0.0227203369140625, -0.0174713134765625, -0.039154052734375, -0.026092529296875, 0.0289764404296875, 0.0310821533203125, -0.0234375, -0.0494384765625, 0.02142333984375, -0.04583740234375, 0.06732177734375, -0.0068359375, 0.01091766357421875, 0.00942230224609375, 0.052490234375, -0.06121826171875, -0.02752685546875, -0.0243988037109375, 0.00714111328125, -0.056396484375, 0.0229644775390625, 0.051055908203125, -0.01532745361328125, 0.0218658447265625, 0.03497314453125, 0.0016088485717773438, 0.08819580078125, -0.05523681640625, -0.002422332763671875, 0.035186767578125, 0.004230499267578125, -0.01438140869140625, -0.10015869140625, -0.01983642578125, -0.049407958984375, 0.01953125, 0.0114898681640625, -0.0207061767578125, 0.007785797119140625, -0.037628173828125, -0.08013916015625, 0.04901123046875, -0.0030670166015625, -0.0421142578125, -0.051055908203125, 0.022613525390625, 0.0283660888671875, -0.0161285400390625, -0.0127716064453125, -0.0245208740234375, -0.048431396484375, 0.0025043487548828125, 0.00803375244140625, 0.0194244384765625, 0.0277862548828125, -0.025054931640625, -0.035797119140625, -0.0054168701171875, 0.0157928466796875, 0.0033016204833984375, -0.021697998046875, 0.01529693603515625, 0.01389312744140625, 0.035919189453125, 0.005764007568359375, 0.0150299072265625, 0.04327392578125, -0.02801513671875, -0.006305694580078125, 0.0161895751953125, -0.0142669677734375, 0.03656005859375, 0.08636474609375, 0.0369873046875, 0.0265655517578125, -0.0531005859375, 0.00933837890625, -0.02056884765625, -0.0246734619140625, -0.0019350051879882812, 0.0146484375, -0.034881591796875, 0.0011425018310546875, 0.0092010498046875, -0.01561737060546875, -0.04534912109375, -0.0184478759765625, -0.04693603515625, -0.023712158203125, -0.0156097412109375, 0.009735107421875, 0.01461029052734375, -0.0302276611328125, 0.05047607421875, -0.0273590087890625, 0.02703857421875, -0.006458282470703125, 0.037994384765625, 0.023101806640625, 0.01129150390625, -0.0308990478515625, 0.056610107421875, -0.07025146484375, 0.006328582763671875, -0.0255126953125, 0.0166778564453125, -0.05474853515625, 0.04229736328125, 0.002960205078125, -0.005031585693359375, -0.0201263427734375, -0.031890869140625, 0.0002887248992919922, 0.01113128662109375, -0.0302276611328125, 0.072265625, -0.01078033447265625, -0.030364990234375, -0.017578125, 0.0164031982421875, 0.011505126953125, -0.0155181884765625, 0.04766845703125, -0.021942138671875, 0.007396697998046875, 0.008880615234375, 0.005626678466796875, -0.031463623046875, 0.031036376953125, -0.039886474609375, 0.004261016845703125, 0.01275634765625 ]
bd35c068b001aefba33375d800cdd5110f4a59dc
Wordpress Stackexchange Q: Display different smiley when entering ":)" If you enter :) in WordPress, it automatically replaces it with: Is there a way to use a different smiley for the :) A: According to the WordPress Codex on using smilies: Upload the images you want with the same name to your server (say in wp-content/images/smilies) and put this in your theme's function.php: add_filter( 'smilies_src', 'my_custom_smilies_src', 10, 3 ); function my_custom_smilies_src($img_src, $img, $siteurl){ return $siteurl.'/wp-content/images/smilies/'.$img; } That will replace http://example.com/wp-includes/images/smilies/icon_question.gif with http://example.com/wp-content/images/smilies/icon_question.gif
Q: Display different smiley when entering ":)" If you enter :) in WordPress, it automatically replaces it with: Is there a way to use a different smiley for the :) A: According to the WordPress Codex on using smilies: Upload the images you want with the same name to your server (say in wp-content/images/smilies) and put this in your theme's function.php: add_filter( 'smilies_src', 'my_custom_smilies_src', 10, 3 ); function my_custom_smilies_src($img_src, $img, $siteurl){ return $siteurl.'/wp-content/images/smilies/'.$img; } That will replace http://example.com/wp-includes/images/smilies/icon_question.gif with http://example.com/wp-content/images/smilies/icon_question.gif A: Overriding the emoji of :) to The content smilies are converted with: add_filter( 'the_content', 'convert_smilies' ); where this part of the convert_smilies() function is of importance: $content = preg_replace_callback( $wp_smiliessearch, 'translate_smiley', $content ); If we peek into translate_smiley() then we find the following: // Don't convert smilies that aren't images - they're probably emoji. if ( ! in_array( $ext, $image_exts ) ) { return $img; } before the smilies_src filter is applied. So this filter isn't available in the case of the :) smiley. We have the smilies initialized with: add_action( 'init', 'smilies_init', 5 ); and within the function description for smilies_init() we can read the following: Plugins may override the default smiley list by setting the $wpsmiliestrans to an array, with the key the code the blogger types in and the value the image file. Here's the global $wpsmiliestrans array: $wpsmiliestrans = array( ':mrgreen:' => 'mrgreen.png', ':neutral:' => "\xf0\x9f\x98\x90", ':twisted:' => "\xf0\x9f\x98\x88", ':arrow:' => "\xe2\x9e\xa1", ':shock:' => "\xf0\x9f\x98\xaf", ':smile:' => "\xf0\x9f\x99\x82", ':???:' => "\xf0\x9f\x98\x95", ':cool:' => "\xf0\x9f\x98\x8e", ':evil:' => "\xf0\x9f\x91\xbf", ':grin:' => "\xf0\x9f\x98\x80", ':idea:' => "\xf0\x9f\x92\xa1", ':oops:' => "\xf0\x9f\x98\xb3", ':razz:' => "\xf0\x9f\x98\x9b", ':roll:' => 'rolleyes.png', ':wink:' => "\xf0\x9f\x98\x89", ':cry:' => "\xf0\x9f\x98\xa5", ':eek:' => "\xf0\x9f\x98\xae", ':lol:' => "\xf0\x9f\x98\x86", ':mad:' => "\xf0\x9f\x98\xa1", ':sad:' => "\xf0\x9f\x99\x81", '8-)' => "\xf0\x9f\x98\x8e", '8-O' => "\xf0\x9f\x98\xaf", ':-(' => "\xf0\x9f\x99\x81", ':-)' => "\xf0\x9f\x99\x82", ':-?' => "\xf0\x9f\x98\x95", ':-D' => "\xf0\x9f\x98\x80", ':-P' => "\xf0\x9f\x98\x9b", ':-o' => "\xf0\x9f\x98\xae", ':-x' => "\xf0\x9f\x98\xa1", ':-|' => "\xf0\x9f\x98\x90", ';-)' => "\xf0\x9f\x98\x89", // This one transformation breaks regular text with frequency. // '8)' => "\xf0\x9f\x98\x8e", '8O' => "\xf0\x9f\x98\xaf", ':(' => "\xf0\x9f\x99\x81", ':)' => "\xf0\x9f\x99\x82", ':?' => "\xf0\x9f\x98\x95", ':D' => "\xf0\x9f\x98\x80", ':P' => "\xf0\x9f\x98\x9b", ':o' => "\xf0\x9f\x98\xae", ':x' => "\xf0\x9f\x98\xa1", ':|' => "\xf0\x9f\x98\x90", ';)' => "\xf0\x9f\x98\x89", ':!:' => "\xe2\x9d\x97", ':?:' => "\xe2\x9d\x93", ); or the nicer ksorted display: Array ( [;-)] => [;)] => [:|] => [:x] => [:wink:] => [:twisted:] => [:smile:] => [:shock:] => [:sad:] => [:roll:] => rolleyes.png [:razz:] => [:oops:] => [:o] => [:neutral:] => [:mrgreen:] => mrgreen.png [:mad:] => [:lol:] => [:idea:] => [:grin:] => [:evil:] => [:eek:] => [:cry:] => [:cool:] => [:arrow:] => ➡ [:P] => [:D] => [:???:] => [:?:] => ❓ [:?] => [:-|] => [:-x] => [:-o] => [:-P] => [:-D] => [:-?] => [:-)] => [:-(] => [:)] => [:(] => [:!:] => ❗ [8O] => [8-O] => [8-)] => ) So if I correctly understand the above core comment, then we could do the following: /** * :) as the cool emoji */ add_action( 'init', function() use ( &$wpsmiliestrans ) { if( is_array( $wpsmiliestrans ) && get_option( 'use_smilies' ) ) $wpsmiliestrans[':)'] = $wpsmiliestrans[':cool:']; }, 6 ); but this only works for predefined smiley keys, for the $wp_smiliessearch to work. But I don't like this suggested approach, modifying the global array! Hopefully there's another one better! Demo plugin - I tried to come up with an application for this. I'm not sure if this already exists, but here it is: <?php /** * Plugin Name: Santa's Smile In December * Description: Change the emoji of :) to the Santa Claus emoji, but only in December * Plugin URI: https://wordpress.stackexchange.com/a/218496/26350 */ add_action( 'init', function() use ( &$wpsmiliestrans ) { // :) as Santa Claus if( is_array( $wpsmiliestrans ) && get_option( 'use_smilies' ) && 12 == current_time( 'n' ) ) $wpsmiliestrans[':)'] = "\xF0\x9F\x8E\x85"; }, 6 ); Thanks to Ismael Miguel for the global comment, I rewrote the snippets accordingly. Here's the newly created ticket #35905 by Pieter Goosen, regarding a new smilies_trans filter. Update - WordPress 4.7+ The new filter will be available in WordPress 4.7+, but it's name will be smilies not smilies_trans. Our above examples can be written as: add_filter( 'smilies', function( $smilies ) { if( isset( $smilies[':cool:'] ) ) $smilies[':)'] = $smilies[':cool:']; return $smilies; } ); or explicitly with: add_filter( 'smilies', function( $smilies ) { $smilies[':)'] = "\xf0\x9f\x98\x8e"; return $smilies; } ); The demo plugin becomes: <?php /** * Plugin Name: Santa's Smile In December * Description: Change the emoji of :) to the Santa Claus emoji, but only in December * Plugin URI: https://wordpress.stackexchange.com/a/218496/26350 */ add_filter( 'smilies', function( $smilies ) { // :) as Santa Claus if( get_option( 'use_smilies' ) && 12 == current_time( 'n' ) ) $smilies[':)'] = "\xF0\x9F\x8E\x85"; return $smilies; } ); We don't need to mess around with the global $wpsmiliestrans array anymore!
wordpress
{ "language": "en", "length": 794, "provenance": "stackexchange_00019.jsonl.gz:463402", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218474" }
[ 0.056365966796875, -0.0202484130859375, 0.028594970703125, 0.023040771484375, -0.01288604736328125, -0.031707763671875, 0.082275390625, -0.04815673828125, -0.0005421638488769531, 0.004596710205078125, -0.029083251953125, -0.018829345703125, -0.05718994140625, -0.02301025390625, -0.0181884765625, -0.038818359375, 0.03887939453125, -0.046417236328125, -0.0008778572082519531, -0.023345947265625, 0.00655364990234375, -0.0006976127624511719, -0.0010786056518554688, 0.0341796875, 0.030853271484375, -0.034149169921875, 0.10205078125, -0.01438140869140625, 0.0006809234619140625, -0.021728515625, 0.031524658203125, 0.0205230712890625, 0.0206756591796875, 0.06390380859375, -0.06036376953125, 0.018310546875, -0.01274871826171875, 0.0433349609375, 0.00673675537109375, 0.02587890625, 0.00650787353515625, -0.0015039443969726562, 0.045928955078125, 0.004253387451171875, 0.003326416015625, -0.049041748046875, 0.031524658203125, -0.0452880859375, 0.03851318359375, 0.004634857177734375, 0.037322998046875, 0.02239990234375, 0.038482666015625, 0.0008783340454101562, -0.0151824951171875, 0.01154327392578125, -0.05511474609375, 0.004428863525390625, 0.01262664794921875, 0.06365966796875, 0.017333984375, -0.00702667236328125, -0.0133514404296875, -0.0174102783203125, -0.015960693359375, -0.00479888916015625, -0.015380859375, 0.003093719482421875, 0.0478515625, -0.01203155517578125, -0.0211334228515625, 0.0219573974609375, 0.0012674331665039062, -0.06439208984375, 0.0034465789794921875, 0.07196044921875, -0.0350341796875, 0.0077056884765625, 0.0139007568359375, -0.0212249755859375, 0.0095367431640625, -0.037567138671875, 0.031280517578125, -0.01885986328125, 0.021331787109375, 0.0321044921875, 0.006717681884765625, -0.00850677490234375, -0.033905029296875, 0.0041046142578125, -0.0297088623046875, -0.0263824462890625, -0.06829833984375, 0.061248779296875, 0.0221099853515625, 0.01149749755859375, 0.0108795166015625, 0.032562255859375, -0.0289154052734375, 0.0218353271484375, -0.0256500244140625, -0.01320648193359375, -0.0058135986328125, -0.042694091796875, 0.01068878173828125, 0.01422119140625, 0.029266357421875, -0.00038623809814453125, 0.0592041015625, 0.01220703125, 0.015716552734375, 0.08746337890625, 0.004016876220703125, -0.037109375, 0.0008382797241210938, -0.004566192626953125, -0.0139617919921875, 0.0281829833984375, 0.02410888671875, -0.0019664764404296875, 0.005184173583984375, 0.00722503662109375, 0.07421875, -0.0380859375, 0.02056884765625, 0.011077880859375, -0.030487060546875, -0.049774169921875, 0.0099029541015625, -0.03515625, -0.019744873046875, 0.0145721435546875, 0.05029296875, 0.0570068359375, 0.04388427734375, -0.0080718994140625, -0.00867462158203125, 0.0003681182861328125, -0.024078369140625, 0.039031982421875, -0.02020263671875, -0.029693603515625, 0.0208587646484375, -0.0247955322265625, 0.03216552734375, 0.0295562744140625, -0.006649017333984375, 0.016326904296875, 0.031982421875, -0.05816650390625, 0.051055908203125, -0.05816650390625, -0.0181121826171875, 0.0269317626953125, -0.0019197463989257812, 0.02099609375, -0.0193939208984375, -0.005767822265625, 0.00589752197265625, 0.0138397216796875, -0.0035400390625, -0.01043701171875, 0.058074951171875, 0.041473388671875, 0.0243377685546875, 0.0299072265625, -0.024200439453125, 0.0080718994140625, 0.01319122314453125, -0.005584716796875, 0.0235748291015625, 0.00737762451171875, 0.01580810546875, -0.007007598876953125, -0.0022068023681640625, 0.0039043426513671875, -0.0234375, 0.0200042724609375, 0.019378662109375, 0.04364013671875, 0.036163330078125, -0.0178680419921875, 0.0712890625, -0.017578125, -0.0509033203125, -0.022491455078125, 0.0012111663818359375, 0.0271759033203125, 0.06005859375, 0.0177764892578125, 0.01947021484375, -0.0258026123046875, -0.04083251953125, 0.0261077880859375, -0.022491455078125, -0.0117645263671875, -0.040557861328125, -0.00450897216796875, -0.0196075439453125, 0.01161956787109375, 0.01806640625, 0.01001739501953125, -0.0218048095703125, -0.0191497802734375, -0.0980224609375, 0.016754150390625, -0.033905029296875, 0.039794921875, -0.020782470703125, 0.0264434814453125, -0.003902435302734375, -0.01702880859375, 0.00606536865234375, -0.006984710693359375, -0.0010623931884765625, -0.01219940185546875, -0.025909423828125, 0.035736083984375, 0.01239776611328125, 0.028472900390625, -0.0168914794921875, 0.0031261444091796875, 0.006984710693359375, -0.033203125, 0.0220794677734375, 0.0285797119140625, -0.050872802734375, 0.01248931884765625, -0.0033416748046875, 0.004566192626953125, -0.0261383056640625, 0.065673828125, -0.035552978515625, 0.0182342529296875, -0.01432037353515625, -0.013702392578125, -0.02587890625, -0.05780029296875, 0.0205841064453125, 0.0345458984375, 0.0310211181640625, 0.01021575927734375, -0.00904083251953125, 0.00673675537109375, 0.056304931640625, 0.0166168212890625, 0.0271453857421875, -0.0196380615234375, 0.0249176025390625, 0.0293731689453125, -0.060943603515625, -0.018768310546875, 0.0296783447265625, -0.02685546875, 0.0136566162109375, 0.051971435546875, -0.0043792724609375, 0.00824737548828125, -0.0005574226379394531, 0.0247039794921875, -0.026519775390625, 0.0030651092529296875, 0.01438140869140625, -0.00696563720703125, 0.032318115234375, -0.07525634765625, 0.0269622802734375, -0.005462646484375, 0.0102386474609375, -0.035400390625, 0.0167694091796875, -0.016754150390625, 0.0031280517578125, 0.005512237548828125, 0.03173828125, -0.01373291015625, -0.00991058349609375, 0.00867462158203125, -0.00151824951171875, -0.015045166015625, -0.01551055908203125, 0.005397796630859375, -0.045013427734375, -0.00957489013671875, -0.026458740234375, -0.044769287109375, 0.0090484619140625, 0.01415252685546875, -0.04229736328125, 0.002552032470703125, 0.01422882080078125, 0.055694580078125, 0.0256195068359375, -0.006046295166015625, -0.0216217041015625, 0.0236358642578125, -0.029541015625, -0.05450439453125, 0.05035400390625, -0.0401611328125, 0.037109375, 0.07220458984375, -0.0226898193359375, 0.014495849609375, -0.00495147705078125, -0.019622802734375, -0.019287109375, 0.0347900390625, 0.00713348388671875, -0.00016498565673828125, -0.0256500244140625, 0.037109375, -0.0011091232299804688, 0.017822265625, -0.0102996826171875, -0.0103607177734375, 0.013641357421875, 0.003368377685546875, -0.0144500732421875, -0.04876708984375, -0.0226593017578125, -0.04742431640625, -0.018829345703125, 0.00795745849609375, -0.01244354248046875, 0.01287078857421875, 0.01148223876953125, 0.020660400390625, -0.024688720703125, -0.043609619140625, -0.00286102294921875, -0.059906005859375, -0.0355224609375, -0.05267333984375, 0.0021820068359375, -0.006305694580078125, 0.003314971923828125, -0.026275634765625, 0.01367950439453125, 0.017333984375, 0.03814697265625, 0.055145263671875, -0.002750396728515625, -0.01959228515625, 0.00836944580078125, -0.034576416015625, 0.0029773712158203125, -0.00479888916015625, 0.071533203125, 0.031097412109375, -0.03448486328125, 0.01214599609375, -0.0275115966796875, 0.048553466796875, 0.0333251953125, 0.0176239013671875, 0.02276611328125, 0.052703857421875, 0.041412353515625, 0.007602691650390625, 0.00400543212890625, -0.0033245086669921875, -0.0248565673828125, 0.094482421875, -0.01227569580078125, -0.0304107666015625, 0.0229034423828125, 0.053924560546875, 0.0158843994140625, 0.00582122802734375, 0.041168212890625, -0.033782958984375, 0.044830322265625, 0.00804901123046875, 0.01458740234375, -0.035919189453125, -0.019775390625, -0.046051025390625, 0.05438232421875, -0.00925445556640625, 0.0020542144775390625, -0.0007109642028808594, 0.041168212890625, 0.0038433074951171875, 0.006847381591796875, 0.0019121170043945312, -0.039031982421875, -0.02105712890625, 0.017913818359375, 0.01273345947265625, -0.004680633544921875, -0.0103607177734375, -0.0185089111328125, -0.0229644775390625, 0.0213470458984375, 0.0296783447265625, -0.028961181640625, -0.0106201171875, -0.0168914794921875, -0.02294921875, -0.0792236328125, 0.005462646484375, 0.00962066650390625, -0.03717041015625, -0.0012912750244140625, 0.0171661376953125, -0.03314208984375, -0.036865234375, -0.01641845703125, -0.013916015625, 0.02099609375, 0.02392578125, -0.00714111328125, 0.04559326171875, 0.03900146484375, -0.10052490234375, -0.0540771484375, 0.003108978271484375, -0.0362548828125, 0.03936767578125, 0.0189971923828125, -0.01629638671875, -0.0021381378173828125, 0.04742431640625, -0.029693603515625, 0.0242767333984375, 0.018218994140625, 0.05535888671875, -0.04327392578125, -0.024017333984375, 0.02532958984375, -0.049957275390625, 0.01079559326171875, 0.0004944801330566406, -0.0457763671875, 0.005672454833984375, -0.01434326171875, 0.022003173828125, 0.039215087890625, -0.03607177734375, -0.030914306640625, -0.0092315673828125, 0.0164031982421875, 0.038787841796875, 0.021087646484375, -0.0330810546875, -0.0221405029296875, -0.0203399658203125, -0.01340484619140625, 0.0306854248046875, -0.021392822265625, 0.0291290283203125, 0.035369873046875, 0.0193634033203125, -0.0077667236328125, -0.0750732421875, -0.007396697998046875, 0.039764404296875, 0.0166473388671875, -0.0185699462890625, 0.024658203125, -0.0276641845703125, -0.0187225341796875, 0.02532958984375, 0.01042938232421875, -0.0267791748046875, 0.05316162109375, -0.024139404296875, -0.006175994873046875, 0.0274200439453125, 0.0029048919677734375, -0.0018148422241210938, -0.0007205009460449219, 0.00274658203125, 0.0037097930908203125, 0.0125885009765625, -0.005893707275390625, -0.01494598388671875, 0.0029735565185546875, 0.0189971923828125, -0.04486083984375, -0.004970550537109375, 0.0199737548828125, 0.0206756591796875, -0.0063323974609375, 0.0150299072265625, 0.004413604736328125, 0.03668212890625, 0.0054168701171875, -0.042327880859375, 0.01009368896484375, -0.03179931640625, 0.0151519775390625, 0.0208740234375, 0.0016326904296875, -0.034942626953125, 0.004608154296875, 0.0089111328125, 0.01776123046875, -0.004947662353515625, -0.02197265625, 0.01337432861328125, 0.008209228515625, -0.0196533203125, 0.0078582763671875, -0.039306640625, 0.0284423828125, 0.01018524169921875, 0.03106689453125, 0.040191650390625, 0.026336669921875, 0.00354766845703125, 0.017242431640625, 0.0117034912109375, -0.013519287109375, 0.0582275390625, 0.0006122589111328125, -0.0166015625, 0.03515625, -0.0008144378662109375, -0.01654052734375, -0.0035228729248046875, -0.0110626220703125, 0.00920867919921875, 0.05047607421875, -0.023712158203125, -0.0160980224609375, 0.0308074951171875, -0.0267181396484375, 0.043212890625, 0.043731689453125, 0.00403594970703125, 0.01776123046875, -0.04901123046875, 0.016357421875, -0.00540924072265625, -0.019287109375, 0.0131988525390625, -0.00634002685546875, -0.035491943359375, -0.0290069580078125, 0.0147857666015625, 0.041900634765625, 0.0260009765625, -0.032135009765625, -0.0144805908203125, -0.05169677734375, -0.00885009765625, 0.042022705078125, -0.058563232421875, 0.00372314453125, 0.00406646728515625, 0.035125732421875, -0.0003407001495361328, 0.0025157928466796875, -0.04730224609375, -0.0153045654296875, -0.01540374755859375, 0.0008006095886230469, 0.03729248046875, -0.037628173828125, 0.01177978515625, -0.00418853759765625, 0.01059722900390625, -0.004413604736328125, 0.0246124267578125, 0.0073699951171875, -0.006816864013671875, -0.0223541259765625, 0.01178741455078125, -0.036346435546875, 0.0030574798583984375, 0.020233154296875, -0.034820556640625, -0.0260162353515625, -0.044464111328125, 0.004665374755859375, 0.01380157470703125, -0.0003516674041748047, 0.00699615478515625, -0.0037097930908203125, 0.05487060546875, 0.00788116455078125, 0.06951904296875, -0.00016021728515625, -0.034393310546875, 0.01187896728515625, 0.0197601318359375, 0.0009694099426269531, -0.019500732421875, 0.01806640625, -0.045318603515625, 0.0096282958984375, -0.0799560546875, -0.000980377197265625, -0.00907135009765625, 0.0164031982421875, 0.056915283203125, 0.014312744140625, 0.005992889404296875, 0.004970550537109375, 0.0294647216796875, 0.006866455078125, 0.0011930465698242188, -0.02325439453125, 0.0195770263671875, 0.01214599609375, 0.017364501953125, -0.034271240234375, 0.012725830078125, 0.019439697265625, 0.0135955810546875, 0.004299163818359375, -0.01788330078125, -0.01331329345703125, 0.038238525390625, -0.0144500732421875, 0.04840087890625, 0.0870361328125, 0.02703857421875, 0.04119873046875, 0.04034423828125, 0.01483154296875, -0.00826263427734375, -0.007717132568359375, -0.035186767578125, -0.01018524169921875, -0.0116729736328125, -0.01172637939453125, -0.009002685546875, -0.0225677490234375, -0.0089874267578125, 0.0119171142578125, 0.0296783447265625, 0.041290283203125, -0.06341552734375, 0.0044403076171875, 0.01378631591796875, -0.026580810546875, -0.01186370849609375, -0.00580596923828125, 0.0299072265625, 0.00006943941116333008, 0.0352783203125, -0.01406097412109375, -0.01276397705078125, 0.0167083740234375, -0.015228271484375, -0.034454345703125, 0.0215301513671875, 0.0673828125, 0.020416259765625, -0.007190704345703125, -0.03619384765625, 0.041107177734375, -0.022003173828125, 0.032012939453125, 0.0015125274658203125, -0.004322052001953125, -0.031341552734375, -0.05828857421875, -0.04754638671875, -0.064697265625, -0.0491943359375, 0.0204315185546875, 0.040191650390625, 0.0015459060668945312, 0.03759765625, -0.01457977294921875, 0.0010833740234375, 0.010894775390625, -0.0709228515625, 0.032073974609375, -0.031280517578125, 0.00008803606033325195, 0.06439208984375, -0.041839599609375, 0.0257568359375, 0.007160186767578125, 0.01355743408203125, -0.0172882080078125, -0.01465606689453125, 0.08612060546875, -0.043975830078125, -0.01273345947265625, -0.0017023086547851562, 0.0218505859375, 0.0237884521484375, -0.00382232666015625, 0.01480865478515625, -0.09149169921875, -0.0816650390625, 0.005512237548828125, -0.07147216796875, -0.00914764404296875, -0.0198516845703125, -0.0806884765625, 0.09014892578125, 0.0250701904296875, 0.06298828125, -0.002590179443359375, 0.024932861328125, -0.03118896484375, 0.0011358261108398438, -0.019134521484375, -0.031829833984375, -0.08013916015625, 0.00879669189453125, -0.02911376953125, 0.03326416015625, -0.021728515625, 0.006587982177734375, 0.03314208984375, 0.00675201416015625, 0.0219879150390625, 0.01849365234375, 0.0357666015625, 0.018768310546875, -0.028778076171875, 0.0090484619140625, 0.007518768310546875, 0.00868988037109375, 0.0218353271484375, -0.0369873046875, 0.0202484130859375, 0.0003428459167480469, -0.01168060302734375, 0.0367431640625, 0.0149993896484375, 0.028900146484375, -0.011749267578125, -0.0164642333984375, -0.0216217041015625, -0.023223876953125, 0.016510009765625, -0.052642822265625, 0.04595947265625, 0.02862548828125, 0.03936767578125, 0.005817413330078125, 0.02044677734375, -0.0221099853515625, 0.045257568359375, -0.026153564453125, 0.00006639957427978516, 0.057586669921875, 0.00965118408203125, 0.042633056640625, 0.01302337646484375, 0.01067352294921875, 0.0189666748046875, 0.0257720947265625, 0.050933837890625, 0.01235198974609375, 0.035552978515625, -0.039398193359375, -0.007793426513671875, 0.00820159912109375, 0.05621337890625, -0.03668212890625, -0.023162841796875, 0.00408172607421875, -0.001529693603515625, -0.0029239654541015625, -0.01513671875, 0.00910186767578125, -0.09075927734375, -0.05718994140625, -0.00395965576171875, 0.0158233642578125, 0.050811767578125, -0.0171356201171875, 0.0023822784423828125, 0.04290771484375, -0.0345458984375, 0.01493072509765625, -0.03961181640625, 0.037628173828125, 0.0011653900146484375, 0.055389404296875, 0.00868988037109375, 0.0263824462890625, -0.01312255859375, 0.006069183349609375, -0.01201629638671875, -0.0243682861328125, 0.00624847412109375, -0.0014247894287109375, -0.0144195556640625, 0.034576416015625, -0.019134521484375, 0.0340576171875, 0.025115966796875, 0.0460205078125, 0.043243408203125, 0.031280517578125, 0.0266265869140625, 0.0090789794921875, 0.0296783447265625, 0.00005364418029785156, 0.04876708984375, -0.033782958984375, 0.02294921875, 0.0242156982421875, -0.01065826416015625, -0.03765869140625, -0.01479339599609375, 0.068359375, -0.011962890625, 0.0186920166015625, -0.0011491775512695312, -0.031341552734375, 0.034332275390625, -0.0006933212280273438, 0.03204345703125, -0.00514984130859375, -0.09442138671875, -0.0430908203125, 0.00015115737915039062, -0.0033130645751953125, 0.025665283203125, 0.03839111328125, -0.0211181640625, 0.046875, -0.0074310302734375, -0.012115478515625, -0.01068878173828125, 0.010223388671875, 0.00037479400634765625, -0.05474853515625, 0.0026912689208984375, -0.0369873046875, -0.078125, -0.045166015625, -0.02239990234375, 0.0045318603515625, 0.0178680419921875, 0.019195556640625, 0.03802490234375, 0.028289794921875, -0.00661468505859375, -0.03564453125, -0.00870513916015625, -0.00789642333984375, 0.01511383056640625, -0.0202178955078125, -0.04486083984375, -0.00705718994140625, -0.025787353515625, 0.039398193359375, 0.005191802978515625, 0.01727294921875, 0.0386962890625, -0.025726318359375, 0.006404876708984375, -0.00765228271484375, 0.017303466796875, -0.0170135498046875, -0.0305023193359375, -0.050872802734375, -0.0135650634765625, 0.0311279296875, 0.01201629638671875, -0.03497314453125, 0.047027587890625, 0.004817962646484375, -0.01314544677734375, 0.064697265625, -0.0753173828125, 0.08282470703125, 0.030029296875, -0.0062408447265625, -0.0142974853515625, -0.0143280029296875, -0.016326904296875, -0.0175323486328125, 0.00937652587890625, 0.0047454833984375, -0.032623291015625, -0.042724609375, 0.0285797119140625, -0.0038299560546875, 0.006221771240234375, -0.049468994140625, -0.024322509765625, 0.03948974609375, -0.007617950439453125, 0.004146575927734375, 0.0253448486328125, -0.0115509033203125, -0.00638580322265625, -0.005069732666015625, -0.0189208984375, 0.0496826171875, -0.0010385513305664062, 0.051666259765625, -0.0302886962890625, 0.0276336669921875, 0.03594970703125, -0.08447265625, 0.00807952880859375, 0.031768798828125, 0.041656494140625, -0.0088348388671875, -0.0177764892578125, -0.01105499267578125, 0.00926971435546875, -0.0159912109375, -0.021148681640625, -0.060638427734375, 0.017303466796875, -0.04315185546875, -0.0030879974365234375, 0.0133514404296875, 0.005123138427734375, 0.0186920166015625, -0.0357666015625, 0.00394439697265625, 0.00997161865234375, -0.03411865234375, -0.01708984375, -0.0011968612670898438, -0.01465606689453125, -0.03875732421875, -0.0281524658203125, 0.0538330078125, -0.1083984375, -0.047576904296875, 0.00650787353515625, -0.011199951171875, -0.01043701171875, -0.06494140625, -0.1334228515625, 0.0567626953125, -0.019378662109375, -0.0364990234375, 0.051910400390625, -0.0097198486328125, -0.01496124267578125, -0.0062255859375, 0.0171661376953125, -0.002254486083984375, -0.005950927734375, 0.005161285400390625, 0.034332275390625, 0.052703857421875, 0.005199432373046875, 0.04998779296875, 0.00991058349609375, 0.034820556640625, 0.005889892578125, 0.00794219970703125, 0.0222320556640625, -0.0296630859375, 0.01529693603515625, 0.0207977294921875, -0.037872314453125, -0.1014404296875, -0.013885498046875, -0.06005859375, -0.019317626953125, 0.004627227783203125, -0.005138397216796875, 0.01375579833984375, 0.051971435546875, 0.03167724609375, 0.00774383544921875, -0.044830322265625, 0.09124755859375, 0.012176513671875, -0.0280609130859375, 0.0132293701171875, -0.000614166259765625, -0.022430419921875, -0.047515869140625, 0.03289794921875, 0.01416778564453125, 0.0203857421875, -0.0241546630859375, -0.0016183853149414062, -0.00305938720703125, 0.00617218017578125, -0.028045654296875, 0.0014667510986328125, 0.0112152099609375, 0.10211181640625, -0.053070068359375, 0.0090179443359375, -0.00893402099609375, 0.005428314208984375, 0.052459716796875, -0.0184783935546875, 0.031585693359375, -0.0013399124145507812, 0.01137542724609375, 0.011322021484375, 0.041046142578125, 0.00795745849609375, 0.0062713623046875, -0.038116455078125, -0.01000213623046875, 0.034942626953125, -0.00814056396484375, 0.04852294921875, -0.0014801025390625, 0.02197265625, -0.007808685302734375, 0.0211029052734375, -0.030242919921875, 0.017364501953125, 0.0032958984375, -0.00914764404296875, -0.032470703125, 0.01520538330078125, 0.014068603515625, -0.0391845703125, 0.0183258056640625, 0.0013628005981445312, 0.0100860595703125, 0.012725830078125, -0.025909423828125, -0.0032100677490234375, -0.006561279296875, -0.01132965087890625 ]
ab3eb708c4eac54a24a8c7f048f0be125b2358b5
Wordpress Stackexchange Q: How to tell which database tables belongs to which multisite site I have a local multisite installation I use for development with a relatively large number of sites set up. Every site has its own numbered database tables (i.e. wp_n_links, wp_n_options, wp_n_postmeta etc.) Every time I need to look at a database table in phpMyAdmin I have to look through all the wp_n_options tables to find the tables for the site I need and with a lot of sites this can get a bit tedious! Is there a better way to find out which tables belong to which site? A: Look the wp_blogs table, theres "blog_id" and "path" to identify that. Does it help?
Q: How to tell which database tables belongs to which multisite site I have a local multisite installation I use for development with a relatively large number of sites set up. Every site has its own numbered database tables (i.e. wp_n_links, wp_n_options, wp_n_postmeta etc.) Every time I need to look at a database table in phpMyAdmin I have to look through all the wp_n_options tables to find the tables for the site I need and with a lot of sites this can get a bit tedious! Is there a better way to find out which tables belong to which site? A: Look the wp_blogs table, theres "blog_id" and "path" to identify that. Does it help? A: The number you refer to is the blog/site ID, so you have multiple methods of finding out which site it is: * *Look in the sites table, the number should match the ID, providing you with a URL and title *Go to example.com/wp-admin/network/site-info.php?id=insert-number-here and you'll be shown the network admin UI for that site *Consider a plugin or custom column in the sites area of the network admin that displays the blog ID
wordpress
{ "language": "en", "length": 189, "provenance": "stackexchange_00019.jsonl.gz:463428", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218581" }
[ 0.00577545166015625, 0.009368896484375, -0.0090789794921875, 0.0266265869140625, 0.01441192626953125, -0.0418701171875, 0.044403076171875, -0.0280609130859375, 0.00555419921875, 0.00981903076171875, -0.048065185546875, 0.00699615478515625, -0.036163330078125, -0.0096282958984375, -0.006072998046875, -0.056427001953125, 0.048309326171875, -0.016937255859375, 0.0310821533203125, 0.01078033447265625, -0.01322174072265625, 0.0404052734375, 0.0216827392578125, 0.022308349609375, 0.0228118896484375, -0.04681396484375, 0.043792724609375, 0.0012187957763671875, 0.0447998046875, 0.0174560546875, 0.04388427734375, -0.049346923828125, 0.0093994140625, -0.0292816162109375, 0.04302978515625, -0.003032684326171875, 0.01031494140625, -0.0106048583984375, 0.018341064453125, 0.01320648193359375, 0.01812744140625, -0.01264190673828125, 0.050323486328125, 0.00632476806640625, 0.019195556640625, -0.061370849609375, 0.05279541015625, -0.06787109375, -0.01024627685546875, -0.0377197265625, -0.01715087890625, 0.007320404052734375, 0.007488250732421875, -0.03997802734375, -0.01534271240234375, -0.030426025390625, 0.06475830078125, -0.039154052734375, 0.027008056640625, -0.032958984375, -0.0455322265625, 0.0268096923828125, 0.01922607421875, -0.005680084228515625, -0.03253173828125, 0.003398895263671875, 0.0689697265625, -0.01265716552734375, -0.007061004638671875, -0.051544189453125, -0.0005593299865722656, 0.0276947021484375, 0.0218353271484375, -0.01448822021484375, -0.0213623046875, -0.01509857177734375, 0.019683837890625, 0.0010919570922851562, 0.01947021484375, -0.0219573974609375, -0.0304107666015625, -0.02545166015625, -0.044830322265625, -0.0188446044921875, 0.0036220550537109375, 0.01079559326171875, -0.005474090576171875, -0.00098419189453125, -0.0240631103515625, -0.00823974609375, -0.005035400390625, -0.033782958984375, -0.035675048828125, 0.03765869140625, -0.00283050537109375, -0.019012451171875, 0.0355224609375, 0.068359375, -0.027923583984375, -0.04071044921875, 0.000621795654296875, -0.034637451171875, -0.046173095703125, -0.01490020751953125, 0.0228118896484375, 0.0694580078125, -0.01276397705078125, -0.054595947265625, 0.0213775634765625, 0.00217437744140625, 0.015899658203125, -0.01160430908203125, -0.0015430450439453125, -0.02178955078125, -0.0361328125, -0.0123443603515625, -0.03607177734375, 0.007564544677734375, 0.005878448486328125, -0.016265869140625, -0.027191162109375, 0.0036468505859375, -0.04803466796875, -0.004627227783203125, -0.01064300537109375, -0.045135498046875, -0.0023651123046875, 0.03814697265625, -0.0870361328125, 0.059906005859375, -0.045806884765625, 0.00844573974609375, 0.05615234375, 0.024658203125, -0.01361846923828125, -0.033660888671875, 0.042083740234375, 0.02313232421875, -0.01120758056640625, 0.017791748046875, 0.0252685546875, -0.028900146484375, -0.0235748291015625, -0.002994537353515625, -0.0294036865234375, 0.04443359375, 0.034637451171875, -0.00347900390625, -0.046661376953125, -0.05328369140625, -0.021240234375, 0.0223541259765625, 0.005603790283203125, 0.005306243896484375, 0.028289794921875, -0.046661376953125, 0.02154541015625, -0.033294677734375, 0.0288543701171875, -0.026641845703125, -0.01497650146484375, -0.0165557861328125, 0.041168212890625, -0.036773681640625, -0.037750244140625, 0.00652313232421875, -0.047698974609375, -0.0123138427734375, 0.031951904296875, 0.0010595321655273438, -0.048828125, -0.033233642578125, 0.06427001953125, 0.01021575927734375, -0.007434844970703125, 0.0615234375, -0.012237548828125, -0.044464111328125, 0.040252685546875, 0.037750244140625, -0.0004703998565673828, -0.0096893310546875, 0.0213165283203125, 0.01374053955078125, -0.06951904296875, 0.051055908203125, 0.0007548332214355469, 0.07537841796875, 0.0236663818359375, 0.00839996337890625, 0.038330078125, -0.0121917724609375, 0.0035839080810546875, -0.0104217529296875, 0.019866943359375, -0.0021533966064453125, -0.0236053466796875, 0.0134124755859375, 0.00148773193359375, -0.048553466796875, -0.03192138671875, 0.0183868408203125, 0.013580322265625, 0.01497650146484375, -0.0171661376953125, 0.0157928466796875, -0.0094146728515625, 0.0281524658203125, 0.00004029273986816406, -0.01102447509765625, 0.014617919921875, 0.0236663818359375, -0.0251312255859375, -0.038848876953125, -0.03363037109375, 0.047332763671875, -0.01406097412109375, -0.007312774658203125, -0.0149383544921875, -0.00594329833984375, -0.0396728515625, 0.008087158203125, -0.05419921875, 0.006244659423828125, 0.013885498046875, -0.007781982421875, -0.033966064453125, 0.0001875162124633789, 0.01189422607421875, 0.014495849609375, -0.01055908203125, 0.0216522216796875, 0.01480865478515625, 0.038543701171875, -0.0002856254577636719, 0.007678985595703125, 0.0426025390625, -0.037567138671875, 0.0171966552734375, 0.0118865966796875, 0.052154541015625, 0.0294036865234375, -0.0185089111328125, -0.055419921875, 0.0256500244140625, -0.08270263671875, -0.0026111602783203125, -0.0269927978515625, 0.019866943359375, 0.0845947265625, -0.037384033203125, 0.01462554931640625, 0.007476806640625, -0.0188751220703125, -0.041473388671875, 0.05865478515625, -0.0400390625, -0.0189666748046875, 0.0199127197265625, 0.006587982177734375, -0.0017805099487304688, -0.007617950439453125, 0.0136260986328125, -0.0213470458984375, 0.048187255859375, 0.01415252685546875, 0.0369873046875, 0.021270751953125, -0.0287628173828125, 0.033477783203125, 0.013519287109375, -0.045501708984375, -0.0005517005920410156, 0.0255126953125, 0.03619384765625, 0.0099334716796875, -0.03204345703125, -0.01390838623046875, 0.0066375732421875, 0.021331787109375, -0.040985107421875, 0.020904541015625, -0.04241943359375, -0.0260467529296875, -0.026702880859375, -0.04730224609375, -0.0002856254577636719, -0.01503753662109375, -0.057281494140625, -0.0231475830078125, 0.0161895751953125, 0.003879547119140625, -0.036590576171875, -0.00649261474609375, 0.01229095458984375, -0.01824951171875, 0.046844482421875, -0.0244903564453125, 0.029510498046875, -0.0214996337890625, -0.00958251953125, 0.048583984375, -0.00930023193359375, -0.00004649162292480469, -0.01239013671875, -0.00458526611328125, 0.0108642578125, -0.01776123046875, -0.0203704833984375, -0.00028252601623535156, -0.0821533203125, 0.0120391845703125, 0.006744384765625, 0.01422119140625, -0.007717132568359375, -0.0228118896484375, -0.005229949951171875, -0.00699615478515625, -0.06414794921875, -0.063720703125, -0.0292205810546875, 0.025482177734375, -0.0131683349609375, -0.0269012451171875, 0.03057861328125, -0.0010271072387695312, -0.044952392578125, -0.01061248779296875, 0.0211334228515625, -0.03143310546875, -0.05352783203125, -0.03192138671875, -0.063232421875, 0.00275421142578125, -0.0007486343383789062, 0.01080322265625, -0.01715087890625, 0.00995635986328125, -0.0192108154296875, -0.031097412109375, -0.04473876953125, -0.0287017822265625, -0.0010881423950195312, -0.057220458984375, -0.04168701171875, -0.0232391357421875, 0.01123046875, 0.00606536865234375, -0.00980377197265625, -0.0054931640625, 0.026824951171875, -0.0225372314453125, 0.053558349609375, 0.03594970703125, 0.062255859375, -0.0293121337890625, -0.06939697265625, 0.04901123046875, 0.00868988037109375, -0.0307159423828125, -0.0085601806640625, -0.02557373046875, -0.031829833984375, 0.0229644775390625, 0.0160064697265625, -0.0115966796875, -0.012176513671875, 0.0161590576171875, 0.06640625, 0.01232147216796875, -0.00027680397033691406, -0.004726409912109375, 0.006011962890625, 0.032928466796875, 0.048583984375, -0.0199127197265625, 0.0182037353515625, -0.034820556640625, -0.005733489990234375, -0.00787353515625, -0.0245208740234375, -0.0293426513671875, 0.01349639892578125, -0.026885986328125, -0.0238800048828125, 0.0211181640625, -0.0263519287109375, 0.048126220703125, -0.055023193359375, -0.0230865478515625, -0.033782958984375, 0.090087890625, -0.0037097930908203125, -0.0169525146484375, -0.02593994140625, 0.008209228515625, -0.042236328125, -0.039520263671875, -0.00756072998046875, 0.0012731552124023438, -0.0582275390625, -0.0270233154296875, -0.03173828125, -0.03851318359375, -0.01464080810546875, 0.02142333984375, -0.032440185546875, -0.038543701171875, 0.0178680419921875, -0.01496124267578125, -0.0028133392333984375, 0.031494140625, -0.0017576217651367188, 0.02239990234375, -0.0007839202880859375, -0.033172607421875, -0.06329345703125, -0.018035888671875, -0.043701171875, 0.050994873046875, 0.034454345703125, -0.02752685546875, -0.005596160888671875, 0.03668212890625, -0.01558685302734375, -0.01013946533203125, -0.0201416015625, 0.0212554931640625, -0.041717529296875, -0.0088958740234375, -0.0262451171875, -0.04010009765625, -0.0095977783203125, -0.05615234375, -0.04150390625, -0.01313018798828125, -0.006465911865234375, 0.04937744140625, -0.005268096923828125, -0.00510406494140625, 0.0007977485656738281, 0.0109405517578125, 0.004695892333984375, 0.025390625, -0.0309906005859375, 0.01363372802734375, 0.00445556640625, -0.0024471282958984375, 0.031982421875, 0.01043701171875, -0.01221466064453125, 0.02294921875, 0.046600341796875, 0.006622314453125, -0.0168914794921875, -0.094970703125, -0.01056671142578125, 0.0310821533203125, 0.0204925537109375, 0.050445556640625, 0.03173828125, -0.0205078125, 0.041717529296875, 0.025848388671875, -0.0217132568359375, -0.00679779052734375, 0.015899658203125, 0.0215606689453125, -0.0033664703369140625, -0.01413726806640625, -0.005641937255859375, 0.0274658203125, 0.02197265625, -0.00473785400390625, -0.0220184326171875, -0.0047607421875, 0.04034423828125, 0.0025196075439453125, -0.018218994140625, -0.047515869140625, -0.0013799667358398438, -0.00795745849609375, -0.020294189453125, 0.054351806640625, 0.036590576171875, -0.0182952880859375, 0.00875091552734375, 0.0240478515625, 0.01019287109375, 0.017791748046875, 0.045501708984375, -0.01122283935546875, 0.037139892578125, 0.0176849365234375, -0.0092926025390625, -0.02691650390625, -0.0280914306640625, 0.09368896484375, -0.0200042724609375, -0.0718994140625, 0.0469970703125, -0.037689208984375, 0.044677734375, 0.054534912109375, 0.002773284912109375, 0.031341552734375, 0.0009093284606933594, -0.051361083984375, -0.003299713134765625, -0.0185394287109375, -0.03692626953125, -0.0574951171875, -0.0242767333984375, -0.03265380859375, 0.004734039306640625, 0.0219573974609375, 0.04095458984375, -0.053466796875, 0.0479736328125, 0.0017271041870117188, 0.024993896484375, 0.018890380859375, 0.04302978515625, 0.01036834716796875, -0.0189666748046875, 0.00722503662109375, 0.0174713134765625, 0.0005612373352050781, -0.0286712646484375, 0.005344390869140625, 0.0167694091796875, 0.05670166015625, 0.040802001953125, -0.00994110107421875, -0.019317626953125, -0.047271728515625, -0.01470947265625, 0.0587158203125, 0.012359619140625, -0.07421875, -0.01329803466796875, 0.02520751953125, 0.02166748046875, -0.034576416015625, 0.01727294921875, -0.0155487060546875, -0.029937744140625, -0.0308837890625, 0.01500701904296875, -0.0389404296875, -0.039093017578125, -0.0093536376953125, -0.04608154296875, -0.035675048828125, -0.01206207275390625, -0.04254150390625, -0.0303955078125, 0.0133514404296875, -0.00881195068359375, -0.0204315185546875, -0.037750244140625, 0.051605224609375, -0.024627685546875, -0.017425537109375, -0.04168701171875, 0.0207672119140625, 0.0360107421875, 0.035125732421875, -0.0181121826171875, 0.00551605224609375, -0.025054931640625, -0.014892578125, 0.00284576416015625, -0.0278778076171875, -0.03729248046875, -0.0185394287109375, -0.021728515625, -0.00787353515625, -0.01401519775390625, 0.0005335807800292969, -0.0198211669921875, 0.0179901123046875, 0.0078277587890625, -0.050872802734375, -0.05255126953125, 0.10931396484375, -0.014190673828125, 0.056365966796875, 0.01120758056640625, 0.0634765625, -0.01092529296875, -0.005954742431640625, 0.021392822265625, -0.0703125, -0.032257080078125, -0.004322052001953125, -0.022735595703125, -0.00406646728515625, -0.0396728515625, -0.01409149169921875, 0.0194854736328125, -0.0279388427734375, 0.0009336471557617188, -0.0177154541015625, -0.0089874267578125, -0.042999267578125, 0.0195770263671875, 0.0021305084228515625, -0.03436279296875, 0.014068603515625, -0.0015993118286132812, -0.006069183349609375, 0.00803375244140625, -0.00887298583984375, -0.004985809326171875, 0.04010009765625, -0.0745849609375, 0.06768798828125, 0.0841064453125, 0.02020263671875, 0.054229736328125, 0.003849029541015625, 0.004344940185546875, 0.021453857421875, -0.004344940185546875, -0.00875091552734375, -0.01543426513671875, 0.0236358642578125, -0.006252288818359375, -0.011016845703125, 0.019805908203125, -0.0316162109375, -0.00778961181640625, -0.002349853515625, 0.0284271240234375, -0.014862060546875, 0.002399444580078125, 0.00801849365234375, -0.0084381103515625, -0.0111541748046875, -0.0262603759765625, -0.01490020751953125, -0.031707763671875, 0.0093536376953125, 0.0298309326171875, -0.034881591796875, -0.01290130615234375, 0.01117706298828125, -0.0118865966796875, -0.01611328125, 0.0115203857421875, 0.0069122314453125, 0.043121337890625, -0.0139923095703125, -0.032623291015625, 0.0274200439453125, -0.0015201568603515625, 0.004497528076171875, -0.0027332305908203125, -0.0014448165893554688, -0.01404571533203125, 0.027740478515625, -0.034027099609375, 0.004352569580078125, -0.0205078125, 0.0037326812744140625, 0.032073974609375, 0.044219970703125, -0.01129150390625, -0.014129638671875, 0.032623291015625, -0.006134033203125, -0.0254364013671875, 0.0207061767578125, 0.00830841064453125, -0.03411865234375, -0.010589599609375, -0.00391387939453125, -0.0782470703125, 0.00023448467254638672, -0.002391815185546875, -0.00601959228515625, 0.04498291015625, -0.056793212890625, 0.01220703125, 0.0367431640625, 0.04248046875, 0.00400543212890625, 0.004962921142578125, 0.008819580078125, -0.07318115234375, -0.06317138671875, 0.00907135009765625, -0.05242919921875, -0.00940704345703125, 0.01141357421875, -0.040985107421875, 0.0307159423828125, 0.01763916015625, -0.01885986328125, 0.005168914794921875, 0.01399993896484375, -0.025848388671875, -0.01007080078125, -0.0455322265625, 0.019622802734375, 0.0038700103759765625, 0.048736572265625, -0.044647216796875, 0.00391387939453125, 0.00646209716796875, 0.031585693359375, 0.033050537109375, 0.00638580322265625, -0.0283660888671875, -0.0312347412109375, 0.01806640625, 0.059356689453125, 0.0112457275390625, 0.0229644775390625, -0.007175445556640625, 0.056396484375, 0.039276123046875, -0.044464111328125, 0.0166473388671875, 0.041778564453125, -0.03570556640625, 0.0224456787109375, 0.017669677734375, 0.018585205078125, -0.027923583984375, -0.03204345703125, 0.0224609375, -0.01113128662109375, -0.01427459716796875, -0.025970458984375, 0.021453857421875, 0.01299285888671875, 0.0195159912109375, -0.05072021484375, 0.02764892578125, -0.035308837890625, 0.04266357421875, -0.01715087890625, 0.007030487060546875, 0.0235748291015625, 0.0156707763671875, 0.0212860107421875, 0.04559326171875, 0.0030612945556640625, 0.03857421875, 0.0022335052490234375, 0.07281494140625, 0.0303802490234375, 0.028778076171875, -0.06353759765625, -0.0673828125, 0.016265869140625, 0.09576416015625, -0.0226287841796875, -0.00634765625, 0.0223236083984375, -0.0033016204833984375, -0.0182342529296875, -0.0014429092407226562, 0.016448974609375, 0.0248870849609375, 0.038909912109375, -0.01030731201171875, -0.0274200439453125, -0.006832122802734375, 0.00823211669921875, -0.0039215087890625, 0.0238800048828125, 0.020477294921875, -0.035369873046875, -0.0285491943359375, 0.0312042236328125, 0.00977325439453125, 0.017578125, -0.012542724609375, 0.053009033203125, 0.002105712890625, 0.0038356781005859375, -0.024993896484375, 0.0311279296875, -0.0166168212890625, 0.031707763671875, -0.087158203125, -0.07147216796875, 0.050750732421875, 0.0721435546875, 0.05853271484375, 0.005931854248046875, 0.0467529296875, 0.017181396484375, -0.006011962890625, 0.02081298828125, 0.0176239013671875, -0.0102996826171875, 0.0277862548828125, -0.06048583984375, 0.035919189453125, 0.0019435882568359375, -0.004558563232421875, -0.0029735565185546875, 0.0248870849609375, 0.0144195556640625, -0.019287109375, 0.0389404296875, 0.005779266357421875, -0.002231597900390625, 0.0014638900756835938, 0.01178741455078125, 0.006816864013671875, 0.0186920166015625, -0.03314208984375, -0.0227508544921875, -0.01654052734375, -0.00286102294921875, -0.004184722900390625, 0.038299560546875, 0.0289764404296875, -0.0262603759765625, -0.006866455078125, -0.011566162109375, 0.00919342041015625, 0.003971099853515625, -0.007198333740234375, 0.0207366943359375, 0.0301666259765625, 0.0035533905029296875, -0.03717041015625, -0.0196380615234375, 0.000007867813110351562, 0.01171112060546875, 0.0005774497985839844, 0.047088623046875, 0.0036163330078125, 0.02392578125, 0.026123046875, 0.0233306884765625, -0.005645751953125, -0.011322021484375, 0.04827880859375, -0.00421142578125, 0.015899658203125, -0.0198211669921875, -0.04302978515625, 0.0237274169921875, 0.034149169921875, -0.031280517578125, 0.01255035400390625, -0.011810302734375, 0.00936126708984375, -0.01568603515625, -0.0025653839111328125, -0.0258331298828125, 0.013885498046875, 0.0203857421875, -0.02374267578125, 0.037109375, 0.0127105712890625, 0.0372314453125, 0.017547607421875, 0.019989013671875, -0.025543212890625, 0.02325439453125, -0.022705078125, 0.0257720947265625, 0.0384521484375, 0.0198516845703125, -0.036224365234375, 0.023712158203125, 0.0007138252258300781, 0.00047016143798828125, 0.0233306884765625, 0.03472900390625, 0.026763916015625, 0.0183868408203125, 0.0382080078125, 0.0816650390625, 0.07183837890625, 0.0175018310546875, 0.04132080078125, 0.0396728515625, -0.0155181884765625, 0.036895751953125, -0.01873779296875, -0.03912353515625, -0.0555419921875, 0.0224609375, 0.0174407958984375, -0.01010894775390625, 0.015167236328125, -0.004505157470703125, -0.0197601318359375, 0.05316162109375, 0.00027489662170410156, -0.039093017578125, 0.029510498046875, -0.045501708984375, 0.0022907257080078125, 0.0079193115234375, -0.038726806640625, -0.0015163421630859375, 0.01194000244140625, 0.004314422607421875, -0.0098876953125, -0.029998779296875, 0.0091705322265625, 0.0093231201171875, 0.0302581787109375, 0.0225982666015625, -0.0357666015625, 0.041259765625, 0.039703369140625, 0.04150390625, 0.077880859375, 0.0269775390625, -0.025390625, 0.0309295654296875, -0.0269775390625, -0.0189666748046875, -0.051361083984375, 0.007472991943359375, -0.09283447265625, -0.0012950897216796875, -0.04986572265625, 0.0032482147216796875, -0.00958251953125, -0.053863525390625, -0.057098388671875, 0.1043701171875, -0.033599853515625, -0.00994110107421875, -0.053985595703125, -0.0261383056640625, -0.0137481689453125, 0.014801025390625, -0.01715087890625, 0.000736236572265625, -0.020355224609375, 0.053741455078125, 0.01018524169921875, -0.0015926361083984375, 0.021209716796875, 0.01058197021484375, -0.050994873046875, 0.0211029052734375, 0.009429931640625, 0.0029773712158203125, 0.045654296875, -0.0224151611328125, 0.02642822265625, 0.054290771484375, -0.0206298828125, -0.051544189453125, -0.035369873046875, -0.049224853515625, 0.0050506591796875, -0.016357421875, -0.0382080078125, -0.0338134765625, 0.07763671875, 0.051055908203125, 0.033599853515625, -0.024749755859375, -0.012481689453125, -0.0193634033203125, -0.05621337890625, -0.0322265625, 0.026885986328125, -0.061767578125, 0.0037097930908203125, -0.02386474609375, -0.029632568359375, 0.0290679931640625, 0.022064208984375, -0.035247802734375, 0.0279388427734375, 0.00965118408203125, -0.03497314453125, -0.0302886962890625, 0.00749969482421875, 0.0088043212890625, -0.0282745361328125, -0.0283050537109375, -0.0195159912109375, 0.00897979736328125, -0.036376953125, -0.04083251953125, -0.00875091552734375, -0.0213775634765625, -0.01556396484375, 0.022552490234375, -0.01262664794921875, 0.006885528564453125, -0.0175323486328125, -0.027191162109375, 0.0009288787841796875, 0.018798828125, -0.00933074951171875, 0.021575927734375, 0.0171661376953125, 0.0174713134765625, -0.0018825531005859375, 0.0222625732421875, 0.01338958740234375, 0.022003173828125, -0.030029296875, 0.0731201171875, -0.009246826171875, -0.039794921875, 0.000016391277313232422, -0.039306640625, -0.01404571533203125, 0.01468658447265625, 0.002201080322265625, -0.07781982421875, 0.0489501953125, 0.0283050537109375, 0.03887939453125, 0.033203125 ]
d13857446debeb2f2eb5f89430811cb1a49d88da
Wordpress Stackexchange Q: Give priority to child theme stylesheet I've created a child theme and the main style.css works perfectly fine. However, the parent theme has another stylesheet which I want to import and create the same for child theme and use it instead. Parent theme structure - ./woocommerce/woo.css Child theme structure - ./woocommerce/woo.css (Manually created) Now, I enqueued both the stylesheets in the child theme's function.php as below. function fruitful_load_parent_stylesheets() { wp_enqueue_style( 'layout', get_template_directory_uri() . '/woocommerce/woo.css' ); } add_action( 'wp_enqueue_scripts', 'fruitful_load_parent_stylesheets' ); function fruitful_load_child_stylesheets(){ wp_enqueue_style( 'woo', get_stylesheet_directory_uri() . '/woocommerce/woo.css'); } add_action('wp_enqueue_scripts', 'fruitful_load_child_stylesheets'); Now, if I add a style to the child theme's woo.css, it doesn't work until I !important it.I just don't want to go doing it on every style I add. is A: Perhaps you can try adding a priority value to each add_action to make sure that one executes before the other. add_action( 'wp_enqueue_scripts', 'fruitful_load_parent_stylesheets', 10 ); add_action('wp_enqueue_scripts', 'fruitful_load_child_stylesheets', 20 ); WordPress Codex add_action()
Q: Give priority to child theme stylesheet I've created a child theme and the main style.css works perfectly fine. However, the parent theme has another stylesheet which I want to import and create the same for child theme and use it instead. Parent theme structure - ./woocommerce/woo.css Child theme structure - ./woocommerce/woo.css (Manually created) Now, I enqueued both the stylesheets in the child theme's function.php as below. function fruitful_load_parent_stylesheets() { wp_enqueue_style( 'layout', get_template_directory_uri() . '/woocommerce/woo.css' ); } add_action( 'wp_enqueue_scripts', 'fruitful_load_parent_stylesheets' ); function fruitful_load_child_stylesheets(){ wp_enqueue_style( 'woo', get_stylesheet_directory_uri() . '/woocommerce/woo.css'); } add_action('wp_enqueue_scripts', 'fruitful_load_child_stylesheets'); Now, if I add a style to the child theme's woo.css, it doesn't work until I !important it.I just don't want to go doing it on every style I add. is A: Perhaps you can try adding a priority value to each add_action to make sure that one executes before the other. add_action( 'wp_enqueue_scripts', 'fruitful_load_parent_stylesheets', 10 ); add_action('wp_enqueue_scripts', 'fruitful_load_child_stylesheets', 20 ); WordPress Codex add_action() A: Your child theme's stylesheet will usually be loaded automatically. If it is not, you will need to enqueue it as well. Setting 'parent-style' as a dependency will ensure that the child theme stylesheet loads after it. /** * Enqueue theme styles (parent first, child second) * */ function wpse218610_theme_styles() { $parent_style = 'parent-style'; wp_enqueue_style( $parent_style, get_template_directory_uri() . '/woocommerce/woo.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/woocommerce/woo.css', array( $parent_style ) ); } add_action( 'wp_enqueue_scripts', 'wpse218610_theme_styles' ); Note: take a look in the Theme Developer Handbook for some extra information. A: I got to load child theme later like below. I had to dequeue & deregister parent style, then enqueue parent style & child style. Hope this helps Parent functions.php has add_action('wp_enqueue_scripts', 'load_parent_style', 10); function load_parent_style() { wp_enqueue_style('parent-theme-style'); // parent theme code } Child functions.php has add_action('wp_enqueue_scripts', 'load_child_style', 20); function load_child_style() { //register & enqueue parent with new name wp_register_style('parent-style', $url, array($deps)); wp_enqueue_style('parent-style'); // dequeue & deregister parent's theme handle wp_dequeue_style('parent-theme-style'); // from parent theme wp_deregister_style('parent-theme-style'); // register & enqueue child style wp_register_style('child-style', get_stylesheet_uri(), array('parent-style')); wp_enqueue_style('child-style'); }
wordpress
{ "language": "en", "length": 329, "provenance": "stackexchange_00019.jsonl.gz:463437", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218610" }
[ 0.0083770751953125, -0.0019235610961914062, -0.037750244140625, -0.049285888671875, -0.0009584426879882812, -0.0259552001953125, -0.0263519287109375, 0.003826141357421875, -0.0404052734375, 0.0225372314453125, -0.059356689453125, 0.0262908935546875, -0.028839111328125, 0.0079193115234375, 0.002880096435546875, -0.05059814453125, 0.0289306640625, -0.02117919921875, 0.0189056396484375, -0.0035762786865234375, -0.01837158203125, 0.0029144287109375, 0.039581298828125, 0.043426513671875, 0.033538818359375, -0.07232666015625, 0.07110595703125, -0.0001933574676513672, 0.041656494140625, -0.00817108154296875, 0.027130126953125, -0.031494140625, 0.0205078125, 0.01169586181640625, -0.004467010498046875, -0.032257080078125, 0.059539794921875, -0.0268402099609375, -0.01352691650390625, 0.05181884765625, 0.0228271484375, -0.004123687744140625, -0.01169586181640625, 0.0298919677734375, -0.0287322998046875, -0.037445068359375, 0.0018854141235351562, -0.029937744140625, 0.0063018798828125, -0.0023403167724609375, 0.01461029052734375, 0.0196075439453125, 0.0270843505859375, -0.014801025390625, -0.00450897216796875, 0.0102996826171875, -0.0261688232421875, 0.031097412109375, 0.0203094482421875, -0.010223388671875, -0.0106201171875, 0.019256591796875, 0.00913238525390625, -0.0003154277801513672, 0.03253173828125, -0.0003769397735595703, 0.0214691162109375, 0.0216522216796875, -0.0494384765625, 0.03277587890625, 0.039215087890625, -0.040679931640625, -0.0212554931640625, -0.021484375, -0.050384521484375, 0.00330352783203125, 0.00010877847671508789, -0.049102783203125, 0.0310211181640625, -0.0232086181640625, -0.015228271484375, -0.039642333984375, -0.040374755859375, -0.05523681640625, 0.035919189453125, -0.0214691162109375, -0.004810333251953125, 0.015838623046875, -0.04229736328125, -0.041778564453125, -0.0399169921875, -0.01806640625, -0.036865234375, -0.0239105224609375, -0.0146331787109375, -0.007556915283203125, 0.039154052734375, 0.06597900390625, -0.01195526123046875, 0.0173492431640625, -0.007656097412109375, -0.043914794921875, 0.044647216796875, -0.045867919921875, -0.006591796875, 0.007289886474609375, 0.01148223876953125, 0.0287933349609375, 0.038360595703125, 0.03350830078125, 0.0084075927734375, 0.02899169921875, 0.002834320068359375, -0.004123687744140625, -0.008026123046875, -0.014068603515625, -0.032623291015625, 0.01294708251953125, -0.00991058349609375, -0.018280029296875, 0.003314971923828125, 0.028839111328125, -0.01189422607421875, -0.02178955078125, -0.01214599609375, -0.0182647705078125, -0.0037479400634765625, -0.0298919677734375, 0.021942138671875, 0.01806640625, -0.0310821533203125, -0.002197265625, 0.026947021484375, 0.03338623046875, 0.0162353515625, -0.0166015625, 0.037689208984375, -0.038330078125, -0.015899658203125, -0.0196533203125, 0.03192138671875, -0.01107025146484375, -0.01470184326171875, 0.0013055801391601562, 0.001430511474609375, 0.01319122314453125, 0.0193939208984375, 0.0181427001953125, -0.003902435302734375, -0.0308074951171875, 0.033172607421875, -0.0249481201171875, 0.039825439453125, -0.0024394989013671875, 0.0187530517578125, -0.0188140869140625, 0.0168914794921875, -0.0130615234375, -0.00954437255859375, -0.0186614990234375, -0.044342041015625, 0.0096893310546875, 0.0489501953125, -0.0494384765625, -0.032928466796875, -0.0224609375, -0.02728271484375, -0.01088714599609375, 0.032867431640625, -0.017059326171875, 0.01483917236328125, -0.0301361083984375, 0.000038683414459228516, 0.0200042724609375, 0.0084991455078125, 0.052459716796875, -0.0197906494140625, 0.01177215576171875, 0.04425048828125, 0.00807952880859375, -0.0273590087890625, -0.035430908203125, 0.07025146484375, -0.0244140625, 0.004161834716796875, -0.0290069580078125, 0.0089263916015625, -0.002780914306640625, 0.007297515869140625, 0.0361328125, -0.0330810546875, -0.0012922286987304688, -0.0249176025390625, -0.0157928466796875, 0.0181121826171875, -0.0099029541015625, 0.01201629638671875, 0.00624847412109375, 0.010650634765625, -0.005260467529296875, 0.0005879402160644531, -0.00954437255859375, 0.036529541015625, -0.0311126708984375, -0.007022857666015625, -0.01078033447265625, -0.01910400390625, 0.0287628173828125, -0.0178985595703125, -0.003284454345703125, 0.007724761962890625, 0.001331329345703125, 0.0089569091796875, -0.07769775390625, -0.017333984375, 0.046600341796875, -0.00036406517028808594, 0.07550048828125, 0.0265045166015625, 0.045196533203125, 0.032012939453125, -0.0238037109375, 0.0280609130859375, -0.006954193115234375, 0.0009121894836425781, 0.04736328125, -0.0235137939453125, 0.02227783203125, 0.0010519027709960938, 0.05224609375, -0.004131317138671875, -0.0015468597412109375, 0.037506103515625, 0.0511474609375, -0.03839111328125, -0.0122528076171875, -0.01910400390625, -0.0128631591796875, 0.00788116455078125, 0.030853271484375, 0.028228759765625, 0.026336669921875, -0.0027561187744140625, 0.01514434814453125, 0.053955078125, -0.01018524169921875, 0.01495361328125, 0.003612518310546875, -0.0026798248291015625, 0.01580810546875, -0.004730224609375, -0.0010633468627929688, 0.0164337158203125, -0.07281494140625, 0.0189971923828125, 0.0343017578125, -0.0209197998046875, -0.04656982421875, 0.001422882080078125, 0.0120086669921875, 0.033111572265625, -0.0011043548583984375, -0.050506591796875, 0.01485443115234375, 0.0185089111328125, -0.00746917724609375, 0.0055999755859375, -0.0220489501953125, -0.005420684814453125, 0.0023784637451171875, 0.02069091796875, -0.06744384765625, 0.016448974609375, 0.0164031982421875, -0.00855255126953125, -0.0239410400390625, -0.00733184814453125, 0.001201629638671875, -0.0182647705078125, -0.01436614990234375, 0.01013946533203125, 0.01519012451171875, -0.022979736328125, -0.002887725830078125, 0.0096588134765625, -0.0158843994140625, -0.000507354736328125, 0.042694091796875, 0.0059051513671875, 0.0031585693359375, 0.0198822021484375, 0.0390625, 0.0019140243530273438, 0.00867462158203125, 0.0215911865234375, -0.00797271728515625, 0.01331329345703125, 0.032867431640625, 0.005245208740234375, -0.01094818115234375, -0.00589752197265625, 0.0160064697265625, -0.016876220703125, -0.0082855224609375, 0.0120849609375, -0.025848388671875, 0.0074615478515625, 0.008758544921875, 0.00553131103515625, -0.0038604736328125, -0.042327880859375, 0.039947509765625, 0.048248291015625, 0.0751953125, 0.0183868408203125, -0.037353515625, 0.024993896484375, 0.05072021484375, -0.01126861572265625, -0.08056640625, -0.0457763671875, -0.0638427734375, 0.0254058837890625, -0.04827880859375, -0.017913818359375, 0.0020580291748046875, -0.04681396484375, 0.0293121337890625, -0.027313232421875, -0.03741455078125, 0.01192474365234375, -0.07000732421875, -0.04058837890625, -0.028228759765625, 0.0210113525390625, -0.005279541015625, 0.0013866424560546875, 0.031646728515625, -0.00506591796875, -0.036041259765625, -0.01416015625, 0.0247039794921875, -0.01049041748046875, -0.017120361328125, 0.007778167724609375, -0.0352783203125, -0.0080108642578125, 0.010711669921875, 0.018096923828125, 0.003894805908203125, -0.0175933837890625, 0.0017137527465820312, -0.03216552734375, 0.00431060791015625, -0.011138916015625, 0.035125732421875, 0.037200927734375, -0.0036716461181640625, 0.018310546875, -0.035003662109375, -0.05267333984375, -0.0035877227783203125, -0.048828125, 0.059051513671875, 0.05328369140625, -0.006771087646484375, -0.019927978515625, 0.0189056396484375, 0.035308837890625, 0.008636474609375, 0.04339599609375, -0.0012607574462890625, 0.064208984375, -0.01739501953125, -0.0187225341796875, -0.07513427734375, 0.040740966796875, 0.002292633056640625, 0.019744873046875, 0.0236968994140625, 0.040283203125, -0.0030918121337890625, 0.016265869140625, -0.048095703125, -0.0259552001953125, -0.007404327392578125, -0.06396484375, 0.051544189453125, -0.0701904296875, -0.003757476806640625, -0.0302886962890625, 0.08544921875, -0.05810546875, -0.030914306640625, 0.01031494140625, 0.048828125, -0.06256103515625, -0.058074951171875, -0.01580810546875, -0.00399017333984375, -0.072998046875, -0.0001976490020751953, -0.004108428955078125, -0.032196044921875, 0.01270294189453125, -0.0234832763671875, -0.046630859375, -0.044891357421875, 0.02081298828125, -0.00217437744140625, -0.02978515625, 0.048492431640625, -0.06976318359375, 0.0467529296875, -0.0152587890625, -0.0159759521484375, -0.0762939453125, -0.014495849609375, -0.021881103515625, 0.056671142578125, 0.0047760009765625, 0.0374755859375, -0.014739990234375, 0.059844970703125, 0.0003933906555175781, 0.060760498046875, -0.01538848876953125, 0.007904052734375, -0.01340484619140625, -0.006557464599609375, 0.007579803466796875, -0.0190887451171875, -0.0092926025390625, 0.0042572021484375, -0.0491943359375, -0.0004050731658935547, -0.01157379150390625, -0.01052093505859375, 0.052276611328125, -0.035430908203125, -0.0810546875, -0.033447265625, -0.002262115478515625, -0.0207977294921875, 0.0204010009765625, -0.038116455078125, -0.0279541015625, -0.0531005859375, 0.015655517578125, -0.03857421875, -0.005764007568359375, -0.0015592575073242188, 0.05401611328125, 0.03472900390625, -0.00727081298828125, 0.01885986328125, -0.0008153915405273438, 0.01432037353515625, 0.03302001953125, 0.016357421875, -0.0289459228515625, -0.0187225341796875, 0.0301055908203125, 0.00901031494140625, 0.00640106201171875, 0.031585693359375, 0.050201416015625, 0.00122833251953125, -0.038055419921875, 0.0181884765625, 0.0094146728515625, -0.053619384765625, 0.0223388671875, -0.00881195068359375, -0.01776123046875, -0.006748199462890625, 0.01202392578125, 0.00756072998046875, -0.00464630126953125, -0.0325927734375, 0.0067901611328125, -0.0183868408203125, -0.031890869140625, 0.081298828125, 0.049102783203125, -0.01500701904296875, 0.0188751220703125, 0.01531219482421875, 0.0162200927734375, -0.006175994873046875, 0.02801513671875, -0.0110321044921875, 0.0303497314453125, 0.03826904296875, 0.0167236328125, -0.00856781005859375, -0.01214599609375, 0.074951171875, 0.01861572265625, 0.005542755126953125, -0.0499267578125, -0.00251007080078125, 0.03466796875, -0.017181396484375, -0.0126953125, 0.0496826171875, -0.00927734375, -0.01404571533203125, -0.034149169921875, -0.041473388671875, -0.0086517333984375, -0.058929443359375, 0.025054931640625, 0.002208709716796875, -0.0178375244140625, 0.012054443359375, -0.009185791015625, 0.01439666748046875, -0.01239013671875, -0.00901031494140625, -0.030364990234375, -0.027984619140625, 0.023773193359375, 0.0291595458984375, -0.0238189697265625, 0.037261962890625, -0.02191162109375, 0.07550048828125, -0.01568603515625, -0.00017058849334716797, 0.0244598388671875, 0.035400390625, -0.0321044921875, -0.0198516845703125, 0.018768310546875, -0.014373779296875, -0.0419921875, -0.0169525146484375, 0.004344940185546875, 0.011260986328125, -0.006969451904296875, -0.0050201416015625, 0.00627899169921875, 0.062469482421875, -0.03277587890625, 0.0374755859375, -0.0321044921875, 0.032684326171875, 0.062103271484375, -0.027069091796875, 0.036773681640625, 0.01175689697265625, -0.010406494140625, 0.005908966064453125, 0.009765625, -0.0298004150390625, -0.044219970703125, -0.00937652587890625, -0.007476806640625, 0.03814697265625, -0.022857666015625, 0.0357666015625, -0.01209259033203125, -0.037017822265625, -0.057373046875, 0.024444580078125, 0.0416259765625, 0.0310821533203125, 0.0357666015625, -0.00131988525390625, -0.04559326171875, -0.041351318359375, -0.0855712890625, -0.0391845703125, -0.03192138671875, 0.0172576904296875, -0.033477783203125, -0.01143646240234375, -0.036285400390625, -0.0239105224609375, -0.043121337890625, 0.037322998046875, 0.03662109375, -0.012939453125, -0.037261962890625, 0.08111572265625, -0.009307861328125, -0.0040283203125, 0.00652313232421875, 0.025726318359375, -0.01329803466796875, 0.018798828125, -0.021209716796875, -0.0250244140625, 0.01494598388671875, -0.0262451171875, -0.004730224609375, 0.03472900390625, 0.09576416015625, 0.0153961181640625, 0.064697265625, -0.029296875, 0.0013074874877929688, -0.0137939453125, -0.007762908935546875, -0.06500244140625, -0.0041961669921875, 0.043975830078125, -0.004131317138671875, 0.0171356201171875, -0.0103607177734375, -0.0218505859375, 0.0384521484375, -0.00643157958984375, 0.0550537109375, -0.021820068359375, -0.055816650390625, 0.06683349609375, -0.0009212493896484375, -0.0183563232421875, 0.00986480712890625, -0.022247314453125, 0.00736236572265625, -0.009063720703125, 0.040374755859375, -0.009490966796875, -0.0300140380859375, 0.056610107421875, 0.01161956787109375, 0.002685546875, 0.0311279296875, -0.0207366943359375, 0.00040721893310546875, 0.047821044921875, 0.0389404296875, -0.06378173828125, -0.0184326171875, -0.030181884765625, -0.03741455078125, 0.018798828125, -0.01548004150390625, 0.0029468536376953125, -0.0009341239929199219, 0.051910400390625, 0.0264129638671875, -0.004913330078125, 0.040924072265625, -0.0152130126953125, -0.0053253173828125, -0.01540374755859375, -0.037841796875, -0.0182952880859375, -0.0635986328125, -0.0294952392578125, 0.050140380859375, -0.047698974609375, -0.008270263671875, 0.01404571533203125, -0.01284027099609375, -0.0199127197265625, -0.030975341796875, 0.0027408599853515625, -0.0180206298828125, -0.00730133056640625, 0.016357421875, 0.009429931640625, 0.0024929046630859375, 0.051910400390625, -0.030120849609375, 0.0306396484375, 0.00791168212890625, 0.0166473388671875, -0.010833740234375, -0.02032470703125, 0.03375244140625, -0.047454833984375, -0.059051513671875, 0.0169525146484375, -0.04998779296875, -0.03167724609375, -0.004497528076171875, 0.009307861328125, 0.0300750732421875, -0.03155517578125, -0.007671356201171875, 0.0302581787109375, 0.04217529296875, -0.00970458984375, -0.007282257080078125, 0.030120849609375, -0.0535888671875, -0.044464111328125, 0.016326904296875, -0.0264739990234375, -0.045135498046875, -0.02935791015625, -0.068603515625, 0.06817626953125, -0.03839111328125, 0.043365478515625, 0.0252532958984375, 0.0251312255859375, -0.037384033203125, -0.0210418701171875, -0.0186767578125, 0.059356689453125, 0.0296630859375, -0.01450347900390625, -0.037872314453125, -0.00800323486328125, -0.00966644287109375, 0.0268096923828125, 0.023040771484375, -0.007289886474609375, -0.05657958984375, 0.0186309814453125, 0.1156005859375, 0.037689208984375, 0.031646728515625, 0.049652099609375, -0.024200439453125, -0.06585693359375, -0.03411865234375, 0.004627227783203125, 0.016998291015625, -0.04779052734375, -0.035919189453125, -0.0084228515625, -0.01358795166015625, -0.0307159423828125, 0.00942230224609375, 0.057708740234375, -0.06573486328125, 0.01605224609375, 0.054412841796875, -0.0225830078125, -0.004207611083984375, 0.011016845703125, 0.00005841255187988281, 0.020782470703125, -0.038665771484375, -0.0007381439208984375, 0.0192108154296875, 0.002452850341796875, 0.0019130706787109375, -0.0262298583984375, 0.005214691162109375, 0.0082244873046875, 0.004100799560546875, 0.0024166107177734375, 0.058319091796875, -0.044342041015625, 0.0094757080078125, 0.01479339599609375, 0.03509521484375, 0.02532958984375, 0.047698974609375, -0.038848876953125, -0.016082763671875, -0.02777099609375, 0.01178741455078125, 0.0216522216796875, -0.0005426406860351562, -0.009368896484375, -0.0399169921875, -0.0007634162902832031, -0.053802490234375, -0.050933837890625, -0.05169677734375, 0.0018854141235351562, 0.01690673828125, 0.017242431640625, -0.0107879638671875, 0.0323486328125, -0.037139892578125, -0.003936767578125, -0.0265045166015625, 0.00618743896484375, -0.0070037841796875, 0.036468505859375, 0.005344390869140625, 0.055511474609375, -0.037384033203125, -0.018768310546875, -0.0294036865234375, 0.006710052490234375, 0.00213623046875, 0.025299072265625, 0.005916595458984375, 0.048126220703125, -0.01250457763671875, 0.022918701171875, 0.0278167724609375, 0.024505615234375, 0.07598876953125, 0.042022705078125, -0.04473876953125, -0.0081939697265625, 0.00864410400390625, -0.0159912109375, -0.003894805908203125, -0.006839752197265625, 0.01137542724609375, 0.00859832763671875, -0.007305145263671875, -0.016143798828125, 0.033203125, 0.02764892578125, -0.0152130126953125, 0.021484375, 0.007183074951171875, -0.00714874267578125, 0.004940032958984375, 0.03411865234375, 0.0042877197265625, 0.03326416015625, -0.0633544921875, -0.04150390625, -0.01415252685546875, 0.05145263671875, 0.0186309814453125, 0.02728271484375, 0.0169677734375, 0.0207061767578125, 0.039276123046875, -0.052947998046875, -0.005847930908203125, 0.044342041015625, 0.0105743408203125, 0.0208282470703125, 0.006290435791015625, 0.016876220703125, -0.041656494140625, -0.01361083984375, -0.02423095703125, 0.01212310791015625, 0.01505279541015625, 0.058074951171875, -0.00899505615234375, 0.0190277099609375, 0.03436279296875, -0.0177001953125, 0.037689208984375, -0.00722503662109375, 0.0599365234375, -0.0169830322265625, -0.01568603515625, -0.01593017578125, -0.058319091796875, -0.014801025390625, 0.03564453125, 0.00025391578674316406, -0.01763916015625, -0.0028400421142578125, 0.033905029296875, 0.014434814453125, 0.011077880859375, -0.040863037109375, -0.03863525390625, -0.052734375, -0.0015316009521484375, -0.000003159046173095703, -0.03863525390625, -0.03662109375, 0.002399444580078125, 0.0364990234375, -0.0296173095703125, 0.037994384765625, 0.00038313865661621094, 0.054351806640625, 0.03173828125, 0.0225830078125, -0.04180908203125, 0.0391845703125, -0.004047393798828125, 0.0063323974609375, 0.0212554931640625, 0.043426513671875, 0.027191162109375, -0.07275390625, 0.033843994140625, 0.07293701171875, 0.042236328125, -0.04217529296875, 0.0237579345703125, 0.0943603515625, -0.05169677734375, 0.038177490234375, -0.038482666015625, -0.028839111328125, -0.047760009765625, 0.02838134765625, 0.0093536376953125, 0.029022216796875, 0.00823211669921875, 0.027099609375, 0.01322174072265625, 0.047027587890625, 0.005855560302734375, -0.049346923828125, 0.0357666015625, -0.0299224853515625, 0.048065185546875, 0.005809783935546875, 0.019500732421875, 0.003582000732421875, -0.0287933349609375, -0.060333251953125, -0.0226287841796875, -0.0404052734375, 0.01541900634765625, -0.0416259765625, -0.0000908970832824707, 0.0234375, -0.00164031982421875, 0.033294677734375, -0.0296783447265625, -0.00853729248046875, 0.03680419921875, -0.0289459228515625, -0.03192138671875, 0.019256591796875, -0.0167388916015625, 0.003910064697265625, -0.045867919921875, 0.00510406494140625, -0.0706787109375, -0.00565338134765625, -0.0209503173828125, -0.01284027099609375, 0.00014603137969970703, -0.045623779296875, -0.050323486328125, 0.06329345703125, -0.0052490234375, -0.0307464599609375, -0.032867431640625, 0.004306793212890625, -0.036712646484375, 0.0276641845703125, 0.00418853759765625, -0.0252838134765625, 0.004482269287109375, 0.061767578125, -0.0088958740234375, 0.001995086669921875, -0.004055023193359375, -0.034698486328125, -0.048858642578125, 0.02203369140625, 0.03717041015625, 0.01068115234375, -0.03680419921875, 0.007602691650390625, 0.014678955078125, 0.0173797607421875, -0.0138397216796875, 0.01087188720703125, 0.050628662109375, -0.0009145736694335938, 0.006740570068359375, 0.030303955078125, -0.020355224609375, 0.004016876220703125, 0.05987548828125, 0.004039764404296875, 0.00946044921875, 0.005100250244140625, -0.035858154296875, -0.0193023681640625, -0.03424072265625, -0.0005350112915039062, 0.03619384765625, -0.053192138671875, 0.0176239013671875, -0.00839996337890625, -0.0194549560546875, 0.004062652587890625, -0.01282501220703125, -0.038909912109375, 0.001983642578125, -0.006717681884765625, 0.00223541259765625, -0.050628662109375, -0.0165557861328125, 0.04571533203125, -0.0020084381103515625, 0.043426513671875, -0.01727294921875, 0.0179290771484375, 0.04254150390625, 0.053436279296875, -0.002841949462890625, 0.042572021484375, -0.044525146484375, 0.004528045654296875, 0.005573272705078125, 0.019866943359375, -0.0118408203125, 0.00833892822265625, -0.02630615234375, -0.0104522705078125, -0.00650787353515625, -0.041290283203125, 0.0219879150390625, 0.0164642333984375, -0.00521087646484375, 0.10784912109375, -0.004215240478515625, 0.07666015625, 0.0034275054931640625, 0.027374267578125, 0.0194854736328125, 0.0055084228515625, 0.033172607421875, 0.0008807182312011719, 0.01032257080078125, -0.036163330078125, 0.01898193359375, -0.04107666015625, 0.035736083984375, 0.005279541015625, -0.0233001708984375, 0.0250091552734375 ]
310840b517568569ff8a94ba389987bfc1a20cb5
Wordpress Stackexchange Q: ORDER BY custom field value Based on example here https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-orderby-and-meta_query/ I'd like to modify the query $q = new WP_Query( array( 'meta_query' => array( 'relation' => 'AND', 'state_clause' => array( 'key' => 'state', 'value' => 'Wisconsin', ), 'city_clause' => array( 'key' => 'city', 'compare' => 'EXISTS', ), ), 'orderby' => 'city_clause') ); to be able to get all posts where state is 'Wisconsin' OR timezone is 'central' ORDER BY population DESC A: You can create groups of meta_queries using specific compare operation on them, and since you want to order based in a single custom field, you can keep the order declaration dedicated to the single meta field. So: $q = new WP_Query( array( 'meta_key' => 'population', //setting the meta_key which will be used to order 'orderby' => 'meta_value', //if the meta_key (population) is numeric use meta_value_num instead 'order' => 'DESC', //setting order direction 'meta_query' => array( 'relation' => 'AND', //setting relation between queries group array( 'relation' => 'OR', //setting relation between this inside query array( 'key' => 'state', 'value' => 'Wisconsin', ), array( 'key' => 'timezone', 'value' => 'central', ) ), array( 'key' => 'city', 'compare' => 'EXISTS', ) ) ) );
Q: ORDER BY custom field value Based on example here https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-orderby-and-meta_query/ I'd like to modify the query $q = new WP_Query( array( 'meta_query' => array( 'relation' => 'AND', 'state_clause' => array( 'key' => 'state', 'value' => 'Wisconsin', ), 'city_clause' => array( 'key' => 'city', 'compare' => 'EXISTS', ), ), 'orderby' => 'city_clause') ); to be able to get all posts where state is 'Wisconsin' OR timezone is 'central' ORDER BY population DESC A: You can create groups of meta_queries using specific compare operation on them, and since you want to order based in a single custom field, you can keep the order declaration dedicated to the single meta field. So: $q = new WP_Query( array( 'meta_key' => 'population', //setting the meta_key which will be used to order 'orderby' => 'meta_value', //if the meta_key (population) is numeric use meta_value_num instead 'order' => 'DESC', //setting order direction 'meta_query' => array( 'relation' => 'AND', //setting relation between queries group array( 'relation' => 'OR', //setting relation between this inside query array( 'key' => 'state', 'value' => 'Wisconsin', ), array( 'key' => 'timezone', 'value' => 'central', ) ), array( 'key' => 'city', 'compare' => 'EXISTS', ) ) ) ); A: This would be done like this: $q = new WP_Query( array( 'meta_query' => array( 'relation' => 'AND', array( 'relation' => 'OR', 'state_clause' => array( 'key' => 'state', 'value' => array( 'Wisconsin' ), //allowed values 'compare' => 'IN' // state must be in array above ), 'state_clause' => array( 'key' => 'timezone', 'value' => 'central', 'compare' => '=' ), ), 'city_clause' => array( 'key' => 'city', 'compare' => 'EXISTS', ), ), 'orderby' => array( 'city_clause' => 'DESC', ), ) );
wordpress
{ "language": "en", "length": 274, "provenance": "stackexchange_00019.jsonl.gz:463465", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218709" }
[ 0.0572509765625, -0.005794525146484375, 0.04296875, 0.0016870498657226562, -0.00635528564453125, -0.02362060546875, 0.04833984375, -0.027618408203125, 0.0157623291015625, 0.0220794677734375, -0.033599853515625, -0.030853271484375, -0.0034999847412109375, -0.0219879150390625, -0.05322265625, -0.044891357421875, 0.044586181640625, -0.02423095703125, 0.0155029296875, 0.005218505859375, 0.0418701171875, 0.0283660888671875, -0.012054443359375, 0.01308441162109375, 0.05426025390625, -0.054779052734375, 0.043365478515625, -0.01529693603515625, 0.054443359375, 0.00467681884765625, 0.042449951171875, -0.037994384765625, 0.0205230712890625, -0.04144287109375, 0.04052734375, -0.037200927734375, 0.039031982421875, -0.0233612060546875, -0.0308837890625, 0.043426513671875, 0.040283203125, -0.0267333984375, -0.04754638671875, 0.05194091796875, -0.0274810791015625, -0.06005859375, 0.073486328125, 0.00411224365234375, 0.07586669921875, 0.005184173583984375, -0.0311126708984375, 0.006275177001953125, -0.02630615234375, 0.00482177734375, -0.0252227783203125, -0.020111083984375, -0.019683837890625, 0.006107330322265625, 0.02337646484375, -0.040374755859375, -0.00951385498046875, -0.01230621337890625, 0.0274658203125, 0.033843994140625, -0.032623291015625, 0.0017108917236328125, 0.033905029296875, 0.005245208740234375, -0.0296173095703125, -0.05792236328125, 0.0135040283203125, 0.0196380615234375, 0.026947021484375, -0.002513885498046875, -0.0007848739624023438, -0.04913330078125, -0.0165863037109375, -0.04656982421875, 0.0235595703125, 0.0211639404296875, 0.0243682861328125, -0.01261138916015625, 0.016754150390625, -0.0301971435546875, 0.035552978515625, -0.0011959075927734375, -0.018951416015625, -0.01369476318359375, -0.03619384765625, -0.0282440185546875, -0.016021728515625, -0.0655517578125, -0.0535888671875, -0.006175994873046875, 0.01108551025390625, -0.0389404296875, 0.03997802734375, 0.0601806640625, -0.04583740234375, -0.0132904052734375, -0.03082275390625, -0.0185699462890625, -0.0202178955078125, -0.021270751953125, 0.00548553466796875, 0.03387451171875, -0.0130615234375, -0.0071868896484375, 0.0247955322265625, 0.045257568359375, -0.0023593902587890625, -0.01470184326171875, -0.005859375, -0.0450439453125, -0.01303863525390625, 0.036407470703125, 0.0007944107055664062, 0.0014905929565429688, 0.0143890380859375, -0.0158233642578125, 0.0237579345703125, 0.0460205078125, 0.00737762451171875, -0.059051513671875, 0.0189971923828125, -0.0035724639892578125, -0.030975341796875, -0.0372314453125, -0.05743408203125, 0.0484619140625, -0.0210418701171875, 0.006511688232421875, 0.0206298828125, 0.032684326171875, -0.016876220703125, -0.0171661376953125, -0.005504608154296875, -0.029083251953125, -0.00980377197265625, 0.0267791748046875, -0.02008056640625, -0.039276123046875, 0.017303466796875, -0.00449371337890625, 0.004520416259765625, 0.006195068359375, 0.0216064453125, -0.0002682209014892578, 0.0029850006103515625, -0.0163726806640625, -0.02081298828125, 0.002391815185546875, 0.061279296875, -0.01568603515625, -0.11309814453125, -0.01678466796875, -0.0260467529296875, -0.030914306640625, -0.0274810791015625, -0.05908203125, 0.028106689453125, 0.007518768310546875, -0.014190673828125, -0.03173828125, -0.055511474609375, -0.00998687744140625, -0.0254058837890625, -0.015167236328125, 0.0203399658203125, 0.03759765625, 0.0169219970703125, 0.006134033203125, -0.006481170654296875, 0.01256561279296875, 0.00135040283203125, -0.0104827880859375, -0.0094757080078125, -0.032867431640625, -0.0091094970703125, 0.005252838134765625, -0.0165557861328125, -0.044525146484375, -0.05340576171875, 0.037261962890625, -0.0799560546875, 0.0694580078125, 0.0000476837158203125, 0.05401611328125, -0.0014028549194335938, -0.0185546875, 0.058197021484375, 0.037109375, -0.0489501953125, 0.030670166015625, 0.01873779296875, -0.01073455810546875, -0.016937255859375, -0.007266998291015625, 0.015716552734375, -0.042510986328125, 0.005840301513671875, 0.015106201171875, -0.0004608631134033203, -0.00013434886932373047, -0.035980224609375, 0.011993408203125, -0.0008602142333984375, 0.0296478271484375, -0.002452850341796875, 0.00476837158203125, 0.0123443603515625, -0.01458740234375, 0.008026123046875, -0.045928955078125, -0.0355224609375, -0.0136566162109375, -0.004550933837890625, 0.027496337890625, -0.020538330078125, -0.00397491455078125, -0.0626220703125, -0.054046630859375, -0.048065185546875, 0.034942626953125, 0.0184783935546875, -0.018157958984375, -0.00209808349609375, -0.015899658203125, 0.02362060546875, 0.02392578125, -0.0024738311767578125, 0.00887298583984375, 0.0255889892578125, 0.016326904296875, -0.025360107421875, 0.01226806640625, 0.03167724609375, -0.024566650390625, -0.0028667449951171875, 0.025634765625, 0.01922607421875, 0.0120849609375, 0.00994873046875, 0.03826904296875, 0.06500244140625, 0.00458526611328125, 0.01384735107421875, 0.012786865234375, 0.008209228515625, 0.06695556640625, -0.010284423828125, -0.002750396728515625, -0.004154205322265625, -0.0191192626953125, -0.0052490234375, 0.017791748046875, 0.0005936622619628906, 0.030670166015625, -0.031463623046875, 0.0221099853515625, -0.0189666748046875, -0.025604248046875, -0.0159912109375, -0.0103759765625, 0.0179901123046875, -0.035919189453125, 0.01457977294921875, 0.0035381317138671875, 0.020111083984375, -0.0111541748046875, -0.0036869049072265625, -0.0733642578125, 0.004550933837890625, -0.032012939453125, -0.08013916015625, -0.0002694129943847656, -0.020843505859375, 0.05126953125, -0.0144195556640625, -0.043701171875, 0.005092620849609375, 0.0156707763671875, -0.041015625, -0.002162933349609375, -0.0203857421875, -0.00571441650390625, 0.0242919921875, 0.043121337890625, -0.0164031982421875, -0.048919677734375, 0.00502777099609375, -0.00865936279296875, -0.0297393798828125, 0.01499176025390625, -0.005878448486328125, -0.050750732421875, 0.053192138671875, -0.0164031982421875, 0.007045745849609375, -0.0193328857421875, 0.044281005859375, 0.044281005859375, -0.0124664306640625, 0.0095062255859375, -0.0085601806640625, -0.0013427734375, -0.0249786376953125, 0.0234375, 0.0009441375732421875, -0.03948974609375, 0.019683837890625, 0.037109375, 0.0390625, 0.00667572021484375, 0.04150390625, 0.0218505859375, 0.033355712890625, 0.0230865478515625, -0.027313232421875, -0.08953857421875, 0.0243988037109375, 0.01413726806640625, 0.0101318359375, -0.00954437255859375, 0.011871337890625, -0.0268096923828125, -0.027862548828125, -0.00949859619140625, -0.00527191162109375, 0.022613525390625, -0.0482177734375, -0.02386474609375, -0.05303955078125, 0.00008004903793334961, -0.0032215118408203125, 0.015228271484375, 0.005649566650390625, 0.04095458984375, 0.01107025146484375, -0.023284912109375, 0.017791748046875, 0.01519012451171875, -0.0239105224609375, -0.00750732421875, 0.0113067626953125, -0.04071044921875, 0.0120086669921875, -0.006511688232421875, 0.029449462890625, 0.01812744140625, -0.0015478134155273438, 0.0083160400390625, 0.030059814453125, -0.002655029296875, 0.0241241455078125, -0.035491943359375, -0.055084228515625, 0.005550384521484375, 0.01097869873046875, -0.0308990478515625, -0.0264892578125, -0.008819580078125, -0.030242919921875, 0.0170745849609375, 0.0216827392578125, 0.0080718994140625, -0.007564544677734375, 0.0152130126953125, 0.01666259765625, -0.0018405914306640625, -0.00037550926208496094, -0.02325439453125, 0.03240966796875, -0.0116729736328125, 0.0200347900390625, -0.02850341796875, 0.05706787109375, -0.0211944580078125, -0.0171051025390625, 0.0221099853515625, -0.01654052734375, 0.0123291015625, -0.058349609375, -0.009765625, 0.0214385986328125, 0.0447998046875, 0.0164031982421875, 0.0286407470703125, -0.02154541015625, -0.0304718017578125, -0.0416259765625, 0.0379638671875, 0.0126953125, -0.0274658203125, -0.0134429931640625, -0.01239013671875, -0.008697509765625, 0.0423583984375, -0.03436279296875, 0.0008478164672851562, -0.047027587890625, -0.016754150390625, -0.01214599609375, -0.0166015625, -0.0192108154296875, -0.00992584228515625, -0.0299835205078125, -0.034576416015625, 0.0235748291015625, 0.0048980712890625, 0.01258087158203125, 0.0171966552734375, -0.00478363037109375, 0.0151824951171875, -0.0001380443572998047, -0.0179901123046875, -0.037078857421875, -0.006999969482421875, -0.0013103485107421875, 0.014678955078125, 0.00013399124145507812, -0.0128326416015625, 0.00460052490234375, 0.036651611328125, -0.0086669921875, 0.0234375, 0.0111846923828125, 0.0044708251953125, 0.024566650390625, 0.0238037109375, 0.0098724365234375, -0.0211944580078125, -0.00443267822265625, -0.033233642578125, -0.02197265625, -0.027008056640625, -0.037811279296875, -0.00824737548828125, -0.020355224609375, -0.01543426513671875, -0.0160369873046875, -0.00307464599609375, -0.069580078125, -0.0008282661437988281, -0.058349609375, -0.0012388229370117188, -0.00388336181640625, -0.03326416015625, 0.0248260498046875, 0.02081298828125, -0.0239105224609375, 0.00433349609375, 0.0196075439453125, 0.0021991729736328125, -0.0278778076171875, -0.02825927734375, -0.004795074462890625, 0.0180206298828125, 0.005901336669921875, 0.0274810791015625, -0.00824737548828125, -0.00417327880859375, 0.031463623046875, -0.022003173828125, 0.0125274658203125, -0.016021728515625, 0.032196044921875, -0.0284881591796875, -0.044769287109375, 0.0276031494140625, -0.029510498046875, -0.0079498291015625, 0.06732177734375, 0.026611328125, -0.083251953125, 0.000060617923736572266, 0.08087158203125, -0.004119873046875, 0.0077362060546875, -0.046875, -0.033660888671875, 0.022491455078125, -0.038360595703125, 0.01605224609375, -0.01418304443359375, 0.0007276535034179688, -0.026153564453125, -0.015533447265625, 0.002803802490234375, 0.052734375, 0.037017822265625, -0.005279541015625, 0.013763427734375, 0.06597900390625, -0.028839111328125, 0.0215606689453125, -0.0035228729248046875, 0.09283447265625, -0.0240936279296875, -0.0584716796875, -0.016357421875, -0.02117919921875, 0.033172607421875, 0.03143310546875, -0.0142974853515625, 0.00749969482421875, 0.049957275390625, -0.0032329559326171875, -0.003322601318359375, -0.0217132568359375, 0.04486083984375, -0.0261688232421875, 0.0142364501953125, 0.0105438232421875, -0.0136260986328125, -0.0210418701171875, 0.06298828125, -0.021697998046875, 0.016387939453125, -0.0146331787109375, 0.03741455078125, 0.0243682861328125, 0.00870513916015625, 0.0097808837890625, 0.013275146484375, 0.01511383056640625, -0.01085662841796875, 0.00641632080078125, 0.0163421630859375, -0.017578125, -0.0169219970703125, -0.0282135009765625, -0.00649261474609375, 0.0290679931640625, 0.031463623046875, 0.031097412109375, -0.0184326171875, 0.0110015869140625, -0.0065765380859375, -0.051513671875, -0.0037250518798828125, -0.01971435546875, -0.03173828125, -0.0299072265625, 0.03045654296875, 0.0072174072265625, 0.0052337646484375, 0.04290771484375, -0.050323486328125, 0.059722900390625, -0.050628662109375, -0.048919677734375, -0.0153045654296875, -0.00937652587890625, -0.003940582275390625, 0.018829345703125, -0.01291656494140625, -0.00420379638671875, -0.026824951171875, 0.040771484375, -0.0112457275390625, 0.0090179443359375, -0.039581298828125, 0.0106201171875, -0.0521240234375, 0.0195465087890625, 0.02935791015625, -0.0030117034912109375, 0.01251983642578125, -0.0269622802734375, -0.044769287109375, -0.039520263671875, -0.007366180419921875, -0.03424072265625, -0.0026836395263671875, 0.0025787353515625, 0.02618408203125, 0.04461669921875, -0.025421142578125, -0.0755615234375, -0.048675537109375, -0.013763427734375, 0.053741455078125, 0.0133514404296875, 0.003658294677734375, 0.0799560546875, -0.0094451904296875, 0.0843505859375, 0.0187835693359375, 0.028289794921875, -0.054656982421875, -0.023162841796875, 0.0268402099609375, -0.0673828125, -0.056182861328125, -0.051361083984375, -0.02362060546875, 0.040374755859375, 0.01222991943359375, -0.0212249755859375, 0.0830078125, -0.0177154541015625, 0.0181121826171875, -0.005916595458984375, -0.052154541015625, -0.0665283203125, 0.029327392578125, 0.049346923828125, -0.023406982421875, 0.02490234375, 0.00879669189453125, -0.01343536376953125, 0.0355224609375, -0.0230255126953125, 0.0477294921875, 0.0011758804321289062, -0.0318603515625, 0.042388916015625, 0.05859375, 0.0183258056640625, 0.02337646484375, 0.0010967254638671875, 0.0210113525390625, 0.007171630859375, -0.005008697509765625, -0.0293121337890625, 0.0188140869140625, 0.04833984375, -0.00920867919921875, -0.03814697265625, 0.0303192138671875, -0.0391845703125, 0.01009368896484375, 0.0228424072265625, 0.030181884765625, -0.038604736328125, 0.01015472412109375, -0.0012674331665039062, 0.0024776458740234375, 0.055755615234375, 0.028778076171875, -0.0055389404296875, 0.03240966796875, -0.0016984939575195312, -0.0026226043701171875, -0.013397216796875, 0.0271453857421875, 0.0201568603515625, -0.02056884765625, 0.0134735107421875, -0.025482177734375, -0.006031036376953125, -0.01552581787109375, -0.0169219970703125, 0.0202789306640625, -0.00791168212890625, 0.002124786376953125, 0.00795745849609375, -0.019622802734375, -0.0191650390625, -0.07684326171875, -0.045745849609375, -0.036865234375, -0.048370361328125, 0.042510986328125, -0.02703857421875, 0.022735595703125, 0.0262451171875, 0.0010051727294921875, -0.01264190673828125, -0.017333984375, 0.006710052490234375, -0.0335693359375, -0.025909423828125, 0.00156402587890625, -0.0162506103515625, 0.009735107421875, 0.019317626953125, -0.01727294921875, -0.0307464599609375, -0.007709503173828125, -0.007373809814453125, 0.053192138671875, -0.02398681640625, -0.008331298828125, 0.03704833984375, 0.0345458984375, -0.0223388671875, 0.012908935546875, 0.0445556640625, -0.07806396484375, -0.07440185546875, 0.04052734375, -0.059356689453125, -0.03472900390625, 0.01751708984375, -0.0484619140625, 0.087890625, -0.03167724609375, 0.03802490234375, 0.0184783935546875, 0.043487548828125, -0.01464080810546875, 0.015167236328125, -0.025115966796875, 0.0421142578125, -0.018218994140625, 0.059967041015625, -0.04766845703125, -0.0153350830078125, 0.011383056640625, 0.0499267578125, 0.020599365234375, -0.0085601806640625, -0.039093017578125, -0.02276611328125, 0.033905029296875, 0.027191162109375, -0.00966644287109375, 0.048736572265625, -0.0035114288330078125, 0.0579833984375, 0.05084228515625, -0.037841796875, 0.025115966796875, 0.015899658203125, -0.0323486328125, 0.019073486328125, 0.031463623046875, 0.049774169921875, -0.026702880859375, 0.03582763671875, -0.052642822265625, -0.0024166107177734375, 0.043914794921875, -0.00424957275390625, 0.02960205078125, 0.05572509765625, 0.059112548828125, -0.072509765625, -0.050506591796875, -0.0288238525390625, 0.047149658203125, 0.0074920654296875, 0.0426025390625, 0.06744384765625, 0.050811767578125, 0.039337158203125, -0.04083251953125, 0.0272216796875, -0.01149749755859375, -0.04095458984375, 0.0611572265625, 0.00023424625396728516, 0.0240936279296875, -0.034576416015625, 0.049591064453125, 0.01812744140625, 0.06365966796875, -0.058074951171875, -0.0252838134765625, 0.015838623046875, -0.01708984375, -0.005924224853515625, -0.0210723876953125, -0.01335906982421875, -0.00624847412109375, 0.019256591796875, -0.05364990234375, -0.0017557144165039062, 0.0266265869140625, 0.02410888671875, -0.002819061279296875, 0.0210723876953125, -0.02410888671875, -0.00815582275390625, -0.0305328369140625, 0.020263671875, 0.05389404296875, 0.056854248046875, -0.027435302734375, 0.0794677734375, -0.005413055419921875, -0.0227813720703125, -0.035308837890625, 0.033905029296875, 0.0134735107421875, 0.0177459716796875, -0.01262664794921875, 0.0225067138671875, -0.020263671875, 0.0226898193359375, 0.020751953125, 0.01180267333984375, 0.05889892578125, 0.09234619140625, 0.01284027099609375, -0.0141143798828125, 0.045684814453125, -0.0002586841583251953, -0.0313720703125, -0.0220947265625, -0.00010150671005249023, 0.0256500244140625, 0.007747650146484375, 0.0096588134765625, 0.0248260498046875, 0.031463623046875, 0.023345947265625, 0.04901123046875, 0.0176239013671875, 0.028564453125, 0.007366180419921875, 0.01102447509765625, 0.0121002197265625, 0.0489501953125, -0.0340576171875, -0.0006122589111328125, -0.03179931640625, -0.0099945068359375, -0.00018739700317382812, 0.0267333984375, 0.044281005859375, -0.02032470703125, 0.02655029296875, -0.02587890625, -0.017791748046875, 0.04840087890625, 0.004207611083984375, -0.0167999267578125, 0.025054931640625, -0.0025310516357421875, -0.0157623291015625, -0.0219268798828125, 0.038665771484375, 0.0031719207763671875, 0.01166534423828125, -0.00274658203125, 0.02813720703125, 0.0002429485321044922, -0.006801605224609375, -0.0087890625, 0.00678253173828125, -0.016387939453125, 0.04119873046875, 0.0038890838623046875, -0.0186614990234375, -0.016448974609375, 0.06707763671875, -0.0281524658203125, 0.061279296875, -0.0693359375, -0.051025390625, 0.018280029296875, 0.0237579345703125, -0.017852783203125, 0.0120849609375, -0.030548095703125, -0.0212860107421875, -0.042327880859375, -0.021026611328125, 0.03350830078125, 0.02313232421875, 0.005168914794921875, 0.031524658203125, -0.00785064697265625, -0.037078857421875, 0.042205810546875, -0.052886962890625, 0.08587646484375, 0.03912353515625, -0.052520751953125, 0.053497314453125, 0.01506805419921875, -0.0196685791015625, 0.04736328125, 0.0223541259765625, -0.0204010009765625, 0.0306549072265625, 0.041748046875, -0.007312774658203125, 0.01666259765625, 0.0194244384765625, -0.006656646728515625, -0.012176513671875, 0.0111083984375, -0.036590576171875, -0.0133819580078125, -0.022979736328125, -0.05084228515625, -0.06536865234375, 0.039520263671875, 0.022796630859375, -0.005649566650390625, 0.0084686279296875, -0.0248260498046875, -0.02935791015625, 0.0279388427734375, -0.01995849609375, 0.018157958984375, -0.016937255859375, -0.0177459716796875, -0.0073089599609375, -0.023834228515625, -0.0372314453125, -0.0132293701171875, 0.01451873779296875, 0.01806640625, -0.006404876708984375, -0.0538330078125, 0.0104827880859375, -0.0259552001953125, -0.01314544677734375, -0.01300811767578125, 0.0016193389892578125, -0.0283966064453125, 0.002330780029296875, 0.01041412353515625, 0.0114593505859375, 0.018096923828125, -0.013427734375, 0.0094146728515625, 0.0017652511596679688, -0.039520263671875, -0.0775146484375, 0.028839111328125, -0.068359375, -0.00740814208984375, -0.0185699462890625, 0.0283355712890625, 0.051361083984375, -0.0167388916015625, -0.07965087890625, 0.028594970703125, -0.0190582275390625, -0.0295562744140625, -0.0221405029296875, -0.0313720703125, -0.003963470458984375, 0.005767822265625, 0.0028228759765625, -0.0176849365234375, -0.03955078125, 0.0289154052734375, -0.00649261474609375, 0.00771331787109375, -0.005138397216796875, 0.0109710693359375, -0.0992431640625, -0.0207977294921875, -0.04376220703125, -0.027252197265625, 0.0247802734375, 0.0220947265625, -0.007083892822265625, 0.0197906494140625, -0.038482666015625, -0.0298309326171875, -0.036407470703125, -0.003513336181640625, -0.005313873291015625, 0.0014200210571289062, -0.051116943359375, -0.013427734375, 0.0635986328125, 0.0692138671875, 0.0216064453125, -0.0380859375, -0.035125732421875, -0.038604736328125, -0.012969970703125, -0.054656982421875, 0.01256561279296875, -0.09124755859375, -0.0369873046875, -0.006805419921875, -0.0029506683349609375, 0.014892578125, 0.007259368896484375, -0.01080322265625, 0.00235748291015625, 0.01214599609375, -0.027069091796875, -0.05389404296875, 0.0224609375, 0.002208709716796875, -0.034332275390625, -0.052703857421875, -0.001651763916015625, -0.01483154296875, -0.047393798828125, -0.005313873291015625, -0.0272979736328125, 0.0013570785522460938, 0.006092071533203125, 0.008697509765625, 0.006145477294921875, 0.0103607177734375, 0.0004684925079345703, 0.0116424560546875, -0.04168701171875, -0.00623321533203125, 0.019805908203125, -0.0175018310546875, -0.0272979736328125, 0.004486083984375, 0.030426025390625, 0.06231689453125, -0.00044727325439453125, 0.07806396484375, -0.003459930419921875, 0.01100921630859375, -0.0209197998046875, 0.004169464111328125, 0.002773284912109375, -0.006450653076171875, 0.007114410400390625, 0.0279083251953125, -0.0087738037109375, 0.0017385482788085938, 0.01329803466796875, -0.004261016845703125, -0.00897216796875, -0.005611419677734375 ]
24664269ef6f9a74f6868cbac5dd895ac120091d
Wordpress Stackexchange Q: Fatal error: Call to undefined function post_exists() I am using the function in my own class as I am using other wordpress functions in it. I am unable to understand why it is not able to find the function while ide "go to declaration" point me to file wp-admin/includes/post.php is wp-admin files functions do not exist as global. A: The files in wp-admin are only loaded when you're in the admin area... when you're looking at pages or posts those functions aren't loaded. In that case you'd need to require the file first, so you'd want to do something like this in your function: if ( ! is_admin() ) { require_once( ABSPATH . 'wp-admin/includes/post.php' ); } The if ( ! is_admin() ) part is important because WordPress includes the file automatically when is_admin() is true so you only want to include it if is_admin() is false. Also make sure to include this snippet before you try to call the post_exists() function. If that doesn't work then try this: if ( ! function_exists( 'post_exists' ) ) { require_once( ABSPATH . 'wp-admin/includes/post.php' ); }
Q: Fatal error: Call to undefined function post_exists() I am using the function in my own class as I am using other wordpress functions in it. I am unable to understand why it is not able to find the function while ide "go to declaration" point me to file wp-admin/includes/post.php is wp-admin files functions do not exist as global. A: The files in wp-admin are only loaded when you're in the admin area... when you're looking at pages or posts those functions aren't loaded. In that case you'd need to require the file first, so you'd want to do something like this in your function: if ( ! is_admin() ) { require_once( ABSPATH . 'wp-admin/includes/post.php' ); } The if ( ! is_admin() ) part is important because WordPress includes the file automatically when is_admin() is true so you only want to include it if is_admin() is false. Also make sure to include this snippet before you try to call the post_exists() function. If that doesn't work then try this: if ( ! function_exists( 'post_exists' ) ) { require_once( ABSPATH . 'wp-admin/includes/post.php' ); }
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:463468", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218715" }
[ 0.0860595703125, 0.00022971630096435547, 0.018585205078125, -0.04620361328125, 0.01016998291015625, -0.023681640625, 0.0274505615234375, -0.057861328125, 0.01068115234375, 0.005687713623046875, -0.06890869140625, -0.00482177734375, -0.01947021484375, 0.0011510848999023438, -0.021087646484375, -0.04638671875, 0.04241943359375, -0.0216827392578125, 0.038299560546875, -0.003719329833984375, 0.024200439453125, 0.0277862548828125, 0.01148223876953125, 0.037353515625, -0.024871826171875, -0.006622314453125, 0.0767822265625, -0.0255279541015625, -0.0233306884765625, -0.034942626953125, 0.01071929931640625, 0.0311431884765625, -0.00024700164794921875, 0.0146026611328125, 0.0120391845703125, -0.0201263427734375, -0.03057861328125, 0.0159454345703125, 0.02142333984375, -0.00730133056640625, 0.007659912109375, -0.005126953125, 0.0298309326171875, 0.038970947265625, -0.0007119178771972656, -0.03631591796875, -0.0143280029296875, -0.052490234375, -0.00012755393981933594, 0.007472991943359375, 0.0036144256591796875, -0.03277587890625, 0.00867462158203125, -0.0150604248046875, -0.01222991943359375, -0.01461029052734375, 0.0211029052734375, 0.0157318115234375, 0.046966552734375, -0.031646728515625, -0.07171630859375, -0.0100555419921875, 0.027069091796875, -0.0218658447265625, 0.006710052490234375, -0.0011844635009765625, 0.014312744140625, 0.02197265625, -0.08233642578125, -0.01190185546875, 0.046905517578125, -0.035247802734375, -0.00868988037109375, 0.039306640625, -0.0006556510925292969, -0.06646728515625, 0.037078857421875, 0.0006489753723144531, -0.0012273788452148438, 0.06634521484375, 0.0004284381866455078, 0.0267486572265625, -0.0233154296875, -0.009246826171875, 0.00004482269287109375, 0.0191802978515625, -0.0203399658203125, -0.0230560302734375, -0.05029296875, -0.0361328125, -0.03167724609375, -0.0243377685546875, -0.054901123046875, -0.0242919921875, -0.0014286041259765625, -0.012786865234375, 0.060516357421875, 0.0850830078125, -0.0239105224609375, 0.0111236572265625, -0.021942138671875, -0.02862548828125, 0.020721435546875, -0.0308074951171875, 0.02142333984375, 0.05023193359375, -0.0196990966796875, -0.0004296302795410156, 0.014862060546875, 0.0205535888671875, 0.005298614501953125, -0.049713134765625, 0.00991058349609375, -0.0499267578125, 0.00473785400390625, 0.0236053466796875, -0.01103973388671875, 0.0239410400390625, 0.033477783203125, -0.0032596588134765625, 0.0262603759765625, 0.01549530029296875, -0.0109710693359375, -0.00948333740234375, 0.01378631591796875, -0.0153656005859375, -0.04833984375, 0.0160064697265625, 0.0279388427734375, 0.018096923828125, -0.03204345703125, 0.0100555419921875, 0.04010009765625, -0.03045654296875, -0.037109375, -0.016845703125, 0.0033969879150390625, 0.00339508056640625, -0.00572967529296875, 0.000881195068359375, 0.0323486328125, -0.03082275390625, -0.01094818115234375, 0.010009765625, -0.0011205673217773438, 0.02703857421875, 0.0169525146484375, -0.00591278076171875, -0.0157470703125, -0.0601806640625, -0.0108642578125, -0.0224609375, 0.0196685791015625, 0.00946044921875, -0.005199432373046875, -0.004543304443359375, 0.0232391357421875, -0.03143310546875, -0.0174102783203125, -0.0218658447265625, 0.05792236328125, -0.0257110595703125, -0.020843505859375, 0.007183074951171875, -0.06451416015625, 0.039215087890625, -0.052825927734375, -0.017303466796875, 0.01480865478515625, -0.01476287841796875, 0.007236480712890625, -0.0194549560546875, 0.01462554931640625, 0.0038471221923828125, -0.00027179718017578125, 0.01543426513671875, 0.0065155029296875, -0.01413726806640625, 0.026336669921875, 0.028228759765625, -0.0098419189453125, -0.01177978515625, 0.0330810546875, -0.005474090576171875, -0.058990478515625, 0.01361846923828125, 0.022918701171875, 0.04266357421875, 0.0179290771484375, 0.0142822265625, 0.040069580078125, 0.01447296142578125, 0.012725830078125, 0.03302001953125, -0.043212890625, -0.04998779296875, 0.0059051513671875, 0.0095062255859375, -0.039398193359375, 0.02032470703125, -0.01499176025390625, -0.017730712890625, 0.0018377304077148438, 0.0177764892578125, -0.06695556640625, -0.009674072265625, -0.021636962890625, 0.02557373046875, 0.035736083984375, 0.0290374755859375, -0.00006788969039916992, 0.033843994140625, -0.019287109375, -0.04833984375, -0.046905517578125, 0.01296234130859375, -0.059967041015625, 0.019561767578125, -0.032562255859375, 0.0804443359375, -0.060577392578125, -0.017120361328125, -0.06591796875, -0.038055419921875, 0.01155853271484375, 0.035369873046875, -0.034393310546875, 0.01015472412109375, -0.0247344970703125, 0.0261077880859375, -0.0225830078125, 0.03570556640625, 0.024627685546875, 0.0306854248046875, -0.0297393798828125, -0.02362060546875, -0.0479736328125, -0.046630859375, 0.0028133392333984375, 0.06640625, 0.051666259765625, 0.05816650390625, -0.005466461181640625, -0.0117645263671875, 0.042999267578125, -0.07952880859375, -0.0030841827392578125, -0.03369140625, -0.01508331298828125, 0.01387786865234375, 0.021575927734375, 0.023193359375, 0.0109405517578125, -0.0487060546875, -0.0005345344543457031, 0.04833984375, -0.0148773193359375, 0.0003998279571533203, -0.004489898681640625, 0.004791259765625, -0.009033203125, -0.06549072265625, -0.01084136962890625, -0.0310211181640625, 0.00879669189453125, -0.0009889602661132812, 0.03558349609375, 0.0203094482421875, 0.0100250244140625, -0.0086212158203125, 0.00695037841796875, -0.0162353515625, -0.0137481689453125, 0.0267791748046875, 0.020965576171875, 0.0181427001953125, -0.06732177734375, 0.00406646728515625, 0.01904296875, 0.0160980224609375, -0.00824737548828125, 0.042572021484375, -0.032012939453125, -0.021209716796875, -0.010040283203125, -0.02105712890625, -0.0013742446899414062, 0.0199737548828125, 0.057830810546875, -0.0263671875, 0.0146484375, -0.006221771240234375, -0.0202789306640625, 0.051788330078125, 0.0200653076171875, -0.0555419921875, 0.00707244873046875, -0.035400390625, 0.0158233642578125, -0.0140228271484375, 0.073486328125, 0.05914306640625, 0.00225830078125, 0.0019502639770507812, 0.0113067626953125, 0.054656982421875, 0.0189208984375, 0.028778076171875, 0.0206756591796875, -0.0002868175506591797, -0.0258331298828125, -0.0098419189453125, 0.0316162109375, 0.06268310546875, -0.00763702392578125, -0.04742431640625, -0.0010223388671875, 0.0245819091796875, -0.0906982421875, -0.096923828125, -0.058990478515625, -0.059783935546875, 0.0036773681640625, 0.020660400390625, -0.017608642578125, 0.002288818359375, 0.0309906005859375, 0.0256500244140625, -0.0182342529296875, 0.00254058837890625, -0.06671142578125, -0.06298828125, -0.0950927734375, -0.034271240234375, -0.0230865478515625, 0.0227203369140625, -0.0005903244018554688, 0.0775146484375, 0.01511383056640625, -0.06719970703125, 0.007579803466796875, 0.0311737060546875, -0.03729248046875, 0.01525115966796875, 0.00782012939453125, -0.01450347900390625, 0.0248260498046875, -0.0008301734924316406, 0.023193359375, 0.0175628662109375, -0.0188751220703125, -0.03582763671875, 0.00502777099609375, -0.0292510986328125, 0.0178680419921875, 0.058349609375, -0.003631591796875, -0.05133056640625, 0.033905029296875, -0.054840087890625, -0.026214599609375, -0.0008921623229980469, -0.04644775390625, 0.048583984375, 0.005397796630859375, -0.01291656494140625, 0.01458740234375, 0.0168304443359375, -0.01568603515625, 0.00394439697265625, -0.00518798828125, -0.01026153564453125, 0.017669677734375, -0.0158538818359375, -0.01418304443359375, 0.006561279296875, 0.01288604736328125, -0.0207672119140625, -0.012481689453125, -0.01154327392578125, 0.0038585662841796875, -0.006439208984375, -0.01995849609375, -0.03173828125, -0.00428009033203125, 0.0280303955078125, 0.0204620361328125, 0.0233917236328125, -0.009002685546875, -0.0173492431640625, -0.00930023193359375, 0.041900634765625, 0.056915283203125, -0.021636962890625, -0.0227508544921875, -0.0087432861328125, -0.056427001953125, -0.0201873779296875, -0.01018524169921875, 0.01326751708984375, -0.0152435302734375, -0.031402587890625, -0.01207733154296875, -0.0186767578125, -0.0013971328735351562, 0.046722412109375, 0.0012369155883789062, -0.0079498291015625, 0.032806396484375, -0.077392578125, 0.061767578125, 0.036865234375, 0.0206146240234375, 0.006557464599609375, -0.021942138671875, -0.057403564453125, -0.056976318359375, 0.007904052734375, -0.07293701171875, 0.0506591796875, 0.02191162109375, 0.0218353271484375, -0.020050048828125, 0.0065765380859375, 0.02569580078125, 0.006145477294921875, 0.0131378173828125, 0.0033016204833984375, 0.017425537109375, -0.027435302734375, 0.00751495361328125, -0.01305389404296875, -0.007083892822265625, 0.002620697021484375, -0.04144287109375, 0.036956787109375, -0.0221405029296875, 0.004833221435546875, 0.0162353515625, -0.048858642578125, 0.02020263671875, 0.0038623809814453125, -0.0099029541015625, 0.0518798828125, -0.02813720703125, 0.01216888427734375, -0.0193023681640625, -0.0055694580078125, 0.038116455078125, -0.0302886962890625, -0.0241241455078125, 0.037261962890625, 0.05877685546875, 0.0105438232421875, -0.006679534912109375, -0.07794189453125, 0.01377105712890625, 0.0292205810546875, -0.0092926025390625, 0.05816650390625, 0.0250396728515625, -0.004489898681640625, 0.034515380859375, 0.0048065185546875, 0.0016717910766601562, -0.011566162109375, 0.0261993408203125, -0.005096435546875, -0.0148468017578125, -0.0054168701171875, -0.01068878173828125, 0.0274658203125, 0.037628173828125, -0.01168060302734375, -0.01389312744140625, 0.02764892578125, 0.0243377685546875, -0.053466796875, 0.01568603515625, -0.017913818359375, -0.01873779296875, -0.00235748291015625, -0.016357421875, 0.038726806640625, 0.0293121337890625, 0.004703521728515625, 0.013153076171875, 0.006824493408203125, 0.0078887939453125, 0.0299530029296875, 0.03643798828125, -0.00015175342559814453, 0.0241241455078125, 0.054351806640625, 0.0080718994140625, -0.007198333740234375, -0.0134735107421875, 0.055023193359375, 0.0006222724914550781, -0.046112060546875, -0.0025119781494140625, -0.0033092498779296875, 0.0038661956787109375, -0.005954742431640625, -0.00910186767578125, 0.033416748046875, 0.0168609619140625, -0.0260772705078125, 0.0029201507568359375, -0.016265869140625, -0.0068359375, -0.0297088623046875, 0.01308441162109375, 0.0169830322265625, -0.006946563720703125, 0.021575927734375, 0.04632568359375, 0.01058197021484375, 0.037445068359375, -0.0227508544921875, 0.04754638671875, -0.01837158203125, 0.092041015625, 0.0114593505859375, -0.0467529296875, -0.0106353759765625, 0.0787353515625, -0.045135498046875, -0.0413818359375, -0.0279693603515625, 0.0106353759765625, 0.04437255859375, 0.0030002593994140625, 0.004665374755859375, 0.0208282470703125, 0.00794219970703125, -0.0298614501953125, 0.01739501953125, 0.02099609375, -0.046844482421875, -0.0031681060791015625, 0.019989013671875, 0.0071258544921875, 0.00396728515625, -0.038330078125, 0.029388427734375, -0.034820556640625, 0.00994110107421875, -0.0062408447265625, -0.047393798828125, 0.0212860107421875, 0.039886474609375, 0.01502227783203125, -0.021575927734375, -0.023712158203125, 0.05023193359375, -0.0184173583984375, -0.0182037353515625, -0.01995849609375, 0.04302978515625, -0.022186279296875, -0.0079193115234375, 0.001544952392578125, -0.0118408203125, 0.03973388671875, 0.002826690673828125, 0.0577392578125, -0.002674102783203125, -0.051971435546875, 0.01552581787109375, -0.054840087890625, -0.014373779296875, -0.01435089111328125, -0.0254669189453125, -0.063232421875, -0.00616455078125, -0.002197265625, 0.0018720626831054688, 0.004791259765625, 0.002567291259765625, -0.025604248046875, 0.038177490234375, 0.0200653076171875, 0.0201263427734375, -0.01271820068359375, 0.06878662109375, -0.0009303092956542969, 0.0419921875, 0.0042572021484375, 0.015655517578125, -0.006259918212890625, -0.0200042724609375, 0.00750732421875, -0.034271240234375, -0.00914764404296875, -0.0211334228515625, 0.0016870498657226562, -0.006572723388671875, 0.0252227783203125, -0.010498046875, -0.010498046875, 0.01442718505859375, -0.0093841552734375, -0.0196533203125, 0.01477813720703125, 0.03076171875, 0.0164337158203125, -0.01473236083984375, -0.022369384765625, 0.01163482666015625, -0.00394439697265625, -0.0238800048828125, 0.03143310546875, -0.00908660888671875, 0.023773193359375, 0.020233154296875, -0.058929443359375, 0.071044921875, 0.040740966796875, 0.00986480712890625, 0.034820556640625, -0.0191192626953125, 0.004009246826171875, 0.0015316009521484375, 0.019622802734375, -0.039703369140625, -0.0484619140625, 0.030242919921875, 0.0232086181640625, -0.0201416015625, 0.037689208984375, -0.0175628662109375, -0.006488800048828125, 0.03509521484375, 0.0318603515625, -0.0232391357421875, -0.0156707763671875, 0.0026950836181640625, -0.0214691162109375, 0.0013408660888671875, -0.0192108154296875, -0.005062103271484375, -0.03326416015625, 0.053741455078125, 0.01568603515625, -0.0010957717895507812, 0.0232086181640625, -0.00571441650390625, 0.002597808837890625, -0.02923583984375, 0.0113677978515625, 0.0208282470703125, -0.0265960693359375, 0.05780029296875, 0.03753662109375, 0.0238800048828125, -0.00890350341796875, 0.0174102783203125, -0.057464599609375, -0.007244110107421875, -0.031646728515625, -0.0082550048828125, -0.01230621337890625, 0.006618499755859375, 0.008758544921875, 0.011077880859375, 0.027252197265625, 0.04833984375, -0.004230499267578125, 0.01568603515625, 0.01445770263671875, 0.0234832763671875, 0.0087127685546875, -0.03314208984375, 0.045806884765625, 0.0621337890625, -0.057861328125, 0.0274810791015625, 0.010528564453125, -0.036895751953125, -0.001556396484375, -0.0204010009765625, 0.08465576171875, -0.025390625, -0.01406097412109375, 0.01971435546875, 0.00916290283203125, -0.0024166107177734375, -0.0262298583984375, 0.05194091796875, -0.055023193359375, -0.013458251953125, -0.0048828125, -0.0030670166015625, -0.031219482421875, -0.03955078125, -0.035797119140625, 0.09625244140625, -0.00992584228515625, 0.0105438232421875, 0.0181121826171875, 0.03912353515625, -0.02252197265625, 0.034942626953125, -0.054229736328125, 0.038970947265625, -0.019012451171875, 0.046295166015625, -0.07275390625, 0.003662109375, -0.0170135498046875, 0.01776123046875, 0.0283660888671875, 0.006061553955078125, 0.00789642333984375, -0.007625579833984375, 0.030181884765625, 0.0467529296875, 0.004146575927734375, 0.001087188720703125, 0.00409698486328125, 0.0007886886596679688, -0.0015687942504882812, -0.01129913330078125, 0.0307159423828125, -0.034271240234375, -0.02593994140625, 0.0300445556640625, 0.01152801513671875, 0.0086822509765625, -0.0025005340576171875, -0.039947509765625, -0.00377655029296875, -0.005706787109375, -0.00679779052734375, -0.01055145263671875, 0.00037789344787597656, 0.00634765625, -0.017913818359375, -0.023040771484375, -0.0185394287109375, -0.022186279296875, 0.0222930908203125, -0.001758575439453125, -0.01605224609375, -0.001220703125, 0.00688934326171875, 0.0218505859375, -0.040863037109375, -0.03277587890625, 0.0078887939453125, -0.0090484619140625, 0.082763671875, 0.047271728515625, 0.0404052734375, -0.0234832763671875, -0.0009722709655761719, 0.0306549072265625, 0.0843505859375, -0.049530029296875, -0.0273895263671875, 0.01523590087890625, 0.00579833984375, -0.019134521484375, -0.01425933837890625, -0.00862884521484375, 0.032806396484375, 0.05474853515625, -0.03369140625, -0.0031871795654296875, 0.035491943359375, -0.01192474365234375, 0.00014102458953857422, -0.0236968994140625, 0.0070648193359375, 0.0228424072265625, -0.04266357421875, -0.00846099853515625, 0.0291595458984375, 0.0706787109375, 0.0210418701171875, 0.0277862548828125, -0.0141143798828125, -0.026580810546875, -0.0124053955078125, 0.014373779296875, -0.0153045654296875, 0.01081085205078125, -0.061431884765625, -0.0606689453125, 0.0253448486328125, 0.0579833984375, -0.0010995864868164062, 0.045196533203125, 0.031280517578125, 0.0357666015625, -0.003936767578125, -0.0139007568359375, 0.03497314453125, -0.00991058349609375, -0.037506103515625, -0.0025043487548828125, -0.0240478515625, 0.006435394287109375, -0.0010013580322265625, 0.0117340087890625, 0.034271240234375, -0.0099029541015625, -0.0079345703125, 0.0108642578125, 0.0173492431640625, -0.015289306640625, 0.0246429443359375, 0.042755126953125, 0.048248291015625, 0.042633056640625, -0.037200927734375, 0.010284423828125, -0.033050537109375, -0.071044921875, 0.01276397705078125, 0.0347900390625, -0.0228118896484375, 0.019012451171875, 0.045654296875, 0.0275726318359375, 0.02850341796875, -0.020599365234375, -0.0031337738037109375, -0.0265960693359375, 0.0626220703125, 0.0169830322265625, -0.02435302734375, -0.03887939453125, -0.006946563720703125, 0.04638671875, 0.0164642333984375, 0.0682373046875, -0.0338134765625, 0.0289764404296875, -0.0164642333984375, 0.0213470458984375, -0.0650634765625, -0.0138397216796875, 0.005252838134765625, -0.034271240234375, -0.001739501953125, 0.02020263671875, -0.04730224609375, 0.011383056640625, 0.039947509765625, -0.0193939208984375, 0.0154876708984375, 0.0161285400390625, 0.0097808837890625, -0.037078857421875, 0.041839599609375, -0.00940704345703125, -0.024505615234375, -0.019287109375, 0.0173187255859375, 0.0190582275390625, 0.03594970703125, -0.0077972412109375, -0.01204681396484375, 0.024627685546875, -0.0740966796875, 0.034088134765625, -0.0321044921875, 0.0148773193359375, 0.0278778076171875, 0.048553466796875, -0.0197296142578125, -0.047210693359375, -0.0216064453125, -0.01068115234375, 0.0045166015625, 0.0173187255859375, -0.031402587890625, 0.0222930908203125, 0.01541900634765625, 0.0221099853515625, 0.0179595947265625, -0.02728271484375, -0.00319671630859375, 0.034393310546875, -0.025360107421875, 0.01922607421875, -0.00197601318359375, -0.0196990966796875, -0.01216888427734375, -0.0205230712890625, 0.007045745849609375, -0.004726409912109375, -0.03076171875, -0.0171051025390625, 0.040069580078125, 0.034088134765625, -0.0094451904296875, -0.0311279296875, 0.014617919921875, -0.03570556640625, 0.077880859375, -0.01311492919921875, 0.01271820068359375, 0.0187835693359375, 0.06671142578125, -0.0221099853515625, 0.01947021484375, -0.003265380859375, -0.04327392578125, 0.02362060546875, 0.051513671875, 0.07135009765625, -0.05682373046875, -0.041259765625, 0.0226287841796875, 0.0164947509765625, 0.0606689453125, 0.01428985595703125, -0.0220184326171875, 0.0211944580078125, 0.013702392578125, -0.0120849609375, -0.07208251953125, 0.003032684326171875, -0.06195068359375, 0.01265716552734375, -0.031646728515625, 0.0218963623046875, 0.026824951171875, -0.03302001953125, -0.08538818359375, 0.0330810546875, -0.015777587890625, -0.030426025390625, -0.057220458984375, -0.0273590087890625, -0.0202178955078125, 0.012939453125, -0.0153350830078125, -0.02471923828125, -0.0255889892578125, 0.08172607421875, 0.0038204193115234375, 0.0022220611572265625, 0.052154541015625, -0.0173797607421875, -0.016326904296875, -0.0006084442138671875, 0.00801849365234375, -0.01410675048828125, 0.019927978515625, -0.0159912109375, 0.03436279296875, 0.08746337890625, 0.004467010498046875, -0.06817626953125, -0.03106689453125, -0.09918212890625, -0.0015125274658203125, -0.0477294921875, -0.00470733642578125, -0.002399444580078125, 0.0682373046875, 0.0103607177734375, 0.023040771484375, -0.040252685546875, -0.005077362060546875, -0.030914306640625, -0.0531005859375, 0.002887725830078125, 0.0165252685546875, -0.045501708984375, 0.019287109375, 0.01137542724609375, -0.0015916824340820312, -0.0025482177734375, 0.005519866943359375, -0.01666259765625, -0.018707275390625, -0.03717041015625, -0.044952392578125, -0.01061248779296875, -0.056884765625, 0.034515380859375, -0.01457977294921875, -0.00262451171875, 0.0240478515625, 0.0295867919921875, 0.00888824462890625, 0.06878662109375, 0.02276611328125, 0.005218505859375, -0.01007080078125, 0.01248931884765625, 0.0221710205078125, -0.010711669921875, -0.00954437255859375, -0.031402587890625, 0.02276611328125, -0.00698089599609375, -0.01313018798828125, -0.02557373046875, 0.0169219970703125, 0.041961669921875, -0.03533935546875, 0.07452392578125, 0.01399993896484375, 0.08154296875, 0.00362396240234375, 0.034210205078125, -0.0121612548828125, -0.01560211181640625, -0.0014781951904296875, -0.032135009765625, 0.0037250518798828125, 0.039398193359375, -0.00530242919921875, -0.004062652587890625, 0.02459716796875, 0.03009033203125, 0.01026153564453125, -0.002704620361328125 ]
1ec099a28950e30d8f386156c262258fb5dd856c
Wordpress Stackexchange Q: Do I need to escape data passed to wp_localize_script()? Title pretty much says it all. I took a look at the source, and I didn't see any escaping being done. But, I can't say for sure. wp_localize_script( 'script-hook', 'object_name', array( 'param_1' => $value_1, // This? 'param_2' => esc_js( $value_2 ) // Or, this? ) ); A: As far as I know wp_localize_script doesn't escape data any more than is necessary to produce valid JSON, and everything is sent as a string. The function was originally designed to allow translating the strings used in your JS into other languages (hence the "localize" part of the function name). So if the data you're passing is coming from a user input or is otherwise user-generated then you'll definitely want to escape it.
Q: Do I need to escape data passed to wp_localize_script()? Title pretty much says it all. I took a look at the source, and I didn't see any escaping being done. But, I can't say for sure. wp_localize_script( 'script-hook', 'object_name', array( 'param_1' => $value_1, // This? 'param_2' => esc_js( $value_2 ) // Or, this? ) ); A: As far as I know wp_localize_script doesn't escape data any more than is necessary to produce valid JSON, and everything is sent as a string. The function was originally designed to allow translating the strings used in your JS into other languages (hence the "localize" part of the function name). So if the data you're passing is coming from a user input or is otherwise user-generated then you'll definitely want to escape it.
wordpress
{ "language": "en", "length": 130, "provenance": "stackexchange_00019.jsonl.gz:463483", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218766" }
[ 0.0367431640625, -0.0150909423828125, -0.004787445068359375, -0.0394287109375, 0.00492095947265625, -0.0012598037719726562, 0.01136016845703125, -0.006633758544921875, -0.0208892822265625, 0.00597381591796875, 0.0225067138671875, -0.00714874267578125, -0.028839111328125, -0.0391845703125, 0.002254486083984375, -0.022186279296875, 0.026031494140625, -0.007549285888671875, -0.0162353515625, -0.034149169921875, 0.01983642578125, -0.0281982421875, -0.015472412109375, 0.07171630859375, -0.0027332305908203125, -0.01543426513671875, 0.0665283203125, -0.019317626953125, 0.00943756103515625, -0.004207611083984375, 0.00965118408203125, -0.0265960693359375, 0.0227813720703125, 0.043609619140625, -0.0513916015625, 0.0172271728515625, 0.01161956787109375, 0.0279083251953125, 0.007183074951171875, 0.051483154296875, 0.007694244384765625, -0.031280517578125, -0.0204620361328125, 0.0203704833984375, -0.0067596435546875, -0.02667236328125, 0.0237274169921875, -0.006938934326171875, 0.03143310546875, 0.0176849365234375, 0.019866943359375, 0.00911712646484375, 0.0073394775390625, 0.0265655517578125, -0.002902984619140625, 0.046356201171875, -0.0260162353515625, 0.005168914794921875, 0.028350830078125, 0.058441162109375, -0.0198974609375, -0.00438690185546875, -0.003795623779296875, -0.07696533203125, 0.0279693603515625, 0.0184326171875, -0.01242828369140625, 0.030914306640625, -0.04901123046875, 0.03143310546875, 0.031524658203125, -0.07110595703125, -0.0228729248046875, -0.017333984375, -0.00815582275390625, 0.0499267578125, -0.0156402587890625, 0.006359100341796875, 0.0093536376953125, 0.005474090576171875, -0.00388336181640625, -0.03363037109375, -0.00827789306640625, -0.022369384765625, 0.00899505615234375, -0.0089263916015625, -0.020660400390625, 0.006916046142578125, 0.006778717041015625, -0.0518798828125, -0.0194244384765625, -0.0291595458984375, -0.0447998046875, 0.01389312744140625, 0.0004775524139404297, -0.051300048828125, -0.01177215576171875, 0.0086669921875, -0.038787841796875, 0.0226593017578125, -0.00978851318359375, -0.0162353515625, 0.048919677734375, -0.0350341796875, 0.019775390625, 0.037506103515625, 0.024658203125, -0.0015306472778320312, 0.01145172119140625, -0.005512237548828125, -0.01474761962890625, 0.04229736328125, -0.0246124267578125, -0.048736572265625, -0.00951385498046875, 0.0692138671875, -0.0213775634765625, 0.0283355712890625, 0.00942230224609375, 0.04144287109375, -0.0118865966796875, -0.0002789497375488281, -0.03265380859375, 0.0496826171875, 0.017852783203125, 0.005950927734375, -0.01470184326171875, 0.036651611328125, 0.012115478515625, 0.01198577880859375, -0.0224456787109375, -0.0101470947265625, 0.0506591796875, 0.05511474609375, 0.0189666748046875, -0.02264404296875, 0.03204345703125, 0.0046234130859375, 0.003940582275390625, 0.0121917724609375, -0.032623291015625, -0.03375244140625, 0.0112152099609375, -0.0178985595703125, 0.01556396484375, -0.003215789794921875, 0.007450103759765625, 0.01473236083984375, 0.0092010498046875, -0.034942626953125, 0.05340576171875, -0.0158843994140625, 0.02349853515625, 0.01522064208984375, -0.0085906982421875, -0.0233001708984375, 0.045654296875, -0.04803466796875, -0.01007843017578125, -0.0472412109375, -0.0465087890625, -0.013214111328125, 0.010528564453125, -0.01409912109375, -0.006771087646484375, 0.015777587890625, 0.0292510986328125, 0.00597381591796875, 0.0135040283203125, 0.0572509765625, -0.01001739501953125, -0.0281524658203125, -0.01369476318359375, -0.00731658935546875, -0.0282745361328125, -0.012176513671875, -0.0263824462890625, 0.0053863525390625, 0.03179931640625, 0.0058135986328125, 0.0113525390625, -0.0164642333984375, 0.0745849609375, -0.0023021697998046875, -0.0187530517578125, -0.007904052734375, 0.03558349609375, 0.058258056640625, 0.0247802734375, 0.020416259765625, 0.013031005859375, -0.0187530517578125, -0.07293701171875, 0.03692626953125, -0.04742431640625, -0.0169525146484375, 0.0217437744140625, 0.0172119140625, -0.0225982666015625, 0.0164031982421875, 0.0771484375, -0.00896453857421875, 0.045257568359375, -0.031280517578125, -0.05401611328125, 0.003841400146484375, -0.0171661376953125, 0.0244903564453125, 0.006809234619140625, 0.0212249755859375, 0.01122283935546875, 0.03485107421875, -0.050811767578125, 0.049224853515625, -0.005786895751953125, 0.006679534912109375, -0.016021728515625, 0.0718994140625, -0.01041412353515625, 0.046875, 0.0165252685546875, -0.08868408203125, 0.020721435546875, -0.004016876220703125, -0.004741668701171875, -0.024505615234375, 0.0107574462890625, -0.019287109375, 0.032684326171875, -0.02740478515625, 0.0806884765625, 0.01190185546875, 0.03277587890625, 0.035064697265625, -0.007541656494140625, 0.00244140625, 0.0179443359375, -0.048248291015625, 0.006458282470703125, 0.032440185546875, 0.045684814453125, 0.04791259765625, -0.001953125, -0.02593994140625, 0.0290069580078125, -0.058624267578125, 0.011932373046875, -0.0299835205078125, -0.0020732879638671875, 0.04473876953125, -0.0268096923828125, -0.049285888671875, -0.0132293701171875, -0.1326904296875, -0.0279083251953125, 0.0156402587890625, -0.043121337890625, -0.0200347900390625, 0.0045623779296875, -0.00432586669921875, -0.00839996337890625, -0.0034389495849609375, 0.01297760009765625, -0.00917816162109375, 0.0182952880859375, 0.0043182373046875, -0.01053619384765625, -0.01250457763671875, -0.024749755859375, 0.0263671875, 0.04583740234375, -0.023223876953125, -0.006072998046875, 0.0447998046875, 0.01085662841796875, 0.01287841796875, -0.0204010009765625, -0.0243072509765625, -0.00847625732421875, 0.036590576171875, 0.017852783203125, 0.03936767578125, 0.01332855224609375, -0.0208740234375, 0.0215606689453125, 0.0308380126953125, 0.00009733438491821289, -0.016448974609375, 0.0560302734375, -0.01056671142578125, 0.0184326171875, -0.0182037353515625, -0.0274505615234375, 0.050079345703125, 0.0362548828125, -0.0640869140625, 0.0506591796875, 0.00463104248046875, 0.0211334228515625, -0.007587432861328125, 0.032440185546875, 0.0312042236328125, -0.0024623870849609375, -0.01404571533203125, -0.004314422607421875, 0.017608642578125, 0.0081634521484375, 0.0021915435791015625, -0.0160369873046875, -0.05145263671875, -0.0266876220703125, -0.018157958984375, 0.018585205078125, 0.0743408203125, -0.039947509765625, -0.04443359375, -0.0384521484375, 0.00429534912109375, -0.09161376953125, -0.10931396484375, 0.053741455078125, 0.0030193328857421875, -0.0196990966796875, -0.006927490234375, 0.0006875991821289062, -0.03302001953125, 0.00881195068359375, -0.02386474609375, -0.01029205322265625, -0.01384735107421875, -0.052459716796875, -0.054901123046875, -0.0272369384765625, 0.0239105224609375, -0.017669677734375, -0.003643035888671875, 0.0111083984375, -0.0287322998046875, 0.0012350082397460938, -0.01168060302734375, 0.042755126953125, 0.05072021484375, -0.001888275146484375, 0.01195526123046875, -0.035888671875, -0.005489349365234375, 0.01285552978515625, -0.016845703125, 0.005069732666015625, -0.01282501220703125, 0.029541015625, -0.0020236968994140625, 0.01068878173828125, 0.0333251953125, 0.03472900390625, -0.01276397705078125, -0.00872039794921875, 0.0026187896728515625, -0.0123138427734375, -0.046722412109375, -0.0235137939453125, -0.0024700164794921875, -0.024383544921875, 0.01078033447265625, 0.01084136962890625, -0.010101318359375, -0.00736236572265625, 0.03704833984375, 0.0165863037109375, -0.0162811279296875, -0.0132598876953125, -0.00817108154296875, 0.00445556640625, 0.000888824462890625, 0.0210113525390625, -0.004238128662109375, 0.032440185546875, -0.0166778564453125, 0.005504608154296875, 0.006561279296875, -0.004077911376953125, -0.0100250244140625, -0.0187530517578125, -0.03485107421875, -0.0187530517578125, 0.06475830078125, 0.031097412109375, 0.0251007080078125, -0.028228759765625, -0.043487548828125, -0.0296173095703125, 0.05621337890625, -0.00505828857421875, -0.020599365234375, -0.01174163818359375, 0.01114654541015625, -0.04095458984375, -0.024169921875, 0.01299285888671875, 0.0012226104736328125, -0.0015726089477539062, 0.01178741455078125, -0.0260009765625, 0.010528564453125, 0.0057373046875, -0.006565093994140625, 0.044158935546875, -0.02655029296875, 0.0299072265625, -0.00748443603515625, 0.0018749237060546875, -0.0133514404296875, 0.03753662109375, -0.05780029296875, -0.0054931640625, 0.005107879638671875, -0.051055908203125, -0.006496429443359375, -0.03997802734375, 0.04327392578125, 0.037200927734375, -0.0618896484375, -0.02593994140625, 0.0201568603515625, -0.01543426513671875, 0.01030731201171875, 0.01134490966796875, 0.0182952880859375, -0.0004734992980957031, 0.0408935546875, 0.0088653564453125, -0.002544403076171875, 0.004161834716796875, 0.00954437255859375, -0.0205078125, 0.00952911376953125, -0.0202789306640625, -0.0509033203125, 0.028839111328125, -0.03662109375, -0.10406494140625, -0.0391845703125, -0.003833770751953125, -0.032318115234375, -0.01446533203125, 0.0234527587890625, 0.008056640625, -0.071533203125, 0.06622314453125, 0.050140380859375, 0.01192474365234375, -0.0275421142578125, 0.0743408203125, 0.0030975341796875, -0.055084228515625, -0.048004150390625, -0.00835418701171875, 0.0055389404296875, -0.010223388671875, 0.07177734375, 0.0104217529296875, -0.01430511474609375, 0.07598876953125, -0.0130157470703125, 0.031951904296875, -0.02117919921875, 0.062347412109375, 0.00836944580078125, 0.0031909942626953125, 0.030242919921875, 0.0030498504638671875, -0.0626220703125, 0.0305023193359375, 0.0241546630859375, -0.0458984375, 0.01904296875, 0.0209503173828125, -0.02996826171875, 0.023040771484375, 0.00438690185546875, -0.0711669921875, 0.022918701171875, -0.01544189453125, -0.0162200927734375, 0.0010938644409179688, 0.003940582275390625, 0.00778961181640625, 0.0125885009765625, 0.0146026611328125, 0.012786865234375, -0.018707275390625, -0.00907135009765625, 0.031890869140625, -0.0216522216796875, -0.01239776611328125, 0.032012939453125, 0.004573822021484375, -0.0035305023193359375, -0.04705810546875, -0.033447265625, -0.05487060546875, 0.01349639892578125, 0.0018434524536132812, 0.035247802734375, 0.059906005859375, -0.03790283203125, -0.01441192626953125, 0.016357421875, 0.0124664306640625, 0.0802001953125, 0.0133819580078125, 0.0195159912109375, 0.046142578125, 0.021270751953125, -0.0020923614501953125, 0.01300811767578125, 0.0252685546875, -0.01364898681640625, 0.0130767822265625, -0.00719451904296875, 0.0204010009765625, 0.0123291015625, 0.03717041015625, 0.03656005859375, -0.0648193359375, 0.0020618438720703125, 0.0268096923828125, -0.011566162109375, -0.0236968994140625, -0.0005435943603515625, 0.0274658203125, 0.0140838623046875, -0.046112060546875, -0.031890869140625, 0.037567138671875, 0.00696563720703125, -0.032470703125, 0.0006456375122070312, -0.0188446044921875, -0.032379150390625, -0.029571533203125, -0.01032257080078125, 0.01149749755859375, 0.0291900634765625, 0.047027587890625, -0.0343017578125, 0.020355224609375, -0.033294677734375, -0.00917816162109375, 0.004001617431640625, -0.062744140625, -0.032623291015625, 0.0247802734375, 0.0094146728515625, -0.0267486572265625, -0.041473388671875, -0.019683837890625, -0.0027790069580078125, -0.00030112266540527344, 0.051239013671875, -0.0180816650390625, 0.0274658203125, -0.0277252197265625, -0.002872467041015625, -0.016693115234375, -0.004909515380859375, 0.068603515625, 0.0321044921875, -0.03448486328125, -0.018768310546875, -0.0552978515625, -0.0182952880859375, -0.01593017578125, -0.01934814453125, -0.031036376953125, 0.0229034423828125, -0.002399444580078125, 0.0308685302734375, 0.019317626953125, 0.006862640380859375, -0.0005822181701660156, 0.00598907470703125, -0.002227783203125, 0.022857666015625, -0.038421630859375, 0.051361083984375, 0.0284881591796875, -0.03009033203125, -0.028106689453125, 0.035125732421875, 0.006267547607421875, 0.01654052734375, 0.025970458984375, -0.0046234130859375, -0.004207611083984375, -0.041656494140625, 0.0194244384765625, -0.032623291015625, 0.037017822265625, -0.0113067626953125, 0.0194244384765625, 0.0023326873779296875, 0.00893402099609375, -0.00864410400390625, 0.00867462158203125, -0.006450653076171875, -0.0060272216796875, 0.052490234375, -0.0282135009765625, -0.008087158203125, 0.007007598876953125, -0.00484466552734375, 0.00939178466796875, 0.004550933837890625, -0.0176544189453125, 0.0205230712890625, -0.0198516845703125, 0.032196044921875, 0.036102294921875, -0.00682830810546875, 0.024749755859375, -0.0008859634399414062, -0.0162506103515625, -0.00833892822265625, -0.029693603515625, -0.0026111602783203125, 0.0172576904296875, -0.01519012451171875, -0.046844482421875, 0.0159759521484375, -0.03887939453125, -0.0022411346435546875, 0.044708251953125, 0.050079345703125, 0.10931396484375, -0.0794677734375, 0.01168060302734375, 0.0276336669921875, -0.06878662109375, -0.00827789306640625, 0.00605010986328125, -0.0045318603515625, -0.0220184326171875, 0.0131072998046875, 0.0091094970703125, -0.030853271484375, 0.0195159912109375, 0.0202484130859375, -0.00862884521484375, -0.00891876220703125, 0.0300445556640625, 0.012908935546875, 0.00323486328125, -0.006305694580078125, -0.01389312744140625, 0.01056671142578125, -0.005870819091796875, -0.00351715087890625, -0.0017385482788085938, -0.06219482421875, -0.06793212890625, -0.0372314453125, -0.0173187255859375, -0.02545166015625, -0.0191497802734375, 0.01605224609375, 0.08355712890625, 0.055816650390625, 0.0304107666015625, -0.056732177734375, 0.0172882080078125, 0.07196044921875, 0.007785797119140625, -0.023590087890625, 0.0112457275390625, 0.0858154296875, -0.08697509765625, 0.025421142578125, -0.0192413330078125, 0.03515625, -0.0102691650390625, -0.0200653076171875, 0.0450439453125, -0.004261016845703125, -0.02685546875, -0.01314544677734375, 0.040771484375, 0.0201263427734375, -0.029541015625, 0.00925445556640625, -0.054351806640625, -0.0308380126953125, -0.03424072265625, -0.046142578125, 0.00553131103515625, -0.034027099609375, -0.057586669921875, 0.07427978515625, 0.050140380859375, 0.0285491943359375, 0.009735107421875, 0.0123138427734375, -0.01971435546875, -0.006832122802734375, -0.0245819091796875, 0.048309326171875, 0.047943115234375, 0.01210784912109375, -0.022003173828125, -0.00821685791015625, 0.014892578125, 0.02764892578125, -0.0027027130126953125, -0.006610870361328125, 0.0697021484375, -0.0020294189453125, -0.0046844482421875, 0.0276641845703125, -0.031982421875, -0.04400634765625, 0.032867431640625, 0.05743408203125, 0.050933837890625, -0.035736083984375, 0.0224456787109375, -0.00881195068359375, 0.010772705078125, 0.06439208984375, 0.008392333984375, 0.0166778564453125, -0.0047760009765625, -0.0185546875, -0.005168914794921875, -0.01363372802734375, -0.001087188720703125, -0.01885986328125, -0.04327392578125, 0.0355224609375, -0.016632080078125, 0.002117156982421875, -0.02825927734375, -0.0229034423828125, 0.01727294921875, 0.016326904296875, 0.01332855224609375, 0.037353515625, 0.0219879150390625, 0.0308837890625, 0.01239013671875, 0.004642486572265625, 0.0153045654296875, -0.00870513916015625, 0.036376953125, 0.021026611328125, 0.02215576171875, -0.029754638671875, 0.017669677734375, 0.0550537109375, 0.05267333984375, -0.039947509765625, -0.00026869773864746094, 0.024200439453125, 0.046844482421875, -0.019866943359375, 0.0008263587951660156, 0.033966064453125, 0.00777435302734375, 0.0321044921875, -0.01312255859375, -0.00423431396484375, 0.0540771484375, -0.00762176513671875, 0.0277557373046875, 0.041412353515625, -0.039703369140625, 0.0149383544921875, -0.062042236328125, 0.0206756591796875, -0.009552001953125, 0.0789794921875, 0.0239715576171875, 0.044342041015625, -0.02166748046875, -0.047698974609375, -0.020355224609375, 0.022796630859375, 0.055206298828125, -0.00791168212890625, 0.007038116455078125, 0.0298614501953125, 0.0290679931640625, 0.002414703369140625, 0.0280609130859375, 0.0033779144287109375, 0.0171661376953125, 0.0256195068359375, 0.0120391845703125, 0.0021209716796875, 0.0401611328125, -0.005950927734375, 0.0290985107421875, -0.054443359375, 0.062408447265625, 0.00606536865234375, 0.0199432373046875, -0.02606201171875, 0.0262451171875, 0.025299072265625, -0.004383087158203125, 0.0243988037109375, 0.005340576171875, -0.041168212890625, 0.0091705322265625, -0.002033233642578125, 0.095703125, 0.0149383544921875, -0.02618408203125, 0.01131439208984375, -0.024017333984375, -0.051361083984375, 0.019195556640625, 0.035003662109375, -0.006359100341796875, 0.0290069580078125, 0.05267333984375, -0.06988525390625, 0.032989501953125, 0.058990478515625, -0.003177642822265625, -0.04791259765625, 0.0266876220703125, -0.047271728515625, -0.01611328125, -0.017822265625, 0.002696990966796875, 0.03515625, -0.019073486328125, 0.033599853515625, -0.015045166015625, 0.0084075927734375, 0.010101318359375, 0.0310821533203125, -0.0068511962890625, 0.019683837890625, -0.0121612548828125, 0.013519287109375, 0.029815673828125, -0.0219573974609375, -0.028656005859375, 0.0006761550903320312, 0.009002685546875, -0.0352783203125, 0.0258636474609375, -0.042205810546875, 0.01441192626953125, -0.0007472038269042969, 0.0584716796875, -0.02685546875, -0.041717529296875, -0.02154541015625, 0.01104736328125, 0.0244903564453125, 0.035919189453125, 0.024078369140625, 0.033233642578125, -0.007511138916015625, -0.01322174072265625, 0.0106048583984375, -0.055084228515625, 0.00305938720703125, 0.01947021484375, 0.0099639892578125, -0.0028324127197265625, 0.015411376953125, -0.002361297607421875, 0.009307861328125, 0.0298004150390625, 0.007305145263671875, 0.0210113525390625, 0.0281219482421875, -0.06500244140625, -0.0032501220703125, 0.0276336669921875, 0.0223388671875, 0.0076751708984375, -0.01499176025390625, -0.0273895263671875, -0.04150390625, -0.0294952392578125, -0.015869140625, -0.04412841796875, -0.003025054931640625, 0.033355712890625, -0.0086822509765625, -0.0298309326171875, -0.052032470703125, -0.02947998046875, 0.01303863525390625, -0.02447509765625, 0.0284881591796875, -0.05584716796875, -0.038330078125, 0.00009995698928833008, -0.027252197265625, 0.035797119140625, -0.008758544921875, 0.0285491943359375, -0.043060302734375, -0.0260009765625, 0.0018720626831054688, 0.0401611328125, 0.000972747802734375, 0.0301971435546875, 0.0426025390625, -0.01244354248046875, -0.0239105224609375, 0.047698974609375, 0.021575927734375, 0.09820556640625, -0.0296783447265625, -0.03338623046875, 0.01549530029296875, 0.037384033203125, -0.014190673828125, -0.03839111328125, -0.0174407958984375, -0.00931549072265625, 0.052825927734375, 0.00774383544921875, -0.0107269287109375, -0.01071929931640625, -0.0467529296875, -0.0755615234375, 0.043121337890625, -0.004894256591796875, -0.036285400390625, 0.0139617919921875, 0.007171630859375, 0.0182952880859375, -0.039520263671875, -0.012664794921875, -0.0139312744140625, -0.04840087890625, -0.0233612060546875, 0.016845703125, 0.0031070709228515625, 0.032989501953125, -0.0259857177734375, -0.038726806640625, 0.0082244873046875, 0.0165252685546875, 0.00531768798828125, -0.0165863037109375, 0.00017368793487548828, 0.034210205078125, 0.037567138671875, -0.025604248046875, 0.002185821533203125, 0.0003147125244140625, 0.0163421630859375, -0.023895263671875, -0.011322021484375, 0.0215606689453125, 0.04559326171875, 0.06695556640625, 0.022216796875, 0.0072479248046875, -0.062744140625, 0.0003714561462402344, -0.020111083984375, 0.017333984375, 0.0016841888427734375, -0.0055389404296875, -0.0377197265625, -0.01052093505859375, 0.0101318359375, 0.00879669189453125, -0.006198883056640625, -0.0074920654296875, 0.016815185546875, -0.02276611328125, 0.0633544921875, -0.005443572998046875, 0.02734375, -0.08856201171875, 0.08477783203125, -0.030792236328125, 0.008941650390625, 0.0218658447265625, 0.051666259765625, 0.045562744140625, 0.049072265625, -0.0008420944213867188, 0.0169219970703125, -0.0150909423828125, -0.004093170166015625, 0.006160736083984375, 0.041351318359375, 0.0037975311279296875, -0.01025390625, -0.014434814453125, 0.0264892578125, 0.0208740234375, 0.045196533203125, -0.03533935546875, 0.0640869140625, 0.0341796875, -0.0248260498046875, -0.04168701171875, 0.005222320556640625, -0.0113983154296875, -0.0032367706298828125, -0.050537109375, 0.03350830078125, 0.0165557861328125, -0.03173828125, 0.03289794921875, -0.0172882080078125, 0.0275726318359375, 0.0195159912109375, -0.0367431640625, -0.0562744140625, -0.0247955322265625, -0.00791168212890625 ]
77c5083313d6d359c44f7ca0048e021a54cf6545
Wordpress Stackexchange Q: What happens when two plugins have the same 3rd party class included into them? I am building a plugin that uses Stripe for the payment processing. I have included Stripe's PHP library into my plugin and everything works great. But what if someone else makes a plugin that also uses Stripe ... or worse, an older version of Stripe that isn't compatible with mine? Sounds like there could be conflicts if someone had both of our plugins activated at the same time. Do I need to namespace Stripe's classes? Is that advisable? I imagine that being a maintenance nightmare if I ever want to upgrade to a newer version of Stripe's library. I'm totally OK doing that, but I want to make sure I'm following best practices here. Thanks! Tony A: I went ahead and namespaced Stripe. Everything worked just great. And now I don't have to worry about any one else's Stripe library messing up my stuff. Original: namespace Stripe; New: namespace MyRadNamespace\Stripe; If anyone is interested in seeing how it's done, feel free to browse my repo: https://github.com/Spokane-Wordpress-Development/Freezy-Stripe Cheers!
Q: What happens when two plugins have the same 3rd party class included into them? I am building a plugin that uses Stripe for the payment processing. I have included Stripe's PHP library into my plugin and everything works great. But what if someone else makes a plugin that also uses Stripe ... or worse, an older version of Stripe that isn't compatible with mine? Sounds like there could be conflicts if someone had both of our plugins activated at the same time. Do I need to namespace Stripe's classes? Is that advisable? I imagine that being a maintenance nightmare if I ever want to upgrade to a newer version of Stripe's library. I'm totally OK doing that, but I want to make sure I'm following best practices here. Thanks! Tony A: I went ahead and namespaced Stripe. Everything worked just great. And now I don't have to worry about any one else's Stripe library messing up my stuff. Original: namespace Stripe; New: namespace MyRadNamespace\Stripe; If anyone is interested in seeing how it's done, feel free to browse my repo: https://github.com/Spokane-Wordpress-Development/Freezy-Stripe Cheers! A: As I looked through the link to the repo attached in the answer, I noticed the incredible amount of requice statements in a single file. The main problem is that the repo is missing a autoloader that can be optimized project wide and as well as that the plugin includes all those files no matter if needed or not. When you start using Composer to manage attachments, you will find that it creates an autoload.php file for every single package that you write (or fetch). You can then create complete projects using Composer as package manager, which, as a nice side effect, also creates a centralized autoload.php file instead of one autoloader per included package (plugin/theme/etc). On top of this single autoloader, Composer also builds a "Class > File" map as "cache" to avoid as many disk reads as possible, which will keep class lookups as fast as possible. This will avoid having to namespace vendor namespaced classes. Meaning that in case multiple packages have a composer.json file, there will be only one location where those vendor packages will get saved (therefore saving bandwidth and disk space) and fetched from. Even if one did not ignore vendor files in a VCS controlled package, there is no need to load them anymore. # Before in Package (A) $stripe = new \MyRadNamespace\Stripe; # Before in Package (B) $stripe = new \MyFunkyNamespace\Stripe; # After – anywhere! $stripe = new \Stripe; In case a plugin or theme does not support Composer yet, you can simply fetch it via the WPackagist proxy/mirror service. To get a quick start with the Composer package manager, I suggest using wecodemore/wpstarter by @gmazzap – docs here.
wordpress
{ "language": "en", "length": 460, "provenance": "stackexchange_00019.jsonl.gz:463489", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218784" }
[ 0.057098388671875, 0.0235595703125, -0.031280517578125, -0.08380126953125, 0.033294677734375, -0.015625, -0.021514892578125, 0.0009946823120117188, 0.000675201416015625, -0.005702972412109375, -0.04437255859375, 0.01108551025390625, -0.0753173828125, -0.00846099853515625, -0.01531219482421875, -0.054473876953125, 0.033355712890625, -0.004230499267578125, 0.0258636474609375, 0.005413055419921875, 0.00574493408203125, 0.03076171875, -0.01149749755859375, 0.033447265625, 0.034515380859375, -0.06341552734375, 0.053558349609375, -0.0101165771484375, 0.0170440673828125, -0.0279693603515625, 0.01629638671875, -0.0233154296875, 0.016845703125, 0.034515380859375, -0.0279388427734375, 0.0172882080078125, 0.0281524658203125, 0.00010275840759277344, 0.0013408660888671875, 0.038726806640625, 0.04791259765625, -0.027984619140625, 0.025115966796875, -0.01039886474609375, 0.011322021484375, -0.0266265869140625, 0.062286376953125, -0.030853271484375, 0.03167724609375, 0.03289794921875, 0.01290130615234375, 0.0078582763671875, 0.00974273681640625, 0.02520751953125, -0.016326904296875, -0.0215301513671875, -0.06927490234375, 0.045074462890625, 0.016387939453125, 0.074951171875, 0.0077972412109375, -0.007282257080078125, -0.019927978515625, -0.0472412109375, -0.00933837890625, 0.0023040771484375, -0.034027099609375, -0.00234222412109375, -0.0193939208984375, 0.0011987686157226562, 0.034332275390625, -0.0377197265625, -0.00504302978515625, 0.01229095458984375, -0.0237884521484375, -0.03790283203125, 0.04510498046875, -0.037200927734375, 0.0003159046173095703, 0.032012939453125, -0.0133514404296875, 0.034393310546875, -0.035614013671875, -0.0531005859375, 0.019195556640625, -0.0190887451171875, -0.0229339599609375, -0.006317138671875, -0.0218658447265625, 0.0026645660400390625, -0.0180511474609375, -0.038055419921875, -0.01277923583984375, 0.037261962890625, 0.0164947509765625, -0.01340484619140625, -0.03826904296875, 0.007343292236328125, -0.00926971435546875, 0.05645751953125, -0.0093536376953125, -0.034942626953125, 0.072265625, -0.05889892578125, -0.001064300537109375, 0.02044677734375, -0.0162811279296875, -0.026336669921875, 0.0213623046875, 0.029388427734375, -0.01163482666015625, 0.0248260498046875, 0.006931304931640625, -0.060882568359375, 0.01214599609375, 0.0107574462890625, -0.01361846923828125, 0.00977325439453125, 0.03265380859375, -0.05364990234375, -0.004329681396484375, 0.019073486328125, -0.004413604736328125, -0.04095458984375, 0.00971221923828125, -0.00722503662109375, -0.003940582275390625, -0.0311279296875, -0.0024204254150390625, -0.034149169921875, -0.0010442733764648438, 0.054473876953125, 0.0501708984375, 0.0070648193359375, -0.0294036865234375, 0.0186004638671875, 0.0179443359375, 0.027008056640625, 0.019989013671875, -0.0029621124267578125, 0.01201629638671875, -0.00860595703125, 0.00830841064453125, -0.006809234619140625, 0.01436614990234375, 0.0120391845703125, 0.00469207763671875, 0.0147247314453125, -0.001270294189453125, 0.017669677734375, 0.01125335693359375, -0.04095458984375, -0.00939178466796875, 0.01291656494140625, 0.0215301513671875, 0.03228759765625, 0.004550933837890625, -0.0041656494140625, -0.00931549072265625, 0.01190185546875, -0.00751495361328125, -0.0098876953125, 0.0293121337890625, -0.043365478515625, -0.042938232421875, -0.005184173583984375, -0.01071929931640625, 0.006000518798828125, 0.01323699951171875, -0.05218505859375, 0.0026493072509765625, 0.0214996337890625, 0.01003265380859375, 0.018890380859375, 0.011260986328125, 0.01617431640625, 0.00778961181640625, 0.05792236328125, 0.024261474609375, -0.01422119140625, -0.0250396728515625, -0.044219970703125, 0.09429931640625, -0.043182373046875, -0.0640869140625, 0.002506256103515625, 0.00116729736328125, 0.0343017578125, 0.0234375, 0.00455474853515625, 0.07177734375, 0.019256591796875, -0.010101318359375, -0.005641937255859375, -0.0222930908203125, 0.01073455810546875, 0.007160186767578125, 0.0396728515625, -0.00743865966796875, -0.036712646484375, 0.0037670135498046875, 0.03118896484375, -0.00946807861328125, 0.040496826171875, -0.0145111083984375, 0.030120849609375, -0.0156707763671875, 0.0191802978515625, -0.0032024383544921875, 0.040283203125, 0.01102447509765625, 0.023895263671875, -0.0380859375, 0.02197265625, 0.0281982421875, 0.005519866943359375, -0.035858154296875, 0.020904541015625, 0.0294952392578125, 0.01025390625, 0.06939697265625, -0.005588531494140625, 0.060943603515625, -0.0210113525390625, -0.040863037109375, 0.01055145263671875, -0.03131103515625, 0.0170440673828125, -0.069580078125, 0.0193634033203125, 0.0081329345703125, 0.0072021484375, -0.0147552490234375, 0.062286376953125, 0.007022857666015625, -0.04779052734375, -0.01165771484375, -0.056304931640625, 0.047454833984375, 0.044830322265625, 0.031829833984375, 0.0027904510498046875, -0.00018036365509033203, 0.00513458251953125, 0.0052337646484375, -0.0552978515625, 0.0022411346435546875, -0.007110595703125, 0.01788330078125, 0.0406494140625, -0.0037746429443359375, -0.01262664794921875, 0.03125, 0.00860595703125, -0.00780487060546875, 0.04107666015625, -0.0150146484375, -0.03369140625, -0.006465911865234375, -0.0223236083984375, 0.0239715576171875, -0.055023193359375, -0.054229736328125, 0.0006899833679199219, -0.048736572265625, -0.0246734619140625, -0.0037746429443359375, -0.003997802734375, 0.0209808349609375, -0.051422119140625, 0.01296234130859375, 0.00725555419921875, -0.0013141632080078125, 0.046966552734375, -0.0026645660400390625, 0.06878662109375, -0.0440673828125, -0.01157379150390625, 0.00682830810546875, 0.048309326171875, -0.0189056396484375, 0.0125732421875, -0.047149658203125, -0.011627197265625, -0.031585693359375, 0.0008115768432617188, 0.0057220458984375, 0.008880615234375, -0.0190277099609375, -0.058990478515625, -0.0124053955078125, 0.0242919921875, -0.01611328125, 0.03875732421875, 0.000888824462890625, -0.0279541015625, -0.000949859619140625, 0.0248260498046875, -0.01474761962890625, 0.002655029296875, 0.0111846923828125, 0.035125732421875, 0.0087738037109375, -0.0258331298828125, -0.0014257431030273438, 0.0191650390625, 0.033843994140625, -0.01534271240234375, -0.0273895263671875, 0.00772857666015625, -0.061798095703125, -0.031219482421875, 0.0283966064453125, 0.08416748046875, -0.03167724609375, -0.052001953125, -0.012908935546875, 0.053924560546875, -0.05914306640625, -0.061676025390625, 0.005615234375, -0.042083740234375, 0.04083251953125, -0.0153045654296875, -0.0158538818359375, -0.036407470703125, 0.0261077880859375, 0.00930023193359375, 0.049224853515625, -0.051239013671875, -0.0657958984375, -0.07550048828125, -0.0892333984375, 0.001369476318359375, 0.0080718994140625, 0.00441741943359375, -0.01312255859375, 0.06243896484375, -0.018524169921875, -0.07763671875, -0.04620361328125, 0.0202789306640625, -0.0026340484619140625, -0.00936126708984375, 0.0103759765625, -0.00470733642578125, -0.0188140869140625, 0.00626373291015625, 0.01169586181640625, 0.0027923583984375, -0.019561767578125, -0.0201568603515625, 0.024505615234375, -0.041259765625, 0.0132598876953125, 0.0120086669921875, -0.028350830078125, -0.01222991943359375, 0.02288818359375, -0.06500244140625, -0.01580810546875, 0.001251220703125, -0.049346923828125, -0.0204925537109375, 0.02496337890625, -0.005672454833984375, -0.0221710205078125, -0.016387939453125, -0.053192138671875, -0.02734375, -0.04571533203125, -0.07373046875, 0.11688232421875, -0.00371551513671875, 0.01242828369140625, 0.032958984375, -0.015960693359375, -0.05291748046875, -0.02117919921875, -0.0382080078125, -0.034637451171875, -0.033538818359375, 0.0195770263671875, -0.0215606689453125, -0.003265380859375, 0.0111083984375, -0.041290283203125, 0.0277862548828125, -0.02618408203125, 0.010986328125, -0.0164031982421875, 0.041534423828125, -0.05621337890625, -0.00926971435546875, 0.042724609375, -0.0015277862548828125, 0.0005002021789550781, 0.01129150390625, -0.06494140625, -0.039398193359375, 0.031402587890625, -0.048614501953125, -0.0250244140625, -0.00897216796875, 0.0005068778991699219, -0.0028247833251953125, 0.02386474609375, -0.0071258544921875, 0.015167236328125, -0.0599365234375, 0.0255126953125, -0.01287078857421875, 0.02685546875, -0.05810546875, 0.0195465087890625, -0.0435791015625, -0.06317138671875, 0.01093292236328125, -0.07452392578125, 0.027923583984375, 0.033111572265625, -0.0034236907958984375, 0.0031223297119140625, 0.041046142578125, -0.0098876953125, 0.058807373046875, -0.0217437744140625, -0.0015268325805664062, 0.03277587890625, -0.007175445556640625, 0.0106201171875, -0.0017366409301757812, 0.024688720703125, 0.04656982421875, -0.06121826171875, 0.0008115768432617188, -0.00506591796875, -0.0477294921875, 0.0518798828125, -0.08203125, -0.039703369140625, -0.0302886962890625, -0.0240631103515625, -0.01406097412109375, -0.0010051727294921875, -0.021728515625, -0.0024356842041015625, -0.027069091796875, 0.006641387939453125, -0.0223846435546875, -0.01151275634765625, 0.028656005859375, 0.10345458984375, 0.016021728515625, 0.011322021484375, -0.061370849609375, 0.0189208984375, 0.01305389404296875, 0.014434814453125, 0.03399658203125, -0.015777587890625, -0.0163116455078125, 0.06329345703125, -0.016998291015625, 0.033447265625, -0.0018930435180664062, 0.0533447265625, -0.0084991455078125, -0.0264434814453125, 0.0228118896484375, 0.0005540847778320312, -0.0428466796875, 0.0007691383361816406, -0.006191253662109375, 0.01250457763671875, 0.0013341903686523438, -0.0418701171875, -0.01084136962890625, 0.0254364013671875, 0.04119873046875, -0.031097412109375, 0.012176513671875, -0.03985595703125, 0.031982421875, 0.03399658203125, -0.0119476318359375, 0.0290985107421875, -0.0010852813720703125, -0.007678985595703125, 0.035675048828125, 0.054443359375, -0.00811767578125, 0.02532958984375, 0.019744873046875, -0.0254058837890625, -0.021453857421875, -0.00859832763671875, 0.07159423828125, 0.031097412109375, -0.02978515625, -0.004718780517578125, 0.0050201416015625, -0.020599365234375, -0.005657196044921875, 0.00007265806198120117, 0.0286407470703125, -0.01343536376953125, -0.016876220703125, -0.0150604248046875, 0.0014505386352539062, -0.05401611328125, -0.033447265625, 0.028228759765625, 0.0184173583984375, -0.01250457763671875, -0.010498046875, 0.012542724609375, 0.01329803466796875, -0.005584716796875, 0.001708984375, 0.048004150390625, 0.035125732421875, 0.0191192626953125, 0.0032825469970703125, 0.008941650390625, -0.033294677734375, 0.009674072265625, -0.010009765625, -0.0008950233459472656, -0.00769805908203125, -0.032135009765625, -0.0007662773132324219, -0.033843994140625, -0.019805908203125, 0.048370361328125, -0.006687164306640625, -0.0184478759765625, -0.0257415771484375, -0.01702880859375, 0.01502227783203125, -0.024383544921875, -0.0254974365234375, 0.030609130859375, 0.029296875, 0.004573822021484375, -0.0059814453125, 0.0072021484375, -0.004817962646484375, 0.051971435546875, -0.0550537109375, 0.0195465087890625, 0.03009033203125, 0.055267333984375, -0.0289306640625, -0.01410675048828125, -0.030059814453125, 0.043548583984375, -0.047943115234375, 0.0000870823860168457, 0.05560302734375, -0.0146484375, 0.059906005859375, -0.0159912109375, -0.05535888671875, -0.0272674560546875, -0.0024662017822265625, 0.0731201171875, 0.051971435546875, -0.0146484375, 0.0007424354553222656, -0.053863525390625, -0.047515869140625, -0.019989013671875, -0.033935546875, -0.06561279296875, -0.0110931396484375, -0.0156402587890625, 0.00989532470703125, -0.03021240234375, -0.01184844970703125, -0.0057220458984375, 0.0239410400390625, -0.004192352294921875, -0.0021762847900390625, -0.058685302734375, 0.03875732421875, 0.04052734375, 0.03033447265625, -0.01290130615234375, -0.0018301010131835938, 0.006679534912109375, -0.00586700439453125, -0.00946044921875, -0.07232666015625, -0.0117950439453125, -0.012451171875, -0.01105499267578125, 0.071044921875, 0.0626220703125, 0.02008056640625, -0.01036834716796875, -0.00726318359375, 0.0105438232421875, 0.0083770751953125, 0.01507568359375, 0.01171875, -0.07659912109375, 0.0782470703125, -0.0166015625, 0.02520751953125, -0.0400390625, -0.01560211181640625, 0.00894927978515625, -0.018798828125, 0.005596160888671875, 0.05230712890625, -0.01120758056640625, 0.01025390625, 0.004772186279296875, -0.040863037109375, 0.005298614501953125, 0.00554656982421875, -0.00547027587890625, 0.021697998046875, 0.004913330078125, -0.003505706787109375, 0.0013790130615234375, 0.001834869384765625, -0.0240631103515625, 0.0034542083740234375, -0.0133209228515625, -0.0038623809814453125, 0.0036907196044921875, 0.060760498046875, 0.06707763671875, -0.056884765625, -0.0125732421875, 0.0192108154296875, -0.01450347900390625, 0.000865936279296875, 0.015289306640625, -0.024810791015625, -0.0513916015625, -0.0261077880859375, -0.0031261444091796875, -0.0208892822265625, -0.02001953125, 0.004180908203125, -0.0251922607421875, -0.01763916015625, 0.007843017578125, 0.0311126708984375, 0.019744873046875, 0.0276947021484375, -0.01401519775390625, 0.03192138671875, -0.0030460357666015625, -0.02154541015625, 0.030029296875, -0.039794921875, -0.0274505615234375, 0.0226593017578125, -0.0364990234375, 0.004108428955078125, -0.05950927734375, -0.0129852294921875, 0.01922607421875, 0.0401611328125, -0.03631591796875, 0.0034465789794921875, 0.0238189697265625, 0.01861572265625, 0.0043182373046875, -0.016143798828125, 0.0097808837890625, 0.0419921875, -0.0223388671875, 0.011627197265625, -0.0085601806640625, 0.003406524658203125, -0.00981903076171875, 0.035919189453125, 0.06396484375, -0.036834716796875, -0.01415252685546875, 0.041351318359375, 0.047821044921875, -0.017364501953125, 0.02288818359375, -0.03778076171875, -0.043914794921875, -0.02178955078125, 0.003108978271484375, -0.038818359375, 0.05401611328125, 0.04071044921875, -0.067138671875, 0.0802001953125, 0.032867431640625, 0.028472900390625, 0.0161590576171875, 0.0198822021484375, -0.06768798828125, -0.023681640625, 0.0078582763671875, 0.0190887451171875, -0.060028076171875, 0.0341796875, -0.019256591796875, 0.007904052734375, 0.0146026611328125, 0.0229644775390625, 0.01424407958984375, 0.00655364990234375, -0.0027313232421875, -0.015167236328125, -0.01116180419921875, 0.0128631591796875, -0.03265380859375, 0.0174560546875, 0.034515380859375, -0.029937744140625, 0.0189361572265625, 0.05535888671875, 0.06060791015625, -0.0494384765625, -0.00643157958984375, 0.048065185546875, 0.0250091552734375, 0.01483917236328125, 0.0156707763671875, 0.044464111328125, 0.005950927734375, -0.0059814453125, 0.01067352294921875, 0.01320648193359375, 0.049774169921875, 0.003498077392578125, 0.01824951171875, 0.049652099609375, -0.033355712890625, 0.0185394287109375, 0.029083251953125, -0.00722503662109375, -0.0174713134765625, -0.015838623046875, -0.005390167236328125, 0.032958984375, -0.00399017333984375, -0.040679931640625, 0.04052734375, 0.0115814208984375, 0.0247039794921875, 0.0178375244140625, 0.042572021484375, -0.0025882720947265625, -0.0254058837890625, -0.0010461807250976562, 0.02471923828125, -0.0032596588134765625, -0.0268096923828125, 0.008880615234375, 0.01380157470703125, 0.020233154296875, -0.0149383544921875, 0.0137786865234375, -0.045379638671875, -0.00879669189453125, -0.033843994140625, -0.00600433349609375, 0.027923583984375, -0.0068511962890625, -0.0014867782592773438, -0.008575439453125, -0.003101348876953125, 0.01248931884765625, -0.048583984375, 0.060516357421875, 0.0139312744140625, 0.0340576171875, -0.0178680419921875, 0.04998779296875, -0.0258331298828125, -0.01479339599609375, -0.00330352783203125, 0.040924072265625, -0.0048980712890625, 0.01763916015625, -0.061676025390625, -0.080078125, 0.07391357421875, 0.040313720703125, -0.013458251953125, -0.004917144775390625, 0.035400390625, 0.040496826171875, -0.0144500732421875, -0.0264434814453125, 0.033477783203125, -0.01031494140625, -0.01378631591796875, 0.0054473876953125, -0.062255859375, 0.004543304443359375, -0.0460205078125, 0.0279388427734375, -0.039794921875, 0.0460205078125, -0.00421142578125, -0.03533935546875, 0.010986328125, -0.051025390625, 0.0235595703125, -0.005855560302734375, 0.024658203125, 0.0225067138671875, -0.0108184814453125, -0.004344940185546875, 0.0005936622619628906, -0.00946044921875, -0.032867431640625, 0.0146636962890625, 0.036163330078125, 0.006488800048828125, 0.046295166015625, -0.018341064453125, -0.01435089111328125, 0.01047515869140625, 0.022003173828125, -0.0086822509765625, 0.0111236572265625, 0.0183868408203125, 0.0623779296875, 0.019134521484375, 0.03033447265625, 0.032073974609375, 0.059539794921875, -0.0240325927734375, -0.0027599334716796875, 0.0382080078125, 0.0144805908203125, 0.00994873046875, -0.016387939453125, -0.0274810791015625, 0.0767822265625, -0.0287628173828125, -0.029693603515625, -0.013458251953125, -0.0146636962890625, -0.00739288330078125, 0.047760009765625, -0.02386474609375, -0.042388916015625, 0.018096923828125, 0.03839111328125, 0.02093505859375, 0.0186767578125, -0.0211334228515625, 0.0007376670837402344, -0.01111602783203125, -0.028900146484375, 0.034759521484375, 0.0261993408203125, -0.0018558502197265625, 0.010589599609375, 0.028564453125, -0.007686614990234375, 0.0196685791015625, -0.00140380859375, -0.0204925537109375, 0.0183868408203125, 0.024017333984375, -0.07135009765625, -0.04571533203125, -0.03216552734375, -0.032379150390625, 0.0021877288818359375, 0.0296478271484375, -0.031829833984375, -0.0293731689453125, 0.05059814453125, 0.070068359375, 0.03955078125, -0.0123291015625, 0.0031681060791015625, 0.0552978515625, -0.033935546875, 0.035552978515625, -0.0158843994140625, -0.038818359375, -0.0252227783203125, 0.0035247802734375, 0.018157958984375, 0.01763916015625, -0.0230560302734375, -0.06085205078125, 0.01383209228515625, 0.03179931640625, 0.0168914794921875, -0.041351318359375, 0.00014543533325195312, -0.013916015625, 0.056488037109375, 0.01432037353515625, -0.007701873779296875, -0.00763702392578125, 0.0182647705078125, -0.050811767578125, -0.03814697265625, -0.048065185546875, 0.0279388427734375, -0.040435791015625, 0.031402587890625, 0.060455322265625, -0.056060791015625, 0.015045166015625, -0.00026154518127441406, 0.068115234375, 0.0249786376953125, 0.004730224609375, -0.0303497314453125, 0.00959014892578125, -0.02496337890625, -0.0054473876953125, -0.0224456787109375, 0.00637054443359375, -0.05255126953125, -0.02117919921875, -0.01338958740234375, 0.01256561279296875, 0.028411865234375, -0.0201873779296875, -0.033782958984375, 0.06378173828125, -0.0028438568115234375, -0.0289154052734375, -0.04345703125, -0.01019287109375, -0.005001068115234375, 0.027801513671875, -0.01812744140625, -0.0186309814453125, -0.027679443359375, 0.045867919921875, 0.0039520263671875, 0.06951904296875, -0.0214996337890625, 0.00597381591796875, 0.0321044921875, 0.05523681640625, 0.047637939453125, -0.0009055137634277344, -0.032867431640625, -0.0016431808471679688, -0.00200653076171875, 0.01239776611328125, -0.0277862548828125, 0.00962066650390625, 0.018096923828125, 0.0152130126953125, -0.0013942718505859375, -0.0308685302734375, -0.01409912109375, -0.01499176025390625, 0.08489990234375, 0.01493072509765625, 0.0223846435546875, -0.02618408203125, 0.0010766983032226562, -0.04656982421875, -0.01483154296875, 0.0250396728515625, -0.01100921630859375, -0.0027675628662109375, 0.043304443359375, -0.0025310516357421875, -0.038848876953125, -0.016082763671875, 0.024383544921875, -0.036102294921875, 0.0099029541015625, -0.0207366943359375, -0.0665283203125, 0.0263214111328125, 0.0012569427490234375, 0.0017824172973632812, -0.0030498504638671875, 0.01216888427734375, -0.01471710205078125, -0.00202178955078125, -0.0205535888671875, 0.029693603515625, 0.038787841796875, -0.0182647705078125, -0.039642333984375, 0.0252532958984375, 0.0126495361328125, 0.01158905029296875, -0.0323486328125, -0.046875, 0.0018968582153320312, 0.0245361328125, 0.01128387451171875, 0.041351318359375, -0.01464080810546875, 0.0308685302734375, 0.0006642341613769531, -0.0174102783203125, 0.001514434814453125, -0.03704833984375, -0.01201629638671875, 0.01120758056640625, 0.00556182861328125, -0.00705718994140625, 0.03314208984375, -0.02227783203125, 0.019561767578125, -0.01544189453125, 0.0240478515625, -0.0223236083984375, 0.04315185546875, -0.0159912109375, -0.007770538330078125, 0.031341552734375 ]
36fd8a6715ac3bac01780a95eead1b2988e6f120
Wordpress Stackexchange Q: Parent comment's author name I was really suprised when I couldn't find WP functionality to display the person's name who was replied to.. Any way around this problem? How do I get the name of parent comment's author? A: In your comment callback, you could get that info with the help of the comment_parent property of the current $comment object. We can then use the comment_author() function to display the comment author's name: // Display the parent comment author's name: if( $comment->comment_parent ) comment_author( $comment->comment_parent ); and the comment_author_link() function to display the comment author's link: // Display the parent comment author's link: if( $comment->comment_parent ) comment_author_link( $comment->comment_parent );
Q: Parent comment's author name I was really suprised when I couldn't find WP functionality to display the person's name who was replied to.. Any way around this problem? How do I get the name of parent comment's author? A: In your comment callback, you could get that info with the help of the comment_parent property of the current $comment object. We can then use the comment_author() function to display the comment author's name: // Display the parent comment author's name: if( $comment->comment_parent ) comment_author( $comment->comment_parent ); and the comment_author_link() function to display the comment author's link: // Display the parent comment author's link: if( $comment->comment_parent ) comment_author_link( $comment->comment_parent );
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:463502", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218824" }
[ -0.00644683837890625, 0.0021457672119140625, -0.040069580078125, -0.03472900390625, -0.023223876953125, 0.0003383159637451172, -0.045013427734375, -0.006744384765625, -0.00649261474609375, 0.0440673828125, -0.002696990966796875, 0.013763427734375, -0.020477294921875, -0.00739288330078125, -0.04022216796875, -0.038299560546875, 0.049285888671875, -0.0010709762573242188, 0.051605224609375, 0.016204833984375, -0.0009908676147460938, 0.03607177734375, 0.03448486328125, 0.02996826171875, 0.0655517578125, -0.058502197265625, 0.1182861328125, -0.0307769775390625, 0.0601806640625, -0.0183563232421875, 0.04620361328125, -0.046051025390625, -0.0118560791015625, 0.027496337890625, 0.00519561767578125, -0.01105499267578125, -0.021453857421875, 0.032073974609375, 0.0299835205078125, 0.0144500732421875, 0.01409912109375, -0.00565338134765625, -0.05572509765625, 0.0095672607421875, -0.0472412109375, -0.03271484375, 0.00677490234375, -0.0021343231201171875, 0.039093017578125, 0.004802703857421875, 0.01552581787109375, 0.04510498046875, 0.01099395751953125, -0.00460052490234375, -0.0207977294921875, -0.010589599609375, 0.0215911865234375, 0.03729248046875, 0.017608642578125, -0.08917236328125, -0.040069580078125, 0.0335693359375, 0.0303802490234375, 0.05657958984375, 0.02764892578125, 0.00891876220703125, 0.034515380859375, 0.0294647216796875, 0.040252685546875, 0.0357666015625, -0.0212249755859375, 0.007965087890625, -0.01320648193359375, 0.00432586669921875, -0.032135009765625, -0.04925537109375, 0.01261138916015625, -0.061126708984375, 0.0188751220703125, 0.0258331298828125, -0.0166778564453125, -0.007049560546875, -0.064453125, -0.0104217529296875, 0.0205841064453125, 0.005767822265625, -0.01800537109375, -0.01416015625, -0.055755615234375, 0.005275726318359375, -0.0309906005859375, -0.0946044921875, -0.01241302490234375, 0.044525146484375, 0.0036773681640625, -0.00725555419921875, 0.026031494140625, 0.07806396484375, -0.05877685546875, -0.042205810546875, -0.02899169921875, 0.0095672607421875, -0.055816650390625, -0.01031494140625, -0.0138397216796875, 0.02325439453125, 0.02435302734375, -0.0217437744140625, 0.004058837890625, 0.01666259765625, -0.0016651153564453125, -0.002857208251953125, -0.021240234375, -0.031585693359375, -0.00005418062210083008, 0.0435791015625, -0.039520263671875, 0.022247314453125, 0.005443572998046875, 0.01800537109375, -0.006847381591796875, -0.0008034706115722656, -0.0222930908203125, 0.0259552001953125, 0.017608642578125, 0.0018491744995117188, -0.0113372802734375, 0.0220184326171875, 0.01129913330078125, -0.0093841552734375, -0.044891357421875, 0.0202484130859375, 0.07525634765625, 0.0172882080078125, 0.0200653076171875, -0.01654052734375, 0.0160675048828125, 0.044586181640625, -0.004573822021484375, -0.0023193359375, 0.01129913330078125, -0.0179595947265625, 0.00691986083984375, -0.00438690185546875, -0.0295257568359375, 0.00972747802734375, 0.027679443359375, 0.018096923828125, -0.0257415771484375, -0.0380859375, -0.007419586181640625, 0.0009288787841796875, 0.026519775390625, -0.003162384033203125, 0.01849365234375, -0.045135498046875, 0.0143890380859375, -0.04486083984375, 0.03466796875, -0.040802001953125, -0.002368927001953125, 0.011138916015625, 0.033966064453125, 0.00839996337890625, -0.010040283203125, -0.00997161865234375, -0.02325439453125, -0.007598876953125, 0.020477294921875, -0.01345062255859375, 0.0188751220703125, -0.027587890625, -0.0237274169921875, 0.018463134765625, 0.010589599609375, 0.0253753662109375, -0.01715087890625, -0.005046844482421875, 0.0029087066650390625, 0.046905517578125, 0.0178070068359375, -0.0237274169921875, -0.046875, 0.040252685546875, 0.0008077621459960938, 0.004779815673828125, 0.040130615234375, 0.04718017578125, -0.03131103515625, 0.0288848876953125, -0.0225982666015625, 0.0364990234375, -0.037017822265625, -0.00960540771484375, -0.005344390869140625, 0.011505126953125, -0.005069732666015625, 0.016357421875, -0.0093994140625, 0.001129150390625, -0.004852294921875, -0.0182952880859375, 0.01035308837890625, 0.00511932373046875, -0.0693359375, 0.0208892822265625, -0.037933349609375, 0.04058837890625, 0.04473876953125, 0.020782470703125, -0.00244140625, -0.00443267822265625, -0.005672454833984375, -0.0367431640625, -0.041473388671875, 0.01959228515625, -0.014007568359375, -0.01079559326171875, 0.00824737548828125, 0.01352691650390625, -0.00299835205078125, 0.034820556640625, -0.014373779296875, -0.00014066696166992188, 0.033050537109375, -0.0251617431640625, -0.02398681640625, -0.0280914306640625, 0.01268768310546875, -0.0014886856079101562, -0.051910400390625, 0.034271240234375, 0.002269744873046875, 0.00751495361328125, -0.0110626220703125, 0.00597381591796875, 0.01511383056640625, -0.059478759765625, 0.0236663818359375, 0.03961181640625, 0.021728515625, 0.0001285076141357422, 0.01125335693359375, 0.0296478271484375, 0.037994384765625, 0.00836944580078125, 0.0164947509765625, -0.0148468017578125, 0.02435302734375, 0.04473876953125, -0.0287017822265625, -0.024169921875, 0.02850341796875, -0.0792236328125, -0.0002651214599609375, 0.036834716796875, -0.0125885009765625, 0.0025634765625, -0.050872802734375, 0.041900634765625, -0.0083160400390625, -0.029876708984375, 0.012969970703125, -0.0377197265625, -0.02105712890625, -0.0197601318359375, -0.01800537109375, -0.0102081298828125, -0.020172119140625, -0.01239013671875, 0.0305938720703125, 0.01291656494140625, 0.00146484375, 0.0618896484375, -0.0116119384765625, -0.018585205078125, 0.021331787109375, -0.0251617431640625, -0.038238525390625, 0.01544189453125, -0.00920867919921875, 0.0149993896484375, 0.00537872314453125, -0.00868988037109375, -0.02423095703125, -0.02191162109375, 0.0257415771484375, 0.0266265869140625, -0.047149658203125, -0.0077056884765625, 0.00583648681640625, 0.06915283203125, 0.0035076141357421875, -0.000006318092346191406, 0.00594329833984375, 0.022979736328125, 0.0067901611328125, -0.0217742919921875, 0.0443115234375, -0.037841796875, 0.019287109375, 0.053741455078125, -0.01065826416015625, -0.0015506744384765625, 0.00928497314453125, -0.0199737548828125, 0.0024871826171875, 0.0021457672119140625, 0.006134033203125, 0.00936126708984375, -0.0257568359375, 0.0462646484375, 0.01042938232421875, 0.07672119140625, -0.0484619140625, -0.04443359375, -0.019012451171875, 0.025726318359375, -0.0208282470703125, -0.0248260498046875, 0.00959014892578125, -0.0670166015625, -0.0234375, -0.01849365234375, -0.03582763671875, -0.0007925033569335938, -0.0005483627319335938, -0.0124664306640625, 0.01093292236328125, -0.050872802734375, -0.07806396484375, -0.06439208984375, -0.09136962890625, -0.00704193115234375, -0.00007092952728271484, 0.0233154296875, 0.0027790069580078125, 0.0131683349609375, 0.0031147003173828125, -0.030975341796875, -0.0238494873046875, -0.00682830810546875, -0.0080413818359375, -0.03265380859375, -0.022796630859375, 0.0069122314453125, 0.0087127685546875, 0.004497528076171875, -0.055450439453125, 0.010101318359375, 0.0012969970703125, -0.017486572265625, 0.01201629638671875, 0.0439453125, 0.048583984375, 0.017486572265625, -0.023651123046875, 0.053009033203125, 0.047607421875, -0.024169921875, -0.0183563232421875, -0.01806640625, -0.041534423828125, -0.0083160400390625, 0.02777099609375, 0.0038890838623046875, -0.0540771484375, 0.0245208740234375, 0.0171356201171875, 0.00821685791015625, 0.00836181640625, 0.004756927490234375, 0.0216064453125, 0.01189422607421875, 0.0236968994140625, -0.01090240478515625, 0.001544952392578125, -0.0230712890625, -0.0007472038269042969, -0.0185089111328125, 0.00909423828125, -0.0227813720703125, 0.0023555755615234375, -0.04425048828125, -0.031768798828125, 0.041534423828125, -0.0278167724609375, -0.004482269287109375, -0.039306640625, -0.0210723876953125, -0.0137786865234375, 0.0634765625, 0.0241851806640625, -0.01419830322265625, -0.00921630859375, 0.0041656494140625, -0.04339599609375, -0.0198211669921875, -0.034820556640625, -0.00015723705291748047, -0.0256500244140625, 0.036590576171875, 0.0104827880859375, -0.006053924560546875, -0.037445068359375, 0.049896240234375, -0.0200653076171875, -0.0010118484497070312, 0.0252685546875, -0.0379638671875, -0.03338623046875, 0.041168212890625, -0.062347412109375, 0.04315185546875, -0.0178985595703125, -0.025970458984375, -0.04644775390625, -0.0239410400390625, -0.021392822265625, 0.05029296875, -0.0012760162353515625, 0.00777435302734375, -0.023712158203125, 0.038360595703125, 0.0192108154296875, 0.0283660888671875, 0.0011930465698242188, -0.004138946533203125, -0.0030117034912109375, 0.006114959716796875, 0.01165771484375, -0.0122222900390625, -0.007152557373046875, 0.01001739501953125, -0.0127410888671875, 0.047760009765625, -0.0172271728515625, 0.001232147216796875, 0.016510009765625, -0.027679443359375, 0.0009756088256835938, -0.06060791015625, -0.040618896484375, 0.0394287109375, -0.01233673095703125, 0.027740478515625, -0.07452392578125, -0.041717529296875, 0.0129852294921875, -0.02569580078125, -0.0101470947265625, 0.0005402565002441406, 0.053619384765625, 0.0269622802734375, -0.00870513916015625, 0.031402587890625, -0.029388427734375, 0.0103607177734375, 0.006732940673828125, 0.03558349609375, 0.0038967132568359375, -0.0173797607421875, 0.044952392578125, -0.00852203369140625, 0.0142364501953125, 0.00916290283203125, 0.048614501953125, -0.010833740234375, -0.024932861328125, 0.04315185546875, -0.0071258544921875, -0.0138397216796875, 0.00225830078125, -0.024200439453125, 0.005893707275390625, -0.0222930908203125, 0.0455322265625, -0.035064697265625, 0.050506591796875, -0.040802001953125, -0.05029296875, 0.01727294921875, -0.08184814453125, 0.043212890625, 0.0159454345703125, -0.0018911361694335938, 0.0206146240234375, 0.00909423828125, 0.0389404296875, -0.0428466796875, -0.03582763671875, -0.0335693359375, 0.03973388671875, -0.04644775390625, -0.0006470680236816406, 0.01419830322265625, -0.0153350830078125, 0.11541748046875, 0.0452880859375, -0.029937744140625, 0.055389404296875, -0.0298919677734375, -0.032562255859375, -0.022064208984375, 0.012969970703125, 0.016326904296875, 0.00807952880859375, 0.009613037109375, 0.00408172607421875, -0.0279388427734375, 0.02978515625, -0.01335906982421875, 0.0230712890625, -0.01435089111328125, 0.016448974609375, -0.01448822021484375, 0.08380126953125, -0.005069732666015625, 0.032958984375, -0.02130126953125, -0.006282806396484375, -0.01544189453125, 0.044342041015625, 0.028076171875, -0.023345947265625, 0.032684326171875, -0.004131317138671875, 0.026763916015625, -0.0130157470703125, 0.00978851318359375, 0.042938232421875, 0.032470703125, 0.049041748046875, 0.0009012222290039062, -0.0194091796875, -0.031829833984375, -0.0122528076171875, 0.009063720703125, 0.035736083984375, -0.00557708740234375, 0.007720947265625, -0.0158233642578125, -0.02020263671875, 0.0247650146484375, -0.0196533203125, -0.01953125, -0.038116455078125, -0.021148681640625, 0.0084075927734375, -0.040740966796875, 0.0293121337890625, 0.020721435546875, -0.0286712646484375, 0.0004949569702148438, 0.007801055908203125, -0.04931640625, -0.028564453125, -0.01392364501953125, -0.02423095703125, 0.0540771484375, 0.00614166259765625, 0.015777587890625, -0.032745361328125, 0.0111541748046875, -0.018463134765625, -0.018280029296875, 0.07452392578125, 0.02734375, -0.0278778076171875, 0.006092071533203125, -0.058380126953125, -0.0115509033203125, -0.0214691162109375, -0.0225982666015625, -0.03350830078125, -0.004955291748046875, -0.031890869140625, -0.00760650634765625, -0.0034809112548828125, 0.041748046875, 0.0106964111328125, 0.045196533203125, -0.0222015380859375, -0.0009379386901855469, -0.01155853271484375, 0.0806884765625, -0.002727508544921875, 0.04937744140625, 0.02593994140625, 0.05389404296875, -0.01561737060546875, -0.033203125, 0.034942626953125, -0.0041656494140625, -0.0323486328125, -0.039764404296875, -0.00003409385681152344, -0.0460205078125, 0.007747650146484375, -0.01171112060546875, 0.0218048095703125, 0.01386260986328125, 0.0110626220703125, -0.00560760498046875, -0.0369873046875, 0.0164337158203125, 0.0163726806640625, 0.008514404296875, -0.0009918212890625, 0.0227813720703125, -0.0355224609375, -0.00811767578125, 0.013824462890625, 0.00475311279296875, 0.0000476837158203125, 0.01166534423828125, -0.0751953125, 0.0682373046875, 0.0927734375, 0.008758544921875, 0.06304931640625, 0.0135650634765625, 0.0218505859375, 0.03692626953125, 0.0265960693359375, -0.0439453125, -0.0416259765625, 0.03778076171875, 0.028076171875, -0.001129150390625, 0.054229736328125, -0.0195159912109375, 0.000858306884765625, -0.051483154296875, 0.00801849365234375, 0.01197052001953125, 0.0284576416015625, 0.0008945465087890625, -0.0093231201171875, 0.04180908203125, 0.003826141357421875, 0.0010356903076171875, -0.02032470703125, 0.046539306640625, -0.0201263427734375, -0.005062103271484375, 0.0232696533203125, -0.0229949951171875, 0.006954193115234375, -0.016204833984375, 0.02069091796875, -0.0069122314453125, -0.029296875, -0.0081024169921875, 0.01107025146484375, -0.01528167724609375, -0.0518798828125, -0.0017499923706054688, 0.0169219970703125, 0.0203857421875, -0.03863525390625, 0.05206298828125, -0.0654296875, 0.051971435546875, 0.01021575927734375, 0.01513671875, -0.01290130615234375, 0.047882080078125, -0.033111572265625, 0.0284576416015625, 0.0216827392578125, -0.04498291015625, 0.0038909912109375, -0.0034637451171875, 0.041839599609375, 0.0240325927734375, -0.03167724609375, 0.0167999267578125, -0.0305328369140625, -0.01094818115234375, 0.0183258056640625, 0.04608154296875, 0.0232086181640625, -0.00910186767578125, -0.0380859375, 0.0311126708984375, -0.00485992431640625, -0.00353240966796875, 0.017547607421875, 0.012725830078125, 0.0160980224609375, 0.04083251953125, -0.0032787322998046875, -0.0015382766723632812, 0.0076751708984375, -0.01513671875, -0.0771484375, 0.053192138671875, 0.011383056640625, 0.044097900390625, 0.006244659423828125, -0.00482940673828125, -0.0134735107421875, -0.0307464599609375, -0.043731689453125, 0.060882568359375, 0.039764404296875, 0.046112060546875, -0.054779052734375, -0.052978515625, 0.012908935546875, 0.083740234375, 0.05792236328125, 0.002838134765625, -0.0406494140625, -0.0204925537109375, 0.0165252685546875, -0.0036029815673828125, -0.017822265625, 0.0655517578125, 0.006816864013671875, -0.01090240478515625, 0.039276123046875, 0.01422882080078125, 0.03424072265625, -0.01140594482421875, -0.00804901123046875, 0.01004791259765625, 0.0246124267578125, 0.02911376953125, -0.00229644775390625, 0.019500732421875, 0.00753021240234375, -0.0179290771484375, 0.0148468017578125, -0.05633544921875, 0.005859375, 0.050384521484375, 0.08074951171875, -0.0589599609375, -0.023345947265625, -0.021484375, 0.0689697265625, 0.0267486572265625, -0.01233673095703125, 0.0080108642578125, 0.0175323486328125, -0.0305938720703125, 0.004032135009765625, 0.0010728836059570312, 0.0252227783203125, -0.01384735107421875, 0.0224761962890625, -0.00701141357421875, 0.01351165771484375, -0.057586669921875, -0.0222625732421875, -0.0055999755859375, 0.038299560546875, -0.021514892578125, -0.0125885009765625, 0.0216827392578125, 0.00194549560546875, -0.0026798248291015625, -0.03289794921875, -0.006805419921875, 0.0156402587890625, 0.03192138671875, -0.0214385986328125, -0.03668212890625, -0.0053253173828125, 0.060150146484375, 0.009857177734375, 0.0011653900146484375, -0.0223541259765625, -0.060821533203125, -0.0029850006103515625, -0.041259765625, -0.001354217529296875, 0.00396728515625, 0.0244598388671875, 0.021026611328125, 0.0006198883056640625, 0.0069732666015625, 0.0257720947265625, -0.038330078125, 0.0149993896484375, -0.029449462890625, 0.033935546875, 0.042144775390625, 0.0036144256591796875, 0.003963470458984375, 0.054290771484375, 0.050933837890625, 0.035125732421875, -0.0032901763916015625, -0.020721435546875, 0.019317626953125, 0.01215362548828125, -0.029266357421875, 0.0274658203125, -0.04132080078125, 0.02069091796875, 0.0173187255859375, 0.0013246536254882812, -0.0162506103515625, -0.024566650390625, 0.06427001953125, -0.0101470947265625, -0.00008291006088256836, 0.0056304931640625, -0.004581451416015625, 0.0304107666015625, 0.027801513671875, -0.00616455078125, 0.0041961669921875, -0.06689453125, -0.00974273681640625, -0.00972747802734375, -0.0119781494140625, 0.021514892578125, 0.031707763671875, -0.01476287841796875, 0.0283355712890625, -0.038543701171875, -0.01003265380859375, 0.004489898681640625, -0.006626129150390625, 0.018218994140625, 0.061614990234375, 0.002193450927734375, 0.0157012939453125, -0.056396484375, -0.0246429443359375, -0.0091094970703125, 0.005523681640625, 0.05450439453125, 0.014434814453125, 0.031402587890625, 0.0338134765625, -0.04510498046875, 0.0242919921875, -0.0672607421875, -0.07098388671875, 0.10687255859375, -0.042144775390625, -0.06536865234375, 0.0107269287109375, -0.0787353515625, 0.07012939453125, -0.0038814544677734375, 0.049224853515625, 0.0789794921875, -0.0272216796875, -0.0008711814880371094, -0.02423095703125, 0.01099395751953125, -0.0212554931640625, -0.04412841796875, -0.019500732421875, 0.012725830078125, 0.00908660888671875, 0.0184478759765625, -0.017852783203125, 0.0154266357421875, 0.018890380859375, 0.00745391845703125, 0.010589599609375, 0.008514404296875, 0.028289794921875, 0.0240478515625, -0.03436279296875, -0.05743408203125, 0.015960693359375, -0.006717681884765625, -0.003826141357421875, -0.0006780624389648438, 0.052520751953125, 0.00936126708984375, -0.04071044921875, 0.0026874542236328125, -0.00412750244140625, 0.037109375, -0.002849578857421875, 0.01322174072265625, -0.0222015380859375, 0.0066680908203125, -0.0211334228515625, -0.03289794921875, -0.0307769775390625, -0.07366943359375, 0.032318115234375, 0.0187225341796875, -0.0160369873046875, -0.00884246826171875, -0.00690460205078125, -0.0194549560546875, 0.0195159912109375, -0.0026531219482421875, 0.00556182861328125, -0.01666259765625, -0.0197296142578125, -0.00830078125, -0.000010728836059570312, 0.0081024169921875, 0.01397705078125, 0.0128021240234375, -0.049285888671875, -0.002475738525390625, -0.0265045166015625, -0.006565093994140625, -0.0113525390625, 0.0723876953125, 0.047393798828125, -0.055999755859375, 0.020538330078125, 0.105224609375, 0.075927734375, 0.1466064453125, 0.0263214111328125, -0.01678466796875, 0.00815582275390625, 0.00946044921875, -0.0313720703125, -0.04205322265625, 0.036590576171875, -0.056640625, -0.02490234375, -0.054718017578125, 0.036529541015625, 0.050201416015625, -0.0176544189453125, -0.024627685546875, 0.0499267578125, -0.0283355712890625, -0.0212554931640625, -0.0258026123046875, -0.005031585693359375, -0.0183258056640625, 0.037353515625, 0.009429931640625, -0.01491546630859375, 0.007411956787109375, 0.034942626953125, -0.01073455810546875, 0.029266357421875, 0.00733184814453125, -0.03240966796875, -0.0159149169921875, 0.001953125, 0.0181121826171875, -0.0202484130859375, -0.0214996337890625, 0.0176849365234375, -0.003444671630859375, 0.036651611328125, -0.015899658203125, 0.0087738037109375, -0.00011414289474487305, 0.025604248046875, -0.00799560546875, -0.0220489501953125, 0.035675048828125, 0.01953125, -0.04156494140625, 0.0183258056640625, -0.029327392578125, -0.0283355712890625, 0.007068634033203125, -0.01026153564453125, -0.045257568359375, -0.01229095458984375, 0.0013713836669921875, -0.0263824462890625, -0.00977325439453125, -0.017822265625, -0.0031890869140625, -0.04046630859375, -0.0214691162109375, -0.0263824462890625, -0.02105712890625, -0.00621795654296875, 0.00786590576171875, 0.0218658447265625, -0.0302734375, 0.0295257568359375, -0.0242919921875, -0.0013561248779296875, 0.00273895263671875, 0.016448974609375, 0.01084136962890625, 0.004302978515625, -0.002960205078125, 0.0080108642578125, -0.0249176025390625, 0.00399017333984375, 0.01349639892578125, 0.00439453125, -0.0158843994140625, 0.00010496377944946289, -0.0306396484375, 0.00917816162109375, -0.009979248046875, -0.01090240478515625, 0.014678955078125, 0.0555419921875, 0.017730712890625, 0.056121826171875, -0.007617950439453125, 0.010162353515625, -0.0259857177734375, 0.063720703125, -0.038055419921875, -0.007587432861328125, -0.02667236328125, -0.0232086181640625, 0.005481719970703125, -0.004718780517578125, 0.036468505859375, -0.0572509765625, 0.06884765625, 0.06170654296875, 0.0096282958984375, 0.048187255859375 ]
48a592010cc6b5a54cdc340feeaa1c9ee274f95d
Wordpress Stackexchange Q: Retrieve all users from wordpress database via REST/JSON API I've read that the WP REST API v2 retrieves only users that have made a post for the blog. I'm developing an iOS and Android app that needs to use the Wordpress registration. How I could retrieve a list of all users registered to my Wordpress blog? Even those that never wrote a post? A: Thanks to stackoverflow user Milap ! You can get all users even they have not created any post, for that you need to modify rest-api plugin. Open wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-users-controller.php file, you will find below code on line number 106, if ( ! current_user_can( 'list_users' ) ) { $prepared_args['has_published_posts'] = true; } Change it to below, if ( ! current_user_can( 'list_users' ) ) { $prepared_args['has_published_posts'] = false; } If you don't want to modify plugin, put below code into current theme's functions.php file. add_filter( 'rest_user_query' , 'custom_rest_user_query' ); function custom_rest_user_query( $prepared_args, $request = null ) { unset($prepared_args['has_published_posts']); return $prepared_args; } You are done. FYI: i choose to edit the API file and it worked.
Q: Retrieve all users from wordpress database via REST/JSON API I've read that the WP REST API v2 retrieves only users that have made a post for the blog. I'm developing an iOS and Android app that needs to use the Wordpress registration. How I could retrieve a list of all users registered to my Wordpress blog? Even those that never wrote a post? A: Thanks to stackoverflow user Milap ! You can get all users even they have not created any post, for that you need to modify rest-api plugin. Open wp-content/plugins/rest-api/lib/endpoints/class-wp-rest-users-controller.php file, you will find below code on line number 106, if ( ! current_user_can( 'list_users' ) ) { $prepared_args['has_published_posts'] = true; } Change it to below, if ( ! current_user_can( 'list_users' ) ) { $prepared_args['has_published_posts'] = false; } If you don't want to modify plugin, put below code into current theme's functions.php file. add_filter( 'rest_user_query' , 'custom_rest_user_query' ); function custom_rest_user_query( $prepared_args, $request = null ) { unset($prepared_args['has_published_posts']); return $prepared_args; } You are done. FYI: i choose to edit the API file and it worked.
wordpress
{ "language": "en", "length": 177, "provenance": "stackexchange_00019.jsonl.gz:463512", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218865" }
[ 0.036712646484375, -0.01358795166015625, -0.0234222412109375, -0.008636474609375, 0.004619598388671875, -0.052978515625, 0.0543212890625, -0.00408172607421875, -0.007526397705078125, 0.03948974609375, -0.0129241943359375, -0.001018524169921875, -0.027099609375, -0.0186309814453125, -0.0264434814453125, -0.03759765625, 0.01934814453125, 0.0175628662109375, 0.0246734619140625, -0.01390838623046875, 0.004421234130859375, -0.00612640380859375, 0.0264739990234375, 0.03558349609375, 0.0046234130859375, 0.0150604248046875, 0.0262451171875, -0.020660400390625, 0.002956390380859375, -0.00423431396484375, 0.0038089752197265625, -0.007904052734375, 0.0027294158935546875, 0.020111083984375, -0.0193328857421875, -0.00818634033203125, 0.0223388671875, 0.005901336669921875, -0.00047659873962402344, 0.00665283203125, 0.024688720703125, -0.012603759765625, -0.022216796875, 0.00007265806198120117, -0.023162841796875, -0.025054931640625, 0.0416259765625, 0.01253509521484375, 0.0243072509765625, 0.024749755859375, -0.00507354736328125, 0.0033702850341796875, -0.00868988037109375, 0.0127716064453125, -0.008941650390625, -0.0065765380859375, 0.042388916015625, -0.0211029052734375, 0.05950927734375, -0.06756591796875, -0.06640625, -0.0406494140625, 0.0567626953125, 0.002567291259765625, -0.01284027099609375, -0.01557159423828125, 0.00682830810546875, 0.00867462158203125, -0.01446533203125, -0.01499176025390625, 0.01070404052734375, -0.0014095306396484375, -0.02294921875, 0.039093017578125, -0.032073974609375, -0.043487548828125, 0.00389862060546875, -0.0341796875, 0.0304107666015625, 0.038604736328125, 0.02264404296875, -0.01727294921875, -0.00724029541015625, 0.045440673828125, -0.046875, 0.0235595703125, 0.0037937164306640625, -0.0198211669921875, -0.0307769775390625, -0.0199737548828125, -0.0210723876953125, -0.09283447265625, -0.032440185546875, 0.0304107666015625, 0.021209716796875, -0.04205322265625, 0.0240936279296875, 0.04119873046875, -0.0218353271484375, 0.003448486328125, 0.0006475448608398438, -0.031951904296875, 0.00487518310546875, -0.0216217041015625, 0.0242919921875, 0.054718017578125, -0.004520416259765625, -0.01641845703125, 0.039398193359375, 0.0162506103515625, 0.0238189697265625, 0.044036865234375, -0.0099029541015625, -0.0034427642822265625, -0.028106689453125, 0.0184478759765625, -0.0197296142578125, -0.0238494873046875, -0.010894775390625, -0.0266265869140625, -0.00876617431640625, 0.01015472412109375, -0.018341064453125, -0.0174407958984375, 0.00806427001953125, -0.0151824951171875, -0.0038928985595703125, 0.0183563232421875, -0.00896453857421875, 0.03924560546875, 0.0021762847900390625, 0.028533935546875, -0.00716400146484375, -0.0089569091796875, -0.054107666015625, -0.01287078857421875, -0.00337982177734375, 0.0024166107177734375, -0.010833740234375, 0.02642822265625, -0.0031719207763671875, -0.0511474609375, -0.004913330078125, 0.0006780624389648438, 0.005062103271484375, 0.01056671142578125, 0.01515960693359375, -0.00472259521484375, 0.01209259033203125, 0.0247955322265625, -0.08477783203125, 0.03619384765625, -0.025543212890625, 0.04119873046875, 0.0706787109375, 0.01715087890625, 0.0653076171875, -0.0206756591796875, 0.01016998291015625, -0.00502777099609375, 0.031219482421875, 0.0012454986572265625, 0.0088653564453125, -0.0185394287109375, -0.03558349609375, -0.01194000244140625, -0.0248870849609375, -0.006866455078125, 0.029693603515625, 0.0106048583984375, -0.004741668701171875, -0.0152130126953125, 0.056060791015625, 0.034698486328125, 0.006496429443359375, 0.03228759765625, -0.0153961181640625, 0.0295562744140625, 0.030731201171875, -0.00015163421630859375, -0.0025806427001953125, -0.022125244140625, 0.074951171875, -0.008697509765625, -0.053009033203125, 0.03778076171875, 0.01483917236328125, 0.05780029296875, 0.0111846923828125, 0.0067901611328125, 0.05206298828125, 0.02996826171875, -0.0015544891357421875, 0.02362060546875, -0.00650787353515625, -0.06207275390625, 0.0158233642578125, -0.0224151611328125, -0.010986328125, 0.0290985107421875, 0.043548583984375, -0.003070831298828125, 0.032684326171875, -0.0352783203125, -0.064453125, 0.00289154052734375, -0.020843505859375, 0.0208740234375, -0.0142669677734375, 0.01763916015625, 0.031585693359375, 0.0172119140625, -0.051605224609375, 0.052001953125, -0.0040435791015625, 0.000029802322387695312, -0.0029926300048828125, 0.0224151611328125, 0.005748748779296875, 0.0277252197265625, -0.00850677490234375, -0.01220703125, -0.005222320556640625, 0.01543426513671875, 0.060028076171875, -0.058624267578125, 0.0161285400390625, -0.049346923828125, 0.0875244140625, -0.03582763671875, 0.044891357421875, 0.0281219482421875, 0.0121612548828125, 0.0361328125, -0.03662109375, -0.006877899169921875, -0.001953125, 0.0128173828125, 0.0217132568359375, 0.0244903564453125, 0.032318115234375, 0.031646728515625, 0.00576019287109375, 0.0095672607421875, 0.07086181640625, -0.0267486572265625, 0.0096435546875, 0.0008111000061035156, 0.02667236328125, 0.06207275390625, 0.030853271484375, 0.00015854835510253906, -0.0014009475708007812, -0.03936767578125, 0.01244354248046875, 0.023773193359375, -0.008575439453125, 0.030364990234375, -0.033172607421875, -0.011077880859375, -0.0096893310546875, -0.0797119140625, -0.01959228515625, -0.040618896484375, -0.01055145263671875, 0.00885772705078125, 0.0295867919921875, 0.03399658203125, -0.007030487060546875, -0.029266357421875, 0.01398468017578125, 0.04522705078125, 0.0040283203125, 0.038421630859375, 0.0199127197265625, 0.04180908203125, -0.038848876953125, 0.0006351470947265625, 0.0166168212890625, 0.0234832763671875, -0.00933074951171875, 0.00006282329559326172, 0.040008544921875, 0.0124664306640625, 0.007411956787109375, -0.0206146240234375, 0.04254150390625, 0.0174713134765625, 0.0182952880859375, 0.04620361328125, 0.03216552734375, 0.08489990234375, 0.022735595703125, 0.060028076171875, -0.0229644775390625, 0.0421142578125, -0.046112060546875, -0.0687255859375, 0.03387451171875, -0.02911376953125, 0.0154266357421875, 0.0875244140625, 0.0411376953125, -0.01488494873046875, 0.0019779205322265625, -0.004421234130859375, -0.0170135498046875, 0.013275146484375, 0.00225830078125, -0.037353515625, 0.0187530517578125, 0.069580078125, 0.025634765625, 0.03656005859375, -0.01910400390625, -0.03851318359375, -0.030059814453125, 0.01219940185546875, -0.09539794921875, -0.0875244140625, 0.0226898193359375, -0.0225677490234375, -0.014862060546875, -0.019317626953125, -0.021728515625, 0.002780914306640625, -0.0158233642578125, -0.005290985107421875, -0.00022685527801513672, 0.0045928955078125, -0.04388427734375, -0.01548004150390625, -0.0523681640625, 0.0147857666015625, -0.011688232421875, 0.011627197265625, -0.0029125213623046875, 0.0706787109375, 0.0185546875, -0.0242767333984375, 0.006191253662109375, 0.0296783447265625, -0.0207366943359375, -0.0345458984375, -0.01160430908203125, 0.02362060546875, -0.0171356201171875, 0.00914764404296875, 0.0211029052734375, 0.0256805419921875, -0.03826904296875, -0.0085601806640625, 0.034088134765625, -0.016754150390625, 0.0296173095703125, 0.0293731689453125, -0.045166015625, 0.0017147064208984375, 0.03326416015625, -0.040435791015625, -0.0071258544921875, 0.0003230571746826172, -0.037750244140625, 0.00001627206802368164, 0.0115814208984375, -0.011199951171875, 0.0060272216796875, -0.0173492431640625, 0.03338623046875, 0.01297760009765625, 0.0010862350463867188, -0.00211334228515625, -0.00011563301086425781, 0.010345458984375, 0.023651123046875, -0.005229949951171875, 0.046661376953125, 0.01171112060546875, -0.040313720703125, -0.001232147216796875, 0.01287841796875, -0.021209716796875, 0.004344940185546875, -0.064208984375, -0.0576171875, 0.05548095703125, 0.012847900390625, -0.005321502685546875, -0.02978515625, -0.03240966796875, 0.002895355224609375, 0.0782470703125, -0.00579833984375, -0.01280975341796875, -0.01739501953125, -0.0016813278198242188, -0.046417236328125, -0.023101806640625, -0.037506103515625, 0.015960693359375, 0.01806640625, -0.030120849609375, -0.03961181640625, -0.0005183219909667969, 0.00392913818359375, -0.048095703125, 0.033966064453125, -0.028839111328125, 0.0178375244140625, -0.0321044921875, 0.0322265625, -0.035736083984375, 0.02783203125, -0.0679931640625, 0.018798828125, -0.0229644775390625, -0.0711669921875, -0.030731201171875, 0.015777587890625, 0.054168701171875, 0.0102081298828125, -0.04052734375, 0.0016021728515625, 0.04998779296875, 0.0184783935546875, 0.0249786376953125, -0.003997802734375, -0.0245361328125, 0.0023136138916015625, -0.01035308837890625, -0.0037364959716796875, -0.0230255126953125, -0.01374053955078125, -0.00713348388671875, -0.01326751708984375, -0.01354217529296875, -0.04840087890625, -0.00658416748046875, -0.006519317626953125, -0.013916015625, -0.03955078125, -0.03192138671875, -0.00554656982421875, 0.022674560546875, -0.025848388671875, 0.018157958984375, -0.036041259765625, -0.0350341796875, 0.0440673828125, 0.0038890838623046875, 0.0079498291015625, -0.011627197265625, 0.07440185546875, 0.011383056640625, -0.0170745849609375, -0.03399658203125, -0.0205230712890625, 0.025970458984375, -0.0204010009765625, 0.0487060546875, 0.030731201171875, -0.01168060302734375, 0.0452880859375, -0.01216888427734375, -0.0229339599609375, 0.037445068359375, 0.023712158203125, 0.0081939697265625, -0.037933349609375, 0.0059814453125, 0.0078887939453125, -0.03485107421875, 0.03765869140625, 0.005352020263671875, -0.018310546875, 0.0428466796875, 0.007049560546875, -0.038482666015625, 0.006481170654296875, 0.010467529296875, -0.050537109375, 0.01971435546875, -0.059326171875, -0.0074615478515625, -0.0158843994140625, -0.0034732818603515625, -0.0036678314208984375, 0.01320648193359375, -0.0259552001953125, -0.006389617919921875, -0.00054168701171875, 0.0123291015625, 0.026519775390625, -0.045501708984375, -0.020233154296875, -0.02508544921875, -0.0175628662109375, 0.06475830078125, 0.0029468536376953125, -0.0655517578125, 0.03668212890625, -0.015411376953125, 0.03790283203125, 0.0167999267578125, 0.01898193359375, 0.054779052734375, 0.0584716796875, 0.003475189208984375, -0.038330078125, -0.01357269287109375, 0.0236053466796875, -0.061737060546875, 0.034576416015625, 0.0021419525146484375, 0.0010957717895507812, -0.0248870849609375, 0.1070556640625, 0.00667572021484375, 0.03961181640625, -0.02337646484375, 0.054046630859375, 0.01806640625, 0.027740478515625, 0.0180816650390625, -0.0033283233642578125, 0.005626678466796875, -0.00567626953125, -0.01239013671875, -0.03692626953125, 0.033050537109375, 0.04473876953125, 0.034393310546875, 0.057525634765625, -0.0284881591796875, -0.0251007080078125, -0.043701171875, -0.025634765625, 0.02386474609375, -0.030242919921875, -0.027130126953125, -0.06903076171875, -0.00850677490234375, 0.053070068359375, 0.0188140869140625, 0.000492095947265625, 0.006282806396484375, 0.0026645660400390625, -0.0091400146484375, 0.004566192626953125, -0.038177490234375, -0.0157928466796875, 0.00113677978515625, -0.0194854736328125, -0.03765869140625, -0.0015058517456054688, 0.0355224609375, 0.0450439453125, -0.03936767578125, -0.0401611328125, 0.041046142578125, -0.024383544921875, -0.011993408203125, -0.0687255859375, 0.045379638671875, -0.08544921875, -0.0126953125, 0.07110595703125, 0.050323486328125, 0.00582122802734375, -0.042236328125, -0.00724029541015625, -0.0233612060546875, 0.0703125, 0.0015306472778320312, 0.0005884170532226562, -0.0292510986328125, 0.0262908935546875, 0.0307769775390625, -0.00966644287109375, -0.04974365234375, -0.0163421630859375, -0.0021724700927734375, 0.02685546875, 0.0288848876953125, -0.0038776397705078125, 0.06500244140625, -0.0340576171875, 0.042633056640625, 0.00981903076171875, 0.0269622802734375, -0.032745361328125, -0.0196380615234375, 0.0035877227783203125, -0.06939697265625, -0.019866943359375, -0.01062774658203125, -0.01129150390625, 0.0347900390625, 0.01812744140625, 0.006664276123046875, 0.0164947509765625, -0.005985260009765625, 0.004787445068359375, -0.011260986328125, 0.0036182403564453125, -0.00901031494140625, 0.005619049072265625, 0.043609619140625, 0.00501251220703125, -0.01116943359375, -0.0308380126953125, -0.01300811767578125, -0.006572723388671875, 0.032806396484375, -0.02490234375, -0.01074981689453125, -0.020263671875, 0.0325927734375, 0.059295654296875, -0.0164642333984375, 0.04345703125, 0.03582763671875, 0.009033203125, 0.0343017578125, 0.0022258758544921875, -0.02703857421875, -0.00853729248046875, 0.0117340087890625, -0.0108489990234375, -0.0063323974609375, 0.00868988037109375, -0.01861572265625, -0.0027313232421875, 0.021484375, 0.041473388671875, -0.034332275390625, 0.006366729736328125, 0.002803802490234375, -0.01271820068359375, 0.021270751953125, -0.00954437255859375, -0.004955291748046875, -0.05291748046875, 0.023773193359375, -0.036163330078125, -0.030975341796875, -0.01287078857421875, -0.030059814453125, -0.0187530517578125, -0.038665771484375, 0.0193023681640625, 0.005207061767578125, 0.052093505859375, 0.007781982421875, -0.041259765625, 0.03546142578125, -0.0101776123046875, 0.0133209228515625, 0.0007863044738769531, -0.012939453125, -0.0625, -0.000141143798828125, -0.0222930908203125, -0.03582763671875, 0.0263671875, 0.0155792236328125, 0.046539306640625, 0.053497314453125, 0.0003287792205810547, 0.01116943359375, 0.032501220703125, -0.00551605224609375, -0.0794677734375, -0.045654296875, -0.004520416259765625, 0.039947509765625, -0.01007080078125, 0.05755615234375, 0.002197265625, -0.048004150390625, -0.004611968994140625, -0.040679931640625, 0.07391357421875, -0.06781005859375, -0.004146575927734375, 0.0035610198974609375, 0.0103302001953125, 0.01934814453125, -0.004924774169921875, 0.02545166015625, -0.036865234375, 0.003265380859375, 0.004650115966796875, -0.0065765380859375, -0.0250091552734375, -0.01202392578125, -0.0239410400390625, 0.0704345703125, -0.031463623046875, 0.0028705596923828125, 0.0163116455078125, 0.03106689453125, -0.00399017333984375, 0.019439697265625, -0.048095703125, 0.07220458984375, 0.018768310546875, 0.03192138671875, -0.041717529296875, -0.004581451416015625, 0.0122528076171875, 0.02362060546875, 0.08099365234375, 0.0304412841796875, -0.06427001953125, -0.05401611328125, -0.03070068359375, -0.01267242431640625, -0.034912109375, 0.078369140625, 0.0306549072265625, 0.0443115234375, 0.053558349609375, -0.060028076171875, 0.0157012939453125, -0.026947021484375, 0.03106689453125, 0.03240966796875, 0.00437164306640625, -0.004016876220703125, -0.004238128662109375, 0.04107666015625, -0.009368896484375, -0.01374053955078125, 0.006313323974609375, -0.0181121826171875, 0.017913818359375, 0.062744140625, 0.0521240234375, -0.03216552734375, 0.005123138427734375, -0.0389404296875, 0.057586669921875, -0.0108642578125, -0.0004372596740722656, 0.034149169921875, 0.0204010009765625, 0.0489501953125, 0.0167388916015625, -0.0007877349853515625, 0.0286712646484375, 0.0055694580078125, 0.061309814453125, 0.040283203125, 0.0299072265625, -0.030029296875, -0.013397216796875, 0.044586181640625, 0.07171630859375, -0.0374755859375, -0.039825439453125, 0.0224456787109375, 0.042022705078125, 0.016693115234375, 0.03326416015625, 0.06365966796875, -0.0262298583984375, 0.0240325927734375, -0.0147857666015625, 0.00716400146484375, 0.0007138252258300781, 0.0032215118408203125, -0.0130615234375, -0.045135498046875, 0.0270538330078125, 0.037017822265625, 0.00260162353515625, -0.0340576171875, 0.01015472412109375, 0.0024318695068359375, 0.01239776611328125, 0.0035552978515625, 0.0201416015625, 0.0069427490234375, 0.00655364990234375, 0.005825042724609375, 0.022552490234375, -0.0286407470703125, -0.003101348876953125, -0.046051025390625, 0.033416748046875, 0.02581787109375, 0.033172607421875, -0.004909515380859375, 0.033935546875, 0.023712158203125, -0.031463623046875, -0.01087188720703125, 0.03662109375, -0.0196685791015625, -0.005634307861328125, -0.012176513671875, -0.035186767578125, -0.0135955810546875, -0.0207366943359375, 0.01445770263671875, 0.0262451171875, 0.00417327880859375, -0.01629638671875, 0.053680419921875, -0.00394439697265625, -0.003955841064453125, 0.0188751220703125, 0.0003783702850341797, 0.0487060546875, 0.00969696044921875, -0.07733154296875, 0.0019369125366210938, -0.06658935546875, -0.017303466796875, 0.034149169921875, 0.02166748046875, -0.0226593017578125, 0.03643798828125, -0.010162353515625, -0.01611328125, 0.0155487060546875, -0.005126953125, 0.0062103271484375, 0.01548004150390625, 0.00658416748046875, -0.00980377197265625, -0.04522705078125, -0.0298004150390625, -0.0006394386291503906, 0.0278778076171875, -0.0294952392578125, 0.04339599609375, -0.0162811279296875, -0.0017604827880859375, -0.0670166015625, 0.0033512115478515625, -0.036895751953125, -0.04339599609375, -0.0165557861328125, 0.0249481201171875, 0.0031833648681640625, 0.017333984375, -0.015960693359375, 0.032379150390625, 0.029449462890625, 0.0081787109375, 0.051513671875, -0.030792236328125, -0.0022125244140625, -0.0340576171875, -0.031829833984375, -0.044677734375, -0.0250091552734375, -0.0091094970703125, 0.0082244873046875, 0.0029926300048828125, -0.0205078125, -0.020263671875, 0.0244293212890625, -0.005191802978515625, -0.056549072265625, 0.00940704345703125, -0.036651611328125, 0.0026531219482421875, 0.021484375, 0.034088134765625, 0.07879638671875, -0.0278472900390625, -0.041778564453125, 0.0281524658203125, -0.006832122802734375, -0.046295166015625, -0.0199127197265625, 0.06390380859375, -0.02392578125, 0.01389312744140625, 0.038299560546875, 0.027801513671875, 0.01425933837890625, -0.027923583984375, -0.01708984375, -0.01904296875, -0.00025177001953125, -0.025543212890625, -0.030426025390625, -0.0026416778564453125, 0.00792694091796875, -0.00470733642578125, -0.03466796875, -0.04693603515625, -0.025054931640625, -0.0232086181640625, -0.0260467529296875, 0.002452850341796875, 0.005084991455078125, -0.01499176025390625, -0.020599365234375, -0.059356689453125, -0.0132904052734375, 0.025115966796875, 0.037811279296875, -0.042327880859375, 0.0080108642578125, 0.002887725830078125, -0.031646728515625, 0.01238250732421875, -0.00951385498046875, 0.0243377685546875, 0.005619049072265625, -0.023651123046875, -0.0025424957275390625, -0.01800537109375, 0.037506103515625, -0.05059814453125, -0.004337310791015625, -0.002834320068359375, 0.0179901123046875, -0.0230560302734375, -0.07135009765625, 0.00856781005859375, -0.047637939453125, -0.0035800933837890625, -0.0294189453125, 0.042999267578125, 0.054840087890625, -0.023193359375, -0.0782470703125, 0.08636474609375, -0.048980712890625, -0.0301513671875, -0.0916748046875, 0.04962158203125, 0.034271240234375, -0.0209197998046875, -0.038482666015625, 0.0032215118408203125, -0.03741455078125, 0.01337432861328125, 0.01097869873046875, 0.0450439453125, 0.0157928466796875, 0.006221771240234375, -0.061431884765625, -0.01514434814453125, -0.04559326171875, 0.0156402587890625, -0.0003650188446044922, -0.00978851318359375, 0.04864501953125, 0.059234619140625, -0.016815185546875, 0.023040771484375, -0.007488250732421875, -0.0062408447265625, -0.044708251953125, -0.0242156982421875, -0.0218963623046875, -0.01190948486328125, 0.07305908203125, 0.049285888671875, 0.01383209228515625, -0.0250701904296875, -0.040740966796875, -0.0264434814453125, 0.018310546875, -0.0163726806640625, 0.005252838134765625, -0.046783447265625, 0.0172271728515625, -0.00666046142578125, -0.00829315185546875, 0.026580810546875, -0.061431884765625, -0.03643798828125, -0.01250457763671875, -0.03887939453125, 0.005916595458984375, 0.0030727386474609375, -0.0305023193359375, -0.044158935546875, 0.004787445068359375, -0.03765869140625, -0.01519012451171875, 0.02618408203125, -0.07342529296875, 0.0146484375, -0.01885986328125, -0.004878997802734375, 0.00921630859375, 0.019012451171875, 0.0156097412109375, -0.0167083740234375, 0.007038116455078125, 0.014251708984375, -0.020477294921875, 0.0183258056640625, 0.01099395751953125, 0.0255889892578125, 0.028717041015625, -0.01312255859375, 0.010955810546875, 0.0160675048828125, -0.00010454654693603516, -0.0009188652038574219, -0.0206298828125, 0.03497314453125, 0.01175689697265625, -0.0308074951171875, 0.036895751953125, -0.015716552734375, -0.0180206298828125, 0.02044677734375, -0.029144287109375, -0.0595703125, 0.032989501953125, 0.02923583984375, 0.00911712646484375, 0.01532745361328125 ]
914b7032ac7df54a99df8bfb6f4e6f8cefcc952c
Wordpress Stackexchange Q: How do I remove the 'Show Toolbar' option? I'm using the following code to hide the admin toolbar in the front end: add_filter( 'show_admin_bar', '__return_false' ); But how do I hide this option in wp-admin? A: Here's one way to hide it with CSS: add_action( 'personal_options', function( $profileuser ) { ?><style>.show-admin-bar{ display: none;}</style><?php } ); or rather place it within the <head>...</head> with: add_action( 'admin_print_styles-user-edit.php', 'wpse_hide_admin_bar_settings' ); add_action( 'admin_print_styles-profile.php', 'wpse_hide_admin_bar_settings' ); function wpse_hide_admin_bar_settings() { ?><style>.show-admin-bar{ display: none;}</style><?php } You could perhaps add your own wpse_hide_admin_bar_settings filter if you need more control: function wpse_hide_admin_bar_settings() { if( (bool) apply_filters( 'wpse_hide_admin_bar_settings', false ) ) echo '<style>.show-admin-bar{ display: none;}</style>'; } and then turn it off/on with: add_filter( 'wpse_hide_admin_bar_settings', '__return_false' ); // show it add_filter( 'wpse_hide_admin_bar_settings', '__return_true' ); // hide it
Q: How do I remove the 'Show Toolbar' option? I'm using the following code to hide the admin toolbar in the front end: add_filter( 'show_admin_bar', '__return_false' ); But how do I hide this option in wp-admin? A: Here's one way to hide it with CSS: add_action( 'personal_options', function( $profileuser ) { ?><style>.show-admin-bar{ display: none;}</style><?php } ); or rather place it within the <head>...</head> with: add_action( 'admin_print_styles-user-edit.php', 'wpse_hide_admin_bar_settings' ); add_action( 'admin_print_styles-profile.php', 'wpse_hide_admin_bar_settings' ); function wpse_hide_admin_bar_settings() { ?><style>.show-admin-bar{ display: none;}</style><?php } You could perhaps add your own wpse_hide_admin_bar_settings filter if you need more control: function wpse_hide_admin_bar_settings() { if( (bool) apply_filters( 'wpse_hide_admin_bar_settings', false ) ) echo '<style>.show-admin-bar{ display: none;}</style>'; } and then turn it off/on with: add_filter( 'wpse_hide_admin_bar_settings', '__return_false' ); // show it add_filter( 'wpse_hide_admin_bar_settings', '__return_true' ); // hide it
wordpress
{ "language": "en", "length": 127, "provenance": "stackexchange_00019.jsonl.gz:463539", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/218958" }
[ 0.0408935546875, -0.00736236572265625, 0.003162384033203125, 0.0167388916015625, 0.0139923095703125, -0.050506591796875, 0.052947998046875, -0.056671142578125, 0.0107421875, 0.005786895751953125, 0.0018863677978515625, -0.035186767578125, 0.0012750625610351562, -0.045684814453125, -0.01041412353515625, -0.035064697265625, 0.023406982421875, 0.031402587890625, 0.0460205078125, 0.0128021240234375, 0.0005850791931152344, 0.0232086181640625, -0.0144500732421875, 0.014068603515625, -0.0194549560546875, -0.0697021484375, 0.10833740234375, -0.01544952392578125, -0.004642486572265625, -0.00888824462890625, 0.013275146484375, -0.006893157958984375, -0.01515960693359375, 0.020904541015625, 0.0263671875, 0.04620361328125, -0.0158233642578125, 0.031829833984375, 0.050537109375, -0.025146484375, 0.01224517822265625, -0.0000016689300537109375, -0.046295166015625, 0.004093170166015625, -0.0257568359375, -0.0318603515625, 0.005741119384765625, -0.025054931640625, -0.007389068603515625, -0.00580596923828125, 0.0274200439453125, -0.0004658699035644531, 0.040130615234375, -0.02264404296875, -0.005252838134765625, 0.004787445068359375, -0.0196990966796875, -0.00858306884765625, 0.033599853515625, 0.04742431640625, -0.020782470703125, -0.032501220703125, -0.0006871223449707031, -0.09039306640625, -0.007549285888671875, 0.0244903564453125, -0.0120849609375, 0.007778167724609375, -0.032135009765625, 0.007038116455078125, 0.01013946533203125, -0.053466796875, 0.034393310546875, -0.0201873779296875, -0.027130126953125, -0.0242156982421875, 0.0005078315734863281, -0.0018606185913085938, 0.047210693359375, -0.039947509765625, 0.036346435546875, 0.03155517578125, -0.0518798828125, -0.0167999267578125, 0.0187225341796875, 0.004337310791015625, -0.004474639892578125, -0.031585693359375, 0.0212249755859375, -0.0011577606201171875, -0.0020904541015625, -0.03912353515625, 0.0020656585693359375, 0.05291748046875, 0.0201568603515625, -0.0416259765625, 0.0309295654296875, 0.026153564453125, 0.00830841064453125, -0.036224365234375, 0.0080718994140625, -0.03717041015625, -0.049041748046875, 0.018646240234375, -0.00760650634765625, 0.0595703125, -0.00867462158203125, 0.006378173828125, 0.0224761962890625, 0.0105133056640625, 0.0229949951171875, -0.03424072265625, -0.018707275390625, -0.02001953125, 0.005168914794921875, 0.0230712890625, -0.02203369140625, 0.0279388427734375, 0.0081634521484375, 0.0426025390625, -0.024658203125, -0.0216522216796875, 0.00850677490234375, 0.0112762451171875, 0.031097412109375, 0.01374053955078125, -0.03668212890625, 0.0162353515625, -0.0093841552734375, -0.00844573974609375, -0.04693603515625, 0.012237548828125, 0.076416015625, 0.050140380859375, 0.0396728515625, -0.0155487060546875, 0.048919677734375, 0.00138092041015625, 0.005126953125, 0.01444244384765625, -0.0049285888671875, -0.0260009765625, -0.0292816162109375, -0.01241302490234375, -0.023529052734375, 0.00736236572265625, 0.031341552734375, 0.0133056640625, -0.006500244140625, -0.03411865234375, -0.021148681640625, 0.0169219970703125, 0.036102294921875, 0.020599365234375, -0.01554107666015625, 0.072998046875, 0.053924560546875, 0.016082763671875, -0.09765625, -0.00630950927734375, -0.01148223876953125, 0.0035266876220703125, 0.037200927734375, -0.0068511962890625, -0.01546478271484375, 0.01049041748046875, -0.01519012451171875, -0.0081939697265625, 0.0262908935546875, 0.00022101402282714844, 0.02587890625, -0.0341796875, 0.004962921142578125, 0.0193634033203125, -0.00615692138671875, 0.037750244140625, 0.0184326171875, 0.0108795166015625, 0.02484130859375, 0.0009441375732421875, -0.04388427734375, -0.049285888671875, 0.047332763671875, -0.0270233154296875, -0.05572509765625, 0.04034423828125, -0.00867462158203125, 0.0374755859375, 0.0303497314453125, 0.0034656524658203125, 0.03240966796875, 0.012664794921875, 0.0204010009765625, -0.064697265625, 0.004283905029296875, -0.0003287792205810547, -0.01236724853515625, -0.01305389404296875, -0.0052947998046875, 0.03326416015625, 0.01116180419921875, -0.018585205078125, 0.0132598876953125, -0.005199432373046875, -0.04461669921875, -0.01450347900390625, -0.020965576171875, 0.0248260498046875, 0.023193359375, 0.006992340087890625, -0.0063323974609375, -0.02716064453125, 0.00417327880859375, -0.0124053955078125, -0.03717041015625, 0.0031452178955078125, -0.0021915435791015625, 0.0635986328125, -0.0017538070678710938, 0.052978515625, 0.0176544189453125, -0.04315185546875, 0.022430419921875, -0.003086090087890625, 0.046295166015625, -0.0027332305908203125, -0.011688232421875, -0.01166534423828125, 0.053131103515625, -0.0207977294921875, 0.011199951171875, 0.036773681640625, 0.033416748046875, 0.0247650146484375, -0.0294189453125, -0.01561737060546875, 0.00609588623046875, -0.07391357421875, 0.0031833648681640625, 0.05596923828125, 0.0279541015625, 0.0161590576171875, -0.0226898193359375, -0.0025482177734375, 0.067138671875, -0.013671875, -0.003452301025390625, 0.00308990478515625, -0.01039886474609375, -0.047576904296875, -0.01039886474609375, -0.04010009765625, 0.0625, -0.0487060546875, 0.0297393798828125, 0.040802001953125, -0.035491943359375, -0.004512786865234375, 0.036163330078125, -0.01001739501953125, -0.007793426513671875, -0.0184478759765625, 0.02679443359375, -0.014495849609375, 0.00756072998046875, 0.0118255615234375, 0.0030975341796875, 0.0166473388671875, -0.0242767333984375, 0.00946807861328125, 0.0321044921875, 0.01041412353515625, -0.01222991943359375, -0.032745361328125, 0.00872039794921875, -0.0694580078125, -0.0633544921875, 0.038604736328125, 0.021026611328125, -0.04095458984375, -0.007678985595703125, 0.02532958984375, -0.015289306640625, -0.00372314453125, -0.00473785400390625, -0.0125732421875, 0.004810333251953125, 0.00516510009765625, 0.00281524658203125, -0.0171356201171875, -0.0017671585083007812, 0.0439453125, -0.002681732177734375, 0.037109375, -0.0018072128295898438, 0.000052928924560546875, 0.0287017822265625, -0.01038360595703125, 0.02801513671875, -0.0274658203125, 0.05999755859375, 0.04510498046875, -0.0203704833984375, 0.0143585205078125, 0.0099029541015625, -0.0284576416015625, -0.007106781005859375, 0.02484130859375, 0.00786590576171875, -0.0340576171875, -0.001850128173828125, 0.039703369140625, 0.0238494873046875, -0.04144287109375, 0.0244293212890625, -0.00982666015625, -0.0270538330078125, 0.02001953125, -0.031280517578125, 0.036346435546875, -0.03350830078125, -0.07611083984375, -0.02459716796875, 0.0172576904296875, -0.052215576171875, 0.0174102783203125, 0.048553466796875, 0.01270294189453125, 0.004550933837890625, -0.0179901123046875, -0.0256805419921875, -0.01258087158203125, -0.020751953125, -0.02728271484375, -0.0033206939697265625, -0.0256195068359375, 0.0136871337890625, 0.08721923828125, 0.0063934326171875, -0.0706787109375, 0.01273345947265625, -0.048126220703125, -0.01335906982421875, 0.046722412109375, -0.004817962646484375, -0.004955291748046875, 0.007022857666015625, 0.006153106689453125, -0.00904083251953125, -0.007659912109375, 0.0035610198974609375, -0.0281219482421875, -0.0185546875, -0.03662109375, 0.00897216796875, -0.03704833984375, -0.004268646240234375, -0.00870513916015625, -0.0026226043701171875, -0.042205810546875, -0.03021240234375, 0.0035457611083984375, -0.035552978515625, 0.051849365234375, -0.0008192062377929688, -0.00804901123046875, 0.032989501953125, 0.01873779296875, 0.0149078369140625, 0.0186767578125, 0.0173492431640625, -0.01102447509765625, 0.0253143310546875, -0.004650115966796875, 0.0089111328125, -0.020355224609375, -0.0016546249389648438, -0.034210205078125, 0.00482940673828125, -0.0014867782592773438, -0.0137176513671875, 0.00748443603515625, -0.005420684814453125, 0.0282745361328125, -0.065673828125, 0.066650390625, 0.0117950439453125, -0.0292205810546875, -0.0296173095703125, -0.0277099609375, 0.007396697998046875, 0.0767822265625, -0.0104217529296875, -0.004177093505859375, -0.0032501220703125, 0.009765625, -0.0640869140625, -0.036956787109375, -0.0509033203125, 0.0178985595703125, -0.1331787109375, 0.03363037109375, -0.0102386474609375, -0.03173828125, -0.0207061767578125, -0.0272979736328125, -0.058074951171875, -0.070068359375, 0.01032257080078125, -0.006591796875, -0.0006375312805175781, 0.001995086669921875, -0.02056884765625, -0.02142333984375, 0.007076263427734375, -0.020172119140625, -0.060546875, -0.0159149169921875, -0.00760650634765625, 0.029449462890625, -0.0012197494506835938, -0.0026035308837890625, -0.007038116455078125, 0.0253753662109375, 0.02423095703125, -0.0267486572265625, 0.0088653564453125, 0.0031566619873046875, -0.018585205078125, -0.0184783935546875, 0.0022068023681640625, -0.02764892578125, -0.0300140380859375, -0.00746917724609375, -0.037933349609375, 0.00444793701171875, 0.004604339599609375, 0.00429534912109375, 0.05108642578125, -0.0215301513671875, -0.0266265869140625, -0.0273895263671875, -0.05029296875, -0.01328277587890625, -0.039093017578125, 0.004787445068359375, 0.0006170272827148438, -0.03936767578125, 0.0223236083984375, -0.034881591796875, -0.0059661865234375, 0.01511383056640625, 0.050811767578125, 0.0165863037109375, -0.0135040283203125, -0.0198822021484375, 0.0096588134765625, 0.02398681640625, -0.0022373199462890625, 0.051666259765625, 0.014373779296875, -0.023040771484375, 0.07110595703125, -0.003643035888671875, -0.0063934326171875, -0.03558349609375, 0.07403564453125, -0.0010271072387695312, -0.03155517578125, 0.0272674560546875, -0.01396942138671875, -0.017608642578125, -0.005779266357421875, 0.011444091796875, -0.029205322265625, -0.006595611572265625, 0.0311431884765625, 0.03875732421875, -0.0209808349609375, -0.0274810791015625, -0.00682830810546875, -0.00855255126953125, -0.0020084381103515625, 0.029693603515625, 0.012786865234375, 0.00620269775390625, -0.0158233642578125, 0.01316070556640625, -0.01479339599609375, 0.0011129379272460938, 0.03857421875, -0.032257080078125, 0.0389404296875, -0.01380157470703125, -0.0498046875, -0.0049896240234375, -0.01084136962890625, 0.042266845703125, -0.00658416748046875, -0.0382080078125, -0.0147247314453125, -0.006732940673828125, 0.06219482421875, 0.02252197265625, -0.007610321044921875, 0.046875, 0.03887939453125, -0.0284271240234375, -0.0084686279296875, 0.0159454345703125, -0.0234832763671875, -0.05206298828125, 0.0419921875, 0.024932861328125, 0.00848388671875, 0.02410888671875, 0.0770263671875, -0.00971221923828125, 0.051971435546875, -0.019317626953125, 0.04327392578125, 0.0103912353515625, 0.00995635986328125, -0.00972747802734375, 0.0247955322265625, 0.044281005859375, -0.04559326171875, 0.0360107421875, -0.0282745361328125, -0.01355743408203125, 0.0283660888671875, 0.021881103515625, 0.026611328125, 0.005207061767578125, -0.01375579833984375, 0.0139007568359375, -0.033843994140625, 0.035125732421875, 0.00403594970703125, -0.044097900390625, -0.0170135498046875, 0.054412841796875, 0.03802490234375, -0.0106353759765625, -0.0163726806640625, 0.0030670166015625, -0.0261077880859375, -0.0208740234375, 0.037841796875, -0.0704345703125, 0.01605224609375, 0.02667236328125, -0.04205322265625, -0.0277099609375, -0.007472991943359375, -0.052734375, -0.0193328857421875, -0.01364898681640625, -0.0147857666015625, 0.0228424072265625, -0.02105712890625, 0.039794921875, -0.024169921875, 0.0014696121215820312, 0.0247344970703125, 0.0010528564453125, 0.052642822265625, 0.034576416015625, -0.09246826171875, 0.032257080078125, -0.059326171875, 0.01079559326171875, -0.09259033203125, -0.0528564453125, -0.04638671875, 0.01137542724609375, -0.0019330978393554688, 0.0031642913818359375, 0.00014781951904296875, 0.0017690658569335938, -0.026153564453125, 0.0421142578125, 0.0259246826171875, 0.07330322265625, -0.026397705078125, 0.08251953125, -0.01531219482421875, 0.0413818359375, -0.0029354095458984375, 0.0286407470703125, -0.01166534423828125, -0.01180267333984375, 0.0272216796875, -0.000016391277313232422, -0.05108642578125, -0.0173492431640625, -0.046234130859375, -0.01506805419921875, 0.04559326171875, -0.032318115234375, 0.01415252685546875, 0.0150146484375, 0.0056915283203125, -0.03228759765625, -0.023223876953125, -0.01389312744140625, 0.0278472900390625, -0.052764892578125, 0.00849151611328125, 0.0489501953125, -0.0230712890625, -0.0190582275390625, 0.0136871337890625, -0.00830841064453125, 0.04296875, -0.01369476318359375, -0.02972412109375, 0.0670166015625, 0.08056640625, -0.01540374755859375, 0.0217132568359375, 0.0217437744140625, -0.01312255859375, -0.00528717041015625, -0.0087890625, 0.01062774658203125, 0.018463134765625, 0.037750244140625, 0.004016876220703125, 0.028350830078125, 0.04901123046875, -0.01525115966796875, 0.0115203857421875, 0.08502197265625, 0.050323486328125, -0.11871337890625, 0.0017786026000976562, -0.00405120849609375, 0.0179443359375, 0.053924560546875, -0.0016660690307617188, -0.050537109375, -0.08306884765625, 0.06463623046875, -0.0411376953125, -0.00818634033203125, 0.0188446044921875, -0.005031585693359375, -0.0340576171875, 0.00720977783203125, 0.0019016265869140625, 0.01465606689453125, -0.013946533203125, 0.01404571533203125, -0.00225067138671875, 0.00589752197265625, 0.017425537109375, 0.02374267578125, -0.0166168212890625, -0.037841796875, -0.049957275390625, -0.0251312255859375, -0.01209259033203125, -0.043426513671875, 0.061279296875, 0.01126861572265625, 0.008636474609375, 0.06573486328125, -0.0233612060546875, 0.04498291015625, 0.01248931884765625, 0.03338623046875, -0.004947662353515625, -0.035308837890625, -0.005268096923828125, 0.02838134765625, -0.054168701171875, 0.0333251953125, -0.01107025146484375, -0.01512908935546875, -0.00659942626953125, 0.0279388427734375, 0.09979248046875, -0.01531982421875, -0.04339599609375, 0.01036834716796875, -0.00025653839111328125, -0.015411376953125, -0.0210723876953125, 0.0293731689453125, -0.0400390625, -0.0010528564453125, -0.005367279052734375, -0.024658203125, -0.01314544677734375, -0.0426025390625, -0.0161285400390625, 0.051788330078125, -0.05206298828125, 0.010650634765625, 0.02734375, 0.0225372314453125, -0.006099700927734375, 0.0113067626953125, -0.005619049072265625, 0.048614501953125, 0.03515625, 0.0018167495727539062, -0.01486968994140625, -0.01399993896484375, -0.0047454833984375, 0.0229339599609375, 0.0194549560546875, 0.01360321044921875, -0.0509033203125, -0.011627197265625, 0.0273895263671875, 0.023406982421875, 0.01085662841796875, 0.06378173828125, -0.01392364501953125, 0.01166534423828125, 0.0082855224609375, -0.046875, 0.0106201171875, -0.02734375, -0.037384033203125, 0.0201873779296875, 0.017059326171875, 0.038970947265625, 0.020294189453125, -0.00792694091796875, 0.0154876708984375, -0.007595062255859375, 0.00811004638671875, -0.058258056640625, -0.032501220703125, 0.0108642578125, -0.0302734375, -0.013153076171875, -0.00103759765625, -0.0264434814453125, 0.0199737548828125, 0.0098876953125, -0.013885498046875, 0.005512237548828125, 0.01393890380859375, -0.0189056396484375, -0.01277923583984375, -0.007598876953125, 0.03546142578125, -0.031646728515625, 0.00021183490753173828, 0.0143890380859375, 0.02178955078125, -0.01959228515625, 0.020111083984375, 0.00699615478515625, -0.005985260009765625, -0.004886627197265625, -0.0439453125, 0.022003173828125, 0.00759124755859375, -0.0211029052734375, -0.01221466064453125, -0.0499267578125, -0.025177001953125, 0.060882568359375, -0.0139617919921875, -0.00695037841796875, 0.01715087890625, 0.01522064208984375, 0.0025844573974609375, 0.0190582275390625, -0.02008056640625, 0.00540924072265625, -0.02740478515625, -0.00771331787109375, 0.00923919677734375, 0.059814453125, 0.041534423828125, 0.00682830810546875, -0.022064208984375, -0.036468505859375, -0.034942626953125, 0.006435394287109375, -0.008880615234375, 0.033721923828125, -0.06292724609375, -0.019927978515625, -0.0010652542114257812, 0.0450439453125, -0.0074005126953125, 0.00830841064453125, 0.0174102783203125, 0.0230712890625, -0.0182037353515625, -0.027587890625, 0.007732391357421875, -0.022979736328125, -0.01041412353515625, -0.022674560546875, 0.039794921875, 0.0170135498046875, 0.01751708984375, -0.01161956787109375, 0.0299835205078125, 0.0225067138671875, -0.024200439453125, 0.03070068359375, -0.0011987686157226562, -0.02105712890625, -0.0041961669921875, -0.01003265380859375, 0.019683837890625, 0.00875091552734375, -0.06915283203125, -0.043792724609375, 0.044342041015625, -0.007358551025390625, 0.00014269351959228516, 0.0227508544921875, -0.040374755859375, 0.04705810546875, 0.002071380615234375, 0.0121307373046875, -0.028228759765625, -0.0257110595703125, 0.0335693359375, -0.05316162109375, -0.005092620849609375, -0.0025634765625, -0.035858154296875, -0.028045654296875, -0.038848876953125, 0.045623779296875, 0.0479736328125, 0.01428985595703125, 0.005870819091796875, 0.0413818359375, -0.059967041015625, 0.03521728515625, -0.045623779296875, -0.052276611328125, 0.00894927978515625, 0.03240966796875, 0.01206207275390625, 0.00623321533203125, -0.044403076171875, 0.003204345703125, 0.0518798828125, -0.024505615234375, 0.03155517578125, 0.0214080810546875, 0.0020771026611328125, -0.07061767578125, 0.0102996826171875, -0.0160064697265625, -0.03240966796875, -0.0228118896484375, 0.0038471221923828125, 0.0115966796875, 0.01519012451171875, -0.022796630859375, -0.0042572021484375, 0.034271240234375, 0.0006880760192871094, 0.026580810546875, 0.022674560546875, 0.053497314453125, 0.03778076171875, -0.039794921875, 0.0060272216796875, -0.028564453125, -0.0196533203125, 0.008026123046875, 0.0099029541015625, -0.0088653564453125, -0.0207977294921875, 0.01108551025390625, -0.033843994140625, 0.0012531280517578125, -0.0037441253662109375, -0.04473876953125, 0.003177642822265625, 0.0083770751953125, -0.01448822021484375, -0.030487060546875, 0.0225067138671875, -0.0391845703125, -0.039398193359375, -0.00981903076171875, 0.023406982421875, -0.0252838134765625, -0.0748291015625, -0.1175537109375, 0.04205322265625, 0.0787353515625, 0.01369476318359375, -0.0670166015625, 0.032135009765625, -0.05126953125, 0.09326171875, 0.0198974609375, 0.05584716796875, 0.001651763916015625, 0.0247039794921875, -0.03375244140625, 0.0038852691650390625, -0.01216888427734375, 0.0032825469970703125, -0.005451202392578125, -0.046234130859375, -0.040557861328125, 0.0247650146484375, 0.0178375244140625, -0.019256591796875, -0.04296875, 0.018280029296875, -0.01450347900390625, -0.01364898681640625, -0.0249176025390625, 0.033905029296875, -0.0183868408203125, -0.029083251953125, 0.000698089599609375, 0.01540374755859375, -0.0187835693359375, -0.042266845703125, -0.00994873046875, -0.0046539306640625, -0.049774169921875, -0.055145263671875, 0.01383209228515625, -0.009613037109375, -0.01861572265625, 0.0236968994140625, 0.001522064208984375, -0.04107666015625, 0.034881591796875, 0.030364990234375, -0.044677734375, 0.032440185546875, 0.0274200439453125, 0.000217437744140625, 0.048980712890625, -0.0003695487976074219, -0.00798797607421875, -0.009124755859375, -0.006992340087890625, -0.0173187255859375, -0.0188446044921875, -0.0136260986328125, 0.01406097412109375, 0.0072174072265625, 0.0293426513671875, -0.0185089111328125, -0.0252838134765625, -0.00036072731018066406, -0.00823211669921875, -0.0047454833984375, 0.0281524658203125, -0.051361083984375, -0.008697509765625, 0.08575439453125, 0.0694580078125, 0.03607177734375, -0.0171051025390625, -0.039764404296875, -0.039947509765625, -0.004405975341796875, -0.0238189697265625, 0.0272216796875, -0.0869140625, -0.0189056396484375, 0.02911376953125, 0.0081634521484375, 0.004436492919921875, 0.017730712890625, -0.0011930465698242188, -0.02886962890625, 0.010467529296875, -0.016937255859375, -0.06463623046875, 0.006317138671875, 0.02825927734375, -0.038665771484375, -0.042266845703125, -0.007480621337890625, 0.0036411285400390625, -0.0175628662109375, -0.0286712646484375, -0.0223846435546875, -0.006435394287109375, -0.0278167724609375, 0.0299224853515625, -0.018951416015625, 0.013885498046875, -0.037384033203125, 0.009185791015625, -0.002445220947265625, 0.004993438720703125, -0.0031642913818359375, -0.0029621124267578125, -0.032989501953125, 0.0283203125, -0.00948333740234375, 0.05780029296875, -0.0133514404296875, 0.07073974609375, -0.016143798828125, 0.0325927734375, 0.0253753662109375, -0.00994873046875, 0.060028076171875, 0.0025005340576171875, -0.0028972625732421875, 0.0156707763671875, 0.0406494140625, -0.042022705078125, 0.035003662109375, -0.008941650390625, 0.044952392578125, 0.021881103515625 ]
c5eeda4a5f53c5954795dee370e187e8865f8e95
Wordpress Stackexchange Q: Where/how are categories stored? Disclaimer: I am new to WordPress. When I add categories to my blogging site, where/how are these categories stored? If I want to change the names of these categories in batch, without having to go through the point-and-click UI, how would I go about it? Would this be done through a command-line interface? A: There is extensive documentation on the database structure of WordPress in the Codex. Its pretty simple but still you probably do not want to mess with the data directly. As you mentioned CLI I'd recommend WP-CLI which offers some commands you need. A quick example from the docs to change the name of the term with the ID 15 from the taxonomy category to `Apple: wp term update category 15 --name=Apple
Q: Where/how are categories stored? Disclaimer: I am new to WordPress. When I add categories to my blogging site, where/how are these categories stored? If I want to change the names of these categories in batch, without having to go through the point-and-click UI, how would I go about it? Would this be done through a command-line interface? A: There is extensive documentation on the database structure of WordPress in the Codex. Its pretty simple but still you probably do not want to mess with the data directly. As you mentioned CLI I'd recommend WP-CLI which offers some commands you need. A quick example from the docs to change the name of the term with the ID 15 from the taxonomy category to `Apple: wp term update category 15 --name=Apple
wordpress
{ "language": "en", "length": 130, "provenance": "stackexchange_00019.jsonl.gz:463554", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/219032" }
[ 0.01406097412109375, 0.006671905517578125, -0.044281005859375, -0.036041259765625, 0.0273284912109375, -0.032958984375, 0.021209716796875, 0.005115509033203125, 0.01329803466796875, 0.0074615478515625, -0.0308380126953125, -0.01450347900390625, 0.006809234619140625, -0.026641845703125, -0.01166534423828125, -0.042755126953125, 0.04754638671875, -0.034942626953125, 0.0219573974609375, 0.006801605224609375, -0.006988525390625, 0.036590576171875, 0.0214691162109375, 0.0238189697265625, 0.030914306640625, -0.015594482421875, 0.041839599609375, -0.0411376953125, 0.03607177734375, -0.0182647705078125, 0.038421630859375, -0.01299285888671875, 0.0176849365234375, -0.0069427490234375, 0.0440673828125, 0.0310211181640625, 0.0214080810546875, -0.005817413330078125, 0.0255279541015625, 0.01195526123046875, 0.03765869140625, -0.021392822265625, 0.0232086181640625, -0.00800323486328125, 0.0193634033203125, -0.020111083984375, 0.01153564453125, -0.065673828125, -0.0008783340454101562, -0.057037353515625, 0.046661376953125, 0.04052734375, 0.0721435546875, -0.057769775390625, -0.01509857177734375, 0.005157470703125, -0.0230712890625, 0.0162353515625, 0.034149169921875, -0.005161285400390625, -0.0266571044921875, -0.0268707275390625, 0.03466796875, -0.00888824462890625, 0.003387451171875, 0.0096435546875, 0.0709228515625, 0.02630615234375, -0.076416015625, -0.0118560791015625, 0.047027587890625, -0.0335693359375, -0.01009368896484375, -0.0223236083984375, -0.0019245147705078125, 0.0284881591796875, -0.0089874267578125, 0.01422119140625, 0.0157928466796875, 0.0198974609375, 0.036376953125, 0.0094757080078125, 0.031585693359375, -0.01502227783203125, 0.00421142578125, -0.0108795166015625, -0.0155792236328125, -0.0172271728515625, -0.01024627685546875, -0.0072479248046875, -0.01071929931640625, -0.01097869873046875, -0.048492431640625, 0.0447998046875, 0.005786895751953125, -0.0084228515625, 0.01226043701171875, 0.0081787109375, 0.006656646728515625, 0.007274627685546875, -0.0281982421875, -0.0079193115234375, -0.0255889892578125, -0.006702423095703125, 0.014404296875, 0.020904541015625, -0.0197296142578125, -0.00621795654296875, 0.047210693359375, 0.0203704833984375, -0.01375579833984375, 0.0281829833984375, 0.0018749237060546875, -0.02923583984375, 0.0074615478515625, 0.033355712890625, -0.01091766357421875, 0.06634521484375, 0.0193939208984375, 0.035858154296875, -0.003376007080078125, 0.033172607421875, -0.03643798828125, -0.004840850830078125, -0.01113128662109375, -0.0172882080078125, 0.00518035888671875, 0.002857208251953125, -0.0584716796875, 0.00836181640625, -0.036773681640625, 0.02630615234375, 0.08624267578125, 0.05364990234375, 0.0101165771484375, -0.0144805908203125, 0.02264404296875, -0.0076446533203125, -0.0100555419921875, 0.03338623046875, -0.01454925537109375, -0.0277862548828125, 0.00740814208984375, -0.0264434814453125, 0.0298614501953125, 0.006259918212890625, 0.006763458251953125, 0.0200958251953125, 0.0038433074951171875, 0.00453948974609375, 0.02734375, -0.019744873046875, 0.05126953125, 0.007045745849609375, -0.0232391357421875, -0.018585205078125, 0.046783447265625, -0.044219970703125, -0.045257568359375, -0.0740966796875, 0.01491546630859375, 0.005397796630859375, 0.032501220703125, 0.01568603515625, 0.0057525634765625, 0.00537872314453125, -0.05950927734375, 0.0011243820190429688, 0.007534027099609375, -0.031646728515625, -0.00646209716796875, 0.019073486328125, 0.008453369140625, -0.016815185546875, 0.0090179443359375, 0.00042891502380371094, -0.034027099609375, -0.042510986328125, 0.040802001953125, 0.04754638671875, 0.01100921630859375, -0.01568603515625, -0.01526641845703125, 0.018402099609375, -0.031524658203125, 0.0287628173828125, -0.003871917724609375, 0.0743408203125, 0.0285491943359375, 0.029144287109375, -0.0253448486328125, -0.0033206939697265625, -0.0816650390625, 0.0125579833984375, 0.01324462890625, 0.0210418701171875, 0.0015382766723632812, 0.00411224365234375, 0.0200042724609375, -0.0382080078125, -0.005939483642578125, 0.018524169921875, -0.01213836669921875, 0.0066680908203125, -0.0335693359375, 0.017913818359375, -0.0101470947265625, 0.04083251953125, 0.0019989013671875, 0.0130157470703125, -0.01275634765625, -0.032684326171875, 0.05419921875, -0.1143798828125, -0.046295166015625, 0.01348114013671875, -0.01105499267578125, 0.00513458251953125, -0.01273345947265625, 0.0005769729614257812, -0.0298614501953125, -0.0009613037109375, -0.036834716796875, 0.0251007080078125, 0.0283050537109375, 0.02825927734375, -0.0439453125, -0.0018281936645507812, -0.00963592529296875, 0.0228118896484375, -0.08843994140625, 0.032012939453125, 0.039154052734375, 0.036376953125, -0.00325775146484375, -0.0060577392578125, 0.0253448486328125, -0.09283447265625, 0.00740814208984375, 0.047515869140625, 0.0180206298828125, 0.005218505859375, -0.031402587890625, 0.01416778564453125, 0.04119873046875, -0.0301666259765625, -0.0176544189453125, 0.0174560546875, 0.0032634735107421875, 0.04400634765625, 0.04052734375, 0.0036563873291015625, -0.0095367431640625, 0.00818634033203125, -0.002410888671875, 0.0203094482421875, -0.021087646484375, -0.031524658203125, 0.0182952880859375, -0.00916290283203125, 0.01617431640625, -0.04962158203125, -0.03179931640625, -0.006969451904296875, 0.03997802734375, 0.023223876953125, 0.025360107421875, 0.0197296142578125, -0.01165771484375, 0.0265350341796875, -0.001491546630859375, -0.0560302734375, 0.0111236572265625, -0.0172271728515625, -0.002208709716796875, -0.00600433349609375, -0.004329681396484375, 0.00007975101470947266, -0.00933837890625, -0.0281524658203125, -0.01189422607421875, 0.0625, -0.0027866363525390625, -0.0185546875, -0.04449462890625, -0.057861328125, 0.006267547607421875, 0.0032024383544921875, -0.07330322265625, -0.044525146484375, -0.0276031494140625, 0.083984375, 0.00833892822265625, 0.00327301025390625, -0.0261077880859375, 0.042022705078125, 0.0251007080078125, 0.004970550537109375, 0.0036602020263671875, 0.0207061767578125, 0.031219482421875, 0.0582275390625, 0.0364990234375, -0.01480865478515625, 0.0088348388671875, 0.0067138671875, 0.03875732421875, 0.0034961700439453125, 0.0038738250732421875, 0.0136871337890625, -0.03338623046875, 0.0221099853515625, 0.01470947265625, 0.03472900390625, -0.00881195068359375, -0.045379638671875, 0.01427459716796875, 0.012420654296875, -0.0615234375, -0.06634521484375, -0.03265380859375, -0.032867431640625, 0.00907135009765625, 0.006145477294921875, -0.007137298583984375, -0.003662109375, 0.0164337158203125, 0.0119476318359375, 0.05548095703125, -0.054656982421875, -0.0205230712890625, -0.0316162109375, -0.0565185546875, -0.05126953125, 0.01983642578125, -0.017730712890625, 0.0009150505065917969, 0.0892333984375, 0.004146575927734375, -0.0762939453125, -0.0047607421875, 0.01398468017578125, -0.01085662841796875, 0.0418701171875, 0.04254150390625, -0.048370361328125, 0.0269775390625, -0.0023822784423828125, 0.03192138671875, 0.039794921875, -0.0190582275390625, -0.0028018951416015625, 0.005245208740234375, 0.0167694091796875, 0.00826263427734375, -0.0045928955078125, -0.0005822181701660156, 0.00890350341796875, -0.01544952392578125, -0.04046630859375, -0.01470184326171875, 0.006000518798828125, -0.01021575927734375, -0.003246307373046875, 0.0027923583984375, -0.00820159912109375, -0.0283660888671875, 0.0209808349609375, -0.0095367431640625, 0.0237274169921875, -0.004428863525390625, -0.00789642333984375, -0.00879669189453125, -0.0178985595703125, -0.038604736328125, 0.008544921875, 0.0236358642578125, -0.01399993896484375, -0.0148468017578125, -0.0009784698486328125, 0.00878143310546875, -0.016754150390625, 0.018402099609375, -0.0361328125, -0.075439453125, 0.0156402587890625, -0.0753173828125, -0.009063720703125, -0.0458984375, 0.004772186279296875, 0.00751495361328125, 0.08734130859375, -0.047149658203125, -0.0163116455078125, 0.00870513916015625, 0.016754150390625, -0.0304412841796875, -0.03704833984375, -0.046600341796875, -0.0288543701171875, -0.06768798828125, -0.0006976127624511719, -0.0166778564453125, -0.0248870849609375, -0.042449951171875, 0.0164794921875, -0.06707763671875, -0.024932861328125, 0.039825439453125, -0.08526611328125, 0.06591796875, -0.05487060546875, 0.0703125, -0.0625, -0.0080718994140625, -0.05352783203125, -0.05548095703125, -0.00835418701171875, -0.0157470703125, 0.027923583984375, -0.0121002197265625, 0.0195770263671875, -0.0207672119140625, 0.0345458984375, 0.0004887580871582031, 0.01947021484375, 0.01403045654296875, 0.042694091796875, -0.0203704833984375, -0.044891357421875, -0.00818634033203125, -0.058990478515625, -0.03424072265625, -0.05535888671875, -0.001132965087890625, 0.01300048828125, 0.001956939697265625, 0.038604736328125, -0.0123138427734375, 0.013824462890625, -0.042694091796875, -0.040802001953125, -0.03082275390625, -0.00734710693359375, -0.023040771484375, 0.019256591796875, -0.035614013671875, -0.0374755859375, 0.0709228515625, -0.017242431640625, -0.0125732421875, 0.0105743408203125, 0.1046142578125, -0.00052642822265625, -0.0206451416015625, -0.08197021484375, 0.037139892578125, 0.04351806640625, 0.0011262893676757812, 0.03399658203125, 0.010009765625, -0.0294952392578125, 0.0504150390625, 0.01195526123046875, -0.000591278076171875, -0.024749755859375, 0.0572509765625, 0.0272064208984375, 0.0152740478515625, -0.015777587890625, 0.00464630126953125, 0.00412750244140625, 0.021453857421875, -0.01507568359375, -0.029754638671875, -0.017852783203125, 0.0654296875, -0.018280029296875, 0.024444580078125, -0.053192138671875, -0.048309326171875, 0.0072479248046875, -0.078125, 0.03192138671875, 0.007171630859375, -0.006526947021484375, 0.0269622802734375, 0.00966644287109375, -0.0142364501953125, -0.016815185546875, -0.045684814453125, -0.018707275390625, -0.0026607513427734375, -0.032196044921875, -0.0238494873046875, 0.01580810546875, 0.00144195556640625, 0.0125579833984375, -0.0260162353515625, -0.062744140625, -0.01451873779296875, -0.0016870498657226562, 0.0148468017578125, 0.06646728515625, -0.007617950439453125, 0.0191802978515625, -0.00797271728515625, 0.02630615234375, 0.0250396728515625, -0.054046630859375, -0.01122283935546875, -0.0107879638671875, -0.0217437744140625, -0.0125885009765625, -0.0233612060546875, 0.01690673828125, 0.0026874542236328125, -0.0220184326171875, -0.0011320114135742188, -0.003696441650390625, 0.035614013671875, 0.0296478271484375, -0.0014095306396484375, 0.0184783935546875, 0.0196685791015625, -0.0138702392578125, -0.0303497314453125, -0.0007381439208984375, -0.042510986328125, -0.001903533935546875, -0.016387939453125, 0.0399169921875, -0.0082550048828125, -0.0180206298828125, 0.047515869140625, -0.01242828369140625, 0.0177764892578125, -0.01197052001953125, -0.03704833984375, -0.002475738525390625, -0.002288818359375, -0.01062774658203125, 0.0263671875, -0.02984619140625, -0.004512786865234375, -0.0299530029296875, -0.053375244140625, -0.0034503936767578125, 0.0211944580078125, 0.01464080810546875, -0.0218658447265625, -0.039093017578125, -0.05157470703125, -0.015045166015625, 0.00853729248046875, 0.01055908203125, -0.0089874267578125, -0.01116180419921875, -0.045928955078125, 0.01361083984375, 0.0004448890686035156, 0.030670166015625, 0.00009673833847045898, -0.023223876953125, 0.0180511474609375, 0.00029277801513671875, 0.0489501953125, 0.004238128662109375, -0.06683349609375, -0.00585174560546875, -0.056488037109375, -0.00775146484375, -0.0271148681640625, -0.0091552734375, -0.040771484375, 0.00875091552734375, -0.01441192626953125, 0.00012683868408203125, -0.01009368896484375, -0.0022563934326171875, -0.0008311271667480469, 0.0281219482421875, 0.01081085205078125, -0.015899658203125, 0.018341064453125, 0.01947021484375, -0.0149078369140625, 0.051666259765625, 0.01020050048828125, -0.004825592041015625, -0.0335693359375, -0.032379150390625, 0.0014133453369140625, -0.045867919921875, -0.00862884521484375, -0.01305389404296875, -0.0261993408203125, 0.01690673828125, 0.050445556640625, 0.0005249977111816406, 0.0198974609375, -0.0095977783203125, 0.0016298294067382812, 0.0084075927734375, -0.042938232421875, -0.01430511474609375, -0.01995849609375, 0.053314208984375, -0.034149169921875, 0.0027294158935546875, 0.020263671875, 0.00888824462890625, 0.018035888671875, -0.03582763671875, 0.0196990966796875, 0.036956787109375, -0.03759765625, 0.0362548828125, 0.03643798828125, 0.03643798828125, 0.030487060546875, -0.0011882781982421875, 0.0272979736328125, -0.01165008544921875, -0.00865936279296875, -0.01291656494140625, 0.0239105224609375, 0.051116943359375, 0.0055389404296875, -0.02410888671875, 0.03546142578125, -0.04150390625, -0.02520751953125, 0.03955078125, 0.0323486328125, -0.033905029296875, -0.0009217262268066406, 0.0160064697265625, -0.0027103424072265625, -0.01384735107421875, 0.04705810546875, -0.046905517578125, -0.01458740234375, -0.04559326171875, -0.02923583984375, -0.0364990234375, -0.0159454345703125, 0.0455322265625, -0.0041961669921875, 0.0083770751953125, 0.0313720703125, 0.0238800048828125, -0.0218963623046875, -0.022857666015625, 0.024383544921875, -0.0189971923828125, -0.021514892578125, -0.00518035888671875, 0.052703857421875, -0.035125732421875, -0.0625, 0.0634765625, 0.01446533203125, -0.01296234130859375, -0.01019287109375, -0.0303955078125, 0.059722900390625, 0.042633056640625, -0.0021877288818359375, -0.01244354248046875, 0.0103759765625, -0.0221405029296875, -0.0026378631591796875, 0.007068634033203125, 0.02435302734375, 0.020904541015625, -0.07757568359375, 0.006450653076171875, -0.0543212890625, 0.03045654296875, -0.02862548828125, -0.07525634765625, 0.05084228515625, -0.037841796875, 0.01256561279296875, 0.0166778564453125, 0.0374755859375, 0.008941650390625, -0.01045989990234375, 0.020355224609375, -0.0017328262329101562, 0.032989501953125, 0.00325775146484375, 0.02081298828125, 0.00701141357421875, 0.004241943359375, -0.05615234375, 0.05792236328125, -0.011383056640625, 0.0194549560546875, 0.0079803466796875, 0.00817108154296875, -0.004085540771484375, -0.0032711029052734375, -0.05364990234375, 0.0367431640625, 0.0192413330078125, 0.07000732421875, -0.06915283203125, -0.0239105224609375, 0.027099609375, 0.0435791015625, 0.061004638671875, 0.006977081298828125, 0.006000518798828125, -0.0113677978515625, 0.052490234375, 0.044647216796875, 0.0037288665771484375, 0.0106353759765625, -0.0206298828125, 0.01503753662109375, 0.0311431884765625, -0.0249481201171875, 0.038177490234375, -0.002338409423828125, -0.041534423828125, -0.004787445068359375, 0.019927978515625, 0.039215087890625, -0.0234527587890625, 0.011444091796875, 0.0187225341796875, -0.025604248046875, -0.011749267578125, -0.031646728515625, 0.009552001953125, 0.060882568359375, 0.059356689453125, -0.03363037109375, 0.015960693359375, -0.03839111328125, 0.07635498046875, -0.00748443603515625, 0.04510498046875, 0.0352783203125, 0.01198577880859375, 0.0537109375, 0.01000213623046875, 0.02703857421875, 0.01343536376953125, -0.026641845703125, 0.07568359375, 0.032501220703125, 0.021240234375, -0.044677734375, -0.006374359130859375, 0.055450439453125, 0.09039306640625, -0.0650634765625, -0.04193115234375, 0.004589080810546875, 0.0171356201171875, 0.01200103759765625, -0.00018930435180664062, 0.0212249755859375, 0.0268402099609375, 0.073486328125, -0.035430908203125, 0.0001614093780517578, 0.03662109375, 0.0186004638671875, 0.01082611083984375, 0.0204925537109375, -0.036407470703125, -0.0238037109375, -0.0262451171875, 0.00571441650390625, 0.004306793212890625, 0.044097900390625, 0.0171661376953125, 0.03228759765625, -0.019073486328125, -0.00823974609375, -0.01316070556640625, 0.025299072265625, 0.0127105712890625, -0.00405120849609375, -0.02203369140625, -0.028076171875, 0.0278472900390625, 0.0279541015625, -0.01104736328125, 0.030548095703125, 0.032257080078125, 0.035003662109375, -0.005767822265625, -0.0156097412109375, 0.0186920166015625, -0.02227783203125, 0.01016998291015625, -0.0218963623046875, 0.07012939453125, 0.060028076171875, 0.0248260498046875, -0.04229736328125, 0.0684814453125, 0.071533203125, -0.039306640625, 0.030242919921875, -0.003612518310546875, -0.03997802734375, 0.0609130859375, -0.01366424560546875, 0.0556640625, 0.00010055303573608398, -0.0552978515625, -0.040374755859375, -0.01678466796875, -0.00977325439453125, 0.023162841796875, 0.04278564453125, 0.01425933837890625, 0.0015010833740234375, -0.00768280029296875, -0.0294036865234375, 0.008636474609375, 0.01953125, 0.01537322998046875, 0.00716400146484375, 0.0029468536376953125, -0.004486083984375, -0.032867431640625, -0.0158233642578125, -0.004047393798828125, 0.0260162353515625, 0.0121612548828125, 0.006153106689453125, 0.004299163818359375, 0.032806396484375, -0.045379638671875, 0.03778076171875, -0.061309814453125, -0.047088623046875, 0.049072265625, 0.0107269287109375, -0.00310516357421875, 0.005767822265625, 0.0394287109375, 0.0292205810546875, 0.03717041015625, -0.060455322265625, -0.017608642578125, -0.0108642578125, 0.0080413818359375, -0.017059326171875, 0.0147705078125, -0.013427734375, -0.032745361328125, -0.0218963623046875, -0.00444793701171875, 0.01357269287109375, 0.0289459228515625, -0.007030487060546875, 0.0107421875, 0.00856781005859375, 0.019622802734375, 0.0099945068359375, 0.0267333984375, 0.029296875, 0.036834716796875, -0.04449462890625, -0.00933074951171875, 0.0169525146484375, -0.020965576171875, -0.02337646484375, 0.023529052734375, -0.0036773681640625, 0.01006317138671875, -0.06854248046875, -0.0250091552734375, 0.034393310546875, 0.04620361328125, -0.0103607177734375, 0.042236328125, -0.033966064453125, -0.00806427001953125, 0.032745361328125, -0.0116424560546875, -0.036346435546875, -0.052337646484375, -0.0128936767578125, 0.039306640625, -0.03460693359375, 0.0216827392578125, -0.0772705078125, -0.00946044921875, 0.051849365234375, 0.005733489990234375, -0.01511383056640625, 0.01453399658203125, -0.032623291015625, 0.00029397010803222656, 0.01861572265625, -0.011810302734375, -0.00727081298828125, 0.00502777099609375, -0.0513916015625, -0.006587982177734375, -0.042083740234375, -0.0147247314453125, -0.03570556640625, 0.019134521484375, 0.0179901123046875, -0.020355224609375, 0.0157470703125, -0.0038242340087890625, 0.007495880126953125, 0.054840087890625, 0.0194854736328125, -0.010009765625, 0.0293731689453125, 0.005950927734375, -0.0433349609375, -0.036224365234375, 0.004261016845703125, -0.001010894775390625, 0.00290679931640625, -0.035614013671875, 0.0188140869140625, 0.018463134765625, -0.038848876953125, -0.0513916015625, 0.022186279296875, -0.00873565673828125, -0.032958984375, -0.01016998291015625, -0.0162506103515625, -0.0287628173828125, 0.0197296142578125, -0.006542205810546875, -0.01439666748046875, -0.01230621337890625, 0.03802490234375, 0.0137786865234375, 0.0440673828125, 0.005489349365234375, -0.013397216796875, -0.05926513671875, 0.00665283203125, -0.0033893585205078125, 0.03973388671875, 0.0186309814453125, -0.0014476776123046875, 0.0257110595703125, 0.05767822265625, -0.0396728515625, 0.0164947509765625, -0.01027679443359375, -0.014739990234375, 0.00421142578125, -0.0282135009765625, -0.037811279296875, -0.01751708984375, 0.06256103515625, 0.019500732421875, 0.0145416259765625, -0.030487060546875, -0.045928955078125, -0.0176849365234375, 0.031768798828125, 0.0016508102416992188, 0.004329681396484375, -0.05169677734375, 0.0007643699645996094, 0.0249176025390625, 0.00688934326171875, -0.004909515380859375, 0.007152557373046875, -0.0239715576171875, -0.018951416015625, 0.0017986297607421875, -0.0100250244140625, -0.04486083984375, 0.0037841796875, -0.0280914306640625, -0.01214599609375, -0.0243072509765625, -0.00983428955078125, 0.0027866363525390625, -0.04022216796875, 0.0183563232421875, -0.0268096923828125, -0.0055389404296875, -0.0159759521484375, 0.045867919921875, -0.030792236328125, 0.0273284912109375, -0.043365478515625, 0.0285491943359375, -0.01236724853515625, 0.040252685546875, -0.0107421875, 0.035736083984375, -0.0132904052734375, 0.068115234375, 0.0189971923828125, 0.07867431640625, -0.0186614990234375, -0.08294677734375, -0.03424072265625, 0.046783447265625, -0.03857421875, -0.007793426513671875, 0.02374267578125, -0.05145263671875, 0.001617431640625, -0.0099639892578125, 0.0215606689453125, -0.0304718017578125, 0.019195556640625, -0.0203094482421875, -0.001129150390625, 0.0243377685546875 ]
3f32c016d88bcbfccaa30c3ea89b2d65c62d62e7
Wordpress Stackexchange Q: How can I add an extra WooCommerce hook In the standard WooCommerce template file content-single-product.php there is a set of hooks that control the way the page lays out in a series of blocks which are called by a series of hooks eg 'woocommerce_before_single_product_summary'. If you are familiar with WooCommerce you will know what I mean. There are three of these * *woocommerce_before_single_product_summary *woocommerce_single_product_summary *woocommerce_after_single_product_summary For my layout I need to add a fourth along the lines of 'woocommerce_before_single_product_intro' I understand that I can move content around, such as moving the title to before the image. That seems to work fine, but I can't work out how to add a new hook. I have tried adding add_action( 'woocommerce_single_product_intro', 'woocommerce_template_single_title', 5 ); to my functions file but it didn't work and I am guessing I have missed something rather important from it. A: You can create a hook by calling do_action, then referring to the hook in your functions.php with add_action. For example, in the theme, where you want the action to occur: do_action('woocommerce_before_single_product_intro'); Then in functions.php add_action('woocommerce_before_single_product_intro','your_function',[...]); For the sake of maintainability, I'd choose a naming convention that doesn't confuse your hooks with WooCommerce's.
Q: How can I add an extra WooCommerce hook In the standard WooCommerce template file content-single-product.php there is a set of hooks that control the way the page lays out in a series of blocks which are called by a series of hooks eg 'woocommerce_before_single_product_summary'. If you are familiar with WooCommerce you will know what I mean. There are three of these * *woocommerce_before_single_product_summary *woocommerce_single_product_summary *woocommerce_after_single_product_summary For my layout I need to add a fourth along the lines of 'woocommerce_before_single_product_intro' I understand that I can move content around, such as moving the title to before the image. That seems to work fine, but I can't work out how to add a new hook. I have tried adding add_action( 'woocommerce_single_product_intro', 'woocommerce_template_single_title', 5 ); to my functions file but it didn't work and I am guessing I have missed something rather important from it. A: You can create a hook by calling do_action, then referring to the hook in your functions.php with add_action. For example, in the theme, where you want the action to occur: do_action('woocommerce_before_single_product_intro'); Then in functions.php add_action('woocommerce_before_single_product_intro','your_function',[...]); For the sake of maintainability, I'd choose a naming convention that doesn't confuse your hooks with WooCommerce's.
wordpress
{ "language": "en", "length": 195, "provenance": "stackexchange_00019.jsonl.gz:463585", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/219165" }
[ 0.037872314453125, -0.0192413330078125, -0.00896453857421875, -0.05865478515625, -0.00734710693359375, -0.02349853515625, 0.00702667236328125, 0.019561767578125, -0.05810546875, 0.049163818359375, -0.0278167724609375, 0.04278564453125, -0.01183319091796875, 0.01678466796875, 0.005069732666015625, -0.0170440673828125, 0.0401611328125, -0.0211181640625, 0.04730224609375, 0.01442718505859375, -0.000021278858184814453, 0.047760009765625, 0.0227203369140625, 0.04595947265625, 0.0259246826171875, -0.044830322265625, 0.0980224609375, -0.044464111328125, 0.07373046875, 0.0039215087890625, 0.032012939453125, -0.045440673828125, 0.034698486328125, 0.0014247894287109375, -0.0126495361328125, 0.047119140625, 0.0036258697509765625, -0.00499725341796875, 0.0118255615234375, 0.01120758056640625, 0.05389404296875, -0.01517486572265625, -0.006122589111328125, 0.04443359375, -0.0035400390625, -0.042633056640625, 0.037078857421875, -0.049163818359375, 0.03948974609375, -0.03643798828125, 0.0006127357482910156, 0.0116119384765625, 0.00783538818359375, -0.035369873046875, -0.031341552734375, -0.00841522216796875, -0.05706787109375, 0.0190582275390625, 0.01001739501953125, 0.0504150390625, 0.02294921875, 0.007640838623046875, -0.0028171539306640625, -0.029052734375, 0.0369873046875, 0.019775390625, -0.0169525146484375, 0.0284423828125, -0.025115966796875, 0.025909423828125, 0.007030487060546875, -0.044525146484375, -0.00868988037109375, 0.01300048828125, -0.00554656982421875, -0.033782958984375, 0.0196533203125, -0.0275421142578125, 0.01364898681640625, 0.036102294921875, -0.0187530517578125, -0.021484375, 0.027008056640625, -0.07989501953125, 0.03839111328125, -0.04107666015625, -0.007549285888671875, 0.0218048095703125, -0.0289306640625, -0.021697998046875, -0.035797119140625, -0.0029754638671875, -0.004772186279296875, -0.01111602783203125, -0.04510498046875, 0.0014543533325195312, -0.0036983489990234375, -0.00868988037109375, 0.004520416259765625, 0.003658294677734375, 0.059783935546875, -0.0640869140625, 0.04864501953125, -0.0284576416015625, -0.0078582763671875, 0.0173187255859375, 0.017852783203125, 0.009002685546875, -0.003551483154296875, 0.0082244873046875, -0.023193359375, -0.0027484893798828125, -0.0026912689208984375, -0.031768798828125, -0.016265869140625, -0.007785797119140625, -0.043701171875, 0.034515380859375, 0.021087646484375, 0.01209259033203125, 0.02484130859375, 0.033416748046875, 0.04754638671875, -0.00011903047561645508, -0.0377197265625, -0.0161590576171875, -0.02056884765625, -0.07244873046875, 0.040283203125, -0.0172882080078125, -0.015960693359375, 0.0018091201782226562, 0.034576416015625, 0.037811279296875, 0.0005617141723632812, -0.0091705322265625, 0.0233306884765625, 0.05731201171875, -0.0019140243530273438, 0.0105743408203125, -0.0017862319946289062, -0.0087738037109375, -0.009307861328125, -0.01007843017578125, 0.043975830078125, -0.0204620361328125, -0.007358551025390625, 0.0218963623046875, 0.05926513671875, 0.022979736328125, 0.0204620361328125, -0.0010023117065429688, 0.002490997314453125, 0.028594970703125, -0.0008282661437988281, 0.044708251953125, 0.004268646240234375, 0.007381439208984375, -0.01091766357421875, -0.0037021636962890625, -0.004650115966796875, -0.02398681640625, -0.00960540771484375, -0.05035400390625, -0.06683349609375, 0.0247802734375, -0.0250701904296875, -0.006229400634765625, 0.0165252685546875, 0.037811279296875, 0.00667572021484375, -0.0011348724365234375, 0.023681640625, -0.0213775634765625, -0.028839111328125, -0.017608642578125, -0.033538818359375, 0.041961669921875, 0.03265380859375, 0.0060882568359375, -0.0038852691650390625, -0.03839111328125, 0.06719970703125, -0.009033203125, -0.07696533203125, 0.07763671875, 0.0119476318359375, 0.0640869140625, -0.0147705078125, 0.0033111572265625, 0.0235595703125, 0.058441162109375, -0.035675048828125, 0.00439453125, 0.01369476318359375, -0.019989013671875, 0.0142059326171875, -0.01157379150390625, -0.0054473876953125, 0.005771636962890625, 0.00868988037109375, 0.0150146484375, 0.0169830322265625, -0.0002856254577636719, -0.0033893585205078125, 0.0211334228515625, -0.0042877197265625, 0.030670166015625, -0.060089111328125, -0.004215240478515625, 0.039215087890625, 0.012115478515625, -0.0155029296875, -0.0582275390625, -0.0145416259765625, -0.033660888671875, -0.0238494873046875, 0.08380126953125, 0.01413726806640625, 0.048004150390625, 0.04913330078125, -0.05267333984375, 0.041534423828125, 0.003734588623046875, 0.05584716796875, 0.0100860595703125, -0.0174102783203125, -0.0261383056640625, 0.0087127685546875, 0.0245361328125, -0.0831298828125, 0.03533935546875, 0.034942626953125, -0.02166748046875, -0.043121337890625, 0.026702880859375, 0.01061248779296875, -0.045318603515625, -0.0308074951171875, 0.043365478515625, 0.03338623046875, 0.041259765625, -0.01151275634765625, 0.0022983551025390625, 0.053070068359375, -0.02935791015625, 0.0066680908203125, -0.007724761962890625, -0.0233306884765625, 0.032012939453125, -0.013580322265625, 0.0330810546875, 0.007843017578125, -0.06805419921875, -0.00479888916015625, 0.04461669921875, -0.040863037109375, -0.06494140625, -0.0034809112548828125, 0.00374603271484375, 0.0163116455078125, -0.04046630859375, -0.0242919921875, -0.014617919921875, 0.054107666015625, 0.0070037841796875, 0.047760009765625, 0.0235595703125, -0.0232696533203125, 0.0012722015380859375, 0.0150299072265625, 0.002063751220703125, -0.024566650390625, 0.008087158203125, -0.005245208740234375, -0.0170440673828125, -0.032806396484375, 0.026275634765625, -0.0239410400390625, -0.0205841064453125, -0.003543853759765625, 0.039703369140625, 0.0125274658203125, -0.01287841796875, -0.00568389892578125, -0.04766845703125, -0.0053863525390625, -0.0187225341796875, 0.007354736328125, -0.0300140380859375, 0.011932373046875, -0.0153656005859375, -0.05072021484375, 0.0416259765625, -0.0131072998046875, -0.05157470703125, -0.01520538330078125, -0.0201263427734375, 0.044189453125, -0.054351806640625, 0.0404052734375, 0.0516357421875, -0.062744140625, 0.04736328125, 0.01290130615234375, -0.035675048828125, 0.0062408447265625, -0.01605224609375, -0.035064697265625, 0.012298583984375, -0.07781982421875, 0.01824951171875, 0.02105712890625, 0.046783447265625, 0.006885528564453125, -0.027435302734375, 0.0153961181640625, 0.03167724609375, 0.00939178466796875, -0.02679443359375, -0.0037479400634765625, -0.07763671875, 0.050140380859375, -0.0288238525390625, -0.03106689453125, -0.051605224609375, 0.01215362548828125, 0.01812744140625, -0.041839599609375, 0.00498199462890625, 0.01168060302734375, -0.055419921875, -0.03466796875, 0.004791259765625, 0.016815185546875, 0.0160980224609375, 0.00677490234375, 0.0056304931640625, -0.0089263916015625, -0.01023101806640625, 0.033111572265625, -0.0269775390625, -0.024505615234375, -0.015228271484375, 0.006198883056640625, -0.03485107421875, -0.007602691650390625, 0.01000213623046875, -0.01352691650390625, 0.00942230224609375, -0.00850677490234375, -0.0089874267578125, -0.006885528564453125, -0.019866943359375, 0.007465362548828125, 0.07415771484375, 0.0180511474609375, -0.0289459228515625, 0.037384033203125, -0.06549072265625, -0.0254058837890625, 0.0074462890625, -0.042022705078125, -0.008056640625, 0.03704833984375, -0.01497650146484375, -0.0245819091796875, -0.00788116455078125, 0.020904541015625, 0.0074920654296875, 0.01141357421875, 0.006572723388671875, -0.044219970703125, -0.0047149658203125, -0.01224517822265625, -0.01104736328125, 0.0238494873046875, -0.01263427734375, 0.016265869140625, 0.016998291015625, 0.037750244140625, -0.0003631114959716797, 0.0311279296875, -0.034149169921875, -0.00884246826171875, 0.0179443359375, -0.032623291015625, 0.029449462890625, -0.036773681640625, -0.01326751708984375, -0.02520751953125, 0.060028076171875, -0.037353515625, -0.0229034423828125, 0.0136260986328125, 0.0171966552734375, -0.029815673828125, -0.01171875, -0.033782958984375, -0.0107879638671875, -0.0794677734375, 0.0440673828125, 0.007373809814453125, -0.013031005859375, -0.00820159912109375, -0.023895263671875, -0.04937744140625, -0.039276123046875, 0.00739288330078125, 0.00768280029296875, 0.0014524459838867188, 0.06658935546875, -0.037445068359375, 0.07537841796875, -0.0158538818359375, -0.0182952880859375, -0.02337646484375, -0.01174163818359375, 0.0093841552734375, 0.0248870849609375, 0.01161956787109375, -0.0022449493408203125, -0.0257720947265625, 0.0086517333984375, -0.0006661415100097656, 0.0031795501708984375, 0.017730712890625, 0.03765869140625, -0.008758544921875, -0.04315185546875, -0.0027065277099609375, -0.046173095703125, -0.006908416748046875, -0.0212860107421875, -0.007106781005859375, 0.0014810562133789062, -0.0103302001953125, 0.00586700439453125, 0.0043487548828125, -0.0222320556640625, -0.10333251953125, -0.0340576171875, 0.049346923828125, 0.022705078125, 0.01143646240234375, 0.029388427734375, -0.041900634765625, -0.057830810546875, -0.0119171142578125, -0.05096435546875, -0.031585693359375, 0.02716064453125, 0.023162841796875, 0.039703369140625, 0.009521484375, 0.02008056640625, 0.022216796875, 0.032257080078125, 0.00690460205078125, 0.005039215087890625, -0.041778564453125, -0.02801513671875, 0.06396484375, -0.006839752197265625, 0.0007839202880859375, 0.006988525390625, 0.046112060546875, -0.01202392578125, -0.01898193359375, 0.0006957054138183594, -0.03692626953125, 0.017669677734375, -0.033721923828125, -0.039581298828125, -0.0142974853515625, 0.0159454345703125, 0.03204345703125, -0.0260009765625, 0.0716552734375, -0.01384735107421875, -0.006683349609375, -0.016082763671875, 0.04473876953125, 0.0277252197265625, 0.03814697265625, 0.00492095947265625, 0.00165557861328125, 0.00930023193359375, -0.007244110107421875, -0.003437042236328125, -0.032928466796875, -0.020416259765625, -0.01058197021484375, 0.0232696533203125, -0.003208160400390625, 0.013671875, -0.01444244384765625, 0.02313232421875, 0.011383056640625, -0.02996826171875, -0.033416748046875, -0.0256195068359375, 0.040740966796875, -0.0211944580078125, -0.004119873046875, 0.02728271484375, 0.0006632804870605469, -0.0166168212890625, -0.01296234130859375, -0.0552978515625, 0.007598876953125, -0.055145263671875, 0.0262298583984375, 0.01258087158203125, -0.005702972412109375, 0.0789794921875, 0.007068634033203125, 0.0297698974609375, 0.031524658203125, -0.0198516845703125, 0.01058197021484375, 0.01497650146484375, 0.03900146484375, 0.0426025390625, -0.044708251953125, -0.03173828125, 0.0233001708984375, -0.026031494140625, -0.038848876953125, 0.0006890296936035156, 0.00904083251953125, 0.00893402099609375, -0.02886962890625, -0.03253173828125, 0.034820556640625, 0.01076507568359375, -0.02215576171875, 0.0238189697265625, 0.03411865234375, -0.03582763671875, -0.0024814605712890625, 0.0277252197265625, 0.01047515869140625, 0.008758544921875, 0.00417327880859375, 0.005870819091796875, -0.0271759033203125, 0.0056915283203125, 0.005352020263671875, -0.00225830078125, -0.020965576171875, -0.02093505859375, -0.01259613037109375, -0.0191802978515625, 0.0102691650390625, -0.016876220703125, -0.0173187255859375, -0.0189208984375, -0.0058441162109375, 0.01885986328125, 0.0156402587890625, 0.04486083984375, -0.0501708984375, -0.02569580078125, -0.0352783203125, -0.000614166259765625, 0.046356201171875, 0.024444580078125, -0.0205841064453125, 0.00045561790466308594, -0.0170135498046875, -0.03924560546875, 0.011871337890625, -0.0119171142578125, -0.0240325927734375, 0.00012791156768798828, -0.0097503662109375, 0.01348114013671875, -0.0070648193359375, -0.0168914794921875, 0.01654052734375, -0.007678985595703125, -0.03521728515625, -0.01428985595703125, -0.0027217864990234375, 0.04241943359375, 0.006694793701171875, 0.0380859375, 0.0247344970703125, 0.01508331298828125, -0.0071868896484375, -0.023712158203125, -0.0174713134765625, -0.019927978515625, -0.01021575927734375, -0.01041412353515625, -0.0006976127624511719, 0.053680419921875, 0.08123779296875, 0.005859375, -0.013275146484375, -0.01329803466796875, -0.0009860992431640625, -0.0241546630859375, 0.013458251953125, 0.0018472671508789062, -0.044586181640625, 0.0305938720703125, -0.04278564453125, -0.00585174560546875, 0.00911712646484375, 0.0178985595703125, 0.0255279541015625, -0.0288543701171875, 0.020477294921875, 0.0176849365234375, -0.043548583984375, 0.038330078125, 0.039642333984375, -0.0007963180541992188, 0.01812744140625, -0.01171875, -0.0038585662841796875, 0.01445770263671875, 0.022857666015625, -0.0191802978515625, -0.039031982421875, 0.042816162109375, 0.006805419921875, -0.012298583984375, 0.048004150390625, -0.0237274169921875, 0.04833984375, 0.0364990234375, 0.05499267578125, -0.08453369140625, 0.0202484130859375, -0.001125335693359375, 0.00704193115234375, 0.081298828125, -0.0235595703125, 0.027587890625, -0.0372314453125, 0.049835205078125, 0.01003265380859375, 0.0026149749755859375, 0.007442474365234375, -0.061553955078125, 0.001514434814453125, 0.01367950439453125, 0.0156402587890625, 0.00814056396484375, -0.07012939453125, 0.00899505615234375, 0.051605224609375, -0.018829345703125, -0.05059814453125, -0.0254974365234375, 0.00016438961029052734, -0.0120086669921875, -0.00855255126953125, 0.0474853515625, -0.04437255859375, 0.07965087890625, 0.061492919921875, -0.00856781005859375, -0.017730712890625, 0.0088958740234375, -0.004566192626953125, -0.006305694580078125, -0.033294677734375, -0.01462554931640625, -0.08209228515625, -0.00215911865234375, 0.050567626953125, 0.0224151611328125, -0.051666259765625, 0.0300445556640625, -0.068115234375, 0.00234222412109375, 0.00928497314453125, 0.002880096435546875, 0.01351165771484375, -0.0226898193359375, -0.01558685302734375, 0.03759765625, 0.004795074462890625, 0.010772705078125, 0.003696441650390625, 0.0447998046875, -0.021881103515625, -0.002643585205078125, 0.03192138671875, -0.005115509033203125, -0.022247314453125, 0.01081085205078125, -0.07244873046875, 0.09332275390625, -0.039642333984375, 0.025543212890625, 0.0172882080078125, 0.021759033203125, -0.02471923828125, -0.006591796875, -0.052337646484375, 0.04693603515625, 0.0078277587890625, 0.06304931640625, -0.0357666015625, 0.00458526611328125, 0.021942138671875, 0.005611419677734375, 0.051422119140625, 0.01082611083984375, 0.0006995201110839844, 0.01898193359375, 0.05828857421875, -0.0117034912109375, -0.0421142578125, 0.0271759033203125, -0.00994110107421875, -0.06549072265625, -0.005191802978515625, 0.017974853515625, 0.0296478271484375, -0.03753662109375, -0.00972747802734375, 0.0043182373046875, 0.002986907958984375, -0.01113128662109375, -0.00968170166015625, 0.05999755859375, -0.02862548828125, -0.003040313720703125, 0.02374267578125, 0.0014362335205078125, -0.020782470703125, 0.0217437744140625, -0.051361083984375, 0.057403564453125, 0.06414794921875, -0.04193115234375, 0.034759521484375, -0.038177490234375, 0.036468505859375, 0.063232421875, 0.014495849609375, 0.0797119140625, -0.00092315673828125, 0.0273590087890625, 0.0035495758056640625, -0.00308990478515625, 0.04217529296875, 0.0088043212890625, 0.01418304443359375, -0.0078887939453125, 0.06646728515625, 0.0164337158203125, 0.024169921875, -0.0460205078125, 0.0261383056640625, -0.0032329559326171875, -0.0030651092529296875, -0.0010175704956054688, -0.058624267578125, 0.0153045654296875, -0.0152587890625, -0.03228759765625, -0.03656005859375, -0.02386474609375, 0.031402587890625, 0.047088623046875, 0.01325225830078125, 0.03228759765625, -0.060028076171875, -0.07086181640625, -0.046875, 0.031280517578125, 0.00936126708984375, 0.0643310546875, 0.007633209228515625, 0.0853271484375, -0.013702392578125, -0.033843994140625, 0.007343292236328125, -0.0023708343505859375, -0.007480621337890625, -0.01177215576171875, -0.03118896484375, -0.03851318359375, 0.0184478759765625, 0.0309906005859375, 0.0295867919921875, 0.052703857421875, 0.0211639404296875, 0.040374755859375, 0.04541015625, 0.01261138916015625, 0.055419921875, 0.0000022649765014648438, 0.0012722015380859375, -0.0161895751953125, 0.0305023193359375, 0.0159912109375, -0.00255584716796875, -0.00862884521484375, 0.0272979736328125, 0.0299530029296875, -0.04229736328125, 0.0294647216796875, -0.018768310546875, -0.07220458984375, 0.037445068359375, -0.032440185546875, 0.1370849609375, -0.016143798828125, -0.0635986328125, -0.0248565673828125, 0.0196533203125, -0.052398681640625, 0.01425933837890625, 0.045501708984375, -0.045379638671875, 0.038848876953125, 0.0131378173828125, 0.021148681640625, 0.003192901611328125, -0.0165557861328125, -0.0006594657897949219, -0.0281524658203125, 0.03173828125, 0.005962371826171875, -0.0262298583984375, -0.004589080810546875, -0.019561767578125, 0.0309600830078125, 0.040130615234375, 0.042572021484375, -0.01039886474609375, 0.041412353515625, 0.03509521484375, 0.005275726318359375, 0.01424407958984375, 0.012298583984375, 0.046600341796875, -0.01145172119140625, -0.0132598876953125, -0.0247650146484375, -0.00882720947265625, -0.002414703369140625, 0.05926513671875, -0.0218963623046875, -0.008880615234375, 0.0048828125, 0.0255279541015625, -0.02056884765625, 0.051116943359375, -0.0115203857421875, -0.0400390625, -0.0291290283203125, -0.0058135986328125, 0.01045989990234375, 0.0046234130859375, 0.0088958740234375, 0.00540924072265625, -0.00926971435546875, -0.0249176025390625, -0.00498199462890625, -0.0005841255187988281, -0.019317626953125, 0.023345947265625, 0.014495849609375, 0.01038360595703125, 0.03289794921875, -0.01551055908203125, 0.0213165283203125, 0.0116729736328125, 0.00873565673828125, 0.025115966796875, -0.06121826171875, 0.0168609619140625, 0.033447265625, 0.0225372314453125, -0.0153350830078125, -0.0037479400634765625, 0.05877685546875, -0.04107666015625, 0.008148193359375, 0.02032470703125, -0.032196044921875, -0.029632568359375, 0.01641845703125, -0.000553131103515625, 0.01232147216796875, -0.0140380859375, -0.027069091796875, -0.01300811767578125, 0.043548583984375, 0.00542449951171875, -0.034027099609375, -0.0095367431640625, -0.0081024169921875, 0.0226898193359375, 0.01983642578125, -0.0132293701171875, 0.01389312744140625, 0.023956298828125, -0.031463623046875, -0.03961181640625, -0.0231170654296875, 0.02001953125, -0.03045654296875, -0.00757598876953125, 0.026031494140625, -0.00286865234375, -0.01349639892578125, -0.01139068603515625, -0.01203155517578125, 0.04840087890625, -0.00771331787109375, -0.0223846435546875, 0.013641357421875, 0.011474609375, 0.0085601806640625, -0.04254150390625, -0.004398345947265625, -0.038909912109375, 0.0026149749755859375, 0.00800323486328125, -0.0027618408203125, 0.025909423828125, -0.03094482421875, -0.050567626953125, 0.049591064453125, 0.0054473876953125, -0.01541900634765625, -0.05426025390625, 0.031829833984375, -0.01509857177734375, 0.0218658447265625, -0.0430908203125, 0.0271453857421875, 0.00551605224609375, 0.0595703125, -0.01214599609375, -0.007350921630859375, 0.01335906982421875, -0.018829345703125, -0.01641845703125, 0.023651123046875, 0.04937744140625, -0.0201873779296875, 0.03302001953125, -0.060791015625, 0.0616455078125, 0.0299835205078125, -0.054595947265625, -0.03619384765625, 0.01538848876953125, 0.0024623870849609375, 0.002681732177734375, 0.0013036727905273438, -0.0232696533203125, -0.0247955322265625, 0.00817108154296875, 0.0230560302734375, 0.00333404541015625, 0.019317626953125, 0.0270538330078125, -0.017608642578125, -0.041015625, 0.031890869140625, 0.0202484130859375, -0.0159759521484375, 0.0297698974609375, 0.0217132568359375, -0.0131683349609375, 0.01373291015625, 0.041778564453125, -0.0413818359375, 0.01336669921875, 0.031890869140625, 0.0171661376953125, -0.109619140625, -0.027099609375, 0.059051513671875, -0.0306396484375, -0.02880859375, 0.0166778564453125, 0.0121612548828125, 0.001007080078125, -0.0008120536804199219, 0.005870819091796875, 0.0015764236450195312, -0.01096343994140625, -0.007167816162109375, 0.01776123046875, 0.049530029296875, 0.01157379150390625, -0.0111236572265625, -0.0198516845703125, 0.03778076171875, 0.00820159912109375, 0.0318603515625, -0.0177459716796875, 0.034210205078125, 0.0086517333984375, 0.07330322265625, -0.0159912109375, 0.0738525390625, -0.005451202392578125, 0.02734375, -0.0184478759765625, 0.018218994140625, 0.01229095458984375, -0.0195770263671875, 0.0029277801513671875, 0.0227203369140625, -0.018157958984375, -0.03631591796875, 0.006420135498046875, 0.0196075439453125, 0.0057220458984375, 0.0051727294921875 ]
d0a886c6ae94c6f60d34578fbb4560586898e350
Wordpress Stackexchange Q: How to determine if WP_DEBUG is enabled? I believe I saw this done in a few plugins before, but it has been awhile and I have no clue what plugins offered this or how they offered it, but what I am trying to achieve is this... I want offer a developer mode for my custom theme I'm creating. I am running a function that if enabled will load the prettified files instead of the minified files for developers. But, I also want to load the prettified files if WP_DEBUG is enabled. Is there a way I can check if a user has WP_DEBUG enabled? A: You can just check the value of the constant. if( WP_DEBUG === true ) { // enabled } else { // not enabled }
Q: How to determine if WP_DEBUG is enabled? I believe I saw this done in a few plugins before, but it has been awhile and I have no clue what plugins offered this or how they offered it, but what I am trying to achieve is this... I want offer a developer mode for my custom theme I'm creating. I am running a function that if enabled will load the prettified files instead of the minified files for developers. But, I also want to load the prettified files if WP_DEBUG is enabled. Is there a way I can check if a user has WP_DEBUG enabled? A: You can just check the value of the constant. if( WP_DEBUG === true ) { // enabled } else { // not enabled }
wordpress
{ "language": "en", "length": 130, "provenance": "stackexchange_00019.jsonl.gz:463589", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/219173" }
[ 0.0635986328125, 0.0201416015625, -0.005481719970703125, -0.0653076171875, 0.020538330078125, -0.022735595703125, 0.006877899169921875, -0.01377105712890625, 0.02520751953125, 0.002353668212890625, 0.0257568359375, -0.019927978515625, -0.018402099609375, -0.044830322265625, -0.034332275390625, -0.0225677490234375, 0.037017822265625, -0.01470184326171875, -0.0003352165222167969, -0.0208740234375, -0.0010995864868164062, 0.0028018951416015625, -0.013397216796875, 0.053375244140625, 0.0205230712890625, 0.0054473876953125, 0.049652099609375, -0.007808685302734375, 0.036895751953125, 0.0043792724609375, 0.025482177734375, -0.03857421875, 0.02362060546875, 0.04656982421875, -0.0272674560546875, 0.0120697021484375, 0.006092071533203125, 0.0032444000244140625, 0.0153045654296875, 0.032684326171875, 0.02508544921875, -0.0166473388671875, -0.0002887248992919922, 0.0052947998046875, -0.0069427490234375, -0.040283203125, 0.03521728515625, -0.01482391357421875, 0.0308074951171875, -0.01235198974609375, 0.00506591796875, 0.0080413818359375, 0.020263671875, -0.047760009765625, -0.026519775390625, -0.015350341796875, -0.041015625, 0.01219940185546875, 0.02630615234375, 0.035736083984375, 0.0017213821411132812, -0.014434814453125, 0.0058135986328125, -0.03717041015625, 0.040496826171875, -0.01580810546875, -0.042724609375, 0.02587890625, -0.0205230712890625, 0.033172607421875, 0.03472900390625, -0.05963134765625, -0.0013370513916015625, 0.040374755859375, -0.0167999267578125, -0.053314208984375, 0.01422882080078125, -0.0160980224609375, 0.019744873046875, 0.032562255859375, 0.032928466796875, -0.034759521484375, 0.039825439453125, 0.036285400390625, -0.0195770263671875, 0.034149169921875, -0.0008668899536132812, -0.018402099609375, -0.0069427490234375, 0.020599365234375, -0.026702880859375, 0.022064208984375, 0.0034122467041015625, 0.002796173095703125, -0.01776123046875, -0.0018749237060546875, 0.0171966552734375, 0.040985107421875, -0.0160980224609375, -0.0251922607421875, 0.03509521484375, -0.041351318359375, -0.007068634033203125, -0.0251312255859375, -0.00704193115234375, 0.018798828125, 0.01261138916015625, -0.0194244384765625, 0.01910400390625, 0.03057861328125, -0.01088714599609375, 0.0167999267578125, -0.0192718505859375, -0.045257568359375, -0.00907135009765625, 0.0271148681640625, -0.03509521484375, 0.0157470703125, 0.01328277587890625, -0.003627777099609375, 0.033233642578125, 0.060211181640625, 0.0064239501953125, -0.012664794921875, -0.0257568359375, -0.0153045654296875, -0.017303466796875, -0.0479736328125, 0.0078125, 0.02001953125, -0.009552001953125, 0.01427459716796875, 0.0027675628662109375, -0.007045745849609375, -0.027557373046875, -0.0215606689453125, -0.0034122467041015625, 0.00981903076171875, -0.004642486572265625, 0.0053253173828125, -0.0005440711975097656, -0.04010009765625, 0.003559112548828125, 0.0021533966064453125, -0.02947998046875, 0.00537872314453125, 0.0025691986083984375, 0.02032470703125, 0.000392913818359375, -0.035614013671875, -0.0010175704956054688, -0.0019626617431640625, -0.005828857421875, 0.0078277587890625, 0.05145263671875, -0.00765228271484375, 0.0277557373046875, -0.01611328125, 0.00923919677734375, -0.016448974609375, -0.027740478515625, 0.0126190185546875, 0.040924072265625, -0.036285400390625, -0.003376007080078125, -0.01812744140625, -0.020751953125, 0.01248931884765625, 0.0303955078125, 0.050872802734375, 0.04803466796875, -0.03802490234375, 0.01334381103515625, 0.00016617774963378906, -0.00548553466796875, 0.0109405517578125, 0.0183258056640625, 0.0014591217041015625, 0.03546142578125, -0.01386260986328125, -0.0229339599609375, -0.006961822509765625, 0.09417724609375, -0.0384521484375, -0.034759521484375, 0.032073974609375, -0.004726409912109375, 0.0254974365234375, 0.036529541015625, -0.004291534423828125, 0.0169830322265625, 0.0191650390625, 0.040283203125, 0.00914764404296875, -0.014312744140625, -0.06060791015625, -0.0256195068359375, -0.015716552734375, -0.02935791015625, 0.034454345703125, 0.05712890625, -0.00804901123046875, 0.0243682861328125, -0.0279388427734375, -0.08587646484375, -0.0086669921875, -0.037872314453125, 0.0262603759765625, 0.043182373046875, 0.005344390869140625, -0.0146484375, -0.01206207275390625, -0.0171661376953125, 0.005496978759765625, -0.0305023193359375, 0.0293731689453125, -0.0176239013671875, 0.045684814453125, -0.00260162353515625, 0.02490234375, 0.00675201416015625, -0.0014314651489257812, 0.018524169921875, -0.0007557868957519531, 0.0212860107421875, 0.021240234375, 0.0009603500366210938, 0.021514892578125, 0.09197998046875, 0.0362548828125, 0.06121826171875, -0.04547119140625, 0.0194854736328125, -0.0250091552734375, -0.02581787109375, -0.00981903076171875, 0.0032215118408203125, -0.08294677734375, 0.0161285400390625, 0.071044921875, 0.0418701171875, 0.0207672119140625, 0.00418853759765625, -0.01053619384765625, 0.06817626953125, -0.016448974609375, 0.0099029541015625, -0.0153045654296875, 0.04534912109375, 0.0650634765625, -0.03814697265625, -0.01070404052734375, 0.0220947265625, 0.00934600830078125, 0.0212249755859375, 0.0310211181640625, -0.01708984375, 0.0157012939453125, 0.0011730194091796875, 0.022216796875, -0.0187225341796875, 0.03619384765625, 0.048736572265625, -0.0181884765625, 0.02117919921875, 0.016815185546875, -0.003936767578125, 0.0036468505859375, -0.0296173095703125, 0.03765869140625, 0.025543212890625, -0.058990478515625, -0.010223388671875, 0.027618408203125, 0.033447265625, 0.061553955078125, -0.0484619140625, -0.01459503173828125, 0.02215576171875, 0.03515625, -0.0455322265625, -0.0165863037109375, -0.045806884765625, -0.00875091552734375, -0.03167724609375, -0.0716552734375, 0.0248565673828125, 0.0206146240234375, -0.021148681640625, -0.00693511962890625, 0.0276031494140625, 0.042449951171875, 0.0013990402221679688, 0.01180267333984375, -0.032318115234375, 0.00551605224609375, 0.0009741783142089844, -0.0684814453125, 0.06170654296875, -0.042388916015625, -0.002948760986328125, 0.08087158203125, 0.0155029296875, 0.007686614990234375, 0.0017843246459960938, 0.00389862060546875, 0.0176544189453125, -0.0003490447998046875, -0.0216522216796875, 0.01366424560546875, -0.095703125, -0.0234832763671875, 0.0145111083984375, 0.026641845703125, -0.01288604736328125, -0.028045654296875, -0.0029468536376953125, 0.01004791259765625, -0.034820556640625, -0.05816650390625, -0.0474853515625, -0.073486328125, 0.040283203125, -0.01413726806640625, -0.023468017578125, -0.022369384765625, 0.03485107421875, 0.0292816162109375, -0.049163818359375, -0.0426025390625, -0.010772705078125, -0.05889892578125, -0.016998291015625, 0.004840850830078125, 0.012237548828125, -0.0010547637939453125, -0.0035381317138671875, 0.036376953125, -0.00992584228515625, -0.032958984375, -0.00330352783203125, -0.0374755859375, -0.00525665283203125, -0.00485992431640625, -0.005649566650390625, 0.0213775634765625, 0.01230621337890625, 0.01214599609375, -0.05706787109375, 0.00719451904296875, 0.005096435546875, -0.061614990234375, -0.0005583763122558594, -0.0051422119140625, -0.0228424072265625, -0.006351470947265625, 0.040435791015625, 0.006031036376953125, -0.031585693359375, -0.048431396484375, 0.0098114013671875, -0.028594970703125, -0.039031982421875, 0.04083251953125, 0.0311737060546875, -0.0189666748046875, -0.01552581787109375, -0.004848480224609375, 0.02508544921875, 0.01554107666015625, 0.0272064208984375, -0.0185546875, 0.08258056640625, 0.005107879638671875, 0.002475738525390625, -0.05419921875, 0.0297393798828125, -0.0213623046875, -0.01442718505859375, -0.01372528076171875, -0.0190582275390625, -0.049468994140625, 0.00608062744140625, -0.08343505859375, 0.014678955078125, 0.0279693603515625, -0.01251220703125, 0.019927978515625, -0.0136566162109375, -0.01128387451171875, -0.0282745361328125, 0.01837158203125, -0.029449462890625, -0.00946044921875, -0.0041046142578125, -0.0031032562255859375, -0.0291595458984375, -0.0078582763671875, -0.0628662109375, -0.00933837890625, -0.06597900390625, 0.006145477294921875, -0.0265960693359375, -0.032745361328125, -0.0017690658569335938, -0.048675537109375, -0.035797119140625, -0.03802490234375, 0.023162841796875, -0.041412353515625, -0.01314544677734375, 0.03118896484375, -0.016448974609375, -0.00960540771484375, -0.016510009765625, -0.026947021484375, -0.10003662109375, 0.002170562744140625, -0.0377197265625, 0.04339599609375, 0.004886627197265625, -0.013336181640625, -0.005771636962890625, 0.0261993408203125, 0.035675048828125, 0.0101470947265625, 0.019989013671875, -0.0217437744140625, -0.0035839080810546875, 0.036346435546875, 0.034515380859375, -0.007633209228515625, -0.0008263587951660156, 0.00557708740234375, -0.02227783203125, 0.0135955810546875, -0.0253448486328125, -0.0224609375, 0.0174102783203125, -0.038330078125, 0.0261993408203125, 0.00016760826110839844, -0.04681396484375, 0.0024623870849609375, -0.01399993896484375, -0.019317626953125, -0.0018644332885742188, 0.00070953369140625, 0.0233154296875, -0.0275115966796875, -0.00347137451171875, 0.00000858306884765625, 0.0899658203125, 0.030670166015625, -0.0018014907836914062, 0.0247039794921875, 0.038238525390625, 0.051055908203125, 0.00970458984375, 0.0136566162109375, 0.03448486328125, -0.029327392578125, -0.007793426513671875, 0.0347900390625, -0.0106964111328125, -0.00125885009765625, 0.01468658447265625, -0.0037937164306640625, -0.0400390625, 0.0230560302734375, -0.01409149169921875, 0.02117919921875, 0.02838134765625, -0.0196533203125, 0.014739990234375, 0.01320648193359375, 0.0205230712890625, -0.041107177734375, -0.0095977783203125, -0.0246734619140625, -0.01308441162109375, -0.0019407272338867188, 0.0143280029296875, 0.041534423828125, 0.00968170166015625, -0.004581451416015625, -0.0018253326416015625, 0.01476287841796875, -0.0006356239318847656, 0.0498046875, 0.09710693359375, 0.0093231201171875, 0.052978515625, 0.0400390625, -0.0020656585693359375, -0.04925537109375, -0.0197601318359375, 0.07080078125, -0.004314422607421875, -0.0772705078125, 0.0220489501953125, -0.010284423828125, 0.0182037353515625, 0.047607421875, -0.01898193359375, 0.05377197265625, 0.034027099609375, -0.0289306640625, 0.01018524169921875, -0.0364990234375, 0.007305145263671875, -0.0537109375, -0.021759033203125, -0.04571533203125, -0.00630950927734375, 0.030731201171875, 0.0328369140625, -0.057891845703125, 0.05352783203125, 0.00148773193359375, 0.0235748291015625, 0.0078125, 0.0250396728515625, 0.018035888671875, -0.026275634765625, 0.01134490966796875, -0.031463623046875, 0.00679779052734375, -0.03216552734375, -0.03424072265625, -0.0181427001953125, 0.043914794921875, -0.035247802734375, -0.01314544677734375, 0.05523681640625, -0.006122589111328125, -0.0001544952392578125, 0.01381683349609375, 0.0037021636962890625, -0.0272674560546875, -0.0167388916015625, -0.01338958740234375, 0.00856781005859375, -0.008331298828125, -0.0006818771362304688, -0.005603790283203125, 0.0038585662841796875, 0.003688812255859375, 0.030487060546875, -0.051513671875, 0.010528564453125, 0.0230865478515625, -0.021240234375, -0.036590576171875, -0.006732940673828125, -0.016998291015625, 0.01800537109375, -0.0230712890625, -0.02459716796875, 0.007518768310546875, -0.0374755859375, -0.007328033447265625, -0.022369384765625, 0.0169219970703125, -0.00342559814453125, 0.0171356201171875, 0.042510986328125, 0.022552490234375, -0.033538818359375, -0.00372314453125, -0.056732177734375, -0.01947021484375, -0.01293182373046875, -0.022247314453125, -0.039825439453125, 0.00603485107421875, -0.003936767578125, 0.02587890625, -0.032867431640625, -0.0259857177734375, -0.010955810546875, 0.037811279296875, 0.0283355712890625, 0.078125, 0.039886474609375, 0.0210418701171875, -0.0352783203125, 0.0335693359375, 0.0204620361328125, 0.0171966552734375, -0.02587890625, -0.040557861328125, 0.024444580078125, 0.0238800048828125, -0.032989501953125, -0.04852294921875, 0.0216064453125, -0.0135650634765625, 0.077392578125, -0.0121002197265625, 0.006961822509765625, -0.023040771484375, -0.00250244140625, -0.025299072265625, -0.02239990234375, -0.021240234375, 0.01432037353515625, -0.041595458984375, -0.0297698974609375, -0.025970458984375, -0.018707275390625, -0.043670654296875, 0.0491943359375, 0.005023956298828125, 0.01546478271484375, 0.015167236328125, -0.044189453125, 0.0606689453125, 0.05340576171875, 0.0273284912109375, 0.059600830078125, 0.023345947265625, 0.02862548828125, 0.0177459716796875, 0.0269927978515625, -0.01374053955078125, -0.0034313201904296875, 0.003711700439453125, 0.0047454833984375, 0.010467529296875, -0.012603759765625, -0.002925872802734375, 0.0193939208984375, 0.0509033203125, 0.066162109375, -0.050628662109375, -0.009368896484375, 0.01334381103515625, -0.019805908203125, 0.0195770263671875, -0.047943115234375, 0.02294921875, -0.036529541015625, 0.0980224609375, -0.033111572265625, -0.00818634033203125, 0.034759521484375, -0.06744384765625, 0.00208282470703125, -0.0167236328125, 0.06890869140625, 0.02984619140625, -0.054107666015625, 0.04083251953125, 0.034271240234375, 0.0184173583984375, -0.004974365234375, -0.011016845703125, -0.01331329345703125, -0.039154052734375, -0.07830810546875, -0.035125732421875, -0.037078857421875, -0.0273590087890625, 0.0183868408203125, 0.0299072265625, 0.0474853515625, 0.04632568359375, 0.02105712890625, -0.0182037353515625, 0.022613525390625, -0.0028171539306640625, -0.0281219482421875, 0.0026397705078125, 0.0170135498046875, 0.0284576416015625, -0.00677490234375, 0.0178375244140625, -0.0227203369140625, -0.01158905029296875, -0.005817413330078125, 0.039215087890625, 0.0804443359375, -0.015716552734375, -0.0224761962890625, 0.042449951171875, 0.02471923828125, -0.0215606689453125, -0.0199127197265625, 0.01617431640625, -0.0206451416015625, 0.006694793701171875, -0.01708984375, -0.01004791259765625, -0.0197601318359375, -0.029571533203125, -0.025177001953125, 0.0770263671875, -0.038787841796875, 0.023406982421875, 0.035675048828125, 0.031585693359375, -0.01073455810546875, 0.005523681640625, -0.033050537109375, 0.08013916015625, 0.031097412109375, 0.08294677734375, -0.058502197265625, -0.043304443359375, 0.056793212890625, 0.081787109375, 0.03631591796875, 0.00384521484375, 0.012908935546875, 0.0081787109375, 0.02996826171875, -0.005786895751953125, -0.0286712646484375, 0.0125579833984375, -0.035919189453125, 0.0206298828125, -0.015380859375, -0.05938720703125, 0.016937255859375, -0.026031494140625, -0.0447998046875, -0.007038116455078125, 0.005451202392578125, 0.004467010498046875, -0.033477783203125, 0.023101806640625, 0.0092315673828125, -0.0304718017578125, -0.006839752197265625, -0.0196533203125, -0.0244903564453125, 0.01404571533203125, 0.0067138671875, -0.030548095703125, -0.03924560546875, -0.0156707763671875, 0.0262603759765625, 0.00933074951171875, -0.0216064453125, 0.01433563232421875, 0.0124969482421875, -0.06268310546875, -0.0086669921875, -0.012115478515625, 0.0162811279296875, -0.0309295654296875, 0.0289764404296875, 0.04168701171875, 0.0159149169921875, 0.0264434814453125, 0.0172119140625, -0.0149688720703125, 0.0115814208984375, -0.0305023193359375, -0.0657958984375, 0.025238037109375, 0.0207672119140625, -0.017547607421875, 0.0229034423828125, -0.00688934326171875, 0.0018854141235351562, 0.0816650390625, -0.0204315185546875, -0.01537322998046875, 0.0072021484375, 0.01372528076171875, 0.00457763671875, 0.0226898193359375, -0.00560760498046875, -0.02935791015625, -0.01096343994140625, -0.0242462158203125, 0.018707275390625, 0.01641845703125, 0.0250244140625, 0.0114898681640625, 0.021331787109375, -0.006977081298828125, -0.0338134765625, 0.01387786865234375, -0.00525665283203125, 0.047088623046875, -0.030181884765625, 0.00330352783203125, -0.022491455078125, 0.049652099609375, 0.0299835205078125, 0.0193634033203125, 0.04351806640625, 0.016876220703125, -0.03564453125, 0.0029850006103515625, 0.0745849609375, -0.01428985595703125, -0.045562744140625, -0.045806884765625, 0.004985809326171875, 0.0244598388671875, 0.0199737548828125, 0.0222930908203125, -0.001224517822265625, 0.02630615234375, -0.004962921142578125, -0.0241241455078125, 0.0117034912109375, -0.017547607421875, 0.036773681640625, 0.00658416748046875, -0.017364501953125, 0.0112152099609375, -0.050079345703125, -0.006961822509765625, -0.038177490234375, -0.029998779296875, 0.01654052734375, 0.0386962890625, 0.0157623291015625, -0.0035037994384765625, -0.0006532669067382812, 0.00499725341796875, -0.0261383056640625, 0.01064300537109375, 0.00757598876953125, -0.0167388916015625, 0.00272369384765625, -0.01111602783203125, -0.0743408203125, -0.0421142578125, -0.041748046875, 0.037750244140625, 0.00632476806640625, 0.0716552734375, -0.0224456787109375, 0.02642822265625, -0.00783538818359375, 0.00975799560546875, -0.010772705078125, -0.0145416259765625, 0.005527496337890625, 0.0242767333984375, 0.01617431640625, -0.0113372802734375, -0.051666259765625, 0.08251953125, 0.0072784423828125, 0.026580810546875, 0.0638427734375, -0.038055419921875, 0.01207733154296875, 0.0224609375, -0.0291900634765625, -0.050048828125, -0.061737060546875, 0.00104522705078125, 0.041351318359375, -0.040679931640625, -0.032318115234375, 0.018768310546875, -0.00452423095703125, 0.013671875, -0.0197296142578125, -0.0076141357421875, 0.02734375, -0.037933349609375, 0.018890380859375, 0.009002685546875, -0.06494140625, -0.01371002197265625, -0.00975799560546875, -0.01251220703125, -0.01406097412109375, 0.04620361328125, 0.008026123046875, -0.0330810546875, 0.00751495361328125, 0.035430908203125, 0.0709228515625, 0.0009512901306152344, 0.039093017578125, -0.01076507568359375, 0.0194091796875, 0.044036865234375, -0.021453857421875, -0.011566162109375, -0.00159454345703125, -0.006381988525390625, 0.03204345703125, 0.006866455078125, -0.005168914794921875, -0.020751953125, -0.051788330078125, 0.0396728515625, -0.0157470703125, -0.0203094482421875, -0.0042724609375, -0.03802490234375, -0.0110626220703125, -0.0040130615234375, 0.00496673583984375, 0.014251708984375, -0.0018520355224609375, -0.024688720703125, 0.01140594482421875, -0.0010223388671875, 0.0166015625, 0.0276641845703125, 0.062744140625, 0.0740966796875, -0.0526123046875, -0.003513336181640625, 0.08154296875, 0.06597900390625, 0.1192626953125, -0.0275726318359375, -0.005313873291015625, -0.00525665283203125, 0.00658416748046875, 0.0063629150390625, -0.042938232421875, -0.0005207061767578125, -0.040740966796875, -0.0169830322265625, -0.05206298828125, 0.0198211669921875, 0.0263519287109375, -0.040679931640625, -0.0943603515625, -0.0115203857421875, -0.01430511474609375, -0.04571533203125, -0.03314208984375, 0.01419830322265625, 0.0031452178955078125, -0.0159759521484375, -0.00832366943359375, -0.02203369140625, -0.010040283203125, 0.01395416259765625, 0.00958251953125, 0.019561767578125, 0.037506103515625, 0.0201263427734375, -0.0440673828125, 0.0036373138427734375, -0.015350341796875, -0.0019817352294921875, -0.0052642822265625, -0.00482177734375, 0.02783203125, 0.01308441162109375, -0.019866943359375, 0.033111572265625, 0.0251007080078125, 0.0269622802734375, -0.0218658447265625, -0.041473388671875, -0.02130126953125, -0.0271453857421875, 0.089111328125, 0.040740966796875, 0.0216827392578125, -0.0168914794921875, -0.03338623046875, -0.057373046875, -0.0186920166015625, 0.000400543212890625, 0.017242431640625, -0.060638427734375, 0.033966064453125, 0.018829345703125, -0.0175323486328125, -0.019378662109375, -0.006763458251953125, -0.0413818359375, -0.00514984130859375, 0.004974365234375, 0.01042938232421875, -0.00113677978515625, -0.00910186767578125, 0.02752685546875, -0.0270233154296875, 0.019561767578125, -0.028167724609375, 0.02886962890625, 0.01381683349609375, -0.0197296142578125, 0.0029888153076171875, 0.038909912109375, -0.03643798828125, -0.004093170166015625, 0.01531982421875, 0.056060791015625, -0.0211029052734375, 0.0010538101196289062, 0.0258941650390625, -0.0102386474609375, -0.022125244140625, -0.03875732421875, 0.02374267578125, 0.01154327392578125, -0.05792236328125, 0.054229736328125, 0.007843017578125, 0.0498046875, -0.0033397674560546875, 0.04986572265625, -0.019378662109375, -0.0247955322265625, -0.01078033447265625, -0.017181396484375, -0.0093536376953125, 0.04998779296875, 0.0162506103515625, -0.0687255859375, 0.055694580078125, 0.00800323486328125, 0.04779052734375, 0.0216522216796875 ]
d358bd9419770bc193892b599bcddaa01e2c6e86
Wordpress Stackexchange Q: Unit testing to simulate the loop How do you construct unit tests with PHPUnit and the WordPress test framework that simulate being in the loop? For instance, if I want to test a function that is only able to be called in the loop because it assumes the post data is set up appropriately for the main query, how would I construct that unit test? A: The key for that is the go_to method of WP_UnitTestCase class that you should be extending. It simulates parsing a url relative to the wordpress root (IIRC). You might need to first set posts and other info, and then call go_to to trigger the loop.
Q: Unit testing to simulate the loop How do you construct unit tests with PHPUnit and the WordPress test framework that simulate being in the loop? For instance, if I want to test a function that is only able to be called in the loop because it assumes the post data is set up appropriately for the main query, how would I construct that unit test? A: The key for that is the go_to method of WP_UnitTestCase class that you should be extending. It simulates parsing a url relative to the wordpress root (IIRC). You might need to first set posts and other info, and then call go_to to trigger the loop. A: Assuming that you're using WP_UnitTestCase, try this inside your test class: private $post_id; // use the factory to create a post with some fake data public function setUp() { parent::setUp(); $this->post_id = $this->factory()->post->create( array ( 'post_content' => 'Here are some words. <img src="image.jpg"> <!--more--> And here are some more' ) ); } public function test_a_thing() { // fake going to the URL $this->go_to( get_permalink( $this->post_id ) ); // make sure your relevant globals are set global $post; setup_postdata($post); // profit $yourthing->function_you_test(); } A: Unit testing plugin functions in Wordpress is extremely difficult. It's usually easier to do an acceptance or functional test. The difference is that in a unit test, you have to mock everything you interact with. In a functional test, you can run the whole system. For instance, I use Codeception to launch a browser and test against the whole system. Opinions vary, but I think the whole concept of unit testing a WP plugin is screwy. The plugin doesn't exist in a vacuum. It's a system that interacts with another system. What's the point of even TRYING to isolate? BTW - Almost no devs actually test this way. The state of WP testing frameworks is SORRY.
wordpress
{ "language": "en", "length": 312, "provenance": "stackexchange_00019.jsonl.gz:463648", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/219421" }
[ 0.07061767578125, -0.001964569091796875, -0.0017194747924804688, -0.04022216796875, 0.0160980224609375, -0.03302001953125, 0.0528564453125, 0.00368499755859375, 0.00455474853515625, 0.00823211669921875, -0.0338134765625, 0.0149993896484375, -0.022064208984375, -0.013641357421875, -0.0095672607421875, -0.0279541015625, 0.011260986328125, -0.0300140380859375, -0.01157379150390625, -0.027099609375, 0.010009765625, 0.00223541259765625, -0.00955963134765625, 0.00461578369140625, 0.006130218505859375, 0.019317626953125, 0.02520751953125, -0.0183563232421875, -0.0036525726318359375, -0.012176513671875, 0.0102081298828125, 0.0027103424072265625, 0.0228271484375, 0.0394287109375, -0.046478271484375, -0.013580322265625, -0.01352691650390625, 0.01474761962890625, -0.01132965087890625, 0.0286407470703125, 0.036865234375, -0.0203399658203125, -0.01534271240234375, 0.010833740234375, -0.0246734619140625, -0.031524658203125, 0.038543701171875, -0.0302886962890625, 0.0260009765625, 0.01491546630859375, 0.0079193115234375, -0.0064544677734375, 0.00873565673828125, 0.02362060546875, -0.0224609375, -0.0181732177734375, 0.006671905517578125, -0.006557464599609375, 0.0247039794921875, -0.0240631103515625, -0.03240966796875, -0.01374053955078125, 0.035369873046875, 0.005802154541015625, 0.039093017578125, -0.01181793212890625, -0.035797119140625, 0.020965576171875, 0.03509521484375, 0.0535888671875, -0.005401611328125, -0.01490020751953125, -0.0242767333984375, -0.004669189453125, -0.013580322265625, -0.0794677734375, 0.061767578125, -0.06854248046875, -0.0267333984375, 0.038360595703125, 0.02117919921875, -0.0173187255859375, -0.0562744140625, 0.034759521484375, -0.03472900390625, 0.024505615234375, 0.006145477294921875, -0.021087646484375, -0.0251617431640625, -0.0374755859375, -0.01214599609375, 0.01226043701171875, -0.0648193359375, 0.000026524066925048828, 0.00505828857421875, -0.04107666015625, -0.009033203125, -0.057586669921875, 0.0201873779296875, -0.0198211669921875, 0.049072265625, -0.056610107421875, 0.01549530029296875, 0.025054931640625, 0.0182952880859375, 0.04974365234375, -0.0152435302734375, 0.01242828369140625, 0.05731201171875, 0.01080322265625, 0.02960205078125, 0.0160369873046875, -0.0250701904296875, -0.07952880859375, 0.0297698974609375, 0.044525146484375, -0.0239410400390625, 0.019683837890625, 0.035003662109375, -0.02972412109375, -0.0174560546875, 0.0016384124755859375, 0.0287322998046875, 0.01483154296875, 0.038787841796875, 0.050506591796875, 0.00766754150390625, -0.043060302734375, 0.0169677734375, -0.0008158683776855469, -0.0094146728515625, 0.015625, 0.0479736328125, 0.011749267578125, -0.0072174072265625, -0.00795745849609375, 0.011016845703125, 0.01203155517578125, -0.0235443115234375, 0.03631591796875, -0.0478515625, -0.05377197265625, 0.0032138824462890625, -0.009735107421875, 0.0226287841796875, 0.06146240234375, 0.032379150390625, -0.032379150390625, -0.01065826416015625, -0.049652099609375, -0.017486572265625, -0.0228424072265625, -0.033203125, 0.0057373046875, 0.038543701171875, -0.0016880035400390625, -0.0557861328125, 0.01320648193359375, 0.068359375, 0.052581787109375, -0.0523681640625, -0.022735595703125, 0.0165863037109375, -0.031707763671875, -0.02783203125, 0.0275726318359375, 0.025970458984375, 0.004261016845703125, 0.0223236083984375, 0.03125, -0.041046142578125, -0.0022430419921875, 0.0279388427734375, 0.0081024169921875, -0.022613525390625, 0.0242919921875, -0.013519287109375, -0.0034046173095703125, 0.051483154296875, -0.0174713134765625, -0.034942626953125, -0.01715087890625, 0.0782470703125, -0.0094451904296875, -0.0034694671630859375, -0.0167388916015625, 0.0009393692016601562, 0.004802703857421875, 0.0098724365234375, 0.02423095703125, -0.00634765625, 0.01219940185546875, -0.03350830078125, 0.045928955078125, 0.020263671875, -0.01354217529296875, -0.07489013671875, -0.006793975830078125, -0.01412200927734375, -0.0650634765625, -0.044525146484375, 0.006893157958984375, -0.0167999267578125, 0.007099151611328125, -0.055145263671875, 0.00542449951171875, -0.0290374755859375, 0.0328369140625, 0.0240936279296875, 0.023101806640625, 0.0030422210693359375, -0.00921630859375, 0.004619598388671875, -0.0223541259765625, -0.047760009765625, -0.0193328857421875, -0.0098114013671875, -0.0012607574462890625, -0.00560760498046875, -0.047698974609375, -0.00885009765625, -0.006832122802734375, -0.006557464599609375, 0.048858642578125, 0.01515960693359375, -0.01110076904296875, -0.00484466552734375, -0.00980377197265625, 0.031097412109375, 0.004169464111328125, 0.007152557373046875, -0.013641357421875, 0.05889892578125, 0.0121002197265625, -0.030364990234375, -0.0007662773132324219, 0.0013828277587890625, -0.06005859375, -0.005615234375, 0.06060791015625, 0.017913818359375, 0.0178985595703125, -0.0220794677734375, 0.007080078125, 0.047515869140625, -0.01172637939453125, 0.00506591796875, 0.002925872802734375, 0.0333251953125, 0.0869140625, -0.029388427734375, 0.01168060302734375, 0.009735107421875, 0.00615692138671875, -0.0343017578125, 0.046295166015625, 0.009857177734375, 0.0290985107421875, -0.0169677734375, -0.01177978515625, 0.01184844970703125, -0.033721923828125, -0.0233917236328125, -0.019561767578125, 0.07373046875, -0.003368377685546875, 0.0458984375, 0.0274810791015625, -0.03497314453125, 0.030242919921875, 0.0117034912109375, -0.0281982421875, -0.00832366943359375, 0.0070037841796875, 0.0309600830078125, 0.0009784698486328125, -0.01549530029296875, -0.0151519775390625, 0.030609130859375, 0.0070037841796875, -0.011199951171875, 0.053497314453125, 0.035736083984375, -0.02911376953125, -0.01544952392578125, 0.01248931884765625, 0.007053375244140625, -0.050201416015625, 0.0259246826171875, -0.0012607574462890625, 0.0207672119140625, 0.00908660888671875, -0.0176239013671875, 0.0289459228515625, 0.01471710205078125, -0.034881591796875, 0.016998291015625, -0.011474609375, 0.01220703125, -0.009552001953125, 0.00959014892578125, 0.0521240234375, 0.023681640625, -0.01557159423828125, 0.0083770751953125, -0.0193328857421875, -0.00567626953125, 0.006542205810546875, 0.0002770423889160156, -0.0130767822265625, -0.030181884765625, 0.02410888671875, 0.0394287109375, 0.052734375, 0.0260772705078125, -0.0160675048828125, 0.012786865234375, 0.055267333984375, -0.024749755859375, -0.051025390625, 0.06597900390625, -0.03851318359375, -0.006618499755859375, -0.017669677734375, -0.027374267578125, -0.03460693359375, -0.004581451416015625, -0.0262451171875, -0.056365966796875, -0.009674072265625, -0.06121826171875, -0.09295654296875, -0.07666015625, 0.0117645263671875, -0.01221466064453125, 0.02069091796875, 0.0054473876953125, 0.0196533203125, -0.003139495849609375, -0.01898193359375, 0.00856781005859375, 0.048553466796875, -0.0036029815673828125, -0.02508544921875, -0.0256500244140625, 0.01216888427734375, -0.033721923828125, 0.0105743408203125, 0.004673004150390625, 0.006298065185546875, -0.00888824462890625, -0.0128021240234375, 0.006427764892578125, 0.01024627685546875, 0.02679443359375, 0.01227569580078125, -0.0267791748046875, -0.01593017578125, 0.008575439453125, -0.05792236328125, 0.012847900390625, 0.0167694091796875, -0.01435089111328125, -0.061920166015625, -0.0267791748046875, -0.00978851318359375, -0.01538848876953125, -0.0152587890625, -0.0080413818359375, 0.011016845703125, 0.0285491943359375, -0.02392578125, 0.0142059326171875, -0.0161895751953125, -0.024658203125, -0.00830841064453125, 0.05279541015625, -0.01184844970703125, -0.033538818359375, 0.004547119140625, -0.00926971435546875, 0.0016794204711914062, -0.03131103515625, -0.0172576904296875, 0.04052734375, 0.0154266357421875, 0.031158447265625, 0.07080078125, -0.00994873046875, -0.025360107421875, -0.0304718017578125, 0.044769287109375, -0.0831298828125, -0.01229095458984375, -0.0205841064453125, 0.01267242431640625, -0.0235443115234375, -0.029937744140625, -0.040802001953125, -0.01204681396484375, 0.01253509521484375, 0.0221405029296875, -0.01415252685546875, 0.01555633544921875, -0.0124969482421875, -0.0289306640625, 0.00125885009765625, -0.0264434814453125, 0.0021266937255859375, -0.03509521484375, 0.04193115234375, -0.033172607421875, 0.046051025390625, -0.040496826171875, 0.0299072265625, -0.07421875, -0.118896484375, -0.0204315185546875, -0.055877685546875, 0.09869384765625, 0.03399658203125, -0.00732421875, -0.01751708984375, 0.05535888671875, 0.026580810546875, 0.01141357421875, 0.0220489501953125, -0.032745361328125, 0.04254150390625, 0.052398681640625, 0.018646240234375, 0.006317138671875, -0.0406494140625, -0.050567626953125, -0.025787353515625, 0.0229644775390625, -0.0072784423828125, 0.0105133056640625, -0.0062255859375, 0.015625, -0.004253387451171875, -0.0213165283203125, -0.008758544921875, 0.029632568359375, -0.0159454345703125, 0.017059326171875, -0.031646728515625, -0.0140838623046875, 0.02020263671875, 0.008026123046875, -0.007213592529296875, 0.01055908203125, 0.007556915283203125, 0.003940582275390625, -0.02252197265625, -0.0150299072265625, -0.02325439453125, 0.00537109375, -0.001041412353515625, -0.0012350082397460938, -0.031646728515625, -0.00131988525390625, 0.01529693603515625, -0.025604248046875, 0.0310821533203125, 0.006847381591796875, 0.0280914306640625, 0.001560211181640625, -0.0361328125, 0.038299560546875, 0.0174713134765625, -0.0439453125, 0.0157928466796875, 0.0164947509765625, -0.035858154296875, 0.047576904296875, 0.01180267333984375, -0.0247955322265625, 0.0309600830078125, 0.005672454833984375, -0.0738525390625, 0.0350341796875, -0.08489990234375, 0.0255279541015625, -0.007404327392578125, 0.005908966064453125, 0.03704833984375, 0.0223388671875, 0.028228759765625, 0.04351806640625, 0.030181884765625, -0.01207733154296875, 0.06121826171875, 0.02618408203125, 0.0197906494140625, -0.0025806427001953125, -0.0030994415283203125, 0.03460693359375, -0.0021839141845703125, -0.05120849609375, 0.027099609375, 0.00775146484375, 0.0406494140625, 0.03131103515625, 0.014007568359375, 0.026519775390625, -0.032135009765625, -0.0164337158203125, 0.004428863525390625, -0.0210418701171875, -0.03338623046875, -0.02362060546875, 0.0072021484375, 0.01500701904296875, -0.00658416748046875, 0.053009033203125, 0.003997802734375, 0.007843017578125, 0.0218353271484375, -0.031646728515625, 0.06884765625, 0.04241943359375, 0.03375244140625, 0.01910400390625, -0.023681640625, -0.00836944580078125, -0.00328826904296875, -0.040618896484375, -0.0217132568359375, -0.0513916015625, 0.034912109375, 0.0280303955078125, -0.002750396728515625, 0.02386474609375, -0.0079803466796875, 0.0015535354614257812, -0.0286102294921875, 0.01230621337890625, 0.0205535888671875, 0.010162353515625, -0.032379150390625, -0.039031982421875, 0.013275146484375, 0.0245513916015625, 0.029205322265625, -0.0297698974609375, -0.0166473388671875, 0.0069122314453125, -0.0179443359375, 0.01043701171875, -0.0372314453125, -0.04302978515625, -0.0438232421875, -0.034027099609375, 0.001148223876953125, 0.031524658203125, 0.0080108642578125, -0.0208740234375, -0.0251922607421875, 0.03759765625, -0.0100860595703125, -0.010650634765625, -0.032562255859375, 0.01337432861328125, -0.0682373046875, 0.00022077560424804688, 0.070068359375, 0.038909912109375, -0.056427001953125, 0.01052093505859375, -0.037322998046875, -0.016265869140625, -0.053070068359375, -0.0518798828125, -0.07391357421875, 0.005634307861328125, 0.00440216064453125, 0.0159759521484375, -0.0302276611328125, -0.04266357421875, -0.0181427001953125, 0.029083251953125, 0.01462554931640625, 0.00655364990234375, 0.002857208251953125, 0.068115234375, -0.01439666748046875, 0.0458984375, 0.0233306884765625, 0.0195465087890625, -0.0210723876953125, -0.0214385986328125, 0.0025730133056640625, 0.01410675048828125, -0.0149383544921875, -0.0155181884765625, -0.003688812255859375, 0.014190673828125, 0.08453369140625, -0.006687164306640625, -0.05450439453125, 0.0017938613891601562, 0.00025463104248046875, -0.02606201171875, 0.090576171875, 0.034149169921875, -0.01422882080078125, -0.048675537109375, -0.007389068603515625, -0.019317626953125, 0.01061248779296875, 0.0185394287109375, -0.0408935546875, 0.0184783935546875, -0.03619384765625, -0.01282501220703125, -0.05377197265625, 0.06036376953125, 0.05657958984375, -0.005336761474609375, 0.0288848876953125, 0.0003199577331542969, -0.01285552978515625, 0.0033740997314453125, 0.056976318359375, -0.0294342041015625, -0.0467529296875, 0.052978515625, 0.0289154052734375, -0.03814697265625, 0.032928466796875, -0.04180908203125, -0.02825927734375, 0.0036029815673828125, 0.015838623046875, -0.0172271728515625, 0.0032939910888671875, 0.00704193115234375, 0.032012939453125, -0.00811004638671875, 0.005924224853515625, 0.044219970703125, 0.04046630859375, -0.0036830902099609375, 0.004520416259765625, -0.0267333984375, -0.004405975341796875, -0.01123046875, 0.00530242919921875, -0.050994873046875, 0.0261077880859375, 0.0250396728515625, -0.0740966796875, 0.07586669921875, 0.04388427734375, 0.03204345703125, -0.0145111083984375, -0.0026531219482421875, -0.0313720703125, 0.00809478759765625, 0.0204925537109375, 0.039520263671875, -0.05133056640625, 0.052520751953125, 0.000957489013671875, 0.033599853515625, 0.02996826171875, 0.042236328125, 0.005077362060546875, -0.0025272369384765625, 0.0218963623046875, -0.0029430389404296875, -0.021026611328125, -0.0158843994140625, 0.0202178955078125, 0.029083251953125, -0.048919677734375, 0.023162841796875, -0.034576416015625, 0.003612518310546875, -0.0131378173828125, -0.01947021484375, 0.037567138671875, -0.0108184814453125, -0.0290985107421875, 0.028045654296875, -0.0032367706298828125, -0.0034732818603515625, -0.0345458984375, 0.0258026123046875, -0.047821044921875, -0.0074005126953125, -0.028961181640625, -0.028778076171875, 0.0097198486328125, -0.05279541015625, -0.01415252685546875, 0.042877197265625, -0.0435791015625, 0.0109405517578125, 0.03948974609375, -0.0005030632019042969, 0.002288818359375, 0.00737762451171875, -0.027557373046875, 0.053619384765625, -0.005008697509765625, 0.028167724609375, -0.035614013671875, 0.00156402587890625, 0.0071868896484375, 0.0218658447265625, -0.0214996337890625, -0.0043182373046875, -0.03741455078125, -0.020416259765625, -0.00467681884765625, 0.03729248046875, 0.0338134765625, 0.0270233154296875, 0.0028438568115234375, 0.0562744140625, 0.0635986328125, -0.01477813720703125, 0.030548095703125, 0.033477783203125, -0.021636962890625, 0.047332763671875, 0.0216827392578125, 0.0030841827392578125, 0.033966064453125, 0.03656005859375, -0.0191192626953125, 0.02362060546875, 0.0172119140625, 0.0280914306640625, 0.0017118453979492188, 0.04180908203125, 0.03057861328125, -0.0136871337890625, -0.01137542724609375, -0.026611328125, 0.04034423828125, 0.0004775524139404297, 0.036163330078125, 0.05816650390625, 0.0139312744140625, 0.033294677734375, 0.0384521484375, 0.0239105224609375, 0.0043182373046875, 0.0008106231689453125, 0.0156707763671875, 0.04522705078125, 0.02337646484375, 0.01284027099609375, 0.044464111328125, 0.0213470458984375, 0.021759033203125, -0.0290679931640625, -0.0231475830078125, 0.01099395751953125, 0.01006317138671875, 0.0037517547607421875, -0.0111541748046875, 0.01433563232421875, -0.042816162109375, 0.030059814453125, -0.01035308837890625, -0.01934814453125, -0.023345947265625, -0.00936126708984375, -0.01380157470703125, -0.038177490234375, 0.0728759765625, 0.018035888671875, 0.012847900390625, -0.02288818359375, -0.008392333984375, 0.020294189453125, 0.0046234130859375, 0.00850677490234375, -0.06884765625, 0.00292205810546875, 0.0202178955078125, -0.04437255859375, -0.0458984375, -0.0110626220703125, -0.00002205371856689453, -0.016876220703125, -0.031768798828125, 0.045318603515625, 0.033599853515625, 0.0236968994140625, 0.024261474609375, 0.03271484375, 0.00742340087890625, 0.01078033447265625, 0.07476806640625, -0.00685882568359375, -0.05517578125, 0.0131378173828125, -0.06121826171875, -0.0283355712890625, -0.0163726806640625, -0.021331787109375, 0.05340576171875, -0.0208740234375, 0.00646209716796875, 0.086181640625, -0.00323486328125, 0.015228271484375, 0.032073974609375, -0.022674560546875, 0.081787109375, 0.035400390625, -0.04669189453125, -0.005420684814453125, -0.0011692047119140625, -0.06304931640625, 0.00606536865234375, 0.03985595703125, 0.002788543701171875, -0.00487518310546875, 0.0157012939453125, -0.009490966796875, 0.0205841064453125, 0.0070037841796875, -0.00923919677734375, -0.0265655517578125, 0.03460693359375, -0.0155487060546875, -0.080078125, -0.0239715576171875, -0.042877197265625, 0.019500732421875, -0.0156402587890625, 0.08135986328125, -0.0016469955444335938, 0.0260467529296875, 0.01739501953125, -0.020477294921875, 0.03729248046875, 0.0182952880859375, 0.01012420654296875, 0.0250244140625, 0.01424407958984375, -0.0236663818359375, 0.040130615234375, -0.005908966064453125, 0.044586181640625, -0.0250091552734375, -0.0263824462890625, -0.022674560546875, 0.0295562744140625, -0.0004723072052001953, 0.04217529296875, 0.0067596435546875, -0.03961181640625, -0.041748046875, 0.00794219970703125, 0.054443359375, 0.09735107421875, -0.0203704833984375, -0.016021728515625, -0.02276611328125, -0.04132080078125, -0.0017709732055664062, 0.0156097412109375, -0.02239990234375, 0.006862640380859375, -0.01491546630859375, 0.00592803955078125, -0.0019197463989257812, -0.018157958984375, 0.0017099380493164062, 0.01427459716796875, -0.0271759033203125, 0.0179290771484375, -0.0219573974609375, 0.0224761962890625, 0.0221405029296875, 0.018035888671875, -0.006389617919921875, -0.017608642578125, 0.03302001953125, -0.019378662109375, -0.03228759765625, -0.0038509368896484375, -0.01202392578125, -0.047760009765625, -0.01097869873046875, 0.0020999908447265625, -0.03607177734375, -0.0085601806640625, -0.016510009765625, -0.01262664794921875, 0.0206451416015625, 0.00640106201171875, -0.0277099609375, 0.001918792724609375, -0.01117706298828125, 0.01171112060546875, -0.0259857177734375, 0.059234619140625, -0.01505279541015625, 0.0177001953125, -0.0265960693359375, -0.03363037109375, -0.0005021095275878906, 0.069580078125, 0.016815185546875, 0.0254364013671875, 0.0322265625, -0.03997802734375, -0.0621337890625, 0.0267333984375, 0.040771484375, 0.06182861328125, 0.047393798828125, -0.0175628662109375, 0.027008056640625, 0.0380859375, -0.006313323974609375, -0.0809326171875, -0.017303466796875, -0.0222625732421875, 0.055450439453125, 0.00662994384765625, 0.004974365234375, 0.019561767578125, -0.0384521484375, -0.0750732421875, 0.00811767578125, -0.01084136962890625, -0.039794921875, -0.08685302734375, 0.04791259765625, 0.0172271728515625, -0.0133819580078125, -0.0294952392578125, 0.00563812255859375, -0.01126861572265625, 0.029998779296875, 0.01171875, 0.038360595703125, 0.005523681640625, 0.01374053955078125, 0.0023021697998046875, 0.0309906005859375, 0.0226593017578125, 0.014251708984375, 0.01654052734375, 0.0084075927734375, 0.0021381378173828125, 0.035491943359375, -0.042999267578125, -0.033355712890625, -0.037078857421875, -0.01349639892578125, -0.0233001708984375, -0.028717041015625, -0.043701171875, -0.0095672607421875, 0.1234130859375, 0.056060791015625, 0.0455322265625, -0.051025390625, -0.033935546875, -0.0232696533203125, -0.00823211669921875, -0.0176849365234375, 0.026947021484375, -0.0809326171875, -0.0230712890625, 0.0170135498046875, 0.0059051513671875, -0.01525115966796875, -0.0299835205078125, -0.03912353515625, -0.0347900390625, -0.046051025390625, 0.00359344482421875, -0.007167816162109375, 0.004199981689453125, 0.0164947509765625, -0.038543701171875, -0.028045654296875, 0.0025882720947265625, -0.00028443336486816406, -0.0218963623046875, -0.0080718994140625, 0.02520751953125, 0.01432037353515625, -0.042510986328125, 0.024017333984375, 0.0117950439453125, 0.00238800048828125, -0.031768798828125, -0.0270233154296875, -0.0269012451171875, 0.006603240966796875, 0.0310211181640625, 0.0132293701171875, -0.0232391357421875, -0.0014972686767578125, 0.0143585205078125, 0.023712158203125, 0.027374267578125, 0.06634521484375, 0.02764892578125, 0.0247650146484375, 0.01268768310546875, -0.02978515625, 0.01491546630859375, -0.05596923828125, 0.0019779205322265625, 0.004070281982421875, -0.0168304443359375, -0.031890869140625, 0.03955078125, 0.003910064697265625, -0.01282501220703125, 0.02783203125 ]
ccf25b6163b5071097e62080eff2bcfbe97cb2ae
Wordpress Stackexchange Q: WP_Query offset argument does not work I want to display all posts starting from a certain offset, my query is: WP_Query( array( 'posts_per_page' => -1, 'offset' => 20, 'cat' => 5, ) ); This query shows all posts without starting from the offset value. Whys is that? A: The offset index for WP_Query generally works with pagination. When you set pagination to a -1 the function assumes you're getting all posts and there will be no pagination or offset. So to counteract this you would set the posts_per_page to a high number like 999. Reading the Function Reference on WP_Query the pagination section says: 'posts_per_page'=>-1 to show all posts (the 'offset' parameter is ignored with a -1 value). Set the ‘paged’ parameter if pagination is off after using this parameter.
Q: WP_Query offset argument does not work I want to display all posts starting from a certain offset, my query is: WP_Query( array( 'posts_per_page' => -1, 'offset' => 20, 'cat' => 5, ) ); This query shows all posts without starting from the offset value. Whys is that? A: The offset index for WP_Query generally works with pagination. When you set pagination to a -1 the function assumes you're getting all posts and there will be no pagination or offset. So to counteract this you would set the posts_per_page to a high number like 999. Reading the Function Reference on WP_Query the pagination section says: 'posts_per_page'=>-1 to show all posts (the 'offset' parameter is ignored with a -1 value). Set the ‘paged’ parameter if pagination is off after using this parameter.
wordpress
{ "language": "en", "length": 131, "provenance": "stackexchange_00019.jsonl.gz:463671", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/219540" }
[ 0.08233642578125, -0.0006685256958007812, 0.028594970703125, -0.001171112060546875, 0.0211181640625, -0.038909912109375, 0.08392333984375, -0.047210693359375, 0.043853759765625, 0.02294921875, -0.03955078125, -0.054168701171875, 0.039215087890625, -0.0298004150390625, -0.03326416015625, -0.033905029296875, 0.04058837890625, -0.048248291015625, -0.01171875, -0.0192718505859375, 0.01751708984375, 0.004413604736328125, 0.007289886474609375, 0.06353759765625, 0.0250244140625, -0.00127410888671875, 0.046722412109375, -0.016571044921875, 0.018768310546875, -0.0170440673828125, 0.019439697265625, -0.0031909942626953125, 0.01203155517578125, 0.017303466796875, -0.0016193389892578125, 0.00811004638671875, 0.01511383056640625, 0.005290985107421875, -0.001953125, 0.036895751953125, 0.0038204193115234375, -0.0005483627319335938, -0.0236358642578125, 0.0130157470703125, -0.032623291015625, -0.029449462890625, -0.00904083251953125, -0.030914306640625, 0.0290069580078125, -0.0312347412109375, 0.00547027587890625, 0.058013916015625, 0.018524169921875, 0.004451751708984375, -0.0134735107421875, 0.01335906982421875, -0.00308990478515625, 0.00959014892578125, 0.007404327392578125, -0.041351318359375, -0.01215362548828125, 0.0284881591796875, 0.0221710205078125, 0.0279998779296875, -0.005634307861328125, 0.014007568359375, 0.0687255859375, 0.0066070556640625, -0.037933349609375, -0.0173492431640625, 0.0294342041015625, -0.0110321044921875, -0.015869140625, 0.0008416175842285156, -0.0369873046875, -0.040008544921875, 0.0179290771484375, -0.04638671875, -0.00319671630859375, 0.0208282470703125, -0.0266265869140625, -0.0452880859375, -0.0859375, 0.0034885406494140625, 0.005992889404296875, 0.030853271484375, -0.00975799560546875, -0.0169525146484375, -0.03387451171875, -0.0232696533203125, -0.0236968994140625, 0.0142822265625, -0.057342529296875, -0.03289794921875, -0.00965118408203125, -0.03955078125, 0.0115966796875, 0.0321044921875, -0.03021240234375, -0.01280975341796875, -0.02484130859375, -0.0054779052734375, 0.0027523040771484375, -0.00933074951171875, 0.016937255859375, 0.0005249977111816406, 0.0017995834350585938, 0.0404052734375, 0.05401611328125, 0.04681396484375, -0.00005352497100830078, 0.0692138671875, -0.025543212890625, 0.0074920654296875, -0.047760009765625, 0.002117156982421875, -0.056793212890625, -0.0279998779296875, -0.0137786865234375, -0.00998687744140625, 0.007358551025390625, 0.0301055908203125, -0.0301666259765625, -0.0277252197265625, 0.01238250732421875, -0.015838623046875, -0.00466156005859375, -0.00616455078125, 0.01238250732421875, 0.04962158203125, -0.0268096923828125, -0.01479339599609375, 0.010711669921875, -0.002262115478515625, -0.005931854248046875, -0.031829833984375, 0.034698486328125, -0.0189056396484375, -0.00554656982421875, 0.0265960693359375, -0.0289154052734375, -0.0401611328125, 0.0006322860717773438, -0.0054931640625, 0.00537109375, -0.00281524658203125, 0.0360107421875, 0.027191162109375, -0.02764892578125, -0.0193328857421875, -0.007904052734375, 0.01453399658203125, 0.00846099853515625, 0.011474609375, -0.0439453125, -0.0110931396484375, -0.03692626953125, -0.0080718994140625, -0.0008473396301269531, -0.01922607421875, 0.0318603515625, -0.00986480712890625, -0.002658843994140625, -0.032012939453125, -0.0517578125, 0.002628326416015625, -0.0579833984375, -0.0120697021484375, 0.0195159912109375, 0.06121826171875, -0.0163421630859375, 0.01393890380859375, 0.0179901123046875, 0.01220703125, -0.02093505859375, -0.01959228515625, 0.0169219970703125, 0.0171051025390625, 0.019805908203125, 0.02362060546875, -0.015106201171875, -0.037841796875, 0.03387451171875, -0.01088714599609375, -0.02447509765625, 0.0253143310546875, 0.043182373046875, 0.0117340087890625, -0.044219970703125, 0.0219879150390625, 0.06414794921875, 0.08782958984375, -0.056610107421875, 0.0301513671875, 0.0260772705078125, -0.01149749755859375, -0.0252685546875, -0.013427734375, 0.006866455078125, -0.0179290771484375, 0.0136871337890625, -0.01192474365234375, -0.008697509765625, -0.02069091796875, -0.09344482421875, 0.0013322830200195312, -0.0257110595703125, 0.038421630859375, 0.0277862548828125, 0.034515380859375, 0.0037593841552734375, 0.030517578125, -0.046417236328125, 0.00838470458984375, -0.026885986328125, 0.0207672119140625, 0.00782012939453125, 0.038604736328125, -0.0207672119140625, 0.0219879150390625, -0.02899169921875, -0.046051025390625, -0.043701171875, 0.047943115234375, 0.0992431640625, -0.05340576171875, 0.0076904296875, -0.072265625, 0.0743408203125, -0.046630859375, -0.044586181640625, 0.08306884765625, 0.005237579345703125, 0.0303955078125, -0.0241241455078125, -0.0003829002380371094, 0.0113525390625, -0.016357421875, 0.0116424560546875, 0.025543212890625, 0.04461669921875, 0.00443267822265625, -0.0032100677490234375, -0.041107177734375, 0.0262908935546875, -0.0623779296875, 0.0177459716796875, -0.0391845703125, -0.013336181640625, 0.0032291412353515625, 0.021697998046875, -0.0173797607421875, 0.0228118896484375, -0.0273284912109375, 0.01207733154296875, 0.0231475830078125, 0.043365478515625, 0.056854248046875, -0.055633544921875, 0.048126220703125, -0.02545166015625, 0.029571533203125, 0.006855010986328125, 0.013397216796875, 0.01215362548828125, 0.006122589111328125, 0.028900146484375, 0.005863189697265625, -0.0265655517578125, -0.001300811767578125, 0.01580810546875, 0.0162811279296875, 0.006862640380859375, -0.0017499923706054688, -0.074462890625, 0.00835418701171875, -0.01221466064453125, 0.0330810546875, -0.01114654541015625, -0.0242767333984375, -0.021209716796875, 0.031982421875, -0.0105133056640625, -0.022186279296875, -0.017333984375, -0.035186767578125, 0.005474090576171875, 0.0012121200561523438, -0.0201263427734375, -0.032135009765625, 0.00445556640625, 0.0084991455078125, -0.0286102294921875, 0.02716064453125, -0.02569580078125, -0.01629638671875, -0.0290679931640625, -0.07647705078125, 0.05853271484375, -0.07318115234375, 0.03948974609375, 0.064697265625, -0.01532745361328125, 0.02093505859375, -0.00069427490234375, 0.0198974609375, 0.017181396484375, 0.0313720703125, 0.010284423828125, -0.040069580078125, -0.0015172958374023438, 0.004535675048828125, 0.029296875, 0.0125732421875, 0.0198516845703125, -0.00685882568359375, 0.013702392578125, 0.0166473388671875, -0.052978515625, -0.0936279296875, 0.03277587890625, -0.07586669921875, -0.0168304443359375, -0.00469970703125, -0.0394287109375, -0.01042938232421875, 0.0147247314453125, -0.01503753662109375, -0.0020389556884765625, -0.0285186767578125, -0.051544189453125, -0.0545654296875, -0.0677490234375, -0.001758575439453125, 0.0145721435546875, 0.0255126953125, 0.0052490234375, 0.0765380859375, 0.0005116462707519531, -0.053497314453125, -0.01151275634765625, 0.0150604248046875, -0.028839111328125, -0.0222320556640625, -0.0007128715515136719, -0.00860595703125, 0.0143585205078125, -0.0128326416015625, 0.035675048828125, 0.026885986328125, -0.0173492431640625, -0.0019159317016601562, 0.0012760162353515625, -0.0204010009765625, 0.0018444061279296875, -0.004581451416015625, -0.005218505859375, 0.002452850341796875, 0.005748748779296875, -0.035614013671875, -0.0218963623046875, -0.040496826171875, -0.06396484375, 0.0008492469787597656, 0.0535888671875, 0.02105712890625, -0.0177154541015625, -0.018707275390625, -0.005184173583984375, -0.02337646484375, 0.01151275634765625, -0.056976318359375, 0.06500244140625, 0.007160186767578125, 0.007755279541015625, -0.009552001953125, -0.0034999847412109375, -0.0106658935546875, 0.01971435546875, -0.00588226318359375, 0.00533294677734375, -0.0217132568359375, 0.015167236328125, -0.0296478271484375, -0.055908203125, 0.0413818359375, 0.0283355712890625, 0.00421142578125, -0.004734039306640625, -0.02398681640625, 0.007724761962890625, 0.06561279296875, -0.0134429931640625, -0.031494140625, 0.015869140625, 0.0139923095703125, -0.025390625, 0.0025653839111328125, -0.00748443603515625, -0.009368896484375, -0.01480865478515625, -0.01068115234375, -0.01119232177734375, -0.02386474609375, -0.0274810791015625, -0.03802490234375, -0.041717529296875, -0.0205078125, 0.03729248046875, 0.0264739990234375, -0.01236724853515625, 0.003231048583984375, -0.015960693359375, -0.01221466064453125, -0.022613525390625, 0.01557159423828125, -0.062042236328125, -0.01229095458984375, 0.015380859375, 0.02886962890625, -0.029144287109375, 0.000010848045349121094, -0.03350830078125, 0.017242431640625, 0.004825592041015625, 0.003688812255859375, 0.01198577880859375, 0.0226593017578125, -0.042205810546875, -0.041259765625, -0.00011903047561645508, -0.0535888671875, -0.0178680419921875, -0.039306640625, -0.010467529296875, -0.01181793212890625, -0.05047607421875, 0.001941680908203125, -0.060211181640625, 0.0016698837280273438, -0.050689697265625, -0.0285797119140625, -0.03533935546875, 0.020751953125, -0.03466796875, 0.0104522705078125, -0.047821044921875, -0.049560546875, 0.0516357421875, 0.0091400146484375, -0.01093292236328125, -0.020172119140625, 0.049468994140625, 0.006267547607421875, -0.044525146484375, -0.0065765380859375, -0.00946807861328125, 0.02227783203125, -0.004055023193359375, 0.04559326171875, -0.00685882568359375, -0.0217742919921875, 0.076904296875, -0.0015773773193359375, -0.0033721923828125, -0.033843994140625, 0.0227508544921875, -0.023468017578125, -0.024505615234375, 0.018951416015625, -0.039886474609375, 0.060150146484375, 0.028228759765625, -0.0246124267578125, -0.0213165283203125, -0.005321502685546875, 0.047821044921875, -0.041107177734375, 0.05169677734375, -0.0282135009765625, 0.0011272430419921875, -0.00579071044921875, 0.03558349609375, 0.035491943359375, 0.0197296142578125, 0.0030670166015625, 0.0017042160034179688, 0.03961181640625, 0.0269012451171875, 0.055206298828125, 0.059173583984375, -0.00920867919921875, 0.03570556640625, 0.05615234375, -0.01141357421875, 0.01007843017578125, -0.00860595703125, 0.045318603515625, -0.01171112060546875, -0.050048828125, 0.0008831024169921875, -0.0221099853515625, 0.0281982421875, 0.0173492431640625, -0.0301513671875, 0.0195159912109375, 0.034759521484375, 0.004322052001953125, 0.0005044937133789062, -0.01552581787109375, -0.0096435546875, -0.020965576171875, 0.0740966796875, 0.021697998046875, 0.00862884521484375, 0.0144195556640625, 0.06591796875, 0.00643157958984375, 0.04425048828125, -0.00933837890625, -0.022186279296875, -0.03631591796875, 0.0430908203125, 0.0210723876953125, -0.015594482421875, 0.0095367431640625, 0.02642822265625, 0.02508544921875, -0.037689208984375, 0.01074981689453125, 0.0166473388671875, 0.007656097412109375, 0.02313232421875, -0.01235198974609375, 0.0151824951171875, 0.004978179931640625, -0.03802490234375, 0.059906005859375, 0.0197601318359375, -0.028411865234375, -0.0528564453125, -0.00872802734375, 0.047454833984375, 0.01529693603515625, -0.0318603515625, 0.023529052734375, -0.07147216796875, 0.0506591796875, 0.007671356201171875, 0.037811279296875, -0.01004791259765625, -0.052764892578125, 0.03778076171875, -0.0044097900390625, -0.0295867919921875, 0.025177001953125, 0.0125732421875, -0.01190185546875, -0.02117919921875, 0.053558349609375, -0.006591796875, 0.04132080078125, -0.03533935546875, -0.0225677490234375, -0.091064453125, 0.0157318115234375, 0.04339599609375, 0.041717529296875, -0.04205322265625, -0.00807952880859375, -0.07025146484375, -0.0178985595703125, -0.002262115478515625, -0.033966064453125, -0.05059814453125, -0.00370025634765625, 0.0295257568359375, 0.024200439453125, 0.0214385986328125, -0.0655517578125, -0.050445556640625, -0.01076507568359375, 0.0626220703125, 0.0130157470703125, -0.04681396484375, 0.060882568359375, -0.00493621826171875, 0.004749298095703125, -0.0162200927734375, 0.0238800048828125, 0.0208892822265625, 0.0080413818359375, 0.01325225830078125, -0.06842041015625, -0.019622802734375, 0.01418304443359375, -0.031768798828125, 0.002227783203125, -0.004253387451171875, -0.004192352294921875, 0.0093536376953125, -0.049041748046875, -0.005138397216796875, -0.020965576171875, 0.049896240234375, -0.057342529296875, -0.00711822509765625, 0.02447509765625, 0.034759521484375, 0.026336669921875, -0.02099609375, -0.0242462158203125, -0.0252685546875, 0.0372314453125, -0.01343536376953125, -0.038177490234375, -0.005390167236328125, 0.0002999305725097656, 0.08575439453125, 0.0224609375, 0.070068359375, 0.020751953125, 0.035430908203125, 0.056976318359375, -0.0062408447265625, 0.00138092041015625, 0.0020771026611328125, 0.027008056640625, -0.0129241943359375, 0.01386260986328125, 0.01435089111328125, -0.0147857666015625, -0.0293426513671875, 0.01311492919921875, 0.0006542205810546875, -0.012359619140625, -0.018218994140625, -0.01538848876953125, -0.0003504753112792969, -0.00754547119140625, -0.00026679039001464844, 0.007465362548828125, -0.00969696044921875, 0.033355712890625, -0.0034198760986328125, -0.004486083984375, 0.01110076904296875, -0.0165863037109375, 0.0010671615600585938, -0.050811767578125, 0.0184326171875, 0.01165771484375, -0.032257080078125, 0.0230712890625, 0.031951904296875, -0.01702880859375, -0.032684326171875, -0.0261077880859375, 0.00492095947265625, -0.024749755859375, -0.052093505859375, 0.006938934326171875, -0.044647216796875, 0.0247802734375, 0.030792236328125, 0.01406097412109375, 0.0152130126953125, 0.050018310546875, -0.0138092041015625, 0.03466796875, 0.01256561279296875, -0.0008268356323242188, -0.05902099609375, -0.0269775390625, 0.0190277099609375, 0.03973388671875, -0.049835205078125, 0.037506103515625, -0.0149993896484375, -0.0172882080078125, 0.0023326873779296875, -0.0068359375, 0.0290374755859375, -0.025848388671875, -0.00588226318359375, 0.038848876953125, -0.00330352783203125, -0.01043701171875, 0.0018291473388671875, 0.0039825439453125, -0.031494140625, 0.01021575927734375, -0.002964019775390625, 0.007171630859375, -0.0008101463317871094, 0.01471710205078125, -0.00890350341796875, 0.0628662109375, -0.0640869140625, 0.01485443115234375, 0.06988525390625, 0.01739501953125, 0.0012407302856445312, 0.03436279296875, -0.044830322265625, 0.06976318359375, -0.0009026527404785156, 0.075439453125, -0.056427001953125, -0.01213836669921875, 0.0306243896484375, 0.038787841796875, 0.055755615234375, 0.0164337158203125, -0.06097412109375, -0.0237884521484375, 0.03631591796875, 0.04180908203125, 0.020660400390625, 0.05560302734375, 0.0187530517578125, 0.018218994140625, 0.04034423828125, -0.01360321044921875, 0.032989501953125, -0.02252197265625, -0.0221710205078125, 0.035400390625, 0.0208740234375, 0.039154052734375, 0.00725555419921875, 0.0206756591796875, -0.03765869140625, 0.0189361572265625, 0.037384033203125, -0.003936767578125, 0.003566741943359375, 0.0516357421875, 0.06072998046875, -0.0660400390625, -0.0726318359375, -0.02593994140625, 0.03369140625, 0.032379150390625, 0.0124053955078125, 0.03692626953125, 0.02716064453125, 0.03753662109375, -0.0084075927734375, 0.01366424560546875, 0.00650787353515625, -0.0238494873046875, 0.05035400390625, 0.031219482421875, 0.0284423828125, -0.03326416015625, 0.00048160552978515625, 0.046630859375, 0.057342529296875, -0.044647216796875, -0.0290374755859375, 0.0108642578125, -0.0176544189453125, -0.0114288330078125, 0.0015478134155273438, 0.001483917236328125, 0.032562255859375, 0.01230621337890625, -0.0199737548828125, -0.026458740234375, -0.00550079345703125, 0.0494384765625, -0.0088043212890625, -0.0220947265625, 0.004398345947265625, -0.046539306640625, 0.00016486644744873047, -0.0269775390625, 0.01227569580078125, 0.01198577880859375, 0.00910186767578125, 0.0015172958374023438, -0.01282501220703125, -0.006351470947265625, -0.016510009765625, 0.031402587890625, -0.01506805419921875, 0.01018524169921875, -0.0287322998046875, -0.03704833984375, 0.005435943603515625, 0.024688720703125, 0.061676025390625, -0.01215362548828125, 0.018218994140625, -0.000537872314453125, 0.0032100677490234375, 0.01087188720703125, 0.0307769775390625, -0.0024585723876953125, -0.004917144775390625, -0.0294952392578125, 0.04852294921875, 0.039306640625, 0.01885986328125, 0.00919342041015625, 0.049774169921875, 0.040924072265625, 0.026824951171875, -0.0272979736328125, 0.01238250732421875, -0.0157928466796875, 0.01666259765625, 0.03521728515625, 0.00736236572265625, 0.044708251953125, -0.06988525390625, -0.031219482421875, -0.038726806640625, -0.002941131591796875, 0.046478271484375, 0.034881591796875, 0.014801025390625, -0.002483367919921875, 0.008880615234375, -0.01100921630859375, 0.0159454345703125, -0.01433563232421875, 0.024505615234375, 0.01128387451171875, 0.0157470703125, 0.0079193115234375, -0.0194549560546875, -0.01459503173828125, 0.00835418701171875, 0.0193939208984375, -0.0019779205322265625, 0.056915283203125, -0.01183319091796875, -0.0019483566284179688, 0.05206298828125, 0.0045623779296875, 0.027801513671875, 0.01222991943359375, 0.061676025390625, -0.0279083251953125, -0.0091094970703125, -0.0177764892578125, 0.0127105712890625, 0.017669677734375, 0.036590576171875, -0.036773681640625, 0.0006685256958007812, -0.0220489501953125, 0.01593017578125, -0.016326904296875, -0.00896453857421875, -0.022491455078125, 0.0302734375, -0.030517578125, -0.052764892578125, 0.059906005859375, 0.0134429931640625, 0.004657745361328125, 0.039276123046875, 0.03497314453125, -0.037750244140625, 0.03460693359375, -0.04644775390625, 0.07220458984375, 0.041473388671875, 0.02215576171875, 0.056732177734375, -0.022003173828125, -0.0244293212890625, -0.0031833648681640625, 0.0233917236328125, -0.06427001953125, -0.00836181640625, 0.02978515625, -0.019317626953125, -0.0024776458740234375, 0.0161895751953125, -0.0305023193359375, -0.011627197265625, 0.005947113037109375, -0.01076507568359375, 0.013214111328125, -0.0260467529296875, -0.038116455078125, -0.0192413330078125, -0.00609588623046875, 0.0011835098266601562, -0.002307891845703125, -0.0523681640625, -0.0160675048828125, -0.024566650390625, -0.0089874267578125, -0.010772705078125, -0.0177459716796875, 0.0099334716796875, -0.006214141845703125, 0.00726318359375, -0.053558349609375, 0.0196990966796875, -0.0004787445068359375, 0.031646728515625, -0.04693603515625, 0.0009031295776367188, -0.0173797607421875, -0.004344940185546875, -0.0153350830078125, -0.0021190643310546875, 0.027069091796875, -0.012542724609375, -0.0308990478515625, 0.0083160400390625, -0.0207977294921875, 0.04180908203125, -0.03106689453125, 0.00568389892578125, 0.03753662109375, 0.0185546875, -0.034942626953125, -0.08404541015625, -0.007030487060546875, -0.038787841796875, 0.0246429443359375, 0.0209197998046875, -0.018157958984375, 0.017852783203125, -0.0210113525390625, -0.058349609375, -0.02001953125, 0.01264190673828125, -0.03973388671875, -0.025970458984375, -0.0251007080078125, 0.0022716522216796875, 0.00997161865234375, -0.00806427001953125, -0.00949859619140625, -0.06591796875, 0.000728607177734375, 0.0080413818359375, 0.034332275390625, 0.0128021240234375, 0.006336212158203125, -0.042022705078125, 0.01123046875, -0.011688232421875, 0.01337432861328125, -0.017486572265625, 0.00494384765625, 0.023101806640625, 0.0308074951171875, -0.00521087646484375, 0.00478363037109375, 0.037078857421875, -0.0091552734375, 0.0003514289855957031, 0.0506591796875, -0.055023193359375, 0.015655517578125, 0.060821533203125, 0.0849609375, 0.02001953125, -0.043426513671875, -0.0521240234375, -0.05426025390625, -0.0121002197265625, -0.037322998046875, 0.021728515625, -0.06854248046875, 0.0060577392578125, -0.00688934326171875, -0.007526397705078125, 0.0179443359375, -0.028839111328125, -0.0208587646484375, -0.005035400390625, -0.0164947509765625, 0.0126800537109375, -0.046234130859375, -0.0216522216796875, 0.04315185546875, -0.047943115234375, -0.0732421875, 0.01548004150390625, 0.0211944580078125, -0.044769287109375, -0.028350830078125, -0.0200347900390625, 0.00799560546875, 0.013031005859375, -0.016357421875, 0.02203369140625, -0.0239715576171875, 0.040130615234375, 0.01316070556640625, 0.00380706787109375, 0.0197906494140625, -0.0037708282470703125, 0.0252685546875, 0.0144195556640625, 0.0265350341796875, -0.005420684814453125, 0.019775390625, 0.031829833984375, 0.08111572265625, 0.0172576904296875, 0.0628662109375, 0.0019483566284179688, -0.05181884765625, 0.00035762786865234375, -0.05694580078125, -0.0139923095703125, 0.01145172119140625, -0.024749755859375, -0.0103759765625, -0.028076171875, -0.0165557861328125, -0.0228271484375, -0.0145263671875 ]
abfe15efa7d8a6e486ce2e65ea4381edad9be29c
Wordpress Stackexchange Q: How can I get a list of users by their role? How can I get a list of all users that are in WordPress by their role or capabilities? For example: * *Display all subscribers list in WordPress. *Display all authors list in WordPress. *Display all editors list in WordPress. A: Here the simple approach to grouping roles. $wp_roles = wp_roles(); $result = count_users(); foreach ( $result['avail_roles'] as $role => $count ) { if ( 0 == $count ) continue; //pass role none $args = array( 'role' => $role ); $users = get_users( $args ); $user = array(); for ( $i = 0; $i < $count ; $i++ ) $user[] = esc_html( $users[ $i ]->display_name ); //show display name //output echo wp_sprintf( '<h2>%1$s</h2><ul><li>%2$s</li></ul>', esc_html( $wp_roles->role_names[ $role ] ), implode( '</li><li>', $user ) ); }
Q: How can I get a list of users by their role? How can I get a list of all users that are in WordPress by their role or capabilities? For example: * *Display all subscribers list in WordPress. *Display all authors list in WordPress. *Display all editors list in WordPress. A: Here the simple approach to grouping roles. $wp_roles = wp_roles(); $result = count_users(); foreach ( $result['avail_roles'] as $role => $count ) { if ( 0 == $count ) continue; //pass role none $args = array( 'role' => $role ); $users = get_users( $args ); $user = array(); for ( $i = 0; $i < $count ; $i++ ) $user[] = esc_html( $users[ $i ]->display_name ); //show display name //output echo wp_sprintf( '<h2>%1$s</h2><ul><li>%2$s</li></ul>', esc_html( $wp_roles->role_names[ $role ] ), implode( '</li><li>', $user ) ); } A: There may be some different way to do that, but most proper way to do that is following. <?php $args = array( 'role' => 'Your desired role goes here.', 'orderby' => 'user_nicename', 'order' => 'ASC' ); $users = get_users( $args ); echo '<ul>'; foreach ( $users as $user ) { echo '<li>' . esc_html( $user->display_name ) . '[' . esc_html( $user->user_email ) . ']</li>'; } echo '</ul>'; ?> A: When you find users with Ultimate Member Plugin Roles, You have to add "um_" to your role value. For example, you created the role name "Client" in Ultimate Membership Plugin, then $args would be $args = array( 'role' => 'um_client', 'orderby' => 'user_nicename', 'order' => 'ASC' ); A: Expanding on Raja's answer you could also write a helper function that handles this for you: <?php # This goes in functions.php function get_users_by_role($role, $orderby, $order) { $args = array( 'role' => $role, 'orderby' => $orderby, 'order' => $order ); $users = get_users( $args ); return $users; } ?> Then to get users by a specific role you can simply do: <?php $users = get_users_by_role('Your role', 'user_nicename', 'ASC'); ?>
wordpress
{ "language": "en", "length": 322, "provenance": "stackexchange_00019.jsonl.gz:463708", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/219686" }
[ 0.06353759765625, -0.01044464111328125, -0.024749755859375, -0.034912109375, 0.01108551025390625, -0.03955078125, 0.06353759765625, -0.005603790283203125, -0.0099945068359375, 0.04705810546875, 0.014007568359375, 0.007781982421875, -0.038848876953125, -0.014892578125, -0.03765869140625, -0.02880859375, 0.00675201416015625, 0.00617218017578125, 0.0167388916015625, -0.014556884765625, 0.016448974609375, -0.0184783935546875, 0.0223541259765625, 0.048736572265625, 0.015960693359375, -0.01324462890625, 0.053863525390625, -0.04180908203125, 0.01861572265625, -0.0285186767578125, 0.0189056396484375, 0.0007410049438476562, -0.01168060302734375, 0.01141357421875, 0.03021240234375, 0.003101348876953125, 0.0048828125, 0.01007843017578125, 0.0455322265625, -0.0101776123046875, 0.01470184326171875, -0.0024509429931640625, 0.01546478271484375, 0.019439697265625, -0.0151214599609375, -0.053192138671875, 0.0258026123046875, -0.0056304931640625, 0.0194549560546875, -0.02899169921875, 0.034912109375, 0.0175933837890625, 0.051788330078125, 0.00710296630859375, -0.0269622802734375, 0.0177459716796875, 0.01078033447265625, 0.0229949951171875, 0.043609619140625, -0.045745849609375, -0.049163818359375, -0.0079498291015625, 0.035919189453125, -0.0258941650390625, -0.02850341796875, 0.0130615234375, 0.02166748046875, 0.013427734375, -0.032073974609375, -0.0728759765625, -0.021820068359375, -0.0016460418701171875, -0.0290374755859375, 0.009246826171875, -0.01319122314453125, -0.02093505859375, -0.0195770263671875, -0.055206298828125, 0.0274505615234375, 0.018280029296875, -0.00803375244140625, 0.0103912353515625, -0.049163818359375, 0.0203857421875, -0.0249786376953125, 0.0216064453125, -0.01522064208984375, -0.01053619384765625, -0.0111541748046875, -0.01495361328125, -0.01168060302734375, -0.01386260986328125, -0.01552581787109375, 0.0089874267578125, -0.0082855224609375, -0.0291748046875, 0.0704345703125, 0.06036376953125, -0.019500732421875, -0.0509033203125, 0.0081939697265625, -0.0394287109375, -0.0430908203125, -0.016937255859375, 0.005985260009765625, 0.043731689453125, -0.00011968612670898438, 0.0147247314453125, 0.033050537109375, 0.03924560546875, 0.0257568359375, -0.019256591796875, -0.0269317626953125, -0.0204925537109375, 0.0010280609130859375, 0.0125885009765625, -0.0631103515625, 0.03631591796875, 0.00026679039001464844, 0.017852783203125, 0.0021839141845703125, 0.038299560546875, 0.0007853507995605469, -0.040679931640625, -0.0164642333984375, -0.0181427001953125, -0.01019287109375, -0.041839599609375, 0.000020265579223632812, 0.006717681884765625, -0.017913818359375, 0.0171356201171875, 0.025115966796875, 0.0210113525390625, -0.0027217864990234375, -0.016021728515625, -0.0026798248291015625, -0.01274871826171875, -0.00360107421875, 0.0262298583984375, 0.005794525146484375, -0.035186767578125, 0.0138397216796875, 0.006824493408203125, -0.00787353515625, 0.0095062255859375, 0.0037136077880859375, 0.01058197021484375, 0.0186767578125, 0.02276611328125, -0.05731201171875, 0.00937652587890625, -0.023590087890625, 0.013702392578125, 0.04803466796875, 0.01959228515625, 0.01346588134765625, -0.005374908447265625, 0.0195770263671875, 0.0084991455078125, 0.0218963623046875, 0.0193328857421875, 0.041656494140625, -0.00937652587890625, -0.0152587890625, -0.0445556640625, -0.060546875, -0.0077972412109375, 0.02032470703125, -0.03741455078125, 0.019195556640625, -0.022979736328125, 0.050689697265625, 0.019805908203125, 0.01371002197265625, 0.04901123046875, -0.025421142578125, -0.0003132820129394531, 0.0180511474609375, -0.003631591796875, -0.0118408203125, -0.027069091796875, 0.024444580078125, 0.0151519775390625, -0.037353515625, 0.008392333984375, -0.01267242431640625, 0.0222015380859375, 0.034820556640625, 0.006866455078125, 0.00959014892578125, 0.019256591796875, -0.0006279945373535156, 0.002315521240234375, -0.0197296142578125, -0.03057861328125, -0.01190185546875, 0.0029506683349609375, -0.0213623046875, 0.0250244140625, 0.1053466796875, -0.021759033203125, 0.0099334716796875, -0.0625, -0.08062744140625, -0.0194091796875, -0.0158843994140625, 0.0120849609375, 0.0222930908203125, 0.005634307861328125, 0.007556915283203125, 0.0133819580078125, -0.0244903564453125, -0.044281005859375, -0.0382080078125, 0.03973388671875, -0.0025463104248046875, 0.0142822265625, 0.0172119140625, 0.00501251220703125, 0.0081024169921875, -0.0238494873046875, -0.0007276535034179688, 0.0093536376953125, 0.040924072265625, -0.0172576904296875, -0.009063720703125, -0.0186767578125, 0.061798095703125, -0.0005846023559570312, 0.0250701904296875, -0.006908416748046875, 0.051483154296875, 0.056304931640625, -0.00933074951171875, 0.01352691650390625, 0.016265869140625, -0.022735595703125, -0.00830841064453125, 0.0271759033203125, 0.043365478515625, 0.053924560546875, 0.00783538818359375, -0.00873565673828125, 0.061248779296875, -0.0682373046875, 0.00689697265625, -0.01139068603515625, -0.01079559326171875, 0.056365966796875, 0.0054931640625, 0.0479736328125, 0.00727081298828125, 0.028839111328125, -0.0228729248046875, 0.05487060546875, -0.01727294921875, 0.0323486328125, -0.036468505859375, -0.0034008026123046875, -0.008941650390625, -0.0721435546875, 0.0033054351806640625, -0.048980712890625, -0.034210205078125, 0.000263214111328125, -0.01412200927734375, -0.0035915374755859375, -0.01153564453125, -0.0142059326171875, 0.032989501953125, 0.014190673828125, -0.00621795654296875, 0.02825927734375, -0.02001953125, -0.0229644775390625, -0.03533935546875, 0.01055908203125, -0.01136016845703125, -0.0036983489990234375, 0.01044464111328125, 0.03692626953125, 0.059326171875, -0.0022640228271484375, -0.00543975830078125, -0.0224609375, 0.03179931640625, 0.01702880859375, -0.013458251953125, 0.0038909912109375, 0.0122528076171875, 0.0404052734375, -0.000942230224609375, 0.025970458984375, -0.026123046875, 0.0026912689208984375, 0.01313018798828125, -0.06048583984375, 0.0268402099609375, -0.019805908203125, 0.0272979736328125, 0.0731201171875, 0.03594970703125, -0.0200042724609375, -0.02001953125, -0.062164306640625, -0.0294342041015625, 0.0137481689453125, -0.0019435882568359375, -0.056365966796875, -0.01152801513671875, 0.054443359375, 0.01345062255859375, 0.0207366943359375, 0.0042572021484375, -0.0188140869140625, -0.007503509521484375, 0.010101318359375, -0.04351806640625, -0.035003662109375, 0.00730133056640625, -0.0943603515625, 0.0091552734375, -0.0299224853515625, -0.04730224609375, -0.0016965866088867188, 0.0111083984375, 0.00893402099609375, -0.01122283935546875, 0.010833740234375, -0.04150390625, -0.001987457275390625, -0.04510498046875, 0.0404052734375, -0.0254364013671875, 0.0263214111328125, -0.00756072998046875, 0.03125, 0.0001938343048095703, -0.045196533203125, -0.03607177734375, 0.0751953125, -0.00469207763671875, -0.040496826171875, -0.0125885009765625, 0.00753021240234375, -0.0230712890625, -0.0012960433959960938, 0.007167816162109375, -0.01540374755859375, 0.0050048828125, -0.01715087890625, 0.0101318359375, -0.029144287109375, 0.043304443359375, -0.015899658203125, -0.05767822265625, 0.0222015380859375, 0.048065185546875, -0.030792236328125, 0.01580810546875, -0.00449371337890625, -0.01412200927734375, 0.0017900466918945312, -0.004657745361328125, -0.015838623046875, 0.00588226318359375, -0.01132965087890625, 0.0104217529296875, 0.01959228515625, -0.04327392578125, 0.00437164306640625, -0.01381683349609375, 0.02777099609375, 0.039642333984375, 0.04583740234375, 0.032135009765625, -0.00028896331787109375, 0.0230255126953125, 0.00978851318359375, 0.00534820556640625, -0.020416259765625, 0.01108551025390625, -0.03851318359375, -0.08929443359375, 0.06195068359375, -0.001987457275390625, 0.018280029296875, -0.047332763671875, -0.0455322265625, 0.0033206939697265625, 0.1392822265625, 0.0129241943359375, -0.0150909423828125, -0.0173492431640625, -0.002044677734375, -0.022674560546875, -0.023162841796875, -0.0300445556640625, -0.002811431884765625, -0.049896240234375, 0.0011377334594726562, -0.01090240478515625, -0.003536224365234375, -0.03314208984375, 0.01268768310546875, -0.035430908203125, -0.02178955078125, 0.0357666015625, -0.035919189453125, 0.0302734375, -0.0141754150390625, 0.0079345703125, -0.040252685546875, -0.021240234375, -0.0262298583984375, -0.070556640625, -0.0211944580078125, -0.00164031982421875, 0.05316162109375, 0.0107269287109375, -0.00814056396484375, -0.0167694091796875, 0.061676025390625, 0.01122283935546875, 0.04205322265625, 0.0202484130859375, 0.0101165771484375, 0.01104736328125, -0.00771331787109375, 0.0258331298828125, -0.032318115234375, -0.01328277587890625, -0.033172607421875, 0.00568389892578125, -0.0166473388671875, -0.049102783203125, -0.0126800537109375, -0.0280609130859375, -0.003223419189453125, -0.01020050048828125, -0.002410888671875, -0.007965087890625, 0.01525115966796875, -0.0257110595703125, 0.01319122314453125, -0.0090484619140625, -0.042816162109375, 0.0435791015625, -0.006465911865234375, -0.0041656494140625, 0.00853729248046875, 0.08892822265625, 0.01116180419921875, -0.0197906494140625, -0.040802001953125, -0.020599365234375, 0.0531005859375, -0.00910186767578125, 0.04669189453125, 0.06732177734375, -0.024322509765625, 0.0134124755859375, 0.0250244140625, -0.00135040283203125, 0.0303192138671875, 0.00446319580078125, 0.039337158203125, -0.01152801513671875, -0.0019626617431640625, 0.040069580078125, -0.036865234375, -0.0005459785461425781, 0.004680633544921875, -0.01459503173828125, 0.06365966796875, 0.033660888671875, -0.017852783203125, -0.01318359375, -0.00799560546875, -0.053955078125, 0.0014791488647460938, -0.05609130859375, 0.025726318359375, 0.0294189453125, 0.00249481201171875, 0.029144287109375, 0.03253173828125, -0.0155029296875, 0.0017881393432617188, -0.00630950927734375, 0.005626678466796875, 0.033721923828125, -0.0377197265625, -0.01325225830078125, -0.007648468017578125, -0.0193634033203125, 0.077880859375, 0.004688262939453125, -0.07281494140625, 0.056640625, -0.036590576171875, 0.036468505859375, 0.0287017822265625, 0.01898193359375, 0.06060791015625, 0.04974365234375, 0.020355224609375, -0.0301513671875, -0.018096923828125, 0.0426025390625, -0.04156494140625, 0.006999969482421875, -0.015625, -0.00391387939453125, 0.0021839141845703125, 0.061737060546875, -0.03204345703125, 0.03955078125, -0.004505157470703125, 0.06158447265625, 0.045867919921875, 0.010986328125, -0.005889892578125, 0.0301361083984375, -0.004070281982421875, -0.01348114013671875, 0.005680084228515625, -0.040374755859375, 0.0114593505859375, 0.041748046875, 0.04095458984375, 0.0226287841796875, -0.033935546875, -0.007183074951171875, -0.0279541015625, -0.005031585693359375, 0.045013427734375, -0.0183258056640625, -0.059539794921875, -0.037841796875, 0.0141448974609375, 0.039276123046875, -0.0325927734375, -0.00536346435546875, 0.0231781005859375, 0.0119476318359375, 0.016754150390625, -0.01351165771484375, -0.038818359375, 0.0160369873046875, 0.040069580078125, -0.0828857421875, -0.016632080078125, 0.032958984375, -0.0325927734375, -0.0330810546875, -0.0011463165283203125, -0.035675048828125, 0.0305633544921875, -0.0014905929565429688, 0.0291900634765625, -0.061279296875, 0.01178741455078125, -0.07257080078125, -0.0245819091796875, 0.08416748046875, 0.048797607421875, -0.0467529296875, 0.0038604736328125, -0.026214599609375, 0.00373077392578125, 0.018707275390625, -0.039306640625, -0.0214691162109375, -0.032440185546875, 0.01499176025390625, 0.00200653076171875, 0.01202392578125, -0.0159912109375, -0.022613525390625, 0.0261993408203125, 0.03314208984375, 0.0161895751953125, 0.01459503173828125, 0.0394287109375, -0.0182647705078125, 0.01776123046875, 0.01275634765625, 0.0169219970703125, -0.0280303955078125, -0.01561737060546875, 0.021942138671875, 0.004352569580078125, -0.0234832763671875, -0.043609619140625, 0.0073699951171875, -0.0279541015625, 0.042633056640625, -0.007022857666015625, 0.007232666015625, -0.0037593841552734375, 0.0032405853271484375, -0.018585205078125, -0.00543212890625, 0.00409698486328125, 0.0175628662109375, 0.0033721923828125, -0.0149993896484375, 0.0300140380859375, -0.0090789794921875, 0.00044226646423339844, 0.008087158203125, -0.00916290283203125, 0.022216796875, -0.01494598388671875, -0.040283203125, 0.03363037109375, 0.033294677734375, -0.005519866943359375, 0.0189971923828125, 0.02569580078125, 0.01023101806640625, -0.0257568359375, 0.006473541259765625, -0.0070037841796875, 0.0030498504638671875, 0.042022705078125, -0.0000020265579223632812, -0.01000213623046875, 0.0158233642578125, -0.0219879150390625, 0.023101806640625, 0.046051025390625, 0.06964111328125, -0.06341552734375, 0.0273284912109375, 0.01459503173828125, -0.0235595703125, 0.01421356201171875, -0.03729248046875, -0.03228759765625, -0.0841064453125, 0.08697509765625, -0.01971435546875, -0.029754638671875, -0.0016336441040039062, -0.039581298828125, 0.00562286376953125, 0.0006198883056640625, 0.0232696533203125, 0.0154266357421875, 0.055999755859375, -0.031341552734375, -0.0204620361328125, 0.046600341796875, -0.01447296142578125, 0.0138092041015625, -0.010650634765625, -0.006591796875, -0.06793212890625, -0.0282135009765625, -0.0148162841796875, -0.0106658935546875, -0.0162353515625, 0.00548553466796875, 0.0191802978515625, 0.044952392578125, -0.021148681640625, 0.0233917236328125, 0.048858642578125, -0.06280517578125, -0.053863525390625, -0.038421630859375, -0.0310211181640625, 0.0263824462890625, -0.0196990966796875, 0.029510498046875, -0.0294647216796875, 0.004222869873046875, -0.0109100341796875, -0.005718231201171875, 0.06512451171875, -0.0399169921875, -0.0189056396484375, 0.0237274169921875, 0.033203125, 0.00384521484375, 0.005664825439453125, 0.0178070068359375, -0.059600830078125, -0.012908935546875, 0.019378662109375, 0.0026569366455078125, 0.014190673828125, 0.024932861328125, -0.060302734375, 0.06072998046875, -0.0225372314453125, 0.035186767578125, 0.031463623046875, 0.0073089599609375, -0.01654052734375, -0.024078369140625, -0.0484619140625, 0.08135986328125, 0.0228118896484375, 0.051788330078125, -0.040374755859375, -0.0135650634765625, 0.01149749755859375, 0.03814697265625, 0.04473876953125, 0.0195465087890625, -0.064697265625, -0.016387939453125, 0.006084442138671875, 0.016510009765625, -0.012664794921875, 0.067138671875, 0.0006046295166015625, 0.0345458984375, 0.02813720703125, -0.03997802734375, 0.050262451171875, -0.045623779296875, -0.0195770263671875, 0.00972747802734375, 0.0058135986328125, 0.0002703666687011719, 0.0001062154769897461, 0.005458831787109375, -0.04168701171875, -0.0018749237060546875, 0.0099945068359375, 0.00788116455078125, 0.0213623046875, 0.0272674560546875, 0.05279541015625, -0.054443359375, -0.01450347900390625, -0.017333984375, 0.05523681640625, 0.0098114013671875, -0.00937652587890625, 0.00690460205078125, 0.01898193359375, 0.0084228515625, 0.002044677734375, 0.00047969818115234375, 0.02899169921875, -0.009124755859375, 0.03936767578125, 0.038604736328125, 0.021881103515625, -0.04144287109375, -0.001712799072265625, 0.05328369140625, 0.0533447265625, -0.03759765625, -0.061126708984375, 0.016815185546875, 0.0181884765625, 0.01580810546875, 0.040008544921875, 0.0248870849609375, -0.0145416259765625, 0.07000732421875, -0.027679443359375, -0.0049896240234375, -0.01788330078125, 0.0121612548828125, -0.021270751953125, -0.033905029296875, 0.03167724609375, 0.0029392242431640625, -0.03076171875, -0.0236358642578125, -0.002429962158203125, -0.01285552978515625, 0.0264739990234375, -0.0029163360595703125, 0.054779052734375, 0.0214996337890625, 0.016754150390625, 0.00481414794921875, -0.0286712646484375, -0.02496337890625, 0.0010652542114257812, -0.038177490234375, -0.01032257080078125, 0.0178985595703125, 0.02001953125, -0.0215301513671875, -0.014068603515625, 0.01250457763671875, 0.0019474029541015625, -0.00762176513671875, 0.0164031982421875, -0.00749969482421875, -0.016387939453125, -0.0296478271484375, 0.02130126953125, 0.043121337890625, 0.007442474365234375, 0.0023097991943359375, 0.0377197265625, 0.0653076171875, -0.0310821533203125, 0.057464599609375, -0.0240631103515625, 0.00327301025390625, 0.00196075439453125, -0.054840087890625, 0.0136566162109375, -0.0259246826171875, -0.09613037109375, 0.00537872314453125, -0.06805419921875, -0.04876708984375, 0.0440673828125, 0.0433349609375, -0.01849365234375, 0.005908966064453125, 0.0160064697265625, -0.0179901123046875, 0.006500244140625, 0.0255279541015625, -0.00154876708984375, 0.0129547119140625, 0.0302581787109375, -0.0122833251953125, -0.0028934478759765625, 0.0008068084716796875, 0.004573822021484375, 0.010040283203125, 0.0169219970703125, 0.01245880126953125, -0.002288818359375, 0.0192413330078125, -0.047149658203125, 0.0153350830078125, -0.052734375, -0.07958984375, 0.055389404296875, 0.0059356689453125, -0.0037441253662109375, 0.00948333740234375, -0.038543701171875, 0.01010894775390625, 0.0167694091796875, -0.014434814453125, -0.01885986328125, 0.006183624267578125, 0.0237884521484375, 0.01500701904296875, 0.0243377685546875, -0.01812744140625, -0.023345947265625, -0.023468017578125, 0.00251007080078125, 0.01123809814453125, 0.026397705078125, 0.0088348388671875, 0.0159149169921875, -0.0185089111328125, -0.05548095703125, -0.01520538330078125, -0.01241302490234375, -0.0721435546875, 0.016326904296875, 0.04534912109375, -0.027435302734375, -0.0065460205078125, -0.00567626953125, -0.01349639892578125, 0.0093994140625, 0.00891876220703125, 0.0129852294921875, -0.0079345703125, 0.015838623046875, 0.031280517578125, 0.060821533203125, 0.01116180419921875, 0.0149078369140625, 0.00750732421875, -0.00656890869140625, -0.02117919921875, -0.037200927734375, -0.0323486328125, -0.04254150390625, -0.0016489028930664062, 0.025909423828125, -0.0107269287109375, -0.050140380859375, -0.05352783203125, -0.02081298828125, 0.019256591796875, 0.0087738037109375, -0.04833984375, 0.0194549560546875, 0.0014801025390625, 0.0018138885498046875, -0.019012451171875, -0.0391845703125, 0.0291900634765625, 0.041961669921875, -0.011962890625, 0.031158447265625, -0.005870819091796875, -0.042388916015625, 0.010040283203125, 0.0248260498046875, 0.01241302490234375, -0.004550933837890625, 0.007038116455078125, 0.05792236328125, 0.01568603515625, 0.0997314453125, -0.02947998046875, 0.0020599365234375, -0.00966644287109375, 0.01247406005859375, -0.0192108154296875, -0.04376220703125, 0.02398681640625, -0.0430908203125, -0.039215087890625, -0.0140228271484375, 0.046173095703125, 0.065673828125, -0.007213592529296875, -0.038177490234375, 0.132568359375, -0.0462646484375, -0.0092926025390625, -0.06072998046875, 0.027130126953125, 0.0289154052734375, -0.046234130859375, -0.032196044921875, -0.005550384521484375, -0.044342041015625, 0.016510009765625, 0.033966064453125, -0.04296875, 0.0204315185546875, 0.0307769775390625, -0.07891845703125, 0.04278564453125, 0.029205322265625, -0.025115966796875, -0.01690673828125, 0.00809478759765625, 0.00684356689453125, 0.042877197265625, 0.00022077560424804688, -0.046112060546875, -0.0018672943115234375, -0.0161285400390625, -0.00939178466796875, -0.0229949951171875, -0.006671905517578125, -0.0308074951171875, 0.01244354248046875, 0.036407470703125, 0.003387451171875, 0.0014543533325195312, -0.016357421875, -0.039031982421875, -0.02777099609375, -0.01067352294921875, 0.0272369384765625, -0.05120849609375, 0.0198974609375, -0.00664520263671875, -0.044281005859375, 0.019561767578125, -0.02398681640625, -0.06982421875, 0.0203857421875, -0.051727294921875, 0.00545501708984375, -0.0423583984375, 0.04058837890625, 0.00823974609375, -0.036224365234375, -0.035736083984375, -0.039398193359375, -0.0029430389404296875, -0.0259246826171875, -0.07696533203125, -0.003261566162109375, 0.0023956298828125, -0.003398895263671875, 0.043975830078125, 0.00408935546875, 0.019378662109375, -0.033966064453125, -0.00249481201171875, -0.0031719207763671875, 0.0275726318359375, -0.0149688720703125, 0.0232696533203125, 0.013458251953125, 0.0472412109375, 0.005146026611328125, 0.048736572265625, -0.00789642333984375, 0.0362548828125, -0.0199432373046875, 0.051605224609375, 0.0252685546875, -0.025115966796875, 0.07537841796875, -0.050201416015625, 0.01788330078125, 0.01105499267578125, 0.0013256072998046875, 0.002040863037109375, -0.00626373291015625, 0.0523681640625, -0.0080108642578125, 0.0096282958984375 ]
42457fc6fdeb21780b17bff8afadc9741c51642a
Wordpress Stackexchange Q: Conditional to test if post has password protection enabled I am looking for a conditional to test simply if a post (custom post type, if it somehow makes a difference) is set to have password protection…persistently…regardless of whether user has accessed the post via the password or not. post_password_required() only returns true if the user has not already entered the password get_post_status() (though it does return a 'private' status if a post is private) only returns 'published' for a password-protected post A: You could use if(!empty($post->post_password)){ // do some stuff } which is what the post_password_required() code does before checking the user's credentials against the password itself.
Q: Conditional to test if post has password protection enabled I am looking for a conditional to test simply if a post (custom post type, if it somehow makes a difference) is set to have password protection…persistently…regardless of whether user has accessed the post via the password or not. post_password_required() only returns true if the user has not already entered the password get_post_status() (though it does return a 'private' status if a post is private) only returns 'published' for a password-protected post A: You could use if(!empty($post->post_password)){ // do some stuff } which is what the post_password_required() code does before checking the user's credentials against the password itself.
wordpress
{ "language": "en", "length": 108, "provenance": "stackexchange_00019.jsonl.gz:463728", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/219773" }
[ 0.043609619140625, 0.0033321380615234375, -0.00971221923828125, -0.038330078125, 0.02001953125, -0.011138916015625, 0.0238800048828125, -0.0256805419921875, -0.0087432861328125, -0.0190887451171875, -0.044036865234375, 0.0028247833251953125, -0.054443359375, -0.027496337890625, 0.01261138916015625, -0.05322265625, 0.007598876953125, 0.02142333984375, 0.026885986328125, -0.035369873046875, 0.0086517333984375, -0.0214996337890625, 0.006103515625, 0.0008220672607421875, 0.00701904296875, 0.0091705322265625, 0.0933837890625, -0.0171051025390625, 0.0088653564453125, -0.007289886474609375, 0.03253173828125, -0.0474853515625, -0.003711700439453125, 0.03656005859375, -0.0007734298706054688, 0.0101318359375, -0.0188751220703125, 0.034820556640625, 0.0094146728515625, 0.01251220703125, 0.0114593505859375, -0.01190185546875, 0.0021495819091796875, 0.012176513671875, -0.01291656494140625, -0.0323486328125, 0.020843505859375, -0.025665283203125, 0.034637451171875, 0.016693115234375, 0.00421905517578125, 0.00707244873046875, -0.005828857421875, 0.0118865966796875, -0.0207977294921875, -0.01233673095703125, -0.0266571044921875, 0.006534576416015625, 0.053802490234375, 0.0215911865234375, -0.02813720703125, -0.04425048828125, 0.006923675537109375, -0.057891845703125, -0.016265869140625, 0.005405426025390625, -0.01102447509765625, 0.005794525146484375, -0.026214599609375, -0.023895263671875, 0.0201873779296875, -0.0250091552734375, -0.00019097328186035156, -0.01448822021484375, -0.027923583984375, -0.0299835205078125, 0.0079345703125, -0.044036865234375, 0.0120086669921875, 0.002292633056640625, -0.0164031982421875, 0.046966552734375, -0.0170440673828125, -0.0172119140625, -0.006317138671875, -0.00254058837890625, -0.0302276611328125, -0.0186920166015625, -0.01290130615234375, -0.03753662109375, -0.01479339599609375, 0.00914764404296875, -0.038818359375, 0.0025634765625, -0.027740478515625, -0.0277099609375, 0.046966552734375, 0.07330322265625, -0.007274627685546875, -0.005947113037109375, -0.0202484130859375, -0.0355224609375, -0.01311492919921875, -0.028350830078125, 0.0058135986328125, 0.035064697265625, 0.0030040740966796875, -0.0107421875, 0.007965087890625, 0.01215362548828125, -0.015594482421875, -0.037689208984375, -0.0191192626953125, -0.040924072265625, -0.01459503173828125, 0.032501220703125, -0.0236358642578125, -0.00826263427734375, 0.00908660888671875, -0.006984710693359375, -0.005519866943359375, 0.009063720703125, 0.032318115234375, -0.0555419921875, 0.020233154296875, -0.001495361328125, -0.03826904296875, -0.0162811279296875, 0.00849151611328125, 0.07861328125, -0.042572021484375, -0.01384735107421875, 0.04193115234375, -0.0059661865234375, -0.007678985595703125, -0.04669189453125, -0.021453857421875, 0.0200042724609375, -0.006526947021484375, 0.01397705078125, -0.00893402099609375, -0.0380859375, 0.0207061767578125, -0.004009246826171875, -0.0118865966796875, 0.046905517578125, 0.034881591796875, -0.005641937255859375, -0.035247802734375, -0.10791015625, 0.0289764404296875, -0.0175933837890625, -0.021331787109375, 0.019805908203125, 0.049468994140625, 0.0272674560546875, 0.013824462890625, -0.0016775131225585938, 0.0045318603515625, 0.02569580078125, 0.052947998046875, 0.01265716552734375, -0.0182952880859375, 0.01361846923828125, -0.037261962890625, -0.021820068359375, -0.01151275634765625, -0.0024776458740234375, 0.0222625732421875, 0.032012939453125, -0.014373779296875, 0.003826141357421875, 0.0239410400390625, -0.00911712646484375, -0.018218994140625, 0.0172271728515625, 0.01806640625, 0.01256561279296875, 0.0260009765625, 0.007053375244140625, -0.0308837890625, -0.02642822265625, 0.09686279296875, -0.053863525390625, -0.02508544921875, -0.0122833251953125, 0.034271240234375, 0.03521728515625, 0.006679534912109375, 0.034515380859375, 0.016326904296875, 0.00884246826171875, -0.018646240234375, 0.00428009033203125, -0.007781982421875, -0.0268096923828125, 0.0167083740234375, -0.005924224853515625, 0.00017702579498291016, 0.0136871337890625, 0.05548095703125, -0.037322998046875, -0.0136566162109375, -0.0318603515625, -0.07110595703125, -0.06292724609375, -0.0157012939453125, -0.0024127960205078125, -0.046783447265625, 0.005466461181640625, 0.0306396484375, -0.01052093505859375, -0.021453857421875, -0.006862640380859375, -0.00406646728515625, -0.0201568603515625, -0.045013427734375, 0.04168701171875, -0.01334381103515625, 0.03973388671875, -0.032684326171875, -0.03253173828125, -0.00969696044921875, -0.0160369873046875, 0.0369873046875, -0.018096923828125, 0.00261688232421875, -0.0052337646484375, 0.051361083984375, 0.01192474365234375, 0.023193359375, -0.0034275054931640625, 0.039947509765625, -0.0014476776123046875, -0.051300048828125, -0.00824737548828125, -0.034027099609375, -0.061279296875, -0.00847625732421875, 0.079833984375, 0.03021240234375, 0.021820068359375, -0.0139007568359375, -0.000026464462280273438, 0.0633544921875, -0.00963592529296875, -0.0007166862487792969, -0.0074920654296875, -0.01119232177734375, 0.046051025390625, -0.01251983642578125, 0.033599853515625, 0.0024471282958984375, -0.017120361328125, -0.02392578125, 0.04168701171875, -0.0025157928466796875, 0.027435302734375, 0.0023403167724609375, -0.00786590576171875, -0.014617919921875, -0.002040863037109375, 0.01328277587890625, -0.01549530029296875, 0.00531005859375, -0.017974853515625, 0.0226898193359375, 0.01003265380859375, 0.0010318756103515625, -0.0254364013671875, 0.01319122314453125, -0.0179290771484375, -0.00027871131896972656, 0.0618896484375, 0.07537841796875, 0.039306640625, -0.0458984375, -0.044921875, 0.0450439453125, 0.062286376953125, -0.022003173828125, -0.00647735595703125, -0.04937744140625, -0.01070404052734375, 0.0177154541015625, -0.0296173095703125, 0.0032711029052734375, 0.0158843994140625, 0.01331329345703125, -0.007022857666015625, 0.040802001953125, -0.01177215576171875, -0.011077880859375, 0.031890869140625, -0.016754150390625, -0.034393310546875, -0.0660400390625, -0.0770263671875, 0.07037353515625, -0.0843505859375, -0.0196380615234375, 0.07086181640625, -0.01381683349609375, 0.0289306640625, 0.00605010986328125, 0.016632080078125, -0.020599365234375, 0.0185089111328125, -0.00666046142578125, -0.00670623779296875, -0.051116943359375, 0.01044464111328125, 0.0172882080078125, 0.01306915283203125, -0.005329132080078125, -0.006011962890625, 0.0039520263671875, 0.0070953369140625, -0.0028820037841796875, -0.01385498046875, -0.08648681640625, -0.07080078125, -0.00815582275390625, -0.023956298828125, -0.00705718994140625, 0.02783203125, -0.0161285400390625, 0.0277862548828125, -0.048919677734375, -0.005107879638671875, -0.049041748046875, -0.045867919921875, -0.0523681640625, 0.0277252197265625, -0.01303863525390625, 0.01549530029296875, -0.0112762451171875, 0.145751953125, 0.007144927978515625, -0.08935546875, -0.0298614501953125, -0.02447509765625, -0.0226287841796875, 0.033782958984375, -0.0623779296875, 0.022796630859375, 0.0147552490234375, 0.0001895427703857422, -0.060516357421875, -0.034149169921875, 0.048126220703125, -0.02691650390625, 0.030670166015625, -0.0163726806640625, 0.04339599609375, 0.045257568359375, -0.0594482421875, 0.0126190185546875, 0.048675537109375, -0.0307159423828125, -0.0121002197265625, -0.016021728515625, -0.04852294921875, 0.00922393798828125, 0.0013818740844726562, 0.0033721923828125, -0.006862640380859375, 0.017913818359375, -0.0008382797241210938, 0.03948974609375, 0.009033203125, -0.02874755859375, 0.020233154296875, -0.0006299018859863281, 0.005123138427734375, 0.007198333740234375, -0.04766845703125, -0.054840087890625, 0.00789642333984375, -0.0467529296875, -0.0081787109375, -0.0076751708984375, 0.0029659271240234375, -0.0019483566284179688, -0.055267333984375, 0.0345458984375, -0.02392578125, 0.037872314453125, -0.05706787109375, -0.033172607421875, -0.0347900390625, 0.08599853515625, -0.014984130859375, -0.0270538330078125, -0.01641845703125, 0.0111541748046875, -0.0214080810546875, -0.03509521484375, 0.0026378631591796875, -0.01442718505859375, -0.0029964447021484375, -0.024261474609375, -0.03631591796875, -0.004711151123046875, -0.01029205322265625, -0.09906005859375, 0.0013685226440429688, -0.0304718017578125, -0.0030651092529296875, -0.041656494140625, 0.034912109375, -0.0099334716796875, 0.006175994873046875, -0.0278472900390625, 0.025970458984375, -0.06500244140625, -0.0660400390625, -0.0118560791015625, 0.0129852294921875, 0.005157470703125, -0.01007843017578125, -0.00910186767578125, -0.0167388916015625, 0.0160980224609375, 0.0477294921875, -0.0023250579833984375, -0.0030307769775390625, -0.034881591796875, 0.0066986083984375, -0.004886627197265625, -0.006397247314453125, -0.0021953582763671875, -0.021240234375, -0.01158905029296875, -0.013092041015625, 0.0186767578125, -0.0205535888671875, -0.0268402099609375, -0.0003833770751953125, -0.0217742919921875, -0.0008215904235839844, 0.0062713623046875, -0.0039520263671875, 0.0168304443359375, -0.01029205322265625, -0.004791259765625, -0.0164337158203125, -0.01043701171875, 0.04119873046875, -0.006763458251953125, -0.0247955322265625, -0.01157379150390625, 0.05908203125, 0.0182342529296875, -0.01739501953125, -0.0028324127197265625, 0.00560760498046875, 0.0272064208984375, 0.0213470458984375, 0.03741455078125, 0.039276123046875, -0.0019311904907226562, -0.0162200927734375, 0.032318115234375, -0.0199432373046875, -0.00994110107421875, 0.035491943359375, 0.0061492919921875, -0.01343536376953125, -0.002567291259765625, -0.022735595703125, 0.032073974609375, 0.041534423828125, 0.007717132568359375, -0.005329132080078125, 0.003326416015625, 0.0096893310546875, -0.0159912109375, 0.0008149147033691406, -0.006591796875, -0.01360321044921875, 0.007053375244140625, -0.0023097991943359375, -0.022430419921875, -0.00019824504852294922, 0.0023899078369140625, -0.032806396484375, -0.0228118896484375, 0.00931549072265625, -0.02081298828125, 0.0015659332275390625, 0.004817962646484375, 0.031646728515625, -0.0041961669921875, 0.024658203125, -0.0205078125, -0.0210418701171875, 0.07958984375, -0.00927734375, -0.0836181640625, 0.0279998779296875, -0.022857666015625, 0.08233642578125, 0.0518798828125, -0.01502227783203125, 0.034423828125, -0.01806640625, -0.03057861328125, 0.0203094482421875, 0.0009365081787109375, -0.04400634765625, -0.03643798828125, -0.00021314620971679688, 0.0203857421875, -0.010528564453125, 0.04437255859375, 0.024017333984375, 0.01334381103515625, 0.026519775390625, -0.020263671875, 0.048980712890625, 0.045867919921875, -0.0160675048828125, 0.0158538818359375, 0.03857421875, -0.023895263671875, -0.0240478515625, 0.00391387939453125, -0.036346435546875, -0.0557861328125, -0.007350921630859375, 0.04095458984375, -0.01739501953125, 0.0254669189453125, 0.030029296875, 0.029541015625, -0.019378662109375, 0.03729248046875, 0.03948974609375, -0.044769287109375, -0.017791748046875, 0.00571441650390625, 0.0198822021484375, -0.003231048583984375, -0.018157958984375, -0.015533447265625, -0.051025390625, 0.004344940185546875, -0.0021800994873046875, -0.0210113525390625, 0.01019287109375, -0.0020656585693359375, -0.005970001220703125, -0.04791259765625, -0.03515625, 0.07177734375, 0.044952392578125, -0.0281219482421875, -0.0195465087890625, 0.0220794677734375, -0.032073974609375, 0.01074981689453125, -0.0038280487060546875, -0.01068878173828125, 0.030364990234375, 0.022369384765625, 0.02471923828125, -0.001461029052734375, -0.048553466796875, 0.01190948486328125, -0.0404052734375, -0.00926971435546875, -0.006763458251953125, -0.029571533203125, -0.0374755859375, -0.0283203125, 0.03948974609375, 0.0130462646484375, 0.0236358642578125, -0.00923919677734375, -0.056182861328125, 0.035369873046875, 0.048095703125, 0.045867919921875, 0.0029926300048828125, 0.07275390625, 0.00676727294921875, 0.04034423828125, 0.040557861328125, 0.042633056640625, -0.016448974609375, -0.0293731689453125, -0.005283355712890625, -0.04278564453125, -0.011566162109375, 0.0013589859008789062, 0.0426025390625, 0.024017333984375, -0.00569915771484375, 0.007495880126953125, -0.027191162109375, -0.0026702880859375, -0.0016374588012695312, -0.0016651153564453125, 0.0709228515625, 0.028076171875, -0.01476287841796875, 0.039642333984375, -0.006244659423828125, 0.05755615234375, -0.0055084228515625, -0.0360107421875, 0.047515869140625, -0.028106689453125, 0.055084228515625, 0.025543212890625, -0.045196533203125, 0.059906005859375, 0.04730224609375, 0.004688262939453125, 0.038909912109375, 0.009002685546875, 0.014068603515625, 0.01009368896484375, -0.05609130859375, -0.047821044921875, 0.02142333984375, 0.013702392578125, -0.006587982177734375, 0.00760650634765625, 0.0294036865234375, -0.004505157470703125, 0.0184478759765625, 0.04669189453125, 0.072265625, -0.049896240234375, -0.0039520263671875, 0.0243072509765625, -0.03143310546875, 0.00597381591796875, -0.0211181640625, 0.005878448486328125, 0.0179290771484375, 0.04193115234375, -0.0124664306640625, -0.03375244140625, 0.017608642578125, -0.0084381103515625, 0.0012454986572265625, -0.01020050048828125, 0.060577392578125, 0.0234832763671875, -0.048309326171875, 0.01727294921875, 0.04364013671875, -0.0036678314208984375, -0.007160186767578125, -0.0176544189453125, -0.0100860595703125, -0.050048828125, -0.1005859375, -0.07183837890625, -0.0439453125, -0.028350830078125, 0.00856781005859375, 0.0186004638671875, 0.05535888671875, 0.040191650390625, 0.01103973388671875, -0.0089263916015625, -0.00017070770263671875, 0.028228759765625, -0.03961181640625, -0.0340576171875, 0.0249481201171875, 0.0401611328125, -0.040374755859375, 0.042236328125, -0.000591278076171875, -0.050323486328125, -0.012237548828125, -0.051727294921875, 0.0540771484375, 0.005512237548828125, -0.0248870849609375, 0.004291534423828125, 0.028411865234375, -0.000125885009765625, -0.01239013671875, 0.048736572265625, -0.0146331787109375, 0.042877197265625, -0.01287078857421875, 0.021026611328125, -0.034332275390625, -0.0310821533203125, -0.051025390625, 0.080810546875, -0.033172607421875, 0.034393310546875, -0.005878448486328125, 0.027435302734375, 0.01471710205078125, 0.037017822265625, -0.0251617431640625, 0.052703857421875, -0.0068511962890625, 0.0185089111328125, -0.036407470703125, 0.0024089813232421875, -0.0178070068359375, 0.01629638671875, -0.01453399658203125, -0.0049896240234375, -0.0005731582641601562, -0.02227783203125, 0.01012420654296875, 0.03485107421875, 0.00811004638671875, -0.004886627197265625, -0.005268096923828125, 0.05548095703125, 0.0296783447265625, -0.085205078125, 0.01522064208984375, -0.012969970703125, -0.004940032958984375, 0.021209716796875, 0.0184783935546875, 0.00698089599609375, 0.0243072509765625, 0.002155303955078125, -0.05401611328125, 0.01922607421875, 0.042999267578125, 0.0033893585205078125, 0.017059326171875, 0.04107666015625, 0.0615234375, -0.038818359375, 0.0152587890625, -0.03350830078125, 0.06195068359375, 0.0009431838989257812, 0.004749298095703125, 0.01071929931640625, 0.0141754150390625, -0.0275421142578125, 0.01715087890625, 0.0065155029296875, 0.0255584716796875, -0.0179290771484375, 0.034515380859375, 0.036956787109375, 0.01065826416015625, 0.0122833251953125, 0.08880615234375, 0.00893402099609375, 0.019317626953125, -0.05609130859375, -0.02325439453125, 0.0096435546875, -0.0020923614501953125, -0.005523681640625, -0.0095672607421875, -0.00691986083984375, 0.0273895263671875, 0.0399169921875, -0.060516357421875, 0.002361297607421875, 0.019927978515625, 0.0089569091796875, -0.0205078125, -0.0255584716796875, -0.0015201568603515625, 0.002960205078125, 0.0196533203125, -0.034820556640625, 0.0194091796875, 0.023406982421875, -0.0004048347473144531, -0.0039215087890625, -0.04229736328125, 0.017181396484375, 0.00562286376953125, 0.007007598876953125, -0.00818634033203125, 0.004611968994140625, -0.0322265625, -0.03619384765625, -0.020263671875, 0.0509033203125, 0.01514434814453125, 0.0024166107177734375, 0.0169219970703125, 0.007160186767578125, -0.0129852294921875, -0.0132293701171875, 0.0206298828125, -0.0184326171875, 0.00506591796875, -0.0237884521484375, 0.0105438232421875, 0.0265655517578125, -0.0044403076171875, -0.0045623779296875, 0.0004930496215820312, 0.06365966796875, 0.019805908203125, 0.0196990966796875, 0.0235748291015625, 0.007152557373046875, 0.051055908203125, 0.053436279296875, 0.01959228515625, 0.065185546875, -0.034576416015625, 0.009063720703125, 0.0092315673828125, -0.09136962890625, -0.004718780517578125, 0.02630615234375, -0.0233612060546875, 0.0105743408203125, 0.037506103515625, -0.0184173583984375, 0.0271148681640625, 0.00978851318359375, 0.01203155517578125, -0.0276947021484375, 0.0205841064453125, -0.0053863525390625, -0.05023193359375, -0.0474853515625, -0.005268096923828125, 0.038238525390625, -0.003925323486328125, 0.0545654296875, -0.00015437602996826172, 0.01409149169921875, -0.0252838134765625, 0.058441162109375, -0.0843505859375, -0.01447296142578125, 0.0019931793212890625, -0.019317626953125, 0.01490020751953125, 0.012603759765625, -0.034912109375, 0.05706787109375, -0.00908660888671875, 0.038818359375, 0.03216552734375, -0.052581787109375, 0.00905609130859375, 0.028472900390625, 0.0157470703125, -0.040191650390625, -0.051177978515625, -0.02197265625, 0.03118896484375, -0.019287109375, -0.008514404296875, -0.0148773193359375, 0.06475830078125, -0.052642822265625, -0.025482177734375, -0.0008664131164550781, -0.0689697265625, -0.03643798828125, 0.014984130859375, -0.016815185546875, 0.0145111083984375, -0.0184478759765625, -0.01861572265625, 0.00789642333984375, 0.01236724853515625, -0.024871826171875, 0.01532745361328125, 0.0003833770751953125, -0.0004520416259765625, 0.06829833984375, 0.0858154296875, 0.0182952880859375, 0.0297393798828125, 0.0028171539306640625, -0.0244140625, 0.0307769775390625, -0.0035991668701171875, -0.039031982421875, -0.031951904296875, -0.005725860595703125, -0.01088714599609375, -0.018707275390625, -0.0601806640625, -0.0186767578125, 0.004131317138671875, 0.0013561248779296875, -0.0220184326171875, -0.0287017822265625, -0.0063934326171875, -0.0167236328125, 0.05419921875, -0.059478759765625, 0.00714111328125, 0.0257415771484375, 0.03704833984375, -0.05560302734375, 0.0235443115234375, -0.00421905517578125, -0.035552978515625, -0.003505706787109375, 0.0287933349609375, 0.059051513671875, -0.042236328125, -0.07037353515625, 0.023681640625, 0.023284912109375, 0.041900634765625, -0.008331298828125, -0.0218505859375, 0.0174560546875, -0.0078887939453125, -0.00946044921875, -0.07012939453125, 0.0211944580078125, -0.09722900390625, -0.017364501953125, -0.0142669677734375, 0.01363372802734375, 0.034149169921875, -0.031341552734375, -0.080810546875, 0.0311431884765625, -0.0120391845703125, -0.03466796875, -0.041107177734375, 0.01348876953125, -0.0244903564453125, 0.047607421875, 0.0014238357543945312, -0.0172882080078125, -0.00537109375, 0.0272674560546875, 0.0227203369140625, -0.00396728515625, 0.056427001953125, 0.028076171875, -0.030975341796875, 0.006793975830078125, 0.0023975372314453125, -0.0117950439453125, 0.004810333251953125, 0.01139068603515625, -0.02960205078125, 0.0261077880859375, -0.035888671875, -0.019012451171875, -0.01409149169921875, 0.0169677734375, 0.004421234130859375, -0.00980377197265625, 0.01152801513671875, 0.004268646240234375, 0.015350341796875, 0.034423828125, 0.004772186279296875, -0.040191650390625, -0.0234832763671875, -0.046051025390625, -0.029754638671875, -0.0076751708984375, 0.00839996337890625, -0.0241241455078125, 0.018951416015625, -0.0184326171875, 0.01226806640625, -0.019775390625, -0.028656005859375, -0.03167724609375, -0.0301971435546875, -0.03607177734375, 0.01617431640625, -0.0293121337890625, -0.0399169921875, 0.034881591796875, -0.01678466796875, -0.006031036376953125, 0.0202789306640625, 0.0207977294921875, 0.0023403167724609375, 0.06756591796875, 0.036407470703125, 0.038909912109375, -0.0269775390625, -0.022552490234375, 0.041168212890625, 0.0195159912109375, 0.0167999267578125, -0.020751953125, 0.0039215087890625, -0.005397796630859375, -0.0053863525390625, -0.01861572265625, 0.0241851806640625, 0.00142669677734375, -0.01337432861328125, 0.01837158203125, -0.007427215576171875, 0.029632568359375, -0.001743316650390625, 0.0240020751953125, 0.03765869140625, -0.0268707275390625, 0.0628662109375, -0.0157318115234375, -0.01277923583984375, 0.00620269775390625, 0.000011801719665527344, -0.0298614501953125, 0.057464599609375, -0.00118255615234375, 0.01277923583984375, 0.01537322998046875 ]
69808a3bde58c0b117ae481856e97e5bf4f27842
Wordpress Stackexchange Q: Insert HTML just after tag I am using the Wordpress theme Twenty Twelve (a child of it to be precise). I want to know how to insert some HTML just after body opening, in just functions.php and not using header.php. Is that possible? A: A very, very, very dirty solution would be: /* Insert tracking code or other stuff directly after BODY opens */ add_filter('body_class', 'wps_add_tracking_body', PHP_INT_MAX); // make sure, that's the last filter in the queue function wps_add_tracking_body($classes) { // close <body> tag, insert stuff, open some other tag with senseless variable $classes[] = '"><script> /* do whatever */ </script><noscript></noscript novar="'; return $classes; }
Q: Insert HTML just after tag I am using the Wordpress theme Twenty Twelve (a child of it to be precise). I want to know how to insert some HTML just after body opening, in just functions.php and not using header.php. Is that possible? A: A very, very, very dirty solution would be: /* Insert tracking code or other stuff directly after BODY opens */ add_filter('body_class', 'wps_add_tracking_body', PHP_INT_MAX); // make sure, that's the last filter in the queue function wps_add_tracking_body($classes) { // close <body> tag, insert stuff, open some other tag with senseless variable $classes[] = '"><script> /* do whatever */ </script><noscript></noscript novar="'; return $classes; } A: Twenty Twelve does not have any hooks that fire immediately after the opening <body> tag. Therefore you in your child theme which extends the parent Twenty Twelve theme, copy the header.php across to your child theme directory. Open the header.php file in your child theme and just after the opening body tag add an action hook which you can then hook onto via your functions.php file. For example in your twenty-twelve-child/header.php file: <body <?php body_class(); ?>> <?php do_action('after_body_open_tag'); ?> Then in your twenty-twelve-child/functions.php file: function custom_content_after_body_open_tag() { ?> <div>My Custom Content</div> <?php } add_action('after_body_open_tag', 'custom_content_after_body_open_tag'); This will then render in your HTML as: <body> <div>My Custom Content</div> Recommended reading: https://developer.wordpress.org/reference/functions/do_action/ UPDATE: JULY, 2019 As commented by Junaid Bhura from WordPress 5.2 a new theme helper function wp_body_open has been introduced that is intended for use as per the likes of other helper functions wp_head and wp_footer. For example: <html> <head> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php wp_body_open(); ?> <!-- BODY CONTENT HERE --> <?php wp_footer(); ?> </body> </html> In your theme functions.php file (or suitably elsewhere) function custom_content_after_body_open_tag() { ?> <div>My Custom Content</div> <?php } add_action('wp_body_open', 'custom_content_after_body_open_tag'); IMPORTANT You should ensure that the hook exists within the theme that you are wanting to inject-into as this may not be widely adopted by the community, yet. If NOT, you will still need to follow the principle of extending the theme with a child theme with the exception that YOU would use: <?php wp_body_open(); ?> ...instead of OR in addition to: <?php do_action('after_body_open_tag'); ?> Recommended reading: https://developer.wordpress.org/reference/functions/wp_body_open/ A: Add this code in functions.php function my_function() { echo'<div id="from_my_function"></div>'; } add_action('wp_head', 'my_function');
wordpress
{ "language": "en", "length": 379, "provenance": "stackexchange_00019.jsonl.gz:463765", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/219931" }
[ 0.07501220703125, 0.006275177001953125, 0.006145477294921875, -0.02850341796875, 0.0257720947265625, -0.036163330078125, 0.055328369140625, -0.030426025390625, -0.016326904296875, -0.004520416259765625, -0.03472900390625, 0.01470947265625, -0.00559234619140625, -0.02947998046875, 0.034088134765625, -0.034088134765625, 0.0255279541015625, -0.040191650390625, 0.0187530517578125, -0.0022449493408203125, -0.000713348388671875, 0.0096893310546875, 0.043731689453125, -0.016265869140625, -0.0089263916015625, 0.0132598876953125, 0.0243682861328125, -0.0037403106689453125, -0.016815185546875, 0.005161285400390625, 0.006805419921875, -0.01552581787109375, 0.04510498046875, 0.02471923828125, -0.08013916015625, 0.0545654296875, -0.036651611328125, 0.0252532958984375, -0.0196990966796875, 0.03057861328125, -0.006103515625, 0.0168914794921875, 0.050567626953125, 0.04766845703125, 0.001720428466796875, -0.029632568359375, 0.00992584228515625, -0.051666259765625, -0.00983428955078125, -0.01012420654296875, 0.0369873046875, 0.0272064208984375, 0.060760498046875, -0.027618408203125, -0.012481689453125, 0.0108184814453125, -0.010223388671875, -0.0055084228515625, 0.000010371208190917969, 0.0184783935546875, 0.0010194778442382812, 0.0072479248046875, -0.003742218017578125, -0.0171966552734375, 0.036895751953125, -0.00461578369140625, 0.02471923828125, 0.0350341796875, -0.07470703125, 0.00016772747039794922, 0.042236328125, -0.056915283203125, -0.0180206298828125, -0.016571044921875, 0.022918701171875, 0.0133056640625, 0.00494384765625, 0.003658294677734375, -0.00757598876953125, 0.03558349609375, 0.037811279296875, 0.0050201416015625, 0.03948974609375, -0.0623779296875, 0.0377197265625, -0.03338623046875, -0.0069427490234375, -0.002964019775390625, -0.0209503173828125, -0.0032596588134765625, -0.04345703125, 0.01288604736328125, 0.036712646484375, -0.0269775390625, -0.058319091796875, 0.005084991455078125, -0.031036376953125, 0.0230865478515625, -0.00974273681640625, 0.06536865234375, -0.0149383544921875, -0.02252197265625, 0.05889892578125, -0.0677490234375, 0.037109375, 0.051300048828125, -0.0256195068359375, -0.0633544921875, 0.036224365234375, 0.00415802001953125, 0.01378631591796875, 0.03643798828125, 0.00621795654296875, -0.0095672607421875, -0.0380859375, 0.005901336669921875, -0.007648468017578125, -0.00905609130859375, 0.0132293701171875, 0.0021038055419921875, -0.01641845703125, 0.01248931884765625, -0.0094451904296875, 0.007808685302734375, -0.0095367431640625, -0.01140594482421875, -0.007720947265625, -0.0059356689453125, -0.031341552734375, -0.050567626953125, -0.0205841064453125, 0.05145263671875, 0.04986572265625, 0.049468994140625, -0.004566192626953125, 0.0111846923828125, 0.01511383056640625, -0.0233917236328125, 0.003936767578125, 0.027099609375, -0.039642333984375, -0.0706787109375, -0.010772705078125, -0.02923583984375, -0.0206298828125, 0.0269775390625, 0.01491546630859375, 0.0243377685546875, -0.006374359130859375, -0.08868408203125, 0.03411865234375, -0.0262451171875, 0.0170135498046875, 0.00121307373046875, -0.03631591796875, -0.05657958984375, -0.036529541015625, -0.0235748291015625, 0.060302734375, -0.0225830078125, -0.031982421875, -0.005214691162109375, 0.0292510986328125, -0.055450439453125, -0.03143310546875, -0.01230621337890625, -0.06005859375, -0.0081634521484375, 0.0245208740234375, 0.01507568359375, -0.0042266845703125, -0.022064208984375, 0.0099639892578125, 0.01108551025390625, -0.011444091796875, 0.031982421875, 0.0386962890625, -0.004009246826171875, 0.02734375, 0.0040130615234375, -0.0246429443359375, -0.024749755859375, 0.1044921875, -0.0574951171875, -0.062225341796875, 0.036712646484375, 0.0177001953125, 0.10247802734375, -0.001087188720703125, 0.028778076171875, 0.011199951171875, -0.005847930908203125, 0.0255279541015625, 0.0012760162353515625, 0.004589080810546875, -0.0418701171875, -0.0256500244140625, -0.0099639892578125, -0.036346435546875, 0.00887298583984375, -0.034423828125, 0.022552490234375, 0.01068878173828125, 0.03216552734375, 0.0241851806640625, 0.0207061767578125, -0.00864410400390625, 0.034210205078125, -0.019500732421875, -0.0312042236328125, 0.00920867919921875, -0.03985595703125, 0.028228759765625, -0.071044921875, -0.04302978515625, 0.01861572265625, -0.0297393798828125, 0.05303955078125, -0.021484375, 0.057861328125, -0.0023670196533203125, -0.049896240234375, 0.0142669677734375, -0.0003826618194580078, 0.06097412109375, 0.0117950439453125, -0.04522705078125, -0.0201568603515625, -0.0059661865234375, 0.02569580078125, -0.08197021484375, 0.06536865234375, 0.007289886474609375, -0.0133514404296875, -0.057281494140625, -0.0090179443359375, -0.039794921875, -0.0322265625, -0.01361846923828125, 0.055572509765625, 0.04693603515625, 0.032196044921875, 0.009185791015625, 0.00455474853515625, 0.02703857421875, -0.0655517578125, 0.0120849609375, -0.0194854736328125, 0.010345458984375, 0.023162841796875, 0.003753662109375, -0.006435394287109375, 0.0174713134765625, -0.07421875, 0.0198516845703125, 0.0262603759765625, -0.005046844482421875, -0.01258087158203125, 0.0027256011962890625, -0.02044677734375, 0.0277862548828125, 0.0007085800170898438, -0.044952392578125, 0.0023632049560546875, 0.041961669921875, -0.004962921142578125, 0.038665771484375, 0.0146636962890625, -0.01367950439453125, -0.01253509521484375, 0.0085601806640625, 0.013275146484375, -0.00203704833984375, 0.026092529296875, -0.043426513671875, 0.0018186569213867188, -0.01511383056640625, 0.017852783203125, -0.017242431640625, -0.009765625, -0.02337646484375, 0.01491546630859375, -0.00923919677734375, -0.0188446044921875, -0.01134490966796875, 0.006134033203125, 0.00616455078125, -0.01486968994140625, -0.0214691162109375, -0.006275177001953125, 0.01280975341796875, 0.032501220703125, -0.042144775390625, 0.0426025390625, -0.01480865478515625, -0.00847625732421875, 0.0232391357421875, -0.0212249755859375, 0.02349853515625, -0.0127410888671875, 0.05181884765625, 0.05047607421875, -0.0152587890625, 0.0017538070678710938, -0.01093292236328125, -0.0180206298828125, 0.0160064697265625, -0.027099609375, -0.04083251953125, -0.03350830078125, -0.0207366943359375, 0.01065826416015625, 0.0282440185546875, 0.004322052001953125, 0.027862548828125, -0.0297088623046875, 0.0203704833984375, 0.010986328125, -0.06622314453125, -0.068603515625, 0.0082244873046875, -0.04754638671875, -0.004734039306640625, 0.0184783935546875, -0.03253173828125, -0.007167816162109375, 0.04998779296875, -0.0142822265625, -0.01953125, -0.038330078125, -0.020599365234375, -0.0526123046875, -0.050048828125, 0.02764892578125, -0.0002586841583251953, -0.00457763671875, 0.00433349609375, 0.036102294921875, 0.0010824203491210938, -0.040618896484375, 0.00164794921875, -0.00615692138671875, -0.02130126953125, -0.01364898681640625, -0.00887298583984375, -0.025482177734375, -0.00434112548828125, 0.0004379749298095703, -0.04022216796875, -0.0157623291015625, 0.032684326171875, -0.0222320556640625, -0.00982666015625, -0.0235748291015625, -0.00626373291015625, 0.048736572265625, 0.004322052001953125, -0.0303497314453125, 0.0291900634765625, -0.0467529296875, -0.00003528594970703125, 0.046539306640625, -0.01194000244140625, -0.0670166015625, 0.0020389556884765625, -0.040557861328125, -0.004222869873046875, -0.025390625, -0.005489349365234375, 0.0024204254150390625, -0.005992889404296875, 0.005157470703125, 0.0186614990234375, -0.0279693603515625, -0.017333984375, 0.0020122528076171875, -0.01274871826171875, -0.0099945068359375, 0.055450439453125, -0.003200531005859375, 0.042755126953125, -0.027130126953125, 0.032958984375, -0.0875244140625, -0.04461669921875, 0.014739990234375, -0.024810791015625, 0.048828125, -0.044281005859375, -0.01471710205078125, -0.018798828125, 0.0875244140625, -0.0848388671875, 0.0034637451171875, 0.0184326171875, 0.030975341796875, -0.0302886962890625, -0.043609619140625, -0.09344482421875, -0.018035888671875, -0.01080322265625, 0.037750244140625, -0.01314544677734375, 0.0206756591796875, -0.044921875, -0.0171051025390625, -0.00826263427734375, -0.0269775390625, 0.02325439453125, -0.019866943359375, -0.01482391357421875, 0.01480865478515625, -0.0220489501953125, -0.0179901123046875, -0.00547027587890625, -0.0216064453125, -0.04022216796875, 0.005279541015625, -0.044281005859375, 0.0276336669921875, 0.0266571044921875, -0.0121002197265625, -0.017303466796875, 0.0269775390625, -0.0016813278198242188, 0.0040130615234375, 0.0439453125, 0.040496826171875, 0.00994873046875, -0.038177490234375, 0.01125335693359375, -0.050445556640625, -0.015869140625, -0.006877899169921875, 0.002960205078125, 0.043365478515625, -0.01261138916015625, -0.00569915771484375, 0.0200347900390625, -0.0179901123046875, 0.01357269287109375, -0.0418701171875, -0.02069091796875, 0.031646728515625, -0.0185089111328125, 0.01285552978515625, -0.043914794921875, 0.0098876953125, 0.0355224609375, -0.016754150390625, -0.0177764892578125, -0.0016889572143554688, 0.051025390625, 0.01056671142578125, -0.011627197265625, 0.0030803680419921875, 0.00762176513671875, 0.0440673828125, -0.007801055908203125, 0.0126800537109375, 0.00102996826171875, -0.044891357421875, 0.039581298828125, 0.0077667236328125, 0.01708984375, -0.039886474609375, 0.072509765625, -0.00089263916015625, -0.01468658447265625, 0.0240936279296875, 0.00408935546875, -0.0016279220581054688, -0.00904083251953125, -0.0220794677734375, 0.005947113037109375, 0.0177764892578125, 0.004383087158203125, -0.025482177734375, 0.045928955078125, -0.00690460205078125, -0.0210418701171875, -0.0017919540405273438, 0.06610107421875, 0.0208282470703125, 0.046875, -0.00778961181640625, 0.02655029296875, 0.020050048828125, 0.001659393310546875, 0.006641387939453125, -0.025726318359375, -0.0003237724304199219, 0.0279388427734375, -0.007701873779296875, -0.017181396484375, -0.0005159378051757812, -0.0194091796875, 0.044158935546875, 0.01157379150390625, -0.00933837890625, -0.02215576171875, -0.01462554931640625, 0.0302581787109375, -0.015838623046875, -0.0029811859130859375, 0.0029754638671875, 0.007770538330078125, 0.0291595458984375, 0.0203399658203125, -0.0276947021484375, 0.020172119140625, -0.005275726318359375, -0.0218658447265625, -0.0008044242858886719, -0.021575927734375, 0.0283050537109375, 0.0034275054931640625, -0.0270233154296875, 0.025299072265625, -0.01715087890625, 0.040740966796875, -0.0058135986328125, 0.033172607421875, 0.005218505859375, 0.00341796875, 0.0170745849609375, -0.00514984130859375, 0.00921630859375, -0.0235443115234375, 0.0203399658203125, 0.00962066650390625, 0.0098724365234375, -0.018829345703125, -0.0294952392578125, 0.034423828125, -0.01861572265625, -0.0162811279296875, 0.0068511962890625, 0.031280517578125, -0.00855255126953125, -0.0017309188842773438, -0.015594482421875, -0.0059661865234375, 0.0274200439453125, 0.0127410888671875, -0.0112152099609375, 0.01108551025390625, 0.0116424560546875, 0.0154571533203125, 0.01369476318359375, -0.028564453125, -0.040496826171875, -0.01212310791015625, -0.008514404296875, -0.0055999755859375, -0.0273895263671875, 0.00005239248275756836, -0.020172119140625, -0.01690673828125, 0.049163818359375, -0.0305328369140625, 0.0275421142578125, -0.0219268798828125, 0.004093170166015625, -0.048065185546875, 0.00850677490234375, 0.0173187255859375, 0.0169525146484375, -0.00547027587890625, -0.00457000732421875, -0.036712646484375, -0.0286102294921875, -0.046722412109375, -0.02935791015625, -0.04925537109375, 0.0017461776733398438, 0.035919189453125, 0.0294952392578125, -0.0288543701171875, -0.0865478515625, 0.003711700439453125, 0.0189208984375, 0.0345458984375, 0.03961181640625, -0.009674072265625, 0.062103271484375, -0.01215362548828125, 0.022186279296875, -0.004650115966796875, 0.0207977294921875, -0.00975799560546875, -0.0142822265625, 0.032257080078125, -0.04931640625, -0.052825927734375, -0.04669189453125, -0.0423583984375, 0.03912353515625, 0.061737060546875, -0.0164031982421875, 0.004245758056640625, -0.006923675537109375, -0.002384185791015625, -0.007038116455078125, -0.0021495819091796875, 0.0255126953125, -0.031829833984375, 0.05548095703125, 0.00347900390625, -0.057037353515625, -0.026763916015625, -0.02813720703125, 0.007293701171875, 0.045654296875, -0.0191192626953125, -0.0167999267578125, -0.0190277099609375, -0.005519866943359375, 0.052734375, 0.0193328857421875, 0.07794189453125, 0.0014638900756835938, 0.03778076171875, 0.060272216796875, 0.0309600830078125, -0.0157470703125, -0.0097198486328125, 0.051788330078125, 0.0115203857421875, -0.0125274658203125, 0.0318603515625, -0.0252685546875, 0.0045623779296875, 0.039764404296875, 0.035400390625, -0.057159423828125, -0.005657196044921875, -0.0303192138671875, -0.016204833984375, 0.0289154052734375, 0.00914764404296875, -0.0125579833984375, -0.055328369140625, 0.073486328125, 0.03179931640625, 0.022552490234375, 0.0430908203125, 0.020721435546875, -0.033233642578125, -0.02490234375, 0.0116729736328125, 0.019866943359375, -0.0216522216796875, 0.0145263671875, 0.0148773193359375, -0.014129638671875, -0.05511474609375, 0.00887298583984375, 0.018646240234375, -0.013458251953125, -0.038604736328125, 0.04315185546875, 0.0191802978515625, 0.0200042724609375, -0.0261688232421875, 0.0036411285400390625, 0.037872314453125, 0.01554107666015625, -0.005306243896484375, -0.0182037353515625, -0.0049591064453125, 0.031829833984375, -0.0159759521484375, 0.0235748291015625, 0.0293426513671875, -0.042144775390625, -0.00214385986328125, 0.004932403564453125, -0.045196533203125, -0.0211639404296875, -0.0113525390625, 0.0008592605590820312, 0.0295257568359375, 0.004154205322265625, -0.025970458984375, 0.0006680488586425781, 0.046875, 0.01611328125, -0.0023784637451171875, 0.033355712890625, -0.0421142578125, 0.00687408447265625, -0.00598907470703125, -0.0018529891967773438, -0.00818634033203125, -0.032318115234375, -0.0848388671875, 0.12353515625, 0.04510498046875, 0.01451873779296875, -0.011444091796875, 0.053192138671875, -0.059417724609375, 0.002979278564453125, -0.04498291015625, 0.07086181640625, -0.00403594970703125, 0.051177978515625, -0.049285888671875, -0.00904083251953125, 0.005901336669921875, 0.0297088623046875, -0.029388427734375, -0.01438140869140625, -0.0012149810791015625, 0.026947021484375, 0.0682373046875, 0.0208740234375, 0.0001361370086669922, 0.0079345703125, -0.0118408203125, 0.01303863525390625, 0.008026123046875, -0.0219879150390625, 0.03375244140625, -0.04315185546875, -0.03155517578125, 0.003658294677734375, -0.0026607513427734375, -0.0017833709716796875, -0.007518768310546875, -0.01157379150390625, -0.00395965576171875, 0.0071868896484375, -0.0214996337890625, 0.006412506103515625, -0.0017557144165039062, 0.07550048828125, 0.039947509765625, -0.02337646484375, -0.051055908203125, -0.040252685546875, 0.042724609375, 0.0008955001831054688, 0.032135009765625, 0.03240966796875, 0.01384735107421875, 0.03216552734375, 0.035430908203125, 0.0157470703125, 0.0233612060546875, 0.00775146484375, 0.049835205078125, -0.0156402587890625, 0.0192718505859375, -0.10223388671875, -0.070556640625, 0.041107177734375, 0.07696533203125, -0.0095672607421875, 0.0194549560546875, 0.00873565673828125, 0.007110595703125, -0.0187530517578125, -0.034820556640625, 0.026153564453125, 0.007373809814453125, -0.01629638671875, 0.0265045166015625, -0.032501220703125, -0.01334381103515625, 0.040679931640625, 0.031646728515625, 0.0665283203125, -0.0192108154296875, -0.05120849609375, -0.032958984375, 0.0202789306640625, 0.015655517578125, 0.0230865478515625, 0.0087738037109375, 0.019775390625, 0.0269622802734375, 0.003093719482421875, -0.0262451171875, -0.019439697265625, 0.01511383056640625, 0.02166748046875, 0.01947021484375, 0.0615234375, -0.0033092498779296875, -0.00617218017578125, 0.0004949569702148438, 0.045989990234375, 0.032989501953125, 0.004222869873046875, 0.00020456314086914062, -0.0091400146484375, -0.00606536865234375, -0.04742431640625, 0.01027679443359375, -0.005680084228515625, 0.0193023681640625, 0.04229736328125, -0.0081787109375, 0.01409149169921875, 0.01131439208984375, 0.06622314453125, -0.007312774658203125, -0.023651123046875, 0.013397216796875, -0.06732177734375, 0.0200042724609375, 0.00885772705078125, 0.056610107421875, 0.0280303955078125, -0.043487548828125, 0.030517578125, -0.0738525390625, -0.086181640625, 0.028411865234375, 0.046844482421875, -0.01053619384765625, 0.005680084228515625, 0.03314208984375, -0.0021514892578125, 0.01192474365234375, -0.032745361328125, 0.029327392578125, 0.054840087890625, 0.0145111083984375, 0.04339599609375, -0.07025146484375, -0.0228118896484375, -0.0289764404296875, 0.04132080078125, 0.0123138427734375, 0.040740966796875, 0.006389617919921875, 0.0241241455078125, -0.03704833984375, 0.0193023681640625, -0.02545166015625, -0.047119140625, 0.041473388671875, 0.013702392578125, 0.00435638427734375, -0.00836181640625, -0.0377197265625, 0.02008056640625, 0.0038242340087890625, -0.0223541259765625, 0.0411376953125, -0.041168212890625, 0.01276397705078125, 0.0005731582641601562, 0.00923919677734375, -0.0202178955078125, 0.01052093505859375, -0.0241851806640625, -0.01006317138671875, 0.042083740234375, 0.00927734375, -0.029815673828125, 0.0293426513671875, 0.0294342041015625, -0.0004260540008544922, 0.002407073974609375, -0.013458251953125, -0.00013506412506103516, 0.0198211669921875, 0.01885986328125, -0.03369140625, 0.0077667236328125, -0.0144500732421875, 0.005588531494140625, 0.0050811767578125, 0.047882080078125, 0.0119476318359375, -0.020263671875, -0.01027679443359375, 0.04302978515625, 0.068359375, 0.005336761474609375, 0.045074462890625, -0.01459503173828125, -0.008636474609375, 0.024810791015625, -0.0274200439453125, -0.017120361328125, -0.01678466796875, -0.01513671875, 0.0262451171875, -0.0133209228515625, -0.0260467529296875, -0.0623779296875, -0.01092529296875, 0.03814697265625, -0.00931549072265625, -0.0328369140625, -0.0093841552734375, -0.02581787109375, 0.05364990234375, -0.0126800537109375, 0.04559326171875, -0.0015468597412109375, 0.031524658203125, -0.061859130859375, -0.057342529296875, -0.0170440673828125, 0.0550537109375, -0.04901123046875, 0.0020580291748046875, 0.0406494140625, -0.000469207763671875, 0.01122283935546875, -0.015533447265625, -0.016845703125, 0.04095458984375, -0.048431396484375, -0.020294189453125, -0.0028438568115234375, -0.00522613525390625, 0.0099334716796875, -0.006130218505859375, -0.0029392242431640625, -0.00478363037109375, -0.013946533203125, -0.0149688720703125, -0.021209716796875, 0.0009279251098632812, -0.06231689453125, -0.12420654296875, 0.045379638671875, -0.0165863037109375, -0.05865478515625, -0.00902557373046875, 0.005458831787109375, -0.016815185546875, -0.0272216796875, -0.04205322265625, 0.0272674560546875, 0.0149383544921875, 0.02301025390625, 0.0167236328125, 0.0006656646728515625, 0.0318603515625, -0.0312042236328125, -0.03466796875, -0.0201568603515625, -0.01178741455078125, 0.01097869873046875, -0.024505615234375, 0.005001068115234375, 0.017120361328125, 0.0213775634765625, -0.01873779296875, 0.039581298828125, 0.030670166015625, 0.00592041015625, -0.0294036865234375, -0.0242462158203125, -0.00042319297790527344, 0.0146484375, 0.061279296875, 0.045379638671875, 0.0177001953125, -0.03375244140625, -0.00911712646484375, 0.038116455078125, -0.0155029296875, 0.0175628662109375, 0.0219573974609375, -0.03369140625, -0.00485992431640625, -0.018341064453125, -0.0142822265625, 0.031341552734375, 0.0035533905029296875, -0.0107574462890625, -0.00222015380859375, 0.0106201171875, -0.0165557861328125, -0.0562744140625, -0.0205230712890625, 0.0985107421875, -0.042877197265625, 0.004810333251953125, 0.00502777099609375, 0.02850341796875, 0.03753662109375, -0.0175018310546875, 0.0287933349609375, 0.005039215087890625, -0.03204345703125, 0.0014276504516601562, 0.00975799560546875, 0.0543212890625, -0.0171051025390625, -0.036865234375, -0.01354217529296875, 0.0322265625, 0.00440216064453125, 0.0026950836181640625, -0.047454833984375, 0.0309295654296875, 0.0013599395751953125, 0.08349609375, -0.046875, 0.00035190582275390625, -0.026702880859375, -0.0014972686767578125, -0.00424957275390625, 0.0300445556640625, 0.053924560546875, -0.01180267333984375, 0.0028514862060546875, 0.01361846923828125, 0.04071044921875, -0.034637451171875, 0.0026340484619140625, -0.055419921875, 0.04315185546875, 0.0181121826171875 ]
5c6e66cb41a88cc3a795a6f1f9876fcec007ce65
Wordpress Stackexchange Q: WordPress Multisite - Multiple subfolders for blogs I created a network in blog.animals.com, the network is running fine. I can set up blogs like blog.animals.com/chimpanse. This is also working. I like to have multiple (2) subdirectories for each blog, e.g. * *blog.animals.com/apes/chimpanse *blog.animals.com/cats/birma On an address like blog.animals.com/apes should be nothing, it should redirect to blog.animals.com/apes/chimpanse and so on. I tried to achieve this on a local MAMP environment with sunrise.php (Domain Mapping plugin), VirtualHost entries in httpd-vhosts.conf and/or .htaccess, unfortunately with no success. Later on it should run on a real Apache server. Is this possible at all? If yes, how can I get this to work? A: You could make a sub folder install for each type of animal. To do this you need to create a folder in the root of your server called apes and another one called cats and than transfer the wordpress files to each of these folders and install. This way you can have two subsites within the same domain blog.animals.com/apes blog.animals.com/cats
Q: WordPress Multisite - Multiple subfolders for blogs I created a network in blog.animals.com, the network is running fine. I can set up blogs like blog.animals.com/chimpanse. This is also working. I like to have multiple (2) subdirectories for each blog, e.g. * *blog.animals.com/apes/chimpanse *blog.animals.com/cats/birma On an address like blog.animals.com/apes should be nothing, it should redirect to blog.animals.com/apes/chimpanse and so on. I tried to achieve this on a local MAMP environment with sunrise.php (Domain Mapping plugin), VirtualHost entries in httpd-vhosts.conf and/or .htaccess, unfortunately with no success. Later on it should run on a real Apache server. Is this possible at all? If yes, how can I get this to work? A: You could make a sub folder install for each type of animal. To do this you need to create a folder in the root of your server called apes and another one called cats and than transfer the wordpress files to each of these folders and install. This way you can have two subsites within the same domain blog.animals.com/apes blog.animals.com/cats
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:463776", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/219967" }
[ -0.0026111602783203125, -0.050018310546875, 0.0125579833984375, 0.041168212890625, -0.06024169921875, -0.028594970703125, 0.024688720703125, -0.03826904296875, 0.0084075927734375, 0.0006465911865234375, -0.019683837890625, 0.0094757080078125, -0.0355224609375, -0.029449462890625, 0.008331298828125, -0.035186767578125, 0.0219573974609375, -0.03277587890625, 0.01068115234375, -0.0009255409240722656, 0.004779815673828125, 0.01873779296875, 0.0029659271240234375, -0.00760650634765625, -0.00127410888671875, -0.03363037109375, 0.08795166015625, -0.0095672607421875, -0.01280975341796875, -0.046844482421875, 0.016204833984375, 0.044830322265625, 0.032470703125, 0.036651611328125, -0.0421142578125, 0.0015869140625, -0.0217437744140625, 0.02288818359375, -0.00493621826171875, 0.04010009765625, 0.006481170654296875, -0.0005922317504882812, 0.060882568359375, 0.0245819091796875, 0.0247344970703125, -0.0733642578125, 0.05560302734375, -0.06524658203125, 0.0211029052734375, -0.0548095703125, -0.0035228729248046875, 0.03497314453125, 0.00899505615234375, -0.03546142578125, -0.036346435546875, -0.033966064453125, 0.047271728515625, -0.0075531005859375, 0.03594970703125, -0.057159423828125, -0.049224853515625, 0.00952911376953125, 0.041412353515625, 0.020050048828125, -0.036712646484375, 0.00771331787109375, -0.005359649658203125, 0.01352691650390625, -0.034027099609375, -0.0369873046875, 0.0272216796875, -0.0194244384765625, 0.0396728515625, -0.0634765625, 0.006511688232421875, 0.0133056640625, -0.019287109375, -0.00884246826171875, 0.0304107666015625, -0.046783447265625, 0.0017070770263671875, -0.01727294921875, -0.011749267578125, -0.017578125, -0.0050048828125, 0.003536224365234375, -0.002689361572265625, -0.006610870361328125, -0.03448486328125, 0.00995635986328125, -0.03485107421875, -0.0302276611328125, -0.023590087890625, 0.019439697265625, 0.002857208251953125, 0.0037746429443359375, 0.0176849365234375, 0.04034423828125, -0.016326904296875, -0.00789642333984375, -0.0006642341613769531, -0.0164947509765625, -0.01435089111328125, -0.0205535888671875, 0.01092529296875, 0.027801513671875, 0.0023860931396484375, 0.0225372314453125, 0.056182861328125, 0.0251617431640625, 0.0007042884826660156, 0.06298828125, 0.007686614990234375, -0.036651611328125, -0.037689208984375, 0.031463623046875, 0.01137542724609375, -0.0059967041015625, 0.01556396484375, -0.01114654541015625, 0.0199127197265625, 0.07568359375, -0.04486083984375, -0.0117034912109375, -0.008758544921875, -0.005706787109375, 0.027801513671875, -0.04595947265625, -0.022216796875, 0.0197601318359375, -0.0191802978515625, 0.017791748046875, 0.0258941650390625, 0.0160980224609375, -0.019927978515625, -0.01055145263671875, 0.035064697265625, -0.00829315185546875, -0.016387939453125, 0.009246826171875, 0.005084991455078125, -0.01261138916015625, -0.014007568359375, -0.035247802734375, -0.05010986328125, 0.0170135498046875, 0.0161895751953125, 0.0189666748046875, -0.036529541015625, -0.0389404296875, 0.0027618408203125, -0.0202484130859375, 0.0439453125, -0.0125732421875, 0.0123443603515625, -0.08453369140625, -0.0044097900390625, -0.04681396484375, 0.045196533203125, -0.041900634765625, -0.0174407958984375, 0.00482177734375, 0.0628662109375, -0.0286865234375, -0.0321044921875, -0.0322265625, -0.031158447265625, -0.014373779296875, 0.0225372314453125, -0.053009033203125, -0.00775146484375, -0.006046295166015625, 0.04937744140625, 0.0103912353515625, 0.01511383056640625, 0.039825439453125, 0.043853759765625, -0.01320648193359375, 0.008026123046875, 0.044647216796875, -0.00901031494140625, -0.0172882080078125, 0.0281219482421875, -0.00498199462890625, -0.037322998046875, -0.029632568359375, 0.01336669921875, 0.05145263671875, 0.0157470703125, 0.034912109375, 0.02423095703125, -0.019775390625, -0.06256103515625, 0.03076171875, -0.0258941650390625, -0.003406524658203125, 0.03826904296875, 0.042877197265625, 0.0030517578125, -0.054962158203125, -0.027557373046875, 0.0139007568359375, -0.008392333984375, 0.05560302734375, 0.024932861328125, 0.019317626953125, -0.00745391845703125, 0.0055389404296875, -0.02142333984375, 0.0114288330078125, 0.0108184814453125, -0.00042438507080078125, 0.01151275634765625, -0.10540771484375, -0.0123748779296875, 0.0313720703125, -0.0231781005859375, 0.0237274169921875, -0.01389312744140625, 0.0374755859375, -0.01953125, -0.007411956787109375, -0.01119232177734375, -0.01450347900390625, 0.031219482421875, -0.0287017822265625, -0.01285552978515625, -0.033660888671875, -0.042694091796875, 0.045654296875, -0.1473388671875, 0.01432037353515625, 0.0126800537109375, 0.00200653076171875, -0.06671142578125, -0.00652313232421875, -0.007038116455078125, 0.0169219970703125, 0.004154205322265625, 0.0367431640625, 0.03216552734375, 0.0083160400390625, -0.030975341796875, -0.0312347412109375, 0.0195465087890625, -0.06658935546875, -0.0027713775634765625, -0.00982666015625, -0.03045654296875, -0.00904083251953125, 0.01271820068359375, 0.020233154296875, 0.02117919921875, -0.028594970703125, -0.003185272216796875, 0.041290283203125, -0.0030841827392578125, -0.041168212890625, 0.01532745361328125, 0.0012121200561523438, 0.0266265869140625, -0.01081085205078125, -0.0531005859375, 0.00911712646484375, 0.0455322265625, -0.005214691162109375, 0.037078857421875, 0.027069091796875, -0.00688934326171875, 0.00183868408203125, 0.00010478496551513672, -0.02191162109375, 0.005634307861328125, 0.0206451416015625, 0.05621337890625, -0.0194549560546875, -0.0029697418212890625, -0.0258026123046875, 0.01215362548828125, 0.0018634796142578125, -0.034088134765625, 0.018798828125, -0.03955078125, -0.0243377685546875, -0.00994110107421875, -0.04107666015625, -0.0196075439453125, -0.03460693359375, -0.0364990234375, -0.0196990966796875, 0.003673553466796875, 0.0267333984375, -0.01143646240234375, -0.003192901611328125, -0.0007028579711914062, -0.00727081298828125, 0.0207672119140625, -0.046844482421875, 0.04705810546875, -0.0232086181640625, 0.0279083251953125, 0.06134033203125, -0.0029010772705078125, 0.0012483596801757812, 0.016265869140625, 0.0212554931640625, 0.038543701171875, 0.0017061233520507812, 0.00540924072265625, 0.004917144775390625, -0.0345458984375, 0.02154541015625, 0.014373779296875, -0.0111083984375, -0.0298614501953125, -0.0211029052734375, -0.00743865966796875, -0.01393890380859375, -0.0521240234375, -0.0234527587890625, 0.0157012939453125, -0.0160064697265625, -0.007534027099609375, -0.00189208984375, -0.0213775634765625, -0.02716064453125, 0.0173797607421875, 0.0095367431640625, -0.0293426513671875, -0.04437255859375, -0.055572509765625, -0.06329345703125, -0.06781005859375, 0.01520538330078125, 0.004894256591796875, 0.00791168212890625, 0.0222015380859375, -0.007740020751953125, -0.00018477439880371094, -0.042724609375, 0.042816162109375, 0.0221099853515625, -0.01358795166015625, 0.0133514404296875, -0.0097198486328125, -0.06787109375, 0.007633209228515625, -0.03778076171875, 0.09716796875, 0.045379638671875, -0.01342010498046875, 0.0606689453125, -0.007015228271484375, 0.03363037109375, 0.0084991455078125, -0.045623779296875, 0.0015363693237304688, 0.017669677734375, -0.04608154296875, -0.0452880859375, 0.004978179931640625, -0.042724609375, -0.0484619140625, -0.06494140625, 0.060302734375, -0.0026340484619140625, -0.0589599609375, -0.04241943359375, 0.01166534423828125, -0.00949859619140625, 0.005626678466796875, -0.01175689697265625, 0.0013990402221679688, -0.0025577545166015625, 0.0077667236328125, -0.004489898681640625, 0.033172607421875, -0.012969970703125, -0.015472412109375, -0.02178955078125, -0.018768310546875, -0.049835205078125, 0.04278564453125, -0.056549072265625, -0.0255584716796875, 0.035888671875, -0.038818359375, -0.00446319580078125, -0.0372314453125, -0.00421142578125, -0.036712646484375, 0.0538330078125, -0.07122802734375, -0.0140533447265625, -0.0182647705078125, 0.0313720703125, -0.04595947265625, -0.06280517578125, -0.026611328125, -0.00992584228515625, 0.00516510009765625, -0.04296875, -0.031951904296875, -0.0234222412109375, 0.008209228515625, -0.034423828125, 0.0188140869140625, -0.02874755859375, 0.02398681640625, -0.021820068359375, 0.007678985595703125, -0.0253448486328125, 0.034515380859375, -0.0618896484375, 0.007633209228515625, -0.0250396728515625, -0.013580322265625, -0.011810302734375, 0.0168609619140625, 0.0117034912109375, -0.00858306884765625, -0.0030651092529296875, 0.00531768798828125, 0.0303955078125, -0.04608154296875, 0.0182342529296875, -0.02423095703125, 0.043914794921875, -0.031951904296875, -0.003612518310546875, -0.0162353515625, -0.0192718505859375, 0.01251220703125, -0.0438232421875, -0.0263519287109375, -0.0179901123046875, -0.04364013671875, 0.01385498046875, -0.040283203125, -0.01392364501953125, -0.031890869140625, -0.02593994140625, -0.0308837890625, -0.0191802978515625, -0.035125732421875, -0.011383056640625, -0.008056640625, -0.034942626953125, 0.0302886962890625, -0.01177215576171875, 0.0074462890625, 0.005886077880859375, 0.051666259765625, 0.0016527175903320312, -0.01800537109375, -0.036346435546875, 0.0196990966796875, 0.031585693359375, -0.006069183349609375, 0.033416748046875, 0.03582763671875, 0.0079803466796875, -0.0157928466796875, 0.00983428955078125, 0.010833740234375, 0.0122222900390625, -0.0283355712890625, -0.00978851318359375, -0.0269775390625, -0.00036787986755371094, -0.0200653076171875, 0.015380859375, 0.0189361572265625, -0.0189361572265625, -0.0013856887817382812, -0.043701171875, 0.036590576171875, 0.019500732421875, -0.024993896484375, -0.0577392578125, -0.031768798828125, 0.007671356201171875, -0.021820068359375, 0.05908203125, 0.0099639892578125, 0.0055389404296875, 0.04864501953125, 0.039642333984375, -0.01873779296875, 0.0208587646484375, 0.01560211181640625, 0.0293426513671875, -0.00577545166015625, 0.03631591796875, -0.01401519775390625, -0.030792236328125, -0.008056640625, 0.05853271484375, 0.0184173583984375, -0.0156707763671875, -0.0034198760986328125, -0.0035228729248046875, -0.01049041748046875, 0.00209808349609375, -0.019195556640625, 0.033721923828125, 0.0041046142578125, -0.022125244140625, 0.03692626953125, -0.0372314453125, -0.033905029296875, -0.045928955078125, 0.006534576416015625, -0.02532958984375, 0.00701904296875, -0.01168060302734375, 0.0538330078125, -0.047698974609375, 0.033172607421875, 0.0021724700927734375, 0.01108551025390625, 0.035400390625, 0.03143310546875, 0.0019311904907226562, 0.0242767333984375, -0.03594970703125, 0.0394287109375, 0.01409912109375, -0.042388916015625, 0.004100799560546875, 0.03521728515625, 0.055938720703125, 0.0618896484375, -0.00954437255859375, -0.0265350341796875, -0.0247344970703125, -0.0155181884765625, -0.0000705718994140625, -0.018646240234375, -0.01543426513671875, -0.00994110107421875, -0.01280975341796875, 0.0144500732421875, -0.0074462890625, -0.016937255859375, -0.048828125, -0.04327392578125, -0.004230499267578125, -0.00966644287109375, -0.01458740234375, 0.0149993896484375, 0.014892578125, -0.036224365234375, 0.01084136962890625, 0.0114288330078125, -0.04010009765625, -0.061614990234375, -0.0013532638549804688, -0.0275115966796875, 0.038360595703125, -0.01389312744140625, 0.01245880126953125, -0.02325439453125, -0.0159149169921875, -0.023284912109375, 0.0197906494140625, 0.026885986328125, 0.0034122467041015625, -0.0400390625, 0.0220184326171875, -0.025177001953125, -0.0287322998046875, 0.031707763671875, 0.0016384124755859375, -0.0650634765625, -0.0287322998046875, -0.0008111000061035156, 0.01142120361328125, 0.0025882720947265625, -0.006481170654296875, 0.0014820098876953125, -0.0132904052734375, -0.01375579833984375, -0.033660888671875, -0.0213623046875, 0.0186614990234375, 0.01422882080078125, 0.01361846923828125, -0.0004494190216064453, 0.0287322998046875, 0.037750244140625, -0.030029296875, 0.006610870361328125, -0.08331298828125, -0.0006909370422363281, -0.0008549690246582031, -0.0352783203125, 0.045654296875, 0.04144287109375, 0.01436614990234375, -0.00974273681640625, 0.0005154609680175781, 0.006435394287109375, -0.032196044921875, -0.034820556640625, 0.018463134765625, 0.02783203125, -0.041961669921875, 0.00795745849609375, 0.056884765625, -0.0299224853515625, -0.046905517578125, 0.034698486328125, 0.00926971435546875, 0.040191650390625, 0.0039043426513671875, -0.007610321044921875, 0.0164642333984375, 0.08587646484375, 0.01837158203125, 0.059356689453125, 0.036865234375, 0.0193023681640625, 0.024810791015625, -0.00821685791015625, 0.0292510986328125, -0.0221099853515625, 0.0167236328125, -0.0013761520385742188, 0.006908416748046875, 0.0272674560546875, -0.02178955078125, -0.01873779296875, 0.01346588134765625, 0.007099151611328125, -0.02947998046875, -0.0063629150390625, -0.01824951171875, -0.0152587890625, -0.0104827880859375, -0.0013904571533203125, 0.006732940673828125, -0.00200653076171875, 0.01067352294921875, 0.004222869873046875, -0.0182037353515625, 0.006046295166015625, 0.0106201171875, -0.00928497314453125, -0.00872039794921875, -0.01200103759765625, 0.0169830322265625, 0.006809234619140625, -0.015228271484375, 0.0287933349609375, 0.00030922889709472656, -0.0125579833984375, -0.007122039794921875, 0.0189666748046875, -0.043609619140625, -0.050323486328125, 0.0005421638488769531, 0.0028228759765625, -0.0178070068359375, -0.053070068359375, -0.04632568359375, 0.0297393798828125, 0.037109375, -0.0308990478515625, -0.0114898681640625, 0.025421142578125, -0.04266357421875, 0.02056884765625, 0.024444580078125, 0.028228759765625, 0.00304412841796875, -0.035400390625, 0.0018253326416015625, -0.04766845703125, 0.0248565673828125, -0.005390167236328125, -0.0023860931396484375, 0.029571533203125, -0.01152801513671875, -0.02093505859375, 0.01995849609375, 0.0193634033203125, 0.012786865234375, 0.008575439453125, -0.0040435791015625, -0.0740966796875, -0.08843994140625, 0.0026702880859375, -0.081787109375, 0.025665283203125, -0.0013074874877929688, -0.06903076171875, 0.04229736328125, -0.0214996337890625, 0.06451416015625, 0.01241302490234375, -0.0029125213623046875, 0.01175689697265625, -0.00890350341796875, -0.0233612060546875, 0.01136016845703125, -0.0182342529296875, 0.027374267578125, -0.0195465087890625, -0.00537109375, 0.004913330078125, 0.031219482421875, -0.0020046234130859375, 0.00431060791015625, -0.021453857421875, 0.0095977783203125, 0.0245361328125, 0.024688720703125, 0.01529693603515625, 0.0300445556640625, -0.0268402099609375, -0.01654052734375, -0.0016222000122070312, -0.0269317626953125, -0.01488494873046875, 0.028961181640625, -0.05072021484375, -0.00229644775390625, -0.0064544677734375, -0.033203125, 0.0110626220703125, 0.0003979206085205078, -0.0303955078125, 0.01195526123046875, 0.0164337158203125, -0.01904296875, 0.0635986328125, -0.0127410888671875, 0.00916290283203125, 0.005008697509765625, 0.041839599609375, -0.00676727294921875, 0.047576904296875, -0.029571533203125, 0.016571044921875, 0.0252227783203125, 0.020660400390625, 0.025115966796875, 0.012481689453125, 0.005706787109375, 0.024993896484375, -0.015228271484375, 0.00905609130859375, 0.0031604766845703125, 0.031646728515625, -0.0290679931640625, -0.0291748046875, 0.0291290283203125, 0.0254058837890625, -0.01513671875, -0.051300048828125, -0.0023937225341796875, -0.005809783935546875, 0.022674560546875, 0.004878997802734375, 0.006744384765625, 0.016937255859375, 0.0262603759765625, -0.0157623291015625, 0.01181793212890625, 0.0151824951171875, -0.01145172119140625, -0.004550933837890625, 0.016448974609375, 0.002147674560546875, 0.040313720703125, -0.01123046875, -0.00514984130859375, -0.0014171600341796875, 0.046051025390625, 0.001323699951171875, 0.08319091796875, -0.0347900390625, -0.0231781005859375, 0.0133819580078125, 0.033721923828125, -0.0149078369140625, -0.02740478515625, -0.0148773193359375, -0.09552001953125, 0.0413818359375, 0.03985595703125, 0.01397705078125, 0.04937744140625, 0.043914794921875, 0.0460205078125, -0.0034542083740234375, 0.000629425048828125, 0.040802001953125, -0.0144805908203125, 0.018707275390625, -0.0228424072265625, -0.0146636962890625, -0.009979248046875, -0.03521728515625, -0.01494598388671875, -0.01885986328125, 0.028167724609375, 0.001605987548828125, 0.03790283203125, 0.0029544830322265625, -0.01067352294921875, -0.003978729248046875, 0.0060577392578125, 0.03863525390625, 0.026763916015625, -0.0654296875, -0.01448822021484375, -0.0165252685546875, -0.059844970703125, 0.03143310546875, 0.063720703125, -0.00689697265625, -0.01396942138671875, 0.017120361328125, 0.00431060791015625, 0.00972747802734375, 0.007587432861328125, -0.01454925537109375, 0.01322174072265625, 0.05633544921875, 0.01134490966796875, -0.0767822265625, -0.058013916015625, -0.02764892578125, 0.044647216796875, 0.0030956268310546875, 0.154052734375, -0.051239013671875, -0.0003757476806640625, 0.00592041015625, 0.01049041748046875, 0.0018510818481445312, -0.0091705322265625, 0.0011920928955078125, -0.00977325439453125, 0.009918212890625, 0.000988006591796875, 0.005680084228515625, 0.00836944580078125, 0.0177154541015625, -0.06268310546875, 0.005352020263671875, -0.0251312255859375, 0.0162811279296875, 0.0005726814270019531, 0.047332763671875, -0.018646240234375, -0.1019287109375, -0.0980224609375, 0.0194854736328125, 0.01103973388671875, 0.0521240234375, -0.060211181640625, 0.0272064208984375, 0.03466796875, -0.0294189453125, 0.0396728515625, -0.034423828125, 0.061676025390625, 0.0259246826171875, 0.02099609375, -0.03717041015625, 0.040069580078125, 0.00586700439453125, -0.0101470947265625, 0.0193328857421875, 0.038360595703125, 0.019012451171875, -0.0499267578125, 0.01244354248046875, 0.0251007080078125, 0.01462554931640625, -0.0109405517578125, 0.00850677490234375, 0.036773681640625, -0.018402099609375, -0.01541900634765625, -0.04510498046875, -0.017974853515625, -0.0169677734375, -0.01407623291015625, 0.01108551025390625, 0.0088348388671875, -0.011260986328125, -0.0006513595581054688, -0.0196533203125, 0.0494384765625, 0.0147857666015625, -0.043182373046875, 0.007778167724609375, -0.01073455810546875, 0.048614501953125, 0.01076507568359375, -0.030731201171875, -0.00366973876953125, 0.00861358642578125, 0.005908966064453125, -0.013214111328125, -0.0280303955078125, 0.010498046875, -0.018951416015625, -0.017578125, -0.00926971435546875, 0.00060272216796875, 0.0270843505859375, -0.0282440185546875, 0.004451751708984375, 0.022705078125, 0.02020263671875, 0.0017938613891601562, 0.0360107421875, -0.01450347900390625, -0.05389404296875, -0.048126220703125, 0.0212860107421875, -0.040557861328125, -0.0127716064453125, 0.0040130615234375, 0.01517486572265625, 0.0229644775390625, -0.022979736328125, -0.023956298828125, 0.037139892578125, 0.0120697021484375, -0.0258331298828125, -0.086181640625, 0.0019245147705078125, -0.0031528472900390625, 0.0198516845703125, -0.0299224853515625, -0.0088958740234375, -0.0168304443359375, 0.0653076171875, -0.00693511962890625, 0.0311279296875, -0.028228759765625, 0.0120697021484375, 0.042083740234375, 0.05120849609375, 0.05438232421875, -0.0350341796875, 0.00942230224609375, -0.00977325439453125, 0.03948974609375, 0.0946044921875, 0.00946807861328125, -0.0137481689453125, 0.0208892822265625, -0.059234619140625, -0.01117706298828125, -0.01323699951171875, -0.07232666015625, -0.0177154541015625, 0.10009765625, 0.09075927734375, 0.043670654296875, -0.044647216796875, 0.0012035369873046875, -0.05810546875, -0.033447265625, -0.034912109375, 0.034088134765625, -0.0994873046875, -0.01544189453125, 0.049468994140625, 0.01806640625, 0.0171356201171875, 0.00396728515625, 0.00724029541015625, -0.004360198974609375, 0.052093505859375, -0.0050201416015625, 0.0025730133056640625, 0.029205322265625, 0.033172607421875, -0.0195465087890625, 0.01428985595703125, -0.0084075927734375, -0.006206512451171875, 0.00970458984375, 0.006366729736328125, 0.023834228515625, -0.0025920867919921875, -0.036041259765625, 0.0214080810546875, 0.00946044921875, 0.01404571533203125, -0.04107666015625, -0.0252685546875, -0.0046844482421875, 0.021392822265625, -0.01343536376953125, 0.033905029296875, 0.00738525390625, 0.02374267578125, -0.002414703369140625, 0.06890869140625, 0.03704833984375, -0.0081939697265625, -0.01392364501953125, 0.06658935546875, -0.033538818359375, -0.02960205078125, -0.05621337890625, -0.022705078125, -0.0190582275390625, 0.025360107421875, -0.01233673095703125, -0.06451416015625, 0.044281005859375, 0.0261688232421875, 0.0288238525390625, 0.0293121337890625 ]
336167a31168e1b06595781498461e31069250d4
Wordpress Stackexchange Q: How to get the first image gallery of a product in woocommerce in a loop I want to display a product with a product image and when visitor hovers over that image, it will change to the first image from the product gallery. I am using this code to display the image gallery, but it displays all the images from product gallery. I just want the 1 image. <?php do_action( 'woocommerce_product_thumbnails' ); ?> Anybody know how to resolve this problem? Really appreciate any ideas. Regards A: Along with the product thumbnail (I'm assuming you have this), what you need is a list (array) of the product images - WooCommerce has such methods, eg $product->get_gallery_attachment_ids(). You can grab the first ID in the array and use it to fetch the single image using wp_get_attachment_image(), or wp_get_attachment_url(), etc., then use that as an alternate source for the main (thumbnail) image. Incidentally, the woocommerce_product_thumbnails call is outputting markup that you probably don't want to use. You'll need to either discard this or unhook functions from it to get the output you want.
Q: How to get the first image gallery of a product in woocommerce in a loop I want to display a product with a product image and when visitor hovers over that image, it will change to the first image from the product gallery. I am using this code to display the image gallery, but it displays all the images from product gallery. I just want the 1 image. <?php do_action( 'woocommerce_product_thumbnails' ); ?> Anybody know how to resolve this problem? Really appreciate any ideas. Regards A: Along with the product thumbnail (I'm assuming you have this), what you need is a list (array) of the product images - WooCommerce has such methods, eg $product->get_gallery_attachment_ids(). You can grab the first ID in the array and use it to fetch the single image using wp_get_attachment_image(), or wp_get_attachment_url(), etc., then use that as an alternate source for the main (thumbnail) image. Incidentally, the woocommerce_product_thumbnails call is outputting markup that you probably don't want to use. You'll need to either discard this or unhook functions from it to get the output you want. A: 2018 Update: Need to use get_gallery_image_ids(); instead. Then use wp_get_attachment_url() with the first ID in the array returned. $product->get_gallery_image_ids();
wordpress
{ "language": "en", "length": 200, "provenance": "stackexchange_00019.jsonl.gz:463792", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/220029" }
[ 0.01352691650390625, -0.0223541259765625, 0.0074005126953125, 0.00252532958984375, -0.00980377197265625, -0.017730712890625, 0.024871826171875, -0.04022216796875, 0.036834716796875, 0.03961181640625, -0.04534912109375, -0.01320648193359375, -0.026611328125, 0.007549285888671875, -0.07177734375, -0.039947509765625, 0.036895751953125, -0.00811004638671875, 0.048248291015625, 0.022674560546875, -0.00905609130859375, 0.0548095703125, 0.027008056640625, 0.0350341796875, 0.036773681640625, -0.036590576171875, 0.06890869140625, -0.01349639892578125, 0.0305328369140625, -0.0157928466796875, 0.023162841796875, -0.0050201416015625, 0.0019435882568359375, -0.01849365234375, 0.03704833984375, -0.0207672119140625, 0.0033931732177734375, -0.007350921630859375, 0.01629638671875, 0.00638580322265625, 0.03466796875, -0.016082763671875, -0.021514892578125, 0.007049560546875, -0.024932861328125, -0.002490997314453125, -0.022430419921875, -0.034637451171875, 0.01418304443359375, -0.01458740234375, 0.0243682861328125, 0.045867919921875, 0.0406494140625, -0.0199127197265625, -0.01387786865234375, 0.01053619384765625, -0.03924560546875, -0.01406097412109375, 0.0156402587890625, -0.0277252197265625, -0.005214691162109375, -0.0174407958984375, 0.036865234375, 0.0197296142578125, -0.0143890380859375, 0.0323486328125, -0.0207061767578125, 0.005397796630859375, -0.0260772705078125, -0.0227203369140625, 0.00737762451171875, -0.038482666015625, 0.0009431838989257812, -0.0010881423950195312, -0.0281524658203125, 0.00850677490234375, 0.01085662841796875, -0.0026397705078125, 0.017669677734375, -0.01007843017578125, 0.000278472900390625, -0.0250396728515625, -0.011444091796875, -0.0155487060546875, 0.0111846923828125, -0.00463104248046875, -0.00860595703125, 0.0006203651428222656, -0.003570556640625, -0.0260772705078125, -0.0231781005859375, 0.0229339599609375, -0.015716552734375, 0.01322174072265625, -0.041748046875, -0.017425537109375, 0.02471923828125, 0.01018524169921875, 0.005191802978515625, -0.01380157470703125, 0.01320648193359375, -0.04241943359375, 0.0020351409912109375, -0.015594482421875, 0.007404327392578125, -0.028717041015625, 0.0050048828125, -0.0016021728515625, 0.043731689453125, 0.03070068359375, -0.0211334228515625, 0.07843017578125, -0.01175689697265625, -0.0537109375, 0.01261138916015625, 0.03546142578125, -0.033050537109375, 0.0498046875, 0.0203094482421875, 0.0176849365234375, 0.007534027099609375, 0.0302581787109375, 0.02532958984375, -0.0091552734375, -0.01166534423828125, 0.0207977294921875, -0.006504058837890625, -0.062255859375, 0.006244659423828125, -0.009124755859375, -0.0312042236328125, 0.01312255859375, 0.03582763671875, 0.04144287109375, 0.0257568359375, -0.0009565353393554688, 0.014007568359375, 0.039581298828125, 0.033782958984375, -0.026336669921875, 0.03802490234375, 0.0034313201904296875, -0.006317138671875, 0.0243988037109375, 0.007289886474609375, 0.0028247833251953125, 0.0095367431640625, 0.03192138671875, 0.0034427642822265625, -0.035369873046875, 0.031036376953125, 0.01019287109375, -0.02166748046875, 0.036468505859375, 0.06549072265625, 0.020355224609375, 0.0760498046875, -0.0119171142578125, 0.0038604736328125, -0.021759033203125, -0.0019521713256835938, -0.004116058349609375, -0.0072021484375, -0.003032684326171875, -0.00789642333984375, 0.00034499168395996094, -0.01520538330078125, 0.0019311904907226562, 0.0220947265625, 0.050445556640625, -0.01424407958984375, -0.01491546630859375, 0.031097412109375, 0.0165252685546875, -0.028900146484375, 0.0177764892578125, 0.0023937225341796875, -0.0086517333984375, 0.0308837890625, 0.040924072265625, -0.01410675048828125, -0.028350830078125, 0.0305633544921875, -0.0137786865234375, -0.0141448974609375, 0.022735595703125, 0.005764007568359375, 0.01337432861328125, -0.0220184326171875, 0.01544189453125, 0.02349853515625, 0.05841064453125, -0.051971435546875, 0.04071044921875, -0.00878143310546875, -0.010284423828125, -0.0011835098266601562, 0.0157318115234375, -0.0202484130859375, -0.029541015625, 0.0771484375, 0.0018367767333984375, 0.0258636474609375, -0.026275634765625, -0.01529693603515625, 0.014495849609375, 0.00115966796875, 0.016937255859375, -0.057647705078125, 0.033233642578125, 0.04705810546875, 0.0306549072265625, -0.04296875, 0.0007805824279785156, 0.041259765625, 0.0168914794921875, -0.0399169921875, 0.048553466796875, -0.0212554931640625, 0.0557861328125, -0.024871826171875, -0.041015625, -0.01128387451171875, -0.0012083053588867188, 0.055084228515625, 0.03497314453125, -0.03277587890625, -0.01227569580078125, 0.043487548828125, 0.032196044921875, -0.06683349609375, 0.0099945068359375, -0.017242431640625, -0.061553955078125, -0.04864501953125, 0.0069732666015625, -0.00010198354721069336, -0.0596923828125, 0.007396697998046875, 0.058990478515625, 0.0273895263671875, 0.0267333984375, -0.0016336441040039062, 0.008209228515625, 0.07318115234375, -0.0058746337890625, 0.00870513916015625, -0.01247406005859375, -0.01483917236328125, 0.0144500732421875, -0.0212249755859375, 0.020172119140625, 0.008087158203125, -0.01052093505859375, 0.01219940185546875, 0.031463623046875, 0.005832672119140625, 0.006641387939453125, -0.05224609375, 0.060546875, -0.01450347900390625, -0.004085540771484375, 0.0015392303466796875, -0.0250091552734375, 0.025299072265625, 0.039154052734375, -0.003757476806640625, -0.00733184814453125, -0.07733154296875, 0.050506591796875, 0.0391845703125, 0.0019130706787109375, -0.00394439697265625, 0.01486968994140625, -0.0228271484375, -0.044586181640625, -0.01438140869140625, 0.0165863037109375, -0.01424407958984375, -0.03509521484375, 0.00272369384765625, 0.011566162109375, 0.0211944580078125, 0.0010929107666015625, -0.00836944580078125, -0.036407470703125, 0.03271484375, 0.05816650390625, -0.057037353515625, -0.035797119140625, 0.0009517669677734375, 0.01146697998046875, -0.042694091796875, 0.01216888427734375, -0.052459716796875, -0.0063934326171875, -0.0175933837890625, -0.040679931640625, 0.05914306640625, -0.046112060546875, 0.0360107421875, 0.06463623046875, -0.038909912109375, 0.050140380859375, -0.0007586479187011719, -0.028045654296875, 0.0009450912475585938, 0.00103759765625, -0.024078369140625, 0.01154327392578125, -0.10546875, 0.0066375732421875, 0.0203704833984375, 0.0897216796875, -0.02557373046875, -0.04962158203125, 0.0024089813232421875, 0.03424072265625, -0.059326171875, -0.07098388671875, -0.0237579345703125, -0.056304931640625, -0.007720947265625, 0.0059661865234375, -0.017303466796875, 0.0013561248779296875, 0.02313232421875, 0.003017425537109375, -0.00501251220703125, 0.0033321380615234375, -0.0178680419921875, -0.008758544921875, -0.035186767578125, 0.02630615234375, -0.00414276123046875, 0.010772705078125, 0.005023956298828125, -0.002300262451171875, -0.00920867919921875, -0.031768798828125, 0.006069183349609375, 0.0494384765625, 0.00531005859375, 0.00037860870361328125, -0.003612518310546875, -0.02801513671875, -0.042388916015625, 0.0141754150390625, -0.026763916015625, -0.01552581787109375, 0.01235198974609375, 0.001094818115234375, 0.007747650146484375, -0.0313720703125, 0.0209197998046875, 0.033172607421875, -0.0217437744140625, -0.00469207763671875, 0.042755126953125, -0.0526123046875, -0.009735107421875, -0.0369873046875, -0.0438232421875, 0.009246826171875, 0.040557861328125, 0.003192901611328125, -0.046478271484375, 0.0078887939453125, -0.02655029296875, -0.0230255126953125, 0.0308685302734375, -0.058624267578125, 0.037384033203125, -0.0128936767578125, -0.0267333984375, -0.018890380859375, 0.063232421875, 0.01076507568359375, -0.01532745361328125, 0.028839111328125, 0.0235748291015625, -0.00336456298828125, -0.0007052421569824219, -0.044219970703125, -0.0160980224609375, 0.0377197265625, -0.0081939697265625, 0.035369873046875, -0.0299835205078125, -0.0255889892578125, -0.01413726806640625, 0.087646484375, -0.01605224609375, -0.026214599609375, -0.0177764892578125, 0.005908966064453125, -0.0166473388671875, -0.02264404296875, -0.03448486328125, -0.009490966796875, -0.1329345703125, 0.00948333740234375, -0.00879669189453125, -0.04400634765625, 0.024383544921875, -0.06988525390625, -0.066162109375, -0.0687255859375, 0.0029735565185546875, -0.0117340087890625, -0.00820159912109375, 0.040130615234375, -0.0282135009765625, 0.039581298828125, 0.0002777576446533203, -0.05364990234375, -0.06597900390625, -0.0269012451171875, 0.0579833984375, 0.0693359375, -0.045684814453125, 0.02056884765625, -0.047027587890625, 0.059112548828125, -0.033416748046875, 0.042999267578125, -0.0218353271484375, 0.047637939453125, -0.03192138671875, -0.0293121337890625, -0.00860595703125, -0.04254150390625, -0.00855255126953125, -0.06622314453125, -0.0162353515625, -0.043060302734375, -0.040863037109375, 0.0251312255859375, -0.02288818359375, 0.0146331787109375, -0.061279296875, -0.0272064208984375, 0.05706787109375, 0.036529541015625, 0.0174407958984375, 0.0229949951171875, -0.0438232421875, -0.03216552734375, -0.0210723876953125, -0.05010986328125, -0.041778564453125, 0.030181884765625, 0.0426025390625, 0.0174407958984375, 0.0189971923828125, -0.00980377197265625, 0.00494384765625, 0.0355224609375, 0.0205535888671875, 0.025848388671875, -0.002330780029296875, -0.027374267578125, 0.040374755859375, 0.0198516845703125, 0.00885009765625, 0.0183868408203125, 0.05780029296875, -0.0035533905029296875, -0.033966064453125, 0.031768798828125, -0.0283660888671875, -0.038238525390625, -0.00850677490234375, -0.038604736328125, 0.028961181640625, -0.01030731201171875, 0.003253936767578125, -0.0181427001953125, 0.0259246826171875, -0.01160430908203125, -0.0083160400390625, 0.0018224716186523438, 0.0231781005859375, 0.049591064453125, 0.0273284912109375, 0.00007855892181396484, 0.00441741943359375, 0.0213775634765625, -0.00232696533203125, -0.00788116455078125, -0.01318359375, 0.0321044921875, 0.01369476318359375, 0.0164947509765625, 0.01114654541015625, -0.00725555419921875, 0.0055389404296875, -0.031585693359375, -0.014068603515625, -0.02593994140625, -0.0535888671875, -0.0036373138427734375, 0.0190277099609375, 0.015625, -0.0198211669921875, 0.045989990234375, -0.0165557861328125, -0.03924560546875, -0.0293731689453125, -0.06658935546875, -0.0323486328125, -0.0631103515625, 0.049896240234375, 0.0193939208984375, -0.0018510818481445312, 0.038665771484375, 0.029693603515625, -0.0032253265380859375, 0.032135009765625, -0.002239227294921875, -0.005207061767578125, -0.009185791015625, 0.050323486328125, 0.019256591796875, -0.014678955078125, -0.0005221366882324219, 0.0210113525390625, 0.031951904296875, -0.02032470703125, 0.0147857666015625, 0.0181884765625, 0.0364990234375, -0.0281982421875, -0.048675537109375, 0.0277557373046875, -0.04498291015625, 0.0000470280647277832, 0.00457000732421875, -0.00974273681640625, -0.007061004638671875, -0.007015228271484375, 0.009429931640625, 0.023284912109375, -0.004947662353515625, -0.02362060546875, 0.031768798828125, -0.01192474365234375, 0.0257110595703125, -0.0085906982421875, -0.01503753662109375, 0.0196685791015625, 0.027069091796875, -0.00550079345703125, -0.022369384765625, 0.004703521728515625, -0.013702392578125, 0.019989013671875, -0.037139892578125, -0.035675048828125, 0.04974365234375, -0.012115478515625, 0.043792724609375, -0.039093017578125, -0.035064697265625, -0.1241455078125, -0.002307891845703125, 0.0726318359375, 0.06866455078125, -0.01861572265625, -0.0020694732666015625, -0.020660400390625, -0.001922607421875, 0.07012939453125, -0.0175933837890625, -0.0104827880859375, -0.056915283203125, -0.01319122314453125, 0.0401611328125, 0.0115203857421875, 0.019622802734375, 0.015899658203125, -0.00374603271484375, -0.033050537109375, 0.02630615234375, -0.004413604736328125, 0.0085601806640625, 0.03326416015625, 0.01136016845703125, 0.00543212890625, -0.0175323486328125, -0.035736083984375, -0.0015316009521484375, -0.03314208984375, -0.03973388671875, 0.01326751708984375, 0.01065826416015625, 0.0099639892578125, 0.033721923828125, 0.045135498046875, 0.0236663818359375, 0.011383056640625, -0.004337310791015625, -0.001132965087890625, -0.007457733154296875, 0.0200347900390625, 0.010223388671875, -0.01192474365234375, 0.0537109375, -0.0263519287109375, 0.0029048919677734375, 0.007198333740234375, -0.0295257568359375, 0.00806427001953125, -0.0005083084106445312, 0.0137176513671875, 0.008941650390625, 0.0077667236328125, 0.008026123046875, 0.03204345703125, -0.026947021484375, 0.03125, 0.01727294921875, 0.00530242919921875, 0.00455474853515625, 0.053436279296875, -0.0035648345947265625, -0.04998779296875, 0.051483154296875, 0.0128631591796875, -0.0053558349609375, 0.04296875, -0.025665283203125, 0.0025920867919921875, -0.031829833984375, 0.03460693359375, 0.01361083984375, 0.01058197021484375, 0.0242919921875, -0.00739288330078125, 0.0026645660400390625, -0.01184844970703125, -0.0308990478515625, -0.05584716796875, 0.09503173828125, -0.0286712646484375, 0.00954437255859375, 0.031402587890625, -0.0285186767578125, 0.014801025390625, 0.016845703125, 0.003875732421875, -0.01068115234375, -0.0982666015625, -0.041748046875, 0.06689453125, -0.05511474609375, -0.044036865234375, -0.0005869865417480469, -0.01448822021484375, 0.006092071533203125, -0.04632568359375, 0.017303466796875, -0.0166168212890625, 0.053131103515625, 0.0411376953125, 0.0198974609375, -0.0166778564453125, 0.035125732421875, -0.01422119140625, 0.021759033203125, -0.003726959228515625, -0.05450439453125, -0.01438140869140625, -0.02093505859375, 0.0050506591796875, 0.033843994140625, -0.108154296875, 0.008087158203125, -0.065185546875, 0.058502197265625, -0.019683837890625, -0.01800537109375, 0.051544189453125, -0.011077880859375, -0.01715087890625, 0.04119873046875, 0.0574951171875, -0.0338134765625, -0.0022144317626953125, 0.0186004638671875, -0.0029811859130859375, 0.03607177734375, 0.0011196136474609375, 0.01010894775390625, -0.01047515869140625, -0.005718231201171875, -0.059814453125, -0.03271484375, -0.04766845703125, 0.0408935546875, 0.033111572265625, -0.041961669921875, 0.0166015625, -0.053802490234375, -0.0093231201171875, 0.018402099609375, 0.01885986328125, 0.023651123046875, -0.01039886474609375, -0.004497528076171875, 0.0028133392333984375, 0.04241943359375, 0.02587890625, 0.0028972625732421875, -0.0091400146484375, 0.0072479248046875, 0.060546875, -0.0021762847900390625, -0.0304412841796875, 0.035247802734375, 0.0099334716796875, -0.04150390625, 0.06597900390625, -0.01470947265625, 0.03448486328125, -0.0259552001953125, 0.03662109375, 0.006969451904296875, 0.0082855224609375, 0.008331298828125, 0.0160675048828125, 0.04229736328125, -0.03936767578125, 0.00011396408081054688, 0.048553466796875, -0.053497314453125, 0.0086517333984375, 0.034271240234375, 0.0010938644409179688, 0.0689697265625, 0.01450347900390625, -0.005931854248046875, 0.03314208984375, 0.00222015380859375, 0.0260467529296875, 0.0565185546875, 0.01824951171875, 0.0877685546875, 0.02337646484375, 0.0289306640625, 0.012969970703125, 0.00418853759765625, 0.0281524658203125, 0.0004649162292480469, 0.01125335693359375, -0.04339599609375, 0.0016660690307617188, 0.036865234375, 0.02838134765625, -0.02691650390625, -0.0467529296875, 0.019134521484375, 0.005077362060546875, 0.004116058349609375, 0.0096588134765625, 0.0027866363525390625, -0.04315185546875, 0.01053619384765625, -0.043121337890625, 0.01435089111328125, 0.039794921875, 0.039337158203125, 0.002132415771484375, 0.0034122467041015625, -0.07415771484375, -0.0281829833984375, -0.0267791748046875, 0.024139404296875, 0.006572723388671875, 0.022857666015625, -0.0283203125, 0.056427001953125, -0.0102691650390625, 0.001674652099609375, -0.0211944580078125, 0.0297088623046875, -0.0367431640625, 0.032470703125, -0.042144775390625, -0.0117340087890625, -0.031402587890625, 0.04193115234375, 0.0281524658203125, -0.016754150390625, 0.023773193359375, 0.042388916015625, -0.00445556640625, -0.0107879638671875, 0.0477294921875, -0.003849029541015625, 0.007312774658203125, -0.00476837158203125, 0.035186767578125, 0.031707763671875, 0.00008797645568847656, -0.0209808349609375, 0.045318603515625, 0.0271759033203125, -0.061859130859375, 0.052581787109375, -0.02362060546875, -0.036468505859375, 0.017822265625, -0.0411376953125, 0.1048583984375, -0.04522705078125, -0.0849609375, 0.0003504753112792969, -0.030426025390625, -0.0462646484375, 0.0155487060546875, 0.0233612060546875, -0.060302734375, 0.06634521484375, 0.020904541015625, 0.0020732879638671875, -0.00514984130859375, -0.0182342529296875, 0.0245208740234375, -0.037506103515625, 0.003948211669921875, -0.0034198760986328125, -0.042388916015625, -0.027984619140625, -0.0174713134765625, 0.0172119140625, 0.0246429443359375, 0.026947021484375, 0.0171661376953125, 0.0321044921875, 0.01441192626953125, 0.00714111328125, 0.005687713623046875, 0.002048492431640625, 0.030975341796875, -0.0173492431640625, -0.010528564453125, -0.0099639892578125, -0.0025882720947265625, -0.015533447265625, 0.0684814453125, -0.031768798828125, -0.02508544921875, -0.01195526123046875, 0.03875732421875, -0.0169830322265625, 0.0455322265625, -0.0198822021484375, -0.04730224609375, -0.0635986328125, -0.0043792724609375, 0.0246124267578125, 0.046417236328125, 0.00994873046875, 0.0011701583862304688, 0.034149169921875, -0.031524658203125, 0.0267333984375, -0.00007730722427368164, 0.03692626953125, 0.0297698974609375, 0.016510009765625, -0.0178070068359375, -0.04534912109375, -0.0205230712890625, -0.007106781005859375, -0.0164642333984375, 0.005741119384765625, -0.0330810546875, -0.004154205322265625, 0.0283355712890625, 0.0186920166015625, 0.0119171142578125, -0.0135498046875, -0.01277923583984375, 0.044097900390625, -0.017364501953125, -0.044097900390625, -0.024383544921875, -0.018035888671875, -0.027557373046875, 0.003047943115234375, 0.0127716064453125, 0.0107269287109375, -0.01299285888671875, 0.009124755859375, -0.0022296905517578125, 0.00540924072265625, 0.0209197998046875, -0.05584716796875, 0.039459228515625, 0.0143280029296875, 0.000029027462005615234, -0.014190673828125, -0.01165008544921875, 0.006488800048828125, 0.015869140625, -0.0305023193359375, -0.044036865234375, -0.0357666015625, 0.0232696533203125, -0.055389404296875, -0.0156097412109375, -0.01015472412109375, -0.00991058349609375, 0.0193634033203125, 0.003322601318359375, -0.0017175674438476562, 0.051116943359375, -0.00084686279296875, -0.03778076171875, -0.0297088623046875, 0.00971221923828125, 0.0196685791015625, -0.004787445068359375, 0.0157012939453125, -0.051239013671875, -0.018890380859375, 0.01171875, -0.004436492919921875, 0.020660400390625, -0.022216796875, -0.02337646484375, 0.0858154296875, 0.0021762847900390625, -0.009063720703125, -0.0265960693359375, 0.0301666259765625, -0.0267181396484375, 0.027557373046875, -0.0098114013671875, 0.00276947021484375, 0.0298004150390625, 0.0265655517578125, -0.01232147216796875, 0.00020432472229003906, 0.03753662109375, -0.041748046875, 0.01003265380859375, -0.0031414031982421875, 0.01503753662109375, -0.0145111083984375, 0.007617950439453125, -0.01393890380859375, 0.0245513916015625, 0.0290985107421875, -0.0220489501953125, -0.035675048828125, 0.0164947509765625, -0.00626373291015625, 0.0005736351013183594, -0.0192718505859375, -0.032257080078125, -0.050872802734375, 0.02984619140625, 0.01061248779296875, 0.010284423828125, 0.0201873779296875, -0.02374267578125, 0.026153564453125, -0.04620361328125, 0.007320404052734375, 0.041168212890625, -0.07403564453125, -0.0008802413940429688, -0.004024505615234375, -0.031768798828125, 0.006694793701171875, 0.01438140869140625, -0.07208251953125, 0.005496978759765625, -0.0537109375, 0.0031642913818359375, -0.08660888671875, 0.0278167724609375, 0.032135009765625, -0.034332275390625, -0.001880645751953125, -0.025909423828125, -0.003841400146484375, 0.01036834716796875, -0.049530029296875, 0.0205535888671875, 0.04864501953125, -0.0311737060546875, -0.0267333984375, 0.03131103515625, -0.0037250518798828125, 0.0111236572265625, -0.004810333251953125, -0.01311492919921875, 0.0197296142578125, 0.019134521484375, 0.0265045166015625, 0.004024505615234375, -0.0212860107421875, 0.009521484375, 0.019927978515625, -0.007732391357421875, 0.053131103515625, -0.005695343017578125, 0.03466796875, -0.007556915283203125, 0.005008697509765625, 0.02783203125, -0.027252197265625, 0.00188446044921875, 0.01502227783203125, -0.037933349609375, -0.0303192138671875, -0.0166473388671875, 0.01103973388671875, -0.0146331787109375, 0.0001068115234375 ]
eadc2b3a0449ee1a7455f0b70fad54457186ad6e
Wordpress Stackexchange Q: What is the real intention for admin-post.php? While looking for proper form submission handling in plugins for users (frontend) I've stumbled upon this article Handling POST Requests the WordPress Way, which encourages to use admin-post.php for this purpose. Taking a look into header we can find some kind of confirmation: /** * WordPress Generic Request (POST/GET) Handler * * Intended for form submission handling in themes and plugins. * * @package WordPress * @subpackage Administration */ My main concern is that this method comes from admin part of WP code and its use in non-admin tasks makes some ambiguity. Can anyone (especially WP authors) confirm that this approach intention is really holistic or admin only as I think? A: Seems fairly clear from the use of the nopriv handling (for non logged in users) in admin-post.php that this is indeed useable for both frontend and backend form handling, very similar to how admin-ajax.php can be used.
Q: What is the real intention for admin-post.php? While looking for proper form submission handling in plugins for users (frontend) I've stumbled upon this article Handling POST Requests the WordPress Way, which encourages to use admin-post.php for this purpose. Taking a look into header we can find some kind of confirmation: /** * WordPress Generic Request (POST/GET) Handler * * Intended for form submission handling in themes and plugins. * * @package WordPress * @subpackage Administration */ My main concern is that this method comes from admin part of WP code and its use in non-admin tasks makes some ambiguity. Can anyone (especially WP authors) confirm that this approach intention is really holistic or admin only as I think? A: Seems fairly clear from the use of the nopriv handling (for non logged in users) in admin-post.php that this is indeed useable for both frontend and backend form handling, very similar to how admin-ajax.php can be used. A: admin-post.php is like a poor mans controller for handling requests. It's useful in the sense that you don't need to process your request on an alternative hook such as init and check to see whether or not special keys exists on the superglobals, like: function handle_request() { if ( !empty($_POST['action']) && $_POST['action'] === 'xyz' ) { //do business logic } } add_action('init', 'handle_request'); Instead using admin-post.php affords you the ability to specify a callback function that will always be called on any request that supplies an action value that matches the suffix supplied to the action. function handle_request() { //do business logic here... } add_action( 'admin_post_handle_request', 'handle_request' ); add_action( 'admin_post_nopriv_handle_request', 'handle_request' ); In the above example, we can forgoe the need to check for !empty($_POST['action']) && $_POST['action'] === 'xyz' because at this point that processing has been taken care of for us. That is the result of the specifying the action parameter and value and posting said value to the admin-post.php URL. Additionally what is beneficial is that admin-post.php handles both $_POST and $_GET so it's not neccessary to check what kind of method the request is of course unless you want to for more complex processing. Bottom line: It is safe to use, it's just the name that throws you off. By the way you should also remember to wp_redirect() the user back to an acceptable location as requesting admin-post.php will return nothing but a white screen as its response.
wordpress
{ "language": "en", "length": 399, "provenance": "stackexchange_00019.jsonl.gz:463799", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/220073" }
[ 0.07537841796875, -0.012481689453125, -0.00905609130859375, -0.030181884765625, 0.00463104248046875, -0.041778564453125, 0.045166015625, -0.0037136077880859375, 0.00864410400390625, 0.0135345458984375, 0.01416778564453125, -0.0197296142578125, 0.0015106201171875, -0.0533447265625, 0.0075836181640625, -0.00634765625, 0.0018396377563476562, 0.00789642333984375, 0.01097869873046875, -0.0132293701171875, -0.007511138916015625, -0.01153564453125, 0.0163421630859375, -0.05364990234375, 0.01554107666015625, 0.0038394927978515625, -0.0160980224609375, 0.0301971435546875, -0.0261383056640625, -0.01546478271484375, 0.0038928985595703125, 0.01073455810546875, 0.032257080078125, -0.01078033447265625, -0.01187896728515625, -0.0093994140625, 0.0125579833984375, -0.0036029815673828125, -0.009063720703125, 0.01239013671875, 0.03216552734375, -0.0309906005859375, -0.0157318115234375, 0.0099334716796875, -0.0175018310546875, -0.0006542205810546875, 0.01197052001953125, -0.014892578125, 0.0128173828125, -0.01412200927734375, -0.024200439453125, 0.0033130645751953125, -0.00852203369140625, -0.005657196044921875, -0.006717681884765625, -0.0217742919921875, -0.03131103515625, -0.01322174072265625, 0.060394287109375, 0.02001953125, -0.041961669921875, -0.08502197265625, 0.0188751220703125, -0.069580078125, -0.004642486572265625, -0.0166168212890625, 0.0130462646484375, 0.030426025390625, -0.068603515625, -0.018218994140625, 0.04583740234375, -0.0198211669921875, 0.000023424625396728516, -0.017333984375, 0.0245819091796875, -0.031402587890625, 0.0184783935546875, -0.01418304443359375, -0.003292083740234375, 0.036895751953125, -0.0239715576171875, -0.0130157470703125, 0.00833892822265625, -0.025390625, 0.0014181137084960938, 0.0109405517578125, -0.0217742919921875, -0.00457000732421875, -0.032806396484375, -0.042694091796875, -0.0343017578125, -0.0284576416015625, -0.03240966796875, 0.0000020265579223632812, -0.029541015625, -0.0120086669921875, 0.016510009765625, -0.011444091796875, 0.0245208740234375, -0.02520751953125, 0.019500732421875, -0.053253173828125, 0.001247406005859375, 0.01554107666015625, 0.027252197265625, 0.0184478759765625, -0.0024871826171875, -0.006084442138671875, 0.040924072265625, 0.005275726318359375, -0.007396697998046875, 0.057952880859375, 0.0200347900390625, 0.008697509765625, 0.004207611083984375, -0.00994873046875, -0.0157012939453125, 0.0206451416015625, -0.0146484375, 0.00708770751953125, -0.0084381103515625, 0.015350341796875, 0.01509857177734375, -0.01557159423828125, 0.033721923828125, 0.0308837890625, -0.00012373924255371094, -0.036865234375, 0.0005440711975097656, 0.02142333984375, -0.01551055908203125, 0.018524169921875, 0.04833984375, -0.02447509765625, -0.034515380859375, -0.0173492431640625, -0.00351715087890625, -0.0016574859619140625, -0.0007925033569335938, -0.01404571533203125, 0.0155181884765625, -0.0223846435546875, -0.0010881423950195312, 0.01666259765625, -0.0253753662109375, 0.024200439453125, 0.0156097412109375, -0.0091400146484375, -0.0014104843139648438, -0.040496826171875, -0.052947998046875, -0.023345947265625, -0.00091552734375, 0.0231170654296875, 0.006198883056640625, 0.0447998046875, 0.039459228515625, -0.0016794204711914062, -0.031982421875, -0.0019350051879882812, 0.018890380859375, -0.005550384521484375, 0.04010009765625, -0.00766754150390625, -0.0189666748046875, 0.0137481689453125, -0.061492919921875, -0.014495849609375, 0.0236663818359375, -0.01126861572265625, 0.073486328125, 0.0031871795654296875, -0.036376953125, 0.006496429443359375, 0.0213165283203125, -0.01276397705078125, -0.0248565673828125, 0.03521728515625, 0.044921875, 0.003025054931640625, 0.0240325927734375, -0.0019311904907226562, 0.084716796875, 0.01526641845703125, -0.045501708984375, -0.01502227783203125, 0.0238494873046875, 0.0231475830078125, 0.006549835205078125, 0.0201263427734375, 0.07049560546875, 0.021636962890625, 0.033782958984375, 0.043487548828125, -0.01763916015625, -0.0552978515625, -0.024627685546875, 0.00928497314453125, -0.031585693359375, -0.0185699462890625, -0.02630615234375, -0.007328033447265625, -0.00743865966796875, -0.0020961761474609375, -0.0132598876953125, -0.0296630859375, -0.002521514892578125, 0.0193023681640625, 0.024261474609375, 0.04962158203125, -0.00957489013671875, 0.0242767333984375, -0.0243377685546875, 0.0027065277099609375, -0.0285491943359375, -0.01233673095703125, -0.027496337890625, 0.001644134521484375, -0.0223236083984375, 0.038116455078125, -0.0296630859375, -0.0275115966796875, -0.044921875, -0.004428863525390625, 0.0389404296875, 0.00917816162109375, 0.0034046173095703125, -0.001743316650390625, 0.045806884765625, 0.0171966552734375, 0.01080322265625, -0.004276275634765625, 0.0252227783203125, 0.03753662109375, -0.01910400390625, -0.0186614990234375, -0.033355712890625, -0.07293701171875, 0.0062103271484375, 0.055999755859375, 0.0071563720703125, 0.032073974609375, -0.017303466796875, 0.04022216796875, 0.00409698486328125, -0.053009033203125, -0.0080413818359375, 0.025421142578125, -0.005615234375, 0.005954742431640625, -0.031219482421875, -0.0181121826171875, 0.033447265625, -0.06329345703125, 0.0006728172302246094, 0.03668212890625, 0.000023543834686279297, -0.044464111328125, -0.00428009033203125, -0.0139007568359375, 0.0198516845703125, -0.0531005859375, -0.06671142578125, 0.0107574462890625, 0.0179901123046875, 0.002285003662109375, 0.04644775390625, 0.050262451171875, -0.025726318359375, -0.02117919921875, 0.0173797607421875, 0.059661865234375, -0.006122589111328125, -0.0011682510375976562, 0.07403564453125, -0.03271484375, -0.0665283203125, -0.0033740997314453125, 0.056121826171875, -0.0038509368896484375, -0.035888671875, -0.00015342235565185547, -0.035003662109375, -0.0223236083984375, -0.006237030029296875, -0.025970458984375, 0.01535797119140625, -0.0196075439453125, 0.05572509765625, 0.01042938232421875, 0.015716552734375, 0.033447265625, -0.04522705078125, 0.09649658203125, -0.004756927490234375, -0.0360107421875, 0.0016908645629882812, -0.0183868408203125, 0.01300811767578125, -0.0029144287109375, 0.045654296875, 0.053253173828125, 0.0201263427734375, -0.008697509765625, 0.00572967529296875, 0.02239990234375, -0.0033168792724609375, 0.03277587890625, 0.006168365478515625, -0.0196533203125, -0.0538330078125, -0.042877197265625, 0.0142669677734375, 0.09320068359375, -0.0251007080078125, -0.07537841796875, -0.01152801513671875, 0.034698486328125, -0.06365966796875, -0.0428466796875, -0.0013713836669921875, -0.0714111328125, 0.001972198486328125, -0.024566650390625, -0.03851318359375, -0.0025844573974609375, 0.0017604827880859375, 0.00785064697265625, -0.02545166015625, 0.04376220703125, 0.000051975250244140625, -0.0205078125, -0.0482177734375, -0.046722412109375, -0.006702423095703125, 0.02423095703125, 0.01080322265625, 0.047271728515625, 0.0182647705078125, -0.058380126953125, 0.004009246826171875, 0.0304412841796875, -0.02972412109375, 0.0035915374755859375, 0.0178680419921875, -0.05767822265625, 0.00930023193359375, -0.011138916015625, -0.00921630859375, -0.009246826171875, 0.0173492431640625, -0.00989532470703125, -0.0245819091796875, -0.018829345703125, -0.006252288818359375, -0.01209259033203125, 0.0125579833984375, -0.021331787109375, -0.0184173583984375, -0.0635986328125, 0.035125732421875, 0.01537322998046875, -0.0059356689453125, -0.03900146484375, -0.003231048583984375, -0.046966552734375, 0.039093017578125, -0.0557861328125, 0.036163330078125, 0.005374908447265625, 0.00954437255859375, -0.01256561279296875, 0.0231475830078125, 0.0063629150390625, 0.0341796875, -0.0272979736328125, -0.0012578964233398438, -0.02490234375, 0.042083740234375, -0.004344940185546875, 0.01039886474609375, 0.003917694091796875, 0.01020050048828125, -0.00879669189453125, -0.06591796875, 0.045013427734375, -0.027191162109375, -0.007598876953125, -0.04425048828125, -0.0089874267578125, -0.0041046142578125, 0.0841064453125, -0.0225982666015625, -0.0208740234375, -0.0029582977294921875, 0.0225982666015625, -0.041229248046875, -0.054443359375, -0.0247344970703125, 0.005764007568359375, 0.0005469322204589844, -0.01081085205078125, 0.003582000732421875, 0.005031585693359375, -0.018402099609375, 0.05078125, -0.007801055908203125, -0.0047454833984375, 0.038665771484375, -0.0880126953125, 0.041046142578125, -0.014434814453125, 0.041412353515625, -0.06689453125, -0.004375457763671875, -0.057220458984375, -0.034637451171875, -0.0207672119140625, 0.0305938720703125, 0.036712646484375, -0.00040340423583984375, -0.03131103515625, -0.00926971435546875, 0.029052734375, 0.0088653564453125, 0.042144775390625, -0.0172576904296875, -0.0075531005859375, 0.01271820068359375, -0.0192413330078125, -0.00438690185546875, -0.0030803680419921875, -0.029327392578125, 0.01129913330078125, -0.0175323486328125, -0.0190277099609375, -0.0011034011840820312, -0.07366943359375, 0.045379638671875, -0.040740966796875, -0.0596923828125, -0.037872314453125, -0.049652099609375, 0.00997161865234375, -0.0186920166015625, -0.004238128662109375, -0.0191192626953125, -0.0697021484375, 0.043701171875, 0.0231475830078125, -0.00235748291015625, -0.0017642974853515625, 0.035125732421875, 0.01036834716796875, -0.03216552734375, -0.07940673828125, -0.01654052734375, 0.032562255859375, 0.0009489059448242188, 0.00605010986328125, 0.00785064697265625, -0.034515380859375, 0.042022705078125, 0.0018405914306640625, 0.01812744140625, -0.0421142578125, 0.0252532958984375, -0.005878448486328125, -0.017669677734375, 0.018890380859375, 0.0004367828369140625, 0.0199432373046875, 0.0157318115234375, -0.01016998291015625, 0.001407623291015625, -0.0275115966796875, 0.0269622802734375, -0.0163116455078125, 0.0225677490234375, -0.033355712890625, -0.036529541015625, 0.017730712890625, -0.034698486328125, -0.0267181396484375, 0.00647735595703125, 0.00769805908203125, -0.01422882080078125, -0.04034423828125, -0.01273345947265625, -0.004608154296875, 0.0009250640869140625, 0.0181732177734375, 0.02490234375, -0.00205230712890625, -0.00750732421875, -0.0239410400390625, 0.00027060508728027344, 0.01348114013671875, -0.0166015625, -0.03887939453125, -0.0247955322265625, 0.00292205810546875, 0.0472412109375, 0.01543426513671875, -0.019439697265625, 0.03759765625, 0.05328369140625, -0.00415802001953125, -0.025665283203125, 0.0361328125, -0.03387451171875, -0.033538818359375, 0.0139617919921875, 0.00804901123046875, 0.0014677047729492188, 0.0028629302978515625, 0.03973388671875, 0.041351318359375, 0.00957489013671875, -0.03363037109375, 0.09228515625, 0.070556640625, 0.0008254051208496094, 0.0110321044921875, 0.0042572021484375, 0.00115966796875, -0.0212860107421875, -0.0450439453125, -0.04803466796875, -0.0180511474609375, 0.009002685546875, 0.0328369140625, 0.03619384765625, 0.0057220458984375, 0.01020050048828125, 0.013275146484375, -0.031158447265625, 0.04486083984375, 0.0257415771484375, -0.0316162109375, -0.0266265869140625, 0.003936767578125, 0.042816162109375, 0.00421905517578125, 0.009918212890625, 0.0010652542114257812, 0.017669677734375, 0.02032470703125, -0.023590087890625, -0.033355712890625, 0.02081298828125, 0.0311279296875, -0.005634307861328125, -0.01224517822265625, -0.0030879974365234375, -0.02838134765625, -0.0122528076171875, -0.007297515869140625, 0.004657745361328125, 0.01141357421875, 0.007358551025390625, 0.0133056640625, -0.02545166015625, -0.01364898681640625, -0.004894256591796875, -0.005855560302734375, 0.051361083984375, 0.01751708984375, -0.015625, -0.01209259033203125, -0.06903076171875, -0.0338134765625, -0.040618896484375, 0.0005197525024414062, -0.03021240234375, 0.015045166015625, 0.0035228729248046875, -0.001262664794921875, 0.01561737060546875, 0.01174163818359375, 0.0024738311767578125, 0.0352783203125, 0.01131439208984375, 0.035919189453125, -0.037628173828125, 0.0611572265625, -0.0163116455078125, 0.0175628662109375, -0.004791259765625, 0.032073974609375, 0.02825927734375, 0.002384185791015625, 0.0031604766845703125, -0.06439208984375, -0.0218963623046875, 0.0035953521728515625, -0.008575439453125, 0.04949951171875, 0.0256805419921875, -0.00690460205078125, -0.0012578964233398438, 0.003627777099609375, 0.021484375, -0.002521514892578125, -0.004673004150390625, -0.00586700439453125, -0.0307159423828125, 0.02825927734375, 0.00946044921875, -0.00888824462890625, -0.0243682861328125, -0.06396484375, 0.0330810546875, 0.03759765625, -0.006916046142578125, 0.00742340087890625, -0.004566192626953125, 0.02197265625, 0.09014892578125, 0.0151824951171875, 0.056884765625, 0.0634765625, 0.038177490234375, 0.025909423828125, 0.016082763671875, 0.01485443115234375, -0.0068359375, 0.0257415771484375, -0.0146636962890625, -0.00045680999755859375, -0.00927734375, -0.0169219970703125, 0.0325927734375, 0.09466552734375, 0.09783935546875, -0.1158447265625, 0.007785797119140625, 0.0340576171875, -0.0258331298828125, -0.0026569366455078125, -0.01245880126953125, -0.0028133392333984375, -0.00033593177795410156, 0.0298614501953125, -0.003032684326171875, -0.027252197265625, 0.00604248046875, -0.0012598037719726562, -0.0084686279296875, 0.0030574798583984375, 0.0633544921875, -0.00222015380859375, -0.0133209228515625, -0.0146484375, -0.0168304443359375, -0.00899505615234375, 0.0021762847900390625, 0.0206451416015625, -0.042449951171875, -0.0196075439453125, -0.0433349609375, -0.04156494140625, -0.0145263671875, -0.0225677490234375, 0.032562255859375, 0.04052734375, 0.020477294921875, 0.07183837890625, -0.0085296630859375, 0.0433349609375, 0.0196990966796875, 0.037841796875, -0.054534912109375, -0.04669189453125, -0.013763427734375, 0.039520263671875, -0.0237274169921875, 0.034149169921875, -0.0089263916015625, -0.035430908203125, -0.0108184814453125, -0.084228515625, 0.050994873046875, 0.003963470458984375, -0.019195556640625, 0.0025653839111328125, -0.040496826171875, -0.002841949462890625, -0.020904541015625, -0.03369140625, -0.06463623046875, -0.0118865966796875, -0.024566650390625, -0.027740478515625, 0.0283050537109375, -0.009918212890625, -0.07574462890625, 0.05206298828125, 0.041748046875, 0.0225830078125, -0.013824462890625, 0.0082244873046875, -0.035888671875, -0.0176544189453125, -0.053985595703125, 0.0096588134765625, 0.0006351470947265625, 0.00833892822265625, -0.03436279296875, 0.00919342041015625, -0.028289794921875, -0.018585205078125, 0.0450439453125, 0.00817108154296875, -0.0760498046875, -0.01323699951171875, 0.046722412109375, 0.01947021484375, 0.0262908935546875, 0.0760498046875, 0.0251312255859375, -0.0027713775634765625, 0.036773681640625, 0.0218658447265625, 0.0406494140625, -0.01285552978515625, 0.00229644775390625, 0.062164306640625, 0.0032520294189453125, -0.00923919677734375, -0.030029296875, 0.0235443115234375, -0.05023193359375, -0.00872802734375, 0.0374755859375, -0.002105712890625, -0.037139892578125, 0.0244903564453125, -0.0230712890625, -0.04595947265625, -0.0164337158203125, -0.0286102294921875, 0.017425537109375, -0.004726409912109375, 0.01027679443359375, 0.0205078125, 0.01425933837890625, 0.032257080078125, -0.00658416748046875, 0.0032806396484375, 0.045562744140625, -0.04168701171875, 0.0212249755859375, -0.017486572265625, 0.0078125, -0.058074951171875, 0.0126953125, 0.0183868408203125, 0.0242767333984375, -0.040618896484375, 0.0023593902587890625, 0.0146484375, 0.025177001953125, 0.01947021484375, 0.0090484619140625, 0.0628662109375, -0.040802001953125, -0.022674560546875, -0.0096282958984375, -0.011077880859375, 0.01080322265625, 0.00437164306640625, 0.0108795166015625, 0.007633209228515625, -0.0031070709228515625, 0.0142974853515625, -0.018951416015625, 0.00904083251953125, -0.011932373046875, 0.027191162109375, 0.01219940185546875, 0.030609130859375, -0.035003662109375, -0.0126495361328125, -0.00004184246063232422, -0.01088714599609375, -0.0169219970703125, -0.00151824951171875, -0.0168609619140625, -0.0184478759765625, 0.0052947998046875, 0.0228271484375, 0.021392822265625, 0.02044677734375, 0.035247802734375, 0.024810791015625, -0.0025348663330078125, -0.004428863525390625, 0.0238037109375, -0.01053619384765625, -0.0243377685546875, -0.0223846435546875, -0.04876708984375, -0.007480621337890625, -0.02734375, 0.0105743408203125, -0.013092041015625, -0.0019445419311523438, -0.0215606689453125, 0.014739990234375, 0.00026726722717285156, -0.047393798828125, 0.08282470703125, -0.03607177734375, 0.1297607421875, -0.005764007568359375, -0.04443359375, -0.0306549072265625, -0.0031890869140625, -0.0110321044921875, 0.014495849609375, 0.0250244140625, -0.0216827392578125, 0.0272369384765625, 0.01244354248046875, 0.004589080810546875, 0.0135955810546875, -0.0196685791015625, 0.016021728515625, -0.0168609619140625, 0.0085906982421875, -0.006793975830078125, 0.0184478759765625, -0.01378631591796875, -0.0200347900390625, 0.06378173828125, 0.0129547119140625, 0.062347412109375, -0.046142578125, 0.031768798828125, -0.033966064453125, 0.0192413330078125, -0.039215087890625, 0.0007066726684570312, 0.01078033447265625, -0.0034465789794921875, -0.033660888671875, 0.006290435791015625, -0.07391357421875, 0.0091400146484375, 0.028778076171875, -0.042205810546875, 0.01441192626953125, 0.029815673828125, -0.0030517578125, -0.050872802734375, -0.0014142990112304688, -0.019805908203125, -0.007476806640625, -0.0016002655029296875, -0.007049560546875, 0.01837158203125, 0.021270751953125, -0.0023193359375, 0.047821044921875, -0.0582275390625, -0.0506591796875, 0.0003275871276855469, -0.08880615234375, -0.037017822265625, 0.02447509765625, -0.0123443603515625, 0.0335693359375, 0.0020465850830078125, -0.021331787109375, 0.055084228515625, 0.006526947021484375, 0.01038360595703125, 0.01169586181640625, 0.020843505859375, -0.049591064453125, -0.0233001708984375, 0.03814697265625, 0.019378662109375, 0.0208282470703125, -0.0885009765625, 0.005504608154296875, 0.0209197998046875, 0.0080413818359375, -0.0135498046875, -0.024200439453125, -0.0262451171875, -0.003997802734375, -0.0235137939453125, -0.059173583984375, -0.054412841796875, 0.03564453125, -0.007537841796875, -0.041290283203125, -0.0001728534698486328, -0.0140838623046875, -0.047149658203125, 0.0699462890625, -0.04058837890625, 0.0537109375, -0.00024509429931640625, 0.03814697265625, -0.06298828125, -0.0196533203125, -0.00479888916015625, 0.019622802734375, -0.005184173583984375, 0.04412841796875, 0.05303955078125, -0.041595458984375, -0.031219482421875, 0.0312347412109375, 0.0178985595703125, 0.0718994140625, 0.00518798828125, -0.00939178466796875, 0.00037384033203125, 0.037689208984375, 0.0012998580932617188, -0.060394287109375, -0.0187835693359375, 0.00971221923828125, 0.0230865478515625, -0.03680419921875, 0.041107177734375, 0.037750244140625, -0.0242462158203125, -0.055908203125, 0.027679443359375, -0.01207733154296875, -0.034515380859375, -0.01029205322265625, 0.01313018798828125, 0.024993896484375, 0.00286865234375, 0.0018863677978515625, -0.03143310546875, -0.048614501953125, -0.01215362548828125, 0.01514434814453125, -0.0159912109375, 0.05230712890625, -0.010894775390625, -0.053253173828125, -0.00954437255859375, -0.0199737548828125, 0.0207366943359375, 0.00884246826171875, -0.0165557861328125, 0.039581298828125, 0.035858154296875, -0.0284423828125, 0.055145263671875, 0.018646240234375, 0.0252838134765625, -0.0240478515625, -0.01523590087890625, -0.015045166015625, 0.006595611572265625, 0.06829833984375, 0.08306884765625, 0.020843505859375, -0.0550537109375, -0.01433563232421875, -0.033233642578125, -0.02191162109375, -0.0301055908203125, 0.01800537109375, -0.06280517578125, -0.0163116455078125, 0.0017442703247070312, -0.02569580078125, -0.011688232421875, 0.041351318359375, -0.029937744140625, -0.01552581787109375, -0.0139007568359375, -0.0626220703125, 0.0132904052734375, -0.07958984375, 0.07330322265625, -0.036285400390625, -0.0263214111328125, 0.043304443359375, 0.036590576171875, 0.0074615478515625, 0.06591796875, 0.0218505859375, 0.03631591796875, -0.04302978515625, -0.006999969482421875, 0.0224456787109375, -0.0003788471221923828, -0.01605224609375, -0.01739501953125, -0.008941650390625, 0.0159149169921875, -0.004520416259765625, 0.01125335693359375, 0.026824951171875, 0.0190582275390625, -0.0034389495849609375, 0.061279296875, -0.003475189208984375, -0.0276947021484375, -0.03692626953125, 0.04058837890625, 0.043670654296875, -0.04376220703125, 0.07537841796875, -0.03302001953125, 0.0133209228515625, 0.043243408203125, -0.0149383544921875, -0.003528594970703125, -0.019775390625, 0.03485107421875, 0.0107574462890625, -0.01348876953125 ]
857418c41ed9a17eecd8f569da874296bafc6c77
Wordpress Stackexchange Q: Is define('WP_CACHE', true) needed for object caching? I am just reading the docs at https://codex.wordpress.org/Class_Reference/WP_Object_Cache and am not clear on something... If I install an object cache plugin by adding the drop-in file object-cache.php to the wp-content directory do I need to add define('WP_CACHE', true) to my wp-config.php file to activate caching or will the drop-in file just start interacting with the cache by its mere presence? A: No, including this constant with a value of TRUE loads advanced-cache.php. Object-cache.php is loaded and used automatically. See https://wordpress.org/support/article/editing-wp-config-php/
Q: Is define('WP_CACHE', true) needed for object caching? I am just reading the docs at https://codex.wordpress.org/Class_Reference/WP_Object_Cache and am not clear on something... If I install an object cache plugin by adding the drop-in file object-cache.php to the wp-content directory do I need to add define('WP_CACHE', true) to my wp-config.php file to activate caching or will the drop-in file just start interacting with the cache by its mere presence? A: No, including this constant with a value of TRUE loads advanced-cache.php. Object-cache.php is loaded and used automatically. See https://wordpress.org/support/article/editing-wp-config-php/
wordpress
{ "language": "en", "length": 88, "provenance": "stackexchange_00019.jsonl.gz:463804", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/220088" }
[ 0.0826416015625, -0.00909423828125, 0.00292205810546875, -0.049285888671875, 0.0057220458984375, -0.035369873046875, 0.02410888671875, -0.00444793701171875, -0.006221771240234375, 0.01934814453125, -0.05316162109375, -0.0119476318359375, 0.022003173828125, -0.00887298583984375, 0.009521484375, -0.041046142578125, 0.0413818359375, -0.0213623046875, 0.040863037109375, -0.0007777214050292969, 0.039947509765625, 0.0430908203125, 0.009552001953125, 0.056610107421875, 0.041748046875, -0.06451416015625, 0.033843994140625, -0.005748748779296875, 0.034088134765625, -0.0174713134765625, 0.01271820068359375, -0.004726409912109375, 0.05712890625, 0.019134521484375, -0.08453369140625, -0.020782470703125, -0.03985595703125, 0.009246826171875, -0.036285400390625, 0.02862548828125, -0.007266998291015625, 0.0233306884765625, -0.0286865234375, 0.035400390625, -0.0592041015625, -0.041107177734375, -0.0217132568359375, -0.0020656585693359375, 0.0250701904296875, -0.0178375244140625, -0.003814697265625, 0.03277587890625, 0.0218505859375, -0.048736572265625, -0.00948333740234375, 0.00321197509765625, -0.0067291259765625, 0.007228851318359375, 0.018096923828125, -0.0258331298828125, -0.0280609130859375, 0.00768280029296875, 0.0281524658203125, 0.01241302490234375, 0.0185089111328125, -0.0260467529296875, -0.001873016357421875, 0.042724609375, -0.08868408203125, 0.0005249977111816406, 0.07305908203125, -0.05859375, -0.00153350830078125, -0.00260162353515625, 0.0151519775390625, -0.0176239013671875, -0.00392913818359375, -0.0228729248046875, 0.01166534423828125, 0.041595458984375, -0.003101348876953125, -0.005092620849609375, -0.0171051025390625, -0.0010404586791992188, -0.00614166259765625, 0.02838134765625, -0.0105133056640625, -0.01279449462890625, -0.0166778564453125, -0.0478515625, -0.01971435546875, -0.0228271484375, -0.0296630859375, -0.024078369140625, -0.0290985107421875, -0.040130615234375, 0.0220184326171875, 0.07916259765625, -0.031158447265625, 0.02197265625, -0.012298583984375, -0.01155853271484375, 0.01715087890625, -0.039642333984375, 0.0096282958984375, 0.022918701171875, -0.030670166015625, 0.00360107421875, 0.050323486328125, 0.05230712890625, 0.025726318359375, -0.0062408447265625, -0.0060882568359375, -0.048736572265625, -0.00492095947265625, 0.023529052734375, -0.022552490234375, 0.0203704833984375, 0.02532958984375, 0.0008440017700195312, 0.01983642578125, 0.0126190185546875, -0.0101776123046875, -0.006847381591796875, -0.0189208984375, -0.0210723876953125, -0.02203369140625, -0.00629425048828125, -0.04742431640625, 0.04571533203125, -0.01398468017578125, -0.01540374755859375, 0.05621337890625, 0.0311279296875, 0.00701904296875, -0.0374755859375, 0.03887939453125, 0.0540771484375, 0.0146331787109375, -0.020599365234375, 0.0292510986328125, -0.01438140869140625, -0.00862884521484375, 0.0081634521484375, -0.0015439987182617188, 0.00562286376953125, 0.014862060546875, 0.03546142578125, -0.0002486705780029297, -0.0516357421875, 0.057861328125, -0.040771484375, 0.035888671875, 0.0015153884887695312, -0.0276947021484375, -0.0224609375, -0.00333404541015625, -0.03326416015625, -0.0209503173828125, -0.03594970703125, -0.0311431884765625, -0.036529541015625, -0.05206298828125, 0.00026345252990722656, -0.02325439453125, 0.06158447265625, 0.077392578125, 0.021728515625, 0.0283050537109375, 0.003498077392578125, 0.0249481201171875, -0.0299530029296875, 0.0140533447265625, 0.03143310546875, -0.0020656585693359375, 0.02459716796875, 0.03460693359375, 0.0338134765625, -0.0015201568603515625, 0.017669677734375, -0.0228729248046875, -0.03424072265625, 0.058624267578125, -0.045379638671875, -0.03619384765625, 0.00629425048828125, 0.005176544189453125, 0.01113128662109375, 0.02203369140625, 0.0063323974609375, 0.0380859375, 0.00583648681640625, -0.043243408203125, 0.035430908203125, 0.0034637451171875, -0.003509521484375, 0.003032684326171875, 0.0191802978515625, 0.0005650520324707031, -0.05059814453125, 0.053985595703125, -0.058258056640625, 0.015777587890625, -0.04876708984375, -0.121826171875, -0.02252197265625, -0.04400634765625, 0.01480865478515625, 0.0181732177734375, 0.0335693359375, -0.0123443603515625, 0.0177459716796875, 0.003597259521484375, -0.04376220703125, -0.029541015625, -0.005870819091796875, -0.01324462890625, 0.0638427734375, 0.0161895751953125, 0.053436279296875, 0.004245758056640625, -0.0146636962890625, 0.0218048095703125, -0.0290679931640625, 0.0224151611328125, 0.01555633544921875, 0.001796722412109375, 0.003910064697265625, 0.043792724609375, 0.018280029296875, 0.01104736328125, -0.01265716552734375, 0.041412353515625, 0.047149658203125, 0.0071563720703125, -0.0190887451171875, 0.0045318603515625, -0.12188720703125, 0.0181884765625, 0.07171630859375, 0.0213165283203125, 0.03851318359375, -0.0250091552734375, -0.001766204833984375, 0.0341796875, -0.01181793212890625, 0.0255126953125, -0.0131683349609375, -0.00882720947265625, -0.016815185546875, 0.003082275390625, -0.0110015869140625, 0.02178955078125, -0.07208251953125, 0.03265380859375, 0.0107574462890625, -0.0360107421875, -0.0022907257080078125, -0.0034999847412109375, -0.00536346435546875, 0.015655517578125, 0.004062652587890625, 0.0116119384765625, -0.01090240478515625, 0.0259246826171875, 0.01001739501953125, 0.0147247314453125, 0.018707275390625, 0.0045013427734375, 0.0281219482421875, -0.003612518310546875, -0.0789794921875, -0.0061492919921875, 0.0087738037109375, -0.0089263916015625, 0.00811004638671875, -0.0178985595703125, -0.0001747608184814453, -0.00843048095703125, -0.02099609375, -0.0301055908203125, -0.0433349609375, -0.010833740234375, -0.006195068359375, 0.029876708984375, 0.0007758140563964844, 0.0303497314453125, 0.001461029052734375, -0.004486083984375, -0.031646728515625, 0.0219879150390625, -0.01393890380859375, -0.062469482421875, 0.05657958984375, -0.0270538330078125, -0.048614501953125, 0.034210205078125, -0.03582763671875, 0.041259765625, -0.0257720947265625, 0.0304718017578125, 0.0625, -0.004222869873046875, -0.001308441162109375, -0.0049896240234375, 0.0077667236328125, 0.0224761962890625, 0.00901031494140625, 0.002956390380859375, -0.030242919921875, -0.032318115234375, -0.004238128662109375, 0.03680419921875, 0.0377197265625, 0.02728271484375, -0.037994384765625, -0.0009813308715820312, 0.0294952392578125, -0.09161376953125, -0.0968017578125, -0.0051422119140625, -0.01178741455078125, -0.0135650634765625, 0.0144195556640625, -0.0013971328735351562, -0.01085662841796875, 0.034149169921875, -0.0000928640365600586, -0.00797271728515625, -0.040618896484375, -0.01425933837890625, -0.0777587890625, -0.0477294921875, -0.058624267578125, 0.0078582763671875, -0.019683837890625, 0.006229400634765625, 0.058563232421875, 0.005794525146484375, -0.055419921875, -0.01215362548828125, -0.02020263671875, -0.03338623046875, 0.0164794921875, 0.0209808349609375, -0.034210205078125, 0.00672149658203125, -0.000904083251953125, 0.0155487060546875, 0.029449462890625, -0.0245208740234375, -0.00788116455078125, -0.00939178466796875, 0.00042629241943359375, 0.010162353515625, 0.027740478515625, -0.0030918121337890625, -0.010223388671875, 0.01202392578125, -0.061431884765625, -0.02020263671875, 0.0136260986328125, -0.01192474365234375, 0.017791748046875, -0.0374755859375, -0.004718780517578125, 0.0125579833984375, 0.043365478515625, -0.0290985107421875, -0.01549530029296875, -0.0157318115234375, -0.033416748046875, 0.01023101806640625, 0.00127410888671875, -0.0007157325744628906, 0.04022216796875, 0.04150390625, -0.0215606689453125, -0.04937744140625, -0.00836181640625, -0.024993896484375, -0.0007891654968261719, -0.037872314453125, -0.00302886962890625, -0.0718994140625, 0.0321044921875, -0.03363037109375, -0.01062774658203125, -0.0357666015625, -0.00989532470703125, 0.006351470947265625, 0.0909423828125, 0.01323699951171875, -0.0335693359375, -0.01507568359375, 0.0055999755859375, -0.023223876953125, -0.0037078857421875, 0.0180511474609375, -0.0143585205078125, -0.032684326171875, -0.0142364501953125, 0.01181793212890625, -0.037200927734375, 0.0035419464111328125, 0.044158935546875, -0.01922607421875, -0.0239410400390625, 0.03955078125, -0.087158203125, 0.037322998046875, 0.0182647705078125, 0.035430908203125, -0.046051025390625, -0.003963470458984375, -0.044097900390625, -0.049652099609375, 0.0037288665771484375, -0.06646728515625, 0.041748046875, 0.04608154296875, -0.0089569091796875, -0.00833892822265625, 0.0177154541015625, 0.0291748046875, 0.00623321533203125, 0.0443115234375, 0.0024776458740234375, -0.0247344970703125, -0.0061492919921875, 0.045135498046875, -0.04046630859375, 0.0197601318359375, 0.006862640380859375, -0.048370361328125, -0.047760009765625, -0.0479736328125, -0.0189056396484375, 0.0268096923828125, -0.05780029296875, 0.005687713623046875, -0.01519775390625, -0.0213165283203125, -0.0258026123046875, -0.04229736328125, 0.00237274169921875, 0.01407623291015625, 0.03558349609375, 0.018310546875, 0.005092620849609375, 0.01514434814453125, 0.032806396484375, 0.06854248046875, 0.017059326171875, -0.015655517578125, -0.08782958984375, 0.037872314453125, 0.006923675537109375, 0.0187225341796875, 0.041351318359375, -0.002887725830078125, -0.001239776611328125, 0.0097503662109375, 0.004611968994140625, 0.052276611328125, -0.05682373046875, 0.0394287109375, -0.01531219482421875, -0.02435302734375, 0.056121826171875, 0.00449371337890625, -0.005451202392578125, 0.052642822265625, 0.0260772705078125, -0.0196380615234375, 0.04541015625, 0.0275115966796875, -0.046234130859375, -0.007434844970703125, -0.006839752197265625, -0.052276611328125, 0.0169830322265625, 0.00600433349609375, 0.06494140625, 0.043609619140625, -0.006565093994140625, 0.054779052734375, 0.0155792236328125, 0.0118408203125, 0.0556640625, 0.0465087890625, -0.0069732666015625, 0.020843505859375, 0.0748291015625, 0.0023632049560546875, -0.00342559814453125, -0.006988525390625, 0.00954437255859375, -0.015167236328125, -0.074462890625, 0.0252685546875, -0.0012149810791015625, 0.0201416015625, 0.04278564453125, -0.0086822509765625, 0.0858154296875, 0.0211944580078125, -0.006832122802734375, -0.018768310546875, -0.0711669921875, -0.005870819091796875, -0.058868408203125, 0.033843994140625, 0.007663726806640625, -0.00241851806640625, 0.0292816162109375, 0.0206298828125, -0.0128326416015625, 0.03411865234375, -0.0013666152954101562, 0.04754638671875, 0.039031982421875, 0.043548583984375, 0.0163116455078125, -0.02862548828125, -0.00406646728515625, 0.0097198486328125, -0.005100250244140625, -0.0416259765625, -0.0210418701171875, 0.0022563934326171875, 0.036041259765625, -0.04925537109375, -0.0511474609375, 0.06707763671875, 0.0007939338684082031, 0.0009021759033203125, 0.00649261474609375, -0.0101318359375, -0.0126953125, -0.0193023681640625, 0.004230499267578125, 0.04400634765625, -0.006374359130859375, 0.0041351318359375, 0.009857177734375, -0.0114898681640625, 0.0273590087890625, -0.024688720703125, 0.005950927734375, -0.0145416259765625, -0.00545501708984375, -0.0255584716796875, -0.007129669189453125, 0.01079559326171875, -0.0001366138458251953, -0.01560211181640625, -0.019378662109375, -0.032684326171875, 0.044036865234375, -0.0458984375, 0.030487060546875, -0.01045989990234375, -0.0045013427734375, -0.0187530517578125, 0.03472900390625, -0.00870513916015625, 0.0137176513671875, -0.0141143798828125, 0.0104522705078125, -0.03802490234375, -0.003131866455078125, -0.01715087890625, -0.037628173828125, -0.0162200927734375, -0.01303863525390625, 0.0035495758056640625, 0.0300140380859375, 0.0018672943115234375, -0.01904296875, -0.017547607421875, 0.00501251220703125, 0.0139007568359375, 0.043609619140625, 0.01007843017578125, 0.04779052734375, 0.00604248046875, 0.039886474609375, 0.0301513671875, 0.00771331787109375, -0.06378173828125, -0.011383056640625, 0.0181121826171875, -0.051544189453125, -0.036651611328125, -0.00951385498046875, -0.0616455078125, 0.01215362548828125, 0.031402587890625, -0.01380157470703125, 0.047149658203125, -0.01947021484375, -0.0204925537109375, 0.001270294189453125, 0.0187530517578125, -0.0225067138671875, 0.0506591796875, -0.007770538330078125, -0.0330810546875, -0.0162811279296875, 0.0016345977783203125, -0.05560302734375, 0.066162109375, 0.001682281494140625, 0.032745361328125, -0.0025119781494140625, -0.0654296875, 0.0677490234375, 0.0814208984375, 0.05023193359375, 0.072265625, 0.02593994140625, 0.033477783203125, -0.007556915283203125, 0.02813720703125, -0.04132080078125, -0.0594482421875, 0.0244140625, 0.0132598876953125, -0.00606536865234375, 0.02423095703125, -0.01155853271484375, 0.0335693359375, -0.004364013671875, 0.048004150390625, -0.01172637939453125, 0.0216217041015625, 0.0064544677734375, -0.0275115966796875, 0.06695556640625, 0.0206146240234375, -0.0216217041015625, -0.011932373046875, -0.025665283203125, -0.0249481201171875, -0.0306396484375, -0.006839752197265625, 0.01238250732421875, 0.0010919570922851562, 0.006500244140625, 0.0159912109375, 0.02667236328125, 0.005550384521484375, 0.0126190185546875, -0.01509857177734375, 0.040557861328125, 0.019561767578125, 0.04803466796875, -0.0271759033203125, -0.0071868896484375, -0.004566192626953125, 0.034820556640625, -0.0018129348754882812, -0.0352783203125, 0.043304443359375, 0.0006566047668457031, 0.0115203857421875, 0.049407958984375, -0.0008668899536132812, 0.0112152099609375, 0.0126953125, -0.011077880859375, -0.038238525390625, -0.038238525390625, 0.0172576904296875, 0.043670654296875, -0.07647705078125, 0.035919189453125, -0.0302734375, -0.0113677978515625, -0.0234832763671875, 0.00225067138671875, 0.043853759765625, -0.015167236328125, -0.004062652587890625, 0.01311492919921875, 0.050079345703125, 0.0012464523315429688, -0.00794219970703125, 0.05242919921875, -0.0227813720703125, -0.0001933574676513672, 0.02496337890625, 0.0010366439819335938, -0.053924560546875, -0.00836944580078125, -0.0120391845703125, 0.1021728515625, -0.01953125, 0.016754150390625, 0.051849365234375, 0.028533935546875, -0.03106689453125, 0.01959228515625, -0.032073974609375, 0.06414794921875, -0.00421142578125, 0.0699462890625, -0.06268310546875, -0.01352691650390625, 0.0290069580078125, 0.04736328125, 0.0033740997314453125, -0.0084381103515625, 0.005336761474609375, -0.0148468017578125, 0.002933502197265625, 0.002559661865234375, -0.00537872314453125, 0.022430419921875, -0.0064849853515625, 0.021331787109375, 0.0147552490234375, -0.0109100341796875, 0.042388916015625, -0.0274810791015625, -0.0501708984375, 0.0114898681640625, 0.00815582275390625, 0.01045989990234375, -0.0062408447265625, 0.0311431884765625, -0.0428466796875, -0.011322021484375, 0.03631591796875, 0.00327301025390625, 0.0224151611328125, -0.0171966552734375, -0.001781463623046875, 0.0056610107421875, -0.0231781005859375, 0.0063018798828125, 0.028289794921875, 0.01361846923828125, -0.03155517578125, 0.0197906494140625, 0.0011720657348632812, -0.007801055908203125, -0.037567138671875, -0.021697998046875, 0.005207061767578125, 0.0135498046875, 0.005748748779296875, 0.0255584716796875, 0.0197906494140625, 0.0016326904296875, -0.01158905029296875, 0.02880859375, 0.01287841796875, -0.0163726806640625, -0.0162811279296875, 0.0175933837890625, 0.018951416015625, 0.011505126953125, -0.02099609375, -0.000048220157623291016, -0.059295654296875, -0.006130218505859375, -0.0105133056640625, 0.005680084228515625, 0.05810546875, -0.049102783203125, 0.0284271240234375, 0.03497314453125, -0.026458740234375, 0.047637939453125, -0.0165557861328125, -0.01129150390625, -0.007297515869140625, 0.04510498046875, 0.0400390625, 0.01140594482421875, -0.022796630859375, -0.03643798828125, -0.0160980224609375, 0.048675537109375, 0.03192138671875, -0.00325775146484375, -0.022064208984375, -0.0287017822265625, 0.04376220703125, 0.0213165283203125, 0.007472991943359375, 0.02716064453125, 0.058990478515625, 0.02081298828125, -0.0369873046875, -0.01543426513671875, 0.0072784423828125, -0.03436279296875, 0.03948974609375, -0.0159454345703125, 0.0242919921875, 0.0423583984375, -0.004795074462890625, 0.0048370361328125, -0.0220184326171875, 0.07562255859375, -0.005832672119140625, -0.022369384765625, 0.014251708984375, -0.05535888671875, 0.0234222412109375, 0.0023899078369140625, 0.060211181640625, 0.0204010009765625, -0.062744140625, -0.0164947509765625, -0.032806396484375, -0.03057861328125, 0.0355224609375, 0.036865234375, -0.0034656524658203125, 0.022613525390625, 0.0191497802734375, -0.0002651214599609375, 0.016571044921875, -0.004268646240234375, -0.01241302490234375, -0.04132080078125, 0.038330078125, -0.0304412841796875, -0.005710601806640625, 0.0040283203125, 0.042816162109375, -0.005401611328125, -0.0015954971313476562, 0.01169586181640625, 0.01477813720703125, 0.0013818740844726562, 0.03436279296875, -0.034912109375, 0.0185699462890625, 0.039581298828125, -0.06463623046875, -0.023834228515625, -0.003711700439453125, 0.006572723388671875, -0.048828125, 0.039093017578125, 0.01763916015625, -0.0064697265625, 0.07025146484375, -0.02679443359375, -0.0002770423889160156, -0.0430908203125, -0.0011548995971679688, -0.03460693359375, -0.041351318359375, -0.015838623046875, -0.0004284381866455078, -0.005039215087890625, -0.03582763671875, -0.0150299072265625, 0.01117706298828125, 0.006862640380859375, -0.048797607421875, 0.024932861328125, -0.051605224609375, 0.00720977783203125, 0.0176849365234375, 0.054473876953125, -0.041717529296875, -0.00583648681640625, -0.004009246826171875, -0.0084991455078125, -0.00007712841033935547, 0.027191162109375, -0.004852294921875, -0.04559326171875, -0.01345062255859375, 0.0295867919921875, 0.030853271484375, -0.03155517578125, 0.00428009033203125, 0.0229339599609375, -0.00421142578125, 0.02099609375, -0.01126861572265625, -0.0029582977294921875, -0.0126953125, -0.026397705078125, -0.0012264251708984375, -0.0107421875, -0.06951904296875, -0.0265960693359375, 0.03485107421875, 0.053741455078125, 0.025238037109375, -0.08599853515625, 0.041748046875, -0.03631591796875, 0.06689453125, 0.006317138671875, -0.018524169921875, 0.013275146484375, 0.042572021484375, -0.0030574798583984375, -0.0163116455078125, -0.032623291015625, 0.02215576171875, -0.0175628662109375, 0.01389312744140625, 0.04925537109375, -0.0214385986328125, 0.0125274658203125, -0.02734375, 0.0188751220703125, 0.0171661376953125, -0.0257568359375, 0.00783538818359375, 0.03778076171875, -0.0030040740966796875, -0.02349853515625, -0.050201416015625, 0.00447845458984375, -0.045166015625, 0.0000095367431640625, -0.0309295654296875, 0.0052642822265625, 0.0098724365234375, -0.048614501953125, -0.08673095703125, 0.048187255859375, -0.0158233642578125, -0.018829345703125, -0.0687255859375, -0.0243072509765625, -0.0009646415710449219, 0.043914794921875, -0.0169830322265625, -0.0229034423828125, -0.037933349609375, 0.046783447265625, 0.0243682861328125, -0.0039043426513671875, 0.04058837890625, -0.0139312744140625, -0.053955078125, -0.0204620361328125, -0.0222015380859375, 0.0238189697265625, -0.01523590087890625, 0.0347900390625, 0.01071929931640625, 0.06268310546875, 0.0216827392578125, 0.0030117034912109375, 0.01235198974609375, -0.050933837890625, -0.0374755859375, -0.01776123046875, 0.049896240234375, 0.060272216796875, 0.039520263671875, 0.02960205078125, -0.00627899169921875, -0.0657958984375, -0.011566162109375, -0.0094757080078125, -0.0286712646484375, 0.01383209228515625, 0.0134124755859375, -0.0275115966796875, 0.0265655517578125, -0.00727081298828125, -0.006290435791015625, -0.01629638671875, -0.01244354248046875, -0.0193634033203125, -0.00997161865234375, 0.020904541015625, -0.0028820037841796875, 0.00933074951171875, 0.002002716064453125, -0.00882720947265625, -0.004688262939453125, 0.00431060791015625, 0.004467010498046875, 0.0150604248046875, -0.0134735107421875, 0.038421630859375, 0.009552001953125, -0.005802154541015625, -0.000164031982421875, 0.0088653564453125, 0.0181121826171875, 0.0203857421875, -0.00004357099533081055, -0.025726318359375, -0.00860595703125, 0.01123046875, -0.0011148452758789062, 0.01229095458984375, -0.0009431838989257812, 0.0245819091796875, 0.010589599609375, 0.006549835205078125, -0.004207611083984375, -0.01548004150390625, -0.023651123046875, 0.045013427734375, -0.0206146240234375, -0.01922607421875, -0.00576019287109375, -0.01727294921875, 0.0022830963134765625, 0.01560211181640625, -0.0051116943359375, -0.019256591796875, 0.01509857177734375, -0.040740966796875, 0.004547119140625, 0.00896453857421875 ]
19b3061962f3ccf7b53b4ce21c486dff77f3519e
Wordpress Stackexchange Q: Check if widget has content I just need to check, if sidebar has any content My functions.phpcode is below. function aspirationas_extra_widget_1_init() { register_sidebar(array( 'name' => __('Extra Widget 1', 'aspirations'), 'id' => 'extra_widget_1', 'description' => __('Widgets for Extra 1', 'aspirations'), 'before_widget' => '<aside>', 'after_widget' => '</aside>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); } add_action('widgets_init', 'aspirationas_extra_widget_1_init'); And I read this widget by this code below. dynamic_sidebar('extra_widget_1'); I am beginner in wordpress development. I know this is a sili question, but I can not solved it. any one help me please. A: Problem solved by this code below: <?php if (is_active_sidebar('extra_widget_1')) { ?> <li> <?php dynamic_sidebar('extra_widget_1'); ?> </li> <?php } ?>
Q: Check if widget has content I just need to check, if sidebar has any content My functions.phpcode is below. function aspirationas_extra_widget_1_init() { register_sidebar(array( 'name' => __('Extra Widget 1', 'aspirations'), 'id' => 'extra_widget_1', 'description' => __('Widgets for Extra 1', 'aspirations'), 'before_widget' => '<aside>', 'after_widget' => '</aside>', 'before_title' => '<h3>', 'after_title' => '</h3>', )); } add_action('widgets_init', 'aspirationas_extra_widget_1_init'); And I read this widget by this code below. dynamic_sidebar('extra_widget_1'); I am beginner in wordpress development. I know this is a sili question, but I can not solved it. any one help me please. A: Problem solved by this code below: <?php if (is_active_sidebar('extra_widget_1')) { ?> <li> <?php dynamic_sidebar('extra_widget_1'); ?> </li> <?php } ?>
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:463812", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/220123" }
[ 0.0164337158203125, 0.005458831787109375, 0.0030231475830078125, -0.0048980712890625, 0.02239990234375, -0.01751708984375, 0.05194091796875, -0.04364013671875, 0.0110321044921875, 0.00853729248046875, -0.05047607421875, -0.00042057037353515625, -0.039337158203125, -0.006542205810546875, -0.00873565673828125, -0.0438232421875, 0.037750244140625, 0.016143798828125, 0.04705810546875, -0.019775390625, -0.0171051025390625, 0.01198577880859375, 0.020294189453125, 0.07745361328125, 0.0182647705078125, -0.051849365234375, 0.10430908203125, -0.0015630722045898438, 0.01299285888671875, -0.021728515625, 0.04913330078125, -0.010345458984375, 0.021331787109375, 0.0016050338745117188, 0.0128936767578125, 0.0416259765625, -0.002681732177734375, -0.00414276123046875, 0.0162200927734375, 0.01255035400390625, 0.04071044921875, -0.046966552734375, 0.01971435546875, -0.005123138427734375, 0.0079193115234375, -0.0063018798828125, 0.022186279296875, -0.042205810546875, 0.032623291015625, 0.0027141571044921875, 0.019317626953125, -0.053863525390625, 0.0228118896484375, -0.01678466796875, -0.037628173828125, -0.03399658203125, -0.016265869140625, -0.0362548828125, 0.053314208984375, 0.0197296142578125, -0.0189971923828125, -0.0687255859375, 0.030731201171875, -0.03955078125, -0.0088348388671875, -0.01261138916015625, -0.017608642578125, 0.0250396728515625, -0.0552978515625, -0.03143310546875, 0.04913330078125, -0.0457763671875, -0.01227569580078125, 0.003818511962890625, -0.0174407958984375, -0.0206298828125, 0.0099639892578125, -0.0168914794921875, -0.0091400146484375, 0.0158233642578125, -0.005001068115234375, 0.0555419921875, -0.04742431640625, -0.046417236328125, 0.051116943359375, -0.0204315185546875, -0.0168304443359375, -0.0233001708984375, -0.005374908447265625, -0.0093536376953125, -0.0019817352294921875, -0.04852294921875, 0.047515869140625, -0.005252838134765625, -0.01424407958984375, -0.0352783203125, 0.034454345703125, 0.08209228515625, -0.03656005859375, 0.01141357421875, -0.00038623809814453125, -0.056549072265625, 0.0616455078125, -0.07568359375, 0.019317626953125, 0.0013399124145507812, -0.025665283203125, -0.03900146484375, 0.03765869140625, 0.030242919921875, -0.004474639892578125, 0.015838623046875, 0.00867462158203125, -0.0050048828125, -0.05120849609375, 0.028533935546875, -0.0092620849609375, -0.0036296844482421875, 0.02264404296875, 0.042755126953125, 0.0138702392578125, 0.019775390625, 0.034942626953125, -0.0294342041015625, 0.0401611328125, 0.038421630859375, -0.0294342041015625, -0.04486083984375, 0.03717041015625, 0.01395416259765625, -0.031036376953125, 0.007678985595703125, 0.01259613037109375, 0.0122528076171875, -0.010345458984375, -0.01177215576171875, 0.0633544921875, 0.03350830078125, 0.009918212890625, 0.009185791015625, 0.022064208984375, -0.04583740234375, -0.041748046875, -0.000011980533599853516, 0.005023956298828125, 0.0260009765625, 0.0322265625, 0.0044097900390625, -0.01531982421875, -0.062225341796875, 0.050262451171875, -0.02978515625, 0.038848876953125, 0.0057830810546875, -0.0078125, 0.005645751953125, -0.001613616943359375, -0.0035305023193359375, -0.030792236328125, -0.0034942626953125, 0.0071563720703125, -0.0235595703125, -0.0264892578125, -0.028289794921875, -0.0526123046875, 0.018585205078125, -0.0014400482177734375, 0.00116729736328125, 0.0254364013671875, 0.035430908203125, -0.00489044189453125, -0.019561767578125, 0.0202178955078125, 0.04888916015625, 0.0014362335205078125, 0.055511474609375, -0.02825927734375, 0.0030670166015625, 0.011932373046875, 0.01374053955078125, -0.02862548828125, -0.03631591796875, 0.019195556640625, -0.006282806396484375, -0.043853759765625, 0.0205078125, -0.0028018951416015625, 0.04022216796875, 0.0313720703125, 0.0030803680419921875, 0.0137939453125, -0.0302734375, -0.0343017578125, 0.01053619384765625, -0.01486968994140625, -0.013702392578125, -0.01393890380859375, 0.004974365234375, -0.0230560302734375, 0.0064697265625, 0.04180908203125, -0.0184478759765625, 0.01885986328125, -0.0269622802734375, -0.054412841796875, -0.005863189697265625, -0.013641357421875, 0.0167236328125, 0.040435791015625, 0.07684326171875, -0.007068634033203125, 0.03472900390625, -0.034393310546875, 0.00974273681640625, -0.01442718505859375, -0.02642822265625, -0.0008387565612792969, 0.0443115234375, 0.0008654594421386719, 0.03466796875, -0.000055849552154541016, -0.03289794921875, 0.00202178955078125, 0.04327392578125, 0.09124755859375, -0.0029201507568359375, -0.030303955078125, -0.038787841796875, 0.048614501953125, 0.022216796875, -0.10919189453125, 0.037689208984375, 0.01160430908203125, -0.0455322265625, -0.07269287109375, -0.004680633544921875, -0.0215911865234375, -0.01483917236328125, -0.01275634765625, 0.061279296875, 0.04962158203125, 0.06353759765625, 0.0057830810546875, -0.014984130859375, 0.047271728515625, -0.0775146484375, 0.0091400146484375, -0.0207672119140625, 0.0086517333984375, 0.05877685546875, -0.021270751953125, 0.03912353515625, 0.0037021636962890625, 0.006618499755859375, 0.0182342529296875, 0.027313232421875, -0.0010204315185546875, 0.01493072509765625, -0.0167083740234375, 0.02667236328125, -0.005985260009765625, -0.0156402587890625, -0.0103302001953125, -0.0221405029296875, 0.045989990234375, 0.0389404296875, 0.050750732421875, 0.060394287109375, -0.02978515625, 0.0215911865234375, -0.0021953582763671875, 0.0264129638671875, -0.00140380859375, 0.053802490234375, 0.04132080078125, 0.030242919921875, -0.035125732421875, -0.025421142578125, 0.01447296142578125, 0.042510986328125, -0.0111236572265625, 0.036041259765625, 0.00872802734375, -0.006931304931640625, 0.001873016357421875, -0.028839111328125, 0.001789093017578125, -0.017822265625, 0.031494140625, 0.01416015625, 0.010833740234375, 0.036712646484375, -0.0081787109375, 0.04278564453125, 0.030120849609375, -0.007472991943359375, 0.041412353515625, -0.0193634033203125, 0.0302734375, -0.0173797607421875, 0.0682373046875, 0.058563232421875, -0.03033447265625, 0.013702392578125, -0.0285491943359375, 0.0198822021484375, -0.037841796875, 0.00397491455078125, -0.004535675048828125, -0.0251312255859375, -0.0298004150390625, 0.02191162109375, 0.02294921875, 0.043365478515625, 0.029327392578125, -0.0184478759765625, 0.0144195556640625, 0.0290374755859375, -0.0249481201171875, -0.0621337890625, -0.0157318115234375, -0.040924072265625, 0.0152587890625, 0.0162353515625, -0.01085662841796875, -0.0291900634765625, 0.032867431640625, 0.002651214599609375, -0.0133056640625, -0.0413818359375, -0.051055908203125, -0.052764892578125, -0.056732177734375, 0.02783203125, -0.01271820068359375, 0.021240234375, 0.004451751708984375, 0.02923583984375, 0.007251739501953125, -0.057952880859375, 0.006412506103515625, 0.014892578125, -0.01715087890625, 0.041259765625, -0.01116943359375, -0.0033130645751953125, 0.0014810562133789062, -0.01062774658203125, 0.0384521484375, 0.0110626220703125, -0.021240234375, -0.004337310791015625, -0.0096893310546875, -0.013031005859375, 0.032257080078125, -0.00958251953125, 0.0105743408203125, -0.00310516357421875, 0.01800537109375, -0.034149169921875, -0.01102447509765625, 0.00360107421875, -0.041351318359375, 0.01265716552734375, 0.0240325927734375, -0.01776123046875, 0.0181884765625, -0.021514892578125, -0.007114410400390625, -0.005672454833984375, 0.026092529296875, -0.051971435546875, 0.039215087890625, 0.004680633544921875, -0.00858306884765625, -0.003940582275390625, -0.03216552734375, -0.04168701171875, 0.034637451171875, -0.0231170654296875, 0.0064239501953125, -0.02532958984375, 0.03887939453125, -0.044952392578125, -0.007617950439453125, 0.028533935546875, 0.00867462158203125, 0.038909912109375, 0.002925872802734375, -0.016143798828125, 0.017608642578125, 0.04669189453125, -0.037750244140625, -0.0205230712890625, -0.00931549072265625, 0.003879547119140625, -0.033233642578125, -0.02410888671875, -0.041534423828125, -0.0015172958374023438, -0.093994140625, 0.0178680419921875, 0.0120849609375, -0.0299530029296875, -0.026611328125, 0.03271484375, -0.06494140625, -0.018341064453125, 0.0139312744140625, -0.048370361328125, 0.05181884765625, 0.0223388671875, -0.0112762451171875, 0.020294189453125, -0.006198883056640625, -0.062103271484375, -0.036407470703125, 0.003864288330078125, -0.03790283203125, 0.01641845703125, 0.0230255126953125, -0.01172637939453125, -0.023590087890625, 0.005146026611328125, 0.02252197265625, -0.004100799560546875, 0.0261688232421875, 0.002140045166015625, 0.00556182861328125, 0.005771636962890625, 0.0222320556640625, -0.01490020751953125, -0.0021800994873046875, -0.0019931793212890625, -0.040374755859375, 0.018524169921875, -0.033233642578125, -0.00955963134765625, 0.004306793212890625, -0.03826904296875, -0.03533935546875, -0.0149383544921875, 0.029998779296875, 0.005889892578125, -0.017181396484375, 0.0241851806640625, -0.01473236083984375, -0.0120849609375, 0.021087646484375, -0.0290374755859375, -0.0257568359375, 0.020751953125, 0.07598876953125, 0.01099395751953125, -0.01116943359375, -0.043792724609375, -0.0127410888671875, 0.042572021484375, -0.0178375244140625, 0.0014476776123046875, -0.00046443939208984375, -0.0496826171875, 0.057769775390625, 0.0222015380859375, -0.005828857421875, 0.04205322265625, 0.045166015625, 0.033721923828125, 0.01702880859375, -0.0241241455078125, 0.0279541015625, -0.055389404296875, -0.00958251953125, -0.0176544189453125, 0.0008535385131835938, 0.038421630859375, 0.041290283203125, -0.038604736328125, 0.037872314453125, -0.0174102783203125, 0.01546478271484375, -0.02032470703125, 0.053131103515625, 0.0294036865234375, 0.0107421875, 0.0136260986328125, -0.035064697265625, 0.0074005126953125, 0.0010385513305664062, 0.035888671875, 0.01175689697265625, -0.0010576248168945312, 0.016265869140625, 0.023590087890625, -0.0092315673828125, 0.032745361328125, 0.0010805130004882812, 0.04937744140625, 0.01291656494140625, -0.03448486328125, -0.036773681640625, -0.003875732421875, -0.0203399658203125, -0.0004482269287109375, 0.034210205078125, 0.0093536376953125, 0.013031005859375, -0.03350830078125, -0.002696990966796875, 0.023406982421875, 0.004150390625, -0.036041259765625, -0.012969970703125, -0.00638580322265625, -0.00537872314453125, -0.0021572113037109375, 0.0316162109375, -0.00788116455078125, 0.01690673828125, -0.00829315185546875, 0.043670654296875, 0.032806396484375, 0.03924560546875, 0.026458740234375, -0.01506805419921875, -0.006595611572265625, -0.01447296142578125, -0.0247802734375, -0.06060791015625, -0.0046844482421875, 0.0082550048828125, 0.053863525390625, -0.010467529296875, -0.048736572265625, 0.036956787109375, -0.0245208740234375, -0.0210418701171875, 0.038818359375, 0.03570556640625, -0.0124969482421875, -0.039031982421875, -0.00867462158203125, 0.043609619140625, 0.00811004638671875, -0.01202392578125, 0.0311126708984375, -0.03912353515625, 0.00365447998046875, 0.06732177734375, -0.03729248046875, 0.02288818359375, 0.0202178955078125, -0.038360595703125, -0.023773193359375, 0.0157012939453125, -0.045440673828125, -0.022247314453125, -0.0007753372192382812, -0.005489349365234375, 0.029754638671875, -0.042083740234375, 0.02001953125, -0.0290374755859375, 0.0128936767578125, -0.026275634765625, 0.0197296142578125, 0.0073394775390625, 0.011871337890625, -0.056640625, 0.0241241455078125, -0.042999267578125, -0.0019397735595703125, -0.051910400390625, -0.0716552734375, -0.0430908203125, -0.01678466796875, 0.0176544189453125, 0.0220794677734375, 0.005565643310546875, -0.006107330322265625, -0.01181793212890625, 0.007434844970703125, 0.016845703125, 0.04266357421875, -0.04327392578125, 0.0504150390625, 0.04541015625, 0.0182952880859375, -0.01026153564453125, -0.004108428955078125, -0.0235595703125, -0.00447845458984375, 0.0159912109375, -0.01177978515625, -0.0227508544921875, -0.007472991943359375, 0.0029659271240234375, -0.04949951171875, -0.0217437744140625, -0.0250244140625, 0.0347900390625, 0.004150390625, -0.0005879402160644531, 0.01332855224609375, -0.02618408203125, 0.0282440185546875, 0.0335693359375, 0.046234130859375, -0.055816650390625, -0.0199737548828125, 0.01488494873046875, 0.002719879150390625, 0.040985107421875, -0.01195526123046875, 0.00017917156219482422, 0.0285797119140625, -0.1112060546875, 0.09381103515625, 0.0780029296875, 0.0308074951171875, 0.0738525390625, -0.00865936279296875, 0.020599365234375, 0.037750244140625, -0.007282257080078125, 0.01013946533203125, 0.02349853515625, 0.06304931640625, -0.0087432861328125, 0.01041412353515625, 0.039947509765625, -0.0282135009765625, 0.0254974365234375, 0.056304931640625, 0.06829833984375, -0.0654296875, 0.0024280548095703125, 0.0179901123046875, -0.021209716796875, 0.026519775390625, -0.0161590576171875, -0.0197601318359375, -0.023468017578125, 0.089599609375, 0.01036834716796875, -0.007633209228515625, 0.043975830078125, -0.0011272430419921875, -0.0022945404052734375, 0.00429534912109375, 0.020751953125, 0.0200958251953125, -0.0204315185546875, 0.006389617919921875, 0.0081939697265625, 0.0273284912109375, 0.01045989990234375, -0.0021820068359375, 0.0063934326171875, -0.03558349609375, -0.0538330078125, -0.00630950927734375, -0.0277252197265625, -0.0293426513671875, 0.033447265625, -0.033660888671875, 0.0291290283203125, 0.032440185546875, -0.01274871826171875, 0.009033203125, -0.01186370849609375, 0.002666473388671875, -0.0259246826171875, 0.01081085205078125, 0.0225982666015625, 0.03167724609375, -0.004825592041015625, 0.03460693359375, -0.02142333984375, -0.01419830322265625, -0.00408935546875, -0.0103912353515625, 0.10308837890625, -0.07391357421875, 0.0004665851593017578, 0.0225982666015625, 0.02935791015625, -0.01045989990234375, 0.004474639892578125, 0.06658935546875, -0.07635498046875, -0.055145263671875, 0.031402587890625, -0.032135009765625, -0.056060791015625, -0.01346588134765625, -0.055511474609375, 0.0936279296875, 0.01253509521484375, 0.014373779296875, 0.031982421875, 0.0252227783203125, -0.06298828125, -0.01416778564453125, -0.02471923828125, 0.0321044921875, -0.006282806396484375, 0.0162506103515625, -0.0150604248046875, 0.022003173828125, -0.001377105712890625, -0.004375457763671875, 0.004825592041015625, 0.00237274169921875, 0.015899658203125, 0.01006317138671875, 0.005039215087890625, 0.014007568359375, -0.030548095703125, 0.00591278076171875, -0.0028514862060546875, 0.01239013671875, -0.021636962890625, -0.027374267578125, 0.03662109375, -0.0604248046875, -0.038330078125, 0.0169677734375, 0.028656005859375, 0.0384521484375, -0.03753662109375, 0.025543212890625, 0.024078369140625, -0.0518798828125, -0.0031375885009765625, -0.019073486328125, -0.0235137939453125, 0.0482177734375, 0.00855255126953125, 0.0025272369384765625, 0.01036834716796875, -0.041748046875, 0.04010009765625, 0.0133209228515625, -0.00250244140625, 0.0234832763671875, 0.0274505615234375, -0.0175018310546875, -0.006465911865234375, 0.0017461776733398438, 0.0169525146484375, -0.022369384765625, 0.01555633544921875, 0.0240478515625, 0.0116729736328125, -0.00463104248046875, -0.0186614990234375, 0.006988525390625, 0.01393890380859375, -0.005298614501953125, -0.0518798828125, 0.013031005859375, 0.019866943359375, -0.006534576416015625, 0.022369384765625, -0.0048370361328125, -0.0192413330078125, 0.047332763671875, -0.036468505859375, -0.0033588409423828125, 0.0300445556640625, 0.02703857421875, -0.007640838623046875, -0.031280517578125, -0.01499176025390625, -0.0213623046875, -0.0298919677734375, -0.005889892578125, 0.02471923828125, 0.047882080078125, 0.01019287109375, 0.015655517578125, 0.00830841064453125, -0.00605010986328125, -0.0006480216979980469, 0.018341064453125, -0.032501220703125, 0.00970458984375, -0.038970947265625, -0.045501708984375, 0.00007051229476928711, 0.036773681640625, 0.0321044921875, -0.0307159423828125, -0.01910400390625, 0.03570556640625, 0.06060791015625, -0.004367828369140625, 0.0283355712890625, 0.0301666259765625, 0.02044677734375, -0.04864501953125, 0.0213775634765625, 0.01236724853515625, 0.003200531005859375, -0.0167083740234375, 0.0016107559204101562, 0.0394287109375, -0.00820159912109375, 0.026947021484375, 0.0022716522216796875, 0.0263519287109375, 0.06182861328125, 0.0079193115234375, 0.0173492431640625, 0.0289154052734375, -0.10675048828125, -0.028533935546875, 0.005947113037109375, -0.044830322265625, 0.01538848876953125, 0.037200927734375, -0.01554107666015625, 0.0003781318664550781, -0.01386260986328125, -0.001888275146484375, -0.00048089027404785156, -0.0213775634765625, 0.011749267578125, 0.0292816162109375, 0.0181121826171875, 0.0152435302734375, -0.025054931640625, -0.00424957275390625, 0.00765228271484375, 0.0190277099609375, 0.0293121337890625, 0.01398468017578125, 0.0187530517578125, 0.02227783203125, -0.020843505859375, -0.00014662742614746094, -0.0259857177734375, -0.0297088623046875, 0.02764892578125, -0.0023212432861328125, -0.0201568603515625, -0.014739990234375, -0.04998779296875, 0.0313720703125, 0.02606201171875, 0.00392913818359375, 0.02197265625, -0.0260009765625, 0.026336669921875, 0.006893157958984375, -0.0258331298828125, -0.035186767578125, -0.02734375, 0.002880096435546875, 0.006412506103515625, 0.01142120361328125, 0.00513458251953125, -0.006618499755859375, 0.013580322265625, 0.011871337890625, -0.016754150390625, 0.0175323486328125, 0.0042724609375, -0.0142974853515625, 0.0218505859375, 0.00926971435546875, -0.05596923828125, 0.033203125, -0.00045037269592285156, -0.00324249267578125, 0.023406982421875, 0.04498291015625, -0.0037899017333984375, 0.01245880126953125, 0.013092041015625, 0.0467529296875, 0.0203704833984375, -0.0718994140625, 0.0025157928466796875, 0.062744140625, -0.01348876953125, 0.0259857177734375, 0.010284423828125, -0.006702423095703125, -0.06793212890625, -0.009979248046875, 0.0126953125, -0.0548095703125, 0.0012950897216796875, -0.0167083740234375, -0.01195526123046875, 0.035369873046875, -0.0037937164306640625, -0.053619384765625, 0.01116180419921875, -0.033843994140625, 0.0205841064453125, -0.03857421875, 0.047271728515625, 0.00902557373046875, 0.044189453125, -0.0556640625, 0.0184783935546875, -0.0156707763671875, -0.014556884765625, -0.0014696121215820312, 0.0272369384765625, 0.0283203125, -0.043121337890625, 0.03314208984375, 0.01049041748046875, 0.031768798828125, 0.05523681640625, 0.060516357421875, 0.019378662109375, 0.048187255859375, 0.004337310791015625, -0.053741455078125, -0.032257080078125, 0.0164947509765625, 0.001934051513671875, -0.042388916015625, -0.005077362060546875, 0.001190185546875, -0.004253387451171875, -0.02996826171875, -0.0411376953125, 0.045318603515625, 0.00264739990234375, -0.008331298828125, -0.04058837890625, 0.0147857666015625, -0.01220703125, -0.0157470703125, -0.007694244384765625, -0.0221710205078125, 0.002429962158203125, 0.0401611328125, 0.0266876220703125, 0.006977081298828125, 0.02569580078125, -0.00724029541015625, -0.11029052734375, -0.022491455078125, -0.045928955078125, 0.049072265625, -0.0018320083618164062, -0.02825927734375, 0.014007568359375, 0.021728515625, -0.0450439453125, -0.09490966796875, -0.00445556640625, 0.0173797607421875, -0.0200347900390625, -0.06414794921875, -0.0152740478515625, -0.0130462646484375, 0.07098388671875, 0.04730224609375, 0.007793426513671875, -0.044769287109375, -0.0157318115234375, 0.028350830078125, -0.048065185546875, -0.0094757080078125, 0.044097900390625, -0.059326171875, -0.0032329559326171875, -0.02630615234375, -0.01560211181640625, 0.0287628173828125, 0.0045623779296875, -0.037445068359375, 0.01023101806640625, 0.004734039306640625, 0.001346588134765625, -0.05718994140625, -0.002864837646484375, 0.0286102294921875, -0.018524169921875, 0.0125732421875, -0.0151214599609375, 0.0002570152282714844, 0.0164337158203125, 0.016510009765625, 0.01519012451171875, 0.041412353515625, -0.05377197265625, -0.0161285400390625, 0.004947662353515625, 0.030303955078125, -0.0010471343994140625, -0.0206298828125, -0.0218658447265625, 0.006927490234375, -0.005550384521484375, -0.00839996337890625, 0.041168212890625, 0.020751953125, 0.0029850006103515625, 0.049560546875, -0.0028285980224609375, 0.1107177734375, 0.005229949951171875, 0.05133056640625, 0.01043701171875, -0.0251617431640625, 0.05389404296875, -0.035308837890625, 0.0016155242919921875, 0.00955963134765625, 0.00344085693359375, -0.0682373046875, 0.0099334716796875, 0.0300750732421875, 0.032379150390625, 0.01371002197265625 ]
4cad393d8b48598cc9384e10ef729f0c26d5ac03
Wordpress Stackexchange Q: Debugging 'Object of class WP_Query could not be converted to int' error I am seeing the PHP notice error; Notice: Object of class WP_Query could not be converted to int in G:\.....\property-search-form.php on line 350 At that line I have a meta query that create a new WP_Query set of results using the code; $results = new WP_Query( $args ); if(($results == 0) || ($results == false) || ($results == NULL) || !is_object($results) || !($results->have_posts())) { return $results; } else { return $results; } I understand that the final $result is a number, when I ran it with 9 matching results and used print_r to display the results it returns 9, so not sure what this error means, and how to resolve it. A: The issue if that your conditional is trying to convert an Object into things that it cannot be converted to. WP_Query returns a WP_Query Object so when it's tested against Object == 0 - it tries to convert the object into a number during the comparison but cannot. You instead need to test against $results->have_posts() or one of it's properties such as 0 === $results->found_posts
Q: Debugging 'Object of class WP_Query could not be converted to int' error I am seeing the PHP notice error; Notice: Object of class WP_Query could not be converted to int in G:\.....\property-search-form.php on line 350 At that line I have a meta query that create a new WP_Query set of results using the code; $results = new WP_Query( $args ); if(($results == 0) || ($results == false) || ($results == NULL) || !is_object($results) || !($results->have_posts())) { return $results; } else { return $results; } I understand that the final $result is a number, when I ran it with 9 matching results and used print_r to display the results it returns 9, so not sure what this error means, and how to resolve it. A: The issue if that your conditional is trying to convert an Object into things that it cannot be converted to. WP_Query returns a WP_Query Object so when it's tested against Object == 0 - it tries to convert the object into a number during the comparison but cannot. You instead need to test against $results->have_posts() or one of it's properties such as 0 === $results->found_posts
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:463833", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/220212" }
[ 0.06463623046875, 0.0015459060668945312, 0.0277252197265625, 0.049530029296875, 0.0167388916015625, -0.051727294921875, 0.09820556640625, -0.07366943359375, 0.0484619140625, 0.00966644287109375, -0.06689453125, -0.0256805419921875, -0.0396728515625, 0.00156402587890625, -0.06103515625, -0.059173583984375, 0.0242156982421875, -0.0071868896484375, 0.007686614990234375, -0.0057525634765625, 0.0087432861328125, 0.01470947265625, 0.0179443359375, 0.0009646415710449219, 0.00994110107421875, -0.05889892578125, 0.06805419921875, -0.02801513671875, 0.016510009765625, -0.024810791015625, 0.01082611083984375, 0.0193939208984375, 0.05377197265625, 0.01148223876953125, -0.04248046875, 0.03961181640625, 0.038909912109375, -0.021881103515625, -0.015838623046875, 0.028228759765625, 0.0211944580078125, -0.01461029052734375, -0.00675201416015625, -0.0078125, -0.0168914794921875, -0.042236328125, 0.034454345703125, -0.0201416015625, 0.0168304443359375, -0.017242431640625, -0.03369140625, 0.021759033203125, -0.008575439453125, -0.033355712890625, -0.0259857177734375, -0.03765869140625, 0.00833892822265625, 0.014984130859375, 0.0149993896484375, -0.003143310546875, -0.0251007080078125, 0.01419830322265625, 0.020660400390625, -0.026824951171875, -0.0022258758544921875, -0.00589752197265625, 0.003009796142578125, 0.00803375244140625, 0.0135345458984375, 0.0003743171691894531, 0.0170135498046875, 0.00025200843811035156, -0.024505615234375, 0.003787994384765625, 0.0009398460388183594, -0.03765869140625, 0.02166748046875, -0.03558349609375, -0.0016298294067382812, 0.053070068359375, 0.0300750732421875, -0.021636962890625, -0.039031982421875, 0.05914306640625, -0.006378173828125, 0.0740966796875, -0.00745391845703125, -0.04156494140625, -0.016326904296875, -0.034210205078125, -0.01522064208984375, -0.017181396484375, -0.05950927734375, -0.005290985107421875, 0.00555419921875, -0.07489013671875, 0.003803253173828125, 0.0167236328125, -0.0017843246459960938, 0.012939453125, -0.0237579345703125, -0.0357666015625, 0.002094268798828125, -0.01288604736328125, 0.01532745361328125, 0.0305633544921875, 0.0022411346435546875, -0.0093841552734375, 0.046478271484375, 0.031524658203125, 0.016448974609375, 0.05377197265625, -0.04632568359375, -0.043548583984375, -0.01248931884765625, 0.0634765625, -0.037261962890625, -0.0150146484375, 0.01218414306640625, -0.0079193115234375, -0.0180511474609375, 0.0005688667297363281, 0.034515380859375, -0.027496337890625, 0.0244598388671875, 0.003704071044921875, -0.0241546630859375, -0.006305694580078125, 0.0191802978515625, 0.02978515625, -0.006015777587890625, -0.0054779052734375, 0.00811767578125, -0.008453369140625, -0.0308380126953125, -0.014862060546875, 0.018646240234375, 0.0004935264587402344, 0.0008459091186523438, -0.0105133056640625, 0.019805908203125, -0.0190887451171875, -0.005870819091796875, 0.0142364501953125, 0.01206207275390625, 0.041656494140625, 0.042266845703125, -0.0154266357421875, -0.0206298828125, -0.078125, 0.0261688232421875, -0.00522613525390625, 0.023406982421875, 0.021270751953125, -0.0195465087890625, 0.0009150505065917969, 0.041778564453125, -0.03436279296875, -0.0180511474609375, -0.04522705078125, 0.0259246826171875, -0.0024280548095703125, 0.0155487060546875, -0.017181396484375, -0.01206207275390625, -0.00823974609375, -0.039459228515625, -0.0039215087890625, 0.004199981689453125, 0.03607177734375, -0.0306854248046875, 0.0244598388671875, 0.0196380615234375, -0.0312042236328125, -0.0247955322265625, -0.0277862548828125, -0.0012407302856445312, 0.0024585723876953125, 0.019805908203125, 0.0157623291015625, 0.0015668869018554688, -0.0249786376953125, 0.03143310546875, -0.0024890899658203125, -0.01015472412109375, 0.047760009765625, -0.01275634765625, -0.04473876953125, -0.00576019287109375, -0.009124755859375, 0.0228424072265625, 0.0928955078125, -0.03228759765625, 0.051300048828125, -0.0031070709228515625, -0.0280609130859375, -0.0218963623046875, -0.006931304931640625, -0.0135040283203125, -0.00400543212890625, 0.014190673828125, 0.0132904052734375, -0.03948974609375, 0.0109100341796875, -0.0919189453125, 0.0150299072265625, -0.0311737060546875, 0.027740478515625, -0.041656494140625, 0.0247802734375, 0.034393310546875, 0.01629638671875, -0.0645751953125, 0.0626220703125, 0.01617431640625, -0.00696563720703125, -0.0289459228515625, -0.0219268798828125, -0.04083251953125, -0.036468505859375, -0.0341796875, -0.0208282470703125, -0.033966064453125, 0.059356689453125, 0.04107666015625, -0.00264739990234375, -0.006061553955078125, -0.0189208984375, 0.0838623046875, 0.00730133056640625, 0.038299560546875, -0.00611114501953125, -0.0166168212890625, 0.0077972412109375, -0.0087127685546875, 0.01910400390625, 0.01433563232421875, -0.053802490234375, 0.01264190673828125, 0.03631591796875, 0.032684326171875, 0.0225982666015625, -0.00899505615234375, -0.02703857421875, 0.017303466796875, -0.04913330078125, 0.0157928466796875, -0.040313720703125, -0.00848388671875, -0.0078277587890625, -0.0020694732666015625, -0.033660888671875, 0.03533935546875, -0.0567626953125, -0.0206298828125, 0.0526123046875, 0.007068634033203125, 0.02099609375, -0.040130615234375, 0.0276947021484375, -0.018310546875, -0.0423583984375, -0.016204833984375, -0.0238494873046875, -0.00321197509765625, -0.005039215087890625, 0.01959228515625, 0.0108642578125, 0.0118255615234375, -0.010498046875, 0.00994110107421875, -0.038238525390625, -0.0021839141845703125, -0.0145263671875, -0.0546875, 0.069091796875, -0.045440673828125, 0.0288543701171875, 0.0301055908203125, -0.0088958740234375, -0.02105712890625, 0.056640625, -0.01873779296875, -0.0189971923828125, -0.054595947265625, 0.004268646240234375, 0.00543212890625, 0.022369384765625, -0.0132598876953125, -0.01271820068359375, 0.00853729248046875, 0.039947509765625, -0.0205230712890625, 0.052734375, -0.033660888671875, -0.00916290283203125, 0.04693603515625, -0.044586181640625, 0.039093017578125, -0.029541015625, 0.072998046875, 0.06182861328125, -0.0299224853515625, 0.0284423828125, -0.015625, 0.01538848876953125, -0.0246124267578125, 0.0167999267578125, -0.01715087890625, -0.0310516357421875, -0.053070068359375, -0.007648468017578125, 0.03192138671875, 0.07781982421875, 0.005718231201171875, -0.0362548828125, 0.010009765625, 0.035552978515625, -0.104736328125, -0.1558837890625, -0.032867431640625, 0.0124359130859375, -0.0142364501953125, 0.0026874542236328125, 0.0031414031982421875, 0.01531219482421875, -0.0174713134765625, 0.002330780029296875, 0.050384521484375, 0.0156402587890625, -0.06640625, 0.0129241943359375, -0.05816650390625, 0.021636962890625, -0.0083770751953125, 0.015960693359375, 0.009429931640625, 0.0235595703125, -0.00016868114471435547, -0.01751708984375, 0.0226898193359375, 0.10101318359375, 0.00787353515625, -0.021636962890625, -0.022705078125, 0.0171051025390625, -0.0035114288330078125, -0.003326416015625, 0.0124969482421875, 0.013885498046875, -0.007335662841796875, -0.00785064697265625, -0.00637054443359375, 0.035369873046875, 0.01161956787109375, 0.005382537841796875, -0.006450653076171875, 0.031646728515625, -0.0001341104507446289, -0.0271759033203125, -0.0291900634765625, -0.0289306640625, -0.042327880859375, 0.0721435546875, 0.0220184326171875, 0.00684356689453125, 0.009490966796875, 0.030517578125, -0.0171661376953125, -0.0019969940185546875, -0.026123046875, -0.0246429443359375, 0.0222930908203125, 0.0062408447265625, 0.01415252685546875, 0.0193939208984375, 0.04290771484375, -0.0020389556884765625, -0.0139007568359375, 0.0222625732421875, 0.00919342041015625, 0.00942230224609375, -0.037322998046875, -0.028778076171875, -0.03094482421875, 0.039215087890625, -0.0231781005859375, 0.0241851806640625, -0.0487060546875, -0.03076171875, -0.03289794921875, 0.0699462890625, 0.00669097900390625, -0.047454833984375, -0.036163330078125, 0.002582550048828125, -0.00502777099609375, -0.006221771240234375, 0.0361328125, -0.0181427001953125, 0.00658416748046875, -0.0236968994140625, -0.007732391357421875, -0.023681640625, -0.0343017578125, 0.0277557373046875, -0.0288238525390625, 0.004009246826171875, 0.0297698974609375, 0.000530242919921875, 0.0281829833984375, 0.022186279296875, 0.0200347900390625, 0.0134735107421875, -0.0172576904296875, -0.024932861328125, -0.126708984375, -0.047271728515625, 0.0239410400390625, 0.10198974609375, -0.0257720947265625, -0.0021533966064453125, -0.030548095703125, 0.078125, 0.005603790283203125, -0.0130615234375, 0.01114654541015625, 0.015869140625, -0.0031490325927734375, 0.01320648193359375, -0.0049285888671875, -0.0190277099609375, 0.0082855224609375, -0.02398681640625, -0.0267181396484375, -0.0180511474609375, -0.057159423828125, -0.0009760856628417969, -0.036041259765625, -0.018463134765625, 0.018341064453125, -0.001796722412109375, -0.0144805908203125, 0.063720703125, -0.050933837890625, 0.03759765625, -0.03271484375, 0.0185699462890625, 0.042083740234375, 0.029876708984375, -0.005352020263671875, -0.01238250732421875, 0.06622314453125, 0.0203857421875, -0.037994384765625, -0.003467559814453125, -0.01708984375, -0.0091400146484375, 0.01316070556640625, 0.0462646484375, 0.003467559814453125, 0.00807952880859375, 0.0113677978515625, -0.028228759765625, -0.0036983489990234375, -0.0218658447265625, 0.04339599609375, -0.00913238525390625, -0.03924560546875, 0.043212890625, -0.0181884765625, 0.005626678466796875, 0.040863037109375, 0.01129913330078125, -0.03033447265625, 0.040985107421875, 0.032623291015625, -0.034515380859375, 0.0128173828125, -0.0014085769653320312, -0.046875, 0.022247314453125, -0.03179931640625, -0.012420654296875, -0.006786346435546875, 0.01250457763671875, -0.01197052001953125, 0.005260467529296875, 0.00530242919921875, 0.0173492431640625, 0.0335693359375, -0.021759033203125, 0.0261077880859375, 0.006641387939453125, -0.02667236328125, 0.0011577606201171875, -0.00534820556640625, 0.053924560546875, -0.0072784423828125, -0.048675537109375, 0.00968170166015625, 0.0005788803100585938, -0.01300811767578125, 0.025390625, 0.0013980865478515625, 0.042999267578125, 0.05242919921875, -0.0077056884765625, 0.005924224853515625, -0.0157012939453125, 0.0083160400390625, -0.0404052734375, 0.0250701904296875, 0.0095977783203125, -0.0032196044921875, 0.00662994384765625, 0.053009033203125, 0.019073486328125, 0.0262908935546875, -0.018890380859375, -0.0180206298828125, -0.034423828125, 0.05230712890625, 0.01314544677734375, -0.03802490234375, 0.0377197265625, -0.0009274482727050781, 0.0242462158203125, -0.0244140625, -0.0199432373046875, 0.00836944580078125, 0.00823211669921875, 0.0194244384765625, 0.0048370361328125, 0.034027099609375, 0.0234375, -0.01544189453125, -0.0090179443359375, 0.0264129638671875, 0.02386474609375, -0.0258331298828125, -0.06341552734375, 0.0028476715087890625, 0.0278167724609375, 0.003925323486328125, -0.0253143310546875, -0.0032176971435546875, 0.041290283203125, -0.05047607421875, 0.0289764404296875, -0.0099029541015625, -0.00931549072265625, -0.00366973876953125, -0.038787841796875, -0.0019102096557617188, -0.0243988037109375, 0.040802001953125, -0.02471923828125, -0.037017822265625, -0.00511932373046875, -0.007480621337890625, 0.00345611572265625, -0.040618896484375, 0.0116729736328125, -0.0204010009765625, 0.004150390625, 0.00970458984375, -0.007598876953125, 0.0031719207763671875, -0.036163330078125, -0.0289459228515625, -0.0221099853515625, 0.06329345703125, 0.0095367431640625, -0.0033969879150390625, -0.0211639404296875, 0.00894927978515625, 0.03704833984375, -0.0017871856689453125, -0.036865234375, -0.010528564453125, -0.037261962890625, -0.0184783935546875, 0.004451751708984375, -0.0152130126953125, 0.0452880859375, 0.0125885009765625, 0.014556884765625, 0.007091522216796875, 0.0153045654296875, -0.0047760009765625, -0.004924774169921875, 0.0220489501953125, -0.0399169921875, -0.0263519287109375, 0.00603485107421875, -0.03314208984375, -0.046234130859375, -0.0166015625, -0.0269775390625, 0.0192718505859375, 0.0037555694580078125, -0.005603790283203125, -0.020172119140625, 0.00556182861328125, -0.00807952880859375, 0.07379150390625, -0.04058837890625, -0.004276275634765625, 0.0077056884765625, 0.0003466606140136719, 0.0212249755859375, -0.03216552734375, -0.00882720947265625, -0.0182647705078125, -0.01534271240234375, 0.00102996826171875, 0.0110015869140625, 0.0165557861328125, 0.00867462158203125, 0.0248565673828125, 0.000904083251953125, 0.0096282958984375, 0.01239776611328125, 0.00962066650390625, 0.040985107421875, -0.00007450580596923828, 0.06451416015625, -0.016815185546875, -0.0416259765625, 0.01259613037109375, -0.06219482421875, 0.0254364013671875, 0.04925537109375, 0.052947998046875, -0.095458984375, 0.0198822021484375, 0.008636474609375, -0.0029163360595703125, 0.0077056884765625, 0.0030307769775390625, 0.0293121337890625, 0.00514984130859375, -0.0012073516845703125, 0.0124359130859375, -0.01285552978515625, -0.0026874542236328125, -0.003047943115234375, -0.01458740234375, -0.004840850830078125, -0.0035915374755859375, 0.0084075927734375, -0.044342041015625, 0.04541015625, 0.034149169921875, 0.013946533203125, 0.00872802734375, 0.02734375, 0.0216522216796875, -0.018798828125, -0.089599609375, -0.0012836456298828125, -0.0162353515625, -0.06292724609375, 0.0023097991943359375, 0.0144500732421875, 0.04559326171875, 0.051544189453125, 0.0011138916015625, -0.020477294921875, 0.00849151611328125, 0.029754638671875, -0.037017822265625, -0.0212554931640625, 0.0201263427734375, 0.055084228515625, -0.062408447265625, 0.0234832763671875, -0.033050537109375, 0.01058197021484375, -0.00733184814453125, -0.059173583984375, 0.00875091552734375, -0.0178680419921875, 0.0021610260009765625, 0.0369873046875, -0.01284027099609375, -0.01548004150390625, -0.0167694091796875, 0.04144287109375, -0.04010009765625, -0.002254486083984375, 0.0067291259765625, 0.0119476318359375, -0.043426513671875, -0.01812744140625, -0.018218994140625, 0.02191162109375, -0.0196533203125, -0.007656097412109375, 0.040313720703125, 0.00539398193359375, -0.0234527587890625, -0.011993408203125, -0.046783447265625, 0.06829833984375, -0.02484130859375, 0.0621337890625, -0.061676025390625, -0.0091094970703125, 0.0267333984375, 0.029022216796875, 0.0009169578552246094, 0.0020008087158203125, -0.030914306640625, -0.0309295654296875, -0.0294036865234375, 0.015472412109375, -0.0037593841552734375, 0.0433349609375, 0.031158447265625, 0.043365478515625, 0.06610107421875, -0.060791015625, 0.0177764892578125, -0.01055908203125, 0.02301025390625, 0.04278564453125, 0.0273590087890625, 0.0218963623046875, -0.019622802734375, 0.02374267578125, -0.013275146484375, -0.0042266845703125, 0.0236358642578125, -0.005092620849609375, 0.05377197265625, 0.038543701171875, 0.045745849609375, -0.0194854736328125, -0.031524658203125, 0.0000642538070678711, 0.034820556640625, -0.0098114013671875, 0.034698486328125, -0.00337982177734375, 0.0064697265625, 0.07196044921875, -0.0313720703125, 0.004238128662109375, 0.020233154296875, -0.036346435546875, 0.047882080078125, 0.0156402587890625, 0.020477294921875, -0.030181884765625, 0.01495361328125, 0.037933349609375, 0.0682373046875, -0.043792724609375, -0.061309814453125, 0.00922393798828125, 0.005157470703125, 0.0196990966796875, 0.040496826171875, 0.043060302734375, 0.061004638671875, 0.0777587890625, -0.045257568359375, -0.0087127685546875, 0.03631591796875, -0.01253509521484375, -0.01043701171875, -0.026092529296875, 0.03350830078125, -0.00183868408203125, -0.025360107421875, 0.0012493133544921875, 0.006412506103515625, 0.07891845703125, 0.0010004043579101562, 0.052001953125, -0.08343505859375, -0.03814697265625, -0.01708984375, 0.0311279296875, 0.01293182373046875, 0.012603759765625, -0.032623291015625, -0.0261993408203125, 0.004795074462890625, 0.0238800048828125, 0.013275146484375, 0.0168304443359375, 0.0435791015625, 0.0238189697265625, -0.040435791015625, 0.0014905929565429688, 0.0204925537109375, -0.03521728515625, -0.05767822265625, -0.0234222412109375, 0.006649017333984375, 0.02447509765625, 0.01739501953125, 0.0155487060546875, 0.04351806640625, -0.00176239013671875, 0.0174102783203125, -0.007236480712890625, 0.01561737060546875, -0.02008056640625, 0.028778076171875, 0.0298614501953125, 0.049102783203125, 0.04345703125, -0.086669921875, -0.01629638671875, -0.0244293212890625, -0.046112060546875, 0.0309600830078125, 0.03216552734375, -0.015777587890625, 0.0009679794311523438, 0.004756927490234375, -0.0133819580078125, 0.0266265869140625, -0.01873779296875, 0.024505615234375, 0.0021419525146484375, 0.00478363037109375, -0.0004565715789794922, -0.053924560546875, -0.039794921875, -0.0132293701171875, 0.03314208984375, -0.0340576171875, 0.04266357421875, 0.001354217529296875, 0.0158843994140625, -0.04888916015625, 0.0106201171875, -0.049896240234375, -0.060272216796875, 0.06597900390625, -0.028472900390625, -0.03265380859375, 0.01488494873046875, -0.01282501220703125, -0.005008697509765625, 0.03289794921875, -0.024658203125, -0.03936767578125, 0.01548004150390625, 0.031524658203125, 0.01323699951171875, 0.0161895751953125, -0.02166748046875, -0.000009953975677490234, 0.01043701171875, 0.0149993896484375, 0.01727294921875, 0.0096282958984375, -0.0116119384765625, 0.04962158203125, -0.0008502006530761719, -0.05047607421875, 0.0325927734375, -0.0859375, 0.04150390625, 0.036407470703125, 0.030914306640625, 0.043609619140625, -0.0176544189453125, -0.02618408203125, 0.0196533203125, 0.011627197265625, -0.0300140380859375, 0.002735137939453125, 0.032470703125, -0.0323486328125, -0.00811004638671875, -0.019989013671875, -0.03814697265625, -0.0155487060546875, 0.016632080078125, -0.0290985107421875, -0.0244140625, 0.0240936279296875, -0.0163726806640625, 0.0018548965454101562, -0.01351165771484375, 0.0019245147705078125, 0.0118255615234375, 0.0059814453125, -0.018096923828125, -0.0013418197631835938, 0.00870513916015625, -0.006320953369140625, -0.022491455078125, 0.0275726318359375, -0.03924560546875, -0.010284423828125, -0.0233306884765625, -0.0291290283203125, 0.0172882080078125, 0.0194854736328125, -0.03662109375, 0.0005035400390625, -0.047882080078125, -0.031097412109375, -0.023223876953125, 0.036376953125, 0.037017822265625, -0.035888671875, -0.029754638671875, 0.00756072998046875, 0.021636962890625, 0.0293731689453125, 0.038543701171875, -0.00043511390686035156, 0.00913238525390625, 0.015960693359375, -0.0279083251953125, -0.064697265625, 0.035064697265625, -0.053924560546875, -0.0157623291015625, 0.045196533203125, -0.00980377197265625, 0.0149383544921875, -0.01557159423828125, -0.054901123046875, 0.016571044921875, 0.014892578125, -0.040679931640625, -0.046844482421875, -0.042694091796875, 0.006679534912109375, 0.007617950439453125, -0.01763916015625, -0.016571044921875, -0.05755615234375, 0.02197265625, 0.012542724609375, -0.036712646484375, 0.049774169921875, -0.0036945343017578125, -0.09942626953125, -0.008148193359375, -0.02752685546875, -0.00916290283203125, -0.0170135498046875, 0.01136016845703125, -0.0100250244140625, 0.00760650634765625, -0.035491943359375, -0.0025997161865234375, 0.00008249282836914062, 0.031707763671875, 0.0236053466796875, 0.0146331787109375, -0.04412841796875, -0.03167724609375, 0.0537109375, 0.0036487579345703125, 0.0322265625, 0.01177978515625, -0.01227569580078125, -0.031341552734375, -0.03924560546875, -0.0266265869140625, 0.022857666015625, -0.06719970703125, -0.010528564453125, 0.00485992431640625, 0.009552001953125, 0.05596923828125, -0.025482177734375, 0.0088653564453125, -0.00992584228515625, -0.0070343017578125, -0.0175018310546875, -0.016204833984375, -0.02215576171875, -0.026031494140625, -0.01461029052734375, -0.047943115234375, 0.019927978515625, 0.00798797607421875, -0.050750732421875, 0.041351318359375, -0.00739288330078125, -0.0235595703125, 0.00923919677734375, 0.01122283935546875, 0.0190582275390625, 0.005748748779296875, 0.006099700927734375, -0.0063323974609375, 0.00971221923828125, 0.01544952392578125, 0.003711700439453125, 0.0131988525390625, 0.0272674560546875, 0.003765106201171875, -0.01470947265625, 0.025238037109375, 0.0228729248046875, 0.0416259765625, -0.0062103271484375, 0.05645751953125, 0.0015621185302734375, -0.03192138671875, 0.01398468017578125, -0.044647216796875, -0.00713348388671875, 0.0269622802734375, 0.01284027099609375, -0.054534912109375, 0.033172607421875, 0.055816650390625, 0.0207672119140625, 0.02301025390625 ]
377831bdcf9236f4ca60f1b8190b474161386313
Wordpress Stackexchange Q: Category base to url in custom post type/taxonomy I'm building a recipe site that uses custom post types for recipes. So I searched for including the custom post type categories in the url and found a solution below by Milo. It rewrites the url and adds the category. The only problem is; the archive page of the entire custom post type is now located at /recept/%category%/ Solution Milo: Add category base to url in custom post type/taxonomy Code being used: 'rewrite' => array('slug' => 'recept/%category%','with_front' => false), function wpa_course_post_link( $post_link, $id = 0 ){ $post = get_post($id); if ( is_object( $post ) ){ $terms = wp_get_object_terms( $post->ID, 'category' ); if( $terms ){ return str_replace( '%category%' , $terms[0]->slug , $post_link ); //return str_replace( 'recept/' , 'recept/'.$terms[0]->slug , $post_link ); } } return $post_link; I tried to delete the %category% from the slug rewrite and insert it through the function. But that breaks down all my category pages and the archive still won't work.
Q: Category base to url in custom post type/taxonomy I'm building a recipe site that uses custom post types for recipes. So I searched for including the custom post type categories in the url and found a solution below by Milo. It rewrites the url and adds the category. The only problem is; the archive page of the entire custom post type is now located at /recept/%category%/ Solution Milo: Add category base to url in custom post type/taxonomy Code being used: 'rewrite' => array('slug' => 'recept/%category%','with_front' => false), function wpa_course_post_link( $post_link, $id = 0 ){ $post = get_post($id); if ( is_object( $post ) ){ $terms = wp_get_object_terms( $post->ID, 'category' ); if( $terms ){ return str_replace( '%category%' , $terms[0]->slug , $post_link ); //return str_replace( 'recept/' , 'recept/'.$terms[0]->slug , $post_link ); } } return $post_link; I tried to delete the %category% from the slug rewrite and insert it through the function. But that breaks down all my category pages and the archive still won't work.
wordpress
{ "language": "en", "length": 163, "provenance": "stackexchange_00019.jsonl.gz:463842", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/220240" }
[ 0.044189453125, 0.044097900390625, -0.059478759765625, -0.07550048828125, 0.061737060546875, -0.046966552734375, 0.0246429443359375, 0.00533294677734375, -0.0105743408203125, -0.007144927978515625, 0.0275726318359375, -0.04327392578125, 0.0272064208984375, -0.076416015625, 0.0537109375, -0.0008649826049804688, 0.00893402099609375, -0.0152587890625, 0.00945281982421875, -0.00774383544921875, 0.00737762451171875, -0.017486572265625, 0.01861572265625, -0.0005388259887695312, 0.0154571533203125, -0.0136260986328125, 0.01374053955078125, -0.0117340087890625, -0.01143646240234375, -0.043731689453125, 0.0162811279296875, 0.0311431884765625, 0.0341796875, -0.00649261474609375, -0.0023708343505859375, 0.020111083984375, 0.0301666259765625, -0.00970458984375, -0.015625, 0.03271484375, 0.0259246826171875, -0.025238037109375, 0.03106689453125, -0.0136566162109375, 0.0254364013671875, -0.045135498046875, 0.0523681640625, -0.04998779296875, 0.00609588623046875, -0.00936126708984375, 0.0159912109375, 0.006206512451171875, 0.019805908203125, -0.042022705078125, -0.0080108642578125, 0.0061492919921875, 0.0009379386901855469, -0.01306915283203125, 0.0211181640625, -0.0303955078125, -0.028228759765625, -0.00817108154296875, 0.0291595458984375, 0.0156097412109375, -0.00855255126953125, 0.0030612945556640625, 0.052490234375, 0.0273590087890625, -0.071044921875, -0.03155517578125, 0.023223876953125, -0.025115966796875, -0.006206512451171875, -0.00014257431030273438, 0.0008821487426757812, -0.0362548828125, 0.02227783203125, -0.013916015625, -0.005084991455078125, 0.04052734375, -0.0127105712890625, 0.00980377197265625, 0.01788330078125, -0.0396728515625, 0.0118408203125, -0.0167388916015625, -0.0081024169921875, -0.01190948486328125, -0.028289794921875, -0.00988006591796875, -0.0086822509765625, -0.0576171875, -0.033782958984375, 0.01837158203125, 0.0293731689453125, -0.0523681640625, 0.0181427001953125, 0.02850341796875, 0.01372528076171875, 0.0218353271484375, 0.0306396484375, -0.06463623046875, 0.06671142578125, -0.03997802734375, 0.02532958984375, 0.0452880859375, -0.0157928466796875, 0.03070068359375, 0.0675048828125, 0.020965576171875, 0.0259857177734375, 0.0307464599609375, -0.013519287109375, -0.0206146240234375, -0.00027823448181152344, 0.0361328125, -0.028717041015625, 0.005878448486328125, -0.0139007568359375, 0.0128326416015625, -0.0198516845703125, 0.024505615234375, 0.0180206298828125, -0.00974273681640625, -0.00920867919921875, 0.002193450927734375, 0.019195556640625, -0.06549072265625, 0.0191802978515625, 0.0011348724365234375, -0.03656005859375, 0.0240020751953125, 0.05548095703125, 0.0106658935546875, 0.01129150390625, -0.0194549560546875, 0.0007333755493164062, -0.03814697265625, -0.022247314453125, 0.0174713134765625, -0.00004565715789794922, 0.002613067626953125, 0.044189453125, -0.0098876953125, 0.032958984375, 0.0094757080078125, 0.0011425018310546875, 0.014984130859375, 0.025421142578125, -0.016937255859375, 0.03173828125, -0.03997802734375, 0.08599853515625, 0.0011806488037109375, -0.06256103515625, -0.037384033203125, 0.04205322265625, -0.046783447265625, -0.050140380859375, -0.08447265625, 0.041961669921875, -0.009796142578125, 0.00847625732421875, -0.0196075439453125, -0.055450439453125, 0.01422119140625, -0.06982421875, -0.025299072265625, 0.01433563232421875, 0.01412200927734375, 0.01146697998046875, 0.0018415451049804688, -0.028839111328125, 0.032867431640625, 0.029205322265625, 0.0213470458984375, 0.003505706787109375, 0.01275634765625, 0.0152435302734375, 0.08856201171875, 0.023590087890625, -0.0246429443359375, 0.0316162109375, -0.01026153564453125, -0.045745849609375, 0.05889892578125, 0.01027679443359375, 0.08599853515625, -0.019012451171875, 0.01194000244140625, 0.0163726806640625, 0.029296875, -0.032470703125, -0.0014352798461914062, 0.00762176513671875, 0.00032973289489746094, 0.00878143310546875, 0.00705718994140625, -0.007415771484375, -0.007015228271484375, -0.04815673828125, 0.03826904296875, -0.022003173828125, 0.039581298828125, -0.02197265625, 0.034881591796875, -0.01180267333984375, 0.051177978515625, -0.025543212890625, 0.008819580078125, 0.03875732421875, 0.013671875, -0.03936767578125, -0.0244903564453125, -0.021087646484375, 0.01512908935546875, 0.0181732177734375, -0.0136260986328125, -0.00894927978515625, 0.003009796142578125, -0.00574493408203125, -0.026336669921875, -0.036895751953125, 0.025665283203125, 0.0452880859375, 0.021484375, -0.019012451171875, -0.0300140380859375, -0.0194091796875, 0.03436279296875, -0.12176513671875, 0.04656982421875, 0.056854248046875, -0.0106658935546875, -0.0450439453125, 0.01904296875, 0.02862548828125, -0.0302734375, -0.02447509765625, 0.048309326171875, 0.0232696533203125, 0.01190185546875, -0.0261383056640625, -0.0265960693359375, 0.056671142578125, -0.039581298828125, -0.009002685546875, -0.0139312744140625, -0.0029201507568359375, 0.057830810546875, 0.0222015380859375, 0.03460693359375, -0.0020198822021484375, 0.0160064697265625, 0.01233673095703125, 0.01715087890625, -0.01229095458984375, -0.0230255126953125, 0.01763916015625, -0.0270538330078125, 0.032806396484375, -0.01490020751953125, -0.0452880859375, 0.0179443359375, 0.03692626953125, 0.004352569580078125, 0.048980712890625, 0.0352783203125, -0.03289794921875, -0.004985809326171875, 0.013427734375, 0.0460205078125, -0.0240478515625, 0.004833221435546875, 0.050689697265625, -0.016510009765625, -0.01367950439453125, 0.0147247314453125, -0.0231781005859375, -0.004009246826171875, -0.0087127685546875, 0.055023193359375, -0.008087158203125, -0.015899658203125, -0.051666259765625, -0.07745361328125, -0.002475738525390625, 0.0123291015625, -0.01325225830078125, -0.017730712890625, 0.0158843994140625, 0.027130126953125, 0.0089263916015625, -0.00841522216796875, 0.0180816650390625, -0.01007843017578125, 0.037109375, -0.034759521484375, 0.037322998046875, -0.036163330078125, 0.036407470703125, 0.05120849609375, -0.008941650390625, 0.006275177001953125, 0.01611328125, -0.025054931640625, -0.007152557373046875, 0.038055419921875, 0.0038890838623046875, -0.0360107421875, -0.020355224609375, 0.0211029052734375, 0.024505615234375, 0.0147247314453125, 0.0235443115234375, -0.0233154296875, 0.00855255126953125, 0.0234527587890625, -0.047760009765625, -0.0693359375, 0.04559326171875, -0.03839111328125, 0.00333404541015625, 0.01910400390625, -0.022857666015625, -0.032440185546875, 0.047943115234375, -0.01311492919921875, 0.022430419921875, -0.0225372314453125, -0.04974365234375, -0.047271728515625, -0.0767822265625, -0.056976318359375, -0.007129669189453125, -0.0011968612670898438, 0.0002015829086303711, 0.0501708984375, 0.016357421875, -0.04449462890625, 0.0104217529296875, 0.063720703125, -0.00409698486328125, 0.016204833984375, 0.012939453125, -0.0199127197265625, 0.03070068359375, -0.0150909423828125, 0.0574951171875, 0.046417236328125, -0.029571533203125, 0.002536773681640625, -0.00629425048828125, 0.0276031494140625, -0.0088653564453125, 0.0167083740234375, 0.0306549072265625, 0.0170745849609375, 0.002105712890625, -0.027984619140625, -0.0198211669921875, -0.01029205322265625, -0.0167236328125, 0.01433563232421875, 0.00927734375, -0.007228851318359375, -0.0255584716796875, 0.024200439453125, 0.003437042236328125, 0.017669677734375, 0.051605224609375, -0.0171966552734375, 0.0225372314453125, -0.0220489501953125, -0.051788330078125, -0.0570068359375, 0.05084228515625, -0.0099029541015625, 0.0119476318359375, 0.02508544921875, 0.0032558441162109375, 0.0002262592315673828, -0.01378631591796875, -0.0292816162109375, -0.0626220703125, 0.0201568603515625, -0.0892333984375, 0.01947021484375, -0.05865478515625, 0.0036678314208984375, -0.006137847900390625, 0.09014892578125, -0.044891357421875, -0.006683349609375, -0.015533447265625, 0.0016622543334960938, -0.00020194053649902344, -0.0611572265625, -0.0335693359375, -0.0098114013671875, -0.06768798828125, 0.0170135498046875, 0.0161285400390625, -0.0203857421875, 0.004131317138671875, 0.0179290771484375, -0.02154541015625, -0.041656494140625, 0.03900146484375, -0.038421630859375, 0.006732940673828125, 0.00907135009765625, -0.0024280548095703125, -0.01151275634765625, -0.032440185546875, -0.0195770263671875, -0.066162109375, -0.00550079345703125, 0.007904052734375, 0.030517578125, 0.005649566650390625, -0.0206146240234375, 0.007747650146484375, 0.0599365234375, 0.029815673828125, 0.0028076171875, -0.005275726318359375, -0.016143798828125, -0.045166015625, 0.00479888916015625, -0.0092315673828125, -0.02203369140625, 0.01580810546875, -0.01122283935546875, -0.03466796875, 0.012054443359375, -0.0079498291015625, 0.0238037109375, 0.027923583984375, -0.036773681640625, -0.02490234375, -0.03131103515625, -0.037322998046875, 0.0257720947265625, -0.019775390625, 0.0007348060607910156, -0.055267333984375, -0.043609619140625, 0.0238800048828125, 0.016387939453125, -0.024505615234375, 0.0166778564453125, 0.02276611328125, 0.00791168212890625, -0.020477294921875, -0.0257568359375, 0.0249786376953125, 0.030609130859375, -0.0202484130859375, 0.047821044921875, 0.049468994140625, 0.0018548965454101562, 0.0243682861328125, 0.004611968994140625, 0.01056671142578125, -0.02081298828125, 0.044921875, -0.0006866455078125, -0.01313018798828125, 0.006011962890625, -0.02459716796875, 0.045257568359375, 0.030792236328125, -0.007450103759765625, -0.0105743408203125, -0.00916290283203125, 0.046356201171875, 0.0009050369262695312, 0.004085540771484375, -0.051544189453125, -0.02740478515625, 0.00033593177795410156, -0.01092529296875, 0.047119140625, 0.0279998779296875, -0.00450897216796875, 0.0159759521484375, 0.002071380615234375, 0.004413604736328125, -0.0099639892578125, 0.00931549072265625, -0.0166778564453125, 0.0189361572265625, -0.01136016845703125, -0.01201629638671875, -0.02313232421875, 0.017333984375, 0.0014219284057617188, -0.00782012939453125, -0.00499725341796875, -0.040191650390625, -0.00860595703125, -0.0281829833984375, -0.0003390312194824219, -0.045196533203125, 0.0235443115234375, 0.0170135498046875, -0.0018796920776367188, 0.019012451171875, -0.0582275390625, -0.0211639404296875, -0.044769287109375, 0.014862060546875, -0.00811004638671875, -0.0028839111328125, 0.0020961761474609375, 0.04864501953125, -0.01137542724609375, 0.01959228515625, 0.0010652542114257812, -0.00411224365234375, 0.0207977294921875, 0.03582763671875, 0.026947021484375, -0.019744873046875, -0.01187896728515625, 0.0208587646484375, 0.005809783935546875, -0.057891845703125, -0.0002677440643310547, 0.0292816162109375, 0.06817626953125, -0.022247314453125, -0.0592041015625, 0.0168914794921875, -0.040863037109375, -0.0148162841796875, -0.01047515869140625, -0.0312042236328125, -0.0201416015625, -0.0044097900390625, 0.0035991668701171875, 0.00713348388671875, 0.0003628730773925781, -0.032135009765625, -0.0057373046875, -0.023712158203125, 0.033935546875, 0.023162841796875, -0.018707275390625, 0.015838623046875, -0.00527191162109375, -0.0118255615234375, -0.043212890625, 0.00638580322265625, 0.007965087890625, 0.03753662109375, -0.03875732421875, -0.023406982421875, 0.0167694091796875, 0.01488494873046875, 0.00728607177734375, 0.0008020401000976562, -0.022552490234375, 0.053192138671875, -0.01526641845703125, 0.08856201171875, 0.004558563232421875, -0.040679931640625, 0.00589752197265625, -0.033966064453125, -0.0078125, 0.01129913330078125, -0.03753662109375, -0.028228759765625, -0.0137176513671875, 0.0047454833984375, 0.0233306884765625, -0.01727294921875, -0.0222320556640625, -0.01218414306640625, 0.00542449951171875, 0.0014362335205078125, 0.014007568359375, -0.03106689453125, 0.06024169921875, -0.006999969482421875, 0.070556640625, 0.005527496337890625, 0.0013303756713867188, -0.02288818359375, -0.0191802978515625, -0.01415252685546875, -0.070556640625, -0.0016765594482421875, 0.00008565187454223633, -0.01320648193359375, 0.051300048828125, 0.0472412109375, 0.02288818359375, 0.004840850830078125, 0.0106353759765625, -0.00827789306640625, -0.036163330078125, 0.0262451171875, 0.01568603515625, 0.0482177734375, -0.00811767578125, -0.004215240478515625, 0.057525634765625, 0.00615692138671875, 0.0032405853271484375, 0.0006432533264160156, -0.0318603515625, 0.0223846435546875, 0.0360107421875, -0.038055419921875, 0.0112762451171875, 0.05438232421875, 0.03887939453125, 0.055084228515625, -0.0016012191772460938, 0.042816162109375, 0.020050048828125, 0.0202484130859375, 0.01218414306640625, 0.0194091796875, 0.032867431640625, -0.0252838134765625, -0.0257110595703125, -0.005321502685546875, -0.030853271484375, -0.012054443359375, 0.03533935546875, 0.038604736328125, -0.05224609375, -0.0216827392578125, 0.0033855438232421875, -0.0005974769592285156, 0.0258331298828125, 0.021484375, 0.0140380859375, 0.057464599609375, -0.028472900390625, -0.0015268325805664062, -0.03265380859375, -0.004543304443359375, 0.0311279296875, 0.01259613037109375, 0.002079010009765625, 0.024017333984375, 0.014251708984375, -0.015716552734375, -0.0181121826171875, 0.0280303955078125, 0.0104522705078125, -0.0298004150390625, -0.0110015869140625, 0.038330078125, -0.0069427490234375, -0.0257720947265625, 0.06671142578125, -0.033172607421875, 0.02410888671875, 0.042755126953125, -0.00015795230865478516, 0.0208740234375, 0.02520751953125, 0.004375457763671875, 0.004680633544921875, -0.0108489990234375, -0.029266357421875, 0.0523681640625, 0.004329681396484375, 0.0161285400390625, -0.0042572021484375, -0.007190704345703125, 0.0016298294067382812, -0.01458740234375, -0.024505615234375, -0.051910400390625, -0.054534912109375, 0.1219482421875, -0.030853271484375, -0.013946533203125, 0.01277923583984375, 0.057525634765625, -0.0160369873046875, 0.004924774169921875, 0.04510498046875, -0.016265869140625, 0.00022912025451660156, 0.01708984375, 0.0012073516845703125, 0.0058746337890625, -0.00897216796875, -0.0672607421875, 0.10498046875, -0.0186920166015625, 0.037628173828125, 0.007129669189453125, 0.038909912109375, -0.004383087158203125, 0.0248565673828125, -0.0291748046875, 0.052215576171875, 0.027923583984375, 0.02880859375, -0.039794921875, -0.0204620361328125, 0.0038509368896484375, 0.054290771484375, 0.047882080078125, 0.0088653564453125, -0.019805908203125, 0.02191162109375, 0.051910400390625, 0.004589080810546875, -0.032928466796875, 0.04095458984375, -0.00946807861328125, 0.00023305416107177734, 0.031524658203125, -0.006870269775390625, 0.035614013671875, 0.00937652587890625, -0.0313720703125, 0.00325775146484375, 0.0038204193115234375, 0.0250244140625, -0.0063018798828125, 0.0247344970703125, -0.0131988525390625, -0.007572174072265625, 0.021270751953125, -0.0465087890625, -0.00661468505859375, 0.023681640625, 0.016448974609375, -0.045318603515625, -0.0160675048828125, -0.018157958984375, 0.0372314453125, 0.00746917724609375, 0.059295654296875, 0.0142364501953125, 0.015960693359375, 0.102783203125, -0.04168701171875, 0.002635955810546875, -0.00638580322265625, -0.01678466796875, 0.06475830078125, 0.0509033203125, 0.04119873046875, -0.0016651153564453125, 0.0125579833984375, 0.029815673828125, 0.06292724609375, -0.054229736328125, -0.055328369140625, 0.01004791259765625, 0.019317626953125, 0.00719451904296875, 0.031707763671875, 0.0450439453125, 0.0172119140625, 0.05718994140625, -0.052001953125, -0.006877899169921875, -0.0101776123046875, 0.06982421875, -0.0400390625, -0.040924072265625, -0.035675048828125, -0.02764892578125, -0.050323486328125, 0.00727081298828125, -0.001560211181640625, 0.06781005859375, 0.04632568359375, 0.0662841796875, -0.01432037353515625, -0.032257080078125, -0.0065460205078125, 0.07293701171875, 0.00579833984375, 0.004688262939453125, -0.0234527587890625, -0.0565185546875, -0.00942230224609375, 0.02777099609375, 0.023101806640625, 0.0162200927734375, 0.025634765625, 0.027252197265625, 0.002552032470703125, -0.003780364990234375, 0.05279541015625, -0.006122589111328125, 0.0259246826171875, -0.04693603515625, 0.033111572265625, 0.00902557373046875, -0.01422882080078125, -0.001796722412109375, -0.019500732421875, 0.045745849609375, -0.01424407958984375, 0.02020263671875, -0.0009002685546875, -0.029815673828125, 0.046539306640625, 0.00807952880859375, 0.06658935546875, 0.034088134765625, -0.0726318359375, -0.00424957275390625, -0.057830810546875, -0.07049560546875, 0.0306396484375, 0.053955078125, -0.01419830322265625, 0.006504058837890625, -0.00023758411407470703, -0.01995849609375, 0.01058197021484375, 0.0216522216796875, -0.01050567626953125, -0.001407623291015625, 0.0243988037109375, -0.016937255859375, -0.0074462890625, -0.006866455078125, 0.01214599609375, 0.045379638671875, -0.00904083251953125, 0.11236572265625, -0.039642333984375, -0.0019521713256835938, -0.0156097412109375, 0.0298614501953125, -0.044830322265625, -0.0126190185546875, 0.005859375, -0.0218353271484375, 0.00829315185546875, 0.01080322265625, -0.0008673667907714844, -0.05078125, 0.0589599609375, -0.06951904296875, -0.0380859375, -0.019287109375, 0.0452880859375, -0.026519775390625, -0.0213623046875, -0.04107666015625, -0.03863525390625, -0.0421142578125, -0.0183563232421875, 0.0276031494140625, 0.01132965087890625, -0.00909423828125, 0.033599853515625, -0.001735687255859375, 0.01038360595703125, 0.0007824897766113281, -0.00982666015625, 0.0150299072265625, 0.034881591796875, -0.0254974365234375, 0.0035305023193359375, 0.070068359375, -0.00402069091796875, 0.009002685546875, 0.0310821533203125, 0.04254150390625, 0.04156494140625, -0.05181884765625, -0.002655029296875, -0.0004401206970214844, 0.0242919921875, -0.0009632110595703125, 0.01446533203125, -0.01424407958984375, -0.00279998779296875, -0.00919342041015625, -0.00966644287109375, -0.0176544189453125, -0.0213623046875, -0.016571044921875, 0.020477294921875, -0.01776123046875, -0.034454345703125, -0.044158935546875, 0.012542724609375, 0.041778564453125, 0.0023860931396484375, -0.0693359375, 0.0311126708984375, -0.022064208984375, 0.058135986328125, -0.007076263427734375, -0.032806396484375, -0.0011911392211914062, 0.01184844970703125, -0.05169677734375, 0.0201263427734375, -0.05072021484375, -0.04168701171875, -0.0309906005859375, 0.0211334228515625, 0.0516357421875, -0.0209197998046875, -0.03314208984375, -0.00722503662109375, -0.01108551025390625, 0.04742431640625, -0.01180267333984375, -0.0225067138671875, 0.020050048828125, -0.0013332366943359375, -0.055908203125, -0.044342041015625, 0.00919342041015625, -0.032562255859375, -0.0240325927734375, -0.0010166168212890625, -0.005443572998046875, 0.01500701904296875, -0.02593994140625, -0.03631591796875, 0.06805419921875, 0.0028972625732421875, -0.02288818359375, -0.0328369140625, 0.0008988380432128906, 0.0028972625732421875, 0.0296630859375, -0.01151275634765625, -0.0206298828125, -0.042327880859375, 0.00653839111328125, 0.01050567626953125, 0.046173095703125, -0.004283905029296875, 0.0201263427734375, -0.038116455078125, 0.006561279296875, -0.00974273681640625, 0.0199432373046875, 0.00806427001953125, -0.007053375244140625, 0.0204925537109375, 0.0369873046875, -0.023223876953125, 0.0200042724609375, -0.00896453857421875, 0.00039577484130859375, 0.00951385498046875, -0.03729248046875, -0.0280914306640625, -0.0310516357421875, 0.03961181640625, -0.01412200927734375, 0.013031005859375, 0.0102996826171875, -0.058502197265625, -0.0294189453125, 0.0004448890686035156, -0.0150909423828125, 0.024627685546875, -0.05572509765625, 0.01004791259765625, -0.0222930908203125, -0.007297515869140625, 0.007171630859375, -0.037689208984375, -0.01306915283203125, 0.002529144287109375, -0.0005307197570800781, -0.004459381103515625, 0.00762176513671875, 0.019012451171875, -0.005840301513671875, -0.01131439208984375, -0.0200653076171875, -0.018646240234375, 0.0030975341796875, -0.0261077880859375, -0.031768798828125, -0.04644775390625, -0.053131103515625, 0.0240325927734375, 0.01715087890625, -0.0103759765625, 0.020660400390625, 0.00229644775390625, 0.001026153564453125, -0.033233642578125, 0.01491546630859375, 0.01361846923828125, -0.00372314453125, -0.0523681640625, 0.08148193359375, 0.048492431640625, 0.0653076171875, -0.004917144775390625, -0.0714111328125, -0.0224151611328125, 0.0144195556640625, -0.005947113037109375, 0.00003713369369506836, 0.033111572265625, -0.0297088623046875, -0.0092315673828125, 0.0031642913818359375, -0.029205322265625, -0.0290679931640625, 0.011474609375, -0.032073974609375, 0.0005931854248046875, 0.01032257080078125 ]
0db27354a8b436ea3b43a01b7d497f8bc7a7ccb4
Wordpress Stackexchange Q: WSOD but WP_DEBUG not giving any errors I am running Wordpress on a WAMP stack and I'm trying to debug a WSOD error, which I think is a PHP error, as I have tried disabling all my plugins and themes and they don't seem to be the problem. I've got this in my wp-config : define('WP_DEBUG', true); if (WP_DEBUG) { define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', true); @ini_set('display_errors', 0); } which I found online. When I reload the page I don't get any error messages, and when I check for wp-content/debug.log it doesn't exist. I can't find any error logs anywhere else either. How can I find out what is going wrong? Thanks for any help. A: Make things simpler by using this in wp-config.php: define( 'WP_DEBUG', true ); /** debug on */ define( 'WP_DEBUG_LOG', true ); /** log enabled */ define( 'WP_DEBUG_DISPLAY', true); /** display enabled */ The @ini_set('display_errors', 0); may be breaking the WP_DEBUG error display and logging by calling the native PHP error reporting at the same time.
Q: WSOD but WP_DEBUG not giving any errors I am running Wordpress on a WAMP stack and I'm trying to debug a WSOD error, which I think is a PHP error, as I have tried disabling all my plugins and themes and they don't seem to be the problem. I've got this in my wp-config : define('WP_DEBUG', true); if (WP_DEBUG) { define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', true); @ini_set('display_errors', 0); } which I found online. When I reload the page I don't get any error messages, and when I check for wp-content/debug.log it doesn't exist. I can't find any error logs anywhere else either. How can I find out what is going wrong? Thanks for any help. A: Make things simpler by using this in wp-config.php: define( 'WP_DEBUG', true ); /** debug on */ define( 'WP_DEBUG_LOG', true ); /** log enabled */ define( 'WP_DEBUG_DISPLAY', true); /** display enabled */ The @ini_set('display_errors', 0); may be breaking the WP_DEBUG error display and logging by calling the native PHP error reporting at the same time.
wordpress
{ "language": "en", "length": 169, "provenance": "stackexchange_00019.jsonl.gz:463895", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/220427" }
[ 0.0775146484375, -0.02349853515625, -0.00743865966796875, -0.0704345703125, 0.0021533966064453125, -0.028900146484375, 0.00914764404296875, 0.0019550323486328125, 0.050933837890625, -0.01410675048828125, -0.035064697265625, -0.03875732421875, -0.01483154296875, -0.031494140625, -0.040496826171875, -0.045257568359375, 0.031890869140625, -0.002140045166015625, 0.0318603515625, -0.007038116455078125, 0.0010776519775390625, 0.00646209716796875, 0.003162384033203125, 0.045654296875, 0.00336456298828125, 0.026092529296875, 0.0227508544921875, 0.011138916015625, -0.01024627685546875, -0.00490570068359375, 0.015106201171875, -0.0166473388671875, 0.0189361572265625, 0.08306884765625, -0.10498046875, -0.0203399658203125, 0.024200439453125, -0.006496429443359375, -0.035858154296875, 0.079833984375, -0.01180267333984375, 0.0216827392578125, 0.10137939453125, -0.01206207275390625, 0.02764892578125, -0.0292510986328125, 0.01036834716796875, -0.047882080078125, -0.007587432861328125, -0.037109375, 0.0019073486328125, 0.0306396484375, 0.0218658447265625, -0.039947509765625, -0.009033203125, -0.00543975830078125, -0.040283203125, 0.028289794921875, 0.0145416259765625, 0.043304443359375, -0.01470184326171875, 0.0175628662109375, -0.01285552978515625, -0.02703857421875, 0.0086212158203125, 0.01081085205078125, 0.032989501953125, 0.0285491943359375, -0.035308837890625, -0.0017766952514648438, 0.0259246826171875, -0.03240966796875, -0.025665283203125, 0.00884246826171875, 0.01406097412109375, -0.038116455078125, 0.039337158203125, -0.0149383544921875, -0.008758544921875, 0.0518798828125, 0.055145263671875, -0.03863525390625, -0.0142822265625, 0.0341796875, 0.0037097930908203125, 0.048828125, 0.00859832763671875, -0.0292816162109375, -0.0186004638671875, -0.0162200927734375, -0.0296478271484375, -0.00885772705078125, -0.0089874267578125, -0.04486083984375, -0.0146942138671875, -0.0298004150390625, 0.004894256591796875, 0.0455322265625, -0.03369140625, -0.02545166015625, -0.012115478515625, -0.0116424560546875, -0.0232696533203125, -0.003452301025390625, 0.019134521484375, 0.0418701171875, -0.007297515869140625, -0.0111541748046875, 0.041107177734375, 0.02008056640625, 0.004138946533203125, 0.0100250244140625, -0.01904296875, -0.059844970703125, -0.00710296630859375, 0.03863525390625, -0.0057220458984375, -0.006748199462890625, 0.023590087890625, -0.01099395751953125, -0.0176849365234375, 0.0208892822265625, -0.03778076171875, 0.006366729736328125, 0.002246856689453125, -0.01027679443359375, 0.0093841552734375, 0.0016736984252929688, 0.037445068359375, 0.0019102096557617188, -0.04931640625, 0.00917816162109375, 0.01476287841796875, -0.007320404052734375, 0.00007051229476928711, -0.0100250244140625, 0.01227569580078125, 0.0080413818359375, -0.0010213851928710938, 0.011383056640625, 0.01088714599609375, -0.0330810546875, -0.0018358230590820312, 0.0106048583984375, -0.0240631103515625, 0.017822265625, 0.02093505859375, 0.01299285888671875, 0.0013904571533203125, -0.0472412109375, -0.016357421875, 0.0244903564453125, 0.004375457763671875, 0.0006794929504394531, 0.02850341796875, -0.0116119384765625, 0.03411865234375, -0.02984619140625, -0.0037097930908203125, -0.0265960693359375, -0.0150909423828125, 0.0005917549133300781, 0.035980224609375, -0.055023193359375, -0.049774169921875, -0.0218963623046875, -0.023468017578125, 0.0021076202392578125, 0.0203094482421875, 0.00466156005859375, 0.044281005859375, -0.00588226318359375, -0.0152435302734375, 0.0033016204833984375, 0.01119232177734375, 0.007366180419921875, -0.0204315185546875, 0.0117340087890625, 0.0233306884765625, 0.01232147216796875, -0.01280975341796875, -0.031280517578125, 0.032135009765625, -0.0006365776062011719, -0.03656005859375, 0.021697998046875, -0.010528564453125, 0.024169921875, 0.0284576416015625, 0.002902984619140625, 0.024261474609375, -0.0001169443130493164, 0.006282806396484375, 0.004360198974609375, -0.01641845703125, -0.06085205078125, -0.0067291259765625, -0.0109100341796875, -0.01558685302734375, 0.0240478515625, -0.030975341796875, 0.01285552978515625, -0.006927490234375, 0.0203857421875, -0.0780029296875, 0.0234527587890625, -0.04425048828125, 0.058441162109375, 0.0250091552734375, 0.020721435546875, 0.0010385513305664062, 0.0185394287109375, -0.006938934326171875, -0.033477783203125, -0.0245819091796875, 0.0638427734375, -0.045074462890625, 0.05230712890625, -0.0016841888427734375, 0.034576416015625, 0.005176544189453125, -0.034454345703125, 0.017547607421875, -0.0166168212890625, 0.0236053466796875, 0.01445770263671875, -0.018707275390625, -0.0003838539123535156, 0.08489990234375, 0.00012421607971191406, 0.061798095703125, 0.01055908203125, -0.0104522705078125, 0.0107269287109375, -0.0128631591796875, -0.012969970703125, -0.013916015625, -0.07867431640625, 0.0296173095703125, 0.06048583984375, 0.05224609375, 0.019622802734375, -0.00458526611328125, -0.003955841064453125, 0.0526123046875, -0.02313232421875, 0.036376953125, -0.02313232421875, -0.0131988525390625, -0.034698486328125, 0.0233001708984375, -0.013824462890625, 0.0572509765625, -0.005420684814453125, -0.01177978515625, 0.036407470703125, -0.00443267822265625, -0.004425048828125, -0.0142822265625, 0.0341796875, -0.0159759521484375, 0.008270263671875, 0.01485443115234375, -0.0043792724609375, -0.0248870849609375, 0.023284912109375, -0.0163726806640625, -0.0036792755126953125, -0.01425933837890625, 0.031463623046875, 0.032745361328125, -0.06365966796875, -0.00014579296112060547, 0.034423828125, -0.001018524169921875, 0.000025987625122070312, -0.038909912109375, 0.008056640625, 0.0084228515625, 0.01513671875, -0.0261077880859375, 0.003482818603515625, 0.0234527587890625, -0.012603759765625, 0.0020923614501953125, -0.061767578125, 0.0177154541015625, -0.0279693603515625, 0.026947021484375, -0.00919342041015625, -0.0033969879150390625, 0.057159423828125, -0.037261962890625, 0.091064453125, -0.00110626220703125, -0.01160430908203125, 0.0256500244140625, -0.04296875, 0.051605224609375, -0.0294036865234375, 0.02838134765625, 0.05828857421875, -0.024749755859375, 0.021697998046875, 0.004150390625, -0.00513458251953125, 0.0089111328125, -0.004741668701171875, -0.021484375, 0.0041961669921875, -0.06817626953125, 0.0004432201385498047, 0.018157958984375, 0.04473876953125, -0.0226287841796875, -0.034759521484375, -0.036895751953125, 0.0290985107421875, -0.07171630859375, -0.0894775390625, -0.060791015625, -0.058135986328125, -0.0078887939453125, 0.0210113525390625, -0.0285797119140625, 0.0109405517578125, 0.0360107421875, 0.01253509521484375, 0.0269927978515625, -0.04119873046875, -0.029327392578125, -0.04705810546875, -0.07684326171875, -0.0199127197265625, 0.0206146240234375, 0.0247344970703125, 0.016082763671875, 0.0294952392578125, 0.0182647705078125, -0.0283203125, 0.0202789306640625, 0.025146484375, -0.030120849609375, -0.003948211669921875, -0.0245513916015625, 0.01800537109375, 0.0074462890625, 0.007808685302734375, -0.044891357421875, -0.0039215087890625, 0.0181121826171875, -0.041778564453125, -0.014068603515625, -0.02032470703125, 0.0025081634521484375, -0.051055908203125, 0.0219879150390625, -0.0254364013671875, -0.021087646484375, -0.047088623046875, -0.040740966796875, 0.0014801025390625, -0.04449462890625, 0.0169219970703125, 0.0152587890625, 0.006450653076171875, -0.0005564689636230469, 0.00547027587890625, 0.0015239715576171875, 0.013519287109375, 0.0184326171875, -0.018798828125, 0.03521728515625, -0.0178680419921875, 0.0012598037719726562, -0.021484375, 0.038726806640625, -0.004016876220703125, -0.02056884765625, 0.0167999267578125, -0.00397491455078125, -0.01580810546875, 0.02081298828125, -0.02276611328125, 0.00572967529296875, 0.01299285888671875, -0.05078125, -0.005115509033203125, -0.0021839141845703125, 0.0128173828125, -0.00928497314453125, 0.0138702392578125, -0.05413818359375, -0.028900146484375, -0.03143310546875, 0.0143890380859375, -0.040069580078125, -0.03741455078125, -0.01206207275390625, 0.002605438232421875, -0.03173828125, 0.01428985595703125, -0.0031681060791015625, -0.0011577606201171875, 0.00988006591796875, -0.039154052734375, 0.0007905960083007812, -0.046295166015625, 0.0369873046875, -0.024078369140625, 0.0089111328125, 0.020782470703125, 0.0224151611328125, -0.0264129638671875, -0.0234222412109375, -0.0024051666259765625, -0.1375732421875, -0.0164337158203125, -0.060821533203125, 0.10015869140625, 0.034393310546875, -0.0292816162109375, -0.01511383056640625, 0.055084228515625, 0.005268096923828125, -0.029693603515625, 0.03411865234375, 0.00948333740234375, -0.020965576171875, 0.017303466796875, 0.0213165283203125, -0.0223236083984375, -0.0027065277099609375, 0.0022258758544921875, -0.01300048828125, 0.060516357421875, -0.0225372314453125, 0.0265655517578125, -0.001880645751953125, -0.019622802734375, 0.0045623779296875, -0.01309967041015625, -0.01219940185546875, 0.0254058837890625, -0.007343292236328125, 0.003940582275390625, -0.026153564453125, 0.0025272369384765625, 0.0240478515625, -0.06585693359375, -0.029571533203125, 0.0200653076171875, 0.06689453125, 0.018890380859375, 0.01349639892578125, -0.0182037353515625, -0.021026611328125, 0.0190277099609375, 0.0007948875427246094, 0.027923583984375, 0.006183624267578125, -0.0125579833984375, 0.04205322265625, -0.019622802734375, -0.00466156005859375, 0.004329681396484375, -0.0279388427734375, -0.00022780895233154297, -0.04205322265625, 0.010162353515625, -0.01641845703125, 0.04791259765625, 0.026885986328125, -0.0102996826171875, 0.0156402587890625, 0.032135009765625, 0.00218963623046875, -0.047119140625, 0.018951416015625, 0.00475311279296875, -0.030120849609375, 0.004451751708984375, -0.0374755859375, 0.03863525390625, 0.01456451416015625, 0.01224517822265625, 0.01702880859375, 0.0355224609375, -0.00415802001953125, 0.041290283203125, 0.04132080078125, 0.004512786865234375, 0.04278564453125, 0.0618896484375, 0.0070953369140625, -0.0276947021484375, -0.0149383544921875, 0.058380126953125, -0.00563812255859375, -0.0570068359375, 0.0231475830078125, 0.00522613525390625, 0.01739501953125, 0.0148162841796875, -0.02362060546875, 0.046722412109375, 0.00811004638671875, -0.037261962890625, -0.006805419921875, -0.0202178955078125, -0.032257080078125, -0.049835205078125, 0.0236663818359375, -0.020263671875, 0.0006194114685058594, 0.01031494140625, 0.0374755859375, -0.054046630859375, 0.036651611328125, -0.003093719482421875, -0.02081298828125, -0.01959228515625, 0.056976318359375, 0.0341796875, -0.07696533203125, 0.027679443359375, -0.006412506103515625, 0.048370361328125, -0.04931640625, -0.05810546875, -0.00418853759765625, 0.048736572265625, -0.046661376953125, -0.0027484893798828125, 0.042266845703125, 0.0193939208984375, 0.007503509521484375, 0.039794921875, -0.03887939453125, -0.064697265625, -0.006500244140625, -0.00623321533203125, 0.031768798828125, -0.0771484375, 0.00930023193359375, 0.0175018310546875, 0.008148193359375, 0.029022216796875, -0.01611328125, -0.003871917724609375, -0.01384735107421875, -0.00966644287109375, -0.044769287109375, -0.03814697265625, 0.004329681396484375, -0.0244598388671875, 0.00275421142578125, -0.016021728515625, -0.032440185546875, 0.0264739990234375, -0.07501220703125, -0.0187225341796875, 0.00576019287109375, 0.01849365234375, -0.0170440673828125, 0.028900146484375, 0.0233154296875, 0.0301361083984375, -0.03228759765625, 0.029296875, -0.0214385986328125, -0.0117645263671875, 0.03472900390625, -0.038055419921875, -0.046905517578125, -0.060150146484375, 0.0157470703125, 0.004833221435546875, -0.01678466796875, -0.039215087890625, -0.044708251953125, 0.02490234375, 0.036285400390625, 0.0258636474609375, -0.008758544921875, 0.055206298828125, -0.02264404296875, 0.00974273681640625, 0.00354766845703125, 0.02215576171875, -0.0006780624389648438, -0.0157623291015625, 0.0161590576171875, 0.0016279220581054688, -0.05224609375, -0.021820068359375, 0.004718780517578125, 0.00775146484375, 0.054351806640625, -0.037017822265625, -0.0103302001953125, -0.00492095947265625, 0.00145721435546875, -0.017974853515625, 0.039154052734375, 0.02294921875, -0.002349853515625, 0.035064697265625, -0.025238037109375, -0.06268310546875, -0.0081787109375, -0.0007953643798828125, 0.0198822021484375, 0.016845703125, -0.02313232421875, -0.0113067626953125, -0.02880859375, 0.034454345703125, 0.05633544921875, -0.0022296905517578125, 0.0318603515625, 0.01532745361328125, -0.01322174072265625, -0.0104827880859375, 0.0287628173828125, -0.034820556640625, -0.016754150390625, 0.003780364990234375, 0.010284423828125, -0.014984130859375, -0.01529693603515625, -0.006641387939453125, 0.0225677490234375, 0.05572509765625, 0.086669921875, -0.0849609375, 0.0204315185546875, 0.052947998046875, 0.0032520294189453125, 0.00699615478515625, -0.03125, 0.044952392578125, 0.03424072265625, 0.0599365234375, 0.007080078125, -0.004261016845703125, 0.03338623046875, -0.037811279296875, 0.00014448165893554688, -0.0032672882080078125, 0.05145263671875, 0.014678955078125, -0.057861328125, 0.00859832763671875, 0.03411865234375, 0.0151519775390625, 0.014892578125, 0.00579071044921875, -0.0286712646484375, -0.053131103515625, -0.044647216796875, -0.0272216796875, 0.0020904541015625, -0.0311126708984375, 0.0131988525390625, -0.000011324882507324219, 0.0217437744140625, 0.0472412109375, 0.0005888938903808594, -0.00583648681640625, 0.0171966552734375, -0.00766754150390625, 0.05804443359375, -0.012420654296875, 0.0307464599609375, 0.02911376953125, -0.06536865234375, -0.00038433074951171875, -0.00998687744140625, 0.00466156005859375, 0.0014829635620117188, 0.0108184814453125, 0.0760498046875, -0.0352783203125, -0.01285552978515625, 0.01230621337890625, 0.0182037353515625, 0.005035400390625, -0.0129547119140625, 0.0207366943359375, -0.04803466796875, -0.01395416259765625, -0.006671905517578125, -0.036712646484375, -0.038970947265625, -0.03143310546875, -0.018463134765625, 0.06396484375, -0.0251007080078125, 0.004241943359375, 0.056854248046875, 0.005992889404296875, -0.05804443359375, -0.02471923828125, -0.0193634033203125, 0.07916259765625, 0.0037212371826171875, 0.068603515625, -0.0692138671875, -0.03265380859375, 0.045501708984375, 0.07794189453125, 0.0160980224609375, -0.0016603469848632812, 0.008758544921875, 0.000053048133850097656, 0.00605010986328125, -0.026947021484375, -0.03631591796875, 0.0202484130859375, 0.0006628036499023438, 0.001800537109375, -0.01354217529296875, -0.035003662109375, 0.034912109375, -0.061676025390625, -0.0123748779296875, 0.0010728836059570312, -0.0252227783203125, -0.06085205078125, -0.002590179443359375, 0.0109100341796875, -0.031005859375, -0.00533294677734375, -0.0077972412109375, 0.034423828125, -0.001956939697265625, 0.042266845703125, 0.01508331298828125, -0.0826416015625, -0.06591796875, -0.022216796875, 0.01117706298828125, -0.0280609130859375, -0.02587890625, 0.0274505615234375, 0.021270751953125, -0.054901123046875, -0.006038665771484375, -0.0147857666015625, 0.0096435546875, -0.012054443359375, -0.0203704833984375, 0.03094482421875, 0.01279449462890625, 0.0263824462890625, 0.0316162109375, 0.0271148681640625, -0.00913238525390625, -0.0209197998046875, -0.0718994140625, 0.01180267333984375, -0.0010089874267578125, 0.00202178955078125, 0.02398681640625, -0.0092010498046875, -0.0012836456298828125, 0.0550537109375, 0.0002397298812866211, -0.016204833984375, 0.00286865234375, -0.0006093978881835938, 0.0003821849822998047, 0.03387451171875, 0.0227508544921875, -0.01316070556640625, -0.0246734619140625, 0.01172637939453125, 0.0195159912109375, 0.050750732421875, 0.015289306640625, 0.01898193359375, -0.0362548828125, -0.034149169921875, -0.045135498046875, 0.016571044921875, -0.0150146484375, 0.07012939453125, -0.061798095703125, -0.0012483596801757812, -0.0122833251953125, 0.052825927734375, 0.0343017578125, -0.0191650390625, 0.03643798828125, 0.02667236328125, -0.0615234375, -0.007755279541015625, 0.047607421875, -0.006374359130859375, -0.0914306640625, -0.046142578125, 0.0253143310546875, 0.05438232421875, 0.04248046875, 0.0513916015625, 0.036102294921875, 0.00632476806640625, 0.013824462890625, -0.0201416015625, 0.0107421875, -0.0283966064453125, 0.03375244140625, -0.00870513916015625, 0.0243988037109375, 0.0138702392578125, -0.052337646484375, -0.00858306884765625, -0.0242156982421875, 0.005229949951171875, 0.01220703125, 0.031585693359375, 0.04296875, -0.0227203369140625, -0.00394439697265625, 0.0174713134765625, -0.030670166015625, 0.00006657838821411133, -0.01111602783203125, -0.02764892578125, 0.0258941650390625, -0.005001068115234375, -0.0245513916015625, -0.022979736328125, -0.01084136962890625, 0.046783447265625, 0.0090789794921875, 0.07568359375, -0.02520751953125, 0.017059326171875, -0.031951904296875, -0.0192718505859375, -0.0181732177734375, -0.0039005279541015625, -0.01300048828125, 0.01535797119140625, -0.0137939453125, -0.0201416015625, -0.048431396484375, 0.052703857421875, -0.006725311279296875, 0.01230621337890625, 0.065673828125, -0.053314208984375, 0.0027904510498046875, -0.004619598388671875, 0.00389862060546875, -0.022674560546875, -0.0298004150390625, 0.014495849609375, 0.04937744140625, -0.01081085205078125, 0.006504058837890625, -0.017333984375, 0.03887939453125, 0.0142669677734375, -0.03570556640625, 0.0010309219360351562, -0.05438232421875, -0.0180206298828125, 0.0293121337890625, 0.030914306640625, -0.022735595703125, -0.052276611328125, -0.01495361328125, -0.032012939453125, -0.00627899169921875, 0.01027679443359375, -0.041839599609375, 0.0307769775390625, 0.0079193115234375, -0.00522613525390625, -0.004314422607421875, -0.034912109375, -0.003936767578125, 0.0221099853515625, -0.0059967041015625, 0.021575927734375, -0.00766754150390625, 0.0142364501953125, -0.003940582275390625, -0.039154052734375, -0.00799560546875, -0.003986358642578125, -0.035400390625, 0.04150390625, -0.00115966796875, 0.027008056640625, -0.016143798828125, -0.00518035888671875, -0.015472412109375, -0.03570556640625, 0.0203399658203125, -0.0005087852478027344, -0.0283203125, 0.0036220550537109375, 0.009124755859375, -0.00820159912109375, -0.0204010009765625, -0.036102294921875, 0.01105499267578125, -0.02099609375, 0.0204620361328125, 0.0216522216796875, -0.02386474609375, -0.0012826919555664062, 0.0245513916015625, 0.0041961669921875, 0.059356689453125, -0.01030731201171875, -0.0184783935546875, -0.034210205078125, 0.0142669677734375, 0.00836944580078125, 0.006641387939453125, 0.019683837890625, -0.027923583984375, -0.04815673828125, -0.0248260498046875, -0.021026611328125, -0.02496337890625, -0.06317138671875, -0.0784912109375, 0.02886962890625, -0.00262451171875, -0.02081298828125, -0.047515869140625, -0.0288238525390625, 0.0017528533935546875, 0.03436279296875, -0.005611419677734375, -0.0109100341796875, -0.06488037109375, 0.03875732421875, 0.02374267578125, -0.0017557144165039062, 0.038360595703125, -0.0094451904296875, -0.022064208984375, 0.01480865478515625, 0.0191650390625, -0.00024628639221191406, -0.007114410400390625, 0.003261566162109375, 0.03204345703125, 0.03173828125, -0.01806640625, 0.0146636962890625, 0.0174407958984375, -0.01216888427734375, 0.0098876953125, -0.020751953125, -0.045166015625, -0.030120849609375, 0.10833740234375, -0.01702880859375, 0.034210205078125, -0.00005799531936645508, -0.08148193359375, -0.043914794921875, -0.029052734375, -0.0159759521484375, 0.0242767333984375, -0.07867431640625, 0.0243682861328125, -0.0253143310546875, -0.004180908203125, 0.01372528076171875, 0.03265380859375, 0.006195068359375, 0.0011539459228515625, 0.04449462890625, -0.03802490234375, -0.0189208984375, -0.036346435546875, 0.034149169921875, -0.01552581787109375, 0.0198516845703125, -0.039154052734375, 0.0445556640625, 0.0255126953125, -0.022613525390625, 0.0009274482727050781, -0.010833740234375, -0.038238525390625, 0.035736083984375, -0.001682281494140625, 0.06390380859375, -0.036834716796875, -0.032135009765625, 0.0277862548828125, -0.0031280517578125, -0.0282440185546875, -0.0004184246063232422, 0.03277587890625, -0.033294677734375, -0.06390380859375, 0.058319091796875, -0.0132904052734375, 0.01328277587890625, -0.03387451171875, 0.041717529296875, -0.00717926025390625, -0.01007843017578125, 0.00008600950241088867, -0.0018634796142578125, 0.01247406005859375, 0.043731689453125, 0.01959228515625, -0.0232086181640625, 0.050048828125, 0.06317138671875, 0.0213470458984375, 0.0121307373046875 ]
4b66a6dc04f4f3e870e3486e7fd59b574eb5c139
Wordpress Stackexchange Q: Correct use of get_the_terms() I need to print all terms associated to a custom post type post. In the post template I wrote that code: <?php foreach (get_the_terms(the_ID(), 'taxonomy') as $cat) : ?> <?php echo $cat->name; ?> <?php endforeach; ?> The loop works correctly, but before the list also the id was printed. Like: 37 taxonomy01 taxonomy02 taxonomy03 What is wrong? A: the_ID() print the post ID. You need to use the get_the_ID() which return the post ID. Example: foreach (get_the_terms(get_the_ID(), 'taxonomy') as $cat) { echo $cat->name; } Always remember the naming convention of WordPress for template tags. the which mean to print get which mean to return in most of the cases.
Q: Correct use of get_the_terms() I need to print all terms associated to a custom post type post. In the post template I wrote that code: <?php foreach (get_the_terms(the_ID(), 'taxonomy') as $cat) : ?> <?php echo $cat->name; ?> <?php endforeach; ?> The loop works correctly, but before the list also the id was printed. Like: 37 taxonomy01 taxonomy02 taxonomy03 What is wrong? A: the_ID() print the post ID. You need to use the get_the_ID() which return the post ID. Example: foreach (get_the_terms(get_the_ID(), 'taxonomy') as $cat) { echo $cat->name; } Always remember the naming convention of WordPress for template tags. the which mean to print get which mean to return in most of the cases. A: Also you can declare a variable. $taxonomy = get_the_terms( get_the_ID(), 'taxonomy' ); foreach ( $taxonomy as $tax ) { echo esc_html( $tax->name ); }
wordpress
{ "language": "en", "length": 139, "provenance": "stackexchange_00019.jsonl.gz:463915", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/220511" }
[ 0.0328369140625, 0.00885772705078125, 0.00400543212890625, -0.0123748779296875, 0.0277862548828125, -0.03350830078125, 0.047027587890625, -0.02667236328125, 0.0290679931640625, 0.038665771484375, -0.0289306640625, -0.0416259765625, -0.038330078125, -0.0250701904296875, -0.046295166015625, -0.0628662109375, 0.042266845703125, -0.01556396484375, 0.04718017578125, 0.0012826919555664062, 0.01165008544921875, 0.03570556640625, 0.035308837890625, 0.0291290283203125, 0.0189666748046875, -0.02996826171875, 0.038543701171875, -0.037109375, 0.0007042884826660156, -0.04949951171875, 0.005462646484375, 0.046661376953125, 0.0266876220703125, -0.0172576904296875, -0.0009717941284179688, 0.0150909423828125, 0.01155853271484375, -0.020965576171875, 0.0115509033203125, 0.009002685546875, 0.019683837890625, -0.00432586669921875, 0.003170013427734375, -0.005157470703125, -0.0102691650390625, -0.020172119140625, -0.004863739013671875, -0.0635986328125, -0.0028400421142578125, -0.0008387565612792969, 0.037384033203125, -0.03143310546875, 0.049072265625, 0.0139007568359375, -0.0177764892578125, -0.006290435791015625, -0.006072998046875, -0.04168701171875, 0.043914794921875, -0.02911376953125, -0.040863037109375, -0.03802490234375, 0.05413818359375, -0.01031494140625, 0.00023365020751953125, 0.0215301513671875, 0.023590087890625, 0.01157379150390625, -0.036712646484375, -0.02716064453125, 0.0138092041015625, -0.033416748046875, 0.0246124267578125, -0.017486572265625, 0.01300048828125, -0.0804443359375, 0.0144805908203125, -0.04571533203125, -0.0089569091796875, 0.004459381103515625, -0.01177978515625, -0.0265350341796875, -0.0657958984375, 0.05767822265625, -0.0283966064453125, 0.07611083984375, -0.01349639892578125, -0.033721923828125, -0.00916290283203125, -0.058929443359375, -0.016448974609375, -0.00571441650390625, -0.0197296142578125, -0.021392822265625, -0.0207672119140625, -0.03668212890625, 0.020782470703125, 0.0496826171875, -0.017822265625, 0.0225677490234375, -0.0447998046875, -0.0196685791015625, 0.00968170166015625, -0.039794921875, -0.00008279085159301758, 0.0201873779296875, -0.00927734375, 0.055511474609375, 0.07879638671875, 0.050140380859375, 0.0280609130859375, 0.005260467529296875, -0.012725830078125, 0.003940582275390625, -0.01134490966796875, 0.018463134765625, -0.04083251953125, 0.0007843971252441406, -0.0204925537109375, 0.007556915283203125, 0.04022216796875, 0.04107666015625, 0.004405975341796875, 0.010101318359375, -0.0281982421875, -0.007434844970703125, -0.0120697021484375, -0.05133056640625, -0.00585174560546875, 0.007709503173828125, -0.048095703125, 0.00595855712890625, 0.051422119140625, 0.0238189697265625, 0.01277923583984375, -0.0235137939453125, -0.0175628662109375, -0.0111846923828125, -0.00531768798828125, -0.01535797119140625, 0.002941131591796875, 0.018829345703125, 0.03662109375, -0.0209503173828125, -0.001117706298828125, 0.0023136138916015625, 0.0201873779296875, 0.031951904296875, -0.01422882080078125, -0.01593017578125, -0.0032558441162109375, 0.01093292236328125, 0.031768798828125, -0.01161956787109375, -0.002628326416015625, -0.02288818359375, 0.01226806640625, -0.0426025390625, -0.01033782958984375, -0.046234130859375, 0.03387451171875, 0.00623321533203125, -0.004669189453125, 0.004730224609375, 0.00444793701171875, -0.02728271484375, -0.046234130859375, -0.00011307001113891602, 0.030517578125, 0.028533935546875, 0.049285888671875, -0.0352783203125, 0.006313323974609375, -0.0017948150634765625, -0.0158843994140625, -0.00719451904296875, -0.0250244140625, -0.0159912109375, 0.037750244140625, -0.01163482666015625, -0.044403076171875, -0.03399658203125, 0.0008969306945800781, -0.004756927490234375, -0.042816162109375, 0.006591796875, 0.022216796875, 0.0689697265625, 0.0302581787109375, 0.0224609375, 0.03485107421875, -0.018218994140625, -0.09210205078125, 0.06298828125, 0.0162811279296875, 0.00514984130859375, -0.0504150390625, -0.00988006591796875, 0.003997802734375, -0.038970947265625, 0.01605224609375, -0.0269927978515625, 0.025177001953125, 0.0224456787109375, -0.048980712890625, 0.0238037109375, -0.022552490234375, 0.0232696533203125, -0.014801025390625, 0.0203094482421875, 0.0207672119140625, -0.01435089111328125, -0.026947021484375, -0.00928497314453125, -0.0230865478515625, 0.0220489501953125, -0.038543701171875, -0.024658203125, -0.00598907470703125, -0.0277252197265625, 0.01314544677734375, -0.01386260986328125, -0.004528045654296875, 0.040283203125, 0.044891357421875, 0.01605224609375, -0.0239105224609375, -0.00530242919921875, -0.0046844482421875, 0.0271148681640625, -0.05963134765625, 0.0133819580078125, 0.018310546875, 0.0635986328125, -0.0012960433959960938, -0.01145172119140625, 0.050506591796875, -0.0288238525390625, 0.0265350341796875, 0.0299835205078125, 0.0247039794921875, 0.020721435546875, -0.0307769775390625, -0.03143310546875, 0.0799560546875, -0.0302886962890625, -0.00040078163146972656, -0.023773193359375, 0.037872314453125, 0.0662841796875, 0.00824737548828125, 0.0180511474609375, 0.0011548995971679688, 0.003879547119140625, 0.0209503173828125, 0.0238494873046875, -0.00522613525390625, -0.007114410400390625, 0.033447265625, -0.0164337158203125, -0.008880615234375, -0.039520263671875, -0.00919342041015625, -0.017547607421875, 0.0242767333984375, 0.0231781005859375, 0.01506805419921875, 0.01464080810546875, -0.038482666015625, -0.0084075927734375, 0.0150909423828125, 0.022918701171875, -0.005138397216796875, 0.03173828125, -0.00722503662109375, -0.0225067138671875, -0.02166748046875, 0.005519866943359375, -0.0255126953125, -0.0056610107421875, 0.017547607421875, 0.07049560546875, -0.0190277099609375, -0.0089111328125, -0.037872314453125, -0.067138671875, -0.0174102783203125, 0.0491943359375, -0.0494384765625, -0.01190185546875, 0.00775146484375, 0.07818603515625, 0.0003790855407714844, 0.00885772705078125, -0.051177978515625, 0.0439453125, 0.00909423828125, -0.00827789306640625, 0.029083251953125, -0.020172119140625, 0.008148193359375, 0.04931640625, -0.001094818115234375, 0.01558685302734375, -0.002780914306640625, -0.00591278076171875, 0.03515625, 0.00356292724609375, -0.00010019540786743164, -0.01297760009765625, -0.05419921875, -0.0203094482421875, 0.022369384765625, 0.1083984375, -0.031097412109375, -0.06463623046875, -0.01407623291015625, 0.04345703125, -0.06683349609375, -0.0555419921875, 0.041229248046875, -0.07958984375, -0.038818359375, -0.061676025390625, -0.05059814453125, 0.0187225341796875, -0.05401611328125, -0.006519317626953125, 0.0177001953125, -0.0284271240234375, -0.057647705078125, -0.04974365234375, -0.07403564453125, -0.03326416015625, 0.0018367767333984375, 0.01053619384765625, 0.016265869140625, 0.056671142578125, 0.029998779296875, -0.036376953125, 0.0279541015625, 0.02886962890625, -0.01117706298828125, 0.0474853515625, -0.006381988525390625, -0.0066375732421875, -0.0068206787109375, 0.0138397216796875, -0.0260009765625, 0.0034618377685546875, -0.0027599334716796875, -0.0168304443359375, -0.0079345703125, 0.0220184326171875, 0.040313720703125, -0.0169830322265625, -0.0188751220703125, 0.046234130859375, 0.053802490234375, -0.0096282958984375, 0.007198333740234375, -0.02020263671875, -0.0007200241088867188, 0.040069580078125, 0.01074981689453125, -0.01082611083984375, -0.0221710205078125, 0.0360107421875, -0.01031494140625, 0.00695037841796875, -0.0193328857421875, -0.02978515625, 0.05194091796875, 0.021026611328125, 0.0197906494140625, 0.0193328857421875, 0.0157623291015625, -0.0239410400390625, -0.0054779052734375, -0.005916595458984375, 0.0073089599609375, 0.0015316009521484375, -0.0157318115234375, -0.039215087890625, -0.05828857421875, 0.03955078125, -0.041900634765625, -0.0178985595703125, -0.025787353515625, -0.01922607421875, 0.01103973388671875, 0.091064453125, -0.017547607421875, -0.002315521240234375, -0.0274200439453125, -0.0073394775390625, -0.0017595291137695312, -0.01641845703125, -0.0438232421875, -0.0196075439453125, -0.0648193359375, -0.01013946533203125, -0.00472259521484375, -0.04248046875, 0.0030975341796875, 0.039093017578125, -0.038543701171875, -0.0214080810546875, 0.0247650146484375, -0.01849365234375, 0.0103302001953125, 0.01494598388671875, 0.0115203857421875, -0.0206756591796875, -0.0114898681640625, -0.0019445419311523438, -0.04620361328125, -0.0030345916748046875, 0.01806640625, 0.0162200927734375, 0.0022907257080078125, -0.041168212890625, 0.032196044921875, 0.055877685546875, 0.0122222900390625, 0.00968170166015625, 0.00484466552734375, 0.0213470458984375, -0.00626373291015625, -0.00438690185546875, 0.007427215576171875, -0.031890869140625, -0.0168609619140625, -0.01543426513671875, -0.045623779296875, 0.039642333984375, -0.0174713134765625, 0.034698486328125, 0.0017175674438476562, -0.022979736328125, -0.07550048828125, -0.01209259033203125, 0.00988006591796875, -0.018585205078125, -0.01013946533203125, 0.01043701171875, 0.01413726806640625, -0.0634765625, 0.062744140625, 0.0309600830078125, -0.036163330078125, -0.01436614990234375, 0.0882568359375, 0.0204315185546875, -0.0362548828125, -0.037750244140625, 0.0012359619140625, 0.038543701171875, -0.025665283203125, 0.031646728515625, 0.0164947509765625, -0.03973388671875, 0.0631103515625, -0.0015707015991210938, -0.0154266357421875, -0.008575439453125, 0.061187744140625, -0.008331298828125, -0.01751708984375, 0.010711669921875, -0.04315185546875, 0.0264129638671875, 0.00435638427734375, -0.0271759033203125, -0.03338623046875, 0.02960205078125, 0.05084228515625, -0.03436279296875, 0.054901123046875, -0.030059814453125, -0.0374755859375, 0.0352783203125, -0.0049591064453125, -0.0005307197570800781, 0.0014858245849609375, -0.0010318756103515625, 0.0019388198852539062, -0.028594970703125, 0.0078125, 0.00806427001953125, 0.01351165771484375, 0.00350189208984375, 0.018798828125, 0.021453857421875, -0.0005483627319335938, -0.0220794677734375, -0.0020275115966796875, 0.0223236083984375, -0.007396697998046875, -0.046295166015625, 0.016326904296875, -0.0130157470703125, 0.0236358642578125, 0.035491943359375, 0.0163421630859375, 0.047698974609375, 0.021453857421875, 0.01525115966796875, 0.013427734375, -0.0265350341796875, 0.01227569580078125, -0.024658203125, -0.0048828125, 0.002513885498046875, -0.0210418701171875, 0.011260986328125, 0.028076171875, -0.0229949951171875, 0.01557159423828125, -0.006877899169921875, 0.032440185546875, -0.01329803466796875, 0.055084228515625, 0.0156707763671875, -0.03753662109375, 0.0141448974609375, 0.0074462890625, -0.0121002197265625, -0.05419921875, -0.021240234375, 0.0007147789001464844, 0.07379150390625, -0.02264404296875, -0.02496337890625, 0.026092529296875, -0.0200958251953125, 0.0181427001953125, 0.00518035888671875, -0.045318603515625, -0.0113525390625, -0.024444580078125, 0.0030536651611328125, 0.033935546875, -0.01171875, 0.00983428955078125, 0.027374267578125, 0.033966064453125, 0.06365966796875, -0.060028076171875, 0.021087646484375, -0.001880645751953125, 0.01306915283203125, -0.049224853515625, -0.0182952880859375, 0.036529541015625, -0.04248046875, -0.0181121826171875, -0.01416015625, -0.039642333984375, 0.016448974609375, 0.002185821533203125, 0.06866455078125, -0.04534912109375, -0.04705810546875, -0.014678955078125, -0.01201629638671875, 0.07696533203125, 0.053253173828125, -0.034027099609375, 0.0237274169921875, -0.0322265625, 0.007175445556640625, -0.007617950439453125, -0.05987548828125, -0.0182342529296875, -0.01502227783203125, -0.017364501953125, 0.00933837890625, -0.00438690185546875, 0.042083740234375, 0.00665283203125, 0.0306854248046875, -0.026214599609375, 0.047760009765625, 0.01264190673828125, -0.006053924560546875, 0.01560211181640625, 0.0222015380859375, 0.006000518798828125, -0.0284576416015625, -0.032745361328125, -0.0125885009765625, -0.020416259765625, -0.0723876953125, -0.006008148193359375, 0.026580810546875, 0.0008893013000488281, 0.01788330078125, -0.0206298828125, 0.01125335693359375, -0.0026454925537109375, 0.01483154296875, 0.00396728515625, -0.0203704833984375, -0.0175323486328125, 0.031097412109375, -0.02099609375, 0.0341796875, -0.027252197265625, 0.0181732177734375, 0.045989990234375, -0.00047135353088378906, 0.0231170654296875, -0.018096923828125, 0.0164337158203125, 0.013092041015625, 0.0335693359375, -0.0181732177734375, 0.02410888671875, 0.01311492919921875, 0.00481414794921875, 0.0189666748046875, 0.01239776611328125, -0.01284027099609375, 0.026641845703125, -0.0184783935546875, -0.039215087890625, 0.0638427734375, 0.0265655517578125, -0.0270843505859375, 0.047760009765625, -0.04241943359375, -0.019927978515625, -0.0245208740234375, 0.004405975341796875, -0.0132598876953125, 0.007598876953125, 0.02239990234375, 0.0017576217651367188, -0.03662109375, 0.0306396484375, -0.035858154296875, -0.033935546875, -0.00618743896484375, -0.0222320556640625, -0.0176239013671875, 0.00487518310546875, -0.0029468536376953125, -0.0003559589385986328, -0.0020599365234375, 0.06561279296875, 0.013824462890625, -0.031494140625, -0.02490234375, 0.0123138427734375, -0.007171630859375, -0.02227783203125, -0.0089263916015625, -0.022247314453125, -0.0011186599731445312, -0.020843505859375, 0.037353515625, -0.020263671875, 0.031982421875, 0.0161590576171875, -0.0036716461181640625, -0.0017948150634765625, 0.0308837890625, -0.00991058349609375, 0.02886962890625, 0.00269317626953125, -0.0662841796875, -0.0179290771484375, 0.0007214546203613281, -0.035003662109375, 0.048126220703125, 0.002349853515625, 0.01239013671875, -0.008819580078125, 0.01715087890625, -0.035186767578125, -0.049072265625, 0.09136962890625, -0.0394287109375, -0.017730712890625, -0.0057373046875, 0.056640625, 0.01776123046875, 0.0039043426513671875, 0.0333251953125, -0.06475830078125, -0.0187225341796875, 0.0135955810546875, 0.00021719932556152344, -0.01690673828125, 0.004718780517578125, -0.056060791015625, 0.0703125, 0.0166015625, 0.00421142578125, -0.011962890625, 0.0195770263671875, 0.00112152099609375, 0.0208282470703125, -0.050079345703125, 0.049468994140625, 0.0124053955078125, 0.054718017578125, -0.05877685546875, -0.0233306884765625, 0.01012420654296875, 0.037109375, 0.048095703125, 0.01104736328125, -0.0479736328125, -0.0015954971313476562, 0.04791259765625, 0.026397705078125, -0.003173828125, 0.03521728515625, 0.037109375, 0.01364898681640625, 0.04241943359375, -0.003864288330078125, 0.041259765625, -0.02642822265625, 0.00765228271484375, 0.053955078125, 0.0143585205078125, 0.016845703125, -0.02911376953125, -0.019683837890625, -0.0487060546875, -0.023712158203125, 0.03173828125, -0.0149993896484375, 0.021148681640625, 0.045806884765625, 0.0289459228515625, -0.040496826171875, 0.03216552734375, -0.04193115234375, 0.058258056640625, -0.03778076171875, 0.04034423828125, 0.04486083984375, 0.01275634765625, 0.0872802734375, 0.00542449951171875, 0.0212249755859375, 0.0024166107177734375, 0.0224609375, 0.05303955078125, 0.035491943359375, 0.0115966796875, -0.0379638671875, -0.002315521240234375, 0.01068878173828125, 0.056427001953125, -0.053466796875, -0.04925537109375, 0.0181121826171875, -0.0038356781005859375, 0.01314544677734375, 0.01495361328125, 0.04071044921875, 0.060394287109375, 0.0716552734375, -0.0679931640625, -0.01308441162109375, 0.034698486328125, 0.0286102294921875, -0.00766754150390625, -0.01142120361328125, -0.01971435546875, -0.03497314453125, -0.05902099609375, 0.0293121337890625, 0.038604736328125, 0.04571533203125, 0.0181884765625, 0.037628173828125, 0.0050201416015625, -0.0112457275390625, 0.010955810546875, 0.020599365234375, 0.0087127685546875, -0.0170440673828125, 0.00963592529296875, 0.00789642333984375, -0.0172119140625, 0.0071868896484375, 0.01378631591796875, 0.006992340087890625, 0.032867431640625, 0.037689208984375, -0.00936126708984375, -0.007740020751953125, 0.048126220703125, -0.01053619384765625, -0.00960540771484375, -0.0316162109375, 0.001949310302734375, 0.0225372314453125, -0.01047515869140625, 0.02593994140625, -0.009521484375, 0.043426513671875, -0.015380859375, 0.0782470703125, -0.01190185546875, -0.024322509765625, 0.0274505615234375, -0.0189208984375, 0.08709716796875, 0.00225067138671875, -0.0885009765625, -0.0007758140563964844, -0.072021484375, -0.036834716796875, 0.028289794921875, 0.0268707275390625, -0.01540374755859375, 0.0308837890625, -0.00823211669921875, -0.0114593505859375, 0.001094818115234375, 0.029296875, 0.0007867813110351562, 0.0307769775390625, 0.017669677734375, 0.004100799560546875, -0.0172576904296875, 0.00376129150390625, 0.00655364990234375, 0.0004734992980957031, 0.02685546875, 0.02398681640625, 0.0030536651611328125, 0.0176849365234375, -0.03192138671875, 0.060089111328125, -0.10821533203125, -0.04180908203125, 0.056793212890625, -0.033355712890625, -0.0005092620849609375, 0.010650634765625, -0.041412353515625, 0.0197906494140625, 0.046417236328125, -0.0217742919921875, 0.035400390625, -0.01458740234375, -0.0008168220520019531, -0.043487548828125, 0.0880126953125, -0.005634307861328125, -0.0164642333984375, -0.04132080078125, -0.034332275390625, 0.06072998046875, 0.0684814453125, 0.0183868408203125, -0.0183868408203125, 0.0187530517578125, -0.042755126953125, 0.0389404296875, 0.0103912353515625, 0.05291748046875, 0.033660888671875, 0.0108489990234375, -0.041839599609375, -0.00743865966796875, -0.001033782958984375, -0.00965118408203125, 0.027191162109375, 0.01409149169921875, 0.0113372802734375, 0.005641937255859375, -0.006015777587890625, -0.01541900634765625, 0.0406494140625, -0.0180816650390625, 0.015899658203125, -0.0086517333984375, 0.019287109375, -0.0013227462768554688, -0.0193634033203125, -0.02459716796875, -0.048248291015625, -0.0028247833251953125, 0.0010595321655273438, -0.005901336669921875, -0.0110015869140625, -0.01104736328125, -0.01413726806640625, 0.039703369140625, -0.0228271484375, 0.052520751953125, -0.03924560546875, -0.030914306640625, -0.00283050537109375, -0.0005078315734863281, -0.026824951171875, 0.035186767578125, 0.0693359375, -0.020355224609375, 0.0212554931640625, -0.01354217529296875, -0.0295562744140625, -0.0135040283203125, 0.00733184814453125, -0.00917816162109375, -0.0171051025390625, -0.03680419921875, 0.048248291015625, 0.01131439208984375, 0.07684326171875, 0.06011962890625, -0.03424072265625, 0.007648468017578125, 0.0193328857421875, -0.04376220703125, -0.055633544921875, 0.033355712890625, -0.03826904296875, -0.0022640228271484375, 0.006683349609375, 0.0115203857421875, 0.027252197265625, -0.0253448486328125, -0.054168701171875, 0.0133514404296875, -0.0124053955078125, -0.0275115966796875, -0.021087646484375, -0.015838623046875, -0.0011358261108398438, -0.01529693603515625, -0.0186309814453125, -0.002025604248046875, -0.03509521484375, 0.034881591796875, 0.0068206787109375, 0.0159912109375, 0.04241943359375, -0.015594482421875, -0.05364990234375, -0.0162811279296875, -0.0204925537109375, 0.017578125, -0.0210418701171875, -0.016387939453125, -0.010650634765625, -0.00360870361328125, -0.039886474609375, -0.03448486328125, 0.01253509521484375, 0.021881103515625, -0.01434326171875, -0.0172576904296875, -0.0265350341796875, -0.0005974769592285156, 0.0316162109375, 0.043731689453125, 0.00708770751953125, -0.0284271240234375, -0.0189666748046875, 0.00460052490234375, -0.050872802734375, -0.01540374755859375, 0.0440673828125, -0.08648681640625, -0.0202789306640625, 0.012359619140625, -0.0284271240234375, -0.01190185546875, -0.00946807861328125, -0.058746337890625, -0.004497528076171875, -0.055755615234375, -0.00403594970703125, -0.01366424560546875, 0.0249786376953125, 0.0121612548828125, -0.032318115234375, -0.044158935546875, -0.0330810546875, 0.0004367828369140625, -0.0214996337890625, -0.05999755859375, 0.006435394287109375, 0.021697998046875, 0.002777099609375, -0.0010824203491210938, 0.0234375, 0.00528717041015625, 0.0014429092407226562, 0.006542205810546875, -0.014007568359375, 0.0217437744140625, -0.0131072998046875, 0.0010042190551757812, 0.0118255615234375, 0.06170654296875, 0.01474761962890625, 0.055023193359375, 0.00901031494140625, 0.05914306640625, -0.00472259521484375, 0.066162109375, -0.0072174072265625, -0.038604736328125, -0.0020351409912109375, -0.025054931640625, -0.0037364959716796875, -0.03253173828125, -0.00572967529296875, -0.0247650146484375, -0.0135955810546875, -0.0252685546875, -0.02191162109375, 0.021240234375 ]