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
2d38a3d2d9cf763e6bfd669364d3291edbb48b36
Wordpress Stackexchange Q: Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1 How is it possible to add a custom button to the visual editor TinyMCE, Version 4? Currently I found this q&a with a little bit hints to the topic, but not a solution or a how to. But I can't find a tutorial, documentation, q&a for the topic to add a custom button to the TinyMCE version 4, include in WordPress since version 3.9-beta1. Goal A: And, if you'd like to have an actual icon button, then you can leverage dashicons, or your own icon font for it. Create a CSS file, and enqueue on the admin side; i.mce-i-pluginname:before { content: "\f164"; display: inline-block; -webkit-font-smoothing: antialiased; text-align: center; font: 400 20px/1 dashicons!important; speak: none; vertical-align: top; } Basically taken straight from core.
Q: Add custom TinyMCE 4 Button, Usable since WordPress 3.9-beta1 How is it possible to add a custom button to the visual editor TinyMCE, Version 4? Currently I found this q&a with a little bit hints to the topic, but not a solution or a how to. But I can't find a tutorial, documentation, q&a for the topic to add a custom button to the TinyMCE version 4, include in WordPress since version 3.9-beta1. Goal A: And, if you'd like to have an actual icon button, then you can leverage dashicons, or your own icon font for it. Create a CSS file, and enqueue on the admin side; i.mce-i-pluginname:before { content: "\f164"; display: inline-block; -webkit-font-smoothing: antialiased; text-align: center; font: 400 20px/1 dashicons!important; speak: none; vertical-align: top; } Basically taken straight from core. A: The following small plugin creates a custom button inside line 1 of the WordPress TinyMCE Version 4, tested in WP Version 3.9-beta2. The plugin has var_dump included to understand the values. It's also possible to add the button to other lines of the visual editor, only a other hook, like for line 2: mce_buttons_2. Result Plugin, PHP side - tinymce4-test.php <?php /** * Plugin Name: TinyMCE 4 @ WP Test * Description: * Plugin URI: * Version: 0.0.1 * Author: Frank Bültge * Author URI: http://bueltge.de * License: GPLv2 * License URI: ./assets/license.txt * Text Domain: * Domain Path: /languages * Network: false */ add_action( 'admin_head', 'fb_add_tinymce' ); function fb_add_tinymce() { global $typenow; // Only on Post Type: post and page if( ! in_array( $typenow, array( 'post', 'page' ) ) ) return ; add_filter( 'mce_external_plugins', 'fb_add_tinymce_plugin' ); // Add to line 1 form WP TinyMCE add_filter( 'mce_buttons', 'fb_add_tinymce_button' ); } // Inlcude the JS for TinyMCE function fb_add_tinymce_plugin( $plugin_array ) { $plugin_array['fb_test'] = plugins_url( '/plugin.js', __FILE__ ); // Print all plugin JS path var_dump( $plugin_array ); return $plugin_array; } // Add the button key for address via JS function fb_add_tinymce_button( $buttons ) { array_push( $buttons, 'fb_test_button_key' ); // Print all buttons var_dump( $buttons ); return $buttons; } Script, JavaScript side - plugin.js ( function() { tinymce.PluginManager.add( 'fb_test', function( editor, url ) { // Add a button that opens a window editor.addButton( 'fb_test_button_key', { text: 'FB Test Button', icon: false, onclick: function() { // Open window editor.windowManager.open( { title: 'Example plugin', body: [{ type: 'textbox', name: 'title', label: 'Title' }], onsubmit: function( e ) { // Insert content when the window form is submitted editor.insertContent( 'Title: ' + e.data.title ); } } ); } } ); } ); } )(); Gist Use the Gist bueltge/9758082 as reference, or download. The Gist also has more examples for different buttons in TinyMCE. Links * *TinyMCE API 4 *Migration guide from 3.x *WP Trac Ticket *TinyMCE Default Font for Icons-Fonts *Alternative Icon via Dashicon or Genericons *TinyMCE Default Plugins *Compat Plugin - This plugin contains a few compatibility files for the old 3.x branch. This enables you to run most old 3.x plugins with out any modifications. A: The simple method of adding button 1) ADD THIS CODE INTO FUNCTIONS.PHP, OR IN PLUGIN //add_protect_shortcode_button add_action('admin_init', 'add_cb_button');function add_cb_button() { if (current_user_can('edit_posts') && get_user_option('rich_editing') == 'true') { add_filter('mce_buttons_2', 'register_buttonfirst'); add_filter('mce_external_plugins', 'add_pluginfirst'); } } function register_buttonfirst($buttons) { array_push($buttons, "|", "shortcode_button1" ); return $buttons;} function add_pluginfirst($plugin_array) {$plugin_array['MyPuginButtonTag'] = plugin_dir_url( __FILE__ ).'My_js_folder/1_button.php';return $plugin_array;} add_filter( 'tiny_mce_version', 'my_refresh_mceeee1'); function my_refresh_mceeee1($ver) {$ver += 3;return $ver;} 2) Create 1_button.php in target folder and insert this code (note, change "wp-load" and "ButtonImage.png" urls!!!) <?php header("Content-type: application/x-javascript"); require('../../../../wp-load.php'); ?> (function() { // START my customs var abcd =location.host; tinymce.create('tinymce.plugins.shortcodebuton_plugin2', { init : function(ed, this_folder_url) { // ------------------------- ed.addButton('shortcode_button1', { title : 'Show Level1 count', image : this_folder_url + '/ButtonImage.png', onclick : function() { ed.selection.setContent('[statistics_sp]'); //var vidId = prompt("YouTube Video", ""); //ed.execCommand('mceInsertContent', false, '[youtube id="'+vidId+'"]'); } }); }, createControl : function(n, cm) { return null; }, }); tinymce.PluginManager.add('MyPuginButtonTag', tinymce.plugins.shortcodebuton_plugin2); })();
wordpress
{ "language": "en", "length": 637, "provenance": "stackexchange_00019.jsonl.gz:443607", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139163" }
[ 0.019012451171875, -0.016998291015625, 0.01476287841796875, -0.0118865966796875, -0.0006361007690429688, -0.00452423095703125, 0.054656982421875, 0.006107330322265625, 0.007049560546875, 0.034942626953125, 0.0309600830078125, -0.01030731201171875, -0.0213165283203125, -0.038848876953125, -0.0283660888671875, -0.000025033950805664062, 0.058624267578125, -0.042877197265625, 0.051116943359375, -0.0035858154296875, 0.0013179779052734375, 0.018310546875, 0.0823974609375, -0.0171661376953125, 0.003925323486328125, 0.01617431640625, 0.08270263671875, -0.039398193359375, 0.004596710205078125, -0.017486572265625, 0.01885986328125, -0.01511383056640625, -0.0004172325134277344, 0.070068359375, -0.06231689453125, 0.007808685302734375, 0.004489898681640625, 0.028533935546875, 0.0039215087890625, 0.0201416015625, 0.034576416015625, -0.03839111328125, 0.0026798248291015625, 0.007160186767578125, -0.023895263671875, -0.00823974609375, 0.036529541015625, -0.01007080078125, 0.013702392578125, -0.0220489501953125, -0.0233306884765625, 0.0203094482421875, -0.007358551025390625, -0.021728515625, -0.0095062255859375, -0.0157928466796875, -0.0404052734375, 0.0419921875, 0.0009250640869140625, 0.055572509765625, 0.0241546630859375, 0.027923583984375, -0.027099609375, -0.0146484375, -0.007415771484375, -0.007663726806640625, -0.043060302734375, -0.0112152099609375, 0.0592041015625, 0.006618499755859375, -0.0209197998046875, 0.0016012191772460938, 0.02587890625, -0.035308837890625, 0.006755828857421875, 0.00775146484375, -0.0094146728515625, -0.03546142578125, 0.022491455078125, -0.0170440673828125, -0.01091766357421875, 0.0023517608642578125, -0.0240325927734375, -0.0123443603515625, -0.0104827880859375, 0.00011157989501953125, -0.01416015625, -0.010528564453125, -0.0057525634765625, -0.0186309814453125, -0.01215362548828125, -0.08355712890625, 0.01409149169921875, 0.04559326171875, -0.0115203857421875, -0.00754547119140625, 0.0205078125, -0.00750732421875, -0.0157928466796875, 0.004718780517578125, 0.014007568359375, -0.047637939453125, 0.06488037109375, -0.022674560546875, 0.01318359375, -0.0230865478515625, 0.003570556640625, 0.06744384765625, 0.0689697265625, 0.037994384765625, -0.00518035888671875, 0.03204345703125, -0.01157379150390625, -0.045135498046875, -0.0246124267578125, 0.0399169921875, 0.003742218017578125, 0.002346038818359375, 0.01788330078125, 0.0106658935546875, -0.0005130767822265625, 0.014434814453125, 0.0167999267578125, -0.0106964111328125, -0.026611328125, -0.033966064453125, -0.00019276142120361328, -0.0172119140625, 0.0173492431640625, 0.0307159423828125, -0.047393798828125, -0.003276824951171875, 0.056304931640625, 0.050567626953125, 0.0296173095703125, -0.031097412109375, 0.01708984375, -0.0169830322265625, -0.0016260147094726562, -0.000865936279296875, 0.0257110595703125, -0.029266357421875, -0.0226593017578125, 0.01146697998046875, -0.022308349609375, 0.0228271484375, 0.0210113525390625, 0.01184844970703125, -0.0249176025390625, -0.086181640625, 0.041015625, -0.0267333984375, 0.04083251953125, 0.0191192626953125, -0.03839111328125, -0.0252838134765625, 0.0176849365234375, -0.038970947265625, -0.0093536376953125, -0.063720703125, 0.034576416015625, 0.0176849365234375, 0.017059326171875, -0.017791748046875, -0.003574371337890625, -0.0302276611328125, -0.0570068359375, 0.0107269287109375, 0.021270751953125, 0.06829833984375, -0.037689208984375, 0.01230621337890625, 0.0260467529296875, 0.0040130615234375, -0.0321044921875, -0.004547119140625, 0.01617431640625, 0.027191162109375, 0.00800323486328125, 0.0230255126953125, 0.01473236083984375, -0.03338623046875, 0.1019287109375, -0.037872314453125, -0.050994873046875, 0.0216827392578125, -0.017822265625, 0.07843017578125, 0.0242156982421875, 0.014312744140625, -0.0290069580078125, -0.0051422119140625, 0.014739990234375, 0.012786865234375, 0.0211334228515625, -0.030853271484375, -0.05804443359375, -0.021148681640625, -0.01497650146484375, -0.018768310546875, -0.00038123130798339844, -0.0033245086669921875, 0.020965576171875, 0.0081939697265625, -0.0250244140625, 0.03094482421875, -0.01050567626953125, 0.018585205078125, 0.038330078125, -0.043365478515625, -0.0111541748046875, -0.02972412109375, 0.0265045166015625, -0.03961181640625, -0.060638427734375, 0.05218505859375, 0.005321502685546875, 0.042572021484375, 0.028594970703125, 0.012908935546875, 0.053497314453125, -0.0278167724609375, 0.056610107421875, 0.011749267578125, 0.0307464599609375, -0.035064697265625, -0.0118255615234375, -0.025054931640625, 0.0311431884765625, 0.00792694091796875, -0.01690673828125, 0.0293731689453125, 0.013519287109375, 0.0165252685546875, -0.016693115234375, -0.0230865478515625, -0.0168914794921875, -0.08026123046875, 0.013885498046875, 0.055023193359375, 0.01171112060546875, 0.005733489990234375, -0.0255889892578125, 0.035736083984375, 0.00821685791015625, 0.01004791259765625, 0.0299224853515625, -0.0019273757934570312, 0.00841522216796875, 0.041046142578125, 0.0305328369140625, 0.0019445419311523438, 0.0047149658203125, -0.015960693359375, 0.0305023193359375, 0.028839111328125, 0.006092071533203125, 0.044219970703125, -0.01369476318359375, -0.004535675048828125, -0.003818511962890625, 0.00099945068359375, -0.0110931396484375, -0.0118408203125, 0.04132080078125, 0.040496826171875, 0.06402587890625, 0.07012939453125, -0.02777099609375, 0.0193023681640625, -0.01763916015625, 0.0134429931640625, -0.004825592041015625, -0.037567138671875, 0.002941131591796875, 0.0279693603515625, -0.05816650390625, 0.036651611328125, 0.044769287109375, -0.006622314453125, -0.03839111328125, -0.01398468017578125, -0.0260772705078125, -0.0031108856201171875, 0.00852203369140625, -0.046600341796875, 0.0129852294921875, -0.026824951171875, 0.023834228515625, -0.03515625, 0.012542724609375, 0.0017900466918945312, -0.0215301513671875, 0.029754638671875, 0.00655364990234375, -0.041748046875, 0.0142974853515625, -0.018310546875, 0.035980224609375, -0.01302337646484375, 0.018646240234375, 0.0592041015625, -0.004547119140625, 0.0007052421569824219, 0.0245208740234375, -0.02874755859375, -0.0149383544921875, 0.041412353515625, 0.02569580078125, -0.0083770751953125, -0.007549285888671875, 0.041412353515625, 0.016693115234375, 0.06439208984375, -0.0528564453125, -0.048004150390625, -0.03948974609375, 0.0157928466796875, -0.033905029296875, -0.019378662109375, 0.02947998046875, -0.0182952880859375, -0.007568359375, -0.0124053955078125, -0.0177459716796875, -0.02655029296875, -0.001995086669921875, -0.007778167724609375, -0.08099365234375, 0.01422882080078125, 0.033203125, -0.00788116455078125, -0.01068878173828125, -0.0186614990234375, -0.00533294677734375, 0.0142822265625, 0.0160064697265625, 0.01303863525390625, 0.004512786865234375, -0.00945281982421875, 0.03387451171875, -0.028045654296875, -0.01009368896484375, 0.01230621337890625, 0.023284912109375, -0.0482177734375, 0.039642333984375, -0.00904083251953125, 0.032562255859375, 0.03997802734375, -0.01219940185546875, -0.0189971923828125, -0.0267486572265625, -0.0282745361328125, 0.005340576171875, 0.058135986328125, 0.021728515625, 0.0076751708984375, 0.08087158203125, -0.0146942138671875, -0.04913330078125, 0.039093017578125, -0.0106353759765625, 0.057159423828125, -0.030914306640625, -0.040557861328125, 0.0173187255859375, 0.0711669921875, 0.03875732421875, 0.01285552978515625, 0.02020263671875, 0.01277923583984375, 0.016265869140625, 0.00148773193359375, 0.022125244140625, -0.04302978515625, -0.007354736328125, -0.03033447265625, 0.027496337890625, -0.01163482666015625, 0.0125274658203125, 0.01165008544921875, 0.005359649658203125, 0.004360198974609375, -0.02886962890625, 0.02398681640625, -0.0638427734375, -0.0038661956787109375, -0.038116455078125, -0.010833740234375, -0.01340484619140625, 0.06304931640625, 0.00872039794921875, -0.00667572021484375, 0.0007562637329101562, -0.004909515380859375, 0.01329803466796875, 0.0013446807861328125, -0.042633056640625, -0.01416015625, -0.0447998046875, 0.0094757080078125, 0.0006389617919921875, -0.00977325439453125, -0.0377197265625, 0.0426025390625, -0.033538818359375, -0.009246826171875, 0.0192718505859375, -0.007381439208984375, -0.003276824951171875, 0.00044608116149902344, -0.026214599609375, -0.00205230712890625, 0.003383636474609375, -0.054290771484375, -0.08111572265625, -0.004611968994140625, -0.0589599609375, 0.05474853515625, 0.0189971923828125, 0.0129241943359375, -0.0255279541015625, 0.033203125, -0.0230560302734375, 0.01202392578125, 0.001117706298828125, 0.044708251953125, -0.031402587890625, -0.0261383056640625, -0.0109405517578125, -0.04150390625, -0.0013427734375, 0.015106201171875, -0.031646728515625, 0.00661468505859375, -0.0151214599609375, -0.046875, 0.057220458984375, -0.06854248046875, -0.0025997161865234375, -0.059295654296875, -0.032257080078125, 0.0242919921875, -0.0019207000732421875, -0.01532745361328125, -0.06622314453125, -0.0183563232421875, 0.0028247833251953125, -0.01174163818359375, 0.0158233642578125, -0.00478363037109375, 0.02581787109375, 0.018707275390625, -0.019622802734375, 0.0178985595703125, 0.004955291748046875, 0.01519012451171875, -0.0267486572265625, -0.00791168212890625, -0.0118408203125, -0.00885772705078125, -0.0063018798828125, -0.02984619140625, 0.021484375, -0.058349609375, 0.07952880859375, -0.01244354248046875, 0.003368377685546875, 0.01390838623046875, -0.0157470703125, -0.0037937164306640625, 0.0262908935546875, -0.0180511474609375, -0.0278778076171875, -0.0231781005859375, 0.060577392578125, 0.006591796875, 0.0038852691650390625, -0.05712890625, -0.00848388671875, -0.005847930908203125, 0.01336669921875, 0.050201416015625, 0.00748443603515625, 0.01497650146484375, -0.00838470458984375, -0.0017108917236328125, -0.03680419921875, 0.0286865234375, -0.00786590576171875, 0.03717041015625, 0.00787353515625, 0.02117919921875, -0.015411376953125, 0.0025787353515625, 0.004169464111328125, 0.0447998046875, 0.0537109375, -0.00439453125, -0.030120849609375, 0.0157470703125, 0.0308380126953125, -0.053741455078125, -0.000469207763671875, 0.00933074951171875, 0.028778076171875, -0.028839111328125, 0.01233673095703125, 0.0224761962890625, 0.0014629364013671875, -0.0322265625, -0.037384033203125, 0.011016845703125, -0.03143310546875, -0.0153961181640625, 0.04254150390625, 0.00405120849609375, -0.00164794921875, 0.00418853759765625, 0.04248046875, 0.056610107421875, 0.0174713134765625, 0.0167388916015625, 0.00778961181640625, -0.006443023681640625, -0.003932952880859375, -0.031494140625, -0.00859832763671875, 0.0115203857421875, -0.0131683349609375, 0.01425933837890625, -0.0280914306640625, -0.04010009765625, 0.0458984375, -0.05389404296875, -0.017974853515625, -0.0243072509765625, -0.035919189453125, -0.035888671875, -0.00008600950241088867, 0.0098419189453125, -0.006069183349609375, 0.006519317626953125, -0.0267181396484375, 0.0076446533203125, -0.0595703125, 0.0045013427734375, -0.0071563720703125, -0.018280029296875, 0.00586700439453125, -0.00717926025390625, 0.0137786865234375, 0.003204345703125, -0.015777587890625, -0.08355712890625, -0.03753662109375, -0.0004897117614746094, -0.0006175041198730469, 0.03558349609375, -0.0031890869140625, -0.00948333740234375, -0.01229095458984375, -0.0115966796875, -0.0259246826171875, 0.01493072509765625, -0.0029964447021484375, -0.0369873046875, 0.0251312255859375, -0.019683837890625, -0.04254150390625, -0.04827880859375, -0.01073455810546875, -0.00878143310546875, -0.027740478515625, 0.0031795501708984375, 0.0211944580078125, 0.0350341796875, 0.012451171875, -0.0064849853515625, -0.03546142578125, 0.02374267578125, 0.0205535888671875, 0.043701171875, 0.02996826171875, -0.0019311904907226562, 0.00826263427734375, 0.058349609375, 0.034698486328125, 0.003902435302734375, -0.0169677734375, -0.053436279296875, 0.049560546875, -0.020111083984375, -0.048431396484375, -0.040374755859375, -0.0034389495849609375, -0.005153656005859375, 0.00530242919921875, -0.03326416015625, 0.0221405029296875, -0.0325927734375, -0.011383056640625, -0.0110015869140625, 0.0322265625, -0.01361846923828125, 0.0135345458984375, 0.04974365234375, -0.0396728515625, 0.01340484619140625, 0.00803375244140625, 0.034698486328125, -0.000014901161193847656, -0.035919189453125, 0.0014219284057617188, 0.0157623291015625, -0.052093505859375, 0.034515380859375, 0.038055419921875, -0.00848388671875, 0.0197601318359375, -0.00011307001113891602, -0.0019626617431640625, 0.0109710693359375, -0.01203155517578125, -0.027740478515625, 0.01331329345703125, 0.022705078125, -0.016326904296875, -0.0391845703125, 0.003002166748046875, -0.0200653076171875, 0.0289459228515625, 0.01213836669921875, 0.053253173828125, -0.0458984375, 0.0014448165893554688, 0.00043845176696777344, -0.03253173828125, 0.034637451171875, -0.01519012451171875, -0.0035953521728515625, -0.04229736328125, 0.084228515625, -0.01416778564453125, -0.0033054351806640625, 0.038604736328125, -0.024200439453125, -0.0168914794921875, 0.008880615234375, 0.020782470703125, 0.016632080078125, 0.0090484619140625, -0.01055145263671875, 0.0038890838623046875, -0.0035152435302734375, 0.0298309326171875, 0.027099609375, -0.01763916015625, -0.01416778564453125, -0.010833740234375, -0.002376556396484375, -0.037933349609375, -0.046051025390625, 0.057861328125, 0.00144195556640625, -0.025665283203125, 0.01953125, -0.032440185546875, 0.05181884765625, -0.02655029296875, -0.0394287109375, 0.04278564453125, -0.007671356201171875, 0.006374359130859375, -0.0032024383544921875, -0.022857666015625, 0.00484466552734375, -0.0102081298828125, 0.01371002197265625, -0.0014028549194335938, 0.029541015625, 0.0830078125, 0.00971221923828125, -0.046478271484375, 0.037109375, -0.0020961761474609375, -0.03240966796875, -0.030548095703125, -0.031646728515625, -0.09051513671875, -0.05401611328125, -0.0408935546875, -0.056854248046875, 0.042327880859375, -0.02459716796875, -0.08734130859375, 0.1282958984375, -0.00628662109375, 0.04327392578125, -0.04205322265625, 0.061737060546875, -0.005947113037109375, 0.03460693359375, 0.0089569091796875, -0.005214691162109375, -0.01898193359375, -0.029632568359375, -0.020751953125, -0.0018901824951171875, -0.0239410400390625, 0.053314208984375, 0.0265350341796875, -0.01131439208984375, -0.0237884521484375, 0.028350830078125, 0.09033203125, 0.06658935546875, 0.031280517578125, 0.0028743743896484375, 0.02374267578125, -0.060699462890625, -0.0029449462890625, 0.0833740234375, 0.04656982421875, 0.00470733642578125, -0.037445068359375, 0.0294952392578125, -0.0032405853271484375, -0.007266998291015625, -0.0082550048828125, -0.0206146240234375, 0.03204345703125, -0.0207977294921875, -0.032745361328125, -0.04559326171875, -0.0170440673828125, 0.0565185546875, -0.035888671875, 0.007785797119140625, -0.015625, -0.03497314453125, 0.01288604736328125, -0.04302978515625, 0.004058837890625, -0.033050537109375, 0.0009784698486328125, 0.0012416839599609375, -0.0292816162109375, -0.0136566162109375, 0.026336669921875, -0.027374267578125, 0.026397705078125, -0.005359649658203125, 0.01511383056640625, -0.04315185546875, -0.004302978515625, 0.0307159423828125, 0.036163330078125, -0.0201416015625, -0.023681640625, 0.007045745849609375, -0.01824951171875, -0.01947021484375, -0.034637451171875, -0.025146484375, -0.0305938720703125, -0.007537841796875, -0.00901031494140625, -0.0003509521484375, 0.021728515625, 0.0096588134765625, 0.0173187255859375, 0.044219970703125, -0.027435302734375, 0.007843017578125, -0.041656494140625, -0.0169525146484375, 0.0152435302734375, 0.045074462890625, 0.028045654296875, 0.039459228515625, 0.03765869140625, -0.0157928466796875, -0.01910400390625, 0.0307159423828125, 0.031951904296875, -0.00357818603515625, 0.01161956787109375, 0.006656646728515625, 0.023223876953125, -0.0047760009765625, 0.018585205078125, 0.0010004043579101562, 0.0093231201171875, 0.0157318115234375, 0.0190582275390625, -0.0063018798828125, 0.0102081298828125, -0.0084686279296875, -0.0106964111328125, -0.0626220703125, 0.00930023193359375, 0.0135040283203125, -0.0016794204711914062, 0.023223876953125, -0.036224365234375, 0.06329345703125, -0.0224761962890625, 0.0268707275390625, -0.0038127899169921875, -0.031646728515625, 0.03570556640625, -0.01055908203125, 0.057159423828125, 0.01091766357421875, -0.0016231536865234375, 0.0284271240234375, -0.0184478759765625, -0.0623779296875, -0.002513885498046875, 0.0390625, 0.0014095306396484375, -0.0013322830200195312, -0.04046630859375, -0.0171661376953125, -0.01241302490234375, 0.026763916015625, 0.0071258544921875, 0.027801513671875, 0.0029048919677734375, -0.004306793212890625, -0.042083740234375, 0.0181121826171875, 0.005161285400390625, -0.006435394287109375, 0.01331329345703125, 0.043243408203125, 0.0079498291015625, -0.002197265625, -0.005558013916015625, 0.020050048828125, -0.01555633544921875, -0.0260009765625, 0.01345062255859375, 0.019927978515625, 0.0251312255859375, -0.0193939208984375, -0.04443359375, 0.050628662109375, -0.0026035308837890625, -0.0182342529296875, 0.006641387939453125, 0.027923583984375, 0.0014257431030273438, 0.00276947021484375, -0.002658843994140625, -0.0214080810546875, -0.01302337646484375, -0.0063323974609375, -0.0118255615234375, 0.01171112060546875, 0.003299713134765625, -0.01537322998046875, 0.02606201171875, 0.029022216796875, 0.007328033447265625, 0.04461669921875, -0.009033203125, 0.0675048828125, 0.0306396484375, -0.0305023193359375, -0.028289794921875, -0.01218414306640625, -0.01042938232421875, -0.005950927734375, 0.0005736351013183594, 0.01551055908203125, -0.00022864341735839844, -0.050201416015625, 0.06402587890625, 0.01593017578125, 0.042724609375, -0.036651611328125, -0.004756927490234375, 0.041046142578125, 0.0185089111328125, 0.0161285400390625, 0.0182037353515625, -0.0188446044921875, -0.02239990234375, -0.022674560546875, 0.0156707763671875, -0.0360107421875, -0.013702392578125, -0.10137939453125, -0.0042877197265625, 0.049285888671875, 0.020843505859375, -0.078857421875, 0.056793212890625, -0.0201873779296875, 0.0023174285888671875, 0.00897979736328125, 0.04205322265625, -0.0134429931640625, -0.01442718505859375, -0.052032470703125, 0.005596160888671875, -0.04156494140625, 0.025970458984375, -0.01464080810546875, 0.0082244873046875, 0.003997802734375, -0.00930023193359375, 0.01067352294921875, 0.01485443115234375, 0.0182342529296875, 0.054046630859375, -0.017852783203125, -0.0219268798828125, 0.03240966796875, -0.054718017578125, -0.004856109619140625, -0.07025146484375, 0.017913818359375, -0.1546630859375, -0.035919189453125, -0.0091094970703125, 0.00412750244140625, 0.0033931732177734375, -0.054840087890625, -0.12213134765625, 0.01354217529296875, -0.00640106201171875, -0.04876708984375, -0.0279541015625, 0.034210205078125, -0.0036067962646484375, -0.040557861328125, -0.0178985595703125, -0.004528045654296875, 0.0362548828125, 0.0181732177734375, 0.0013446807861328125, 0.0301971435546875, -0.03680419921875, 0.040130615234375, -0.08642578125, 0.01322174072265625, -0.01397705078125, -0.00640106201171875, 0.051971435546875, -0.04827880859375, 0.03594970703125, 0.01285552978515625, -0.05859375, -0.10113525390625, -0.024444580078125, -0.02001953125, -0.0228424072265625, -0.05474853515625, -0.0241851806640625, -0.032989501953125, 0.07342529296875, 0.0310516357421875, 0.006092071533203125, -0.02508544921875, 0.0190277099609375, -0.0122222900390625, -0.038177490234375, -0.003582000732421875, 0.0095977783203125, -0.052642822265625, -0.01340484619140625, 0.0255126953125, 0.0109100341796875, -0.0215911865234375, 0.039825439453125, -0.0092010498046875, -0.00858306884765625, 0.03533935546875, -0.01367950439453125, -0.042388916015625, 0.05401611328125, 0.0897216796875, -0.041473388671875, 0.020050048828125, 0.01361083984375, -0.0330810546875, 0.0611572265625, 0.032501220703125, -0.0153656005859375, 0.01363372802734375, -0.0288238525390625, 0.0240020751953125, -0.01174163818359375, 0.009490966796875, -0.0447998046875, 0.0135650634765625, -0.0243682861328125, 0.01299285888671875, -0.00481414794921875, -0.0064544677734375, -0.0048828125, -0.00989532470703125, 0.00010287761688232422, 0.051361083984375, -0.00020229816436767578, 0.007602691650390625, -0.031585693359375, 0.03973388671875, -0.0122528076171875, -0.005329132080078125, -0.01470947265625, -0.0180511474609375, 0.01538848876953125, 0.02557373046875, 0.007232666015625, 0.0005478858947753906, 0.01027679443359375, 0.0183563232421875, -0.015716552734375, 0.0100860595703125 ]
2bca3d0937873856fd2c03b075bb23f2ceb2ec20
Wordpress Stackexchange Q: tax_input argument for wp_insert_post() I'm trying to insert custom taxonomies using wp_insert_post() and the tax_input argument, but it doesn't work. I want to set a post to a custom taxonomy ('types') and a category ('cars') $new_post = array( 'post_title' => $title, 'post_content' => $description, 'tax_input' => array('types' => array('cars')), 'post_status' => 'pending', 'post_type' => 'vehicles' ); A: I find the answer. After building my arguments for wp_insert_post() function and passed it to a variable $pid i set the following line after that and everything works slightly. wp_set_object_terms($pid, 'cars', 'types', true);
Q: tax_input argument for wp_insert_post() I'm trying to insert custom taxonomies using wp_insert_post() and the tax_input argument, but it doesn't work. I want to set a post to a custom taxonomy ('types') and a category ('cars') $new_post = array( 'post_title' => $title, 'post_content' => $description, 'tax_input' => array('types' => array('cars')), 'post_status' => 'pending', 'post_type' => 'vehicles' ); A: I find the answer. After building my arguments for wp_insert_post() function and passed it to a variable $pid i set the following line after that and everything works slightly. wp_set_object_terms($pid, 'cars', 'types', true);
wordpress
{ "language": "en", "length": 91, "provenance": "stackexchange_00019.jsonl.gz:443679", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139448" }
[ 0.06842041015625, -0.017974853515625, 0.0203399658203125, -0.0157470703125, 0.010223388671875, -0.0270233154296875, 0.0672607421875, -0.0270233154296875, -0.019683837890625, -0.0173187255859375, -0.0225067138671875, -0.0020275115966796875, -0.06298828125, -0.0323486328125, 0.0065765380859375, -0.057586669921875, -0.00815582275390625, -0.0199737548828125, -0.0195159912109375, -0.04022216796875, 0.03948974609375, -0.05474853515625, -0.01090240478515625, -0.044464111328125, 0.03302001953125, -0.001850128173828125, -0.00290679931640625, -0.0209808349609375, 0.0134429931640625, -0.00716400146484375, 0.0225677490234375, -0.006832122802734375, -0.0039215087890625, 0.0489501953125, -0.0357666015625, 0.0615234375, 0.0179901123046875, 0.0283966064453125, 0.043365478515625, 0.0229339599609375, 0.0291748046875, -0.00740814208984375, -0.02960205078125, 0.006397247314453125, -0.022491455078125, -0.05615234375, 0.0122833251953125, -0.01284027099609375, 0.01525115966796875, -0.0146484375, 0.006526947021484375, 0.0144195556640625, 0.033172607421875, -0.032257080078125, -0.0126800537109375, 0.0011730194091796875, -0.04266357421875, 0.0003905296325683594, 0.0301055908203125, 0.032806396484375, -0.00423431396484375, -0.0251312255859375, 0.00585174560546875, -0.038543701171875, 0.0164794921875, 0.0279541015625, 0.05303955078125, 0.0157318115234375, -0.058929443359375, -0.0162506103515625, 0.00971221923828125, -0.040374755859375, -0.0205535888671875, 0.01119232177734375, 0.00018215179443359375, -0.053955078125, 0.05328369140625, -0.0203704833984375, -0.0268402099609375, 0.06024169921875, 0.033294677734375, -0.00244140625, 0.005756378173828125, -0.0111083984375, 0.03515625, 0.01727294921875, -0.005428314208984375, -0.0303802490234375, -0.01357269287109375, -0.0109710693359375, -0.0047607421875, -0.0134124755859375, -0.0535888671875, 0.023468017578125, 0.0120391845703125, -0.03204345703125, -0.005893707275390625, 0.039581298828125, -0.02215576171875, 0.03143310546875, 0.0005040168762207031, -0.0380859375, 0.059539794921875, -0.05853271484375, 0.047088623046875, 0.0200958251953125, -0.038543701171875, -0.0645751953125, 0.047393798828125, 0.0153045654296875, -0.0009474754333496094, 0.050750732421875, 0.01087188720703125, -0.0288543701171875, -0.007556915283203125, -0.00624847412109375, -0.0135040283203125, 0.00833892822265625, 0.00928497314453125, -0.0192413330078125, 0.019775390625, 0.05780029296875, -0.01450347900390625, -0.02642822265625, 0.000095367431640625, -0.00656890869140625, -0.0029392242431640625, -0.051025390625, 0.0091705322265625, 0.0186920166015625, -0.039764404296875, -0.007114410400390625, 0.0743408203125, 0.040679931640625, 0.0267333984375, -0.0299224853515625, 0.0090484619140625, -0.0171661376953125, -0.029815673828125, 0.0100860595703125, 0.0223236083984375, -0.0213165283203125, -0.0146484375, -0.00347137451171875, 0.01181793212890625, 0.01922607421875, 0.0194091796875, 0.00200653076171875, -0.004116058349609375, -0.047760009765625, 0.01285552978515625, -0.029022216796875, 0.0555419921875, 0.012664794921875, -0.10443115234375, -0.005947113037109375, -0.03057861328125, -0.0204925537109375, -0.03302001953125, -0.0750732421875, 0.01163482666015625, -0.0018177032470703125, 0.015899658203125, -0.046844482421875, -0.0333251953125, -0.00096893310546875, -0.07733154296875, -0.00867462158203125, 0.0165252685546875, 0.0256195068359375, -0.003650665283203125, -0.01192474365234375, -0.0180511474609375, -0.0103302001953125, -0.0143280029296875, 0.00539398193359375, -0.0183563232421875, 0.00609588623046875, 0.0345458984375, 0.00888824462890625, -0.0099029541015625, -0.030059814453125, 0.048858642578125, -0.004482269287109375, -0.0295257568359375, 0.007801055908203125, 0.0119476318359375, 0.0209808349609375, -0.006267547607421875, 0.0227508544921875, 0.029449462890625, 0.037078857421875, -0.06585693359375, 0.013824462890625, 0.01190948486328125, 0.01531982421875, -0.045623779296875, -0.0123443603515625, 0.00018680095672607422, -0.0015096664428710938, -0.048858642578125, 0.00146484375, -0.01001739501953125, 0.0182952880859375, -0.01800537109375, 0.0090179443359375, -0.020904541015625, 0.03826904296875, -0.06951904296875, -0.01497650146484375, 0.03643798828125, -0.024169921875, -0.0234832763671875, 0.01312255859375, 0.00804901123046875, 0.0008697509765625, -0.0032825469970703125, 0.04522705078125, -0.005672454833984375, 0.036712646484375, -0.0273895263671875, -0.032073974609375, -0.0140838623046875, -0.0009031295776367188, 0.007110595703125, 0.038299560546875, -0.0191497802734375, 0.0172576904296875, -0.0031719207763671875, 0.04864501953125, -0.0172119140625, -0.023040771484375, 0.02105712890625, 0.0059051513671875, -0.0167388916015625, -0.00185394287109375, -0.001789093017578125, -0.08465576171875, 0.003154754638671875, 0.06427001953125, 0.023651123046875, 0.016204833984375, -0.005100250244140625, 0.01117706298828125, 0.06890869140625, -0.0006542205810546875, 0.0054473876953125, -0.005947113037109375, 0.01052093505859375, 0.036224365234375, 0.005023956298828125, 0.007167816162109375, 0.012115478515625, -0.03167724609375, 0.0341796875, 0.02813720703125, -0.0364990234375, -0.0277862548828125, 0.051788330078125, -0.03424072265625, -0.0006213188171386719, -0.078369140625, -0.0034999847412109375, -0.03448486328125, 0.056610107421875, 0.024322509765625, 0.034881591796875, 0.02850341796875, -0.032073974609375, 0.0238189697265625, -0.0003814697265625, -0.0284576416015625, -0.0087738037109375, 0.013946533203125, 0.00008893013000488281, 0.0155029296875, -0.0283203125, 0.0145721435546875, -0.01509857177734375, -0.0024261474609375, -0.00875091552734375, 0.037933349609375, 0.007373809814453125, -0.0017948150634765625, -0.0273590087890625, -0.037689208984375, 0.018280029296875, 0.023590087890625, -0.048736572265625, -0.0694580078125, -0.00965118408203125, 0.0028018951416015625, -0.051513671875, 0.0255126953125, -0.00594329833984375, -0.035064697265625, 0.00513458251953125, -0.033203125, 0.036651611328125, -0.0231475830078125, -0.0080718994140625, 0.056640625, 0.0214996337890625, -0.0121612548828125, 0.015411376953125, -0.01186370849609375, 0.0013446807861328125, 0.042724609375, 0.005428314208984375, -0.038055419921875, -0.005130767822265625, 0.04046630859375, 0.0140228271484375, 0.0268402099609375, -0.0004439353942871094, -0.050201416015625, -0.00894927978515625, 0.01708984375, -0.0352783203125, 0.01152801513671875, 0.046783447265625, -0.00555419921875, -0.016571044921875, -0.019073486328125, -0.0060272216796875, -0.0212554931640625, -0.02679443359375, -0.0281982421875, 0.0229034423828125, -0.027191162109375, -0.028411865234375, -0.0555419921875, -0.06378173828125, -0.075927734375, 0.0118865966796875, -0.00684356689453125, 0.01568603515625, 0.0806884765625, 0.029632568359375, -0.038299560546875, 0.039337158203125, -0.0015735626220703125, -0.032989501953125, 0.029388427734375, 0.0231781005859375, -0.0200958251953125, 0.0283966064453125, -0.022918701171875, 0.053253173828125, 0.0577392578125, -0.054901123046875, 0.0015630722045898438, -0.004024505615234375, -0.01319122314453125, -0.00943756103515625, 0.02447509765625, 0.01513671875, 0.002582550048828125, 0.0003540515899658203, -0.03662109375, 0.0199737548828125, 0.004749298095703125, -0.0031337738037109375, -0.0159454345703125, -0.04229736328125, 0.0009012222290039062, -0.006389617919921875, 0.0202789306640625, -0.03973388671875, 0.0098876953125, -0.018035888671875, -0.00798797607421875, -0.0145416259765625, -0.016510009765625, -0.046844482421875, 0.03179931640625, -0.01013946533203125, -0.02978515625, 0.038604736328125, -0.0004696846008300781, 0.0021190643310546875, -0.0255126953125, 0.0302886962890625, -0.05718994140625, -0.0782470703125, 0.0255889892578125, -0.056365966796875, 0.01082611083984375, -0.036163330078125, -0.00765228271484375, -0.0002944469451904297, 0.08526611328125, -0.0207061767578125, -0.005481719970703125, -0.01334381103515625, 0.000022590160369873047, -0.02484130859375, -0.027374267578125, -0.0263671875, -0.0065460205078125, 0.00806427001953125, -0.0295562744140625, -0.013092041015625, -0.01149749755859375, -0.012786865234375, 0.0198211669921875, -0.01030731201171875, -0.00811767578125, 0.05419921875, -0.04559326171875, 0.0340576171875, -0.0010633468627929688, 0.025482177734375, -0.03326416015625, -0.038330078125, -0.01419830322265625, -0.08477783203125, 0.00689697265625, -0.0017118453979492188, 0.01050567626953125, -0.026031494140625, 0.0158843994140625, -0.030517578125, 0.0221710205078125, 0.006038665771484375, 0.034637451171875, -0.005443572998046875, 0.0180816650390625, -0.01334381103515625, -0.01398468017578125, 0.0056304931640625, -0.00853729248046875, -0.03729248046875, -0.01702880859375, 0.007801055908203125, 0.0662841796875, -0.0142974853515625, 0.020538330078125, -0.0153656005859375, 0.0053863525390625, -0.040374755859375, -0.04058837890625, -0.054718017578125, -0.01197052001953125, -0.031829833984375, -0.019378662109375, -0.0309295654296875, -0.048675537109375, 0.061614990234375, -0.041229248046875, 0.024078369140625, -0.0015411376953125, 0.1275634765625, 0.00004798173904418945, -0.0024566650390625, -0.01023101806640625, 0.0196533203125, 0.0057220458984375, -0.00888824462890625, -0.01373291015625, -0.04095458984375, -0.004100799560546875, 0.0061187744140625, -0.039581298828125, -0.0141754150390625, -0.0271453857421875, 0.037322998046875, 0.0144500732421875, 0.0021915435791015625, -0.0112152099609375, -0.017486572265625, 0.061431884765625, 0.0419921875, -0.01204681396484375, -0.0258941650390625, -0.005062103271484375, 0.045135498046875, -0.045440673828125, 0.035186767578125, -0.0261993408203125, -0.06793212890625, 0.042816162109375, 0.00408172607421875, -0.0138397216796875, -0.004352569580078125, 0.002819061279296875, 0.006343841552734375, -0.0638427734375, 0.01277923583984375, 0.0360107421875, 0.0206451416015625, 0.02923583984375, 0.0279693603515625, 0.06231689453125, 0.032806396484375, -0.0167083740234375, 0.029876708984375, -0.048004150390625, -0.03582763671875, -0.034088134765625, -0.07843017578125, 0.0262451171875, 0.029632568359375, 0.01161956787109375, 0.00882720947265625, 0.0182647705078125, 0.04022216796875, 0.0279998779296875, 0.01306915283203125, 0.00897979736328125, 0.040313720703125, 0.002582550048828125, -0.029937744140625, 0.02703857421875, -0.040863037109375, 0.00972747802734375, 0.00843048095703125, 0.007785797119140625, 0.0007219314575195312, -0.0243377685546875, 0.045379638671875, 0.0270233154296875, 0.050689697265625, 0.0145111083984375, -0.031494140625, -0.006877899169921875, 0.020721435546875, -0.04400634765625, -0.040496826171875, -0.003780364990234375, 0.004058837890625, 0.0172882080078125, -0.015472412109375, -0.0125274658203125, 0.027862548828125, 0.00018715858459472656, -0.0061798095703125, -0.02349853515625, -0.0261077880859375, -0.03863525390625, 0.0019073486328125, 0.035980224609375, 0.00897979736328125, -0.0244903564453125, 0.014495849609375, 0.003864288330078125, -0.029510498046875, 0.016693115234375, 0.00537109375, 0.042999267578125, -0.045806884765625, -0.052703857421875, 0.00023317337036132812, -0.002422332763671875, 0.031036376953125, -0.055511474609375, -0.03045654296875, -0.0172576904296875, -0.0135498046875, 0.032958984375, -0.00555419921875, 0.0218658447265625, -0.04193115234375, 0.0014371871948242188, -0.009674072265625, -0.00441741943359375, 0.05657958984375, 0.018280029296875, 0.01708984375, 0.0017786026000976562, -0.054931640625, -0.03704833984375, -0.02984619140625, -0.01021575927734375, -0.046600341796875, 0.0033397674560546875, 0.020477294921875, 0.040252685546875, -0.024932861328125, -0.05450439453125, -0.007572174072265625, -0.006999969482421875, 0.019989013671875, 0.052154541015625, 0.0005316734313964844, 0.0278778076171875, 0.0003139972686767578, 0.029510498046875, -0.0095062255859375, -0.040985107421875, -0.057403564453125, 0.0115966796875, -0.032562255859375, -0.11737060546875, -0.01224517822265625, 0.03668212890625, -0.0491943359375, 0.09161376953125, 0.041656494140625, 0.0114898681640625, 0.0302581787109375, -0.019256591796875, 0.009429931640625, -0.00780487060546875, -0.00846099853515625, -0.01380157470703125, -0.00016748905181884766, 0.055450439453125, 0.01093292236328125, 0.0364990234375, -0.01276397705078125, -0.0178070068359375, 0.00797271728515625, -0.00695037841796875, 0.0264892578125, -0.0025310516357421875, -0.063232421875, 0.033599853515625, 0.07159423828125, 0.028594970703125, 0.0599365234375, -0.00589752197265625, 0.034210205078125, 0.031951904296875, 0.021881103515625, -0.004093170166015625, -0.02294921875, 0.02581787109375, -0.0008759498596191406, -0.0103302001953125, 0.008880615234375, -0.021453857421875, 0.0027217864990234375, 0.052337646484375, 0.02923583984375, -0.08404541015625, 0.006633758544921875, 0.01409912109375, -0.005329132080078125, 0.01007843017578125, 0.0205230712890625, -0.0070953369140625, -0.01009368896484375, -0.01485443115234375, 0.007030487060546875, -0.023193359375, 0.00720977783203125, 0.0257110595703125, 0.0025424957275390625, -0.01384735107421875, 0.00449371337890625, -0.0029430389404296875, -0.02899169921875, 0.0004911422729492188, 0.03216552734375, -0.0150146484375, -0.006427764892578125, 0.0277099609375, -0.039886474609375, -0.0111236572265625, -0.041015625, 0.007598876953125, -0.0160980224609375, -0.021759033203125, 0.0111236572265625, -0.0120391845703125, 0.0430908203125, 0.027618408203125, 0.0060272216796875, -0.0158233642578125, 0.00035119056701660156, -0.01049041748046875, 0.0017728805541992188, -0.0216064453125, -0.009979248046875, 0.040374755859375, -0.030029296875, 0.0156707763671875, -0.00446319580078125, -0.007061004638671875, 0.00681304931640625, -0.021575927734375, 0.01184844970703125, -0.043487548828125, 0.01244354248046875, 0.0261383056640625, 0.002681732177734375, 0.034271240234375, -0.0030364990234375, 0.0237274169921875, -0.068359375, -0.044677734375, 0.0034885406494140625, -0.047210693359375, -0.0279693603515625, -0.0186767578125, -0.07647705078125, 0.140625, 0.0203094482421875, 0.03375244140625, -0.00609588623046875, 0.055206298828125, -0.035369873046875, 0.0259246826171875, -0.0186767578125, 0.0219573974609375, 0.0038585662841796875, -0.005924224853515625, -0.0085296630859375, 0.01186370849609375, -0.0080718994140625, 0.0141448974609375, 0.038543701171875, 0.021881103515625, -0.0208282470703125, 0.00200653076171875, 0.037445068359375, 0.000087738037109375, -0.0163116455078125, 0.043365478515625, 0.01311492919921875, -0.01491546630859375, 0.046478271484375, 0.0080718994140625, 0.0382080078125, 0.026580810546875, -0.00215911865234375, 0.035980224609375, 0.01082611083984375, 0.01221466064453125, -0.015869140625, 0.004665374755859375, -0.0160675048828125, -0.01277923583984375, 0.018402099609375, -0.0419921875, 0.02227783203125, 0.0157928466796875, 0.045074462890625, -0.0031070709228515625, -0.0023136138916015625, -0.016082763671875, 0.053375244140625, 0.01399993896484375, 0.0289306640625, 0.00739288330078125, 0.00643157958984375, 0.036102294921875, 0.007427215576171875, -0.0030345916748046875, 0.0247039794921875, 0.0153656005859375, 0.044189453125, 0.01511383056640625, 0.0251312255859375, -0.03216552734375, 0.03204345703125, 0.05682373046875, 0.055816650390625, -0.0557861328125, -0.038726806640625, 0.006855010986328125, 0.040283203125, 0.01403045654296875, 0.004138946533203125, 0.053192138671875, 0.005092620849609375, 0.053802490234375, -0.061065673828125, -0.00907135009765625, 0.0146942138671875, 0.033782958984375, -0.015716552734375, 0.00116729736328125, -0.034423828125, -0.036895751953125, -0.0565185546875, 0.01506805419921875, 0.0311126708984375, 0.09173583984375, 0.013641357421875, 0.07281494140625, -0.046142578125, -0.031097412109375, 0.006076812744140625, 0.00545501708984375, 0.034027099609375, -0.033477783203125, 0.039154052734375, 0.014739990234375, 0.001987457275390625, -0.003231048583984375, 0.0004916191101074219, 0.0706787109375, 0.02191162109375, 0.034820556640625, 0.04669189453125, 0.0012235641479492188, 0.082275390625, -0.0097808837890625, -0.02838134765625, -0.019561767578125, -0.0116729736328125, 0.038360595703125, -0.00557708740234375, 0.004241943359375, 0.0108489990234375, 0.047027587890625, 0.00167083740234375, 0.0303192138671875, 0.0024871826171875, -0.0255889892578125, 0.053955078125, -0.01136016845703125, 0.111083984375, 0.036651611328125, -0.03076171875, -0.0076141357421875, -0.0609130859375, -0.0220794677734375, 0.0379638671875, 0.035675048828125, 0.0085601806640625, 0.00565338134765625, -0.00394439697265625, -0.0517578125, 0.00582122802734375, 0.0307464599609375, 0.0229034423828125, 0.02471923828125, -0.009124755859375, -0.006397247314453125, -0.01187896728515625, 0.004688262939453125, 0.0281982421875, 0.00018703937530517578, -0.03289794921875, 0.047607421875, -0.0014677047729492188, -0.0135955810546875, -0.045745849609375, 0.0245819091796875, -0.03765869140625, -0.036041259765625, 0.00732421875, 0.0204925537109375, 0.004756927490234375, 0.0027828216552734375, -0.02545166015625, -0.01061248779296875, 0.0362548828125, -0.039459228515625, -0.005985260009765625, -0.018096923828125, 0.020416259765625, -0.01221466064453125, 0.06524658203125, -0.01520538330078125, 0.01183319091796875, -0.054351806640625, -0.061187744140625, 0.0615234375, 0.0272979736328125, 0.0175323486328125, 0.039581298828125, 0.01232147216796875, -0.00995635986328125, 0.036590576171875, -0.044036865234375, 0.04852294921875, 0.031341552734375, -0.0008077621459960938, -0.00820159912109375, 0.0183563232421875, -0.016845703125, -0.01131439208984375, 0.01290130615234375, 0.004146575927734375, 0.0113525390625, -0.038726806640625, -0.005832672119140625, 0.0146636962890625, 0.03216552734375, -0.03790283203125, 0.0024871826171875, -0.0007791519165039062, -0.00855255126953125, 0.0111236572265625, -0.0203857421875, -0.030364990234375, -0.028839111328125, -0.01024627685546875, 0.00628662109375, -0.019805908203125, -0.036834716796875, -0.0560302734375, 0.02301025390625, 0.02313232421875, -0.01549530029296875, -0.0156402587890625, 0.010711669921875, -0.0504150390625, 0.03448486328125, -0.025360107421875, -0.0300140380859375, 0.0192718505859375, 0.04925537109375, -0.055511474609375, -0.018463134765625, -0.0268402099609375, -0.02606201171875, -0.059783935546875, 0.049285888671875, 0.02789306640625, -0.048919677734375, -0.0249786376953125, 0.064453125, 0.03704833984375, 0.0943603515625, 0.0792236328125, -0.032318115234375, 0.00994873046875, 0.010711669921875, -0.0152435302734375, -0.041900634765625, -0.00852203369140625, -0.024078369140625, 0.0139617919921875, -0.03802490234375, 0.0167694091796875, 0.0272979736328125, -0.0305938720703125, -0.08416748046875, 0.048858642578125, -0.022979736328125, -0.019927978515625, -0.006999969482421875, -0.007579803466796875, -0.00469970703125, 0.0173187255859375, -0.0007090568542480469, -0.0231781005859375, -0.0235137939453125, 0.022369384765625, -0.010528564453125, 0.0401611328125, 0.00638580322265625, -0.0266265869140625, -0.028564453125, 0.0005359649658203125, 0.01181793212890625, -0.001007080078125, 0.01861572265625, -0.016571044921875, 0.005107879638671875, 0.028411865234375, -0.05096435546875, -0.0340576171875, -0.032073974609375, 0.00873565673828125, -0.005405426025390625, -0.026458740234375, -0.028076171875, -0.0295562744140625, 0.058258056640625, -0.005680084228515625, 0.01142120361328125, -0.01047515869140625, -0.00400543212890625, -0.0174713134765625, -0.019989013671875, -0.01416778564453125, 0.008026123046875, -0.04095458984375, -0.0034542083740234375, -0.000255584716796875, 0.02655029296875, 0.007701873779296875, -0.011566162109375, 0.023834228515625, -0.02703857421875, 0.04058837890625, -0.01326751708984375, -0.019683837890625, 0.00799560546875, -0.00301361083984375, -0.0173187255859375, -0.042633056640625, -0.01433563232421875, 0.01546478271484375, -0.05596923828125, -0.0270538330078125, -0.0024318695068359375, 0.028656005859375, -0.07281494140625, -0.00830841064453125, -0.01511383056640625, 0.041717529296875, -0.037384033203125, -0.004962921142578125, 0.00843048095703125, -0.0014438629150390625, -0.0182342529296875, -0.01087188720703125, -0.005466461181640625, 0.051025390625, -0.021759033203125, 0.08721923828125, 0.005931854248046875, -0.0218963623046875, -0.017120361328125, 0.03289794921875, -0.0209197998046875, -0.013824462890625, -0.0179290771484375, -0.0098876953125, 0.01806640625, 0.0183868408203125, 0.0009045600891113281, 0.0166473388671875, -0.0065765380859375, 0.003574371337890625, -0.00731658935546875, -0.003173828125 ]
5ef29f8195f616211e1a177cad4a241fb30dbf06
Wordpress Stackexchange Q: Getting add_rewrite_rule and add_rewrite_tag to work I am new to using add_rewrite_rule and add_rewrite_tag. I am trying to get a very basic example to work, but nothing I do seems to make it work. I want to access this URL (this works when entering this URl in directly): http://localhost/?author_name=rewrite Via this URL: http://localhost/name/rewrite I have the following code in functions.php: $wp_rewrite->flush_rules(); add_action( 'init', 'addMyRules' ); function addMyRules(){ add_rewrite_rule('^people/([^/]*)/?','index.php?author_name=$matches[1]','top'); add_rewrite_tag('%author_name%','([^&]+)'); } But I keep seeing a 404 page. Not sure what I am doing wrong. A: I simply changed it to this, and it works! add_action( 'init', 'addMyRules' ); function addMyRules(){ add_rewrite_rule('^people/([^/]*)/?','index.php?author_name=$matches[1]','top'); add_rewrite_tag('%author_name%','([^&]+)'); flush_rewrite_rules(); }
Q: Getting add_rewrite_rule and add_rewrite_tag to work I am new to using add_rewrite_rule and add_rewrite_tag. I am trying to get a very basic example to work, but nothing I do seems to make it work. I want to access this URL (this works when entering this URl in directly): http://localhost/?author_name=rewrite Via this URL: http://localhost/name/rewrite I have the following code in functions.php: $wp_rewrite->flush_rules(); add_action( 'init', 'addMyRules' ); function addMyRules(){ add_rewrite_rule('^people/([^/]*)/?','index.php?author_name=$matches[1]','top'); add_rewrite_tag('%author_name%','([^&]+)'); } But I keep seeing a 404 page. Not sure what I am doing wrong. A: I simply changed it to this, and it works! add_action( 'init', 'addMyRules' ); function addMyRules(){ add_rewrite_rule('^people/([^/]*)/?','index.php?author_name=$matches[1]','top'); add_rewrite_tag('%author_name%','([^&]+)'); flush_rewrite_rules(); }
wordpress
{ "language": "en", "length": 105, "provenance": "stackexchange_00019.jsonl.gz:443753", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139683" }
[ 0.0677490234375, -0.0184478759765625, 0.002040863037109375, -0.08758544921875, -0.0015010833740234375, 0.00322723388671875, 0.00197601318359375, 0.0166015625, -0.0469970703125, 0.037567138671875, 0.004032135009765625, 0.0267181396484375, 0.01471710205078125, -0.0203399658203125, 0.0189971923828125, -0.006137847900390625, 0.02532958984375, -0.0148773193359375, 0.005977630615234375, -0.00765228271484375, 0.0012445449829101562, 0.00650787353515625, 0.03961181640625, 0.0227508544921875, 0.040008544921875, -0.05938720703125, 0.0731201171875, -0.01264190673828125, 0.0253753662109375, -0.020233154296875, 0.0166778564453125, -0.01082611083984375, 0.030517578125, 0.03265380859375, -0.0518798828125, 0.02587890625, -0.004131317138671875, 0.00018155574798583984, 0.0006427764892578125, 0.0219268798828125, 0.04296875, -0.007293701171875, -0.016204833984375, 0.0301666259765625, -0.023956298828125, -0.05865478515625, 0.0550537109375, -0.0081024169921875, -0.0055084228515625, 0.01444244384765625, -0.0113983154296875, 0.03436279296875, -0.0251007080078125, -0.0030918121337890625, 0.0120086669921875, 0.0200653076171875, 0.0246734619140625, -0.01372528076171875, 0.004741668701171875, -0.0214080810546875, -0.0141448974609375, 0.0390625, 0.0228424072265625, 0.0389404296875, -0.0049896240234375, 0.0008711814880371094, 0.0323486328125, 0.0036830902099609375, 0.01171875, 0.01445770263671875, 0.0219879150390625, 0.002532958984375, -0.0328369140625, 0.0107879638671875, -0.01178741455078125, -0.0308074951171875, -0.005176544189453125, -0.04412841796875, 0.0056610107421875, 0.049713134765625, -0.016357421875, -0.065185546875, -0.00003236532211303711, -0.003368377685546875, 0.01528167724609375, 0.0200653076171875, -0.0180511474609375, 0.006145477294921875, -0.0537109375, -0.0123443603515625, -0.0271453857421875, -0.060272216796875, -0.04730224609375, 0.00994873046875, 0.039825439453125, -0.0244293212890625, 0.03533935546875, 0.02484130859375, 0.0189666748046875, 0.0080413818359375, 0.034576416015625, -0.0634765625, 0.05828857421875, -0.05853271484375, 0.0217437744140625, 0.078857421875, 0.0172271728515625, 0.048370361328125, 0.06494140625, -0.01515960693359375, 0.0233306884765625, 0.03472900390625, 0.016143798828125, 0.034423828125, -0.026153564453125, -0.054656982421875, -0.076171875, 0.0325927734375, -0.0009164810180664062, -0.0109405517578125, 0.01491546630859375, 0.03521728515625, -0.079345703125, 0.007354736328125, 0.0160369873046875, 0.00186920166015625, 0.01026153564453125, 0.01898193359375, 0.0122222900390625, 0.0230255126953125, -0.0002639293670654297, 0.03289794921875, -0.007717132568359375, -0.0193634033203125, -0.03387451171875, -0.01155853271484375, 0.029144287109375, -0.037078857421875, -0.006877899169921875, 0.03900146484375, -0.0019369125366210938, -0.06634521484375, -0.0256195068359375, 0.012359619140625, 0.01111602783203125, 0.024871826171875, 0.01190185546875, 0.01157379150390625, -0.01479339599609375, -0.023162841796875, 0.002262115478515625, -0.039459228515625, 0.046112060546875, 0.0009555816650390625, -0.00923919677734375, -0.022186279296875, 0.0079498291015625, -0.022979736328125, -0.0101470947265625, -0.00504302978515625, 0.033538818359375, 0.0297393798828125, 0.037261962890625, -0.026397705078125, -0.023162841796875, -0.07501220703125, -0.0645751953125, -0.0097198486328125, 0.00724029541015625, 0.0105438232421875, 0.033843994140625, 0.0309295654296875, 0.029754638671875, 0.0111846923828125, 0.00733184814453125, -0.0288238525390625, 0.00045561790466308594, 0.0302581787109375, -0.052886962890625, 0.09539794921875, 0.0299530029296875, -0.036712646484375, -0.01047515869140625, -0.007266998291015625, -0.07373046875, 0.07281494140625, 0.006378173828125, 0.11279296875, 0.0032806396484375, -0.0074462890625, 0.052581787109375, 0.01081085205078125, -0.004711151123046875, -0.0164031982421875, -0.0106201171875, -0.0183868408203125, 0.02239990234375, 0.0010824203491210938, -0.0095977783203125, 0.004566192626953125, -0.006366729736328125, 0.00885772705078125, 0.00615692138671875, -0.002872467041015625, -0.038116455078125, 0.028106689453125, -0.026092529296875, 0.04217529296875, 0.030120849609375, -0.016448974609375, 0.0196685791015625, -0.017730712890625, -0.02734375, -0.00514984130859375, -0.040252685546875, 0.053009033203125, 0.024444580078125, 0.05621337890625, 0.0226898193359375, 0.0248870849609375, 0.03582763671875, -0.01039886474609375, 0.04205322265625, 0.00801849365234375, 0.008148193359375, -0.01507568359375, -0.048309326171875, -0.034881591796875, -0.059906005859375, -0.010162353515625, -0.0650634765625, 0.0950927734375, 0.02728271484375, 0.04107666015625, -0.03692626953125, -0.01024627685546875, -0.02642822265625, -0.034912109375, 0.0012149810791015625, 0.054779052734375, 0.0430908203125, -0.0009551048278808594, -0.018280029296875, -0.006938934326171875, 0.0139617919921875, -0.03472900390625, 0.007373809814453125, -0.024383544921875, -0.021575927734375, 0.032684326171875, 0.006740570068359375, 0.01534271240234375, 0.0029659271240234375, -0.09649658203125, -0.0169525146484375, 0.043060302734375, -0.0159759521484375, 0.04022216796875, -0.050872802734375, 0.0159759521484375, -0.00994873046875, -0.039031982421875, 0.02001953125, -0.04718017578125, 0.0099945068359375, -0.01910400390625, -0.007480621337890625, -0.006336212158203125, -0.0200042724609375, -0.011260986328125, 0.0159454345703125, 0.0013332366943359375, -0.0010166168212890625, 0.034332275390625, 0.01451873779296875, -0.0330810546875, 0.004222869873046875, 0.0017366409301757812, -0.02142333984375, 0.0030975341796875, -0.00644683837890625, 0.0178070068359375, 0.01419830322265625, -0.0032634735107421875, -0.018280029296875, -0.0175933837890625, 0.006866455078125, -0.0013017654418945312, 0.039886474609375, 0.02484130859375, 0.0404052734375, 0.011016845703125, 0.01367950439453125, 0.0008311271667480469, 0.055267333984375, -0.0263519287109375, 0.000007867813110351562, -0.030914306640625, 0.044647216796875, -0.0247955322265625, 0.027557373046875, 0.067138671875, -0.01061248779296875, 0.003810882568359375, 0.01140594482421875, -0.0247802734375, 0.0094757080078125, 0.007427215576171875, 0.0126800537109375, 0.002864837646484375, -0.0526123046875, 0.022186279296875, 0.041290283203125, 0.011993408203125, 0.0298614501953125, 0.00788116455078125, -0.009368896484375, 0.043548583984375, -0.0396728515625, -0.07086181640625, 0.0164947509765625, -0.054840087890625, -0.02825927734375, 0.0124359130859375, -0.0484619140625, -0.00301361083984375, 0.03802490234375, -0.00775146484375, -0.038665771484375, -0.0404052734375, -0.0831298828125, -0.09478759765625, -0.07879638671875, 0.0182342529296875, -0.01029205322265625, 0.01374053955078125, 0.00946044921875, 0.030364990234375, -0.0022792816162109375, 0.004642486572265625, 0.0141754150390625, -0.048309326171875, -0.00904083251953125, -0.0222625732421875, -0.0233154296875, 0.038421630859375, 0.01190948486328125, -0.0030384063720703125, 0.0272064208984375, 0.047760009765625, -0.0535888671875, -0.010040283203125, -0.0184783935546875, -0.0345458984375, 0.00384521484375, 0.0053253173828125, 0.0267333984375, -0.032562255859375, 0.0433349609375, -0.0543212890625, 0.0021839141845703125, 0.00273895263671875, 0.0013151168823242188, -0.0022830963134765625, -0.008453369140625, -0.0284423828125, -0.00809478759765625, 0.0267333984375, 0.005977630615234375, 0.01088714599609375, 0.0301513671875, -0.01122283935546875, -0.006378173828125, -0.00921630859375, 0.00128936767578125, -0.01392364501953125, 0.0196685791015625, -0.0038280487060546875, 0.021270751953125, 0.0148773193359375, 0.003948211669921875, -0.005100250244140625, -0.0105438232421875, -0.055572509765625, -0.04437255859375, 0.031219482421875, -0.05889892578125, -0.01904296875, -0.05078125, 0.003696441650390625, -0.044891357421875, 0.007442474365234375, 0.0031375885009765625, -0.0214691162109375, -0.0286102294921875, 0.00035858154296875, -0.0570068359375, -0.036468505859375, 0.01336669921875, 0.0030536651611328125, -0.0460205078125, 0.00806427001953125, -0.01528167724609375, -0.0104827880859375, -0.0029277801513671875, -0.042938232421875, -0.00473785400390625, -0.053131103515625, 0.031341552734375, -0.0241851806640625, 0.008544921875, 0.03485107421875, -0.01418304443359375, 0.020751953125, -0.040130615234375, -0.007450103759765625, -0.09295654296875, -0.03515625, 0.0156707763671875, 0.07232666015625, -0.0006241798400878906, -0.04736328125, -0.013763427734375, 0.07000732421875, -0.01226043701171875, -0.0491943359375, 0.0229339599609375, 0.007617950439453125, -0.0164031982421875, 0.038299560546875, -0.02081298828125, -0.001682281494140625, 0.0107574462890625, 0.00859832763671875, -0.041229248046875, 0.01399993896484375, -0.0292816162109375, 0.01045989990234375, 0.00945281982421875, -0.042999267578125, -0.051177978515625, -0.03533935546875, -0.01308441162109375, 0.00931549072265625, -0.0098724365234375, -0.01153564453125, -0.036590576171875, -0.04925537109375, 0.0408935546875, -0.0478515625, -0.009033203125, -0.0112457275390625, 0.071044921875, 0.021820068359375, -0.0163116455078125, 0.0679931640625, 0.0265350341796875, 0.039337158203125, -0.020782470703125, 0.029052734375, 0.028076171875, -0.0154571533203125, 0.018768310546875, 0.0009565353393554688, 0.0123443603515625, -0.0202789306640625, 0.0223541259765625, -0.01277923583984375, -0.0229034423828125, 0.025665283203125, -0.03131103515625, 0.021270751953125, 0.06072998046875, -0.0128936767578125, 0.02154541015625, 0.016693115234375, 0.00384521484375, -0.044281005859375, 0.00101470947265625, -0.00562286376953125, -0.0308837890625, 0.004421234130859375, -0.002002716064453125, 0.0247344970703125, 0.009735107421875, 0.0079803466796875, 0.00258636474609375, -0.00452423095703125, 0.00963592529296875, -0.006622314453125, -0.01207733154296875, -0.0258636474609375, 0.00681304931640625, 0.0087127685546875, -0.0030059814453125, 0.00643157958984375, -0.007843017578125, 0.06854248046875, 0.01366424560546875, -0.04693603515625, 0.020904541015625, -0.02935791015625, 0.00930023193359375, 0.003955841064453125, 0.0192108154296875, -0.00519561767578125, 0.00008082389831542969, 0.0146026611328125, 0.039764404296875, 0.0136871337890625, 0.02587890625, -0.004833221435546875, -0.006595611572265625, -0.0022487640380859375, -0.01324462890625, -0.0205535888671875, 0.0823974609375, -0.034332275390625, 0.02252197265625, 0.00762939453125, 0.0016021728515625, 0.005725860595703125, 0.038970947265625, 0.017974853515625, -0.01023101806640625, 0.01224517822265625, 0.0100860595703125, 0.024169921875, -0.017852783203125, 0.023162841796875, 0.020416259765625, 0.04974365234375, 0.054931640625, -0.01328277587890625, -0.023468017578125, -0.050567626953125, -0.0198211669921875, -0.004116058349609375, -0.0194091796875, -0.0170135498046875, -0.032928466796875, -0.0186614990234375, 0.016021728515625, -0.004169464111328125, -0.028900146484375, 0.0450439453125, -0.040069580078125, 0.01922607421875, 0.07525634765625, -0.0149688720703125, -0.01050567626953125, -0.01451873779296875, 0.004283905029296875, -0.017242431640625, 0.048614501953125, -0.007289886474609375, 0.00995635986328125, -0.06060791015625, -0.023681640625, 0.0684814453125, -0.009368896484375, 0.01229095458984375, -0.003322601318359375, -0.0120086669921875, 0.013031005859375, -0.0181121826171875, 0.05078125, 0.0193634033203125, -0.0149383544921875, 0.00795745849609375, -0.0577392578125, 0.0019588470458984375, 0.035003662109375, -0.00199127197265625, 0.0026493072509765625, -0.01421356201171875, -0.01358795166015625, 0.00677490234375, -0.0280303955078125, -0.00243377685546875, -0.017974853515625, 0.0257720947265625, -0.00037217140197753906, 0.0078582763671875, 0.00855255126953125, 0.053314208984375, -0.00914764404296875, 0.039398193359375, 0.027252197265625, 0.01377105712890625, -0.02545166015625, -0.0195770263671875, 0.00801849365234375, -0.037109375, -0.0189361572265625, -0.01605224609375, -0.0217437744140625, 0.0216522216796875, 0.04248046875, 0.007415771484375, 0.013702392578125, -0.01126861572265625, 0.005588531494140625, -0.0142822265625, 0.039581298828125, -0.0114288330078125, 0.0029811859130859375, 0.0217132568359375, 0.01355743408203125, 0.02960205078125, -0.05682373046875, 0.00893402099609375, -0.02069091796875, -0.01027679443359375, 0.00039315223693847656, -0.00543212890625, -0.054412841796875, 0.025634765625, 0.08123779296875, 0.03253173828125, 0.06793212890625, 0.01474761962890625, 0.036712646484375, 0.051116943359375, -0.028778076171875, -0.0022678375244140625, 0.04296875, 0.0048370361328125, -0.01373291015625, 0.03570556640625, 0.0205078125, 0.016357421875, 0.001068115234375, 0.031890869140625, 0.0166778564453125, -0.07672119140625, 0.0072174072265625, -0.01129913330078125, -0.01279449462890625, 0.0019893646240234375, 0.0197601318359375, -0.01352691650390625, 0.007659912109375, 0.0139923095703125, -0.00806427001953125, -0.0117645263671875, 0.0209808349609375, 0.044158935546875, 0.0034656524658203125, -0.045867919921875, 0.053985595703125, -0.005565643310546875, 0.007160186767578125, -0.0148162841796875, -0.0072021484375, -0.0263671875, 0.0246124267578125, -0.0046234130859375, 0.01055145263671875, -0.01139068603515625, 0.0145263671875, 0.046905517578125, -0.06915283203125, -0.0045013427734375, -0.0011548995971679688, -0.0092010498046875, -0.005580902099609375, 0.022613525390625, -0.01953125, -0.0190887451171875, 0.0025920867919921875, -0.042266845703125, 0.031341552734375, -0.0207061767578125, -0.022979736328125, -0.02947998046875, 0.016357421875, 0.00412750244140625, -0.003856658935546875, -0.026641845703125, -0.0024852752685546875, -0.01457977294921875, 0.025390625, -0.023895263671875, -0.0212554931640625, 0.0015497207641601562, 0.017791748046875, 0.0276336669921875, 0.0136566162109375, -0.01338958740234375, -0.03466796875, -0.043853759765625, 0.005535125732421875, -0.0740966796875, 0.05328369140625, 0.00800323486328125, -0.07904052734375, 0.050262451171875, 0.0084228515625, 0.053253173828125, 0.011932373046875, 0.004100799560546875, -0.015350341796875, -0.0249786376953125, -0.04473876953125, 0.0518798828125, 0.0167999267578125, 0.0199737548828125, -0.064697265625, -0.01175689697265625, 0.0012140274047851562, 0.032806396484375, 0.0675048828125, 0.01029205322265625, -0.0298614501953125, -0.02545166015625, 0.00485992431640625, -0.014984130859375, -0.04449462890625, 0.043914794921875, 0.00043010711669921875, -0.039093017578125, 0.0145416259765625, -0.02294921875, 0.01898193359375, -0.04608154296875, 0.0032062530517578125, 0.01158905029296875, -0.00337982177734375, -0.01270294189453125, -0.032989501953125, 0.0007271766662597656, -0.036529541015625, -0.0186920166015625, 0.0227508544921875, -0.036773681640625, -0.0030994415283203125, 0.03076171875, 0.0297088623046875, -0.031890869140625, -0.0430908203125, -0.0151519775390625, 0.0413818359375, 0.04058837890625, 0.01739501953125, 0.028106689453125, 0.022979736328125, 0.04632568359375, 0.018402099609375, 0.0206756591796875, 0.0151824951171875, 0.01113128662109375, 0.054351806640625, 0.0221405029296875, 0.03680419921875, -0.0202484130859375, 0.007785797119140625, 0.0396728515625, 0.06927490234375, -0.035369873046875, -0.0164031982421875, -0.01461029052734375, -0.006206512451171875, 0.01477813720703125, -0.024322509765625, 0.0283355712890625, -0.004978179931640625, -0.01227569580078125, -0.0161285400390625, -0.01678466796875, -0.0045318603515625, 0.00641632080078125, -0.01432037353515625, -0.01036834716796875, 0.0033054351806640625, 0.01898193359375, -0.0211334228515625, -0.011932373046875, -0.01142120361328125, 0.031951904296875, 0.030792236328125, 0.01202392578125, 0.0098114013671875, 0.001621246337890625, -0.01140594482421875, 0.053314208984375, 0.0088653564453125, 0.01030731201171875, -0.061798095703125, -0.03814697265625, 0.00479888916015625, 0.052490234375, 0.030364990234375, 0.0309906005859375, 0.0249786376953125, -0.010955810546875, -0.0164031982421875, 0.01708984375, 0.04974365234375, -0.0347900390625, 0.04864501953125, -0.0244293212890625, 0.0389404296875, -0.02886962890625, -0.0120697021484375, -0.04534912109375, 0.0350341796875, -0.01070404052734375, -0.01019287109375, -0.01107025146484375, 0.0023937225341796875, -0.039459228515625, 0.03424072265625, 0.00966644287109375, 0.04071044921875, 0.017486572265625, -0.0166473388671875, 0.00968170166015625, -0.0269317626953125, -0.051513671875, 0.0186309814453125, 0.043670654296875, -0.0012979507446289062, 0.0204010009765625, -0.00225067138671875, 0.02001953125, 0.00621795654296875, 0.0050506591796875, -0.0234527587890625, 0.024993896484375, 0.039154052734375, -0.0017461776733398438, -0.04302978515625, -0.023468017578125, 0.00421905517578125, 0.023223876953125, 0.01218414306640625, 0.1197509765625, -0.04437255859375, -0.00896453857421875, -0.0013484954833984375, 0.022735595703125, -0.03326416015625, 0.002346038818359375, 0.02459716796875, -0.03369140625, -0.023284912109375, 0.0019893646240234375, -0.031494140625, 0.038421630859375, 0.0211334228515625, -0.03033447265625, 0.040924072265625, -0.0038318634033203125, -0.001003265380859375, -0.042724609375, 0.01229095458984375, -0.04217529296875, -0.08026123046875, -0.045379638671875, 0.004238128662109375, -0.02166748046875, -0.007171630859375, -0.0027980804443359375, 0.04913330078125, -0.0009245872497558594, 0.00738525390625, 0.0011882781982421875, -0.0252838134765625, -0.015899658203125, 0.00960540771484375, 0.00127410888671875, -0.033294677734375, 0.021942138671875, -0.016357421875, -0.0175933837890625, 0.01201629638671875, 0.02044677734375, -0.004810333251953125, -0.002742767333984375, -0.019866943359375, -0.025115966796875, 0.01418304443359375, 0.0181732177734375, -0.0069732666015625, -0.043182373046875, 0.0037174224853515625, -0.0166778564453125, 0.0069427490234375, -0.01849365234375, 0.01605224609375, -0.0019359588623046875, 0.017608642578125, 0.0372314453125, -0.0179443359375, -0.04150390625, 0.033416748046875, -0.0232391357421875, -0.017669677734375, -0.047576904296875, 0.0280609130859375, -0.033721923828125, 0.08050537109375, -0.0738525390625, -0.032623291015625, 0.004322052001953125, 0.0083770751953125, -0.057830810546875, 0.00821685791015625, -0.054107666015625, -0.0263214111328125, -0.0455322265625, 0.0012979507446289062, 0.04608154296875, -0.0029773712158203125, -0.0021686553955078125, -0.01224517822265625, 0.003986358642578125, 0.055938720703125, -0.08367919921875, -0.01690673828125, 0.0205230712890625, -0.007076263427734375, -0.0212249755859375, -0.06536865234375, 0.0012483596801757812, -0.0712890625, -0.015472412109375, -0.00795745849609375, 0.01039886474609375, 0.034423828125, -0.0194244384765625, -0.040557861328125, 0.01251983642578125, 0.0135040283203125, -0.0352783203125, -0.045867919921875, -0.033416748046875, -0.00798797607421875, 0.0199737548828125, -0.0202178955078125, -0.0191802978515625, -0.040679931640625, 0.04876708984375, -0.0014753341674804688, 0.040985107421875, -0.00262451171875, 0.00383758544921875, -0.02008056640625, -0.007488250732421875, -0.014373779296875, -0.026824951171875, 0.054931640625, -0.035400390625, 0.08221435546875, 0.07293701171875, -0.00824737548828125, 0.07562255859375, 0.0027370452880859375, -0.077880859375, 0.01451873779296875, -0.062469482421875, -0.048492431640625, -0.0640869140625, 0.06256103515625, -0.032623291015625, 0.01381683349609375, 0.01141357421875, -0.0019702911376953125, -0.01383209228515625, -0.051910400390625, -0.0198211669921875, 0.0333251953125, -0.0543212890625, -0.0101318359375, -0.0224761962890625, -0.01885986328125, -0.043548583984375, 0.016021728515625, -0.046356201171875, -0.00036334991455078125, 0.01103973388671875, -0.01085662841796875, 0.0157012939453125, 0.02740478515625, 0.06494140625, -0.0523681640625, -0.042755126953125, -0.0006508827209472656, 0.01241302490234375, -0.006153106689453125, -0.0703125, -0.01190185546875, 0.0299835205078125, -0.002197265625, -0.0087432861328125, 0.0185089111328125, 0.026397705078125, 0.0004248619079589844, 0.0177001953125, -0.013397216796875, 0.0209197998046875, -0.0183868408203125, 0.00772857666015625, -0.0140533447265625, 0.07598876953125, 0.020965576171875, 0.07867431640625, -0.042755126953125, -0.0112457275390625, -0.0189208984375, 0.0090789794921875, -0.033447265625, 0.042724609375, 0.0167236328125, 0.0016813278198242188, -0.00762939453125, 0.01447296142578125, -0.0074005126953125, -0.06036376953125, 0.0181884765625, -0.050384521484375, 0.03338623046875, 0.0183258056640625 ]
12145f4766afc26e86d465f340059f7ce1cf0cdf
Wordpress Stackexchange Q: Plugin not showing in dashboard I've seen many other related questions, but all of them are resolved with just adding the name format at the top of the plugin main PHP file, and/or manually downloading and extracting the plugin, but none of those answers worked for me. I'm talking about the Wordpress Users Plugin. After downloading and extracting it in wp-content/plugins/ directory, I can't find it in the dashboard list. I've checked that the main file (wp-users.php) is placed at the main path, and it starts with the plugin name: <?php /* Plugin Name: WordPress Users Plugin URI: http://kempwire.com/wordpress-users-plugin ... I'm confused about what can be happening. Any idea? A: If the plugin headers are correct, then the only option that comes to my mind is that the owner and permissions of the plugin file or its directory (if it is in one) are incorrect and WordPress cannot read the plugin file. Other than simply being logically important, if you check the source you can see that the Core specifically checks whether the plugin files are readable. See the following for the appropriate settings: http://codex.wordpress.org/Changing_File_Permissions http://codex.wordpress.org/Hardening_WordPress https://wordpress.stackexchange.com/a/96454/21376
Q: Plugin not showing in dashboard I've seen many other related questions, but all of them are resolved with just adding the name format at the top of the plugin main PHP file, and/or manually downloading and extracting the plugin, but none of those answers worked for me. I'm talking about the Wordpress Users Plugin. After downloading and extracting it in wp-content/plugins/ directory, I can't find it in the dashboard list. I've checked that the main file (wp-users.php) is placed at the main path, and it starts with the plugin name: <?php /* Plugin Name: WordPress Users Plugin URI: http://kempwire.com/wordpress-users-plugin ... I'm confused about what can be happening. Any idea? A: If the plugin headers are correct, then the only option that comes to my mind is that the owner and permissions of the plugin file or its directory (if it is in one) are incorrect and WordPress cannot read the plugin file. Other than simply being logically important, if you check the source you can see that the Core specifically checks whether the plugin files are readable. See the following for the appropriate settings: http://codex.wordpress.org/Changing_File_Permissions http://codex.wordpress.org/Hardening_WordPress https://wordpress.stackexchange.com/a/96454/21376 A: Check the permissions on the files within the plugin directory, starting with the main php file. At a minimum the permissions should be 0644 for Wordpress to read the file.
wordpress
{ "language": "en", "length": 219, "provenance": "stackexchange_00019.jsonl.gz:443760", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139700" }
[ 0.06915283203125, -0.00814056396484375, -0.0074310302734375, 0.01873779296875, 0.0018548965454101562, -0.050445556640625, 0.0631103515625, -0.04754638671875, -0.02239990234375, 0.04620361328125, -0.001140594482421875, 0.0396728515625, -0.01306915283203125, 0.0034809112548828125, -0.0309906005859375, -0.0287017822265625, 0.02239990234375, 0.0076751708984375, 0.05133056640625, 0.01300048828125, 0.03515625, 0.0310516357421875, 0.023651123046875, 0.00827789306640625, 0.002147674560546875, 0.006961822509765625, 0.08343505859375, -0.0362548828125, 0.00804901123046875, -0.0239410400390625, 0.0086212158203125, -0.00769805908203125, 0.004711151123046875, 0.03717041015625, -0.047027587890625, -0.01019287109375, 0.0147857666015625, -0.004302978515625, -0.00583648681640625, 0.04180908203125, 0.0265960693359375, 0.00331878662109375, -0.0234222412109375, 0.056671142578125, -0.005588531494140625, -0.09674072265625, 0.056884765625, -0.03253173828125, 0.04327392578125, 0.00601959228515625, 0.00824737548828125, 0.04913330078125, 0.02630615234375, -0.01812744140625, -0.01708984375, 0.00017559528350830078, -0.041717529296875, 0.062469482421875, 0.0022525787353515625, 0.0157318115234375, 0.0076751708984375, 0.01434326171875, 0.0035076141357421875, -0.008331298828125, 0.0006346702575683594, -0.0406494140625, -0.0120391845703125, 0.00666046142578125, 0.007724761962890625, 0.018829345703125, 0.030181884765625, 0.02606201171875, 0.004547119140625, 0.0005340576171875, -0.004978179931640625, -0.0255126953125, -0.00496673583984375, -0.041229248046875, 0.033538818359375, 0.00601959228515625, -0.00849151611328125, -0.03375244140625, -0.039306640625, 0.04010009765625, -0.00649261474609375, 0.07843017578125, -0.00676727294921875, -0.0275726318359375, 0.0198211669921875, 0.03216552734375, -0.0042266845703125, -0.00806427001953125, 0.0472412109375, 0.045928955078125, -0.0217742919921875, -0.0012063980102539062, 0.01136016845703125, 0.05914306640625, -0.019989013671875, 0.008392333984375, -0.00867462158203125, -0.02978515625, -0.01971435546875, -0.013702392578125, -0.00534820556640625, 0.04754638671875, 0.0161895751953125, 0.03570556640625, 0.005817413330078125, 0.00955963134765625, 0.0040130615234375, 0.0088348388671875, -0.044036865234375, -0.09588623046875, 0.01459503173828125, 0.0389404296875, -0.031890869140625, 0.002414703369140625, 0.02557373046875, -0.025299072265625, -0.0151519775390625, 0.02337646484375, -0.0732421875, -0.00913238525390625, -0.021881103515625, -0.038360595703125, 0.005794525146484375, 0.031219482421875, -0.03814697265625, 0.01288604736328125, -0.011993408203125, -0.005260467529296875, 0.019195556640625, 0.034881591796875, -0.00047898292541503906, -0.028045654296875, -0.01255035400390625, -0.022430419921875, -0.0198211669921875, 0.01450347900390625, -0.029998779296875, -0.0218048095703125, 0.033538818359375, -0.0511474609375, -0.00785064697265625, 0.00939178466796875, 0.018463134765625, 0.0148468017578125, -0.0087738037109375, -0.035797119140625, -0.0002130270004272461, -0.00853729248046875, 0.020751953125, 0.0141143798828125, 0.03363037109375, -0.0035495758056640625, 0.05133056640625, -0.04345703125, -0.010345458984375, -0.0200653076171875, -0.005401611328125, -0.024017333984375, 0.01265716552734375, 0.0056915283203125, -0.00021719932556152344, 0.0208892822265625, -0.01702880859375, 0.0138397216796875, 0.00992584228515625, 0.00980377197265625, -0.0163421630859375, 0.01654052734375, -0.0031757354736328125, 0.0283660888671875, 0.027099609375, 0.0247955322265625, -0.007232666015625, 0.029754638671875, 0.01739501953125, 0.02459716796875, -0.0155181884765625, -0.0361328125, 0.0460205078125, -0.0114593505859375, -0.0203399658203125, -0.020538330078125, 0.01123809814453125, 0.00885009765625, -0.005397796630859375, -0.002101898193359375, 0.03118896484375, 0.0357666015625, -0.01702880859375, 0.01947021484375, -0.0233154296875, -0.0252685546875, 0.0255279541015625, 0.0262603759765625, -0.003543853759765625, 0.0057373046875, -0.01456451416015625, -0.01280975341796875, 0.013336181640625, -0.0411376953125, -0.0699462890625, 0.0030994415283203125, -0.029632568359375, 0.050323486328125, 0.04534912109375, 0.00705718994140625, -0.00350189208984375, 0.00939178466796875, -0.021728515625, -0.0239105224609375, -0.06365966796875, 0.0145721435546875, 0.005481719970703125, 0.047210693359375, 0.01953125, 0.043304443359375, 0.01163482666015625, 0.00943756103515625, 0.0235748291015625, 0.00662994384765625, -0.0028228759765625, 0.02398681640625, -0.030120849609375, 0.01421356201171875, 0.02532958984375, 0.01479339599609375, 0.06201171875, 0.005863189697265625, 0.0316162109375, 0.053375244140625, -0.025054931640625, -0.01678466796875, -0.01129913330078125, -0.051116943359375, 0.017791748046875, 0.033660888671875, 0.0217437744140625, 0.039794921875, -0.0287933349609375, -0.01088714599609375, 0.041473388671875, -0.0767822265625, -0.0177154541015625, 0.0121002197265625, 0.01461029052734375, 0.053192138671875, -0.005329132080078125, 0.0106201171875, 0.01039886474609375, -0.0016851425170898438, -0.0010862350463867188, 0.03759765625, -0.03436279296875, -0.00238037109375, -0.02752685546875, -0.0021533966064453125, 0.00681304931640625, -0.05242919921875, 0.0067901611328125, -0.03619384765625, 0.00276947021484375, -0.00865936279296875, 0.0188446044921875, 0.032501220703125, 0.004962921142578125, -0.041839599609375, 0.007434844970703125, 0.026336669921875, -0.0004906654357910156, 0.05938720703125, 0.03289794921875, 0.022308349609375, -0.015350341796875, -0.034454345703125, 0.010009765625, 0.0487060546875, 0.007415771484375, -0.0186004638671875, -0.044036865234375, 0.0014467239379882812, 0.0214996337890625, -0.033050537109375, 0.0141143798828125, 0.04742431640625, 0.010711669921875, 0.00855255126953125, 0.032867431640625, 0.01009368896484375, 0.0009541511535644531, 0.0240936279296875, -0.0231781005859375, -0.0035800933837890625, 0.0097198486328125, -0.03936767578125, 0.03302001953125, -0.0213165283203125, 0.0489501953125, 0.0794677734375, 0.033935546875, -0.020355224609375, 0.006740570068359375, -0.01058197021484375, 0.002628326416015625, -0.0007395744323730469, -0.0010223388671875, -0.03515625, 0.00862884521484375, 0.04766845703125, 0.0281524658203125, 0.049713134765625, -0.01535797119140625, -0.052276611328125, -0.03564453125, 0.034027099609375, -0.097900390625, -0.09228515625, -0.05889892578125, -0.04913330078125, 0.00811004638671875, -0.00988006591796875, -0.0272216796875, 0.00955963134765625, 0.0134429931640625, 0.01288604736328125, -0.023590087890625, -0.047576904296875, -0.043243408203125, -0.07513427734375, -0.0667724609375, 0.0178070068359375, 0.007709503173828125, 0.008392333984375, 0.006237030029296875, 0.002277374267578125, -0.03363037109375, -0.07177734375, -0.04925537109375, 0.026580810546875, 0.006710052490234375, -0.01027679443359375, 0.0015430450439453125, -0.00681304931640625, 0.0058746337890625, 0.0028591156005859375, 0.0308990478515625, 0.037628173828125, -0.031951904296875, -0.00992584228515625, 0.006927490234375, -0.07879638671875, -0.006561279296875, 0.00684356689453125, -0.021881103515625, -0.0369873046875, 0.01021575927734375, -0.06689453125, 0.007091522216796875, -0.0008425712585449219, -0.0157623291015625, 0.0187530517578125, -0.028106689453125, -0.013916015625, -0.01229095458984375, 0.0185699462890625, 0.01392364501953125, 0.01230621337890625, -0.0168304443359375, 0.03173828125, -0.0220947265625, -0.01065826416015625, -0.0013370513916015625, -0.01285552978515625, 0.03302001953125, -0.02142333984375, -0.0200347900390625, -0.01203155517578125, -0.0012664794921875, -0.004962921142578125, 0.0019464492797851562, -0.017974853515625, -0.044036865234375, 0.051055908203125, -0.00287628173828125, -0.006343841552734375, -0.034454345703125, -0.0304412841796875, -0.01552581787109375, 0.05035400390625, -0.039703369140625, -0.0106048583984375, 0.021820068359375, 0.024078369140625, -0.065673828125, 0.00028443336486816406, -0.08819580078125, -0.0130462646484375, -0.08929443359375, -0.0259552001953125, -0.0013513565063476562, -0.047088623046875, 0.0232086181640625, -0.00957489013671875, -0.04132080078125, -0.0367431640625, 0.0119476318359375, -0.005977630615234375, 0.0235443115234375, -0.0184326171875, 0.00738525390625, -0.0131988525390625, 0.01020050048828125, -0.03424072265625, -0.0771484375, -0.036956787109375, -0.0145263671875, 0.07147216796875, 0.036651611328125, -0.057861328125, -0.0294647216796875, 0.043975830078125, -0.0042877197265625, -0.0027313232421875, 0.0240478515625, 0.002246856689453125, 0.0180206298828125, 0.048187255859375, 0.0289459228515625, 0.01264190673828125, -0.0033512115478515625, -0.00530242919921875, -0.0386962890625, -0.005329132080078125, -0.01342010498046875, -0.0274658203125, 0.035980224609375, -0.0421142578125, -0.056732177734375, -0.049346923828125, -0.0283203125, -0.011993408203125, -0.00861358642578125, -0.00765228271484375, -0.052276611328125, -0.05303955078125, 0.0435791015625, -0.02276611328125, 0.0041046142578125, 0.0302581787109375, 0.067626953125, -0.003681182861328125, -0.0159759521484375, -0.07586669921875, 0.0036144256591796875, 0.035400390625, 0.032196044921875, 0.02972412109375, 0.0181427001953125, -0.023468017578125, 0.056060791015625, 0.020233154296875, 0.03009033203125, -0.051727294921875, 0.015777587890625, -0.007396697998046875, -0.035400390625, 0.042266845703125, 0.015472412109375, 0.0186767578125, -0.01355743408203125, -0.00878143310546875, -0.003086090087890625, 0.0105438232421875, 0.01119232177734375, -0.004566192626953125, 0.0274200439453125, 0.0015745162963867188, -0.061767578125, 0.01154327392578125, -0.052764892578125, 0.0298614501953125, 0.01605224609375, 0.0003337860107421875, 0.023193359375, 0.01461029052734375, -0.0096435546875, 0.0268402099609375, -0.001544952392578125, -0.00565338134765625, 0.01044464111328125, 0.052490234375, -0.00824737548828125, 0.00853729248046875, -0.021026611328125, 0.06646728515625, 0.005825042724609375, -0.033538818359375, 0.0267181396484375, -0.01861572265625, 0.056915283203125, 0.0206756591796875, 0.0281524658203125, 0.026031494140625, 0.0224609375, 0.002773284912109375, -0.01189422607421875, 0.01033782958984375, 0.0160980224609375, -0.028717041015625, 0.0162811279296875, -0.01334381103515625, -0.005954742431640625, 0.01482391357421875, 0.0343017578125, -0.032958984375, 0.038299560546875, 0.00734710693359375, 0.031463623046875, 0.00043082237243652344, 0.025970458984375, -0.006122589111328125, 0.025054931640625, -0.01270294189453125, 0.01580810546875, -0.00495147705078125, -0.033050537109375, 0.006748199462890625, -0.0389404296875, 0.0128021240234375, -0.005184173583984375, -0.0257720947265625, 0.05712890625, -0.0372314453125, -0.003681182861328125, 0.032684326171875, -0.0494384765625, -0.056976318359375, -0.031982421875, 0.04290771484375, 0.060882568359375, -0.03271484375, -0.005954742431640625, -0.0181884765625, -0.0262451171875, -0.01220703125, 0.058685302734375, -0.05584716796875, 0.01311492919921875, 0.0207366943359375, 0.0218505859375, 0.00047135353088378906, 0.0116424560546875, -0.002895355224609375, -0.0174560546875, -0.015960693359375, -0.006023406982421875, 0.058135986328125, -0.016021728515625, 0.0660400390625, -0.062103271484375, -0.003696441650390625, -0.044036865234375, 0.0011920928955078125, 0.058807373046875, 0.06097412109375, -0.049560546875, 0.00933074951171875, -0.01129913330078125, -0.004993438720703125, 0.035797119140625, -0.00879669189453125, -0.031585693359375, -0.0158538818359375, 0.0159759521484375, 0.0219573974609375, -0.014129638671875, -0.018157958984375, -0.0238800048828125, 0.0214996337890625, 0.01555633544921875, 0.044036865234375, -0.004848480224609375, 0.0452880859375, 0.0272064208984375, 0.056915283203125, 0.024322509765625, 0.0255279541015625, -0.03570556640625, -0.0231475830078125, 0.013671875, 0.002483367919921875, -0.00614166259765625, -0.0129852294921875, 0.0269317626953125, -0.005615234375, 0.037384033203125, -0.005390167236328125, 0.008697509765625, -0.0020885467529296875, 0.00616455078125, 0.0016326904296875, 0.033477783203125, 0.033966064453125, -0.0185699462890625, 0.05596923828125, -0.01605224609375, 0.01451873779296875, 0.01520538330078125, -0.0184326171875, 0.017333984375, 0.0031147003173828125, 0.01044464111328125, -0.00015437602996826172, -0.056976318359375, 0.085205078125, 0.0550537109375, -0.0098114013671875, 0.0293121337890625, 0.049163818359375, 0.0148773193359375, -0.0308074951171875, 0.0171356201171875, 0.023651123046875, -0.01284027099609375, 0.051544189453125, 0.005863189697265625, -0.032196044921875, 0.0291748046875, -0.046417236328125, 0.0156402587890625, 0.0271453857421875, 0.021942138671875, -0.056427001953125, 0.01358795166015625, -0.023590087890625, -0.004741668701171875, 0.053131103515625, -0.0135650634765625, -0.0179290771484375, -0.0506591796875, 0.08050537109375, -0.01113128662109375, 0.01116180419921875, 0.048675537109375, 0.00328826904296875, -0.01412200927734375, -0.0092315673828125, 0.036163330078125, 0.0189971923828125, -0.0223236083984375, 0.006439208984375, 0.0017290115356445312, -0.00926971435546875, 0.010528564453125, 0.014373779296875, 0.0302581787109375, -0.025238037109375, -0.047515869140625, 0.0127410888671875, -0.01529693603515625, -0.046661376953125, 0.01024627685546875, -0.0035266876220703125, 0.069091796875, 0.0306243896484375, 0.00928497314453125, -0.015350341796875, -0.00919342041015625, 0.0188140869140625, 0.054534912109375, -0.044158935546875, -0.01314544677734375, 0.04302978515625, -0.046783447265625, 0.006805419921875, 0.0236968994140625, -0.00830841064453125, -0.040802001953125, -0.07489013671875, 0.08636474609375, 0.0017690658569335938, -0.01885986328125, -0.005764007568359375, 0.021942138671875, -0.0210113525390625, 0.0166168212890625, 0.02850341796875, -0.023956298828125, 0.0136566162109375, 0.0295562744140625, 0.0258331298828125, -0.00759124755859375, 0.044952392578125, -0.0765380859375, 0.04840087890625, -0.02276611328125, 0.05609130859375, 0.0032100677490234375, -0.00789642333984375, -0.00328826904296875, -0.03173828125, -0.021728515625, 0.04583740234375, -0.033294677734375, 0.05755615234375, -0.0382080078125, -0.01013946533203125, 0.01483154296875, 0.02764892578125, 0.0478515625, 0.0164031982421875, -0.039520263671875, -0.0298004150390625, -0.00479888916015625, -0.001537322998046875, -0.0289306640625, 0.05743408203125, 0.0129241943359375, 0.0258941650390625, 0.0005388259887695312, 0.001415252685546875, 0.051849365234375, -0.07000732421875, -0.030548095703125, 0.019012451171875, -0.0023860931396484375, -0.004261016845703125, -0.0206146240234375, 0.0173797607421875, -0.016937255859375, -0.017242431640625, 0.016815185546875, -0.0270843505859375, 0.00782012939453125, 0.0280303955078125, 0.034027099609375, -0.01493072509765625, -0.015838623046875, -0.0161590576171875, 0.048553466796875, 0.0178375244140625, -0.00804901123046875, -0.0207672119140625, 0.004428863525390625, -0.038726806640625, -0.0050506591796875, -0.00011080503463745117, 0.049163818359375, -0.0250244140625, 0.02423095703125, 0.034515380859375, 0.0194091796875, -0.002887725830078125, 0.023712158203125, 0.057220458984375, 0.046875, -0.036712646484375, -0.0517578125, -0.00731658935546875, -0.00893402099609375, -0.00119781494140625, 0.03363037109375, -0.0185394287109375, 0.0158233642578125, 0.065673828125, -0.04327392578125, -0.006114959716796875, -0.0253753662109375, 0.0243682861328125, -0.03192138671875, -0.03839111328125, 0.027801513671875, -0.004825592041015625, -0.0006842613220214844, 0.0037860870361328125, 0.00021708011627197266, -0.016510009765625, -0.020599365234375, 0.0300140380859375, 0.01611328125, 0.00980377197265625, -0.0016574859619140625, 0.0262451171875, -0.00722503662109375, 0.0012083053588867188, -0.058929443359375, -0.0626220703125, 0.0138092041015625, 0.060333251953125, 0.0023555755615234375, -0.02496337890625, 0.0003223419189453125, 0.0259552001953125, -0.0153656005859375, -0.02197265625, -0.01971435546875, -0.0031337738037109375, -0.01291656494140625, 0.004638671875, 0.0175323486328125, 0.0029354095458984375, -0.00601959228515625, -0.0166015625, 0.054473876953125, 0.0056915283203125, -0.038238525390625, 0.0282745361328125, -0.01142120361328125, -0.0295562744140625, 0.0013685226440429688, -0.049713134765625, 0.02642822265625, -0.0182037353515625, -0.0208740234375, 0.01093292236328125, -0.0254974365234375, -0.02618408203125, -0.02239990234375, 0.015533447265625, 0.00762939453125, 0.0026340484619140625, 0.03387451171875, 0.0143890380859375, -0.0010051727294921875, -0.0418701171875, 0.05230712890625, -0.005767822265625, -0.00567626953125, 0.0280609130859375, -0.02947998046875, -0.0114288330078125, -0.0293731689453125, 0.052734375, -0.0166473388671875, 0.1107177734375, -0.04278564453125, 0.0142669677734375, -0.044464111328125, -0.027679443359375, -0.02593994140625, -0.0484619140625, 0.045562744140625, -0.0009374618530273438, -0.04620361328125, -0.00004267692565917969, -0.06646728515625, 0.03668212890625, 0.03070068359375, 0.018707275390625, 0.008758544921875, 0.00604248046875, 0.026824951171875, 0.007965087890625, 0.0165252685546875, -0.01812744140625, -0.08050537109375, -0.045806884765625, 0.0430908203125, -0.00007390975952148438, 0.0302886962890625, -0.0509033203125, 0.006710052490234375, 0.01444244384765625, -0.01210784912109375, -0.03021240234375, 0.01467132568359375, -0.053466796875, 0.010009765625, 0.015411376953125, -0.0268707275390625, 0.002410888671875, -0.017242431640625, 0.004726409912109375, -0.00963592529296875, 0.040069580078125, -0.0252838134765625, -0.00565338134765625, 0.00768280029296875, 0.00005370378494262695, 0.01336669921875, -0.0163726806640625, -0.01311492919921875, 0.017303466796875, -0.00296783447265625, -0.0258941650390625, -0.05914306640625, -0.04229736328125, -0.04425048828125, 0.007686614990234375, 0.03472900390625, -0.00371551513671875, -0.0302276611328125, -0.08441162109375, 0.01324462890625, 0.0161590576171875, -0.005615234375, -0.07830810546875, 0.04193115234375, -0.0234527587890625, 0.0660400390625, -0.05694580078125, 0.0243988037109375, -0.028350830078125, -0.00858306884765625, -0.0523681640625, 0.016021728515625, -0.028961181640625, 0.0024871826171875, -0.006214141845703125, 0.010955810546875, 0.01509857177734375, -0.004268646240234375, 0.02520751953125, 0.027191162109375, 0.003604888916015625, 0.06451416015625, -0.0142669677734375, -0.005687713623046875, 0.01197052001953125, -0.03533935546875, -0.024383544921875, -0.0250396728515625, 0.0099029541015625, -0.06390380859375, -0.04278564453125, 0.01403045654296875, -0.0300445556640625, -0.0236968994140625, -0.050323486328125, -0.0277862548828125, 0.053955078125, 0.026763916015625, -0.02740478515625, -0.044281005859375, -0.004642486572265625, 0.01318359375, -0.017181396484375, -0.01495361328125, -0.04876708984375, -0.04150390625, 0.0286407470703125, 0.030914306640625, -0.0301513671875, 0.0174560546875, 0.0220489501953125, -0.032135009765625, 0.0517578125, 0.054595947265625, -0.01568603515625, -0.005725860595703125, -0.001506805419921875, 0.02899169921875, 0.047607421875, -0.01041412353515625, 0.03643798828125, 0.0257568359375, -0.00928497314453125, -0.0153350830078125, 0.006343841552734375, -0.004802703857421875, -0.005550384521484375, 0.037078857421875, 0.0305328369140625, -0.00004494190216064453, -0.0031337738037109375, -0.05474853515625, -0.07769775390625, -0.0243988037109375, -0.0114898681640625, 0.0187225341796875, -0.06256103515625, 0.048736572265625, 0.017791748046875, -0.0066375732421875, -0.0200042724609375, 0.033660888671875, -0.048004150390625, -0.01537322998046875, -0.00801849365234375, -0.01739501953125, -0.0257415771484375, -0.080810546875, 0.029571533203125, -0.027862548828125, -0.038818359375, 0.0036163330078125, 0.0531005859375, -0.0052032470703125, 0.016082763671875, 0.00969696044921875, -0.007434844970703125, -0.020751953125, 0.03985595703125, 0.0009899139404296875, 0.07904052734375, -0.0421142578125, -0.0165252685546875, 0.01934814453125, 0.0216522216796875, -0.03033447265625, 0.01352691650390625, 0.02667236328125, 0.02960205078125, -0.0207366943359375, 0.0577392578125, -0.03790283203125, -0.044525146484375, -0.036407470703125, 0.0211334228515625, -0.0012273788452148438, 0.0017709732055664062, 0.027252197265625, -0.00807952880859375, 0.0010280609130859375, 0.05096435546875, 0.0179595947265625, -0.01099395751953125, -0.01439666748046875, -0.0242919921875, 0.029632568359375, -0.007080078125 ]
0bbc0cc48049d30787ada3693447fa823ddd2492
Wordpress Stackexchange Q: Is it possible to have a taxonomy archive that lists taxonomy terms? For example, I have a post type called foo. I can view all posts of type foo at the following url: mysite.com/foo. I then attach a taxonomy called bar, in which the terms are foobar and foobaz. I can access the posts assigned the term foobar at mysite.com/bar/foobar. But is it possible to get an archive containing foobar and foobaz at the url mysite.com/bar? Yes, I am aware that I can just create a page and call wp_list_categories(), but I was looking for an automatic solution that mirrors the post type functionality. A: What TheDeadMedic said in the comments. A page would do the trick with a custom template. If you're not wanting to mix these landing pages with actual pages - the wp-taxonomy-landing plugin/library should do the trick.
Q: Is it possible to have a taxonomy archive that lists taxonomy terms? For example, I have a post type called foo. I can view all posts of type foo at the following url: mysite.com/foo. I then attach a taxonomy called bar, in which the terms are foobar and foobaz. I can access the posts assigned the term foobar at mysite.com/bar/foobar. But is it possible to get an archive containing foobar and foobaz at the url mysite.com/bar? Yes, I am aware that I can just create a page and call wp_list_categories(), but I was looking for an automatic solution that mirrors the post type functionality. A: What TheDeadMedic said in the comments. A page would do the trick with a custom template. If you're not wanting to mix these landing pages with actual pages - the wp-taxonomy-landing plugin/library should do the trick.
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:443782", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139781" }
[ 0.037384033203125, 0.03564453125, -0.040985107421875, 0.0016622543334960938, 0.03875732421875, -0.045196533203125, 0.060699462890625, -0.0248870849609375, 0.01296234130859375, 0.003997802734375, -0.0261993408203125, -0.0228118896484375, -0.01149749755859375, -0.031341552734375, -0.0107879638671875, -0.038787841796875, 0.018707275390625, 0.0048675537109375, 0.036163330078125, -0.01239776611328125, 0.016021728515625, 0.00876617431640625, 0.02203369140625, 0.01561737060546875, 0.0305633544921875, -0.0274810791015625, 0.0445556640625, -0.01021575927734375, 0.01358795166015625, -0.00994873046875, 0.032501220703125, -0.0125274658203125, 0.00727081298828125, -0.001857757568359375, 0.04364013671875, 0.01934814453125, 0.0155029296875, 0.00615692138671875, 0.037139892578125, 0.01232147216796875, 0.02825927734375, -0.01427459716796875, 0.021484375, -0.004180908203125, 0.019439697265625, -0.0477294921875, 0.03790283203125, -0.067626953125, 0.0260467529296875, -0.058258056640625, 0.0224151611328125, 0.0238800048828125, 0.03271484375, -0.045074462890625, -0.016632080078125, 0.034149169921875, 0.01446533203125, -0.039947509765625, 0.021484375, -0.0655517578125, -0.01849365234375, -0.020477294921875, 0.06011962890625, 0.052734375, -0.01506805419921875, 0.016876220703125, 0.024627685546875, 0.0166778564453125, -0.0784912109375, -0.04217529296875, 0.0270843505859375, -0.057525634765625, 0.0005817413330078125, -0.0091705322265625, -0.0203704833984375, -0.0665283203125, 0.046173095703125, -0.048583984375, -0.0203704833984375, 0.022003173828125, 0.021240234375, 0.010406494140625, -0.000827789306640625, -0.01355743408203125, 0.02215576171875, 0.01479339599609375, -0.000782012939453125, -0.0205841064453125, -0.01541900634765625, -0.029876708984375, -0.0024471282958984375, -0.021026611328125, -0.0703125, 0.03619384765625, 0.017303466796875, -0.0277099609375, 0.00415802001953125, 0.0094757080078125, -0.0008087158203125, 0.01018524169921875, -0.03692626953125, -0.0217132568359375, 0.0031452178955078125, -0.0195159912109375, 0.017669677734375, 0.06378173828125, 0.016143798828125, 0.025848388671875, 0.04986572265625, 0.0005245208740234375, 0.028076171875, 0.05865478515625, 0.006870269775390625, -0.0277862548828125, -0.011444091796875, 0.0171356201171875, -0.00798797607421875, 0.0168304443359375, 0.0088348388671875, 0.0029964447021484375, 0.02423095703125, 0.057830810546875, 0.033538818359375, 0.0250396728515625, -0.03497314453125, 0.024261474609375, 0.0102081298828125, -0.09759521484375, 0.020843505859375, 0.021942138671875, -0.01103973388671875, 0.0182952880859375, -0.01076507568359375, -0.01416015625, -0.02374267578125, -0.013275146484375, -0.00737762451171875, 0.0023136138916015625, -0.00193023681640625, -0.022674560546875, 0.046356201171875, -0.0033550262451171875, 0.018096923828125, 0.0022716522216796875, 0.0088653564453125, 0.0043182373046875, 0.02484130859375, 0.037384033203125, -0.0022182464599609375, 0.0083770751953125, 0.007427215576171875, 0.011138916015625, 0.08270263671875, -0.032867431640625, -0.06280517578125, -0.055908203125, 0.045166015625, -0.049468994140625, -0.06903076171875, -0.07763671875, 0.023681640625, -0.027069091796875, -0.0219268798828125, 0.027587890625, 0.0037288665771484375, 0.036376953125, -0.021331787109375, 0.007389068603515625, 0.01526641845703125, -0.00981903076171875, 0.017852783203125, -0.00850677490234375, -0.00569915771484375, -0.0208587646484375, -0.01258087158203125, -0.018585205078125, -0.01441192626953125, -0.00984954833984375, 0.019256591796875, 0.029327392578125, -0.01031494140625, -0.034454345703125, 0.019683837890625, -0.011077880859375, -0.00965118408203125, 0.005870819091796875, 0.0157623291015625, 0.044769287109375, -0.02606201171875, 0.03411865234375, -0.003253936767578125, 0.03729248046875, -0.0675048828125, 0.00103759765625, 0.0294647216796875, 0.01055145263671875, -0.0098724365234375, -0.00344085693359375, 0.015045166015625, -0.03387451171875, -0.00913238525390625, 0.0125885009765625, -0.00608062744140625, 0.0155487060546875, -0.0122528076171875, 0.0285491943359375, -0.00775146484375, 0.0318603515625, 0.00849151611328125, 0.01157379150390625, -0.002593994140625, -0.0179901123046875, -0.01593017578125, -0.0096435546875, -0.03387451171875, 0.01910400390625, 0.00012862682342529297, -0.002048492431640625, -0.00926971435546875, -0.020660400390625, -0.0142669677734375, 0.01335906982421875, -0.017974853515625, 0.034637451171875, 0.027679443359375, 0.025543212890625, -0.03955078125, -0.0018291473388671875, -0.012908935546875, 0.04248046875, -0.09881591796875, 0.0222320556640625, 0.018096923828125, 0.0306396484375, -0.00948333740234375, -0.00502777099609375, 0.02874755859375, -0.05438232421875, 0.022216796875, 0.0426025390625, 0.036895751953125, 0.00875091552734375, -0.0286407470703125, -0.0264892578125, 0.054779052734375, -0.022125244140625, -0.002986907958984375, -0.01171875, -0.01629638671875, 0.0246429443359375, 0.0274658203125, 0.031402587890625, -0.0038585662841796875, -0.004459381103515625, -0.0035114288330078125, 0.0247039794921875, -0.025604248046875, -0.0112457275390625, 0.00595855712890625, 0.0005679130554199219, 0.00777435302734375, -0.018768310546875, -0.007114410400390625, -0.0077056884765625, 0.0482177734375, 0.02117919921875, 0.049285888671875, 0.047760009765625, -0.03009033203125, 0.0046844482421875, -0.0002694129943847656, 0.0260162353515625, 0.0016870498657226562, 0.014312744140625, 0.020355224609375, -0.00397491455078125, -0.03387451171875, 0.005939483642578125, 0.00641632080078125, -0.0028553009033203125, 0.0009851455688476562, 0.035858154296875, -0.014404296875, -0.0149688720703125, -0.023590087890625, -0.06927490234375, -0.004894256591796875, 0.0238189697265625, -0.093017578125, -0.018585205078125, -0.0070648193359375, 0.0806884765625, 0.004795074462890625, -0.00727081298828125, -0.00839996337890625, 0.056365966796875, -0.0030765533447265625, -0.034423828125, 0.037506103515625, -0.033966064453125, 0.052764892578125, 0.06085205078125, -0.006683349609375, 0.0133056640625, -0.0002560615539550781, 0.0005407333374023438, 0.016510009765625, -0.00914764404296875, -0.0127410888671875, -0.0204315185546875, -0.032318115234375, -0.00009566545486450195, 0.0225830078125, 0.01421356201171875, 0.01428985595703125, -0.01123809814453125, 0.006031036376953125, 0.024658203125, -0.039215087890625, -0.015289306640625, 0.0693359375, -0.032470703125, 0.01036834716796875, 0.0006194114685058594, -0.0204010009765625, -0.050689697265625, 0.031494140625, -0.011383056640625, 0.016998291015625, -0.049041748046875, -0.06683349609375, -0.06878662109375, -0.08782958984375, -0.05419921875, -0.00160980224609375, -0.01464080810546875, 0.004924774169921875, 0.0721435546875, 0.00559234619140625, -0.0751953125, 0.0026149749755859375, 0.02880859375, -0.00567626953125, 0.03607177734375, 0.00945281982421875, -0.0038013458251953125, -0.02862548828125, 0.0167236328125, -0.003688812255859375, 0.011993408203125, -0.023773193359375, -0.01050567626953125, -0.01529693603515625, 0.0285491943359375, 0.0022830963134765625, -0.04180908203125, 0.0171966552734375, 0.018218994140625, -0.0235595703125, -0.03619384765625, 0.008544921875, 0.01158905029296875, -0.0008940696716308594, -0.03753662109375, -0.03729248046875, -0.004245758056640625, -0.0298309326171875, 0.013397216796875, -0.005535125732421875, -0.01047515869140625, -0.005573272705078125, -0.0278472900390625, 0.0301513671875, -0.01296234130859375, -0.028167724609375, 0.0026836395263671875, 0.01068878173828125, -0.0269775390625, 0.0127410888671875, 0.005008697509765625, 0.0008392333984375, -0.0093994140625, 0.01032257080078125, -0.024627685546875, -0.0733642578125, 0.035736083984375, -0.06488037109375, 0.01103973388671875, -0.04315185546875, -0.00901031494140625, 0.00603485107421875, 0.108642578125, -0.067138671875, -0.016510009765625, -0.0079498291015625, 0.0263824462890625, 0.0006618499755859375, -0.0321044921875, -0.046539306640625, -0.034332275390625, -0.08966064453125, -0.004425048828125, -0.004657745361328125, -0.0513916015625, -0.01806640625, -0.0161285400390625, -0.055206298828125, -0.038543701171875, 0.034027099609375, -0.0184783935546875, 0.01293182373046875, -0.006000518798828125, 0.025299072265625, -0.0306854248046875, -0.025390625, -0.013031005859375, -0.04656982421875, -0.00780487060546875, 0.02374267578125, 0.0123443603515625, -0.03057861328125, 0.004222869873046875, -0.012481689453125, 0.0328369140625, 0.017059326171875, 0.007587432861328125, 0.0439453125, 0.025177001953125, -0.005771636962890625, -0.00009578466415405273, 0.040496826171875, -0.04095458984375, -0.01044464111328125, -0.040130615234375, -0.01531982421875, 0.023193359375, -0.0154266357421875, 0.01526641845703125, -0.01226043701171875, -0.0101470947265625, -0.05731201171875, -0.0186767578125, -0.00841522216796875, -0.0092010498046875, 0.00007432699203491211, -0.014617919921875, -0.01442718505859375, -0.04827880859375, 0.0082855224609375, 0.01593017578125, -0.022735595703125, 0.0259857177734375, 0.053680419921875, 0.00514984130859375, -0.0236968994140625, -0.07275390625, 0.046295166015625, 0.03204345703125, -0.0086517333984375, 0.04925537109375, 0.0167999267578125, -0.00963592529296875, 0.045166015625, 0.004093170166015625, 0.0362548828125, -0.00521087646484375, -0.0154266357421875, 0.01404571533203125, -0.004116058349609375, 0.0145263671875, 0.023956298828125, -0.002216339111328125, 0.0201263427734375, -0.00909423828125, -0.042724609375, -0.0321044921875, 0.061981201171875, -0.0274658203125, 0.0709228515625, -0.04925537109375, -0.0299835205078125, 0.01180267333984375, 0.01055908203125, 0.006591796875, 0.019866943359375, -0.003894805908203125, -0.00988006591796875, -0.0227813720703125, 0.0022430419921875, 0.030670166015625, 0.007251739501953125, -0.00742340087890625, 0.01430511474609375, 0.00012129545211791992, -0.0265960693359375, 0.01212310791015625, -0.0081787109375, 0.0189208984375, -0.0208282470703125, -0.07440185546875, 0.0545654296875, -0.004634857177734375, 0.003940582275390625, 0.06402587890625, -0.0020008087158203125, 0.035858154296875, 0.042327880859375, -0.00838470458984375, -0.01059722900390625, -0.0309600830078125, 0.0189666748046875, -0.04937744140625, 0.0307464599609375, 0.0055999755859375, 0.00001996755599975586, 0.0158843994140625, 0.06805419921875, -0.031402587890625, 0.04705810546875, -0.00563812255859375, 0.006114959716796875, 0.005218505859375, 0.047088623046875, 0.031097412109375, -0.04595947265625, -0.005157470703125, 0.0190277099609375, -0.001979827880859375, -0.042327880859375, 0.0142059326171875, -0.0059814453125, 0.031494140625, -0.024078369140625, -0.05224609375, 0.05755615234375, -0.030487060546875, -0.0212249755859375, -0.030303955078125, -0.04986572265625, -0.01113128662109375, -0.01544189453125, -0.0121612548828125, 0.0019550323486328125, 0.003082275390625, -0.0273284912109375, 0.006011962890625, -0.045989990234375, 0.01496124267578125, -0.00482940673828125, -0.018463134765625, 0.020263671875, 0.00978851318359375, -0.04010009765625, -0.01175689697265625, 0.0207061767578125, -0.045928955078125, -0.0283966064453125, -0.0178375244140625, -0.018768310546875, 0.059722900390625, -0.01148223876953125, 0.042755126953125, -0.00882720947265625, -0.0290985107421875, 0.0211029052734375, 0.0101318359375, 0.036468505859375, 0.00743865966796875, -0.08331298828125, 0.01177215576171875, -0.0584716796875, 0.01030731201171875, -0.037506103515625, -0.05694580078125, -0.0217742919921875, 0.004375457763671875, -0.00421905517578125, 0.0215606689453125, -0.00717926025390625, -0.0159149169921875, -0.00966644287109375, 0.007293701171875, 0.0186004638671875, -0.0010852813720703125, -0.0011043548583984375, 0.02215576171875, -0.007411956787109375, 0.03155517578125, -0.00749969482421875, -0.010711669921875, -0.03021240234375, -0.025604248046875, -0.052703857421875, -0.109130859375, 0.01275634765625, 0.031829833984375, -0.0181884765625, 0.10736083984375, 0.060882568359375, 0.0440673828125, -0.00640869140625, -0.036376953125, -0.001743316650390625, -0.006679534912109375, 0.060455322265625, -0.0310516357421875, -0.0269317626953125, 0.019500732421875, -0.0012140274047851562, 0.019866943359375, 0.00656890869140625, -0.006847381591796875, 0.00787353515625, 0.006618499755859375, 0.020294189453125, -0.022979736328125, -0.01435089111328125, 0.0068511962890625, 0.01428985595703125, 0.016845703125, 0.026123046875, -0.007595062255859375, 0.01275634765625, -0.0014896392822265625, 0.03289794921875, -0.01157379150390625, -0.0516357421875, 0.016998291015625, 0.0063323974609375, -0.018280029296875, 0.0072021484375, -0.036224365234375, -0.043243408203125, 0.01800537109375, -0.00905609130859375, -0.0247802734375, -0.007137298583984375, -0.00093841552734375, 0.0134429931640625, -0.0374755859375, 0.0162811279296875, -0.0160980224609375, -0.039825439453125, 0.00707244873046875, -0.021026611328125, -0.0272216796875, -0.0183563232421875, 0.004611968994140625, 0.016204833984375, -0.0174713134765625, 0.022735595703125, 0.017547607421875, -0.0269317626953125, -0.00299835205078125, 0.027618408203125, 0.01142120361328125, -0.01371002197265625, -0.0013408660888671875, -0.048553466796875, 0.00824737548828125, -0.0029926300048828125, 0.033782958984375, -0.04205322265625, 0.056915283203125, -0.06451416015625, -0.00620269775390625, 0.0406494140625, 0.02557373046875, -0.00498199462890625, -0.030426025390625, 0.01093292236328125, -0.017608642578125, 0.0222320556640625, -0.009063720703125, 0.0007762908935546875, 0.003688812255859375, 0.026458740234375, 0.0027256011962890625, 0.0081787109375, -0.016571044921875, -0.0201873779296875, -0.0174407958984375, 0.09552001953125, -0.05987548828125, 0.0064697265625, 0.0313720703125, 0.05377197265625, -0.0110626220703125, 0.0266265869140625, 0.002593994140625, -0.057403564453125, -0.032989501953125, 0.0210113525390625, -0.0308837890625, 0.0159149169921875, 0.0262603759765625, -0.0355224609375, 0.1102294921875, -0.01009368896484375, 0.01458740234375, 0.02032470703125, 0.048828125, 0.0078582763671875, 0.0576171875, -0.0140533447265625, 0.06402587890625, 0.04705810546875, 0.0012302398681640625, -0.02337646484375, -0.017547607421875, -0.0030078887939453125, 0.0557861328125, 0.01534271240234375, -0.004589080810546875, -0.028289794921875, -0.0201263427734375, 0.0273284912109375, 0.0242462158203125, 0.00733184814453125, 0.0284271240234375, 0.01276397705078125, 0.02972412109375, 0.045745849609375, -0.0290985107421875, 0.0248260498046875, -0.004055023193359375, 0.0072479248046875, 0.0256500244140625, 0.004772186279296875, 0.014007568359375, -0.0084991455078125, -0.0064544677734375, 0.0012798309326171875, -0.01812744140625, 0.0028285980224609375, -0.040191650390625, 0.015594482421875, -0.001495361328125, -0.0012559890747070312, -0.0280609130859375, 0.023651123046875, -0.017333984375, 0.033905029296875, -0.0192108154296875, 0.0025005340576171875, 0.0276947021484375, 0.00850677490234375, 0.08160400390625, -0.03900146484375, -0.006137847900390625, -0.00982666015625, -0.00347137451171875, 0.072265625, -0.01389312744140625, 0.019561767578125, -0.09454345703125, -0.03424072265625, 0.040130615234375, 0.091064453125, -0.053070068359375, -0.09356689453125, 0.0047607421875, -0.0134124755859375, 0.0032444000244140625, 0.031768798828125, -0.006725311279296875, 0.018890380859375, 0.0794677734375, -0.042327880859375, -0.0130767822265625, 0.0037631988525390625, 0.03594970703125, -0.01367950439453125, -0.0244598388671875, 0.0031642913818359375, -0.04400634765625, -0.038604736328125, 0.000537872314453125, 0.002399444580078125, 0.054779052734375, 0.02996826171875, 0.02374267578125, -0.04681396484375, -0.023223876953125, -0.0220947265625, 0.0518798828125, -0.0147552490234375, 0.01096343994140625, -0.0299835205078125, -0.049468994140625, -0.004909515380859375, 0.03759765625, -0.0207061767578125, -0.00897979736328125, 0.0296478271484375, 0.06573486328125, -0.019683837890625, -0.02593994140625, 0.0604248046875, -0.004978179931640625, 0.034423828125, -0.039337158203125, 0.04754638671875, 0.040191650390625, 0.0045623779296875, 0.001369476318359375, -0.0135955810546875, 0.0810546875, -0.03375244140625, 0.0244140625, -0.00412750244140625, -0.0300140380859375, 0.0440673828125, -0.03485107421875, 0.0297698974609375, -0.00580596923828125, -0.100830078125, -0.0321044921875, -0.04620361328125, -0.02984619140625, 0.05133056640625, 0.059661865234375, -0.007808685302734375, -0.01291656494140625, 0.01560211181640625, -0.0184478759765625, -0.0168914794921875, 0.0299072265625, 0.006359100341796875, -0.009918212890625, 0.01580810546875, -0.0018682479858398438, -0.0032501220703125, -0.0027484893798828125, 0.0008349418640136719, 0.0249481201171875, 0.034149169921875, 0.047882080078125, -0.01544952392578125, 0.021759033203125, -0.021148681640625, 0.037139892578125, -0.05743408203125, -0.036834716796875, 0.03533935546875, -0.02191162109375, 0.0123138427734375, 0.0011110305786132812, -0.007526397705078125, 0.042327880859375, 0.0301513671875, -0.04742431640625, 0.01303863525390625, -0.00461578369140625, 0.005207061767578125, -0.0222625732421875, 0.06787109375, 0.002838134765625, -0.0167083740234375, -0.0347900390625, -0.0261077880859375, 0.046051025390625, 0.0738525390625, 0.0280609130859375, 0.024810791015625, 0.032928466796875, -0.026214599609375, 0.0213470458984375, -0.033416748046875, 0.0367431640625, 0.02972412109375, 0.03265380859375, -0.005374908447265625, 0.032073974609375, -0.01226043701171875, 0.0277252197265625, 0.0010271072387695312, 0.03717041015625, 0.030792236328125, -0.033966064453125, 0.0245361328125, -0.0063323974609375, 0.028564453125, -0.00687408447265625, 0.00010561943054199219, -0.005695343017578125, 0.01020050048828125, -0.037994384765625, 0.0094451904296875, -0.04962158203125, -0.03607177734375, 0.01239013671875, 0.016143798828125, -0.0048065185546875, -0.041595458984375, -0.08734130859375, -0.005970001220703125, 0.046295166015625, 0.008148193359375, -0.032012939453125, 0.0235443115234375, -0.028228759765625, 0.007549285888671875, 0.0175323486328125, -0.043304443359375, 0.01364898681640625, 0.0194549560546875, -0.01934814453125, 0.016082763671875, -0.0380859375, -0.03863525390625, -0.022857666015625, 0.0035400390625, -0.004741668701171875, -0.010162353515625, 0.004100799560546875, -0.00621795654296875, -0.001148223876953125, 0.0469970703125, 0.049041748046875, -0.0162353515625, 0.011688232421875, -0.0012903213500976562, -0.0355224609375, -0.0287933349609375, 0.01432037353515625, -0.02532958984375, -0.025299072265625, -0.011016845703125, 0.01047515869140625, 0.0187835693359375, -0.03790283203125, -0.0850830078125, 0.04400634765625, -0.0206146240234375, -0.040863037109375, -0.047882080078125, -0.007289886474609375, 0.006992340087890625, -0.00629425048828125, -0.0160675048828125, 0.01271820068359375, -0.038177490234375, 0.029632568359375, 0.01806640625, 0.0288238525390625, 0.0236053466796875, 0.0109405517578125, -0.045135498046875, 0.01302337646484375, -0.0083465576171875, 0.01236724853515625, -0.00244140625, -0.00727081298828125, 0.027099609375, 0.0322265625, -0.035003662109375, 0.0210418701171875, 0.0074462890625, 0.024932861328125, 0.020355224609375, -0.0244598388671875, -0.055816650390625, -0.0576171875, 0.038177490234375, 0.0251922607421875, 0.0166015625, 0.00623321533203125, -0.016571044921875, -0.03564453125, -0.018829345703125, -0.011138916015625, 0.0172882080078125, -0.062408447265625, -0.0028533935546875, 0.0211181640625, 0.00811004638671875, 0.016510009765625, -0.0051727294921875, -0.01220703125, -0.00284576416015625, 0.01215362548828125, -0.005584716796875, -0.047210693359375, 0.021942138671875, 0.01021575927734375, -0.023956298828125, -0.0254974365234375, -0.01401519775390625, 0.0060272216796875, -0.0328369140625, -0.0205230712890625, -0.027984619140625, -0.01204681396484375, 0.035064697265625, 0.02423095703125, 0.01074981689453125, 0.0003046989440917969, 0.024810791015625, 0.0272064208984375, -0.01114654541015625, 0.041046142578125, 0.00986480712890625, 0.03369140625, -0.041473388671875, 0.0816650390625, 0.0278472900390625, 0.075927734375, 0.01806640625, -0.0079803466796875, 0.004791259765625, 0.0438232421875, -0.0211334228515625, -0.027587890625, -0.005855560302734375, -0.046844482421875, 0.0157012939453125, -0.036712646484375, -0.0152130126953125, -0.041473388671875, 0.0159912109375, -0.0234222412109375, -0.0291595458984375, 0.03338623046875 ]
801ad50ee5b73d554fd44e7ae4b754778bd58837
Wordpress Stackexchange Q: Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles I need to redirect logged-in and non-admin users, from page with id 172, to the home of the website. Note that users that are not logged in can actually see the page. add_action('admin_init', 'xyz'); function xyz() { if( is_page( 172 ) ) { if( is_user_logged_in() && ! current_user_can('update_core') ) { wp_redirect( home_url() ); exit; } } } Problem: This code is not working. A: admin_init runs on admin pages, not the front end. The equivalent front end action, init, is too early to check is_page. A safe action for redirection is template_redirect: function xyz() { if( is_page( 172 ) && ! current_user_can('update_core') ) { wp_redirect( home_url() ); exit; } } add_action( 'template_redirect', 'xyz' );
Q: Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles I need to redirect logged-in and non-admin users, from page with id 172, to the home of the website. Note that users that are not logged in can actually see the page. add_action('admin_init', 'xyz'); function xyz() { if( is_page( 172 ) ) { if( is_user_logged_in() && ! current_user_can('update_core') ) { wp_redirect( home_url() ); exit; } } } Problem: This code is not working. A: admin_init runs on admin pages, not the front end. The equivalent front end action, init, is too early to check is_page. A safe action for redirection is template_redirect: function xyz() { if( is_page( 172 ) && ! current_user_can('update_core') ) { wp_redirect( home_url() ); exit; } } add_action( 'template_redirect', 'xyz' );
wordpress
{ "language": "en", "length": 127, "provenance": "stackexchange_00019.jsonl.gz:443837", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139952" }
[ 0.05877685546875, 0.0196533203125, 0.01641845703125, -0.0014791488647460938, 0.0280914306640625, -0.043182373046875, 0.04931640625, -0.056365966796875, 0.00540924072265625, 0.02264404296875, 0.00225067138671875, -0.02313232421875, -0.018463134765625, -0.03167724609375, -0.0245208740234375, -0.0257720947265625, 0.02276611328125, -0.0233001708984375, 0.0152740478515625, -0.00966644287109375, 0.00864410400390625, 0.0122833251953125, 0.0088958740234375, 0.02056884765625, 0.0026836395263671875, -0.037933349609375, 0.041168212890625, -0.0086822509765625, 0.0088043212890625, -0.00576019287109375, 0.0087738037109375, -0.00627899169921875, 0.006404876708984375, 0.0199432373046875, -0.0012035369873046875, -0.0306854248046875, -0.038055419921875, 0.019134521484375, 0.01497650146484375, -0.005855560302734375, 0.031219482421875, -0.00037670135498046875, -0.01480865478515625, 0.0609130859375, -0.034271240234375, -0.06427001953125, 0.032318115234375, -0.01422882080078125, 0.0162811279296875, 0.0029239654541015625, -0.003261566162109375, 0.0251312255859375, 0.005340576171875, -0.0111846923828125, 0.0023136138916015625, 0.0206146240234375, 0.006473541259765625, -0.0274505615234375, 0.049468994140625, 0.000690460205078125, -0.030670166015625, -0.0372314453125, 0.0192413330078125, -0.057861328125, -0.0005321502685546875, 0.00968170166015625, -0.003871917724609375, 0.019866943359375, -0.07354736328125, -0.018096923828125, 0.00847625732421875, -0.03607177734375, -0.0093994140625, -0.006336212158203125, -0.042999267578125, 0.0009007453918457031, 0.0280914306640625, -0.00341796875, 0.003814697265625, 0.00428009033203125, 0.009490966796875, 0.016357421875, -0.006824493408203125, -0.0219879150390625, 0.0194854736328125, 0.0367431640625, -0.0214691162109375, -0.0322265625, -0.01103973388671875, -0.01232147216796875, -0.0225372314453125, 0.026397705078125, -0.0007381439208984375, -0.020294189453125, -0.03680419921875, -0.0292205810546875, 0.038116455078125, 0.07110595703125, -0.01526641845703125, -0.01190948486328125, -0.01345062255859375, -0.035491943359375, -0.0059967041015625, -0.02923583984375, 0.0026798248291015625, 0.072509765625, 0.0244598388671875, 0.04229736328125, 0.01119232177734375, 0.00293731689453125, 0.02606201171875, 0.0084228515625, -0.01206207275390625, -0.031951904296875, -0.01116180419921875, 0.025970458984375, -0.0179595947265625, -0.00720977783203125, -0.0014219284057617188, -0.01035308837890625, -0.017181396484375, 0.00920867919921875, 0.0276336669921875, -0.03863525390625, 0.01331329345703125, 0.0010251998901367188, -0.0226593017578125, -0.034332275390625, 0.0298309326171875, -0.01541900634765625, -0.0232391357421875, 0.0213775634765625, 0.040069580078125, -0.00125885009765625, -0.0032634735107421875, 0.0014619827270507812, 0.027618408203125, -0.0080108642578125, -0.00403594970703125, -0.0006389617919921875, 0.040283203125, -0.033782958984375, -0.044525146484375, 0.0151824951171875, 0.04925537109375, 0.05474853515625, 0.0095977783203125, -0.0042572021484375, 0.0177764892578125, -0.046051025390625, 0.02947998046875, -0.054779052734375, 0.00916290283203125, 0.0202178955078125, 0.02593994140625, 0.0004949569702148438, 0.034393310546875, -0.00421142578125, -0.007633209228515625, -0.0186004638671875, 0.046722412109375, 0.0289306640625, 0.04443359375, -0.0208282470703125, -0.04949951171875, -0.04351806640625, -0.076171875, -0.025146484375, 0.0421142578125, 0.003345489501953125, 0.065185546875, -0.0477294921875, 0.03662109375, 0.036346435546875, 0.00080108642578125, 0.023193359375, -0.0203857421875, 0.0462646484375, 0.01441192626953125, 0.0218353271484375, 0.021636962890625, -0.01241302490234375, 0.02349853515625, 0.039306640625, -0.0305938720703125, 0.0206451416015625, -0.014068603515625, 0.0140228271484375, 0.00545501708984375, -0.0112152099609375, -0.0028533935546875, 0.0210113525390625, -0.0089874267578125, 0.01367950439453125, -0.0296783447265625, -0.053253173828125, 0.0201263427734375, 0.002696990966796875, -0.0185089111328125, 0.03350830078125, 0.05279541015625, 0.0216064453125, -0.01529693603515625, -0.025390625, -0.028076171875, -0.017486572265625, 0.0093231201171875, 0.01995849609375, 0.0178985595703125, 0.040557861328125, 0.0021076202392578125, 0.02374267578125, -0.007350921630859375, -0.07904052734375, -0.028076171875, 0.01739501953125, -0.023223876953125, 0.06768798828125, 0.019683837890625, 0.06005859375, 0.025360107421875, -0.05615234375, 0.03173828125, -0.022796630859375, 0.0312042236328125, 0.00531005859375, -0.00760650634765625, -0.00033593177795410156, 0.03411865234375, 0.0082550048828125, -0.00783538818359375, 0.0108795166015625, 0.02703857421875, 0.0286865234375, -0.033538818359375, -0.00798797607421875, -0.023223876953125, -0.035400390625, -0.004573822021484375, 0.03857421875, 0.0146484375, 0.038421630859375, -0.03997802734375, -0.00934600830078125, 0.0277557373046875, -0.07073974609375, -0.025299072265625, 0.0205230712890625, -0.00957489013671875, 0.0092315673828125, -0.0162353515625, 0.005084991455078125, 0.0311279296875, -0.03179931640625, -0.0030460357666015625, 0.055999755859375, -0.0297393798828125, -0.0085906982421875, -0.013458251953125, -0.035308837890625, 0.0261688232421875, -0.0689697265625, -0.0517578125, -0.01049041748046875, -0.006580352783203125, -0.02740478515625, -0.003437042236328125, -0.0191650390625, -0.01074981689453125, -0.05267333984375, 0.0243377685546875, 0.0026645660400390625, 0.0007100105285644531, 0.03912353515625, 0.02423095703125, -0.060455322265625, -0.046966552734375, 0.00954437255859375, 0.0211181640625, 0.002895355224609375, 0.0047454833984375, 0.022857666015625, -0.005115509033203125, -0.002864837646484375, -0.007049560546875, -0.003627777099609375, 0.0266265869140625, 0.049163818359375, 0.047882080078125, -0.0169219970703125, 0.01116180419921875, 0.01459503173828125, -0.03369140625, 0.08837890625, -0.00975799560546875, -0.047760009765625, 0.001445770263671875, -0.04833984375, 0.031524658203125, -0.0272979736328125, 0.06427001953125, 0.07525634765625, -0.00555419921875, 0.0241851806640625, -0.00508880615234375, -0.00800323486328125, 0.0017213821411132812, 0.0232086181640625, 0.003093719482421875, -0.037567138671875, 0.0174407958984375, 0.0316162109375, 0.028411865234375, 0.035888671875, 0.01141357421875, -0.034515380859375, -0.005512237548828125, 0.0107879638671875, -0.048431396484375, -0.05828857421875, -0.0408935546875, -0.050750732421875, 0.01654052734375, 0.00445556640625, -0.01456451416015625, -0.0030155181884765625, 0.0289306640625, 0.01568603515625, 0.0008754730224609375, -0.00937652587890625, -0.027984619140625, -0.0166015625, -0.033660888671875, 0.0084686279296875, -0.00466156005859375, -0.005718231201171875, -0.0036563873291015625, 0.0172882080078125, -0.012786865234375, -0.0528564453125, -0.03192138671875, 0.0182342529296875, -0.0096893310546875, -0.045257568359375, -0.037689208984375, 0.0150146484375, -0.0211029052734375, 0.0215911865234375, 0.00916290283203125, -0.041168212890625, 0.027252197265625, -0.03375244140625, -0.0028476715087890625, -0.03717041015625, -0.005046844482421875, -0.00559234619140625, -0.0057220458984375, -0.01259613037109375, 0.0165863037109375, -0.03973388671875, 0.00782012939453125, -0.0193939208984375, -0.039825439453125, 0.0283050537109375, 0.045318603515625, -0.019989013671875, 0.0321044921875, -0.054443359375, 0.039825439453125, 0.02655029296875, -0.00728607177734375, 0.0253143310546875, -0.0227203369140625, -0.00015175342559814453, 0.0269775390625, -0.0131072998046875, 0.036163330078125, 0.0009713172912597656, -0.00809478759765625, 0.0017261505126953125, -0.007755279541015625, -0.03143310546875, 0.0234527587890625, -0.044219970703125, -0.06903076171875, 0.05401611328125, -0.02239990234375, -0.005046844482421875, -0.034149169921875, -0.02294921875, 0.0101470947265625, 0.10888671875, -0.06842041015625, -0.002727508544921875, 0.0106048583984375, 0.0182647705078125, -0.02081298828125, -0.0169525146484375, -0.061431884765625, -0.013946533203125, -0.07183837890625, -0.00745391845703125, -0.01247406005859375, -0.0174713134765625, -0.0244140625, 0.0158538818359375, -0.048553466796875, -0.0543212890625, 0.023101806640625, 0.01175689697265625, 0.01348876953125, 0.0179290771484375, -0.0022754669189453125, -0.00800323486328125, 0.00795745849609375, -0.0137939453125, -0.066650390625, -0.01470947265625, 0.0113677978515625, 0.07568359375, 0.0176239013671875, -0.0073089599609375, -0.02020263671875, 0.0411376953125, -0.0192718505859375, 0.0015106201171875, 0.00203704833984375, 0.03656005859375, 0.034088134765625, -0.0291290283203125, -0.024383544921875, -0.01244354248046875, 0.002185821533203125, -0.00054168701171875, -0.03289794921875, -0.0217437744140625, -0.042694091796875, -0.04351806640625, 0.0138092041015625, -0.036956787109375, -0.0714111328125, -0.045623779296875, -0.020782470703125, 0.011077880859375, -0.0187530517578125, 0.01549530029296875, -0.043365478515625, -0.08148193359375, 0.0579833984375, -0.0134735107421875, -0.013946533203125, 0.00504302978515625, 0.0267486572265625, 0.01451873779296875, -0.0292205810546875, 0.007221221923828125, 0.005889892578125, 0.023773193359375, 0.0024547576904296875, 0.060089111328125, 0.020172119140625, -0.0194091796875, 0.0811767578125, 0.0108795166015625, -0.0039520263671875, -0.003513336181640625, 0.03460693359375, -0.004970550537109375, -0.0445556640625, 0.0224456787109375, -0.037200927734375, 0.01155853271484375, 0.04156494140625, 0.015777587890625, -0.035186767578125, -0.0244140625, 0.0108642578125, 0.0148162841796875, 0.00799560546875, -0.0142822265625, -0.016387939453125, -0.01166534423828125, 0.010650634765625, 0.0257568359375, 0.04351806640625, -0.01529693603515625, 0.012359619140625, 0.0128326416015625, -0.0117340087890625, 0.0254974365234375, -0.0250701904296875, -0.0108184814453125, 0.0123291015625, 0.0025882720947265625, -0.036102294921875, 0.040679931640625, -0.003841400146484375, 0.08111572265625, -0.0028972625732421875, -0.056732177734375, -0.00678253173828125, -0.0248565673828125, 0.023040771484375, 0.03424072265625, -0.016082763671875, 0.047119140625, 0.01904296875, -0.0164794921875, -0.0374755859375, -0.012847900390625, -0.025146484375, -0.06005859375, -0.004802703857421875, 0.006229400634765625, 0.00237274169921875, 0.0282440185546875, 0.08880615234375, 0.039825439453125, 0.0498046875, -0.0428466796875, 0.054534912109375, 0.041229248046875, 0.006366729736328125, -0.0083770751953125, 0.037750244140625, -0.00635528564453125, -0.00995635986328125, 0.001811981201171875, -0.0162506103515625, -0.01399993896484375, 0.03985595703125, 0.04986572265625, 0.0163421630859375, 0.0003108978271484375, -0.03375244140625, -0.033935546875, -0.0134124755859375, 0.05841064453125, -0.01250457763671875, -0.082763671875, -0.033782958984375, 0.03509521484375, 0.041168212890625, -0.03924560546875, -0.0029621124267578125, 0.01485443115234375, -0.0438232421875, -0.00983428955078125, 0.0108489990234375, -0.033233642578125, -0.0212554931640625, -0.0168914794921875, -0.019622802734375, -0.0241851806640625, -0.01363372802734375, -0.01222991943359375, -0.0170440673828125, -0.01605224609375, -0.0036907196044921875, 0.03436279296875, -0.0030956268310546875, 0.0055389404296875, -0.017974853515625, -0.00991058349609375, -0.0061492919921875, -0.002552032470703125, 0.07879638671875, 0.031341552734375, -0.04339599609375, 0.0086517333984375, -0.05419921875, -0.0050048828125, -0.00850677490234375, -0.0225830078125, -0.0155181884765625, 0.006244659423828125, 0.0086822509765625, 0.019683837890625, -0.00396728515625, -0.02557373046875, -0.0231781005859375, 0.0177764892578125, 0.03350830078125, 0.041290283203125, -0.0191802978515625, 0.0731201171875, -0.00701904296875, 0.033477783203125, 0.00986480712890625, 0.0243072509765625, -0.0217132568359375, -0.004047393798828125, 0.015625, -0.002925872802734375, 0.0014772415161132812, -0.0191192626953125, 0.0136566162109375, -0.031585693359375, 0.0290374755859375, -0.0007848739624023438, 0.0035877227783203125, -0.007110595703125, -0.002201080322265625, -0.0390625, -0.004962921142578125, -0.01274871826171875, 0.01678466796875, -0.04022216796875, 0.022979736328125, 0.01331329345703125, -0.0007376670837402344, -0.0271453857421875, 0.0160675048828125, 0.03228759765625, 0.031494140625, -0.036407470703125, -0.046539306640625, 0.044464111328125, 0.10760498046875, 0.01861572265625, 0.057159423828125, 0.01467132568359375, 0.007354736328125, 0.04595947265625, 0.007762908935546875, 0.01155853271484375, 0.01432037353515625, 0.050445556640625, -0.007122039794921875, -0.010040283203125, 0.0173187255859375, -0.025238037109375, 0.014801025390625, 0.0947265625, 0.06561279296875, -0.1400146484375, 0.017913818359375, 0.0015077590942382812, 0.0255889892578125, 0.058868408203125, -0.033721923828125, 0.007434844970703125, -0.015533447265625, 0.057159423828125, -0.004108428955078125, -0.01316070556640625, 0.0211029052734375, -0.01071929931640625, -0.03369140625, -0.0236663818359375, -0.0080413818359375, -0.002593994140625, 0.00640106201171875, 0.01465606689453125, -0.0148773193359375, 0.0022983551025390625, -0.0048828125, -0.0007205009460449219, 0.0013780593872070312, -0.038177490234375, -0.0556640625, -0.01229095458984375, -0.0111846923828125, -0.0035572052001953125, 0.03363037109375, 0.0022258758544921875, 0.016693115234375, 0.041107177734375, -0.01435089111328125, 0.036102294921875, 0.00971221923828125, -0.0157928466796875, 0.00960540771484375, -0.04498291015625, -0.012908935546875, 0.0039005279541015625, -0.0457763671875, 0.0176544189453125, 0.0001919269561767578, -0.037811279296875, -0.005321502685546875, -0.0200042724609375, 0.07611083984375, -0.00653839111328125, -0.03863525390625, -0.00110626220703125, -0.03717041015625, 0.0097198486328125, 0.0128021240234375, 0.004917144775390625, -0.040496826171875, -0.02044677734375, 0.013763427734375, -0.03509521484375, 0.006420135498046875, 0.033477783203125, -0.0709228515625, 0.0875244140625, -0.01270294189453125, 0.0443115234375, 0.0192108154296875, 0.02362060546875, -0.037139892578125, -0.00018036365509033203, -0.0044708251953125, 0.055755615234375, 0.044952392578125, 0.001926422119140625, 0.0023136138916015625, -0.00408935546875, 0.01096343994140625, 0.02349853515625, 0.058074951171875, 0.033782958984375, -0.0809326171875, -0.0021228790283203125, 0.01495361328125, 0.0174102783203125, -0.0054168701171875, 0.08477783203125, -0.004177093505859375, -0.0107269287109375, -0.0120849609375, -0.0309295654296875, 0.0265350341796875, -0.042327880859375, -0.03790283203125, 0.01261138916015625, 0.0130462646484375, 0.0035457611083984375, -0.0206451416015625, -0.0018634796142578125, -0.0810546875, 0.0035858154296875, 0.04791259765625, -0.01032257080078125, 0.006336212158203125, 0.0032062530517578125, -0.0202789306640625, -0.039886474609375, 0.048492431640625, -0.042633056640625, 0.0307769775390625, -0.032867431640625, -0.00046634674072265625, 0.0200347900390625, 0.02935791015625, -0.0219268798828125, -0.0218353271484375, 0.00617218017578125, 0.031463623046875, -0.05743408203125, 0.07666015625, 0.033477783203125, 0.04388427734375, -0.024017333984375, 0.0130157470703125, 0.0180206298828125, 0.07659912109375, -0.0445556640625, 0.03814697265625, 0.002506256103515625, 0.041900634765625, 0.0262908935546875, -0.023712158203125, 0.0732421875, 0.0246734619140625, 0.0189056396484375, -0.0270843505859375, -0.0151824951171875, 0.042877197265625, -0.016998291015625, -0.01934814453125, -0.06097412109375, 0.024444580078125, 0.037872314453125, -0.026885986328125, -0.019195556640625, 0.01038360595703125, 0.0180816650390625, 0.0254364013671875, 0.001384735107421875, 0.03875732421875, -0.0015172958374023438, -0.01221466064453125, 0.02801513671875, -0.03363037109375, 0.01812744140625, -0.029632568359375, -0.040130615234375, -0.01318359375, 0.04278564453125, 0.01523590087890625, -0.00013947486877441406, -0.0239410400390625, -0.0007562637329101562, 0.0250091552734375, -0.00577545166015625, 0.02734375, -0.0119171142578125, 0.028900146484375, -0.00215911865234375, 0.0161590576171875, -0.0110321044921875, -0.03021240234375, -0.034515380859375, 0.0543212890625, 0.006793975830078125, -0.0291595458984375, 0.04583740234375, -0.008453369140625, -0.0232391357421875, 0.0278472900390625, -0.015960693359375, 0.05670166015625, -0.00962066650390625, -0.041015625, -0.0127410888671875, -0.0163116455078125, -0.031524658203125, 0.051177978515625, 0.045196533203125, -0.024658203125, 0.011749267578125, 0.031829833984375, 0.008575439453125, -0.01418304443359375, 0.0161285400390625, 0.0246734619140625, -0.00923919677734375, 0.0212860107421875, 0.0156097412109375, 0.007610321044921875, 0.001811981201171875, -0.00630950927734375, 0.03466796875, 0.0186004638671875, 0.10089111328125, -0.044097900390625, 0.035858154296875, -0.04296875, 0.041778564453125, -0.059173583984375, -0.047119140625, 0.0312042236328125, -0.0033855438232421875, -0.007061004638671875, 0.01010894775390625, -0.0699462890625, 0.046661376953125, 0.01611328125, -0.005901336669921875, 0.059600830078125, 0.002079010009765625, -0.0202178955078125, -0.033203125, 0.020172119140625, -0.0209197998046875, -0.06646728515625, -0.07623291015625, 0.01517486572265625, 0.017822265625, 0.0260772705078125, -0.056976318359375, 0.060699462890625, -0.0304107666015625, -0.03192138671875, 0.004482269287109375, -0.0692138671875, -0.02386474609375, 0.0220947265625, 0.007389068603515625, 0.0239410400390625, 0.02069091796875, -0.0103607177734375, 0.054168701171875, -0.007678985595703125, 0.01262664794921875, 0.0246734619140625, -0.013092041015625, -0.0174407958984375, -0.0177154541015625, 0.00951385498046875, -0.0206298828125, 0.0036640167236328125, -0.0030307769775390625, -0.00377655029296875, -0.01708984375, -0.0360107421875, -0.035308837890625, -0.05255126953125, -0.0218048095703125, 0.0168304443359375, -0.0217437744140625, -0.06219482421875, -0.0560302734375, 0.020538330078125, -0.00004696846008300781, -0.01202392578125, -0.049468994140625, 0.037322998046875, -0.045196533203125, 0.0577392578125, -0.054443359375, -0.00106048583984375, 0.0021419525146484375, 0.050750732421875, -0.029052734375, 0.0189361572265625, -0.042510986328125, -0.037994384765625, -0.0474853515625, 0.0022525787353515625, 0.04962158203125, -0.00909423828125, -0.0248565673828125, -0.0231170654296875, -0.022918701171875, 0.042816162109375, -0.0447998046875, -0.01280975341796875, 0.00707244873046875, -0.004398345947265625, -0.00905609130859375, -0.01361083984375, -0.004352569580078125, 0.022216796875, -0.0229949951171875, -0.006855010986328125, -0.0096282958984375, -0.004840850830078125, -0.030731201171875, -0.0143585205078125, 0.042999267578125, -0.0030155181884765625, -0.01126861572265625, -0.039398193359375, 0.030517578125, 0.0205078125, 0.0078887939453125, -0.00719451904296875, -0.024993896484375, -0.029510498046875, -0.0139007568359375, 0.029327392578125, -0.0299835205078125, 0.040435791015625, 0.0445556640625, -0.027923583984375, 0.035552978515625, 0.0116424560546875, -0.0155487060546875, -0.03302001953125, 0.0023651123046875, 0.0322265625, 0.0657958984375, 0.01416015625, -0.00850677490234375, 0.028717041015625, -0.051422119140625, 0.0006279945373535156, -0.040740966796875, 0.001972198486328125, -0.045501708984375, -0.01345062255859375, 0.0120086669921875, -0.01331329345703125, 0.0169677734375, -0.0421142578125, -0.043670654296875, -0.043182373046875, -0.0309906005859375, 0.03271484375, -0.08197021484375, -0.0006976127624511719, 0.0065765380859375, -0.025909423828125, -0.0225372314453125, 0.0369873046875, -0.03985595703125, 0.00704193115234375, 0.03948974609375, -0.015960693359375, -0.0235595703125, 0.00951385498046875, 0.061004638671875, -0.046112060546875, -0.0136566162109375, -0.01016998291015625, 0.0015630722045898438, 0.0086517333984375, -0.02325439453125, 0.0288238525390625, 0.03466796875, -0.033355712890625, 0.01074981689453125, 0.01523590087890625, 0.02423095703125, -0.04632568359375, -0.0347900390625, 0.006351470947265625, 0.0284881591796875, -0.0112152099609375, 0.030670166015625, -0.00568389892578125, 0.0252227783203125, -0.016845703125, 0.0192413330078125, -0.0015020370483398438, 0.00937652587890625, -0.006061553955078125, 0.04119873046875, -0.006114959716796875, -0.02093505859375, 0.02410888671875, -0.024658203125, -0.005084991455078125, 0.0440673828125, 0.0106201171875, -0.031585693359375, 0.0247802734375, -0.0299072265625, 0.044830322265625, 0.001033782958984375 ]
c5f4d57101e1b724b9baaa8b117a0e3c802daa8c
Wordpress Stackexchange Q: Remove the word 'Categories' from wp_list_categories I've got the following code: wp_list_categories(); It outputs all my categories, however, it makes them the child of a list element, called CATEGORIES. So, I get an unordered list, like so: CATEGORIES * FASHION * DAILY FASHION CANDY * TRENDS * BEAUTY * ACCESSORIES * CELEBRITIES * LIFESTYLE However, I only need: * FASHION * DAILY FASHION CANDY * TRENDS * BEAUTY * ACCESSORIES * CELEBRITIES * LIFESTYLE I'm sure I could remove/hide the word CATEGORIES with JS or CSS, but is there a way to prevent it being there in the first place? A: Take a look at the parameters in the documentation of wp_list_categories() function. You need to use this parameter: title_li (string) Set the title and style of the outer list item. Defaults to "Categories". If present but empty, the outer list item will not be displayed. See below for examples. I think it's clear, you just need to pass this parameter as an empty string: wp_list_categories('title_li=');
Q: Remove the word 'Categories' from wp_list_categories I've got the following code: wp_list_categories(); It outputs all my categories, however, it makes them the child of a list element, called CATEGORIES. So, I get an unordered list, like so: CATEGORIES * FASHION * DAILY FASHION CANDY * TRENDS * BEAUTY * ACCESSORIES * CELEBRITIES * LIFESTYLE However, I only need: * FASHION * DAILY FASHION CANDY * TRENDS * BEAUTY * ACCESSORIES * CELEBRITIES * LIFESTYLE I'm sure I could remove/hide the word CATEGORIES with JS or CSS, but is there a way to prevent it being there in the first place? A: Take a look at the parameters in the documentation of wp_list_categories() function. You need to use this parameter: title_li (string) Set the title and style of the outer list item. Defaults to "Categories". If present but empty, the outer list item will not be displayed. See below for examples. I think it's clear, you just need to pass this parameter as an empty string: wp_list_categories('title_li=');
wordpress
{ "language": "en", "length": 167, "provenance": "stackexchange_00019.jsonl.gz:443849", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139996" }
[ 0.0199127197265625, 0.032867431640625, -0.0404052734375, 0.003925323486328125, 0.051727294921875, -0.055938720703125, 0.061004638671875, -0.0258331298828125, -0.0035381317138671875, -0.010650634765625, -0.00293731689453125, -0.00736236572265625, -0.027496337890625, -0.052276611328125, 0.0021686553955078125, -0.0413818359375, 0.0208892822265625, 0.01025390625, 0.03857421875, -0.0032367706298828125, 0.006744384765625, 0.02081298828125, 0.0274200439453125, 0.050262451171875, 0.0030384063720703125, -0.0302581787109375, 0.06756591796875, -0.0301971435546875, 0.006313323974609375, -0.043548583984375, 0.01422882080078125, 0.0309295654296875, -0.0103912353515625, 0.0289459228515625, 0.0077362060546875, -0.0106201171875, -0.01910400390625, 0.0170135498046875, 0.016082763671875, 0.0183868408203125, 0.04168701171875, -0.0269012451171875, -0.0100555419921875, -0.0273284912109375, -0.01074981689453125, -0.0278167724609375, 0.048614501953125, -0.027679443359375, 0.007259368896484375, -0.08392333984375, 0.054595947265625, 0.0305328369140625, 0.08203125, -0.07049560546875, -0.01383209228515625, 0.048309326171875, -0.02581787109375, 0.0277099609375, 0.0278778076171875, 0.0193939208984375, -0.03076171875, 0.0004391670227050781, 0.0123748779296875, -0.05609130859375, 0.028167724609375, 0.01087188720703125, 0.058746337890625, 0.03076171875, -0.0594482421875, 0.013275146484375, 0.0265045166015625, -0.044586181640625, -0.006839752197265625, -0.036956787109375, -0.0263824462890625, 0.0173187255859375, -0.0034542083740234375, -0.0178375244140625, 0.0229339599609375, -0.0199127197265625, -0.00537872314453125, 0.01560211181640625, -0.0362548828125, 0.000020563602447509766, 0.034423828125, 0.02423095703125, -0.0145416259765625, -0.0201568603515625, -0.01355743408203125, -0.0057525634765625, -0.00856781005859375, -0.0238189697265625, -0.01336669921875, 0.01910400390625, 0.002246856689453125, -0.02392578125, 0.055908203125, 0.0947265625, -0.01849365234375, -0.01088714599609375, -0.005115509033203125, -0.038177490234375, -0.0254669189453125, -0.031463623046875, 0.0016946792602539062, 0.0261688232421875, -0.028289794921875, 0.005084991455078125, 0.0423583984375, 0.049774169921875, 0.011688232421875, -0.00829315185546875, -0.0082550048828125, -0.0301361083984375, 0.0016202926635742188, 0.0202484130859375, -0.022735595703125, 0.049591064453125, 0.002964019775390625, 0.0157928466796875, 0.0014791488647460938, 0.0247039794921875, -0.02349853515625, -0.0160675048828125, 0.032989501953125, 0.0237274169921875, -0.01474761962890625, -0.005615234375, 0.00983428955078125, -0.0230255126953125, -0.0589599609375, 0.0311431884765625, 0.064453125, 0.024322509765625, 0.0181121826171875, -0.0030956268310546875, -0.00670623779296875, 0.010467529296875, 0.01311492919921875, 0.013946533203125, 0.032012939453125, -0.032501220703125, -0.0018939971923828125, 0.0309906005859375, 0.04046630859375, 0.005527496337890625, -0.01378631591796875, 0.0196533203125, 0.050933837890625, 0.0079193115234375, 0.047515869140625, -0.062347412109375, 0.06256103515625, 0.012237548828125, -0.03436279296875, -0.0225982666015625, 0.043609619140625, -0.040283203125, -0.047698974609375, -0.06097412109375, 0.01209259033203125, -0.00801849365234375, -0.0025653839111328125, -0.04193115234375, -0.07427978515625, 0.027252197265625, -0.035736083984375, -0.021087646484375, 0.014801025390625, -0.032501220703125, 0.0160064697265625, -0.04931640625, -0.0033397674560546875, -0.0016193389892578125, 0.007259368896484375, 0.03375244140625, -0.027252197265625, -0.0188751220703125, 0.0146636962890625, 0.036102294921875, -0.01078033447265625, -0.046142578125, -0.037567138671875, 0.01149749755859375, -0.054046630859375, 0.0200958251953125, 0.0174713134765625, 0.049652099609375, 0.0162811279296875, 0.0159454345703125, 0.054107666015625, -0.0013790130615234375, -0.058380126953125, -0.03863525390625, 0.029998779296875, 0.00579071044921875, -0.014739990234375, -0.02197265625, 0.0164031982421875, 0.00443267822265625, 0.060089111328125, 0.0199127197265625, -0.01506805419921875, -0.00870513916015625, -0.0897216796875, 0.0084381103515625, -0.0147705078125, 0.035400390625, -0.032958984375, 0.0236663818359375, 0.0179901123046875, -0.0177001953125, -0.0116424560546875, -0.0260772705078125, 0.0089874267578125, 0.00958251953125, 0.0052032470703125, 0.005100250244140625, 0.0036773681640625, -0.011474609375, 0.00904083251953125, 0.0208282470703125, 0.0146331787109375, 0.03509521484375, 0.07806396484375, -0.0019073486328125, -0.023895263671875, -0.03778076171875, 0.04052734375, 0.01126861572265625, -0.080322265625, 0.039215087890625, 0.044677734375, 0.04510498046875, -0.0338134765625, 0.004291534423828125, 0.01149749755859375, -0.0509033203125, -0.0035953521728515625, 0.046630859375, 0.032135009765625, 0.052154541015625, -0.0261993408203125, -0.048675537109375, 0.09051513671875, -0.029052734375, -0.002407073974609375, -0.037689208984375, 0.01190185546875, 0.00917816162109375, 0.043792724609375, -0.0146484375, 0.0165863037109375, 0.00989532470703125, 0.033111572265625, 0.0007681846618652344, 0.0028781890869140625, -0.035186767578125, 0.04339599609375, -0.002593994140625, 0.004138946533203125, 0.005279541015625, -0.0174407958984375, 0.0194854736328125, 0.0183868408203125, 0.0174713134765625, 0.00853729248046875, 0.019378662109375, -0.019500732421875, 0.01284027099609375, 0.01386260986328125, -0.01141357421875, -0.0064849853515625, 0.038330078125, 0.00916290283203125, -0.01529693603515625, -0.014739990234375, 0.0027217864990234375, -0.01007080078125, 0.01108551025390625, 0.01558685302734375, 0.0877685546875, 0.05694580078125, -0.0171051025390625, -0.04266357421875, -0.027679443359375, 0.01268768310546875, 0.00942230224609375, -0.051727294921875, -0.013397216796875, 0.0018177032470703125, 0.04833984375, -0.004486083984375, 0.002689361572265625, -0.02899169921875, 0.023590087890625, 0.0159759521484375, -0.0028820037841796875, 0.016387939453125, -0.0276947021484375, 0.016998291015625, 0.047454833984375, -0.0161590576171875, -0.0017070770263671875, -0.0007443428039550781, 0.006622314453125, 0.019683837890625, 0.0002372264862060547, -0.01390838623046875, 0.0129547119140625, -0.0726318359375, -0.006084442138671875, 0.01483917236328125, 0.0321044921875, 0.0172576904296875, -0.0438232421875, 0.0203094482421875, 0.0186309814453125, -0.0239410400390625, -0.0244293212890625, 0.043609619140625, -0.01340484619140625, 0.0224456787109375, 0.01386260986328125, -0.0088958740234375, -0.0330810546875, 0.0301666259765625, -0.0005197525024414062, 0.0535888671875, -0.04339599609375, -0.047210693359375, -0.00907135009765625, -0.05908203125, -0.0028934478759765625, 0.002346038818359375, -0.00024127960205078125, 0.005779266357421875, 0.10302734375, 0.024261474609375, -0.058074951171875, -0.005710601806640625, 0.009124755859375, -0.0166473388671875, 0.03167724609375, 0.037139892578125, -0.03802490234375, -0.02398681640625, 0.004871368408203125, -0.00384521484375, 0.01076507568359375, -0.005344390869140625, -0.0020275115966796875, -0.0168609619140625, 0.0364990234375, 0.016510009765625, -0.037261962890625, 0.01432037353515625, 0.051849365234375, 0.002605438232421875, -0.01316070556640625, -0.04052734375, 0.0202484130859375, -0.020355224609375, 0.031097412109375, -0.0263671875, 0.00504302978515625, 0.00830841064453125, 0.053802490234375, -0.0047454833984375, 0.0194091796875, -0.0128173828125, -0.04473876953125, 0.04925537109375, 0.0004734992980957031, 0.00730133056640625, 0.00727081298828125, 0.008697509765625, -0.0213775634765625, -0.030181884765625, -0.0239410400390625, 0.0121612548828125, -0.0096282958984375, 0.0118408203125, -0.0099334716796875, -0.037994384765625, 0.0465087890625, -0.006137847900390625, -0.0043182373046875, -0.0084075927734375, -0.01934814453125, 0.0308685302734375, 0.08441162109375, -0.07574462890625, -0.03350830078125, -0.01117706298828125, 0.03369140625, -0.02978515625, -0.056121826171875, -0.01739501953125, -0.03436279296875, -0.122314453125, 0.0198516845703125, -0.00800323486328125, -0.018798828125, -0.038238525390625, 0.0679931640625, -0.08538818359375, -0.04071044921875, 0.03839111328125, -0.0164031982421875, 0.0198822021484375, -0.032379150390625, 0.0252685546875, -0.0679931640625, -0.0196685791015625, -0.013824462890625, 0.0026187896728515625, 0.0135345458984375, -0.0194854736328125, -0.0274810791015625, -0.0104217529296875, 0.03704833984375, 0.0035343170166015625, 0.0221099853515625, 0.0187835693359375, -0.0023708343505859375, 0.006256103515625, -0.0131683349609375, 0.0222930908203125, 0.0313720703125, 0.0086212158203125, -0.0091705322265625, -0.034332275390625, -0.04412841796875, -0.008148193359375, 0.0150299072265625, -0.02825927734375, 0.023712158203125, -0.01535797119140625, 0.0146636962890625, -0.039764404296875, -0.034942626953125, -0.009796142578125, -0.01221466064453125, -0.011444091796875, 0.02374267578125, -0.012359619140625, -0.0289764404296875, 0.037933349609375, 0.02630615234375, -0.00858306884765625, 0.0038661956787109375, 0.039794921875, 0.011505126953125, -0.030975341796875, 0.0011262893676757812, 0.0236968994140625, 0.044036865234375, -0.037994384765625, 0.03814697265625, -0.00476837158203125, -0.03973388671875, 0.10076904296875, -0.0101318359375, 0.0187835693359375, 0.00727081298828125, 0.041900634765625, 0.0194091796875, -0.0042877197265625, 0.0087127685546875, 0.0233306884765625, -0.0406494140625, 0.0243988037109375, 0.0079193115234375, 0.006317138671875, 0.0012922286987304688, -0.0006628036499023438, 0.0246429443359375, -0.0567626953125, -0.006954193115234375, -0.0025463104248046875, -0.00677490234375, 0.041259765625, 0.0148162841796875, 0.04388427734375, 0.005474090576171875, -0.016876220703125, -0.0122528076171875, 0.00603485107421875, -0.051971435546875, -0.024993896484375, -0.047271728515625, 0.0177459716796875, -0.052886962890625, -0.0193634033203125, 0.000644683837890625, 0.0012083053588867188, 0.003940582275390625, -0.01329803466796875, -0.033050537109375, -0.0176239013671875, -0.0048065185546875, 0.0243682861328125, 0.03912353515625, 0.034027099609375, 0.021575927734375, 0.0134124755859375, 0.0211639404296875, 0.00012022256851196289, -0.0098419189453125, 0.0125732421875, -0.0118865966796875, -0.0008716583251953125, 0.01788330078125, -0.024261474609375, 0.05792236328125, 0.0121002197265625, -0.0113067626953125, 0.041534423828125, -0.0112457275390625, -0.003490447998046875, -0.00926971435546875, 0.036041259765625, 0.02655029296875, -0.048675537109375, 0.0071258544921875, 0.00019609928131103516, 0.0127105712890625, -0.055633544921875, -0.004711151123046875, 0.0214080810546875, 0.03338623046875, 0.002178192138671875, -0.034088134765625, 0.0210113525390625, -0.00997161865234375, -0.0243988037109375, 0.0225067138671875, -0.0240936279296875, -0.03436279296875, -0.02581787109375, 0.0026683807373046875, 0.0173187255859375, -0.0063018798828125, -0.00998687744140625, -0.0265960693359375, -0.0352783203125, -0.006931304931640625, 0.054107666015625, -0.034088134765625, -0.0093994140625, -0.004291534423828125, -0.071533203125, -0.00510406494140625, 0.0219268798828125, -0.0738525390625, -0.04620361328125, -0.00067138671875, -0.0201873779296875, 0.01216888427734375, -0.019500732421875, 0.04986572265625, -0.018402099609375, -0.0178375244140625, 0.020172119140625, -0.00652313232421875, 0.058349609375, 0.040069580078125, -0.0350341796875, -0.01275634765625, -0.03839111328125, -0.0227813720703125, -0.01473236083984375, -0.020477294921875, -0.04095458984375, -0.0031681060791015625, 0.00972747802734375, -0.000492095947265625, 0.0215606689453125, -0.01271820068359375, -0.03607177734375, 0.01326751708984375, 0.0325927734375, -0.02423095703125, -0.0259857177734375, 0.0006165504455566406, 0.051513671875, 0.01192474365234375, 0.0086517333984375, -0.002483367919921875, 0.00257110595703125, -0.0294036865234375, 0.0025196075439453125, -0.05535888671875, -0.0308685302734375, -0.006561279296875, -0.03204345703125, 0.0211029052734375, 0.039794921875, -0.0013856887817382812, 0.0097503662109375, -0.04150390625, -0.00423431396484375, -0.021270751953125, 0.01678466796875, -0.0155181884765625, -0.0016193389892578125, 0.002170562744140625, 0.0020847320556640625, 0.052764892578125, -0.00608062744140625, -0.0005712509155273438, -0.0032634735107421875, -0.0248260498046875, 0.022491455078125, 0.015350341796875, -0.0207672119140625, 0.04315185546875, 0.044708251953125, -0.0148162841796875, 0.0207061767578125, 0.010772705078125, -0.0009737014770507812, 0.00827789306640625, 0.01021575927734375, 0.037689208984375, -0.005859375, 0.041778564453125, -0.005615234375, 0.00473785400390625, 0.018035888671875, -0.0452880859375, -0.033599853515625, 0.050537109375, 0.052276611328125, -0.0634765625, -0.0005464553833007812, 0.0257110595703125, 0.0294036865234375, -0.0137481689453125, 0.028228759765625, -0.0389404296875, -0.035888671875, -0.01171112060546875, -0.053497314453125, -0.035064697265625, -0.01372528076171875, 0.0146026611328125, 0.0228424072265625, -0.00293731689453125, 0.044921875, 0.01450347900390625, -0.05462646484375, -0.035675048828125, 0.0484619140625, -0.009979248046875, -0.0200347900390625, -0.01116180419921875, 0.06292724609375, -0.06195068359375, -0.092041015625, 0.031158447265625, 0.022369384765625, -0.023468017578125, -0.001590728759765625, -0.0279388427734375, -0.03509521484375, 0.01468658447265625, -0.043731689453125, 0.01419830322265625, -0.0021076202392578125, -0.1024169921875, 0.0096588134765625, 0.0030612945556640625, 0.042236328125, 0.0014142990112304688, -0.0902099609375, 0.01093292236328125, -0.05517578125, 0.0120697021484375, -0.00859832763671875, -0.04248046875, 0.07830810546875, -0.0472412109375, -0.005245208740234375, 0.0123443603515625, 0.0343017578125, 0.0085601806640625, -0.01078033447265625, 0.0328369140625, -0.0309906005859375, -0.0100250244140625, 0.007904052734375, -0.005069732666015625, -0.00646209716796875, -0.015350341796875, -0.0699462890625, 0.06964111328125, -0.0249176025390625, 0.05401611328125, 0.043853759765625, 0.001621246337890625, -0.0299835205078125, -0.022491455078125, -0.0236053466796875, 0.036376953125, 0.057464599609375, 0.003040313720703125, -0.0192108154296875, -0.018280029296875, -0.00423431396484375, 0.04864501953125, 0.0302886962890625, -0.0004506111145019531, 0.00946807861328125, -0.00539398193359375, 0.06878662109375, 0.049652099609375, 0.01519012451171875, 0.004302978515625, -0.01068115234375, 0.02239990234375, 0.01171112060546875, -0.0260162353515625, 0.03558349609375, -0.0283050537109375, -0.03900146484375, 0.0056915283203125, 0.02734375, 0.0269012451171875, -0.0002646446228027344, 0.0286102294921875, 0.0014095306396484375, -0.0194244384765625, -0.0010738372802734375, -0.0018205642700195312, 0.020111083984375, 0.036865234375, 0.0182952880859375, -0.03778076171875, -0.008087158203125, -0.03564453125, 0.04595947265625, -0.00463104248046875, 0.0227813720703125, 0.052276611328125, 0.0175018310546875, 0.0740966796875, -0.01092529296875, 0.01727294921875, -0.00945281982421875, -0.00711822509765625, 0.0294342041015625, -0.0026702880859375, 0.00362396240234375, -0.030914306640625, 0.04638671875, 0.036956787109375, 0.0288238525390625, -0.04534912109375, -0.071533203125, 0.014129638671875, 0.0136566162109375, -0.004230499267578125, 0.008148193359375, -0.003108978271484375, -0.0122222900390625, 0.0584716796875, -0.066162109375, 0.01141357421875, 0.055450439453125, 0.037933349609375, -0.002262115478515625, -0.0008044242858886719, -0.054718017578125, -0.02642822265625, -0.031646728515625, 0.0085296630859375, -0.01202392578125, 0.03131103515625, 0.02032470703125, 0.0499267578125, -0.01378631591796875, -0.0262451171875, 0.0181884765625, 0.0097808837890625, 0.0008592605590820312, -0.0245819091796875, 0.021331787109375, -0.00479888916015625, 0.006961822509765625, -0.00566864013671875, 0.00901031494140625, 0.00997161865234375, 0.05877685546875, 0.046356201171875, -0.03375244140625, -0.0156707763671875, -0.001605987548828125, -0.0186614990234375, -0.045562744140625, -0.009613037109375, 0.0038967132568359375, 0.049591064453125, 0.00814056396484375, 0.01161956787109375, 0.038604736328125, 0.05035400390625, -0.01904296875, 0.00467681884765625, 0.0034027099609375, -0.040740966796875, 0.00461578369140625, -0.016143798828125, 0.0328369140625, 0.0038890838623046875, -0.0892333984375, -0.041961669921875, -0.0145721435546875, -0.00913238525390625, 0.040740966796875, 0.04217529296875, -0.007659912109375, 0.0027103424072265625, 0.007083892822265625, -0.05255126953125, 0.0233001708984375, 0.0172271728515625, 0.0119476318359375, -0.00629425048828125, -0.004108428955078125, -0.0232086181640625, -0.0261688232421875, -0.00942230224609375, -0.01318359375, 0.0187530517578125, 0.0245513916015625, 0.03375244140625, -0.0114288330078125, 0.0269775390625, -0.035064697265625, 0.0634765625, -0.078125, -0.054473876953125, 0.05377197265625, 0.00180816650390625, 0.00481414794921875, -0.009735107421875, -0.0229034423828125, 0.000053942203521728516, 0.039947509765625, -0.044097900390625, -0.0005993843078613281, -0.0013952255249023438, 0.00901031494140625, -0.033233642578125, 0.036041259765625, -0.024017333984375, -0.007965087890625, -0.0379638671875, -0.0267486572265625, 0.028594970703125, 0.01387786865234375, 0.0163421630859375, -0.00038242340087890625, 0.00331878662109375, -0.01468658447265625, 0.02337646484375, 0.00739288330078125, 0.0193634033203125, 0.03497314453125, -0.00879669189453125, -0.00365447998046875, 0.017730712890625, -0.008148193359375, 0.0031337738037109375, 0.025970458984375, 0.00411224365234375, 0.0167999267578125, -0.014556884765625, -0.0254058837890625, 0.0154571533203125, -0.000904083251953125, -0.03515625, -0.001308441162109375, 0.004528045654296875, -0.0307464599609375, 0.003810882568359375, -0.017242431640625, -0.055877685546875, -0.03839111328125, -0.016845703125, 0.01123046875, -0.039764404296875, -0.08355712890625, -0.1129150390625, 0.00481414794921875, 0.039947509765625, 0.00849151611328125, -0.04022216796875, 0.031646728515625, -0.023284912109375, 0.025421142578125, 0.007213592529296875, 0.009857177734375, -0.01043701171875, -0.002811431884765625, -0.053466796875, -0.003025054931640625, -0.053070068359375, -0.0027523040771484375, -0.035919189453125, 0.017303466796875, 0.019134521484375, -0.01629638671875, 0.01293182373046875, 0.0204925537109375, 0.0223236083984375, 0.0660400390625, 0.02239990234375, -0.01084136962890625, -0.028350830078125, 0.05230712890625, -0.033538818359375, -0.04248046875, 0.0130462646484375, 0.00969696044921875, -0.0068817138671875, 0.043975830078125, -0.0399169921875, 0.0047607421875, -0.0374755859375, -0.0738525390625, 0.053253173828125, 0.003009796142578125, -0.03521728515625, 0.0170745849609375, 0.01111602783203125, -0.017852783203125, 0.006954193115234375, 0.0201416015625, -0.0248565673828125, 0.0005679130554199219, -0.00989532470703125, 0.03424072265625, 0.047882080078125, 0.0166778564453125, 0.03826904296875, -0.063232421875, 0.0087127685546875, -0.032806396484375, 0.044952392578125, -0.007205963134765625, 0.02728271484375, -0.0014247894287109375, 0.0299072265625, -0.03082275390625, 0.042816162109375, -0.01293182373046875, -0.0002586841583251953, 0.009765625, -0.05670166015625, -0.035369873046875, -0.038970947265625, 0.047119140625, 0.005252838134765625, 0.017364501953125, 0.00109100341796875, -0.01137542724609375, -0.042510986328125, -0.006381988525390625, -0.01181793212890625, 0.00841522216796875, -0.040374755859375, -0.01678466796875, 0.02197265625, 0.00021123886108398438, 0.0164031982421875, -0.049560546875, -0.012847900390625, -0.0215911865234375, -0.00847625732421875, 0.02264404296875, -0.037933349609375, -0.004241943359375, -0.00955963134765625, -0.0176849365234375, -0.035858154296875, -0.02374267578125, 0.0216827392578125, -0.0416259765625, -0.0258941650390625, -0.050537109375, -0.0460205078125, 0.003993988037109375, 0.0245208740234375, -0.026031494140625, 0.0294647216796875, 0.0022716522216796875, 0.0153961181640625, -0.039398193359375, -0.008026123046875, 0.00670623779296875, -0.0238494873046875, -0.00629425048828125, 0.0452880859375, 0.04949951171875, 0.0215301513671875, 0.008056640625, -0.0160369873046875, -0.026031494140625, 0.0596923828125, 0.0219573974609375, -0.035003662109375, 0.04681396484375, -0.0382080078125, -0.01386260986328125, -0.00283050537109375, -0.031890869140625, -0.052215576171875, -0.0001531839370727539, -0.04632568359375, 0.0007848739624023438, 0.0173797607421875 ]
32bef5dc445616d275c4fafc7a444e2d1c17b2cf
Wordpress Stackexchange Q: Prevent second widget activation Is there a way to "remove the widget from available widgets" after you've activated it once on some area? The idea is to allow user to activate only one instance of it. A: You can create a one-time-use widget with the following example found here: wp_register_sidebar_widget The following code will create a widget called "Your Widget" which will become available in the WordPress Administrative Panels. The widget can then be dragged to an available sidebar for display. Note that this widget can only be used once in exactly 1 of the sidebars. For recursive widgets (widgets you can add to multiple times and add to multiple sidebars) please see the Register Widget function. function your_widget_display($args) { extract($args); echo $before_widget; echo $before_title . 'My Unique Widget' . $after_title; echo $after_widget; // print some HTML for the widget to display here echo "Your Widget Test"; } wp_register_sidebar_widget( 'your_widget_1', // your unique widget id 'Your Widget', // widget name 'your_widget_display', // callback function array( // options 'description' => 'Description of what your widget does' ) );
Q: Prevent second widget activation Is there a way to "remove the widget from available widgets" after you've activated it once on some area? The idea is to allow user to activate only one instance of it. A: You can create a one-time-use widget with the following example found here: wp_register_sidebar_widget The following code will create a widget called "Your Widget" which will become available in the WordPress Administrative Panels. The widget can then be dragged to an available sidebar for display. Note that this widget can only be used once in exactly 1 of the sidebars. For recursive widgets (widgets you can add to multiple times and add to multiple sidebars) please see the Register Widget function. function your_widget_display($args) { extract($args); echo $before_widget; echo $before_title . 'My Unique Widget' . $after_title; echo $after_widget; // print some HTML for the widget to display here echo "Your Widget Test"; } wp_register_sidebar_widget( 'your_widget_1', // your unique widget id 'Your Widget', // widget name 'your_widget_display', // callback function array( // options 'description' => 'Description of what your widget does' ) ); A: You can use JQuery to remove it from "avilable widgets" panel if it has been used once. $( document ).ready( function() { $( '#widgets-right input[value="widget-id_base"]').each( function () { $( '#widgets-left .widget:has(input[value="widget-id_base"])' ).css( 'display', 'none' ); } ); } ); A: That is not an really good Idea. Because Themes wich I develope are more complex, so that you have different Sidebars through the different Views. For Example: Standard-Sidebar: Displays next to the Content Shop-Sidebar: Displays next to the Shop-Overview So and now I want to place your Widget into both Sidebars, because there is no view, where both sidebars are visible at the same time. What you search for, is discard the Placement of your widget into an sidebar, where your Widget is still existing, right?
wordpress
{ "language": "en", "length": 305, "provenance": "stackexchange_00019.jsonl.gz:443850", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/139998" }
[ 0.06982421875, -0.0020465850830078125, 0.01512908935546875, -0.0310821533203125, 0.0256500244140625, -0.035247802734375, 0.049224853515625, -0.0283355712890625, 0.00010955333709716797, 0.037811279296875, -0.00824737548828125, -0.0156707763671875, -0.02398681640625, -0.00841522216796875, -0.043304443359375, -0.03985595703125, 0.0247039794921875, 0.0245361328125, 0.01215362548828125, -0.01708984375, 0.007373809814453125, 0.0031337738037109375, -0.001285552978515625, 0.1016845703125, 0.0049591064453125, -0.0264739990234375, 0.074951171875, -0.015655517578125, -0.0088653564453125, -0.04412841796875, 0.019378662109375, 0.0268402099609375, 0.01251983642578125, 0.006305694580078125, -0.007266998291015625, -0.007534027099609375, -0.0282745361328125, 0.011688232421875, -0.0064849853515625, 0.0205841064453125, 0.0079498291015625, -0.01291656494140625, -0.003231048583984375, -0.032135009765625, -0.0248565673828125, 0.004032135009765625, 0.0095672607421875, -0.004730224609375, 0.0003581047058105469, -0.0076751708984375, 0.0335693359375, -0.00925445556640625, 0.05108642578125, -0.033416748046875, -0.0261077880859375, -0.016845703125, 0.0095367431640625, -0.02423095703125, 0.04425048828125, 0.02001953125, -0.03485107421875, -0.0218963623046875, 0.0241241455078125, -0.054351806640625, -0.0015583038330078125, -0.0260772705078125, -0.06622314453125, 0.0177459716796875, -0.0217437744140625, 0.014678955078125, 0.0543212890625, -0.032684326171875, -0.006549835205078125, -0.021331787109375, -0.027984619140625, 0.026702880859375, 0.01496124267578125, 0.01007080078125, 0.007740020751953125, -0.01367950439453125, 0.02752685546875, -0.0092620849609375, 0.0029964447021484375, -0.00116729736328125, 0.01105499267578125, 0.01465606689453125, -0.01244354248046875, -0.0131988525390625, -0.0267486572265625, 0.0251617431640625, -0.01708984375, -0.045623779296875, 0.053558349609375, -0.0166778564453125, -0.00841522216796875, -0.0156402587890625, 0.0281524658203125, 0.036895751953125, -0.015106201171875, 0.0178375244140625, -0.0042266845703125, -0.024932861328125, 0.039581298828125, -0.04071044921875, 0.0241851806640625, 0.06561279296875, -0.033172607421875, -0.013427734375, 0.049591064453125, 0.0247344970703125, 0.03680419921875, -0.0192108154296875, 0.023681640625, -0.01270294189453125, -0.02130126953125, 0.00171661376953125, -0.00897979736328125, 0.01320648193359375, 0.0150604248046875, 0.0142822265625, 0.005168914794921875, 0.005695343017578125, 0.034881591796875, 0.003925323486328125, -0.0029144287109375, -0.01241302490234375, -0.023895263671875, -0.03143310546875, 0.01447296142578125, -0.03411865234375, -0.02874755859375, 0.0267333984375, 0.064453125, 0.03265380859375, 0.006206512451171875, 0.0070037841796875, 0.01776123046875, 0.045745849609375, 0.032623291015625, 0.01238250732421875, -0.007476806640625, -0.04730224609375, -0.00653076171875, 0.013641357421875, 0.0012807846069335938, 0.0224151611328125, 0.0074005126953125, -0.0188140869140625, 0.013671875, -0.00934600830078125, -0.021392822265625, -0.06475830078125, 0.0276031494140625, 0.01812744140625, -0.02679443359375, 0.00893402099609375, 0.00446319580078125, -0.01898193359375, -0.020172119140625, -0.021820068359375, 0.0213623046875, -0.032012939453125, -0.04364013671875, -0.0261688232421875, -0.048675537109375, 0.037933349609375, 0.0009441375732421875, 0.01165008544921875, 0.016510009765625, 0.04443359375, -0.02838134765625, -0.050689697265625, -0.0256805419921875, 0.0060577392578125, -0.004680633544921875, 0.055419921875, -0.01006317138671875, 0.0208740234375, 0.0244903564453125, -0.037384033203125, -0.062347412109375, -0.052215576171875, 0.05084228515625, -0.032379150390625, -0.0772705078125, 0.004039764404296875, 0.0147705078125, 0.06671142578125, 0.01934814453125, 0.0276031494140625, 0.03399658203125, 0.0031261444091796875, -0.029876708984375, -0.013153076171875, -0.0005922317504882812, -0.0269622802734375, -0.003322601318359375, -0.01800537109375, -0.0004868507385253906, 0.0221710205078125, 0.0869140625, -0.01325225830078125, 0.02496337890625, -0.040924072265625, -0.11767578125, 0.018218994140625, -0.04437255859375, 0.0306243896484375, -0.00022649765014648438, 0.01611328125, 0.01202392578125, -0.00008177757263183594, -0.01442718505859375, 0.00951385498046875, -0.0185546875, -0.0244293212890625, 0.0155487060546875, 0.1087646484375, 0.022430419921875, 0.025421142578125, 0.033294677734375, -0.04803466796875, 0.0634765625, 0.0253448486328125, 0.07611083984375, -0.01296234130859375, -0.0148468017578125, -0.045257568359375, 0.0272064208984375, -0.007534027099609375, -0.06390380859375, 0.07476806640625, 0.012237548828125, -0.0185394287109375, -0.02862548828125, 0.006855010986328125, -0.00027370452880859375, -0.055694580078125, -0.01033782958984375, 0.0511474609375, 0.0185394287109375, -0.0194244384765625, 0.0063018798828125, 0.0665283203125, -0.01461029052734375, -0.082275390625, 0.004642486572265625, 0.039581298828125, -0.031951904296875, -0.006378173828125, -0.01611328125, 0.04254150390625, 0.02667236328125, -0.0173492431640625, 0.005245208740234375, 0.035797119140625, -0.03729248046875, 0.0158538818359375, 0.0028781890869140625, -0.03955078125, 0.0027923583984375, -0.06256103515625, -0.00928497314453125, -0.042327880859375, 0.005634307861328125, 0.01593017578125, 0.0330810546875, 0.0238189697265625, 0.0003795623779296875, -0.0113677978515625, 0.00858306884765625, -0.00998687744140625, -0.0094146728515625, -0.00717926025390625, 0.056243896484375, -0.03863525390625, -0.039276123046875, -0.0020694732666015625, 0.01244354248046875, -0.0227203369140625, -0.0007753372192382812, 0.01727294921875, -0.03680419921875, -0.01288604736328125, 0.0002162456512451172, -0.044219970703125, -0.0205535888671875, 0.022918701171875, -0.0157928466796875, -0.022003173828125, -0.0139007568359375, 0.047943115234375, -0.00576019287109375, 0.02386474609375, 0.01505279541015625, -0.0160980224609375, 0.0169525146484375, -0.0013103485107421875, 0.0020008087158203125, -0.0164031982421875, 0.01525115966796875, 0.033538818359375, 0.00540924072265625, -0.0259246826171875, -0.0038509368896484375, 0.00962066650390625, 0.0148468017578125, -0.0173797607421875, -0.0136566162109375, 0.00905609130859375, -0.055206298828125, 0.006214141845703125, 0.01001739501953125, 0.0323486328125, -0.00827789306640625, -0.03729248046875, 0.004665374755859375, -0.002552032470703125, -0.0301666259765625, -0.039154052734375, 0.01152801513671875, -0.036865234375, 0.022735595703125, 0.01355743408203125, -0.0180816650390625, -0.028564453125, 0.04876708984375, 0.0113983154296875, -0.02667236328125, -0.0162200927734375, -0.02960205078125, -0.017181396484375, -0.015350341796875, 0.0318603515625, -0.0172576904296875, 0.0015888214111328125, 0.006114959716796875, 0.020538330078125, 0.0067901611328125, -0.035125732421875, 0.0380859375, -0.01103973388671875, -0.0029048919677734375, 0.01837158203125, -0.0189361572265625, -0.0215911865234375, -0.000057220458984375, -0.00769805908203125, 0.00667572021484375, -0.012054443359375, 0.023834228515625, -0.0029354095458984375, 0.043853759765625, 0.007045745849609375, 0.05389404296875, 0.01074981689453125, -0.07220458984375, -0.006526947021484375, 0.01251983642578125, -0.0399169921875, 0.0267486572265625, 0.01313018798828125, -0.0140533447265625, -0.0997314453125, -0.01629638671875, -0.01506805419921875, -0.0173492431640625, -0.0178070068359375, -0.007335662841796875, 0.002513885498046875, -0.004222869873046875, -0.015533447265625, 0.06298828125, -0.0185089111328125, -0.010528564453125, -0.01445770263671875, 0.00725555419921875, -0.0282135009765625, -0.025634765625, -0.0154266357421875, 0.0133209228515625, 0.00540924072265625, -0.0096893310546875, -0.017059326171875, -0.00037598609924316406, 0.01378631591796875, -0.005046844482421875, 0.00865936279296875, 0.02679443359375, -0.00603485107421875, 0.0271148681640625, 0.05267333984375, -0.079345703125, -0.00904083251953125, -0.00518035888671875, 0.0161285400390625, -0.03594970703125, -0.03887939453125, -0.049713134765625, -0.0060272216796875, -0.10595703125, 0.01861572265625, 0.0216522216796875, -0.0565185546875, 0.0007109642028808594, -0.0287017822265625, -0.058197021484375, -0.035858154296875, 0.04571533203125, -0.053253173828125, 0.03436279296875, 0.0012722015380859375, 0.01367950439453125, -0.039886474609375, -0.0108795166015625, -0.039886474609375, -0.039825439453125, 0.01045989990234375, -0.031646728515625, 0.012664794921875, 0.032257080078125, -0.0192413330078125, 0.00905609130859375, 0.0208587646484375, 0.030517578125, 0.00809478759765625, 0.0303955078125, 0.00005221366882324219, 0.0025043487548828125, -0.0213623046875, 0.02593994140625, -0.0279388427734375, 0.002643585205078125, 0.007579803466796875, -0.0271453857421875, 0.0251007080078125, -0.023773193359375, 0.01251220703125, 0.021820068359375, -0.0419921875, -0.00801849365234375, -0.01508331298828125, -0.017669677734375, 0.05096435546875, -0.0189208984375, 0.0220794677734375, -0.054290771484375, -0.041290283203125, -0.034149169921875, -0.031341552734375, -0.01146697998046875, 0.03912353515625, 0.0267333984375, 0.031005859375, 0.00855255126953125, -0.01837158203125, -0.04449462890625, 0.0400390625, 0.034393310546875, -0.001979827880859375, 0.030364990234375, -0.02423095703125, -0.0114593505859375, 0.0252838134765625, -0.042633056640625, 0.026947021484375, 0.10235595703125, 0.02056884765625, -0.022491455078125, 0.00620269775390625, -0.0231781005859375, -0.04931640625, 0.013519287109375, -0.0094451904296875, -0.0015773773193359375, 0.03387451171875, 0.012725830078125, -0.016265869140625, -0.00960540771484375, -0.01617431640625, 0.038360595703125, -0.010040283203125, 0.0181121826171875, 0.0185699462890625, 0.007038116455078125, 0.0209197998046875, -0.06317138671875, 0.0011301040649414062, -0.0154266357421875, 0.00897216796875, -0.004016876220703125, 0.002429962158203125, 0.0036487579345703125, 0.0304412841796875, -0.01739501953125, 0.01198577880859375, 0.00931549072265625, 0.035003662109375, 0.0168304443359375, -0.0301055908203125, -0.007015228271484375, 0.00787353515625, 0.0072021484375, 0.01293182373046875, 0.0721435546875, 0.00946044921875, 0.006336212158203125, 0.0086822509765625, -0.007038116455078125, 0.055084228515625, 0.0090484619140625, -0.00914764404296875, -0.0443115234375, -0.005489349365234375, -0.0127410888671875, 0.0015859603881835938, 0.05419921875, -0.005290985107421875, 0.035308837890625, -0.031341552734375, 0.0775146484375, 0.078369140625, -0.01276397705078125, 0.005462646484375, 0.02362060546875, 0.00191497802734375, -0.043060302734375, -0.017913818359375, -0.03985595703125, -0.0293426513671875, 0.0305328369140625, 0.02532958984375, 0.020843505859375, 0.0175628662109375, 0.0008058547973632812, 0.00891876220703125, -0.021392822265625, 0.055084228515625, -0.0044097900390625, -0.06890869140625, -0.016571044921875, 0.0208282470703125, 0.043243408203125, -0.0374755859375, -0.0002193450927734375, -0.0134429931640625, -0.044677734375, -0.00039386749267578125, -0.0014600753784179688, 0.0024814605712890625, -0.00872039794921875, -0.01488494873046875, -0.0164642333984375, -0.0178070068359375, -0.00894927978515625, -0.054107666015625, -0.0285797119140625, 0.025299072265625, -0.0012960433959960938, -0.0269317626953125, -0.040496826171875, 0.02728271484375, -0.0309906005859375, 0.0201873779296875, -0.0791015625, 0.015167236328125, 0.032867431640625, 0.0215301513671875, -0.0506591796875, -0.00925445556640625, -0.037353515625, -0.0091094970703125, -0.046722412109375, -0.07904052734375, -0.03277587890625, -0.006290435791015625, 0.0125579833984375, 0.024444580078125, 0.00475311279296875, 0.0099639892578125, -0.00579071044921875, -0.00275421142578125, -0.00965118408203125, 0.0307464599609375, -0.020904541015625, 0.0089874267578125, 0.0311737060546875, 0.05377197265625, 0.005367279052734375, -0.0250701904296875, -0.0068817138671875, -0.033538818359375, 0.019775390625, -0.0206756591796875, -0.0313720703125, -0.0318603515625, -0.035064697265625, -0.0144195556640625, 0.0300750732421875, -0.030548095703125, 0.00861358642578125, 0.000774383544921875, -0.0045928955078125, 0.00949859619140625, 0.0178070068359375, 0.030609130859375, 0.0250701904296875, 0.035491943359375, -0.07281494140625, -0.01485443115234375, 0.023590087890625, 0.034027099609375, 0.0239715576171875, -0.064453125, 0.00872039794921875, 0.064208984375, -0.07073974609375, 0.064208984375, 0.028656005859375, 0.023040771484375, 0.044525146484375, -0.027191162109375, 0.025634765625, 0.0078277587890625, -0.01215362548828125, -0.017364501953125, 0.013519287109375, 0.032958984375, -0.01654052734375, 0.0233154296875, 0.036285400390625, -0.0009150505065917969, -0.0194244384765625, 0.005283355712890625, 0.01470184326171875, -0.050567626953125, 0.020660400390625, 0.0020198822021484375, 0.0250091552734375, 0.01390838623046875, -0.0277557373046875, -0.01629638671875, -0.041046142578125, 0.0718994140625, 0.040008544921875, -0.00894927978515625, 0.0236663818359375, 0.00421905517578125, 0.0077362060546875, 0.0018415451049804688, 0.039764404296875, 0.00963592529296875, -0.056182861328125, -0.00980377197265625, 0.0526123046875, -0.0104827880859375, -0.0203094482421875, -0.0219879150390625, 0.03729248046875, -0.0266571044921875, -0.08062744140625, -0.00589752197265625, -0.030975341796875, -0.0176849365234375, 0.0369873046875, -0.01025390625, 0.0504150390625, 0.029266357421875, 0.01381683349609375, 0.01355743408203125, -0.0309600830078125, 0.026611328125, -0.012420654296875, -0.005809783935546875, 0.003231048583984375, 0.00621795654296875, -0.0281524658203125, 0.0170440673828125, -0.040313720703125, -0.00792694091796875, -0.006702423095703125, 0.0289764404296875, 0.093994140625, -0.0197906494140625, -0.031646728515625, 0.026153564453125, -0.00872039794921875, -0.0140533447265625, -0.0224456787109375, 0.01367950439453125, -0.0777587890625, -0.0609130859375, -0.0203399658203125, -0.07940673828125, -0.0294036865234375, -0.056304931640625, -0.0458984375, 0.1363525390625, -0.009246826171875, 0.021270751953125, 0.030792236328125, 0.051605224609375, -0.046905517578125, 0.0298919677734375, -0.03851318359375, 0.0309906005859375, -0.01323699951171875, 0.042449951171875, -0.016204833984375, 0.023193359375, 0.0020694732666015625, -0.0202178955078125, 0.07208251953125, 0.01641845703125, 0.035888671875, -0.00445556640625, 0.01202392578125, 0.0117034912109375, -0.052337646484375, 0.008148193359375, 0.0216827392578125, 0.014373779296875, 0.002719879150390625, 0.0044708251953125, 0.03631591796875, -0.034210205078125, -0.03155517578125, 0.050323486328125, 0.006504058837890625, -0.002643585205078125, -0.00635528564453125, 0.0247650146484375, 0.003993988037109375, -0.0134735107421875, 0.00637054443359375, 0.002277374267578125, -0.0254669189453125, 0.0570068359375, 0.007068634033203125, 0.0252532958984375, 0.04791259765625, -0.046600341796875, 0.05633544921875, 0.010498046875, 0.00984954833984375, 0.01387786865234375, 0.0189056396484375, 0.0060272216796875, 0.04193115234375, 0.02349853515625, 0.05572509765625, -0.01064300537109375, 0.0293121337890625, 0.02105712890625, 0.048492431640625, -0.0201873779296875, -0.00698089599609375, 0.0126495361328125, 0.03558349609375, -0.02691650390625, -0.07061767578125, 0.006744384765625, 0.015869140625, 0.0165557861328125, 0.041107177734375, 0.0338134765625, -0.0450439453125, 0.02410888671875, -0.0135498046875, 0.0024852752685546875, 0.01336669921875, 0.0369873046875, -0.0100555419921875, 0.0017671585083007812, -0.036224365234375, -0.00438690185546875, -0.044189453125, -0.0197296142578125, 0.024200439453125, 0.06756591796875, 0.042755126953125, 0.035308837890625, 0.023712158203125, -0.039306640625, -0.0176239013671875, 0.0229034423828125, -0.005138397216796875, 0.02410888671875, -0.05999755859375, -0.046600341796875, 0.04010009765625, 0.027679443359375, -0.006801605224609375, 0.003490447998046875, 0.0189666748046875, 0.03662109375, -0.01690673828125, -0.0218353271484375, 0.039703369140625, -0.014007568359375, 0.055572509765625, -0.038299560546875, 0.004436492919921875, -0.031585693359375, -0.03021240234375, -0.035614013671875, 0.0032138824462890625, -0.005535125732421875, 0.0046234130859375, 0.010711669921875, -0.00002199411392211914, 0.005767822265625, 0.06689453125, -0.02471923828125, 0.031280517578125, 0.005336761474609375, -0.11566162109375, -0.017913818359375, 0.003612518310546875, -0.06158447265625, 0.03143310546875, 0.0478515625, -0.086181640625, 0.053558349609375, 0.0023021697998046875, 0.026947021484375, -0.004150390625, -0.05816650390625, 0.034820556640625, -0.019195556640625, 0.0063934326171875, 0.02667236328125, -0.04498291015625, 0.005397796630859375, 0.0033512115478515625, 0.005889892578125, 0.0261688232421875, -0.0002219676971435547, 0.035736083984375, 0.02496337890625, -0.03875732421875, 0.00827789306640625, -0.017578125, -0.02728271484375, -0.01015472412109375, 0.0261688232421875, 0.00237274169921875, -0.007724761962890625, -0.0177764892578125, 0.00843048095703125, 0.02880859375, -0.018402099609375, 0.01279449462890625, -0.02947998046875, 0.016845703125, -0.0098876953125, 0.004596710205078125, -0.0177764892578125, -0.00818634033203125, -0.013275146484375, 0.00897979736328125, 0.03277587890625, 0.031585693359375, -0.00572967529296875, -0.009185791015625, 0.010040283203125, -0.034942626953125, 0.0010099411010742188, 0.0128326416015625, -0.036895751953125, 0.015472412109375, 0.05816650390625, -0.0193023681640625, -0.03277587890625, -0.02642822265625, -0.00537872314453125, 0.00626373291015625, 0.0223541259765625, -0.019866943359375, -0.0188140869140625, -0.015899658203125, -0.0013599395751953125, -0.0202789306640625, -0.05322265625, -0.0150604248046875, 0.0333251953125, -0.020294189453125, -0.0053253173828125, -0.0014562606811523438, -0.020599365234375, -0.06097412109375, -0.0158843994140625, 0.02276611328125, -0.052276611328125, 0.01340484619140625, -0.048095703125, 0.02069091796875, 0.0487060546875, 0.028228759765625, -0.059417724609375, 0.05328369140625, -0.02587890625, 0.00783538818359375, 0.0226287841796875, 0.0124664306640625, -0.00618743896484375, -0.0003044605255126953, -0.056671142578125, 0.001056671142578125, -0.0478515625, -0.0014972686767578125, -0.0125579833984375, -0.020599365234375, -0.0236968994140625, -0.015625, 0.036163330078125, -0.0050506591796875, 0.0210418701171875, 0.0180816650390625, 0.040985107421875, 0.004039764404296875, -0.01312255859375, 0.034271240234375, -0.02435302734375, -0.0626220703125, 0.01308441162109375, -0.0200653076171875, -0.01568603515625, -0.031280517578125, -0.0054473876953125, -0.01474761962890625, -0.031768798828125, -0.04815673828125, 0.0271453857421875, -0.00937652587890625, -0.0287628173828125, -0.01629638671875, 0.0103912353515625, -0.043548583984375, 0.0297393798828125, 0.0083770751953125, -0.016143798828125, 0.033416748046875, 0.05279541015625, 0.018280029296875, 0.034027099609375, 0.01544189453125, 0.03118896484375, -0.033721923828125, 0.007740020751953125, -0.0280303955078125, 0.0261383056640625, -0.0213165283203125, -0.01122283935546875, -0.0001983642578125, -0.01033782958984375, -0.0452880859375, -0.026123046875, 0.007640838623046875, 0.0445556640625, -0.01398468017578125, -0.048370361328125, -0.0227203369140625, -0.0201416015625, 0.06756591796875, 0.05706787109375, 0.0275421142578125, -0.037689208984375, -0.01239776611328125, -0.022216796875, -0.040557861328125, 0.0036830902099609375, 0.025970458984375, -0.054168701171875, 0.0004420280456542969, 0.0060272216796875, -0.01428985595703125, 0.035430908203125, 0.00002378225326538086, -0.0255889892578125, 0.01377105712890625, 0.0300445556640625, 0.0308837890625, -0.0963134765625, 0.007106781005859375, -0.0037670135498046875, 0.01300811767578125, 0.041900634765625, -0.05059814453125, 0.0189666748046875, 0.01274871826171875, -0.013519287109375, -0.01383209228515625, 0.0008678436279296875, -0.039825439453125, 0.00833892822265625, -0.0204925537109375, 0.067626953125, -0.0357666015625, -0.012054443359375, -0.037689208984375, 0.007091522216796875, 0.007602691650390625, -0.0012531280517578125, 0.025970458984375, 0.0098724365234375, 0.020233154296875, 0.028656005859375, -0.0077667236328125, 0.07904052734375, -0.0090484619140625, 0.046875, 0.00638580322265625, -0.0142669677734375, 0.02349853515625, -0.005245208740234375, 0.00327301025390625, -0.0312347412109375, 0.036041259765625, -0.055084228515625, 0.032318115234375, 0.0174407958984375, 0.00685882568359375, 0.034515380859375 ]
a801f9247b8832770128949a297c31118c355b69
Wordpress Stackexchange Q: Get first post from wp_query How can I get the first post from a WP_Query result? $connected = new WP_Query( array( // Arguments )); // This doesn't work.. echo $connected[0]->post_name; A: If you poke through WP_Query the set of queried posts is saved into posts property and current post gets assigned to post one (each time loop iterates). So you could do $connected->posts[0] if you need to just fetch that, but it might be more convenient to do $connected->the_post(); then $connected->post if you need to skip first one and process the rest in normal loop.
Q: Get first post from wp_query How can I get the first post from a WP_Query result? $connected = new WP_Query( array( // Arguments )); // This doesn't work.. echo $connected[0]->post_name; A: If you poke through WP_Query the set of queried posts is saved into posts property and current post gets assigned to post one (each time loop iterates). So you could do $connected->posts[0] if you need to just fetch that, but it might be more convenient to do $connected->the_post(); then $connected->post if you need to skip first one and process the rest in normal loop. A: You may use a code like this: if ($the_query->have_posts()) { $first_post = $the_query->posts[0]; echo "1st post title\t:"$first_post->post_title; }
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:443913", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140180" }
[ 0.0271759033203125, -0.0171966552734375, -0.0046234130859375, 0.0213470458984375, -0.00954437255859375, -0.04229736328125, 0.043670654296875, -0.03448486328125, -0.008636474609375, 0.03887939453125, -0.026611328125, 0.016876220703125, 0.004627227783203125, -0.0114288330078125, -0.006500244140625, -0.0197906494140625, 0.04180908203125, -0.0224761962890625, 0.01096343994140625, 0.007289886474609375, 0.01131439208984375, 0.041961669921875, 0.0079193115234375, 0.045654296875, 0.0219268798828125, -0.002445220947265625, 0.033233642578125, -0.01824951171875, 0.026123046875, 0.0053558349609375, 0.014068603515625, -0.0278167724609375, -0.0028533935546875, 0.016204833984375, 0.0049896240234375, -0.045318603515625, 0.0201873779296875, -0.0117645263671875, 0.0030517578125, 0.04241943359375, 0.02593994140625, 0.00010377168655395508, -0.0440673828125, 0.03485107421875, -0.039947509765625, -0.038818359375, 0.01181793212890625, -0.02069091796875, 0.041656494140625, -0.0296478271484375, -0.018280029296875, 0.03790283203125, 0.0030670166015625, -0.0101318359375, -0.03369140625, -0.00435638427734375, 0.0208740234375, -0.0364990234375, 0.0350341796875, -0.039337158203125, -0.0345458984375, -0.03948974609375, 0.049591064453125, -0.004566192626953125, -0.043975830078125, 0.010528564453125, 0.037353515625, -0.007965087890625, -0.003383636474609375, -0.054046630859375, -0.0007805824279785156, 0.01276397705078125, -0.003711700439453125, 0.01270294189453125, -0.02325439453125, -0.0303497314453125, 0.03369140625, -0.0236968994140625, 0.0037078857421875, 0.02203369140625, 0.0044403076171875, -0.0176544189453125, -0.041259765625, 0.003818511962890625, -0.00963592529296875, 0.0040435791015625, -0.01397705078125, -0.0010986328125, -0.01007843017578125, -0.0177154541015625, -0.0179290771484375, 0.021484375, -0.0190277099609375, -0.007404327392578125, -0.038604736328125, -0.0166473388671875, 0.021881103515625, 0.022552490234375, -0.0168304443359375, -0.0191497802734375, -0.02593994140625, -0.01204681396484375, -0.0220947265625, -0.007808685302734375, 0.0274505615234375, -0.00836944580078125, -0.007061004638671875, -0.01462554931640625, 0.06695556640625, 0.0228118896484375, -0.01477813720703125, 0.12481689453125, -0.01416015625, -0.027618408203125, -0.01331329345703125, 0.046112060546875, -0.022369384765625, 0.0113067626953125, 0.0131683349609375, 0.0115203857421875, -0.0069122314453125, 0.004238128662109375, -0.002105712890625, -0.022735595703125, 0.031768798828125, -0.0017042160034179688, -0.017486572265625, 0.0178070068359375, -0.0290985107421875, 0.025970458984375, -0.0117645263671875, 0.0011234283447265625, 0.04913330078125, 0.03277587890625, 0.0006866455078125, -0.0205078125, 0.036468505859375, 0.032073974609375, 0.03118896484375, -0.0119781494140625, 0.03546142578125, -0.049774169921875, -0.0465087890625, 0.040771484375, -0.011932373046875, 0.00760650634765625, 0.0256805419921875, 0.019989013671875, -0.040313720703125, -0.048919677734375, 0.0029621124267578125, 0.032562255859375, -0.0223846435546875, 0.01274871826171875, 0.027252197265625, -0.007091522216796875, 0.005054473876953125, -0.00653076171875, 0.033416748046875, 0.0165557861328125, 0.036529541015625, 0.0196685791015625, 0.004962921142578125, 0.03204345703125, 0.004016876220703125, -0.031097412109375, -0.0108489990234375, -0.0084381103515625, 0.0215606689453125, 0.045135498046875, -0.01221466064453125, -0.01468658447265625, 0.031280517578125, -0.018280029296875, -0.037261962890625, -0.015106201171875, -0.00746917724609375, -0.01410675048828125, -0.0038604736328125, 0.03424072265625, 0.0084075927734375, -0.02587890625, -0.03363037109375, 0.02581787109375, -0.01500701904296875, 0.0509033203125, 0.0186920166015625, 0.049530029296875, -0.0279083251953125, 0.0206756591796875, 0.0168609619140625, 0.05169677734375, -0.07147216796875, 0.0247039794921875, -0.024505615234375, 0.0167236328125, -0.015655517578125, 0.02703857421875, -0.019195556640625, -0.01027679443359375, 0.051177978515625, -0.0083770751953125, 0.0078887939453125, 0.0081329345703125, -0.04888916015625, -0.0026798248291015625, -0.0079498291015625, 0.0014524459838867188, 0.0167083740234375, -0.0034694671630859375, 0.0153350830078125, 0.0025787353515625, -0.0113983154296875, -0.053070068359375, -0.04974365234375, 0.020355224609375, -0.018218994140625, 0.00482940673828125, -0.033599853515625, -0.01849365234375, -0.0279541015625, -0.040313720703125, -0.034942626953125, 0.0299072265625, 0.06341552734375, -0.033233642578125, 0.000048995018005371094, -0.03619384765625, 0.0675048828125, -0.00971221923828125, -0.02447509765625, 0.02947998046875, -0.0199127197265625, -0.00617218017578125, -0.01078033447265625, 0.0200042724609375, 0.0367431640625, 0.007656097412109375, 0.00255584716796875, 0.006031036376953125, 0.0302886962890625, 0.0284271240234375, -0.0009851455688476562, -0.0001220703125, 0.0053558349609375, -0.074951171875, -0.00278472900390625, -0.012176513671875, 0.049224853515625, 0.078857421875, -0.0120849609375, -0.0280609130859375, 0.012481689453125, 0.0034999847412109375, 0.0258941650390625, 0.0024204254150390625, 0.0241241455078125, 0.0243988037109375, -0.046966552734375, 0.041656494140625, -0.01074981689453125, -0.036865234375, -0.033538818359375, -0.01812744140625, 0.034515380859375, 0.001384735107421875, 0.026214599609375, 0.0201568603515625, -0.041656494140625, 0.01255035400390625, 0.0251922607421875, 0.0093536376953125, -0.003078460693359375, 0.025970458984375, 0.0236358642578125, -0.0140380859375, -0.0240936279296875, -0.00530242919921875, -0.0112457275390625, -0.0006489753723144531, -0.005962371826171875, 0.0251007080078125, 0.032318115234375, -0.01496124267578125, -0.0224151611328125, -0.0191497802734375, 0.040496826171875, 0.0194091796875, -0.0102081298828125, -0.0082244873046875, 0.0266571044921875, 0.01087188720703125, -0.042388916015625, 0.038848876953125, -0.0299835205078125, -0.02899169921875, -0.0244293212890625, -0.044921875, 0.027435302734375, -0.018585205078125, 0.0149383544921875, 0.06964111328125, 0.0231475830078125, -0.005565643310546875, -0.0145111083984375, -0.00786590576171875, 0.00806427001953125, -0.01605224609375, -0.043670654296875, -0.0030193328857421875, -0.0821533203125, -0.0008540153503417969, 0.0262908935546875, 0.1094970703125, -0.032928466796875, -0.04302978515625, 0.005733489990234375, 0.045806884765625, -0.06365966796875, -0.10870361328125, -0.0260009765625, -0.05841064453125, 0.0006995201110839844, -0.01096343994140625, -0.0173492431640625, 0.0096588134765625, -0.011322021484375, 0.0074005126953125, -0.001068115234375, 0.00904083251953125, -0.074462890625, -0.01226043701171875, -0.050323486328125, 0.03753662109375, -0.027984619140625, 0.02587890625, 0.0182952880859375, 0.04681396484375, 0.0200347900390625, -0.01837158203125, 0.01397705078125, 0.01453399658203125, -0.039520263671875, -0.0168609619140625, -0.01029205322265625, -0.0005788803100585938, -0.03619384765625, 0.01183319091796875, -0.046875, -0.0171966552734375, 0.00496673583984375, -0.01070404052734375, 0.003551483154296875, 0.014923095703125, 0.0226593017578125, 0.03143310546875, -0.0284423828125, 0.0270843505859375, 0.05596923828125, -0.0221405029296875, -0.0074005126953125, -0.040130615234375, -0.053802490234375, -0.0286102294921875, 0.032623291015625, 0.0248565673828125, -0.0562744140625, 0.0011730194091796875, -0.018951416015625, -0.0430908203125, -0.0023040771484375, -0.053802490234375, 0.076416015625, 0.01177978515625, 0.0159454345703125, 0.00518035888671875, 0.0294952392578125, -0.004772186279296875, -0.00899505615234375, 0.001720428466796875, 0.006221771240234375, -0.00449371337890625, -0.0165557861328125, -0.0292510986328125, -0.0247344970703125, 0.048797607421875, -0.012542724609375, 0.006389617919921875, -0.0400390625, -0.0303497314453125, -0.0291900634765625, 0.061981201171875, -0.052032470703125, -0.01568603515625, -0.0171661376953125, 0.0170745849609375, -0.043365478515625, -0.08355712890625, -0.03155517578125, -0.01284027099609375, -0.062408447265625, -0.02520751953125, -0.025115966796875, -0.03515625, -0.002788543701171875, -0.0163116455078125, -0.038482666015625, -0.04156494140625, 0.0164031982421875, -0.034942626953125, -0.0037441253662109375, 0.0243072509765625, -0.0273895263671875, 0.0220947265625, -0.005401611328125, -0.039276123046875, -0.08978271484375, -0.0195770263671875, 0.010833740234375, 0.063232421875, -0.0167388916015625, 0.0027332305908203125, -0.041259765625, 0.036102294921875, -0.01239776611328125, 0.0099334716796875, -0.00208282470703125, 0.028717041015625, -0.030120849609375, -0.0027027130126953125, 0.003627777099609375, -0.02972412109375, -0.0189056396484375, -0.045318603515625, 0.0161895751953125, 0.0023097991943359375, -0.056060791015625, 0.00022804737091064453, -0.06463623046875, 0.0197296142578125, -0.026611328125, -0.0226287841796875, 0.01085662841796875, 0.0469970703125, -0.0153350830078125, 0.025360107421875, -0.054290771484375, -0.0296630859375, 0.0311279296875, 0.00116729736328125, -0.005077362060546875, -0.00762176513671875, 0.08056640625, 0.0122528076171875, -0.0191650390625, -0.02728271484375, -0.0024929046630859375, 0.017425537109375, -0.01605224609375, 0.048858642578125, 0.01348114013671875, -0.0146331787109375, 0.05462646484375, -0.00894927978515625, 0.02069091796875, 0.011810302734375, 0.03424072265625, 0.01389312744140625, 0.00006973743438720703, 0.0098876953125, -0.0005583763122558594, -0.045501708984375, -0.003498077392578125, -0.024200439453125, 0.0172119140625, 0.033111572265625, 0.007053375244140625, -0.0435791015625, 0.0295562744140625, 0.004241943359375, -0.0318603515625, 0.0100250244140625, 0.029815673828125, 0.0114593505859375, 0.021453857421875, 0.00943756103515625, -0.00698089599609375, 0.0100250244140625, 0.001323699951171875, 0.02569580078125, 0.00811004638671875, 0.03594970703125, 0.041900634765625, 0.01015472412109375, 0.00537872314453125, -0.0019359588623046875, -0.004985809326171875, 0.050323486328125, -0.0211639404296875, -0.06439208984375, 0.002758026123046875, -0.0224456787109375, 0.0163726806640625, 0.034088134765625, -0.00022733211517333984, 0.0484619140625, 0.041229248046875, -0.03009033203125, -0.02001953125, 0.024932861328125, -0.0243072509765625, -0.039337158203125, 0.050201416015625, 0.00885772705078125, 0.0064697265625, 0.039154052734375, 0.06622314453125, -0.0006732940673828125, 0.0595703125, -0.0202789306640625, -0.01904296875, -0.051300048828125, 0.028106689453125, 0.0188751220703125, 0.0087432861328125, 0.025726318359375, 0.00870513916015625, 0.0280303955078125, -0.0287628173828125, 0.007801055908203125, 0.003269195556640625, 0.02099609375, 0.020111083984375, -0.01537322998046875, 0.0226593017578125, -0.007007598876953125, 0.0111846923828125, 0.0316162109375, 0.07855224609375, 0.00634002685546875, 0.002750396728515625, -0.011077880859375, 0.0045928955078125, -0.0024566650390625, 0.0024890899658203125, 0.026031494140625, -0.00023627281188964844, 0.05157470703125, -0.017608642578125, 0.021759033203125, -0.00888824462890625, -0.00028228759765625, 0.02935791015625, -0.021697998046875, -0.0200042724609375, 0.0301055908203125, 0.031280517578125, -0.03350830078125, -0.0225372314453125, 0.04718017578125, -0.01019287109375, 0.044769287109375, -0.06890869140625, 0.006744384765625, -0.076171875, -0.0103912353515625, 0.07781982421875, 0.05352783203125, -0.005970001220703125, -0.008758544921875, -0.036041259765625, -0.0198974609375, 0.06927490234375, 0.0020656585693359375, -0.025146484375, -0.0404052734375, 0.0008826255798339844, 0.027679443359375, 0.0194091796875, 0.02764892578125, 0.0010023117065429688, -0.01934814453125, -0.0306243896484375, 0.0017824172973632812, -0.031402587890625, 0.0902099609375, -0.0004506111145019531, 0.01213836669921875, 0.004199981689453125, 0.049896240234375, -0.0080108642578125, 0.0037746429443359375, 0.00234222412109375, -0.0701904296875, -0.015869140625, -0.005161285400390625, 0.0127105712890625, 0.006465911865234375, -0.0338134765625, 0.003818511962890625, 0.031524658203125, 0.008148193359375, 0.020751953125, 0.0059356689453125, -0.0665283203125, 0.00011074542999267578, -0.00827789306640625, 0.07275390625, 0.012451171875, 0.001194000244140625, -0.031768798828125, 0.007472991943359375, -0.04449462890625, 0.0114898681640625, -0.04345703125, -0.0073699951171875, 0.008941650390625, -0.0182952880859375, 0.03509521484375, 0.0059814453125, 0.04718017578125, 0.0035762786865234375, 0.033447265625, 0.02984619140625, 0.0116729736328125, -0.0384521484375, -0.025238037109375, 0.032318115234375, 0.0031528472900390625, -0.0184326171875, 0.02435302734375, -0.0292816162109375, 0.00463104248046875, -0.03564453125, 0.056915283203125, 0.030975341796875, 0.0217742919921875, 0.024505615234375, -0.0394287109375, -0.006069183349609375, 0.0157012939453125, -0.004787445068359375, -0.041839599609375, 0.04876708984375, 0.03619384765625, 0.0263519287109375, 0.034149169921875, -0.0078125, -0.0100860595703125, -0.038330078125, 0.01375579833984375, 0.0082244873046875, -0.0372314453125, 0.04052734375, 0.045623779296875, 0.004360198974609375, -0.0290374755859375, 0.01666259765625, -0.01296234130859375, 0.0126800537109375, -0.06842041015625, 0.00513458251953125, -0.025909423828125, 0.00507354736328125, 0.024169921875, 0.00531005859375, -0.006443023681640625, 0.055389404296875, -0.0114898681640625, 0.0199432373046875, 0.0258331298828125, -0.032928466796875, -0.0596923828125, -0.04425048828125, 0.037261962890625, 0.05999755859375, -0.07073974609375, 0.051422119140625, -0.009185791015625, -0.032806396484375, -0.00960540771484375, -0.0298309326171875, 0.054656982421875, -0.0328369140625, -0.0024547576904296875, 0.031890869140625, 0.0164337158203125, -0.0038623809814453125, -0.01058197021484375, -0.0300445556640625, -0.006023406982421875, 0.03143310546875, -0.0249176025390625, 0.0134429931640625, 0.0167999267578125, -0.022613525390625, -0.031494140625, 0.0176239013671875, -0.006679534912109375, -0.0021419525146484375, 0.0270538330078125, -0.007785797119140625, -0.016754150390625, -0.017669677734375, -0.07464599609375, 0.08380126953125, 0.05279541015625, 0.08721923828125, -0.095947265625, -0.035614013671875, 0.01410675048828125, 0.06591796875, 0.057159423828125, 0.00347900390625, 0.01348876953125, -0.0193328857421875, 0.0214080810546875, 0.0253448486328125, -0.033050537109375, 0.0097198486328125, 0.0163116455078125, 0.042938232421875, 0.0697021484375, -0.032623291015625, 0.040191650390625, -0.009613037109375, 0.0025386810302734375, 0.0255279541015625, 0.00991058349609375, 0.01270294189453125, 0.0309906005859375, -0.010009765625, -0.036224365234375, 0.02777099609375, 0.019256591796875, 0.0074615478515625, 0.0005903244018554688, 0.07562255859375, 0.0206756591796875, -0.0013685226440429688, -0.0362548828125, -0.026336669921875, 0.03521728515625, -0.00860595703125, 0.02276611328125, 0.060333251953125, 0.0293121337890625, 0.0631103515625, -0.016448974609375, 0.01538848876953125, -0.01190948486328125, -0.01445770263671875, 0.09674072265625, 0.011627197265625, 0.035736083984375, -0.06982421875, -0.0207061767578125, 0.0017681121826171875, 0.10699462890625, -0.055084228515625, -0.048919677734375, 0.0088348388671875, 0.005084991455078125, -0.007762908935546875, 0.0179595947265625, 0.0244903564453125, 0.0298614501953125, 0.06793212890625, -0.03717041015625, 0.0036258697509765625, 0.021453857421875, -0.00011283159255981445, -0.006267547607421875, 0.006908416748046875, -0.0203857421875, 0.0017156600952148438, 0.004596710205078125, -0.0296478271484375, 0.00217437744140625, 0.01139068603515625, 0.00251007080078125, 0.01898193359375, -0.01483917236328125, 0.00550079345703125, -0.017303466796875, 0.0017099380493164062, -0.0015401840209960938, 0.0251312255859375, -0.03466796875, 0.0006227493286132812, -0.01126861572265625, 0.0245513916015625, 0.036895751953125, 0.0189666748046875, 0.04815673828125, 0.0246429443359375, -0.050567626953125, 0.0008645057678222656, 0.0633544921875, -0.0305328369140625, -0.001865386962890625, -0.01082611083984375, -0.003143310546875, 0.01055145263671875, -0.01513671875, -0.0107879638671875, 0.041168212890625, 0.0178680419921875, 0.0099945068359375, 0.040069580078125, 0.002960205078125, 0.012176513671875, 0.0250396728515625, 0.0036754608154296875, 0.04400634765625, 0.01323699951171875, -0.09185791015625, -0.005893707275390625, -0.017974853515625, -0.0288543701171875, 0.0252685546875, 0.0226287841796875, -0.0260162353515625, 0.0192718505859375, 0.025115966796875, -0.02197265625, 0.01384735107421875, 0.00040340423583984375, 0.020294189453125, 0.01149749755859375, 0.0141448974609375, 0.0092620849609375, -0.0830078125, -0.057861328125, -0.007389068603515625, 0.0087890625, 0.0028324127197265625, -0.0143585205078125, 0.057830810546875, 0.018280029296875, -0.00882720947265625, 0.039794921875, -0.038787841796875, -0.01230621337890625, 0.044281005859375, -0.042938232421875, -0.0246734619140625, 0.0027179718017578125, -0.0268402099609375, -0.037994384765625, 0.0662841796875, -0.05584716796875, -0.027099609375, -0.003124237060546875, 0.04180908203125, -0.04119873046875, 0.039276123046875, -0.0078277587890625, 0.04150390625, 0.00856781005859375, -0.044647216796875, 0.06378173828125, 0.033416748046875, 0.0487060546875, 0.0072021484375, -0.0006542205810546875, -0.03436279296875, 0.0269927978515625, -0.0284271240234375, 0.0162506103515625, 0.031585693359375, -0.017059326171875, 0.0277099609375, -0.0281219482421875, -0.0278472900390625, 0.0165863037109375, 0.0028533935546875, -0.01064300537109375, -0.00656890869140625, 0.021759033203125, 0.003154754638671875, -0.025787353515625, 0.041046142578125, 0.01422119140625, -0.000008046627044677734, -0.035675048828125, 0.01238250732421875, -0.0165863037109375, 0.0066680908203125, -0.02276611328125, -0.010772705078125, -0.0185089111328125, -0.0225067138671875, -0.006526947021484375, -0.0772705078125, -0.0004334449768066406, -0.0238189697265625, 0.01299285888671875, -0.0161590576171875, 0.01287078857421875, -0.0197296142578125, -0.03631591796875, 0.002735137939453125, -0.017669677734375, -0.01284027099609375, 0.00649261474609375, 0.02685546875, -0.0274505615234375, -0.0145721435546875, -0.0308837890625, -0.0013265609741210938, -0.0199737548828125, 0.0017728805541992188, 0.0120086669921875, -0.0010128021240234375, 0.0133209228515625, 0.0400390625, -0.001312255859375, 0.07208251953125, -0.043548583984375, -0.0214080810546875, 0.004886627197265625, 0.0012149810791015625, -0.00983428955078125, -0.03125, 0.0288848876953125, -0.0718994140625, -0.0203094482421875, -0.0265960693359375, 0.031005859375, 0.0537109375, -0.0069580078125, -0.0244140625, 0.08135986328125, -0.027099609375, 0.0051422119140625, -0.06805419921875, 0.032073974609375, 0.0276031494140625, -0.01364898681640625, -0.0174407958984375, -0.01995849609375, -0.033050537109375, 0.0001690387725830078, -0.02752685546875, 0.030487060546875, 0.034027099609375, -0.0477294921875, -0.05078125, -0.0477294921875, -0.053070068359375, 0.00013589859008789062, -0.005870819091796875, 0.0093231201171875, 0.016876220703125, 0.03057861328125, -0.037139892578125, 0.0193023681640625, -0.0001685619354248047, 0.01210784912109375, 0.0010061264038085938, -0.01026153564453125, -0.023101806640625, -0.001468658447265625, 0.0206451416015625, 0.05914306640625, 0.02264404296875, -0.02685546875, -0.037109375, -0.0238494873046875, -0.0469970703125, -0.00640106201171875, 0.0421142578125, -0.075927734375, 0.0171356201171875, 0.0173187255859375, -0.0419921875, 0.019622802734375, -0.02105712890625, -0.057891845703125, 0.005741119384765625, -0.05340576171875, -0.006641387939453125, -0.062042236328125, 0.0016603469848632812, 0.0019092559814453125, -0.02423095703125, -0.032501220703125, -0.002803802490234375, 0.01023101806640625, -0.0280609130859375, 0.001953125, 0.03521728515625, 0.041595458984375, 0.00986480712890625, -0.0207366943359375, 0.05926513671875, -0.053466796875, 0.035552978515625, -0.0248260498046875, -0.0161590576171875, 0.003963470458984375, 0.010650634765625, 0.006732940673828125, 0.034088134765625, -0.027130126953125, 0.01012420654296875, -0.0177154541015625, 0.0352783203125, 0.036712646484375, 0.0007066726684570312, 0.060546875, 0.0007491111755371094, -0.043914794921875, -0.008697509765625, -0.03656005859375, -0.010101318359375, 0.03240966796875, -0.024078369140625, -0.049041748046875, 0.0159759521484375, 0.046478271484375, 0.017486572265625, 0.00750732421875 ]
8e6c17db7d69983ca0d565fd3ec8f286f24d7011
Wordpress Stackexchange Q: Setting a permalink for the home page? I have a static default wordpress home page. As you know if you have a homepage on wordpress you can not set a permalink through the admin options, you can only set permalinks for non homepages. Does anyone know of a way that I can set a permalink for my homepage? So that when I visit my site at example.com, it automatically turns to example.com/examplelink when the site loads? Thank you!! A: I would set another page as the home page, add a custom template for the home page and put this in it: <?php wp_redirect( get_permalink( $id ), 301 ); exit; ?>
Q: Setting a permalink for the home page? I have a static default wordpress home page. As you know if you have a homepage on wordpress you can not set a permalink through the admin options, you can only set permalinks for non homepages. Does anyone know of a way that I can set a permalink for my homepage? So that when I visit my site at example.com, it automatically turns to example.com/examplelink when the site loads? Thank you!! A: I would set another page as the home page, add a custom template for the home page and put this in it: <?php wp_redirect( get_permalink( $id ), 301 ); exit; ?> A: If you dont want to set the id manually you can do: 1) create a template page-template-homepage-redirect.php in your theme <?php /* Template Name: homepage redirect */ wp_redirect( get_permalink( wp_get_post_parent_id( $post_ID ) ), 301 ); exit; ?> 2) create an empty page and use this newly created template 3) Go to settings - Reading and set this new page to static homepage 4) change the slug/permalink of the original homepage to what you'd like to see 5) go back to pages and make sure you set the original homepage you want to redirect to is the parent of the "homepage redirect" page
wordpress
{ "language": "en", "length": 214, "provenance": "stackexchange_00019.jsonl.gz:443917", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140198" }
[ 0.0595703125, 0.013336181640625, 0.0419921875, 0.024383544921875, 0.005615234375, -0.0268707275390625, 0.07611083984375, -0.0831298828125, -0.033355712890625, -0.0024471282958984375, -0.032440185546875, 0.01129913330078125, -0.03045654296875, -0.029876708984375, 0.0445556640625, -0.037384033203125, 0.042724609375, -0.0008330345153808594, 0.0330810546875, -0.00726318359375, -0.0173492431640625, 0.017242431640625, 0.04107666015625, 0.05743408203125, 0.0287933349609375, -0.01334381103515625, 0.0225067138671875, -0.0307464599609375, 0.0026226043701171875, -0.007476806640625, 0.018798828125, -0.00005239248275756836, 0.0192413330078125, -0.0026645660400390625, 0.026824951171875, 0.01198577880859375, 0.00809478759765625, 0.00838470458984375, 0.02276611328125, 0.007617950439453125, 0.0225372314453125, -0.00394439697265625, 0.0005197525024414062, 0.08013916015625, -0.0303192138671875, -0.0300140380859375, -0.01078033447265625, -0.060943603515625, 0.009918212890625, -0.0185699462890625, -0.002994537353515625, 0.01020050048828125, -0.001300811767578125, -0.03875732421875, -0.0166778564453125, -0.034759521484375, 0.0386962890625, -0.0555419921875, 0.036529541015625, -0.03619384765625, -0.036590576171875, -0.0252532958984375, 0.042266845703125, 0.0026645660400390625, -0.024566650390625, -0.0276641845703125, -0.044586181640625, 0.0254058837890625, -0.0241241455078125, -0.0153656005859375, 0.0312042236328125, -0.01025390625, -0.0170745849609375, -0.0347900390625, -0.039215087890625, 0.0198211669921875, -0.007808685302734375, -0.03204345703125, 0.00838470458984375, 0.001377105712890625, 0.0019311904907226562, -0.0220794677734375, -0.01483917236328125, -0.07843017578125, 0.055206298828125, -0.03741455078125, -0.0019245147705078125, -0.002471923828125, -0.018310546875, -0.018157958984375, -0.016632080078125, 0.01349639892578125, -0.005275726318359375, -0.0236053466796875, -0.0379638671875, -0.01360321044921875, -0.01241302490234375, 0.01186370849609375, -0.01019287109375, 0.027130126953125, -0.022430419921875, -0.0232696533203125, 0.03411865234375, -0.0435791015625, -0.0305633544921875, -0.013916015625, 0.03375244140625, 0.0445556640625, 0.007137298583984375, 0.025848388671875, -0.0217132568359375, 0.0086212158203125, -0.0084228515625, -0.0037059783935546875, -0.03448486328125, -0.0184478759765625, -0.056854248046875, -0.0183258056640625, -0.01241302490234375, -0.0333251953125, -0.0256805419921875, 0.040924072265625, 0.004619598388671875, -0.02447509765625, -0.00919342041015625, -0.0017032623291015625, 0.0164947509765625, -0.0654296875, -0.00974273681640625, 0.021728515625, -0.03369140625, -0.0022602081298828125, 0.059051513671875, 0.056243896484375, 0.035858154296875, -0.0157318115234375, 0.051055908203125, -0.04290771484375, -0.0211944580078125, 0.037261962890625, 0.017913818359375, -0.038330078125, -0.048492431640625, -0.0006361007690429688, 0.0199127197265625, 0.035400390625, 0.015899658203125, 0.0214996337890625, 0.00032401084899902344, -0.01210784912109375, -0.0008335113525390625, -0.0267181396484375, 0.0187835693359375, 0.0107421875, 0.012908935546875, -0.022705078125, -0.005725860595703125, -0.006496429443359375, 0.0169219970703125, -0.00626373291015625, -0.01555633544921875, -0.01274871826171875, 0.0177459716796875, -0.0067291259765625, -0.035552978515625, 0.0229034423828125, 0.0009455680847167969, -0.015716552734375, 0.02362060546875, 0.021728515625, 0.0163726806640625, 0.006710052490234375, -0.0245513916015625, -0.00460052490234375, 0.0031795501708984375, -0.0166778564453125, -0.029327392578125, 0.007343292236328125, 0.0185546875, 0.0562744140625, 0.0361328125, -0.00635528564453125, 0.0084381103515625, 0.04290771484375, -0.04156494140625, 0.0243072509765625, 0.00859832763671875, 0.0494384765625, -0.0084991455078125, 0.0200347900390625, -0.0014429092407226562, 0.0172119140625, -0.0716552734375, 0.045654296875, -0.017059326171875, -0.0165863037109375, -0.04046630859375, -0.014190673828125, -0.03173828125, 0.0169830322265625, -0.009918212890625, -0.00846099853515625, 0.00627899169921875, 0.011566162109375, 0.001155853271484375, -0.0057525634765625, -0.00970458984375, 0.0096435546875, 0.050537109375, 0.024993896484375, -0.012359619140625, -0.0085906982421875, 0.020172119140625, -0.1014404296875, -0.0570068359375, 0.05029296875, 0.000888824462890625, 0.0210418701171875, -0.01367950439453125, 0.009063720703125, -0.004222869873046875, -0.0537109375, -0.006526947021484375, 0.050537109375, 0.0243682861328125, -0.0258331298828125, -0.035064697265625, -0.0305328369140625, -0.054962158203125, 0.00968170166015625, -0.10687255859375, 0.060821533203125, 0.00702667236328125, 0.0016603469848632812, -0.048309326171875, -0.007404327392578125, -0.0303802490234375, -0.0135650634765625, -0.004688262939453125, 0.047119140625, 0.016021728515625, 0.0022220611572265625, -0.0049285888671875, 0.00148773193359375, 0.0301361083984375, -0.0005970001220703125, 0.0240478515625, -0.01473236083984375, -0.0013561248779296875, 0.007965087890625, 0.00921630859375, 0.0031795501708984375, 0.018768310546875, -0.08404541015625, -0.0269317626953125, 0.058563232421875, -0.0311431884765625, 0.0010528564453125, -0.0190277099609375, 0.005496978759765625, 0.0084228515625, 0.0149383544921875, -0.0001614093780517578, -0.00676727294921875, -0.0028972625732421875, 0.008819580078125, 0.0105743408203125, 0.0257110595703125, -0.005062103271484375, -0.00550079345703125, -0.00443267822265625, -0.0267333984375, 0.00464630126953125, 0.0278167724609375, 0.051544189453125, -0.046234130859375, -0.039825439453125, -0.01062774658203125, 0.0252838134765625, 0.007457733154296875, -0.0305938720703125, 0.032623291015625, -0.0173492431640625, -0.01444244384765625, -0.046142578125, -0.05072021484375, 0.01103973388671875, 0.0203094482421875, 0.03338623046875, -0.0009293556213378906, 0.03936767578125, -0.00940704345703125, -0.048309326171875, 0.038360595703125, 0.006656646728515625, -0.055755615234375, -0.00841522216796875, -0.04925537109375, 0.03546142578125, -0.0377197265625, 0.05499267578125, 0.08355712890625, -0.01308441162109375, 0.0399169921875, 0.0036830902099609375, 0.00970458984375, -0.0021953582763671875, -0.006103515625, -0.029052734375, 0.0044403076171875, -0.055267333984375, -0.0086822509765625, 0.0117645263671875, 0.05548095703125, -0.04052734375, -0.057647705078125, -0.0178985595703125, 0.018280029296875, -0.07049560546875, -0.053436279296875, -0.0008788108825683594, -0.0245819091796875, 0.032562255859375, 0.01389312744140625, 0.00859832763671875, -0.04193115234375, 0.032470703125, 0.01593017578125, 0.0109100341796875, -0.041229248046875, -0.058349609375, -0.053070068359375, -0.07342529296875, -0.0024929046630859375, -0.0027599334716796875, 0.0094757080078125, 0.0060272216796875, 0.003810882568359375, -0.0115509033203125, -0.042633056640625, -0.00040602684020996094, 0.03424072265625, -0.005008697509765625, -0.027923583984375, -0.01947021484375, -0.014862060546875, 0.0010547637939453125, -0.003063201904296875, 0.06341552734375, 0.0216827392578125, -0.00727081298828125, -0.00560760498046875, -0.035003662109375, -0.025604248046875, -0.0191497802734375, 0.017608642578125, 0.0445556640625, -0.00936126708984375, 0.014373779296875, -0.040679931640625, -0.0268096923828125, -0.00917816162109375, -0.052032470703125, 0.0233612060546875, 0.037933349609375, -0.00814056396484375, 0.00994873046875, -0.019287109375, 0.00928497314453125, 0.00115966796875, 0.05657958984375, -0.0161895751953125, 0.0007252693176269531, -0.017425537109375, -0.00909423828125, -0.045257568359375, 0.042694091796875, -0.016937255859375, 0.033782958984375, 0.02740478515625, -0.026214599609375, -0.029571533203125, 0.0254058837890625, -0.05047607421875, -0.082763671875, 0.05523681640625, -0.04730224609375, -0.01561737060546875, -0.02862548828125, -0.0199432373046875, 0.0186614990234375, 0.10797119140625, -0.03912353515625, -0.00647735595703125, -0.006969451904296875, 0.00038695335388183594, -0.00691986083984375, -0.004535675048828125, -0.053558349609375, -0.021728515625, -0.071533203125, -0.004604339599609375, -0.0260009765625, -0.015899658203125, -0.01446533203125, 0.02545166015625, -0.0177154541015625, -0.04345703125, 0.0259246826171875, 0.01435089111328125, -0.031341552734375, 0.04864501953125, -0.0297698974609375, 0.00986480712890625, -0.0127410888671875, 0.00473785400390625, -0.053466796875, -0.016876220703125, 0.01389312744140625, 0.05120849609375, 0.0176849365234375, -0.04248046875, -0.0175323486328125, 0.048065185546875, -0.0009036064147949219, 0.0281219482421875, 0.007678985595703125, -0.001834869384765625, 0.0293731689453125, 0.00635528564453125, 0.012054443359375, -0.003803253173828125, 0.03759765625, 0.002483367919921875, -0.06439208984375, 0.0234375, -0.034271240234375, 0.052032470703125, 0.0088348388671875, -0.04095458984375, -0.06512451171875, -0.0299072265625, -0.036834716796875, 0.01010894775390625, -0.01105499267578125, -0.0167388916015625, -0.03985595703125, -0.0828857421875, 0.034912109375, -0.00988006591796875, 0.0020198822021484375, 0.00899505615234375, 0.06011962890625, 0.0029315948486328125, -0.02166748046875, -0.01555633544921875, 0.0036029815673828125, 0.0200347900390625, -0.0007042884826660156, 0.0374755859375, -0.01434326171875, -0.00656890869140625, 0.038482666015625, -0.0259552001953125, -0.008087158203125, -0.00914764404296875, 0.0205535888671875, -0.007244110107421875, -0.035491943359375, 0.018951416015625, -0.01528167724609375, 0.01201629638671875, 0.054840087890625, 0.0004892349243164062, -0.019500732421875, -0.0340576171875, 0.0231170654296875, -0.002410888671875, 0.003711700439453125, -0.0413818359375, -0.02008056640625, 0.01001739501953125, 0.003063201904296875, 0.044036865234375, 0.0183563232421875, 0.006317138671875, 0.026336669921875, 0.032440185546875, 0.01404571533203125, 0.00630950927734375, -0.026763916015625, 0.0010366439819335938, 0.028839111328125, -0.0101165771484375, 0.0032672882080078125, 0.021759033203125, -0.0167694091796875, 0.077880859375, 0.007526397705078125, -0.0301513671875, 0.0157928466796875, -0.044525146484375, -0.00374603271484375, 0.029754638671875, -0.0017976760864257812, 0.023712158203125, 0.0287933349609375, -0.0162811279296875, -0.01067352294921875, -0.0257720947265625, 0.00897216796875, -0.0560302734375, 0.006877899169921875, 0.005893707275390625, 0.0024623870849609375, 0.0283660888671875, 0.065185546875, 0.05267333984375, 0.035919189453125, -0.045654296875, -0.016387939453125, 0.01464080810546875, 0.026214599609375, -0.0021724700927734375, 0.01251220703125, 0.0128936767578125, -0.00748443603515625, 0.06329345703125, -0.00994110107421875, -0.034210205078125, 0.007747650146484375, 0.07464599609375, -0.0241241455078125, 0.0005207061767578125, -0.0143280029296875, -0.049530029296875, -0.01690673828125, 0.041717529296875, -0.043426513671875, -0.06427001953125, -0.0390625, -0.00341796875, 0.0513916015625, -0.0202484130859375, -0.01268768310546875, 0.0258636474609375, -0.001483917236328125, 0.03912353515625, -0.0016126632690429688, 0.0155487060546875, 0.01178741455078125, -0.00305938720703125, 0.0118865966796875, -0.0006756782531738281, 0.0157470703125, -0.055999755859375, 0.0043792724609375, -0.0511474609375, -0.0260467529296875, 0.06719970703125, 0.0083465576171875, 0.07391357421875, -0.01727294921875, -0.04986572265625, 0.04541015625, 0.005580902099609375, 0.026519775390625, 0.0030574798583984375, -0.0654296875, -0.00563812255859375, -0.055267333984375, 0.0109710693359375, 0.00955963134765625, -0.0081634521484375, -0.0231170654296875, -0.00949859619140625, 0.033172607421875, 0.0296783447265625, -0.007049560546875, -0.03521728515625, -0.0372314453125, 0.00482940673828125, 0.041595458984375, 0.01151275634765625, -0.0079498291015625, 0.043670654296875, -0.00860595703125, 0.0374755859375, 0.0016622543334960938, 0.018035888671875, -0.0039005279541015625, -0.04034423828125, 0.0230255126953125, 0.003726959228515625, -0.02874755859375, -0.00771331787109375, -0.0218505859375, 0.00421905517578125, 0.0733642578125, -0.00836944580078125, -0.0170745849609375, -0.017364501953125, 0.005245208740234375, -0.03594970703125, 0.0300140380859375, -0.05584716796875, -0.0438232421875, -0.00946807861328125, 0.002666473388671875, 0.0266571044921875, -0.005794525146484375, -0.01450347900390625, 0.0150604248046875, 0.00020873546600341797, 0.0169677734375, -0.00597381591796875, -0.0330810546875, 0.0374755859375, 0.09619140625, 0.033843994140625, 0.0675048828125, 0.01065826416015625, 0.01500701904296875, 0.040618896484375, 0.04046630859375, -0.0277099609375, -0.0230255126953125, 0.044464111328125, 0.01873779296875, -0.01141357421875, 0.0296630859375, -0.007030487060546875, -0.028106689453125, 0.07708740234375, 0.038665771484375, -0.09588623046875, -0.011566162109375, -0.001171112060546875, 0.0250091552734375, 0.020050048828125, 0.0174560546875, -0.0036182403564453125, 0.0027103424072265625, 0.029632568359375, -0.039215087890625, 0.00519561767578125, 0.0225830078125, -0.007160186767578125, -0.0175933837890625, -0.023895263671875, 0.035064697265625, 0.0029048919677734375, -0.022857666015625, -0.000058531761169433594, 0.0096282958984375, -0.0236968994140625, -0.0090789794921875, -0.005039215087890625, -0.0044403076171875, -0.036163330078125, -0.028839111328125, 0.016845703125, -0.0272674560546875, 0.01535797119140625, 0.047607421875, -0.003971099853515625, 0.00843048095703125, 0.0147705078125, -0.01212310791015625, 0.02252197265625, -0.02117919921875, -0.02850341796875, 0.04132080078125, -0.0107879638671875, 0.01108551025390625, -0.0126495361328125, -0.04168701171875, -0.002414703369140625, -0.0243682861328125, -0.022186279296875, -0.01215362548828125, -0.026153564453125, 0.07305908203125, -0.031982421875, -0.01910400390625, -0.003757476806640625, 0.02142333984375, 0.007152557373046875, -0.0269012451171875, 0.01123809814453125, -0.0260162353515625, -0.003635406494140625, -0.0306854248046875, -0.0214996337890625, 0.0156707763671875, -0.057159423828125, -0.032745361328125, 0.09326171875, -0.070556640625, 0.03729248046875, 0.0489501953125, 0.039031982421875, 0.00726318359375, 0.0273284912109375, -0.0179290771484375, 0.0662841796875, 0.007320404052734375, 0.03643798828125, -0.024261474609375, -0.0025577545166015625, 0.02581787109375, 0.029449462890625, 0.0301361083984375, 0.01113128662109375, -0.036102294921875, 0.0066986083984375, 0.03790283203125, 0.01024627685546875, -0.00377655029296875, 0.050079345703125, -0.031982421875, 0.006381988525390625, 0.01148223876953125, -0.036651611328125, -0.0020351409912109375, 0.02716064453125, -0.05352783203125, -0.001995086669921875, 0.0235595703125, 0.0158538818359375, 0.0261383056640625, -0.016632080078125, -0.038909912109375, 0.0215911865234375, 0.039764404296875, -0.042510986328125, 0.0018024444580078125, 0.03839111328125, 0.04010009765625, -0.0369873046875, -0.01554107666015625, -0.031097412109375, 0.04931640625, 0.01342010498046875, -0.02130126953125, 0.0113372802734375, -0.0011043548583984375, 0.01702880859375, -0.01262664794921875, -0.017608642578125, 0.034698486328125, -0.00952911376953125, 0.08624267578125, 0.0355224609375, 0.03692626953125, -0.0350341796875, -0.0217132568359375, 0.0117340087890625, 0.09381103515625, -0.037933349609375, -0.0193939208984375, 0.0139923095703125, 0.0003540515899658203, 0.002460479736328125, -0.0230712890625, 0.0171051025390625, 0.0187225341796875, 0.01934814453125, -0.015838623046875, 0.0008511543273925781, 0.03631591796875, 0.0192108154296875, -0.00833892822265625, -0.0177764892578125, -0.02398681640625, 0.01328277587890625, -0.0244903564453125, 0.006198883056640625, -0.01012420654296875, 0.0355224609375, 0.0269927978515625, 0.007366180419921875, -0.01078033447265625, -0.0012950897216796875, -0.0009646415710449219, 0.060882568359375, -0.01218414306640625, 0.01200103759765625, -0.03302001953125, -0.043975830078125, -0.010040283203125, 0.04473876953125, 0.008941650390625, 0.0290374755859375, 0.0184326171875, -0.012664794921875, -0.0186004638671875, -0.01324462890625, 0.00705718994140625, -0.0445556640625, 0.047027587890625, -0.0128326416015625, 0.038787841796875, -0.009307861328125, -0.0169525146484375, -0.0284271240234375, 0.050262451171875, 0.0145416259765625, -0.0249176025390625, 0.027099609375, -0.00388336181640625, -0.0321044921875, 0.0303802490234375, -0.00713348388671875, 0.053955078125, -0.0165557861328125, -0.018524169921875, -0.0165557861328125, -0.01465606689453125, -0.01409912109375, 0.050537109375, 0.052032470703125, 0.0233306884765625, -0.0184783935546875, -0.0122528076171875, 0.00913238525390625, 0.0235595703125, -0.046295166015625, 0.0108184814453125, 0.0167694091796875, 0.0261688232421875, 0.0124359130859375, -0.06671142578125, -0.0298614501953125, -0.0189056396484375, 0.0105133056640625, -0.005199432373046875, 0.10308837890625, -0.020904541015625, 0.003742218017578125, -0.0110321044921875, 0.0269775390625, -0.0095977783203125, -0.0266876220703125, 0.044403076171875, 0.0199737548828125, 0.01788330078125, -0.024169921875, -0.0592041015625, 0.05230712890625, 0.0017871856689453125, -0.01776123046875, 0.056121826171875, -0.023712158203125, -0.01204681396484375, -0.0190277099609375, 0.052001953125, -0.029388427734375, -0.084228515625, -0.08184814453125, 0.020172119140625, 0.007080078125, 0.0166473388671875, -0.037628173828125, 0.059356689453125, -0.01471710205078125, -0.027496337890625, 0.0307464599609375, -0.069091796875, 0.039947509765625, 0.031402587890625, 0.00431060791015625, -0.040863037109375, 0.019622802734375, -0.01218414306640625, 0.0254669189453125, -0.01220703125, 0.05633544921875, 0.031219482421875, -0.040863037109375, 0.00504302978515625, -0.044219970703125, -0.005214691162109375, -0.046844482421875, -0.01776123046875, -0.00478363037109375, 0.0277099609375, 0.00806427001953125, -0.031158447265625, -0.02978515625, -0.05133056640625, 0.004482269287109375, 0.036285400390625, -0.0435791015625, -0.006305694580078125, -0.0677490234375, 0.0184173583984375, 0.0162811279296875, -0.0153045654296875, -0.01666259765625, 0.04278564453125, -0.06622314453125, 0.03326416015625, -0.04437255859375, -0.025726318359375, -0.005809783935546875, 0.0117645263671875, -0.0286865234375, -0.02130126953125, -0.051422119140625, -0.006381988525390625, -0.042388916015625, 0.014678955078125, 0.052215576171875, -0.0275115966796875, -0.01526641845703125, -0.0224761962890625, -0.0123748779296875, 0.050994873046875, -0.03253173828125, -0.0124664306640625, 0.01459503173828125, -0.01824951171875, -0.026458740234375, -0.044464111328125, 0.0213775634765625, -0.04998779296875, -0.0135498046875, -0.032684326171875, -0.0007886886596679688, -0.0014905929565429688, -0.0474853515625, -0.04083251953125, 0.0243072509765625, -0.006351470947265625, -0.021026611328125, -0.022308349609375, 0.0157318115234375, -0.0212860107421875, 0.0031185150146484375, 0.01444244384765625, -0.028656005859375, 0.006832122802734375, 0.02325439453125, 0.0289459228515625, 0.038604736328125, -0.0037784576416015625, 0.045867919921875, 0.01523590087890625, 0.05438232421875, 0.03594970703125, 0.0227203369140625, 0.045684814453125, -0.024139404296875, 0.038970947265625, 0.0491943359375, -0.04046630859375, -0.004283905029296875, -0.042022705078125, -0.035797119140625, 0.0007023811340332031, -0.0361328125, -0.0088653564453125, -0.0178680419921875, 0.03173828125, 0.00146484375, 0.0085601806640625, -0.01134490966796875, -0.0304718017578125, -0.01206207275390625, -0.01544952392578125, -0.005336761474609375, 0.0217742919921875, -0.0498046875, 0.01049041748046875, -0.006679534912109375, -0.0227203369140625, -0.043243408203125, 0.0119781494140625, -0.042816162109375, 0.01959228515625, 0.033294677734375, 0.0005922317504882812, -0.01081085205078125, 0.03509521484375, 0.03717041015625, -0.03619384765625, 0.017791748046875, -0.01178741455078125, -0.004985809326171875, 0.015960693359375, -0.0221099853515625, 0.05474853515625, 0.06121826171875, -0.02362060546875, -0.02783203125, 0.060638427734375, 0.017486572265625, 0.016143798828125, -0.044921875, 0.01435089111328125, 0.038604736328125, 0.006053924560546875, 0.041534423828125, -0.029205322265625, 0.01959228515625, -0.0245361328125, 0.021392822265625, 0.00812530517578125, -0.0077056884765625, 0.0008530616760253906, 0.038299560546875, -0.06707763671875, 0.01102447509765625, -0.04803466796875, -0.037017822265625, 0.004245758056640625, -0.0079803466796875, 0.00045299530029296875, -0.01393890380859375, -0.00814056396484375, -0.017578125, -0.004810333251953125, 0.010711669921875 ]
ba49e8927021760daa02b1cbb5f536e2a31bb1c9
Wordpress Stackexchange Q: Copy a user from one WordPress site to another Is it possible to copy a user from one WordPress site to another? I copied the record from the user table and all the related records from the usermeta table (12 records by default) but I think something else is needed. I get this message upon login: You do not have sufficient permissions to access this page. The reason I need this is I have 4 users I'd like to grant access to on a new site but use their credentials from the current site. A: You need to make sure the new ID of the user in the user table matches the foreign key in the usermeta. Also a word of caution regarding your comment on Active Directory integration. For public facing websites be extremely careful, you could inadvertantly expose you domain controller information to the web. You might want to consider additional security precautions around the login and admin pages, for example limiting access to certain IP addresses or dual authentication.
Q: Copy a user from one WordPress site to another Is it possible to copy a user from one WordPress site to another? I copied the record from the user table and all the related records from the usermeta table (12 records by default) but I think something else is needed. I get this message upon login: You do not have sufficient permissions to access this page. The reason I need this is I have 4 users I'd like to grant access to on a new site but use their credentials from the current site. A: You need to make sure the new ID of the user in the user table matches the foreign key in the usermeta. Also a word of caution regarding your comment on Active Directory integration. For public facing websites be extremely careful, you could inadvertantly expose you domain controller information to the web. You might want to consider additional security precautions around the login and admin pages, for example limiting access to certain IP addresses or dual authentication.
wordpress
{ "language": "en", "length": 173, "provenance": "stackexchange_00019.jsonl.gz:443942", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140290" }
[ 0.09857177734375, 0.016143798828125, 0.0185699462890625, -0.0089263916015625, 0.0272064208984375, -0.05224609375, 0.060546875, -0.073974609375, 0.0021266937255859375, 0.01355743408203125, -0.0308685302734375, -0.00464630126953125, 0.02850341796875, -0.0204010009765625, 0.01522064208984375, -0.023773193359375, 0.0265350341796875, 0.001312255859375, 0.006275177001953125, -0.014556884765625, -0.0010690689086914062, -0.0011987686157226562, 0.01025390625, 0.0079345703125, 0.0245819091796875, -0.01427459716796875, 0.0181884765625, -0.0143585205078125, 0.0258941650390625, 0.0005679130554199219, 0.018768310546875, -0.0289306640625, 0.004558563232421875, 0.01335906982421875, 0.00629425048828125, -0.02587890625, 0.02252197265625, -0.0032958984375, 0.00965118408203125, 0.0284881591796875, 0.038909912109375, -0.015838623046875, 0.005901336669921875, 0.03753662109375, -0.0144500732421875, -0.07037353515625, 0.06317138671875, -0.038818359375, -0.007843017578125, 0.00019061565399169922, 0.0156402587890625, -0.01239013671875, 0.02008056640625, 0.041717529296875, -0.00238037109375, 0.004505157470703125, 0.0311126708984375, -0.0018033981323242188, 0.046051025390625, -0.0295257568359375, -0.053253173828125, -0.01202392578125, 0.0198822021484375, -0.026763916015625, 0.00945281982421875, -0.015838623046875, -0.0125579833984375, 0.010406494140625, -0.01129913330078125, 0.0105743408203125, 0.0228424072265625, -0.0034427642822265625, -0.01006317138671875, 0.006099700927734375, 0.0015840530395507812, 0.029327392578125, -0.008453369140625, 0.0007519721984863281, 0.00916290283203125, 0.041351318359375, -0.07000732421875, 0.0028018951416015625, -0.09368896484375, -0.0281829833984375, -0.00814056396484375, -0.0168304443359375, -0.038604736328125, 0.0072021484375, 0.00757598876953125, -0.004177093505859375, -0.0063934326171875, 0.0159759521484375, -0.00693511962890625, 0.02899169921875, -0.024932861328125, -0.014892578125, 0.0306549072265625, 0.044708251953125, -0.01137542724609375, 0.0052642822265625, -0.023284912109375, -0.0227508544921875, -0.0220184326171875, -0.0168304443359375, -0.0184326171875, 0.006534576416015625, -0.00791168212890625, -0.0012559890747070312, 0.0015077590942382812, 0.0235595703125, -0.0222015380859375, -0.01611328125, -0.008544921875, -0.0345458984375, -0.0173797607421875, 0.046600341796875, -0.005977630615234375, -0.018218994140625, -0.01018524169921875, 0.0088653564453125, -0.0428466796875, -0.002079010009765625, -0.059906005859375, 0.04498291015625, -0.0281524658203125, -0.027008056640625, 0.023773193359375, 0.04071044921875, -0.012298583984375, -0.005001068115234375, -0.0292205810546875, 0.0238494873046875, 0.0457763671875, 0.0176544189453125, -0.012176513671875, -0.0013275146484375, 0.0272674560546875, -0.01183319091796875, -0.01983642578125, 0.0343017578125, 0.003650665283203125, -0.044036865234375, -0.01837158203125, -0.00589752197265625, -0.034149169921875, 0.031341552734375, 0.01398468017578125, 0.0134429931640625, -0.02056884765625, -0.042205810546875, -0.0197906494140625, -0.0209197998046875, -0.0204315185546875, 0.0061187744140625, 0.0506591796875, -0.06573486328125, 0.008697509765625, -0.04266357421875, 0.07342529296875, -0.0140228271484375, 0.032958984375, 0.024810791015625, 0.04351806640625, 0.041290283203125, -0.00513458251953125, -0.040008544921875, -0.034637451171875, -0.0124664306640625, 0.045745849609375, 0.0206146240234375, 0.00550079345703125, -0.03717041015625, 0.053619384765625, 0.048583984375, 0.0011529922485351562, 0.059356689453125, 0.006031036376953125, -0.020050048828125, 0.0295562744140625, 0.034027099609375, -0.0224761962890625, -0.01409912109375, 0.0521240234375, -0.0251617431640625, -0.01451873779296875, -0.004940032958984375, 0.00440216064453125, 0.0186309814453125, 0.0292205810546875, 0.0109405517578125, 0.002101898193359375, -0.001201629638671875, 0.00350189208984375, 0.00936126708984375, -0.03973388671875, -0.0440673828125, 0.053863525390625, 0.01226806640625, -0.0174713134765625, 0.027435302734375, 0.016510009765625, 0.00487518310546875, 0.0087890625, -0.0188446044921875, -0.036102294921875, -0.004627227783203125, -0.01313018798828125, 0.0239410400390625, 0.0196990966796875, 0.018707275390625, -0.005950927734375, -0.016326904296875, -0.01100921630859375, -0.005863189697265625, -0.027069091796875, -0.006847381591796875, -0.0146942138671875, 0.031829833984375, 0.00969696044921875, 0.02410888671875, 0.00914764404296875, -0.0260009765625, -0.007427215576171875, -0.0199432373046875, -0.006191253662109375, -0.041656494140625, -0.0123291015625, -0.02410888671875, -0.0105438232421875, -0.0087432861328125, 0.01348876953125, 0.036712646484375, 0.0159912109375, 0.031219482421875, 0.003826141357421875, 0.0270538330078125, 0.017486572265625, -0.035552978515625, -0.00446319580078125, 0.0157470703125, 0.035736083984375, -0.0093994140625, -0.0208740234375, 0.0014295578002929688, 0.00785064697265625, -0.06390380859375, -0.0034198760986328125, 0.0133819580078125, -0.0136566162109375, 0.038848876953125, 0.0248260498046875, 0.006855010986328125, -0.00476837158203125, -0.0699462890625, -0.0175933837890625, 0.0268707275390625, -0.01971435546875, 0.047454833984375, -0.019378662109375, -0.038330078125, -0.01064300537109375, -0.059783935546875, -0.0196533203125, -0.0299530029296875, -0.01519775390625, -0.01049041748046875, -0.0070037841796875, -0.0201873779296875, -0.0158843994140625, -0.01172637939453125, 0.023773193359375, -0.0228729248046875, 0.01396942138671875, -0.01934814453125, 0.01245880126953125, 0.0794677734375, -0.03228759765625, -0.0052642822265625, 0.0517578125, 0.01259613037109375, -0.003498077392578125, 0.01451873779296875, -0.021759033203125, -0.00579071044921875, 0.0092315673828125, 0.0149383544921875, 0.00818634033203125, 0.0149688720703125, -0.01509857177734375, -0.004825592041015625, 0.0269775390625, -0.00537872314453125, -0.0301971435546875, 0.02276611328125, -0.01523590087890625, -0.0286102294921875, 0.076416015625, -0.04779052734375, 0.037689208984375, -0.00839996337890625, 0.037750244140625, 0.0716552734375, 0.014617919921875, -0.0095062255859375, -0.02093505859375, -0.01039886474609375, -0.00965118408203125, 0.00811004638671875, -0.0012073516845703125, -0.05303955078125, 0.010986328125, 0.0196075439453125, 0.0227508544921875, 0.031951904296875, -0.015869140625, -0.028350830078125, -0.02545166015625, 0.0197906494140625, -0.03240966796875, -0.02294921875, -0.0523681640625, -0.052337646484375, 0.014923095703125, 0.006206512451171875, -0.0048980712890625, 0.003021240234375, 0.042816162109375, 0.03143310546875, 0.037384033203125, -0.058685302734375, -0.042999267578125, -0.04290771484375, -0.08233642578125, -0.045257568359375, 0.01306915283203125, 0.01151275634765625, -0.0031795501708984375, -0.018035888671875, -0.021759033203125, -0.03704833984375, -0.031463623046875, 0.0794677734375, 0.00894927978515625, -0.039276123046875, 0.0011167526245117188, 0.005870819091796875, 0.0158233642578125, 0.02484130859375, 0.005218505859375, 0.0191650390625, -0.017364501953125, -0.044464111328125, 0.0227508544921875, 0.00981903076171875, 0.00635528564453125, -0.003963470458984375, -0.024810791015625, 0.027496337890625, 0.00589752197265625, -0.0271759033203125, -0.033599853515625, 0.0159912109375, -0.056488037109375, 0.01482391357421875, 0.0516357421875, -0.027984619140625, 0.01617431640625, -0.0104217529296875, 0.034942626953125, 0.051239013671875, -0.02984619140625, 0.049072265625, -0.04473876953125, -0.0020923614501953125, 0.006771087646484375, -0.0007805824279785156, 0.01092529296875, -0.0440673828125, 0.0241241455078125, -0.01207733154296875, -0.0239105224609375, -0.016510009765625, -0.001495361328125, -0.0128021240234375, -0.10980224609375, 0.0728759765625, -0.0237579345703125, -0.0007638931274414062, -0.055816650390625, -0.036590576171875, 0.0031871795654296875, 0.150634765625, 0.0070343017578125, -0.0182037353515625, 0.032562255859375, 0.011505126953125, -0.0467529296875, 0.032745361328125, -0.061920166015625, -0.0047454833984375, 0.0137786865234375, -0.04974365234375, -0.021270751953125, -0.0103607177734375, -0.0018815994262695312, -0.0216217041015625, 0.025665283203125, -0.019317626953125, 0.00730133056640625, -0.0168304443359375, 0.031829833984375, -0.0296783447265625, 0.025421142578125, -0.041778564453125, 0.035003662109375, -0.048187255859375, -0.0662841796875, -0.0147857666015625, -0.00609588623046875, 0.057403564453125, 0.020294189453125, -0.023284912109375, 0.0006008148193359375, 0.035919189453125, -0.04388427734375, 0.0377197265625, -0.031524658203125, 0.0241546630859375, -0.01140594482421875, -0.0171661376953125, -0.0167999267578125, -0.0257568359375, -0.0178680419921875, -0.059173583984375, -0.01261138916015625, -0.04205322265625, -0.04803466796875, 0.0029392242431640625, -0.029815673828125, 0.003925323486328125, -0.046630859375, -0.00839996337890625, -0.01561737060546875, 0.0018072128295898438, -0.0134735107421875, -0.003559112548828125, -0.00836944580078125, -0.044281005859375, 0.0114898681640625, -0.01534271240234375, -0.0203399658203125, 0.0222320556640625, 0.00820159912109375, 0.0016727447509765625, -0.017547607421875, -0.00803375244140625, -0.004634857177734375, 0.0155029296875, -0.01541900634765625, 0.0308380126953125, 0.03643798828125, 0.0010089874267578125, -0.008056640625, -0.00678253173828125, 0.0221710205078125, -0.035858154296875, -0.006671905517578125, 0.019500732421875, -0.0013408660888671875, -0.0008916854858398438, 0.0293426513671875, 0.0271148681640625, 0.0204010009765625, 0.0034694671630859375, -0.0289459228515625, -0.003192901611328125, 0.037750244140625, 0.0221710205078125, -0.0093994140625, -0.04150390625, -0.049560546875, 0.023223876953125, -0.08636474609375, -0.0209503173828125, -0.0343017578125, 0.016326904296875, -0.0101470947265625, -0.001445770263671875, 0.0011262893676757812, -0.0132293701171875, -0.01512908935546875, 0.0081329345703125, 0.019195556640625, 0.0116424560546875, 0.005950927734375, -0.01904296875, -0.0162200927734375, 0.043548583984375, 0.00885009765625, -0.08984375, 0.0382080078125, -0.006866455078125, 0.034210205078125, 0.032379150390625, -0.0202178955078125, 0.041046142578125, 0.00817108154296875, -0.01406097412109375, 0.0276031494140625, -0.0367431640625, -0.03240966796875, -0.036773681640625, 0.007625579833984375, -0.01812744140625, 0.00655364990234375, 0.04058837890625, 0.0261077880859375, -0.03411865234375, 0.057647705078125, -0.00626373291015625, 0.056304931640625, 0.04345703125, 0.02386474609375, 0.007656097412109375, -0.01438140869140625, 0.002422332763671875, -0.002170562744140625, -0.011810302734375, -0.0362548828125, -0.01343536376953125, 0.05194091796875, 0.0634765625, 0.044586181640625, 0.005916595458984375, -0.04345703125, -0.0164031982421875, -0.0006289482116699219, 0.0225982666015625, -0.0206756591796875, -0.0268402099609375, -0.02838134765625, -0.0132904052734375, 0.0213623046875, -0.0290985107421875, 0.01244354248046875, -0.0279388427734375, -0.03497314453125, -0.006099700927734375, 0.01555633544921875, 0.006977081298828125, -0.04022216796875, -0.043426513671875, 0.00506591796875, -0.035003662109375, -0.0251312255859375, -0.011962890625, 0.03778076171875, -0.0260162353515625, -0.01422119140625, 0.037200927734375, 0.01244354248046875, 0.00997161865234375, -0.046600341796875, 0.004119873046875, -0.08154296875, -0.006961822509765625, 0.048583984375, 0.0102996826171875, -0.021026611328125, -0.01666259765625, -0.0338134765625, -0.022369384765625, 0.0078582763671875, -0.0384521484375, -0.0156402587890625, -0.0196380615234375, -0.0119476318359375, -0.001308441162109375, -0.01421356201171875, -0.01514434814453125, -0.0248870849609375, 0.0182647705078125, 0.0074005126953125, -0.01355743408203125, -0.03912353515625, 0.051422119140625, 0.00848388671875, 0.038177490234375, 0.006137847900390625, 0.04010009765625, 0.0010461807250976562, -0.0295257568359375, 0.007373809814453125, -0.0204315185546875, -0.0229339599609375, -0.020904541015625, -0.0177764892578125, 0.025604248046875, 0.07183837890625, -0.01383209228515625, 0.0025634765625, -0.0328369140625, 0.00463104248046875, -0.037445068359375, 0.0244903564453125, -0.043487548828125, -0.054107666015625, 0.0289459228515625, -0.0013246536254882812, 0.052978515625, -0.006092071533203125, 0.00565338134765625, -0.00859832763671875, 0.00213623046875, 0.0194091796875, -0.00435638427734375, -0.032867431640625, -0.002422332763671875, 0.041900634765625, -0.00644683837890625, 0.055419921875, 0.011077880859375, 0.02142333984375, 0.08807373046875, -0.005664825439453125, -0.0279693603515625, -0.0019159317016601562, -0.00850677490234375, -0.0274658203125, -0.035552978515625, -0.040435791015625, -0.022674560546875, 0.0247650146484375, 0.05474853515625, 0.075927734375, -0.0916748046875, 0.01111602783203125, 0.0190277099609375, -0.0155029296875, -0.0005254745483398438, -0.01236724853515625, -0.02899169921875, -0.08331298828125, 0.047119140625, 0.0287933349609375, -0.0016298294067382812, 0.00875091552734375, 0.00621795654296875, -0.0167694091796875, -0.01885986328125, -0.01064300537109375, 0.0219573974609375, 0.039886474609375, 0.0178375244140625, -0.0273895263671875, 0.053375244140625, -0.008453369140625, 0.00785064697265625, 0.0222015380859375, -0.0166473388671875, -0.03741455078125, 0.0401611328125, -0.035308837890625, 0.003589630126953125, -0.040008544921875, 0.02001953125, 0.09039306640625, 0.0194091796875, 0.00864410400390625, -0.00940704345703125, -0.01143646240234375, 0.07257080078125, -0.000010251998901367188, -0.0258636474609375, 0.01145172119140625, 0.02166748046875, -0.0110626220703125, 0.017303466796875, -0.004291534423828125, -0.0305938720703125, -0.0162200927734375, 0.0004181861877441406, 0.08392333984375, -0.0178070068359375, -0.02789306640625, 0.04022216796875, 0.01409912109375, -0.034942626953125, 0.0108489990234375, 0.02197265625, -0.052032470703125, -0.037017822265625, 0.022216796875, -0.0396728515625, -0.0038013458251953125, 0.0287017822265625, -0.0802001953125, 0.06072998046875, 0.04754638671875, 0.026641845703125, -0.01264190673828125, 0.0152740478515625, -0.0290679931640625, -0.011566162109375, -0.045745849609375, 0.06939697265625, 0.025421142578125, 0.033599853515625, -0.053741455078125, -0.0126190185546875, -0.006801605224609375, 0.032623291015625, 0.0701904296875, 0.026458740234375, -0.044464111328125, -0.01198577880859375, 0.037078857421875, 0.018585205078125, -0.00792694091796875, 0.057952880859375, -0.0148468017578125, 0.0037746429443359375, 0.041534423828125, -0.0240936279296875, 0.0185089111328125, 0.0301055908203125, -0.033477783203125, 0.007061004638671875, -0.024139404296875, -0.035491943359375, -0.007965087890625, -0.0022678375244140625, -0.035736083984375, -0.004932403564453125, 0.01308441162109375, -0.0400390625, 0.0042572021484375, 0.00574493408203125, -0.00836181640625, 0.0242767333984375, 0.055511474609375, -0.03228759765625, 0.0364990234375, -0.007472991943359375, 0.0259857177734375, 0.01068115234375, 0.0196380615234375, 0.056304931640625, -0.0008473396301269531, 0.00675201416015625, 0.033447265625, -0.033599853515625, 0.0572509765625, 0.01486968994140625, 0.020599365234375, -0.04150390625, 0.0078277587890625, 0.0247802734375, 0.068115234375, -0.04632568359375, -0.0241546630859375, 0.0201568603515625, 0.028717041015625, 0.0199127197265625, 0.017486572265625, 0.041046142578125, -0.01861572265625, 0.0341796875, -0.031707763671875, 0.01276397705078125, 0.019439697265625, -0.00431060791015625, -0.0059356689453125, 0.027862548828125, -0.0182037353515625, 0.0190582275390625, -0.0109100341796875, -0.005527496337890625, -0.0117034912109375, -0.00014460086822509766, 0.0151824951171875, -0.01354217529296875, 0.045562744140625, 0.0012035369873046875, 0.00847625732421875, 0.0157928466796875, 0.0017995834350585938, -0.0236358642578125, -0.034454345703125, -0.058441162109375, 0.011566162109375, 0.041778564453125, -0.0280303955078125, -0.006092071533203125, 0.0140838623046875, 0.03643798828125, -0.0279693603515625, -0.036590576171875, -0.01348876953125, -0.0283355712890625, 0.056182861328125, -0.0389404296875, 0.0338134765625, -0.01274871826171875, -0.01273345947265625, -0.0496826171875, 0.0223541259765625, 0.032806396484375, -0.0183868408203125, 0.044342041015625, -0.00254058837890625, -0.0147857666015625, 0.0031833648681640625, -0.0079193115234375, 0.048736572265625, -0.00018858909606933594, -0.10186767578125, -0.0007276535034179688, -0.05572509765625, -0.03082275390625, -0.00704193115234375, 0.0299224853515625, -0.0286712646484375, 0.027435302734375, 0.00545501708984375, -0.0213623046875, -0.0010499954223632812, 0.03466796875, 0.0019283294677734375, 0.024932861328125, 0.02288818359375, 0.0078582763671875, -0.02838134765625, -0.00499725341796875, -0.01348114013671875, 0.01544189453125, 0.0201263427734375, 0.08184814453125, -0.010833740234375, 0.0196075439453125, -0.01386260986328125, 0.06341552734375, -0.036407470703125, -0.04864501953125, 0.0875244140625, 0.0277252197265625, 0.0250244140625, -0.02801513671875, -0.06195068359375, 0.04150390625, -0.01149749755859375, 0.0191192626953125, 0.0203399658203125, -0.007175445556640625, 0.006702423095703125, 0.03326416015625, 0.0399169921875, -0.0286102294921875, -0.041259765625, -0.03466796875, -0.00849151611328125, 0.0208587646484375, 0.01849365234375, 0.004199981689453125, 0.044158935546875, 0.0101776123046875, 0.01454925537109375, -0.01702880859375, -0.00518798828125, -0.032989501953125, 0.0130615234375, 0.0267791748046875, -0.0164642333984375, 0.0306549072265625, -0.0157012939453125, 0.005603790283203125, 0.0030879974365234375, 0.050323486328125, 0.00472259521484375, -0.026641845703125, 0.0110626220703125, -0.0026226043701171875, 0.03533935546875, -0.01155853271484375, 0.0036106109619140625, 0.00081634521484375, 0.00806427001953125, -0.014312744140625, -0.04681396484375, -0.048675537109375, -0.02203369140625, 0.030487060546875, 0.04803466796875, -0.0064697265625, -0.005687713623046875, -0.09942626953125, -0.016082763671875, 0.03204345703125, 0.030029296875, -0.07989501953125, 0.059326171875, -0.01497650146484375, 0.00949859619140625, -0.0194091796875, -0.05059814453125, 0.0258636474609375, 0.042236328125, -0.02386474609375, -0.020172119140625, -0.030853271484375, -0.0159912109375, -0.0361328125, 0.0274200439453125, 0.040191650390625, -0.0162506103515625, -0.0198974609375, 0.040191650390625, 0.01416015625, 0.06793212890625, -0.025054931640625, -0.0304718017578125, -0.0102386474609375, -0.01343536376953125, -0.0006895065307617188, -0.01534271240234375, 0.0104522705078125, -0.05487060546875, -0.0212860107421875, -0.0394287109375, 0.0018138885498046875, -0.00669097900390625, -0.06036376953125, -0.09130859375, 0.018463134765625, -0.0205535888671875, -0.03179931640625, -0.009735107421875, -0.01548004150390625, -0.01105499267578125, 0.00439453125, -0.010101318359375, -0.003021240234375, -0.02294921875, 0.037689208984375, 0.012939453125, 0.00872802734375, -0.0242462158203125, 0.0234375, -0.01513671875, 0.050567626953125, 0.0462646484375, -0.0004382133483886719, -0.01506805419921875, 0.022247314453125, 0.0146636962890625, 0.07244873046875, 0.0191192626953125, -0.0010585784912109375, -0.0018682479858398438, -0.07781982421875, -0.031646728515625, 0.01519775390625, -0.007373809814453125, 0.01210784912109375, 0.056396484375, 0.09136962890625, 0.013153076171875, -0.04632568359375, -0.0322265625, -0.04522705078125, -0.0310821533203125, -0.0152587890625, 0.0235748291015625, -0.07037353515625, 0.0209503173828125, 0.0225677490234375, -0.0182647705078125, 0.049346923828125, -0.041473388671875, -0.02520751953125, 0.01433563232421875, -0.0006628036499023438, 0.009033203125, -0.04888916015625, 0.039581298828125, 0.032012939453125, -0.046966552734375, -0.05267333984375, 0.02142333984375, -0.0213165283203125, -0.0174560546875, -0.00801849365234375, -0.0003445148468017578, -0.037261962890625, -0.0173187255859375, 0.0295257568359375, -0.0178070068359375, 0.05181884765625, -0.0526123046875, -0.034942626953125, 0.034210205078125, 0.0226898193359375, -0.02325439453125, 0.0318603515625, 0.0255279541015625, 0.039642333984375, -0.0299224853515625, 0.00534820556640625, -0.00627899169921875, -0.00267791748046875, -0.03167724609375, 0.056427001953125, -0.016387939453125, -0.01180267333984375, 0.008880615234375, -0.0269775390625, -0.0014171600341796875, 0.046966552734375, 0.035247802734375, -0.028106689453125, 0.04132080078125, 0.0347900390625, 0.0396728515625, 0.015350341796875 ]
0c4266ba872754c6e5e929dc1b02e5ede0306d43
Wordpress Stackexchange Q: Is jQuery included in WordPress by default? When I downloaded the latest version 3.8.1, inside wp-include/js there is a jQuery folder. Can I assume that WordPress will always include it, meaning I don't have to make my own call? E.g. wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', array(), null, false); wp_enqueue_script('jquery'); A: You still need to enqueue it, but you do not need to register it, as it is registered automatically.
Q: Is jQuery included in WordPress by default? When I downloaded the latest version 3.8.1, inside wp-include/js there is a jQuery folder. Can I assume that WordPress will always include it, meaning I don't have to make my own call? E.g. wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', array(), null, false); wp_enqueue_script('jquery'); A: You still need to enqueue it, but you do not need to register it, as it is registered automatically. A: Yes, jQuery is part of WordPress core. But--it can become outdated, because jQuery updates can happen in between WP releases. The recent release of WordPress does use a very recent version of jQuery. By default, wp_enqueue_script('jquery') grabs jQuery from the core at /wp-includes/js/jquery/jquery.js. The "correct" way to add jQuery to your WP site is: function theme_scripts() { wp_enqueue_script('jquery'); } add_action('wp_enqueue_scripts', 'theme_scripts'); Another catch--if you do use the latest jQuery, be careful that it doesn't break plugins. A: Jquery is included inside the core wordpress files but you need to load it manually for the frontend user. for admin dashboard it was loaded automatically. keep in mind you can't use the shorthand notation $. you need to use jQuery instead of $ if you want to use $ instead of jQuery just put this block of code to your custom js file var $ = jQuery.bind({});
wordpress
{ "language": "en", "length": 213, "provenance": "stackexchange_00019.jsonl.gz:443948", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140307" }
[ 0.05413818359375, 0.01305389404296875, -0.05792236328125, -0.056610107421875, 0.047210693359375, -0.048553466796875, 0.049713134765625, 0.01374053955078125, -0.008087158203125, 0.0085906982421875, -0.058563232421875, 0.029876708984375, -0.0199737548828125, 0.00878143310546875, 0.0013942718505859375, -0.04241943359375, 0.057464599609375, -0.0294189453125, 0.0118408203125, -0.0032749176025390625, 0.014892578125, 0.009490966796875, 0.008636474609375, 0.10821533203125, 0.03277587890625, -0.02752685546875, 0.08447265625, -0.015106201171875, 0.0284423828125, -0.0026493072509765625, 0.03387451171875, -0.0214385986328125, 0.0246124267578125, -0.0020751953125, 0.0004992485046386719, 0.0220794677734375, 0.00832366943359375, 0.0293121337890625, 0.02813720703125, -0.003326416015625, 0.0237884521484375, -0.0203857421875, 0.0068817138671875, -0.0088653564453125, -0.00669097900390625, -0.01030731201171875, -0.0054779052734375, -0.035552978515625, 0.01087188720703125, -0.04022216796875, 0.00991058349609375, -0.0180511474609375, 0.027435302734375, -0.0677490234375, -0.01251220703125, 0.01202392578125, 0.005157470703125, -0.04803466796875, 0.0277557373046875, 0.021270751953125, -0.00974273681640625, -0.0210418701171875, 0.0149993896484375, -0.05224609375, 0.0215606689453125, -0.0020599365234375, -0.0292510986328125, 0.0191802978515625, -0.06878662109375, 0.00746917724609375, 0.035980224609375, -0.053375244140625, -0.022735595703125, -0.01110076904296875, -0.00665283203125, 0.02044677734375, 0.0029449462890625, -0.00894927978515625, 0.003589630126953125, 0.0202789306640625, 0.01224517822265625, -0.0063018798828125, -0.022857666015625, -0.0230255126953125, 0.0264892578125, 0.018341064453125, -0.0002942085266113281, -0.016021728515625, -0.0494384765625, -0.0209808349609375, -0.0343017578125, -0.02764892578125, -0.06634521484375, -0.01216888427734375, -0.005535125732421875, 0.00659942626953125, 0.032501220703125, 0.05596923828125, -0.0115814208984375, 0.0204010009765625, 0.00542449951171875, -0.0386962890625, 0.04412841796875, -0.038909912109375, -0.001277923583984375, 0.04058837890625, 0.005146026611328125, 0.00946807861328125, 0.00782012939453125, 0.0250244140625, -0.0012311935424804688, -0.016937255859375, 0.0308685302734375, 0.0019044876098632812, -0.00853729248046875, -0.0267486572265625, -0.0301971435546875, 0.042877197265625, -0.0037822723388671875, 0.0191650390625, 0.00763702392578125, 0.0206756591796875, -0.03173828125, -0.025726318359375, 0.017242431640625, -0.0098724365234375, -0.025299072265625, -0.007732391357421875, -0.01384735107421875, 0.004848480224609375, -0.0270233154296875, 0.0292816162109375, 0.047607421875, 0.016021728515625, -0.016998291015625, -0.01605224609375, 0.065185546875, 0.0003635883331298828, 0.01346588134765625, 0.001079559326171875, -0.021270751953125, -0.00780487060546875, 0.0125579833984375, -0.023284912109375, 0.017974853515625, 0.0056610107421875, -0.0003299713134765625, 0.0181884765625, 0.034881591796875, 0.0163116455078125, 0.01430511474609375, -0.04058837890625, 0.04644775390625, 0.0050201416015625, 0.0038127899169921875, -0.00850677490234375, 0.058258056640625, -0.031036376953125, -0.057220458984375, -0.0443115234375, -0.005657196044921875, 0.0069580078125, -0.00936126708984375, -0.031036376953125, -0.0106658935546875, -0.0267333984375, 0.006969451904296875, 0.013458251953125, 0.0237884521484375, 0.071533203125, -0.024322509765625, -0.072998046875, 0.0196685791015625, 0.0204315185546875, -0.0277862548828125, 0.04205322265625, 0.00989532470703125, 0.00860595703125, 0.031402587890625, 0.007274627685546875, -0.029937744140625, -0.03472900390625, 0.09124755859375, -0.05059814453125, -0.027099609375, -0.0286865234375, 0.0254364013671875, 0.03692626953125, 0.00402069091796875, 0.01800537109375, 0.054718017578125, 0.01122283935546875, -0.03662109375, -0.01027679443359375, 0.006702423095703125, -0.006748199462890625, -0.0223388671875, -0.0107879638671875, -0.003948211669921875, 0.007015228271484375, -0.0174713134765625, -0.0172119140625, 0.028961181640625, -0.00904083251953125, -0.020904541015625, -0.00035643577575683594, -0.0257110595703125, 0.05218505859375, 0.0188751220703125, -0.00615692138671875, 0.00467681884765625, 0.001247406005859375, -0.016754150390625, -0.03369140625, -0.053558349609375, 0.029144287109375, -0.04888916015625, 0.07745361328125, 0.0019397735595703125, 0.063232421875, -0.01126861572265625, -0.06329345703125, 0.004093170166015625, -0.03265380859375, 0.03033447265625, 0.006011962890625, -0.034515380859375, -0.012664794921875, 0.0183868408203125, 0.005023956298828125, -0.0105743408203125, 0.049224853515625, 0.01336669921875, 0.0447998046875, -0.027618408203125, -0.0264892578125, -0.0244293212890625, -0.015594482421875, 0.01506805419921875, 0.040008544921875, 0.032989501953125, 0.055877685546875, 0.010589599609375, 0.00016748905181884766, 0.0382080078125, -0.041839599609375, 0.026275634765625, -0.019622802734375, -0.01436614990234375, -0.0022869110107421875, 0.013702392578125, -0.0032806396484375, 0.013916015625, -0.06768798828125, 0.0034732818603515625, 0.0408935546875, -0.012420654296875, 0.0045928955078125, -0.0267791748046875, 0.000537872314453125, 0.01261138916015625, -0.01824951171875, -0.0196533203125, -0.004955291748046875, 0.029296875, -0.01201629638671875, 0.041961669921875, 0.028228759765625, 0.0310821533203125, -0.025146484375, -0.0196380615234375, -0.049346923828125, -0.0072021484375, 0.08111572265625, 0.03485107421875, 0.0352783203125, -0.045867919921875, -0.0221405029296875, 0.004489898681640625, 0.06719970703125, -0.0027027130126953125, -0.021392822265625, -0.0201263427734375, -0.004383087158203125, 0.019561767578125, -0.07293701171875, 0.01561737060546875, 0.01235198974609375, 0.016387939453125, 0.005985260009765625, 0.0400390625, 0.01763916015625, -0.007289886474609375, 0.017425537109375, 0.01276397705078125, -0.023284912109375, 0.038818359375, 0.005222320556640625, 0.00946807861328125, -0.021453857421875, 0.0017490386962890625, 0.03167724609375, 0.0036640167236328125, -0.013458251953125, 0.00829315185546875, 0.0169830322265625, 0.05609130859375, -0.0108184814453125, -0.0062713623046875, 0.01441192626953125, -0.0780029296875, -0.029327392578125, 0.005401611328125, -0.0134124755859375, -0.01226806640625, -0.040374755859375, -0.0240631103515625, -0.0313720703125, -0.158935546875, -0.131591796875, -0.0311126708984375, -0.0740966796875, 0.01513671875, -0.00743865966796875, -0.0246429443359375, 0.0036334991455078125, 0.03497314453125, 0.0260467529296875, -0.034759521484375, -0.01306915283203125, -0.044219970703125, -0.0677490234375, -0.06561279296875, 0.00395965576171875, 0.003261566162109375, 0.01226806640625, 0.0032138824462890625, 0.030029296875, 0.010223388671875, -0.0540771484375, -0.005466461181640625, 0.0220794677734375, -0.0167083740234375, 0.01401519775390625, 0.04144287109375, -0.061920166015625, -0.0260162353515625, 0.001255035400390625, 0.004047393798828125, 0.01296234130859375, -0.0005092620849609375, -0.01212310791015625, -0.00978851318359375, -0.02935791015625, -0.006626129150390625, 0.08404541015625, 0.003925323486328125, -0.038543701171875, 0.03900146484375, -0.04736328125, -0.042816162109375, 0.030975341796875, -0.029937744140625, -0.00502777099609375, -0.0115814208984375, -0.0219573974609375, 0.0026454925537109375, 0.03558349609375, 0.0225067138671875, -0.004413604736328125, -0.0029277801513671875, -0.0064697265625, 0.053619384765625, -0.007808685302734375, 0.0030460357666015625, -0.031951904296875, 0.038482666015625, -0.041534423828125, 0.012664794921875, 0.0092620849609375, -0.028564453125, -0.00038313865661621094, -0.029327392578125, 0.0013685226440429688, -0.0003254413604736328, 0.0263519287109375, -0.006092071533203125, -0.005889892578125, -0.00814056396484375, -0.00923919677734375, 0.01328277587890625, 0.041748046875, -0.0036869049072265625, -0.0010843276977539062, -0.0011043548583984375, 0.011627197265625, -0.047088623046875, -0.057647705078125, -0.043548583984375, -0.00787353515625, -0.0112762451171875, -0.0097503662109375, -0.029998779296875, -0.0023040771484375, -0.0161285400390625, 0.0105438232421875, 0.0021209716796875, -0.025054931640625, 0.0225372314453125, -0.044891357421875, -0.0003795623779296875, 0.00007593631744384766, -0.00702667236328125, -0.0479736328125, 0.0065765380859375, -0.047637939453125, -0.07806396484375, -0.00905609130859375, -0.08294677734375, 0.08013916015625, 0.048675537109375, -0.00420379638671875, 0.00418853759765625, 0.047698974609375, 0.012542724609375, 0.0161895751953125, 0.0245208740234375, 0.006275177001953125, -0.0047607421875, 0.002490997314453125, 0.039794921875, -0.031097412109375, 0.0026187896728515625, -0.01006317138671875, -0.058990478515625, -0.06439208984375, -0.0157470703125, -0.005649566650390625, 0.0246429443359375, -0.0312347412109375, -0.006565093994140625, -0.0328369140625, -0.045745849609375, -0.00487518310546875, -0.0078125, -0.0182647705078125, -0.035552978515625, -0.0184783935546875, 0.02655029296875, -0.004970550537109375, 0.0219268798828125, 0.00463104248046875, 0.03778076171875, 0.00994873046875, -0.007137298583984375, -0.03564453125, 0.0041656494140625, 0.0287017822265625, 0.01129913330078125, 0.057769775390625, 0.01076507568359375, -0.004245758056640625, 0.041259765625, 0.020721435546875, 0.0236968994140625, -0.016510009765625, 0.043853759765625, 0.00994873046875, 0.004913330078125, 0.00727081298828125, 0.00921630859375, -0.0275726318359375, 0.0044403076171875, 0.00516510009765625, 0.00922393798828125, 0.042449951171875, -0.004261016845703125, -0.026641845703125, 0.00018274784088134766, 0.00042176246643066406, 0.001552581787109375, -0.01198577880859375, -0.0179595947265625, 0.0797119140625, 0.03765869140625, -0.002368927001953125, 0.03851318359375, 0.0673828125, -0.0176239013671875, 0.038818359375, 0.01058197021484375, 0.0443115234375, 0.0241851806640625, 0.042388916015625, 0.004428863525390625, 0.003875732421875, -0.00930023193359375, 0.03729248046875, 0.045745849609375, -0.01311492919921875, 0.00981903076171875, 0.0091094970703125, 0.041656494140625, -0.02783203125, -0.0186767578125, 0.037261962890625, 0.058929443359375, -0.0297393798828125, -0.019195556640625, -0.0208587646484375, 0.006443023681640625, -0.053253173828125, 0.0304107666015625, 0.0145263671875, -0.001056671142578125, -0.01336669921875, 0.0272216796875, 0.007965087890625, -0.0015058517456054688, 0.00801849365234375, 0.019561767578125, 0.01078033447265625, 0.05328369140625, 0.013092041015625, -0.0209503173828125, -0.0304412841796875, 0.060516357421875, 0.0024566650390625, -0.041595458984375, -0.0255584716796875, 0.022552490234375, 0.036773681640625, -0.029876708984375, -0.0105438232421875, 0.01386260986328125, 0.0026988983154296875, -0.0219879150390625, -0.0276947021484375, -0.00945281982421875, -0.01107025146484375, -0.002262115478515625, 0.004871368408203125, -0.0023288726806640625, 0.0264434814453125, -0.0037441253662109375, 0.02545166015625, -0.01371002197265625, -0.0027103424072265625, 0.0119476318359375, -0.037200927734375, -0.011199951171875, -0.006542205810546875, 0.00772857666015625, 0.0211334228515625, 0.00957489013671875, -0.085693359375, -0.035125732421875, -0.024169921875, -0.007465362548828125, 0.04913330078125, -0.0276031494140625, 0.020111083984375, -0.017486572265625, 0.0007114410400390625, -0.0076446533203125, 0.0181884765625, 0.044525146484375, 0.034576416015625, 0.01111602783203125, -0.025970458984375, -0.057098388671875, -0.04144287109375, -0.0164794921875, -0.022705078125, -0.0170745849609375, 0.000052869319915771484, -0.01482391357421875, 0.0012960433959960938, -0.005756378173828125, 0.0028133392333984375, -0.04571533203125, 0.049041748046875, 0.042999267578125, 0.035614013671875, -0.01032257080078125, 0.048919677734375, 0.00914764404296875, 0.006793975830078125, 0.00928497314453125, 0.018280029296875, -0.0152740478515625, -0.018157958984375, -0.0248260498046875, -0.059814453125, 0.0164337158203125, 0.0219268798828125, -0.028533935546875, 0.036895751953125, 0.052703857421875, 0.01812744140625, 0.0233001708984375, 0.0009527206420898438, 0.002971649169921875, -0.00086212158203125, 0.0224761962890625, 0.033966064453125, 0.0220489501953125, 0.057159423828125, 0.005268096923828125, 0.04107666015625, -0.0167388916015625, -0.0171356201171875, 0.005886077880859375, -0.01806640625, -0.0028820037841796875, 0.0170135498046875, -0.057586669921875, 0.06988525390625, -0.01117706298828125, 0.0024433135986328125, 0.01323699951171875, -0.0180206298828125, 0.0023784637451171875, -0.031219482421875, 0.00923919677734375, -0.036712646484375, -0.0352783203125, 0.037841796875, -0.0006628036499023438, -0.007572174072265625, 0.04718017578125, 0.0001285076141357422, 0.0122833251953125, 0.041015625, 0.060516357421875, -0.03961181640625, 0.001262664794921875, -0.01641845703125, -0.06591796875, -0.01384735107421875, -0.00379180908203125, -0.00815582275390625, 0.007659912109375, 0.0220184326171875, 0.025848388671875, -0.0208587646484375, 0.0323486328125, 0.0194854736328125, -0.0171051025390625, 0.003498077392578125, -0.0270843505859375, 0.006328582763671875, 0.0188446044921875, -0.011993408203125, -0.019256591796875, 0.01399993896484375, -0.021270751953125, 0.0125274658203125, 0.022674560546875, -0.0010404586791992188, -0.0220794677734375, 0.055816650390625, -0.008636474609375, 0.004055023193359375, 0.00998687744140625, -0.0157623291015625, 0.01345062255859375, 0.06512451171875, -0.039886474609375, 0.04931640625, 0.0306396484375, -0.0234832763671875, -0.0014514923095703125, -0.04949951171875, 0.041351318359375, 0.00551605224609375, -0.0592041015625, 0.028350830078125, 0.00896453857421875, -0.04693603515625, 0.007598876953125, 0.00836181640625, 0.06097412109375, -0.038116455078125, -0.006366729736328125, 0.02154541015625, 0.0308074951171875, -0.000014007091522216797, 0.0019683837890625, 0.01800537109375, -0.061187744140625, -0.02178955078125, 0.01396942138671875, -0.03369140625, -0.0106353759765625, -0.0020160675048828125, -0.0211639404296875, 0.08343505859375, -0.0202484130859375, -0.03326416015625, -0.01332855224609375, 0.05291748046875, 0.00592041015625, 0.060821533203125, -0.01136016845703125, 0.02288818359375, -0.01268768310546875, -0.0178070068359375, -0.0248260498046875, 0.000934600830078125, -0.0289154052734375, 0.01274871826171875, -0.0121002197265625, -0.008941650390625, 0.0654296875, -0.0098114013671875, 0.0261993408203125, 0.06365966796875, 0.0059814453125, -0.06988525390625, 0.007343292236328125, 0.033477783203125, 0.037017822265625, -0.011810302734375, 0.0276947021484375, -0.007190704345703125, -0.029052734375, 0.0322265625, 0.0108489990234375, 0.0184326171875, 0.014678955078125, -0.000850677490234375, -0.0006508827209472656, 0.01149749755859375, -0.0093231201171875, 0.0249481201171875, -0.0262451171875, 0.068359375, 0.01016998291015625, 0.00675201416015625, -0.0237274169921875, -0.0288848876953125, 0.03448486328125, 0.0016431808471679688, -0.005710601806640625, -0.010009765625, 0.00986480712890625, -0.0030517578125, -0.0030879974365234375, -0.016021728515625, 0.031829833984375, -0.0184326171875, 0.0178070068359375, 0.0172576904296875, 0.0266571044921875, -0.040985107421875, -0.033966064453125, 0.028778076171875, 0.033233642578125, -0.01430511474609375, -0.0251312255859375, -0.00006407499313354492, 0.007671356201171875, 0.011749267578125, -0.0148468017578125, 0.01300048828125, -0.00568389892578125, 0.0113677978515625, -0.0189666748046875, -0.016387939453125, 0.0299224853515625, -0.0172576904296875, 0.0046539306640625, -0.00008529424667358398, 0.0472412109375, 0.031005859375, -0.049285888671875, 0.0289459228515625, 0.0247802734375, 0.038543701171875, -0.0159912109375, 0.07421875, -0.01483917236328125, -0.00656890869140625, -0.01373291015625, 0.044403076171875, 0.01103973388671875, 0.002460479736328125, -0.02130126953125, -0.0078582763671875, -0.00252532958984375, 0.0242156982421875, 0.00003349781036376953, 0.06829833984375, 0.061981201171875, 0.0198822021484375, -0.0379638671875, -0.007354736328125, 0.016448974609375, -0.043975830078125, 0.01274871826171875, 0.0028533935546875, 0.048614501953125, 0.05731201171875, 0.0165557861328125, -0.0202484130859375, 0.045501708984375, 0.07275390625, -0.031982421875, 0.00543975830078125, 0.007537841796875, -0.044189453125, 0.046539306640625, 0.02911376953125, 0.08612060546875, 0.01287078857421875, -0.035888671875, -0.01806640625, 0.04229736328125, -0.044219970703125, 0.0031070709228515625, 0.032135009765625, -0.01476287841796875, 0.00977325439453125, 0.066650390625, -0.007450103759765625, 0.0113372802734375, -0.004055023193359375, 0.00907135009765625, -0.026519775390625, 0.03753662109375, 0.0149383544921875, 0.003490447998046875, 0.01387786865234375, 0.036346435546875, -0.017242431640625, 0.01971435546875, 0.0031070709228515625, 0.00574493408203125, 0.0015878677368164062, 0.0374755859375, -0.00630950927734375, 0.0333251953125, 0.01995849609375, -0.004123687744140625, -0.0083465576171875, -0.002330780029296875, -0.021575927734375, -0.07476806640625, 0.035400390625, -0.0042877197265625, 0.004253387451171875, 0.044769287109375, -0.00998687744140625, 0.0017843246459960938, -0.01136016845703125, 0.070556640625, -0.03924560546875, -0.061798095703125, -0.07659912109375, -0.009033203125, 0.004238128662109375, -0.01001739501953125, -0.00689697265625, -0.0182952880859375, 0.002506256103515625, -0.04107666015625, 0.0035076141357421875, 0.00417327880859375, -0.017852783203125, 0.0075225830078125, 0.036102294921875, -0.0253448486328125, -0.0005779266357421875, -0.01117706298828125, -0.00466156005859375, 0.006038665771484375, 0.0024166107177734375, -0.00339508056640625, -0.03717041015625, -0.0237579345703125, 0.033966064453125, 0.037017822265625, 0.01085662841796875, 0.02252197265625, -0.022430419921875, -0.0289154052734375, -0.00519561767578125, 0.01739501953125, -0.0179443359375, -0.004001617431640625, -0.01378631591796875, 0.00408172607421875, -0.01137542724609375, -0.042327880859375, -0.056610107421875, 0.012237548828125, 0.02276611328125, 0.004596710205078125, -0.08001708984375, 0.04248046875, -0.0189056396484375, 0.058380126953125, -0.032867431640625, 0.04498291015625, -0.02044677734375, 0.00502777099609375, -0.03729248046875, -0.0198974609375, -0.0211944580078125, 0.02935791015625, -0.00986480712890625, 0.04071044921875, 0.047882080078125, -0.045013427734375, -0.006641387939453125, 0.0161285400390625, 0.0278778076171875, 0.06884765625, 0.00289154052734375, -0.02337646484375, -0.0179595947265625, 0.031982421875, 0.0104217529296875, -0.06646728515625, -0.0247344970703125, -0.040435791015625, 0.0261383056640625, -0.010833740234375, 0.0231170654296875, 0.045135498046875, -0.0260162353515625, -0.1298828125, 0.045013427734375, -0.0305023193359375, -0.046142578125, -0.01213836669921875, -0.0050811767578125, -0.004978179931640625, -0.0225677490234375, -0.02777099609375, -0.03466796875, -0.01995849609375, 0.038421630859375, 0.032012939453125, 0.0241851806640625, 0.0027866363525390625, -0.00029087066650390625, -0.056243896484375, 0.0200653076171875, 0.006992340087890625, 0.032684326171875, 0.00470733642578125, 0.023773193359375, 0.0157928466796875, 0.064697265625, -0.0038127899169921875, -0.00872802734375, -0.01117706298828125, -0.0635986328125, 0.010345458984375, -0.0239715576171875, 0.00374603271484375, -0.026702880859375, 0.044403076171875, -0.029632568359375, -0.00806427001953125, 0.00797271728515625, -0.04400634765625, -0.0594482421875, 0.04962158203125, 0.0275421142578125, -0.0108795166015625, -0.0338134765625, 0.029815673828125, 0.035491943359375, -0.006801605224609375, -0.06927490234375, 0.00800323486328125, -0.06805419921875, -0.0251617431640625, -0.051605224609375, 0.01044464111328125, -0.049591064453125, -0.005092620849609375, 0.057464599609375, -0.01395416259765625, 0.035552978515625, 0.004634857177734375, 0.0064697265625, 0.0540771484375, 0.03936767578125, 0.01169586181640625, 0.07025146484375, -0.04449462890625, -0.0185546875, 0.0226287841796875, -0.005901336669921875, -0.002231597900390625, 0.01087188720703125, 0.006500244140625, 0.034271240234375, 0.01140594482421875, 0.06036376953125, -0.02154541015625, 0.00968170166015625, -0.006011962890625, -0.022491455078125, -0.0303802490234375, -0.00664520263671875, -0.0257720947265625, 0.0156402587890625, 0.0159912109375, -0.0020809173583984375, 0.0831298828125, -0.03717041015625, -0.0006117820739746094, 0.0103759765625, -0.051910400390625, 0.005889892578125, -0.0182952880859375, -0.04742431640625, -0.042327880859375, -0.01480865478515625 ]
109b3fadd833716c4d3c6a5f1e7c69d325fad7e4
Wordpress Stackexchange Q: Add content before/after admin post wp-list-table I know there are two hooks to add content before and after a taxonomy wp-list-table. Is there an action to add content after the post type wp-list-table on the edit.php page? For $taxonomy List Tables: add_action( 'category' . '_pre_add_form', 'copy_above_form' ); function copy_above_form( $taxonomy ) { echo '<p>Above the WP-List-Table</p>'; } add_action( 'after-' . 'category' . '-table', 'copy_below_table' ); function copy_below_table( $taxonomy ) { echo '<p>Below the WP-List-Table</p>'; } Reference: https://trepmal.com/action_hook/after-category-table/ Thanks! A: This has probably been solved many times here on this site, but maybe not with all your requirements? So let me try to answer it here: You can try to use the all_admin_notices and in_admin_footer actions, wrapped inside the load-edit.php action to target the edit.php page: add_action( 'load-edit.php', function(){ $screen = get_current_screen(); // Only edit post screen: if( 'edit-post' === $screen->id ) { // Before: add_action( 'all_admin_notices', function(){ echo '<p>Greetings from <strong>all_admin_notices</strong>!</p>'; }); // After: add_action( 'in_admin_footer', function(){ echo '<p>Goodbye from <strong>in_admin_footer</strong>!</p>'; }); } }); This will render like the following screenshots: Before: After: You can then easily modify this to target the edit.php screen for different custom post types. Hope this helps.
Q: Add content before/after admin post wp-list-table I know there are two hooks to add content before and after a taxonomy wp-list-table. Is there an action to add content after the post type wp-list-table on the edit.php page? For $taxonomy List Tables: add_action( 'category' . '_pre_add_form', 'copy_above_form' ); function copy_above_form( $taxonomy ) { echo '<p>Above the WP-List-Table</p>'; } add_action( 'after-' . 'category' . '-table', 'copy_below_table' ); function copy_below_table( $taxonomy ) { echo '<p>Below the WP-List-Table</p>'; } Reference: https://trepmal.com/action_hook/after-category-table/ Thanks! A: This has probably been solved many times here on this site, but maybe not with all your requirements? So let me try to answer it here: You can try to use the all_admin_notices and in_admin_footer actions, wrapped inside the load-edit.php action to target the edit.php page: add_action( 'load-edit.php', function(){ $screen = get_current_screen(); // Only edit post screen: if( 'edit-post' === $screen->id ) { // Before: add_action( 'all_admin_notices', function(){ echo '<p>Greetings from <strong>all_admin_notices</strong>!</p>'; }); // After: add_action( 'in_admin_footer', function(){ echo '<p>Goodbye from <strong>in_admin_footer</strong>!</p>'; }); } }); This will render like the following screenshots: Before: After: You can then easily modify this to target the edit.php screen for different custom post types. Hope this helps.
wordpress
{ "language": "en", "length": 193, "provenance": "stackexchange_00019.jsonl.gz:443952", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140319" }
[ 0.09222412109375, 0.0226898193359375, -0.03314208984375, -0.0849609375, 0.0684814453125, -0.059112548828125, 0.032989501953125, -0.011688232421875, -0.005641937255859375, -0.0088958740234375, -0.048004150390625, 0.0157470703125, -0.007678985595703125, -0.028533935546875, 0.048675537109375, -0.0267486572265625, 0.033477783203125, -0.04315185546875, 0.0237884521484375, -0.0095977783203125, -0.006103515625, 0.0015306472778320312, 0.0484619140625, 0.01107025146484375, 0.0008907318115234375, -0.0244140625, 0.0511474609375, -0.003082275390625, -0.0018091201782226562, -0.00383758544921875, -0.00032401084899902344, -0.022796630859375, 0.02142333984375, 0.0257110595703125, -0.0243988037109375, 0.031402587890625, 0.0302276611328125, 0.00762176513671875, 0.006175994873046875, 0.045654296875, 0.03607177734375, -0.0232086181640625, 0.0155181884765625, 0.027130126953125, 0.002460479736328125, -0.0164031982421875, 0.0193939208984375, -0.039703369140625, 0.04071044921875, -0.006061553955078125, -0.0026493072509765625, 0.007617950439453125, 0.0030975341796875, -0.0186920166015625, -0.017547607421875, -0.01085662841796875, -0.037322998046875, -0.013275146484375, 0.016204833984375, 0.0531005859375, 0.01241302490234375, -0.01531982421875, -0.007564544677734375, -0.049224853515625, -0.017181396484375, 0.004085540771484375, 0.0255279541015625, -0.0035552978515625, -0.043243408203125, -0.0171356201171875, 0.030731201171875, -0.0155792236328125, -0.017181396484375, -0.041259765625, 0.031646728515625, 0.028228759765625, 0.01490020751953125, 0.019439697265625, -0.020233154296875, 0.039398193359375, 0.020233154296875, 0.00527191162109375, 0.039794921875, -0.0474853515625, 0.022125244140625, -0.00983428955078125, -0.00815582275390625, -0.011322021484375, -0.0279998779296875, -0.0362548828125, -0.019744873046875, -0.042144775390625, -0.0163421630859375, -0.003787994384765625, 0.0002872943878173828, -0.049957275390625, 0.02020263671875, 0.053375244140625, -0.008758544921875, 0.023651123046875, -0.0286102294921875, -0.025146484375, 0.029541015625, -0.043975830078125, 0.00913238525390625, 0.0283966064453125, -0.014190673828125, -0.0174407958984375, 0.0305633544921875, 0.01006317138671875, -0.0165252685546875, 0.0019283294677734375, -0.0093994140625, -0.00193023681640625, -0.0032176971435546875, -0.0006546974182128906, -0.037841796875, 0.01024627685546875, -0.0162353515625, 0.01416015625, -0.0333251953125, -0.0009665489196777344, 0.0010166168212890625, -0.0290985107421875, 0.031158447265625, 0.005634307861328125, -0.0078582763671875, -0.004611968994140625, 0.030670166015625, 0.0205841064453125, -0.01139068603515625, 0.013397216796875, 0.0518798828125, 0.0272979736328125, 0.00415802001953125, -0.0013751983642578125, -0.0185394287109375, 0.02081298828125, -0.016448974609375, 0.0171356201171875, -0.0413818359375, -0.025299072265625, 0.0086517333984375, -0.0247802734375, 0.019439697265625, 0.03173828125, 0.005474090576171875, -0.006153106689453125, 0.015716552734375, -0.040008544921875, 0.01511383056640625, -0.0518798828125, 0.055267333984375, 0.0011587142944335938, -0.039031982421875, -0.021575927734375, 0.023193359375, -0.0328369140625, -0.0213775634765625, -0.0498046875, 0.00702667236328125, -0.0038280487060546875, 0.024169921875, -0.07659912109375, -0.0794677734375, 0.002094268798828125, -0.0770263671875, -0.01015472412109375, 0.03607177734375, -0.002063751220703125, 0.0616455078125, -0.00933837890625, 0.03759765625, 0.0169677734375, 0.0002467632293701172, 0.012420654296875, -0.0125732421875, 0.0064697265625, 0.041595458984375, -0.007709503173828125, -0.0289764404296875, -0.04388427734375, 0.04425048828125, -0.026275634765625, -0.05181884765625, 0.0255126953125, 0.0165252685546875, 0.0865478515625, 0.029632568359375, 0.03448486328125, 0.0311126708984375, -0.042724609375, -0.043731689453125, 0.00601959228515625, -0.0172119140625, -0.0211181640625, 0.01110076904296875, 0.006809234619140625, -0.0217132568359375, 0.0180206298828125, -0.04541015625, 0.01540374755859375, 0.005245208740234375, 0.0305938720703125, -0.0306243896484375, 0.0404052734375, -0.0343017578125, 0.0484619140625, 0.00811767578125, 0.0004799365997314453, 0.0159912109375, -0.005443572998046875, -0.001895904541015625, -0.06060791015625, -0.05694580078125, -0.0215911865234375, -0.044952392578125, 0.0222625732421875, 0.01155853271484375, 0.04351806640625, 0.0201416015625, -0.028076171875, 0.00476837158203125, -0.048828125, 0.024200439453125, -0.006275177001953125, -0.0198974609375, -0.0034961700439453125, -0.001499176025390625, 0.005584716796875, 0.0186920166015625, 0.040771484375, 0.038726806640625, 0.0032806396484375, -0.04119873046875, 0.003993988037109375, 0.006683349609375, -0.04931640625, -0.002498626708984375, 0.041778564453125, 0.0189208984375, 0.045135498046875, -0.0235748291015625, 0.0010938644409179688, 0.0667724609375, -0.0021686553955078125, 0.004688262939453125, -0.0007181167602539062, -0.0194549560546875, 0.0491943359375, -0.0173492431640625, 0.06292724609375, 0.0021114349365234375, -0.01250457763671875, 0.021942138671875, 0.03729248046875, -0.0211029052734375, -0.0028018951416015625, 0.025787353515625, -0.046417236328125, 0.0157470703125, -0.07708740234375, -0.048797607421875, -0.01141357421875, 0.0247344970703125, -0.0099029541015625, 0.033721923828125, 0.01227569580078125, -0.04052734375, -0.0268096923828125, 0.047119140625, 0.05584716796875, 0.0070953369140625, 0.0018482208251953125, -0.041290283203125, 0.01174163818359375, -0.013153076171875, 0.0212554931640625, 0.00965118408203125, -0.0236663818359375, -0.03131103515625, 0.02410888671875, -0.0267181396484375, -0.014678955078125, -0.0111236572265625, -0.07391357421875, -0.01535797119140625, -0.030487060546875, -0.0282745361328125, -0.032623291015625, 0.00814056396484375, 0.0119781494140625, -0.032012939453125, 0.0236968994140625, 0.006481170654296875, -0.0175018310546875, 0.01366424560546875, 0.01013946533203125, 0.01511383056640625, -0.0224761962890625, 0.03289794921875, 0.0467529296875, -0.03143310546875, 0.00904083251953125, -0.01557159423828125, -0.00704193115234375, -0.0263214111328125, -0.0018186569213867188, -0.0284576416015625, -0.05487060546875, 0.0005626678466796875, 0.043212890625, 0.04034423828125, 0.06903076171875, 0.0046234130859375, -0.048583984375, -0.0043182373046875, 0.048614501953125, -0.04119873046875, -0.040283203125, 0.01381683349609375, -0.070068359375, -0.006435394287109375, 0.007602691650390625, -0.049560546875, -0.00756072998046875, 0.041473388671875, 0.00829315185546875, 0.0102386474609375, -0.0235137939453125, 0.0117034912109375, -0.0251007080078125, -0.045074462890625, -0.03802490234375, 0.014556884765625, 0.006336212158203125, 0.00702667236328125, 0.05377197265625, 0.00959014892578125, -0.06353759765625, 0.009613037109375, 0.01500701904296875, -0.032012939453125, 0.01078033447265625, 0.017333984375, -0.042083740234375, 0.0285491943359375, 0.00827789306640625, 0.013031005859375, 0.016357421875, 0.000392913818359375, -0.0268402099609375, -0.043212890625, 0.006580352783203125, -0.0025634765625, -0.00907135009765625, 0.054290771484375, 0.0089263916015625, -0.0110015869140625, -0.040985107421875, -0.0091094970703125, 0.00832366943359375, -0.024993896484375, 0.018310546875, 0.0168609619140625, -0.02294921875, 0.0289459228515625, -0.00923919677734375, 0.00768280029296875, 0.04217529296875, 0.01174163818359375, 0.047271728515625, -0.047821044921875, -0.040496826171875, -0.03912353515625, -0.0091705322265625, -0.006244659423828125, -0.002223968505859375, 0.0306549072265625, -0.0035381317138671875, 0.06280517578125, 0.0243072509765625, 0.04443359375, -0.00994873046875, -0.04681396484375, 0.01220703125, -0.06298828125, 0.0185546875, -0.06689453125, 0.0006060600280761719, -0.01995849609375, 0.0631103515625, -0.061279296875, -0.0192718505859375, 0.00641632080078125, 0.0189056396484375, -0.00919342041015625, -0.0179901123046875, -0.0279998779296875, -0.0225982666015625, -0.0926513671875, 0.0200042724609375, 0.017547607421875, -0.031158447265625, -0.024139404296875, 0.061126708984375, -0.07965087890625, -0.027099609375, 0.03662109375, -0.038421630859375, 0.006195068359375, 0.04840087890625, -0.0297698974609375, 0.0224151611328125, -0.0325927734375, -0.021759033203125, -0.06494140625, -0.0035648345947265625, -0.037445068359375, 0.042694091796875, 0.031341552734375, -0.0022411346435546875, -0.01116943359375, 0.03558349609375, 0.033843994140625, 0.01020050048828125, 0.007686614990234375, 0.01210784912109375, 0.01045989990234375, -0.07305908203125, -0.0019168853759765625, -0.047027587890625, -0.04193115234375, -0.03369140625, 0.00418853759765625, 0.0110321044921875, -0.023895263671875, -0.015380859375, -0.0086517333984375, -0.00665283203125, -0.040618896484375, -0.0182952880859375, -0.0285797119140625, -0.0196685791015625, -0.043975830078125, -0.0024051666259765625, 0.0012731552124023438, -0.046630859375, -0.0174102783203125, -0.028594970703125, -0.05267333984375, 0.030731201171875, 0.01074981689453125, 0.03192138671875, 0.008453369140625, -0.0606689453125, 0.006664276123046875, 0.05279541015625, -0.0204925537109375, 0.04052734375, 0.07061767578125, -0.03167724609375, 0.0288238525390625, 0.039794921875, -0.018768310546875, -0.016998291015625, 0.060699462890625, 0.0158843994140625, -0.0058746337890625, -0.005771636962890625, -0.01305389404296875, 0.041534423828125, 0.0124053955078125, -0.01491546630859375, -0.00830841064453125, -0.0236358642578125, 0.025238037109375, -0.00335693359375, 0.038909912109375, -0.01457977294921875, 0.0007081031799316406, -0.0169219970703125, 0.011810302734375, 0.0333251953125, 0.0294952392578125, -0.0012111663818359375, 0.0103912353515625, 0.0250701904296875, 0.0109405517578125, -0.028564453125, 0.003871917724609375, -0.00426483154296875, 0.0426025390625, -0.0171661376953125, 0.01198577880859375, -0.0175018310546875, 0.007686614990234375, 0.0038089752197265625, -0.0133056640625, -0.02520751953125, -0.034881591796875, -0.0016298294067382812, 0.0254974365234375, -0.006603240966796875, 0.021636962890625, 0.0291900634765625, 0.0246429443359375, 0.005451202392578125, -0.019439697265625, 0.0083465576171875, 0.01251220703125, -0.0234832763671875, -0.000762939453125, -0.0007395744323730469, -0.01076507568359375, 0.0261993408203125, 0.01444244384765625, 0.009521484375, 0.005390167236328125, -0.026458740234375, 0.0538330078125, 0.036590576171875, 0.0110321044921875, 0.0084991455078125, 0.0066986083984375, 0.004131317138671875, -0.008026123046875, -0.00836944580078125, -0.06292724609375, -0.017608642578125, 0.0251312255859375, 0.05914306640625, 0.0009822845458984375, -0.0275421142578125, 0.0202484130859375, 0.001377105712890625, -0.047332763671875, 0.03839111328125, 0.0231170654296875, -0.07574462890625, -0.007366180419921875, 0.01568603515625, -0.002674102783203125, -0.01398468017578125, -0.01357269287109375, 0.06170654296875, -0.0230865478515625, 0.0621337890625, -0.01995849609375, 0.04290771484375, -0.033599853515625, -0.04205322265625, -0.0283355712890625, -0.0029621124267578125, 0.0074615478515625, -0.0040130615234375, -0.0200347900390625, 0.001079559326171875, -0.007480621337890625, 0.0161895751953125, 0.0012445449829101562, 0.03668212890625, -0.0306396484375, -0.024444580078125, -0.044952392578125, 0.0005321502685546875, 0.0266265869140625, -0.005168914794921875, -0.01313018798828125, 0.005290985107421875, -0.04522705078125, -0.0133514404296875, -0.038177490234375, -0.0733642578125, -0.0088043212890625, -0.0134735107421875, 0.01088714599609375, 0.002010345458984375, 0.016571044921875, -0.004543304443359375, -0.02313232421875, 0.0171051025390625, 0.0225982666015625, -0.0009546279907226562, 0.0111846923828125, 0.09100341796875, -0.034820556640625, 0.06671142578125, 0.03521728515625, 0.046142578125, -0.04583740234375, -0.013336181640625, -0.0113525390625, -0.078857421875, 0.006633758544921875, 0.00641632080078125, -0.01129150390625, 0.030120849609375, 0.00713348388671875, 0.007045745849609375, 0.0166778564453125, 0.01470184326171875, 0.0043182373046875, -0.018035888671875, -0.004489898681640625, -0.0012273788452148438, -0.01316070556640625, 0.051116943359375, -0.0234832763671875, 0.0198974609375, -0.00909423828125, 0.003360748291015625, 0.0252685546875, -0.034576416015625, 0.023956298828125, 0.0254974365234375, -0.0452880859375, 0.058013916015625, 0.090087890625, 0.003231048583984375, 0.04315185546875, 0.0154571533203125, 0.0064239501953125, 0.0179290771484375, 0.005809783935546875, -0.01097869873046875, -0.0229339599609375, 0.052825927734375, 0.005748748779296875, -0.00792694091796875, 0.053253173828125, -0.035186767578125, 0.014678955078125, 0.061370849609375, 0.0816650390625, -0.06964111328125, 0.0019779205322265625, 0.039764404296875, -0.0185394287109375, 0.01096343994140625, -0.017578125, -0.00589752197265625, -0.0014123916625976562, 0.011962890625, 0.00930023193359375, -0.02960205078125, 0.0002827644348144531, 0.01250457763671875, -0.02001953125, -0.0016345977783203125, 0.006687164306640625, 0.0188140869140625, 0.0269012451171875, 0.00493621826171875, -0.01373291015625, 0.035064697265625, -0.03497314453125, 0.0418701171875, -0.024871826171875, -0.01314544677734375, -0.052764892578125, 0.00710296630859375, 0.030914306640625, -0.0167083740234375, 0.0244293212890625, -0.003875732421875, -0.033294677734375, 0.0241241455078125, -0.038482666015625, 0.032379150390625, -0.0074005126953125, -0.0130462646484375, -0.0083160400390625, -0.0024814605712890625, 0.01953125, 0.01229095458984375, -0.0103759765625, 0.01580810546875, -0.029205322265625, -0.0220489501953125, -0.004543304443359375, -0.04510498046875, 0.08953857421875, -0.061004638671875, -0.019195556640625, -0.01404571533203125, -0.02862548828125, 0.01444244384765625, -0.00252532958984375, 0.019317626953125, -0.06658935546875, -0.0545654296875, 0.004627227783203125, -0.064453125, -0.03173828125, -0.015380859375, -0.057342529296875, 0.1024169921875, 0.00658416748046875, 0.0032520294189453125, 0.003765106201171875, 0.043212890625, -0.058380126953125, 0.0189056396484375, -0.046661376953125, 0.03289794921875, -0.0031585693359375, 0.025726318359375, -0.05401611328125, 0.0025920867919921875, 0.00014650821685791016, 0.024505615234375, 0.0670166015625, 0.0229644775390625, -0.0379638671875, 0.004123687744140625, 0.05816650390625, 0.0196533203125, -0.0113067626953125, 0.041473388671875, -0.01419830322265625, -0.00865936279296875, -0.018402099609375, -0.0309906005859375, 0.017669677734375, -0.033538818359375, -0.03790283203125, 0.00963592529296875, 0.027069091796875, 0.037628173828125, 0.0153350830078125, 0.009368896484375, -0.0031337738037109375, 0.00618743896484375, 0.0128631591796875, -0.036651611328125, -0.0157470703125, 0.029632568359375, -0.01788330078125, 0.028778076171875, 0.042572021484375, -0.03369140625, 0.0236053466796875, -0.02069091796875, 0.041534423828125, 0.04107666015625, 0.01812744140625, 0.0292816162109375, 0.059295654296875, 0.035888671875, 0.05511474609375, 0.00897216796875, 0.0462646484375, 0.022705078125, 0.0181884765625, -0.038665771484375, 0.0306854248046875, 0.02398681640625, 0.062347412109375, -0.048858642578125, -0.004913330078125, 0.00688934326171875, 0.01806640625, -0.01312255859375, 0.0093536376953125, 0.02215576171875, 0.00835418701171875, 0.038787841796875, -0.0310821533203125, -0.02581787109375, -0.0176849365234375, 0.0406494140625, -0.0156707763671875, -0.0105438232421875, 0.0113067626953125, -0.047515869140625, -0.039154052734375, 0.01055145263671875, 0.0236968994140625, 0.034423828125, -0.0176544189453125, 0.06378173828125, 0.0125579833984375, 0.0012655258178710938, -0.042144775390625, 0.007537841796875, 0.0139923095703125, 0.0251617431640625, -0.043609619140625, 0.004535675048828125, 0.0204315185546875, 0.03594970703125, -0.00617218017578125, 0.033111572265625, 0.023529052734375, 0.03265380859375, 0.0180206298828125, -0.00414276123046875, 0.02471923828125, -0.0282745361328125, -0.0091094970703125, -0.06591796875, 0.0272979736328125, 0.027130126953125, 0.026214599609375, 0.0140838623046875, -0.0171966552734375, 0.04974365234375, -0.0226593017578125, 0.00237274169921875, -0.00189971923828125, -0.01503753662109375, 0.03936767578125, -0.00016772747039794922, 0.032928466796875, 0.00684356689453125, -0.0899658203125, -0.004566192626953125, -0.053131103515625, -0.070556640625, 0.0513916015625, 0.0482177734375, -0.018951416015625, 0.005977630615234375, 0.0009255409240722656, -0.0127410888671875, -0.0312042236328125, 0.031646728515625, 0.00920867919921875, 0.044219970703125, 0.033782958984375, 0.0199432373046875, 0.0313720703125, 0.01305389404296875, -0.0020160675048828125, 0.0631103515625, 0.0264739990234375, 0.06085205078125, -0.060272216796875, 0.035308837890625, 0.00424957275390625, 0.0516357421875, -0.043426513671875, -0.0242462158203125, 0.06683349609375, -0.01061248779296875, 0.01454925537109375, -0.002216339111328125, -0.050689697265625, -0.0018463134765625, 0.04937744140625, -0.02313232421875, -0.00489044189453125, -0.0012683868408203125, 0.0241546630859375, -0.0183258056640625, 0.0177154541015625, -0.011688232421875, -0.003574371337890625, 0.00791168212890625, -0.007556915283203125, 0.0277252197265625, 0.0335693359375, 0.033966064453125, 0.036285400390625, -0.01300048828125, 0.01171875, 0.0140380859375, 0.00536346435546875, -0.00872039794921875, 0.0247955322265625, -0.061065673828125, 0.046478271484375, 0.040985107421875, -0.00466156005859375, 0.03955078125, 0.044342041015625, -0.0292205810546875, 0.034637451171875, 0.0181121826171875, 0.041839599609375, 0.01203155517578125, 0.03814697265625, -0.040252685546875, 0.003948211669921875, 0.03076171875, 0.005275726318359375, 0.01971435546875, 0.0016012191772460938, -0.033966064453125, -0.040863037109375, 0.00702667236328125, 0.015472412109375, -0.00659942626953125, -0.0150909423828125, -0.061767578125, 0.01474761962890625, 0.043975830078125, 0.0286102294921875, -0.09466552734375, 0.06170654296875, -0.02313232421875, 0.0328369140625, 0.00345611572265625, -0.0002818107604980469, -0.01184844970703125, -0.0016431808471679688, -0.036834716796875, -0.02105712890625, -0.0474853515625, 0.0175018310546875, -0.041046142578125, -0.00469970703125, 0.01038360595703125, -0.01374053955078125, -0.0276336669921875, -0.0274505615234375, -0.004116058349609375, 0.020721435546875, 0.03216552734375, -0.01515960693359375, 0.007198333740234375, 0.013458251953125, -0.00894927978515625, -0.04559326171875, -0.0131072998046875, -0.0092010498046875, 0.01296234130859375, 0.007617950439453125, -0.007598876953125, 0.0172119140625, -0.041748046875, -0.10430908203125, 0.03143310546875, -0.00963592529296875, -0.04229736328125, 0.024139404296875, -0.038604736328125, -0.03961181640625, 0.03729248046875, 0.005771636962890625, -0.010772705078125, -0.0037555694580078125, 0.039306640625, 0.007793426513671875, 0.044769287109375, 0.023895263671875, -0.01568603515625, -0.046783447265625, -0.0111083984375, -0.0305023193359375, 0.0340576171875, 0.003574371337890625, -0.01461029052734375, 0.0191802978515625, 0.0052642822265625, -0.0406494140625, -0.01117706298828125, 0.0164947509765625, 0.0235748291015625, -0.00859832763671875, -0.0550537109375, -0.0268707275390625, -0.0264739990234375, 0.0770263671875, 0.022125244140625, 0.02117919921875, -0.01239776611328125, 0.006031036376953125, -0.0265655517578125, -0.0306396484375, -0.0247802734375, 0.0011568069458007812, -0.038970947265625, -0.0179443359375, -0.005756378173828125, -0.0032787322998046875, -0.009033203125, 0.0010061264038085938, -0.017181396484375, -0.00882720947265625, 0.034881591796875, 0.0213623046875, -0.0538330078125, 0.0019407272338867188, 0.054962158203125, -0.040679931640625, -0.0310516357421875, 0.01274871826171875, -0.0032634735107421875, 0.006134033203125, -0.004825592041015625, -0.0273590087890625, -0.03875732421875, 0.00916290283203125, 0.035369873046875, -0.016326904296875, 0.0311431884765625, -0.02093505859375, -0.0026073455810546875, 0.0008482933044433594, 0.01389312744140625, -0.0228118896484375, 0.0035724639892578125, 0.01245880126953125, 0.01092529296875, -0.025604248046875, 0.08856201171875, -0.043914794921875, 0.056976318359375, -0.0250091552734375, 0.034698486328125, 0.00782012939453125, 0.003940582275390625, 0.07745361328125, -0.02783203125, -0.018646240234375, 0.00943756103515625, -0.039337158203125, -0.07305908203125, 0.01284027099609375, -0.00960540771484375, 0.0139312744140625, 0.02081298828125 ]
298e004419685d6162a72cfc82283c0ea1e00fa2
Wordpress Stackexchange Q: WP-CLI Cannot Connect to Database due to Vagrant I am running the most recent version of WP-CLI on my mac. I do all WordPress development within Vagrant, but would like to run WP-CLI commands in the host machine. I have a domain alias from "dev.mysite.com" to the IP of my server so it can be accessed through my web browser through an HTTP request. When trying to run a WP-CLI command, I get an "Error Establishing a Databse Connection" error mesage because it is trying to connect via "localhost" when it really should be "dev.mystie.com" or the Vagrant VM's IP Address. Is there any way I can access my site through WP-CLI without having to SSH into the guest? A: Since the issue is probably DB configuration you could try adjusting it conditionally in wp-config.php: if ( defined( 'WP_CLI' ) ) { define( 'DB_HOST', 'example.com' ); } else { define( 'DB_HOST', 'localhost' ); }
Q: WP-CLI Cannot Connect to Database due to Vagrant I am running the most recent version of WP-CLI on my mac. I do all WordPress development within Vagrant, but would like to run WP-CLI commands in the host machine. I have a domain alias from "dev.mysite.com" to the IP of my server so it can be accessed through my web browser through an HTTP request. When trying to run a WP-CLI command, I get an "Error Establishing a Databse Connection" error mesage because it is trying to connect via "localhost" when it really should be "dev.mystie.com" or the Vagrant VM's IP Address. Is there any way I can access my site through WP-CLI without having to SSH into the guest? A: Since the issue is probably DB configuration you could try adjusting it conditionally in wp-config.php: if ( defined( 'WP_CLI' ) ) { define( 'DB_HOST', 'example.com' ); } else { define( 'DB_HOST', 'localhost' ); } A: Have you tried updating wp-config.php to change the database host? Alternatively why not use command + t in terminal to open a new tab then vagrant ssh in there and use that for WP-CLI? A: You could take a look at wp-cli-ssh Seamlessly run WP-CLI commands on a remote server via SSH I know you don't want to SSH to the guest, but this at least, supposedly, removes the need to do it manually. I figured out how to set it up. Follow these steps mkdir -p ~/.wp-cli cd ~/.wp-cli touch composer.json php composer.phar init --stability dev --no-interaction php composer.phar config bin-dir bin php composer.phar config vendor-dir vendor php composer.phar config repositories.wp-cli composer 'http://wp-cli.org/package-index/' Create or edit config.ymlin the same folder and add: require: - vendor/autoload.php Install the package with: php composer.phar require x-team/wp-cli-ssh=dev-master Then just running wp should display a list of available subcommands, and you should have ssh added to that list. Then we configure the plugin in wp-cli.local.yml or wp-cli.yml: ssh: vagrant: # The %pseudotty% placeholder gets replaced with -t or -T depending on whether you're piping output # The %cmd% placeholder is replaced with the originally-invoked WP-CLI command cmd: vagrant ssh-config > /tmp/vagrant_ssh_config && ssh -q %pseudotty% -F /tmp/vagrant_ssh_config default %cmd% # Passed to WP-CLI on the remote server via --url url: local-www.yourawesomewebsite.com # We cd to this path on the remote server before running WP-CLI path: /your/vvv/path/ And run it all with wp ssh plugin status --host=vagrant ... It's just to bad that this plugin assumes Varying-Vagrant-Vagrants. Since my vagrant environment hosts a lot of sites the Vagrantfile isn't in the WordPress directory, breaking the whole thing... A: I've been able to utilize @aliases to trigger WP-CLI commands on the basic-wordpress-vagrant box from my host machine. Maybe this could help you. ~/.wp-cli/config.yml @basic: ssh: basic.dev/var/www/wordpress/ ~/.ssh/config Host basic.dev HostName basic.dev User vagrant IdentityFile ~/sites/basic.dev/.vagrant/machines/default/virtualbox/private_key $ wp @basic theme list
wordpress
{ "language": "en", "length": 470, "provenance": "stackexchange_00019.jsonl.gz:443953", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140322" }
[ 0.022125244140625, -0.0159454345703125, -0.0212860107421875, -0.035552978515625, -0.0075225830078125, -0.04547119140625, 0.01113128662109375, 0.01187896728515625, 0.01309967041015625, 0.0251312255859375, -0.0144805908203125, -0.018157958984375, -0.01837158203125, -0.029296875, -0.025970458984375, -0.038604736328125, 0.0308380126953125, -0.01103973388671875, 0.01305389404296875, -0.021575927734375, 0.0080413818359375, -0.005382537841796875, 0.02972412109375, 0.045318603515625, 0.026519775390625, -0.006305694580078125, 0.0787353515625, -0.0026798248291015625, 0.014923095703125, -0.007007598876953125, 0.027435302734375, -0.032867431640625, 0.01270294189453125, 0.0268096923828125, -0.0423583984375, -0.0114593505859375, 0.00963592529296875, 0.010009765625, -0.0227508544921875, 0.048828125, 0.0019855499267578125, -0.0062255859375, 0.0005764961242675781, 0.00016307830810546875, -0.02288818359375, -0.035400390625, 0.002918243408203125, -0.020416259765625, 0.00533294677734375, 0.0001728534698486328, -0.0089569091796875, 0.0224151611328125, 0.004863739013671875, -0.02813720703125, 0.006687164306640625, -0.0189056396484375, -0.02117919921875, -0.0103302001953125, 0.0277252197265625, -0.0018262863159179688, -0.0189971923828125, -0.0128936767578125, 0.0200653076171875, -0.002620697021484375, -0.020263671875, -0.0191497802734375, 0.028289794921875, 0.0053863525390625, -0.0037403106689453125, -0.0180816650390625, 0.036865234375, 0.0187225341796875, -0.00634765625, 0.0023021697998046875, -0.033935546875, -0.0264129638671875, 0.042572021484375, -0.01387786865234375, -0.00304412841796875, 0.002399444580078125, 0.03924560546875, 0.023773193359375, -0.01244354248046875, -0.03118896484375, 0.0279541015625, 0.02740478515625, -0.007617950439453125, -0.032806396484375, -0.0159149169921875, -0.005458831787109375, -0.0241851806640625, -0.033233642578125, -0.018218994140625, 0.0141143798828125, 0.0029506683349609375, -0.033233642578125, -0.02130126953125, -0.049957275390625, 0.0012378692626953125, 0.006252288818359375, 0.030181884765625, -0.021636962890625, 0.0171356201171875, 0.0045318603515625, 0.0182647705078125, 0.08245849609375, -0.00809478759765625, 0.00954437255859375, 0.047821044921875, -0.0031757354736328125, 0.0303802490234375, -0.0164337158203125, -0.002063751220703125, 0.0006017684936523438, -0.03857421875, -0.018402099609375, -0.0311126708984375, -0.002506256103515625, -0.019439697265625, -0.007183074951171875, -0.028076171875, -0.003688812255859375, -0.03973388671875, 0.0082550048828125, 0.0290069580078125, 0.00986480712890625, 0.0168914794921875, 0.01525115966796875, -0.02874755859375, 0.0362548828125, 0.00567626953125, -0.032562255859375, 0.010955810546875, 0.076904296875, 0.026763916015625, -0.011077880859375, 0.05853271484375, 0.0137786865234375, 0.026763916015625, -0.001373291015625, 0.0283966064453125, -0.01137542724609375, -0.031829833984375, 0.0089569091796875, -0.00585174560546875, 0.031524658203125, 0.014068603515625, -0.0072479248046875, -0.016387939453125, -0.02294921875, -0.0254669189453125, -0.005214691162109375, 0.0034503936767578125, 0.04248046875, 0.0716552734375, 0.0051727294921875, 0.0792236328125, -0.0238189697265625, -0.01134490966796875, -0.005840301513671875, 0.0010833740234375, 0.0161895751953125, 0.0452880859375, -0.03662109375, -0.004817962646484375, -0.01464080810546875, -0.07891845703125, -0.0082550048828125, 0.0200653076171875, -0.025482177734375, 0.0254669189453125, -0.0107421875, 0.050750732421875, 0.01511383056640625, -0.0030040740966796875, 0.0237884521484375, -0.015716552734375, 0.01514434814453125, 0.040435791015625, 0.00875091552734375, 0.00743865966796875, -0.0177459716796875, 0.057098388671875, 0.00421142578125, -0.0294647216796875, 0.040985107421875, -0.007686614990234375, 0.07757568359375, 0.037506103515625, 0.02569580078125, -0.04119873046875, -0.021636962890625, -0.0198211669921875, 0.035003662109375, -0.026153564453125, -0.04150390625, -0.0333251953125, 0.0045318603515625, -0.029632568359375, 0.00942230224609375, -0.0081329345703125, -0.029693603515625, 0.03448486328125, 0.010223388671875, -0.05224609375, 0.024658203125, -0.038848876953125, 0.012908935546875, 0.044036865234375, -0.027313232421875, -0.029052734375, -0.007320404052734375, 0.05181884765625, -0.11273193359375, -0.0687255859375, 0.05535888671875, -0.0384521484375, 0.0396728515625, -0.03338623046875, 0.06280517578125, -0.05194091796875, -0.057037353515625, -0.03558349609375, -0.016510009765625, -0.04339599609375, 0.037017822265625, -0.0224456787109375, 0.041900634765625, -0.00665283203125, 0.028228759765625, 0.044891357421875, -0.030731201171875, -0.0018768310546875, 0.0113525390625, -0.04119873046875, -0.026611328125, -0.0159759521484375, -0.03692626953125, 0.03179931640625, 0.043914794921875, 0.043701171875, 0.0059661865234375, -0.003971099853515625, -0.0247039794921875, 0.029388427734375, -0.045440673828125, 0.0173797607421875, -0.0428466796875, -0.0196533203125, 0.005115509033203125, 0.00390625, -0.010406494140625, 0.03729248046875, 0.0034618377685546875, -0.053070068359375, 0.05975341796875, 0.0241851806640625, -0.01910400390625, 0.0032482147216796875, -0.0155181884765625, 0.03643798828125, -0.026153564453125, -0.08111572265625, 0.0301971435546875, -0.00197601318359375, -0.0249786376953125, 0.0211334228515625, 0.0144805908203125, 0.0218048095703125, -0.038818359375, 0.0025768280029296875, -0.035888671875, 0.0145416259765625, 0.0070648193359375, -0.01275634765625, 0.044403076171875, -0.0243988037109375, -0.0006999969482421875, 0.00873565673828125, 0.00690460205078125, -0.0235748291015625, 0.0170135498046875, 0.034515380859375, -0.0159149169921875, -0.006145477294921875, -0.03265380859375, 0.03411865234375, -0.0242156982421875, -0.0161285400390625, -0.0244140625, 0.020782470703125, 0.0184478759765625, -0.009063720703125, 0.028350830078125, -0.0179290771484375, -0.01776123046875, 0.06982421875, -0.0089111328125, 0.026885986328125, -0.00836944580078125, 0.03546142578125, 0.045501708984375, -0.028045654296875, 0.00823974609375, -0.0209808349609375, 0.047332763671875, 0.005931854248046875, -0.04266357421875, -0.032135009765625, 0.001800537109375, -0.07684326171875, -0.034912109375, 0.0244903564453125, 0.00750732421875, 0.00011748075485229492, -0.0278167724609375, -0.01470184326171875, 0.0157012939453125, -0.0728759765625, -0.065673828125, 0.01117706298828125, -0.01157379150390625, -0.0019397735595703125, -0.0126495361328125, 0.00789642333984375, -0.00304412841796875, -0.0222930908203125, 0.010467529296875, 0.05499267578125, -0.0423583984375, -0.052978515625, -0.058868408203125, -0.08807373046875, -0.07635498046875, -0.00388336181640625, -0.006534576416015625, 0.00939178466796875, 0.04058837890625, 0.0029811859130859375, -0.02191162109375, 0.0282745361328125, 0.0241546630859375, 0.0013103485107421875, -0.00945281982421875, -0.00180816650390625, -0.04925537109375, 0.04486083984375, -0.007160186767578125, -0.006862640380859375, 0.009429931640625, 0.03662109375, -0.02288818359375, 0.0299530029296875, -0.026336669921875, 0.0237274169921875, -0.003421783447265625, -0.03143310546875, 0.001331329345703125, 0.01122283935546875, -0.036773681640625, 0.0213165283203125, -0.030487060546875, -0.0178985595703125, 0.0078277587890625, 0.0252532958984375, -0.022796630859375, -0.036163330078125, 0.0014019012451171875, 0.0275421142578125, -0.023284912109375, 0.0306396484375, -0.0179290771484375, 0.057220458984375, -0.0003476142883300781, 0.0099334716796875, -0.0596923828125, 0.089599609375, 0.005840301513671875, -0.05401611328125, 0.019195556640625, -0.02520751953125, -0.0081939697265625, -0.0292205810546875, -0.043731689453125, -0.0312347412109375, 0.04022216796875, 0.00476837158203125, 0.03155517578125, -0.033050537109375, -0.0290985107421875, 0.007709503173828125, 0.0838623046875, -0.01556396484375, -0.03131103515625, 0.019256591796875, 0.03314208984375, -0.05242919921875, -0.021453857421875, -0.0037517547607421875, -0.0234375, -0.02069091796875, -0.03546142578125, -0.027313232421875, -0.035400390625, 0.0248260498046875, -0.0504150390625, 0.0149383544921875, -0.056549072265625, 0.051910400390625, -0.03564453125, 0.0304412841796875, 0.0104522705078125, 0.0241851806640625, -0.030792236328125, -0.043701171875, -0.00981903076171875, -0.06939697265625, -0.013214111328125, 0.0172119140625, 0.0108489990234375, -0.051239013671875, 0.051849365234375, -0.026519775390625, 0.0372314453125, -0.01389312744140625, 0.0191802978515625, -0.0063629150390625, 0.0225372314453125, 0.002094268798828125, -0.0141448974609375, 0.0035228729248046875, -0.0255126953125, -0.0224456787109375, -0.035369873046875, 0.00421142578125, -0.0229949951171875, -0.022705078125, -0.023895263671875, -0.01070404052734375, -0.010955810546875, -0.0318603515625, -0.049072265625, -0.01174163818359375, -0.01013946533203125, -0.019287109375, 0.0037841796875, -0.05633544921875, -0.01319122314453125, 0.09210205078125, -0.0037517547607421875, 0.04534912109375, -0.03265380859375, 0.0816650390625, 0.00600433349609375, -0.046112060546875, 0.043731689453125, -0.005615234375, 0.025146484375, -0.001132965087890625, 0.05804443359375, 0.02801513671875, -0.017730712890625, 0.048553466796875, 0.020599365234375, -0.0301361083984375, 0.0321044921875, -0.0013751983642578125, 0.03179931640625, -0.033782958984375, -0.002300262451171875, 0.01861572265625, -0.0228424072265625, 0.019805908203125, -0.0081634521484375, -0.017181396484375, 0.0426025390625, 0.025970458984375, -0.019622802734375, -0.0027618408203125, -0.01611328125, -0.045074462890625, 0.0253753662109375, -0.13232421875, 0.041717529296875, -0.001068115234375, -0.006107330322265625, 0.028289794921875, -0.003131866455078125, -0.026519775390625, 0.006641387939453125, 0.04974365234375, -0.0089874267578125, 0.0128326416015625, 0.0208282470703125, -0.037322998046875, -0.033447265625, -0.0287628173828125, 0.110595703125, 0.031280517578125, -0.0386962890625, 0.03289794921875, -0.0251617431640625, -0.004421234130859375, 0.0008525848388671875, 0.0229949951171875, 0.01230621337890625, -0.03466796875, -0.01861572265625, -0.01345062255859375, 0.0306243896484375, -0.065185546875, -0.0220947265625, -0.0122528076171875, -0.004974365234375, -0.01346588134765625, 0.037200927734375, -0.009979248046875, -0.037567138671875, 0.00865936279296875, 0.0085601806640625, 0.01172637939453125, -0.0009226799011230469, 0.018890380859375, 0.02655029296875, -0.00569915771484375, 0.0085906982421875, -0.02496337890625, 0.0030765533447265625, -0.0120849609375, 0.0035800933837890625, 0.02996826171875, 0.037261962890625, 0.010589599609375, -0.01450347900390625, -0.00763702392578125, -0.03912353515625, -0.0012693405151367188, 0.0050048828125, 0.0236968994140625, 0.04461669921875, -0.02764892578125, -0.058349609375, 0.02655029296875, 0.0294647216796875, 0.0016126632690429688, 0.0198974609375, 0.01074981689453125, 0.007503509521484375, 0.0675048828125, -0.0203399658203125, -0.018035888671875, -0.016143798828125, -0.0052490234375, -0.0279083251953125, -0.0447998046875, 0.0318603515625, 0.00397491455078125, 0.00023245811462402344, -0.015869140625, 0.00848388671875, -0.03131103515625, -0.00024366378784179688, -0.044158935546875, 0.021240234375, -0.0272369384765625, 0.003467559814453125, 0.06280517578125, 0.04730224609375, 0.0016164779663085938, 0.016082763671875, -0.0318603515625, -0.0177001953125, 0.037353515625, -0.028533935546875, -0.035614013671875, -0.05389404296875, 0.03179931640625, -0.017120361328125, 0.032073974609375, -0.0188140869140625, -0.028167724609375, 0.042144775390625, 0.0623779296875, -0.00909423828125, -0.01873779296875, 0.0288543701171875, 0.0213165283203125, 0.00962066650390625, -0.0069427490234375, 0.00844573974609375, 0.001934051513671875, -0.0122528076171875, 0.007232666015625, -0.006900787353515625, -0.00750732421875, -0.0103912353515625, 0.0213623046875, 0.0019893646240234375, 0.0222320556640625, -0.004100799560546875, 0.007328033447265625, -0.01177215576171875, -0.0062255859375, -0.017120361328125, 0.036407470703125, -0.0034008026123046875, 0.034942626953125, -0.012908935546875, -0.038787841796875, 0.00635528564453125, 0.00890350341796875, 0.044647216796875, -0.00926971435546875, -0.0399169921875, -0.01406097412109375, 0.036163330078125, -0.0274505615234375, 0.059112548828125, 0.09234619140625, 0.007175445556640625, 0.051513671875, 0.01488494873046875, 0.006610870361328125, 0.007457733154296875, 0.041595458984375, -0.0164642333984375, -0.0718994140625, 0.025177001953125, 0.01239776611328125, -0.039337158203125, 0.01263427734375, -0.04022216796875, 0.010162353515625, 0.015167236328125, 0.0565185546875, -0.01708984375, -0.0010423660278320312, 0.01201629638671875, -0.061248779296875, -0.013397216796875, -0.023681640625, 0.01800537109375, 0.0010499954223632812, 0.0168304443359375, 0.0165863037109375, -0.0222320556640625, 0.006103515625, 0.0044403076171875, -0.0216827392578125, 0.0181427001953125, -0.02197265625, 0.01229095458984375, -0.0108642578125, -0.006439208984375, 0.0181732177734375, -0.00978851318359375, -0.0043487548828125, -0.01605224609375, -0.0175018310546875, -0.03179931640625, -0.07147216796875, -0.05059814453125, -0.055694580078125, -0.0207672119140625, 0.01348876953125, 0.01558685302734375, 0.036376953125, 0.0212554931640625, 0.0113372802734375, 0.0088653564453125, -0.0022525787353515625, -0.01367950439453125, 0.0286102294921875, -0.0092620849609375, -0.0004646778106689453, 0.04132080078125, -0.0634765625, 0.00177764892578125, -0.024200439453125, 0.03167724609375, -0.0229034423828125, -0.007022857666015625, 0.06439208984375, -0.0013475418090820312, -0.0264739990234375, 0.04119873046875, 0.0008416175842285156, -0.0257720947265625, 0.0283966064453125, 0.0400390625, -0.04412841796875, -0.03887939453125, 0.04180908203125, -0.054718017578125, -0.034942626953125, 0.01497650146484375, 0.0201263427734375, 0.035125732421875, -0.005741119384765625, -0.03533935546875, 0.05157470703125, 0.0191802978515625, -0.04473876953125, 0.0089569091796875, -0.024322509765625, 0.028411865234375, 0.025299072265625, 0.0184783935546875, -0.04443359375, -0.0202178955078125, 0.0198211669921875, 0.036346435546875, 0.042816162109375, 0.0015153884887695312, 0.005733489990234375, -0.0418701171875, 0.004329681396484375, 0.021514892578125, -0.0057220458984375, 0.0160980224609375, -0.0001900196075439453, 0.00921630859375, 0.0187225341796875, -0.0169219970703125, 0.0299835205078125, -0.039154052734375, -0.01465606689453125, 0.00040030479431152344, 0.0183258056640625, 0.0202484130859375, 0.0285797119140625, 0.049041748046875, -0.034881591796875, 0.0191192626953125, 0.036834716796875, 0.018768310546875, 0.0035305023193359375, -0.0177154541015625, -0.038543701171875, 0.00559234619140625, -0.032012939453125, -0.01151275634765625, -0.001712799072265625, -0.01401519775390625, -0.042022705078125, 0.0037689208984375, 0.00960540771484375, -0.0155487060546875, -0.0104827880859375, -0.029876708984375, 0.0291290283203125, 0.00024020671844482422, 0.059722900390625, 0.03155517578125, 0.035980224609375, -0.002735137939453125, 0.03533935546875, 0.017425537109375, 0.047821044921875, -0.050048828125, -0.05401611328125, 0.003902435302734375, 0.02166748046875, 0.0233001708984375, 0.01264190673828125, 0.0250244140625, 0.046234130859375, 0.0933837890625, -0.006999969482421875, 0.016326904296875, 0.01233673095703125, -0.0400390625, 0.0011453628540039062, 0.037567138671875, 0.00820159912109375, 0.047760009765625, 0.00016188621520996094, 0.008056640625, -0.0036449432373046875, 0.00872802734375, -0.01123046875, 0.039337158203125, -0.0159759521484375, 0.0079498291015625, -0.035186767578125, 0.049896240234375, 0.01201629638671875, 0.0290985107421875, -0.052154541015625, -0.048858642578125, 0.04888916015625, 0.039947509765625, 0.0302734375, 0.0333251953125, 0.07122802734375, 0.053741455078125, -0.0161285400390625, -0.00507354736328125, 0.0712890625, -0.009521484375, -0.0364990234375, 0.0177154541015625, -0.035369873046875, 0.01373291015625, -0.018646240234375, -0.0169525146484375, 0.06561279296875, -0.00658416748046875, -0.038421630859375, 0.05859375, -0.01248931884765625, -0.005031585693359375, 0.033935546875, -0.03289794921875, 0.0155029296875, -0.02484130859375, 0.032623291015625, -0.0195465087890625, 0.044647216796875, 0.038482666015625, -0.03375244140625, 0.018463134765625, 0.03692626953125, -0.00394439697265625, -0.020263671875, -0.01165771484375, 0.0024280548095703125, 0.042755126953125, -0.0391845703125, -0.0201416015625, 0.03961181640625, -0.042633056640625, -0.0289459228515625, -0.0299835205078125, -0.020721435546875, 0.06622314453125, -0.0246429443359375, 0.1038818359375, -0.05035400390625, 0.01053619384765625, -0.01873779296875, 0.024322509765625, -0.0206756591796875, -0.0022487640380859375, -0.0007004737854003906, 0.040618896484375, 0.02734375, -0.0197906494140625, -0.01141357421875, 0.0104217529296875, 0.0286102294921875, -0.0196685791015625, 0.01165008544921875, -0.029541015625, 0.020965576171875, -0.002429962158203125, 0.0198822021484375, -0.0247802734375, -0.044647216796875, -0.0210418701171875, 0.009796142578125, 0.0007505416870117188, 0.018798828125, 0.003864288330078125, 0.01128387451171875, -0.0242156982421875, -0.007537841796875, 0.00162506103515625, -0.023529052734375, -0.0059051513671875, 0.014678955078125, -0.0265655517578125, -0.0391845703125, -0.0243988037109375, -0.0196075439453125, -0.036163330078125, 0.005130767822265625, -0.0027980804443359375, -0.0197601318359375, 0.00466156005859375, -0.00951385498046875, 0.007293701171875, 0.0312347412109375, -0.00949859619140625, 0.011260986328125, -0.01113128662109375, 0.007293701171875, 0.00853729248046875, -0.054962158203125, -0.0298614501953125, -0.046783447265625, -0.005207061767578125, 0.021392822265625, -0.0172576904296875, -0.068603515625, -0.04669189453125, -0.00359344482421875, 0.0479736328125, 0.00017547607421875, -0.0007596015930175781, -0.007843017578125, -0.039031982421875, -0.003612518310546875, 0.033294677734375, -0.003223419189453125, -0.0120086669921875, -0.027069091796875, -0.00937652587890625, 0.00189971923828125, -0.0374755859375, 0.0217132568359375, 0.01039886474609375, 0.0290374755859375, 0.02459716796875, -0.01508331298828125, 0.0089569091796875, 0.0095977783203125, -0.002048492431640625, 0.06842041015625, -0.014404296875, 0.007030487060546875, -0.0017538070678710938, 0.01824951171875, -0.059417724609375, -0.08349609375, 0.030609130859375, -0.0616455078125, 0.004184722900390625, -0.01013946533203125, 0.0012493133544921875, 0.008453369140625, -0.040283203125, -0.10162353515625, 0.024444580078125, -0.007389068603515625, -0.034637451171875, -0.040679931640625, -0.012664794921875, 0.0037994384765625, 0.031646728515625, -0.01898193359375, -0.0198211669921875, -0.0277252197265625, 0.039794921875, -0.017974853515625, 0.0252838134765625, -0.00933074951171875, -0.031036376953125, 0.00792694091796875, 0.0260467529296875, 0.041961669921875, 0.0009198188781738281, 0.0213623046875, 0.017913818359375, -0.005764007568359375, 0.03558349609375, -0.0292205810546875, -0.024169921875, -0.01751708984375, -0.036285400390625, -0.0074920654296875, -0.03167724609375, -0.02996826171875, -0.0252838134765625, 0.04180908203125, 0.0260467529296875, 0.0191497802734375, -0.0018491744995117188, -0.0538330078125, -0.04144287109375, 0.054351806640625, -0.0552978515625, -0.000053048133850097656, -0.09930419921875, -0.0325927734375, 0.00926971435546875, 0.0226593017578125, 0.01399993896484375, 0.0187530517578125, 0.0225830078125, -0.0170135498046875, 0.06256103515625, -0.0088348388671875, -0.01849365234375, -0.01381683349609375, 0.05255126953125, -0.04150390625, -0.016448974609375, 0.0288238525390625, 0.0166168212890625, 0.01274871826171875, 0.01280975341796875, -0.049072265625, -0.0478515625, 0.027984619140625, 0.06646728515625, -0.03179931640625, 0.0574951171875, -0.04510498046875, -0.007659912109375, 0.02276611328125, 0.0227508544921875, -0.0227508544921875, 0.04705810546875, 0.049346923828125, -0.038330078125, -0.0335693359375, -0.0038661956787109375, -0.008819580078125, -0.0281524658203125, -0.0257110595703125, 0.032012939453125, -0.06634521484375, -0.0020656585693359375, -0.043365478515625, -0.005924224853515625, -0.00722503662109375, 0.0159759521484375, -0.004413604736328125, -0.051361083984375, 0.0501708984375, 0.060638427734375, 0.0144195556640625, 0.021087646484375 ]
bb87874e53f8b500955370f7523a2a62a0cb17ff
Wordpress Stackexchange Q: wp_get_attachment_image_src() and custom sizes As said in this page, wp_get_attachment_image_src()only accepts built-in sizes such as thumbnail, medium, large or full. How do you get the same return value with custom sizes you add with add_image_sizes() ? A: You are misreading the Codex. wp_get_attachment_image_src() works just fine with custom image sizes. Proof of concept: // copied from the Codex // https://codex.wordpress.org/Function_Reference/add_image_size if ( function_exists( 'add_image_size' ) ) { add_image_size( 'category-thumb', 300, 9999 ); //300 pixels wide (and unlimited height) add_image_size( 'homepage-thumb', 220, 180, true ); //(cropped) } Add an image to the Library, then... $image_attributes = wp_get_attachment_image_src( 28, 'category-thumb' ); var_dump($image_attributes); You will notice that the image returned is (an appromixation of) 300x9999-- that is 300 wide by whatever height scales correctly.
Q: wp_get_attachment_image_src() and custom sizes As said in this page, wp_get_attachment_image_src()only accepts built-in sizes such as thumbnail, medium, large or full. How do you get the same return value with custom sizes you add with add_image_sizes() ? A: You are misreading the Codex. wp_get_attachment_image_src() works just fine with custom image sizes. Proof of concept: // copied from the Codex // https://codex.wordpress.org/Function_Reference/add_image_size if ( function_exists( 'add_image_size' ) ) { add_image_size( 'category-thumb', 300, 9999 ); //300 pixels wide (and unlimited height) add_image_size( 'homepage-thumb', 220, 180, true ); //(cropped) } Add an image to the Library, then... $image_attributes = wp_get_attachment_image_src( 28, 'category-thumb' ); var_dump($image_attributes); You will notice that the image returned is (an appromixation of) 300x9999-- that is 300 wide by whatever height scales correctly.
wordpress
{ "language": "en", "length": 122, "provenance": "stackexchange_00019.jsonl.gz:443984", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140432" }
[ 0.0095977783203125, -0.034423828125, 0.0199432373046875, -0.0167388916015625, -0.0233001708984375, -0.0231170654296875, 0.0509033203125, 0.006542205810546875, -0.005519866943359375, 0.02838134765625, -0.05438232421875, 0.0133819580078125, -0.0209503173828125, 0.0017223358154296875, -0.00942230224609375, -0.032196044921875, 0.0797119140625, -0.04229736328125, 0.04998779296875, 0.01340484619140625, 0.0117645263671875, 0.0745849609375, 0.027374267578125, 0.1063232421875, 0.003887176513671875, -0.0010204315185546875, 0.051116943359375, -0.03155517578125, 0.0013170242309570312, -0.0140838623046875, 0.01251983642578125, 0.010101318359375, 0.044464111328125, -0.01148223876953125, -0.006526947021484375, 0.0330810546875, 0.04583740234375, -0.03082275390625, -0.03448486328125, 0.046234130859375, 0.00679779052734375, 0.00572967529296875, 0.04608154296875, -0.019195556640625, 0.018768310546875, -0.032684326171875, 0.0272979736328125, -0.060546875, -0.005908966064453125, -0.0310211181640625, 0.0246124267578125, 0.011016845703125, 0.049072265625, -0.056427001953125, -0.005340576171875, 0.0146331787109375, -0.022186279296875, 0.0160064697265625, 0.0236968994140625, -0.0257568359375, -0.0292205810546875, 0.009063720703125, 0.031829833984375, -0.0015859603881835938, 0.00975799560546875, -0.0005154609680175781, 0.016143798828125, -0.0010786056518554688, 0.0093231201171875, 0.00833892822265625, 0.003864288330078125, 0.0005893707275390625, -0.02423095703125, -0.0273895263671875, -0.040069580078125, 0.04241943359375, 0.0025501251220703125, -0.0250091552734375, 0.016510009765625, -0.0174713134765625, 0.02178955078125, -0.03826904296875, 0.01430511474609375, 0.0171051025390625, 0.018157958984375, 0.05584716796875, -0.007568359375, -0.0235137939453125, 0.0008473396301269531, -0.0120086669921875, -0.0032634735107421875, -0.055328369140625, 0.0034637451171875, 0.01023101806640625, -0.009613037109375, -0.0439453125, 0.025146484375, 0.01445770263671875, -0.003734588623046875, 0.0153350830078125, 0.00934600830078125, -0.055755615234375, 0.060516357421875, -0.044586181640625, 0.02874755859375, 0.0237579345703125, -0.0258636474609375, 0.01187896728515625, 0.053131103515625, 0.035369873046875, 0.011993408203125, 0.02667236328125, 0.0035152435302734375, -0.016082763671875, 0.0142669677734375, 0.01181793212890625, -0.024169921875, 0.03125, -0.006908416748046875, 0.00934600830078125, -0.01325225830078125, 0.023681640625, 0.02813720703125, -0.0023670196533203125, 0.0169830322265625, 0.03961181640625, 0.00714874267578125, -0.07159423828125, 0.0257720947265625, 0.029541015625, -0.0247955322265625, 0.0272674560546875, 0.0256805419921875, -0.044525146484375, -0.03582763671875, -0.008636474609375, -0.03887939453125, -0.05975341796875, -0.036041259765625, 0.049102783203125, -0.0184478759765625, -0.0197296142578125, 0.04412841796875, -0.03338623046875, 0.00826263427734375, -0.0034770965576171875, -0.00827789306640625, 0.031341552734375, 0.0131683349609375, -0.05914306640625, 0.061431884765625, -0.0599365234375, 0.038360595703125, 0.0175628662109375, -0.01517486572265625, 0.01488494873046875, 0.052459716796875, -0.01337432861328125, -0.04327392578125, -0.046478271484375, 0.025726318359375, 0.01357269287109375, 0.0024509429931640625, -0.00555419921875, -0.0089111328125, -0.00787353515625, -0.04608154296875, 0.004547119140625, 0.0218963623046875, 0.05633544921875, 0.026763916015625, -0.032989501953125, -0.0141143798828125, -0.004138946533203125, -0.02008056640625, -0.00305938720703125, 0.0015087127685546875, 0.016143798828125, 0.039642333984375, 0.0214996337890625, -0.01189422607421875, -0.005279541015625, 0.08868408203125, -0.03668212890625, -0.01314544677734375, -0.04803466796875, 0.0022106170654296875, -0.0030307769775390625, 0.022369384765625, 0.0215606689453125, -0.00876617431640625, 0.006122589111328125, -0.01262664794921875, 0.002902984619140625, -0.034149169921875, 0.0062103271484375, -0.02728271484375, 0.0168914794921875, -0.0276031494140625, 0.0218658447265625, 0.039886474609375, -0.020965576171875, 0.037506103515625, -0.027435302734375, -0.0272216796875, 0.01039886474609375, -0.017974853515625, 0.029022216796875, -0.041748046875, 0.0311126708984375, 0.01202392578125, -0.0031147003173828125, -0.035003662109375, 0.0192413330078125, 0.01290130615234375, -0.01218414306640625, -0.0113067626953125, 0.0297088623046875, -0.011138916015625, 0.0413818359375, -0.048095703125, -0.03814697265625, -0.034332275390625, 0.007114410400390625, 0.0250091552734375, -0.0048828125, -0.01297760009765625, -0.0022487640380859375, -0.00650787353515625, 0.0145111083984375, -0.058441162109375, 0.0291595458984375, -0.0131378173828125, 0.0186309814453125, -0.016021728515625, -0.01300048828125, -0.006015777587890625, -0.07269287109375, 0.0229034423828125, 0.042205810546875, 0.044830322265625, 0.0232391357421875, -0.006076812744140625, -0.0008301734924316406, 0.0946044921875, 0.01280975341796875, 0.01194000244140625, -0.01457977294921875, -0.01025390625, -0.0214080810546875, 0.0161285400390625, -0.0244293212890625, 0.02740478515625, -0.063232421875, 0.0204315185546875, 0.0246429443359375, -0.0290374755859375, -0.020355224609375, -0.022796630859375, 0.042877197265625, -0.0005517005920410156, 0.04351806640625, 0.021148681640625, 0.0059814453125, -0.00502777099609375, 0.02777099609375, 0.0010633468627929688, 0.00160980224609375, -0.048583984375, 0.032745361328125, 0.0219573974609375, 0.01490020751953125, 0.00887298583984375, 0.03887939453125, 0.0256500244140625, -0.02972412109375, -0.017791748046875, -0.003070831298828125, 0.01186370849609375, -0.00949859619140625, -0.00865936279296875, 0.05401611328125, -0.02423095703125, -0.0167388916015625, -0.041717529296875, -0.07562255859375, -0.0081329345703125, 0.017425537109375, 0.01398468017578125, 0.005237579345703125, 0.00583648681640625, 0.044158935546875, 0.01470947265625, 0.0218048095703125, 0.0012645721435546875, 0.00036454200744628906, 0.0150299072265625, -0.054046630859375, 0.053955078125, -0.0258026123046875, 0.09027099609375, 0.08990478515625, -0.0260009765625, 0.05078125, -0.02105712890625, -0.031402587890625, -0.04718017578125, -0.0021953582763671875, -0.026611328125, -0.028289794921875, -0.025360107421875, 0.06341552734375, 0.0036296844482421875, 0.0113983154296875, -0.01849365234375, -0.037384033203125, -0.01403045654296875, -0.001125335693359375, -0.04974365234375, 0.006206512451171875, 0.02874755859375, -0.08343505859375, -0.0204315185546875, -0.01276397705078125, -0.061004638671875, 0.01348876953125, 0.0140228271484375, 0.00276947021484375, -0.0059814453125, -0.025146484375, 0.002857208251953125, -0.04071044921875, -0.035919189453125, -0.041778564453125, 0.0188140869140625, 0.0017271041870117188, -0.006877899169921875, 0.004375457763671875, -0.01318359375, -0.0233154296875, -0.0151214599609375, 0.0292510986328125, 0.00714111328125, -0.0352783203125, -0.004978179931640625, 0.0018329620361328125, -0.0020122528076171875, -0.00803375244140625, 0.017120361328125, 0.037933349609375, -0.032318115234375, 0.009002685546875, -0.036468505859375, -0.032684326171875, -0.0308074951171875, 0.056182861328125, 0.03851318359375, -0.029937744140625, 0.02813720703125, -0.051116943359375, 0.0036029815673828125, -0.0119171142578125, -0.029632568359375, 0.0479736328125, 0.0021915435791015625, -0.00771331787109375, 0.033294677734375, 0.0092926025390625, -0.005840301513671875, -0.00368499755859375, 0.036102294921875, -0.0208587646484375, 0.030548095703125, -0.0167694091796875, -0.0227813720703125, -0.0305633544921875, -0.038360595703125, -0.028961181640625, 0.05517578125, -0.0224151611328125, 0.0251312255859375, -0.0088348388671875, -0.0161895751953125, -0.038116455078125, -0.0594482421875, 0.046875, -0.0258026123046875, 0.0198822021484375, -0.043212890625, -0.029876708984375, 0.00461578369140625, 0.1058349609375, -0.044189453125, -0.044281005859375, 0.00870513916015625, 0.045684814453125, -0.05462646484375, -0.028656005859375, 0.0005331039428710938, -0.007568359375, -0.05963134765625, -0.0037384033203125, 0.0184478759765625, -0.050323486328125, -0.01007843017578125, 0.0325927734375, -0.04840087890625, -0.0073699951171875, 0.024200439453125, 0.0230865478515625, 0.0035076141357421875, 0.03765869140625, -0.01029205322265625, 0.047576904296875, -0.0168609619140625, -0.0135498046875, -0.11944580078125, -0.0237274169921875, 0.006671905517578125, 0.1043701171875, -0.02716064453125, 0.037353515625, -0.0509033203125, 0.0596923828125, -0.0092926025390625, 0.01506805419921875, 0.00811004638671875, 0.0275726318359375, 0.0060272216796875, -0.011199951171875, 0.006591796875, -0.033111572265625, -0.044647216796875, -0.077392578125, -0.050994873046875, -0.063720703125, -0.01560211181640625, 0.00942230224609375, -0.0016069412231445312, 0.005825042724609375, 0.002994537353515625, -0.017303466796875, -0.0096282958984375, 0.048065185546875, 0.00455474853515625, 0.00299835205078125, -0.04205322265625, -0.024322509765625, 0.022735595703125, 0.0303802490234375, -0.016204833984375, 0.005084991455078125, 0.055511474609375, 0.0109100341796875, -0.0194854736328125, -0.07415771484375, -0.0128021240234375, 0.0323486328125, 0.036712646484375, 0.043670654296875, 0.036834716796875, -0.0025272369384765625, -0.009246826171875, 0.03753662109375, 0.031707763671875, -0.035552978515625, 0.079833984375, -0.00067138671875, 0.0130615234375, 0.0173187255859375, 0.00870513916015625, -0.0220489501953125, 0.0184173583984375, -0.0148468017578125, -0.00798797607421875, -0.00510406494140625, 0.00989532470703125, -0.03094482421875, 0.050506591796875, 0.01122283935546875, -0.0018224716186523438, 0.004474639892578125, 0.01145172119140625, 0.046966552734375, 0.03765869140625, -0.004638671875, 0.0019779205322265625, 0.00017893314361572266, 0.017578125, 0.00267791748046875, 0.00418853759765625, -0.0186767578125, 0.057891845703125, -0.035797119140625, -0.0030651092529296875, 0.004734039306640625, 0.012359619140625, -0.0088348388671875, 0.0128173828125, 0.005962371826171875, -0.0767822265625, 0.001453399658203125, 0.01253509521484375, -0.0313720703125, -0.0257568359375, 0.05169677734375, 0.01178741455078125, -0.032562255859375, -0.031494140625, -0.06121826171875, -0.0196533203125, -0.06744384765625, 0.01219940185546875, 0.01082611083984375, -0.0214691162109375, 0.02020263671875, -0.00801849365234375, 0.01042938232421875, 0.0012989044189453125, -0.0015840530395507812, 0.01495361328125, 0.0552978515625, -0.00826263427734375, 0.0025691986083984375, 0.03460693359375, -0.035736083984375, 0.01056671142578125, 0.0189666748046875, -0.04541015625, -0.014739990234375, 0.0377197265625, 0.063232421875, -0.02734375, -0.035247802734375, 0.01174163818359375, -0.0185089111328125, -0.008636474609375, 0.0193328857421875, -0.056365966796875, -0.06365966796875, -0.0350341796875, 0.0232391357421875, 0.05267333984375, -0.04400634765625, -0.053466796875, 0.0263671875, -0.0390625, 0.01232147216796875, 0.032196044921875, -0.05303955078125, 0.031951904296875, 0.029022216796875, -0.056976318359375, -0.0260772705078125, -0.026641845703125, 0.044281005859375, 0.0138702392578125, -0.00852203369140625, -0.0535888671875, 0.0192108154296875, -0.01202392578125, -0.00015020370483398438, -0.0003924369812011719, -0.0195770263671875, -0.032470703125, 0.00934600830078125, 0.06005859375, 0.0213775634765625, -0.0157470703125, -0.0357666015625, -0.00952911376953125, -0.01580810546875, 0.0718994140625, 0.00811767578125, 0.0167083740234375, -0.033905029296875, -0.004833221435546875, 0.016815185546875, 0.0122222900390625, 0.006622314453125, -0.00832366943359375, 0.0139312744140625, -0.00791168212890625, 0.0149993896484375, -0.0289306640625, 0.033905029296875, 0.0075836181640625, 0.0098114013671875, -0.0278167724609375, 0.00212860107421875, 0.00809478759765625, -0.006183624267578125, -0.006893157958984375, -0.037567138671875, 0.00318145751953125, -0.005390167236328125, 0.0430908203125, 0.017303466796875, 0.0017004013061523438, 0.0211334228515625, -0.0280303955078125, -0.0179290771484375, -0.00975799560546875, -0.03662109375, 0.07891845703125, 0.0089111328125, -0.00846099853515625, 0.004344940185546875, -0.05120849609375, 0.0296478271484375, 0.004192352294921875, 0.0142822265625, 0.02960205078125, -0.0626220703125, 0.023040771484375, 0.0718994140625, 0.0010766983032226562, 0.01471710205078125, 0.0791015625, 0.00811767578125, 0.055908203125, 0.047149658203125, 0.0273895263671875, 0.02008056640625, 0.057647705078125, -0.03631591796875, -0.040008544921875, 0.0281524658203125, 0.0083160400390625, -0.038330078125, -0.0024871826171875, -0.0165863037109375, 0.040924072265625, -0.0287628173828125, 0.030120849609375, 0.01727294921875, 0.031646728515625, -0.028564453125, -0.04156494140625, 0.09613037109375, 0.00014340877532958984, -0.0035839080810546875, 0.0008625984191894531, 0.0301666259765625, -0.0274658203125, -0.01605224609375, -0.0013151168823242188, 0.004550933837890625, -0.0152587890625, -0.0004684925079345703, -0.0181121826171875, -0.0017490386962890625, -0.04791259765625, -0.001216888427734375, 0.048736572265625, -0.0237884521484375, 0.01078033447265625, 0.0272064208984375, -0.033843994140625, -0.00536346435546875, -0.016815185546875, -0.006374359130859375, -0.03173828125, -0.0146636962890625, 0.0340576171875, -0.01056671142578125, 0.017425537109375, 0.0249481201171875, 0.0020751953125, 0.018646240234375, -0.0038299560546875, -0.040618896484375, 0.060302734375, -0.019683837890625, 0.018096923828125, 0.04473876953125, -0.0771484375, -0.0010080337524414062, -0.006938934326171875, 0.0328369140625, -0.00008684396743774414, -0.011932373046875, 0.058258056640625, -0.0438232421875, -0.01483917236328125, 0.0155792236328125, 0.033355712890625, -0.0005617141723632812, 0.0047760009765625, 0.05657958984375, -0.046539306640625, -0.0228729248046875, 0.0259246826171875, -0.04144287109375, -0.0267791748046875, -0.019012451171875, -0.033477783203125, 0.042205810546875, -0.0200347900390625, 0.0147247314453125, -0.0031299591064453125, 0.00794219970703125, 0.0265960693359375, 0.0253143310546875, -0.0204010009765625, 0.0255584716796875, -0.034423828125, -0.04083251953125, -0.04034423828125, 0.0302581787109375, -0.048736572265625, -0.02069091796875, 0.04534912109375, 0.006072998046875, -0.0596923828125, -0.02435302734375, 0.043914794921875, 0.0667724609375, 0.042022705078125, 0.0217742919921875, -0.00482177734375, -0.032684326171875, 0.03350830078125, 0.00426483154296875, 0.026824951171875, -0.01560211181640625, -0.00031113624572753906, 0.02203369140625, 0.007778167724609375, 0.0131683349609375, -0.005584716796875, 0.052734375, -0.04852294921875, -0.0035419464111328125, 0.043304443359375, -0.05242919921875, 0.0238189697265625, 0.0306854248046875, -0.00707244873046875, 0.017425537109375, -0.032745361328125, -0.0035839080810546875, 0.0227813720703125, -0.0258941650390625, 0.0152130126953125, 0.0116424560546875, 0.00374603271484375, 0.048431396484375, 0.024017333984375, -0.003849029541015625, 0.057952880859375, 0.01413726806640625, 0.00034809112548828125, 0.005382537841796875, 0.0108184814453125, -0.034149169921875, 0.00505828857421875, 0.039154052734375, 0.01486968994140625, -0.03009033203125, -0.01535797119140625, 0.01512908935546875, 0.016998291015625, 0.00228118896484375, 0.00040149688720703125, 0.022705078125, -0.0321044921875, 0.00124359130859375, -0.05645751953125, 0.025604248046875, 0.054290771484375, 0.03900146484375, -0.00968170166015625, -0.03460693359375, -0.0733642578125, -0.00594329833984375, -0.02716064453125, -0.00765228271484375, 0.0271759033203125, 0.04302978515625, 0.01227569580078125, 0.049072265625, 0.021759033203125, -0.00562286376953125, -0.0207061767578125, 0.0255126953125, 0.0027103424072265625, 0.02423095703125, -0.0323486328125, -0.01422882080078125, 0.0128021240234375, 0.041473388671875, 0.01629638671875, -0.03472900390625, 0.0196380615234375, 0.00946044921875, -0.06427001953125, -0.01215362548828125, -0.01248931884765625, -0.0274505615234375, 0.02239990234375, -0.04107666015625, 0.052032470703125, 0.04248046875, -0.00036716461181640625, -0.007297515869140625, -0.032562255859375, 0.07550048828125, 0.006649017333984375, 0.04144287109375, 0.005939483642578125, -0.01419830322265625, -0.0003390312194824219, -0.0034332275390625, 0.054168701171875, 0.0219268798828125, -0.048187255859375, -0.00331878662109375, -0.035430908203125, -0.0204010009765625, 0.0079193115234375, 0.0255584716796875, -0.01885986328125, 0.02777099609375, 0.005443572998046875, -0.0662841796875, 0.0062103271484375, 0.038482666015625, 0.0157623291015625, -0.0047149658203125, -0.003437042236328125, -0.0289459228515625, -0.035491943359375, -0.011566162109375, 0.007778167724609375, 0.018707275390625, -0.00804901123046875, 0.07080078125, -0.0172576904296875, -0.0016851425170898438, 0.03076171875, -0.0023326873779296875, 0.01490020751953125, 0.0116729736328125, 0.01346588134765625, -0.005519866943359375, -0.0119476318359375, -0.03094482421875, -0.00043702125549316406, -0.01132965087890625, 0.0193328857421875, -0.06414794921875, -0.0254669189453125, -0.016998291015625, 0.02032470703125, 0.005275726318359375, 0.0023193359375, -0.029693603515625, -0.01470947265625, -0.05462646484375, -0.03466796875, 0.037322998046875, 0.0013637542724609375, 0.01555633544921875, 0.0175018310546875, 0.0208892822265625, 0.01065826416015625, 0.03448486328125, -0.002201080322265625, 0.07415771484375, 0.056182861328125, -0.06787109375, -0.04547119140625, 0.01715087890625, -0.00047087669372558594, -0.005523681640625, 0.02667236328125, 0.06317138671875, -0.0113983154296875, 0.0082855224609375, 0.031280517578125, 0.0219268798828125, 0.03411865234375, -0.043731689453125, -0.0012712478637695312, 0.050384521484375, 0.0033550262451171875, -0.005420684814453125, -0.0205078125, -0.017730712890625, -0.016265869140625, -0.01049041748046875, 0.0243072509765625, 0.00920867919921875, 0.0027942657470703125, -0.01136016845703125, -0.004314422607421875, 0.01708984375, 0.00667572021484375, -0.05120849609375, 0.032257080078125, -0.007076263427734375, 0.0080718994140625, -0.00656890869140625, -0.01165008544921875, -0.015045166015625, -0.0109405517578125, -0.0150146484375, -0.0318603515625, -0.045257568359375, 0.042938232421875, -0.01165771484375, 0.0386962890625, 0.05181884765625, -0.034271240234375, -0.0144500732421875, 0.0626220703125, 0.0340576171875, 0.1112060546875, -0.045074462890625, -0.0227508544921875, -0.0220947265625, 0.0161895751953125, -0.018524169921875, -0.052459716796875, 0.0283203125, -0.069580078125, -0.015655517578125, -0.048095703125, 0.023590087890625, 0.0098419189453125, -0.03558349609375, -0.056243896484375, -0.01480865478515625, -0.016204833984375, -0.03302001953125, -0.03204345703125, -0.0033473968505859375, -0.005462646484375, 0.030792236328125, -0.005428314208984375, -0.00534820556640625, -0.0081024169921875, 0.0278778076171875, 0.022308349609375, -0.025970458984375, 0.05157470703125, -0.0036258697509765625, -0.0293121337890625, 0.0206146240234375, 0.02520751953125, 0.0112152099609375, 0.0084991455078125, -0.037506103515625, 0.05120849609375, 0.040283203125, -0.0128173828125, -0.008636474609375, 0.0307159423828125, -0.042205810546875, -0.01021575927734375, -0.0225677490234375, 0.0157318115234375, 0.0194854736328125, 0.02154541015625, 0.01593017578125, 0.00592041015625, -0.030548095703125, 0.01145172119140625, -0.003108978271484375, -0.022552490234375, -0.01334381103515625, -0.0024280548095703125, -0.04400634765625, -0.0255889892578125, -0.01227569580078125, -0.0151824951171875, -0.0035648345947265625, -0.0023212432861328125, -0.03582763671875, -0.0020236968994140625, 0.018035888671875, 0.0288543701171875, -0.08990478515625, 0.035675048828125, 0.020721435546875, -0.028900146484375, -0.0087432861328125, -0.019927978515625, -0.008544921875, 0.0010852813720703125, -0.031890869140625, -0.01428985595703125, 0.05816650390625, -0.024627685546875, -0.004467010498046875, 0.01410675048828125, 0.0037631988525390625, -0.0027675628662109375, 0.0265655517578125, 0.0135345458984375, 0.006072998046875, -0.00789642333984375, 0.0215606689453125, 0.019287109375, -0.003452301025390625, -0.00677490234375, -0.0186920166015625, -0.0127105712890625, -0.03021240234375, -0.019439697265625, -0.007904052734375, -0.0022716522216796875, 0.00021457672119140625, 0.0325927734375, -0.01190185546875, -0.0010137557983398438, -0.00493621826171875, -0.05792236328125, -0.03521728515625, -0.010223388671875, -0.01502227783203125, -0.0165863037109375, 0.00449371337890625 ]
f2cee574640ee23edae43b93bfdbcada5eae9353
Wordpress Stackexchange Q: Memory needed to host 200 wordpress sites? I'm planning to use Multisite to host 200 different wordpress blog with each having their own unique subdomain. I notice each time I create a virtual host for each subdomain it'll use roughly 50mb ram. So if 50mb * 200 sites = 10GB RAM correct me if wrong is 10GB of RAM needed to host 200 sites? if possible is there solutions to decrease ram usage? A: The number of sites is unrelated to the amount of memory required. The amount of required memory is (if you are using Apache) the amount of memory required to serve the most memory intensive page * the number of requests you want to serve simultaneously Both numbers vary based on the way you set your server and the themes and plugins you use.
Q: Memory needed to host 200 wordpress sites? I'm planning to use Multisite to host 200 different wordpress blog with each having their own unique subdomain. I notice each time I create a virtual host for each subdomain it'll use roughly 50mb ram. So if 50mb * 200 sites = 10GB RAM correct me if wrong is 10GB of RAM needed to host 200 sites? if possible is there solutions to decrease ram usage? A: The number of sites is unrelated to the amount of memory required. The amount of required memory is (if you are using Apache) the amount of memory required to serve the most memory intensive page * the number of requests you want to serve simultaneously Both numbers vary based on the way you set your server and the themes and plugins you use. A: The actual RAM you need depends on many factors: * *plugins *theme *installed extensions (server and PHP) *the current operation (editing images needs the most) *translation, some translation files are really heavy In a multisite, some resources are shared, the server setup for example is not duplicated each time you create a new site. You can save some resources if you enable the built-in Opcache, check your theme and the plugins with Xdebug. There is not much you can do with translations. A: Regarding the memory usage of translations (I'd have commented toschos answer, but I'm lacking the needed reputation): That can be reduced using my plugin WP Performance Pack. It offers use of native gettext if available and an alternative MO implementation (if gettext isn't available), which only loads used translations. Both methods reduce memory consumption and improve performance of localized WordPress installations.
wordpress
{ "language": "en", "length": 283, "provenance": "stackexchange_00019.jsonl.gz:444008", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140479" }
[ 0.01404571533203125, -0.032958984375, -0.034454345703125, -0.0303955078125, 0.0019989013671875, -0.035247802734375, 0.00737762451171875, 0.0209808349609375, 0.01064300537109375, 0.0208892822265625, -0.00763702392578125, -0.0057525634765625, -0.015960693359375, -0.0221099853515625, -0.02105712890625, -0.016815185546875, 0.023590087890625, -0.014801025390625, -0.0137786865234375, -0.0089569091796875, 0.002101898193359375, 0.0193634033203125, -0.041107177734375, 0.06939697265625, 0.0321044921875, -0.084228515625, 0.041839599609375, -0.016937255859375, -0.00231170654296875, -0.053924560546875, 0.0284271240234375, 0.0794677734375, 0.042816162109375, -0.01476287841796875, -0.0011606216430664062, -0.041229248046875, -0.033416748046875, -0.00687408447265625, -0.0192108154296875, 0.0169219970703125, -0.0277862548828125, 0.0207061767578125, 0.07098388671875, -0.00934600830078125, 0.00528717041015625, -0.039215087890625, -0.0156097412109375, -0.05548095703125, -0.02557373046875, -0.049591064453125, 0.0086517333984375, 0.0244140625, 0.04510498046875, -0.0888671875, -0.00743865966796875, -0.00662994384765625, 0.045196533203125, -0.01181793212890625, 0.00623321533203125, -0.049957275390625, -0.037200927734375, 0.033538818359375, 0.023529052734375, 0.02056884765625, -0.0236663818359375, 0.01666259765625, 0.0059356689453125, -0.00949859619140625, -0.01776123046875, -0.015289306640625, 0.0157012939453125, -0.031646728515625, 0.00467681884765625, 0.0218963623046875, 0.00849151611328125, -0.017974853515625, 0.00763702392578125, 0.02093505859375, 0.0133514404296875, 0.0236053466796875, -0.023590087890625, -0.027252197265625, -0.04412841796875, -0.0224456787109375, 0.0100250244140625, 0.0255584716796875, -0.0151824951171875, -0.00862884521484375, -0.05078125, 0.01410675048828125, -0.0258026123046875, -0.0050201416015625, -0.07501220703125, 0.0299835205078125, 0.022705078125, -0.00917816162109375, 0.04193115234375, 0.022186279296875, 0.0055389404296875, -0.011138916015625, -0.00982666015625, -0.036834716796875, -0.0007433891296386719, -0.0002894401550292969, 0.00910186767578125, 0.0081787109375, -0.0248870849609375, -0.0278472900390625, 0.042266845703125, 0.043914794921875, -0.00112152099609375, 0.023101806640625, 0.035675048828125, -0.0178375244140625, -0.020599365234375, -0.0179595947265625, 0.0019273757934570312, 0.025665283203125, 0.016632080078125, -0.01507568359375, -0.0217437744140625, 0.0037899017333984375, -0.01332855224609375, 0.019073486328125, 0.0185089111328125, 0.0160369873046875, 0.005710601806640625, -0.0059356689453125, -0.045806884765625, 0.0350341796875, -0.0271453857421875, 0.016448974609375, 0.00855255126953125, 0.002208709716796875, -0.03216552734375, -0.01812744140625, 0.057373046875, 0.0248870849609375, -0.0177001953125, 0.03485107421875, -0.031585693359375, -0.0261688232421875, -0.005680084228515625, -0.04510498046875, 0.0330810546875, 0.0150909423828125, 0.02740478515625, 0.01187896728515625, 0.01189422607421875, -0.006855010986328125, 0.0008029937744140625, -0.0235748291015625, 0.01102447509765625, 0.009918212890625, -0.0237579345703125, -0.006866455078125, -0.00965118408203125, -0.003894805908203125, -0.004100799560546875, -0.005252838134765625, -0.028106689453125, 0.003795623779296875, 0.064453125, -0.05377197265625, -0.03314208984375, -0.01110076904296875, -0.046356201171875, -0.01482391357421875, 0.040374755859375, -0.05010986328125, -0.0041961669921875, -0.047332763671875, 0.0968017578125, 0.035552978515625, 0.0029125213623046875, 0.069091796875, 0.048614501953125, 0.003192901611328125, 0.02459716796875, 0.00922393798828125, -0.006134033203125, -0.01334381103515625, 0.07232666015625, -0.0321044921875, -0.0263824462890625, 0.0197296142578125, 0.01258087158203125, 0.056732177734375, 0.00896453857421875, 0.02001953125, -0.01505279541015625, 0.0005960464477539062, 0.0152130126953125, -0.0292510986328125, -0.00499725341796875, -0.0164794921875, -0.00206756591796875, 0.00867462158203125, -0.007503509521484375, -0.0107574462890625, 0.046112060546875, -0.00850677490234375, 0.0206451416015625, -0.0082244873046875, -0.018310546875, 0.00579833984375, -0.005153656005859375, 0.005054473876953125, -0.010223388671875, 0.03204345703125, 0.00798797607421875, 0.000028073787689208984, -0.005794525146484375, -0.0235137939453125, 0.0027599334716796875, 0.0173492431640625, -0.01157379150390625, 0.037353515625, 0.004184722900390625, 0.0018320083618164062, -0.0013027191162109375, -0.034332275390625, 0.00032591819763183594, -0.01480865478515625, 0.055816650390625, -0.03741455078125, -0.01105499267578125, -0.039093017578125, 0.0272979736328125, -0.0045013427734375, -0.04888916015625, 0.0592041015625, 0.034576416015625, 0.021240234375, -0.018585205078125, 0.002994537353515625, -0.00511932373046875, -0.056610107421875, -0.01513671875, 0.046356201171875, 0.03564453125, 0.033172607421875, -0.01275634765625, -0.005352020263671875, 0.053131103515625, -0.0252838134765625, -0.0023632049560546875, -0.006458282470703125, 0.007171630859375, 0.04901123046875, -0.01059722900390625, 0.0036907196044921875, -0.0028553009033203125, -0.001430511474609375, -0.0006060600280761719, 0.01456451416015625, 0.0262908935546875, -0.001598358154296875, 0.029937744140625, -0.0094757080078125, 0.019439697265625, 0.050323486328125, -0.038299560546875, 0.041412353515625, -0.049530029296875, 0.0531005859375, -0.010040283203125, 0.0035762786865234375, -0.0213623046875, 0.03216552734375, 0.01532745361328125, -0.0298919677734375, -0.0008020401000976562, -0.050506591796875, -0.07452392578125, -0.03973388671875, 0.0037021636962890625, 0.04296875, -0.0275115966796875, -0.0679931640625, -0.0611572265625, -0.0166778564453125, -0.076171875, -0.0170135498046875, -0.0195770263671875, -0.0660400390625, -0.0059051513671875, -0.0140380859375, 0.024749755859375, -0.00907135009765625, 0.0102691650390625, -0.00605010986328125, -0.036163330078125, 0.049163818359375, 0.041778564453125, -0.04486083984375, 0.08575439453125, -0.05352783203125, 0.031402587890625, 0.01171112060546875, 0.07904052734375, 0.06317138671875, 0.021270751953125, 0.0016632080078125, -0.022125244140625, -0.01070404052734375, -0.01189422607421875, -0.008453369140625, -0.039794921875, -0.01224517822265625, -0.08612060546875, -0.006793975830078125, -0.0072021484375, -0.00974273681640625, -0.0279693603515625, -0.033355712890625, -0.0145263671875, -0.03729248046875, -0.071533203125, -0.057464599609375, -0.003551483154296875, -0.014251708984375, -0.035400390625, -0.0108489990234375, -0.00408935546875, -0.002552032470703125, -0.0051727294921875, -0.00914764404296875, -0.022735595703125, -0.0418701171875, -0.037811279296875, -0.0828857421875, -0.06744384765625, -0.032012939453125, 0.00537872314453125, 0.0117645263671875, -0.007419586181640625, 0.053192138671875, -0.020172119140625, -0.044219970703125, -0.0517578125, 0.002536773681640625, -0.0193023681640625, -0.04351806640625, -0.0009784698486328125, -0.01122283935546875, -0.0217742919921875, 0.01161956787109375, 0.00708770751953125, -0.00732421875, -0.0036716461181640625, -0.035308837890625, -0.0001118779182434082, 0.032501220703125, 0.0243988037109375, -0.0229644775390625, -0.01251983642578125, 0.0234832763671875, -0.0140533447265625, -0.03497314453125, -0.0311126708984375, -0.01751708984375, -0.05975341796875, -0.00928497314453125, 0.04876708984375, 0.00156402587890625, -0.0029468536376953125, -0.0212554931640625, -0.021881103515625, -0.0179290771484375, -0.013458251953125, -0.0268402099609375, 0.01953125, -0.01245880126953125, -0.032135009765625, 0.0021839141845703125, 0.056549072265625, -0.0266571044921875, 0.00494384765625, 0.02911376953125, -0.033203125, -0.0231475830078125, -0.004726409912109375, -0.016204833984375, -0.01078033447265625, 0.0533447265625, 0.0308380126953125, 0.01444244384765625, -0.002330780029296875, -0.04290771484375, 0.002391815185546875, 0.076416015625, 0.00817108154296875, -0.02838134765625, -0.00925445556640625, 0.01555633544921875, -0.0301055908203125, -0.046234130859375, 0.0195770263671875, -0.0176544189453125, -0.05157470703125, -0.01473236083984375, -0.04913330078125, -0.00708770751953125, 0.021484375, -0.03515625, 0.021484375, -0.06475830078125, 0.0214996337890625, -0.028076171875, 0.0306854248046875, -0.023590087890625, 0.04595947265625, -0.07049560546875, -0.007442474365234375, -0.0294342041015625, -0.05499267578125, -0.01031494140625, -0.0119171142578125, 0.049652099609375, 0.0006427764892578125, 0.0103302001953125, -0.006076812744140625, 0.0404052734375, -0.00373077392578125, 0.0175018310546875, -0.017791748046875, 0.0086517333984375, 0.0252838134765625, -0.03790283203125, -0.038238525390625, -0.0249786376953125, -0.01184844970703125, -0.047149658203125, -0.01177215576171875, -0.0384521484375, -0.0312042236328125, -0.041595458984375, -0.02471923828125, 0.003936767578125, -0.0160675048828125, 0.0038127899169921875, -0.0003876686096191406, 0.0117950439453125, -0.01568603515625, -0.006038665771484375, 0.01285552978515625, -0.013885498046875, 0.051727294921875, 0.0230712890625, -0.0208587646484375, 0.0003905296325683594, 0.05731201171875, 0.0011453628540039062, -0.0379638671875, -0.07745361328125, -0.00182342529296875, 0.0172576904296875, 0.02569580078125, 0.0144805908203125, 0.006061553955078125, 0.0132598876953125, -0.02606201171875, 0.0016851425170898438, 0.02178955078125, 0.0214691162109375, -0.03582763671875, 0.0297698974609375, -0.01198577880859375, 0.006763458251953125, 0.04071044921875, -0.0223846435546875, 0.0258026123046875, -0.0095062255859375, 0.008575439453125, -0.0269775390625, 0.0229644775390625, 0.02166748046875, -0.046905517578125, -0.06634521484375, -0.032470703125, 0.01035308837890625, -0.04949951171875, 0.025665283203125, 0.01983642578125, -0.008544921875, 0.031646728515625, 0.0399169921875, -0.005615234375, 0.0158538818359375, 0.0146331787109375, 0.003509521484375, 0.0033721923828125, 0.041168212890625, -0.0203399658203125, -0.0010519027709960938, 0.0041656494140625, 0.0217132568359375, -0.023956298828125, -0.045654296875, -0.0286712646484375, 0.01336669921875, 0.0300445556640625, 0.03411865234375, -0.0242767333984375, 0.040557861328125, 0.01410675048828125, -0.051116943359375, -0.0100250244140625, -0.0143280029296875, -0.050384521484375, -0.07061767578125, 0.0181427001953125, -0.00862884521484375, 0.0033969879150390625, 0.03515625, 0.0242919921875, -0.0218963623046875, 0.01947021484375, 0.0038471221923828125, 0.044952392578125, 0.07672119140625, 0.020263671875, 0.0225372314453125, -0.0017023086547851562, -0.054534912109375, 0.04248046875, -0.0345458984375, -0.033203125, -0.022247314453125, 0.0198516845703125, 0.05035400390625, 0.00632476806640625, 0.002529144287109375, 0.00820159912109375, -0.00545501708984375, -0.00214385986328125, 0.014892578125, -0.0797119140625, -0.09368896484375, -0.00447845458984375, 0.01045989990234375, 0.0287322998046875, -0.0679931640625, 0.00359344482421875, 0.0197296142578125, 0.01126861572265625, 0.00475311279296875, -0.01153564453125, -0.03985595703125, 0.0078277587890625, 0.0271453857421875, 0.0196380615234375, 0.020782470703125, -0.0196533203125, -0.036346435546875, -0.05322265625, 0.00823974609375, -0.00244903564453125, 0.047943115234375, -0.0226593017578125, -0.0026302337646484375, 0.00659942626953125, 0.0121917724609375, 0.03515625, 0.042144775390625, -0.02838134765625, -0.05157470703125, -0.019927978515625, 0.02764892578125, -0.041168212890625, -0.01038360595703125, 0.01471710205078125, -0.0288543701171875, -0.04913330078125, -0.0355224609375, -0.0038318634033203125, -0.006183624267578125, 0.0288543701171875, 0.0269927978515625, -0.0193328857421875, 0.01800537109375, 0.00328826904296875, -0.0187530517578125, -0.0499267578125, 0.01027679443359375, 0.042266845703125, -0.01128387451171875, -0.003936767578125, 0.010986328125, 0.043548583984375, -0.0192108154296875, 0.016021728515625, -0.06671142578125, -0.02679443359375, -0.01110076904296875, -0.03411865234375, 0.0185546875, 0.0182342529296875, -0.008453369140625, 0.01331329345703125, -0.0026340484619140625, 0.01293182373046875, -0.0223388671875, -0.00113677978515625, -0.01186370849609375, 0.030914306640625, -0.00820159912109375, -0.004119873046875, 0.06573486328125, -0.020660400390625, -0.031829833984375, -0.00027871131896972656, -0.006191253662109375, 0.0120697021484375, 0.0367431640625, -0.0002880096435546875, 0.01488494873046875, 0.023712158203125, -0.0299530029296875, 0.0186004638671875, 0.00879669189453125, 0.0020542144775390625, 0.0270233154296875, 0.0491943359375, -0.0233154296875, -0.07061767578125, 0.0325927734375, 0.0213165283203125, -0.0261077880859375, 0.0241241455078125, -0.0272216796875, -0.00909423828125, -0.0244293212890625, 0.0138397216796875, 0.00209808349609375, -0.0100860595703125, -0.00965118408203125, -0.0260009765625, -0.003284454345703125, -0.016021728515625, -0.01015472412109375, -0.046234130859375, 0.0772705078125, -0.0008077621459960938, -0.0117340087890625, 0.02496337890625, -0.0105438232421875, -0.0013580322265625, -0.01300811767578125, 0.060302734375, 0.0245361328125, -0.0309906005859375, 0.0164642333984375, -0.00518798828125, 0.0164794921875, 0.0163421630859375, 0.022918701171875, -0.0015239715576171875, -0.0264434814453125, -0.020263671875, 0.00952911376953125, -0.02789306640625, -0.0413818359375, -0.00519561767578125, -0.0007939338684082031, -0.020355224609375, 0.04351806640625, -0.03704833984375, 0.0261077880859375, 0.0182647705078125, -0.00592803955078125, 0.021484375, -0.035308837890625, 0.0286865234375, -0.043548583984375, -0.058685302734375, 0.021697998046875, -0.0201568603515625, -0.05462646484375, 0.007587432861328125, 0.049072265625, 0.00555419921875, 0.020263671875, -0.031463623046875, 0.056060791015625, 0.0178375244140625, -0.02313232421875, -0.03619384765625, 0.03515625, -0.061737060546875, -0.0087738037109375, -0.0177764892578125, 0.0261077880859375, -0.002094268798828125, -0.042816162109375, -0.05487060546875, 0.08074951171875, -0.021453857421875, 0.020355224609375, -0.004581451416015625, 0.035552978515625, -0.002170562744140625, 0.0205230712890625, -0.01073455810546875, 0.07537841796875, 0.0001316070556640625, 0.032196044921875, -0.0221405029296875, 0.0003528594970703125, 0.0256195068359375, 0.01019287109375, 0.027069091796875, 0.01071929931640625, -0.0252227783203125, -0.0200653076171875, 0.009918212890625, 0.00786590576171875, -0.0006804466247558594, 0.040557861328125, -0.02044677734375, 0.0435791015625, 0.0185089111328125, -0.06707763671875, 0.01605224609375, -0.017333984375, -0.019989013671875, 0.0129241943359375, -0.0003635883331298828, 0.0082550048828125, 0.034149169921875, -0.033966064453125, 0.016998291015625, 0.017059326171875, -0.0126800537109375, 0.004398345947265625, 0.041961669921875, 0.0399169921875, 0.052520751953125, -0.01306915283203125, 0.060455322265625, -0.033599853515625, 0.0797119140625, -0.0225067138671875, 0.0036163330078125, 0.021514892578125, 0.022186279296875, 0.01129913330078125, 0.00672149658203125, 0.00446319580078125, 0.0286865234375, -0.0240020751953125, 0.016082763671875, 0.035675048828125, 0.0251312255859375, -0.036041259765625, -0.04388427734375, 0.0628662109375, 0.056976318359375, -0.010223388671875, -0.00039386749267578125, 0.007068634033203125, 0.01305389404296875, 0.015777587890625, -0.0193939208984375, 0.042633056640625, 0.0307159423828125, 0.027679443359375, 0.01479339599609375, -0.00849151611328125, -0.004642486572265625, -0.031341552734375, 0.01018524169921875, 0.047698974609375, 0.04180908203125, 0.037628173828125, -0.00534820556640625, -0.0081024169921875, 0.01458740234375, 0.01050567626953125, -0.007595062255859375, 0.03363037109375, -0.0185394287109375, 0.002643585205078125, -0.0164642333984375, 0.01959228515625, 0.0132293701171875, 0.003482818603515625, -0.035675048828125, -0.045623779296875, 0.031982421875, 0.047515869140625, 0.0413818359375, 0.03387451171875, 0.0743408203125, 0.0155792236328125, -0.05950927734375, 0.003936767578125, 0.0182037353515625, -0.029327392578125, 0.01934814453125, 0.0036602020263671875, -0.0281829833984375, -0.003284454345703125, -0.04791259765625, -0.010223388671875, -0.00556182861328125, 0.03955078125, -0.0114288330078125, -0.01406097412109375, 0.01146697998046875, -0.012176513671875, 0.006259918212890625, 0.025390625, -0.042694091796875, 0.007022857666015625, -0.049041748046875, 0.0034503936767578125, -0.0430908203125, 0.0005092620849609375, -0.006610870361328125, 0.013763427734375, 0.0006880760192871094, 0.0198516845703125, -0.0108489990234375, 0.0006232261657714844, 0.022735595703125, 0.01361083984375, -0.032012939453125, -0.019866943359375, 0.0443115234375, -0.025726318359375, -0.054473876953125, -0.02679443359375, 0.00710296630859375, 0.00679779052734375, -0.0430908203125, 0.08111572265625, -0.0088653564453125, -0.0128936767578125, 0.0518798828125, -0.03448486328125, 0.0615234375, 0.039398193359375, -0.03692626953125, -0.0002715587615966797, 0.0234222412109375, -0.0180206298828125, -0.055877685546875, 0.005115509033203125, 0.02716064453125, -0.0179443359375, 0.031219482421875, -0.0384521484375, 0.01296234130859375, -0.01245880126953125, -0.01432037353515625, -0.035369873046875, -0.050201416015625, -0.029266357421875, 0.0145111083984375, 0.00461578369140625, -0.01428985595703125, -0.049224853515625, 0.0276336669921875, 0.0338134765625, -0.0229949951171875, 0.0214691162109375, -0.036865234375, 0.03375244140625, 0.027008056640625, 0.037353515625, -0.062225341796875, 0.0270233154296875, -0.007678985595703125, -0.0197296142578125, 0.00304412841796875, 0.0633544921875, 0.0243377685546875, -0.029083251953125, 0.0882568359375, 0.0197601318359375, 0.052093505859375, -0.0297393798828125, -0.00505828857421875, 0.02813720703125, 0.0284423828125, 0.0243988037109375, 0.031982421875, -0.01763916015625, -0.01418304443359375, -0.049591064453125, -0.0162811279296875, -0.04718017578125, -0.072998046875, -0.04638671875, -0.0419921875, 0.0654296875, 0.032073974609375, -0.044830322265625, 0.018035888671875, -0.0138092041015625, -0.0287933349609375, 0.048583984375, -0.03192138671875, 0.023193359375, 0.03515625, -0.0283660888671875, -0.03875732421875, -0.0208282470703125, 0.0016775131225585938, -0.04010009765625, 0.019775390625, 0.036102294921875, -0.0328369140625, 0.01486968994140625, 0.0037288665771484375, 0.0293426513671875, 0.054290771484375, 0.003204345703125, 0.00420379638671875, 0.02960205078125, 0.02593994140625, -0.0133819580078125, -0.0965576171875, -0.022674560546875, -0.0335693359375, 0.0222015380859375, -0.0411376953125, -0.007083892822265625, -0.01425933837890625, -0.033447265625, 0.005756378173828125, -0.009246826171875, 0.0247039794921875, -0.0131988525390625, -0.08740234375, 0.00116729736328125, -0.0010833740234375, 0.032806396484375, -0.0268707275390625, -0.01605224609375, -0.0259246826171875, 0.042877197265625, 0.008453369140625, -0.0433349609375, 0.0169219970703125, -0.019378662109375, -0.0035037994384765625, 0.053070068359375, 0.0771484375, -0.014923095703125, 0.0312347412109375, -0.01203155517578125, 0.061004638671875, 0.0987548828125, 0.01206207275390625, -0.0022945404052734375, 0.00228118896484375, -0.09881591796875, -0.033660888671875, -0.023345947265625, -0.0212554931640625, -0.0219879150390625, 0.07061767578125, 0.0552978515625, 0.00913238525390625, -0.031707763671875, 0.0209808349609375, -0.0121307373046875, -0.0357666015625, 0.002758026123046875, 0.01849365234375, -0.03875732421875, 0.0020751953125, -0.0142822265625, 0.004398345947265625, 0.0203094482421875, -0.03448486328125, -0.0127410888671875, -0.00019681453704833984, 0.0175628662109375, 0.0236968994140625, -0.0298004150390625, 0.0168304443359375, 0.0268707275390625, -0.00972747802734375, 0.021697998046875, 0.004119873046875, -0.00496673583984375, 0.00860595703125, 0.037628173828125, -0.019317626953125, -0.017578125, -0.049530029296875, 0.037841796875, -0.03485107421875, 0.0416259765625, -0.06146240234375, -0.0169525146484375, -0.01100921630859375, 0.00794219970703125, 0.0010833740234375, 0.0092926025390625, 0.01058197021484375, -0.01806640625, -0.01427459716796875, 0.046142578125, -0.042877197265625, 0.038970947265625, -0.018310546875, 0.01507568359375, -0.025848388671875, 0.025634765625, 0.03985595703125, -0.0305023193359375, 0.0189208984375, 0.0029087066650390625, -0.0067291259765625, 0.00199127197265625, 0.001605987548828125, -0.06231689453125, -0.0211334228515625, 0.0009608268737792969 ]
eae619ab0a40d08f6393133f04f277bdf10a8586
Wordpress Stackexchange Q: $wpdb prepare issue with mysql DATE_FORMAT Today, I have a issue in $wpdb. I used $result = $wpdb->get_var( $wpdb->prepare( "SELECT DATE_FORMAT(report_date, '%d-%m-%Y') FROM table WHERE report_id = %d", $report_id ) ); The above code not works because of %d in DATE_FORMAT. How i solved this issue in wordpress A: From the Codex page for the WPDB class: [...] the prepare method [...] supports both a sprintf()-like and vsprintf()-like syntax. Having a look at PHP's documentation for sprintf(): ##Example 6 ... // notice the double %%, this prints a literal '%' character So you can use $result = $wpdb->get_var( $wpdb->prepare( "SELECT DATE_FORMAT(report_date, '%%d-%%m-%%Y') FROM table WHERE report_id = %d", $report_id ) ); for your purposes.
Q: $wpdb prepare issue with mysql DATE_FORMAT Today, I have a issue in $wpdb. I used $result = $wpdb->get_var( $wpdb->prepare( "SELECT DATE_FORMAT(report_date, '%d-%m-%Y') FROM table WHERE report_id = %d", $report_id ) ); The above code not works because of %d in DATE_FORMAT. How i solved this issue in wordpress A: From the Codex page for the WPDB class: [...] the prepare method [...] supports both a sprintf()-like and vsprintf()-like syntax. Having a look at PHP's documentation for sprintf(): ##Example 6 ... // notice the double %%, this prints a literal '%' character So you can use $result = $wpdb->get_var( $wpdb->prepare( "SELECT DATE_FORMAT(report_date, '%%d-%%m-%%Y') FROM table WHERE report_id = %d", $report_id ) ); for your purposes.
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:444072", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140675" }
[ 0.061676025390625, -0.00958251953125, -0.01096343994140625, -0.08349609375, 0.0177764892578125, -0.0230712890625, 0.01369476318359375, 0.0294342041015625, 0.00870513916015625, 0.050750732421875, 0.008056640625, -0.01349639892578125, -0.01776123046875, -0.0219573974609375, -0.050445556640625, -0.0230255126953125, 0.03558349609375, -0.029998779296875, 0.00983428955078125, -0.0118865966796875, 0.0023250579833984375, 0.0176544189453125, -0.005519866943359375, 0.0031452178955078125, 0.043914794921875, -0.0243988037109375, 0.0153961181640625, 0.00241851806640625, 0.061859130859375, 0.0197906494140625, 0.0218963623046875, -0.057037353515625, 0.0281982421875, 0.0014820098876953125, 0.016845703125, 0.07940673828125, 0.04058837890625, -0.004581451416015625, 0.0012979507446289062, 0.05206298828125, -0.0023040771484375, 0.01221466064453125, 0.0002551078796386719, -0.03411865234375, -0.0252227783203125, -0.017791748046875, 0.0177154541015625, -0.010467529296875, 0.00659942626953125, 0.017364501953125, -0.0005884170532226562, 0.0117645263671875, -0.004001617431640625, 0.0455322265625, -0.021728515625, -0.01413726806640625, -0.0243377685546875, 0.03106689453125, 0.0091705322265625, 0.0277099609375, -0.00751495361328125, 0.044403076171875, -0.0117645263671875, -0.017608642578125, 0.0011949539184570312, 0.00638580322265625, 0.039520263671875, 0.01052093505859375, 0.0260772705078125, 0.0060577392578125, 0.00170135498046875, 0.01007080078125, -0.01116180419921875, -0.006175994873046875, -0.020751953125, 0.01543426513671875, 0.002239227294921875, -0.0008983612060546875, 0.005924224853515625, 0.00862884521484375, 0.0116729736328125, 0.0046539306640625, -0.06005859375, -0.001377105712890625, 0.0362548828125, 0.0205230712890625, -0.0189056396484375, -0.0243988037109375, -0.057220458984375, -0.027496337890625, -0.037078857421875, -0.031646728515625, -0.04876708984375, -0.030517578125, 0.0010471343994140625, -0.044677734375, -0.00897216796875, 0.03668212890625, -0.038604736328125, -0.01348114013671875, -0.012359619140625, 0.0007834434509277344, -0.05615234375, -0.01259613037109375, 0.01140594482421875, 0.050140380859375, 0.0411376953125, 0.030670166015625, 0.035125732421875, 0.004840850830078125, 0.0015096664428710938, 0.048309326171875, -0.055023193359375, -0.057220458984375, 0.0009965896606445312, 0.08477783203125, -0.0157470703125, -0.033416748046875, 0.0146026611328125, -0.045623779296875, 0.003643035888671875, 0.023895263671875, -0.059600830078125, -0.005504608154296875, 0.007293701171875, -0.00872802734375, -0.01171875, 0.0247650146484375, -0.03350830078125, 0.03369140625, -0.025238037109375, -0.013946533203125, 0.03204345703125, 0.028289794921875, -0.00382232666015625, -0.0231475830078125, 0.04364013671875, -0.0293426513671875, -0.0233001708984375, 0.0316162109375, -0.0092926025390625, -0.0323486328125, -0.003208160400390625, -0.0267181396484375, -0.040496826171875, -0.0028667449951171875, 0.01751708984375, 0.01035308837890625, -0.0090484619140625, -0.0235443115234375, -0.0211029052734375, 0.02294921875, 0.0011034011840820312, 0.0250091552734375, -0.027923583984375, -0.005367279052734375, -0.0091705322265625, -0.01641845703125, 0.00008505582809448242, -0.0172882080078125, 0.0160064697265625, -0.0134735107421875, -0.0231781005859375, -0.015777587890625, -0.01035308837890625, -0.007282257080078125, -0.028106689453125, -0.0016689300537109375, 0.0219268798828125, 0.010040283203125, -0.0254669189453125, -0.0286712646484375, 0.025543212890625, -0.01119232177734375, -0.034515380859375, 0.037109375, -0.027984619140625, -0.032012939453125, 0.0312042236328125, -0.0180206298828125, -0.03326416015625, -0.034393310546875, 0.0198211669921875, 0.003963470458984375, -0.026397705078125, 0.02496337890625, -0.0005669593811035156, 0.0006527900695800781, 0.01277923583984375, -0.0018053054809570312, 0.0196533203125, 0.052734375, -0.0679931640625, 0.0243072509765625, 0.004421234130859375, -0.0389404296875, -0.00757598876953125, -0.0145111083984375, 0.0016813278198242188, -0.0017242431640625, 0.01473236083984375, 0.058380126953125, -0.034332275390625, 0.041473388671875, -0.028045654296875, 0.037750244140625, -0.0149078369140625, 0.022918701171875, -0.0213165283203125, 0.02752685546875, 0.031463623046875, 0.0205841064453125, -0.057769775390625, 0.0325927734375, -0.0139923095703125, 0.01100921630859375, 0.0094451904296875, 0.044677734375, -0.01374053955078125, 0.048004150390625, -0.026763916015625, -0.014739990234375, -0.00762939453125, 0.0165863037109375, 0.0052337646484375, -0.02667236328125, 0.0029430389404296875, -0.0206756591796875, 0.050994873046875, -0.01593017578125, 0.06121826171875, -0.003978729248046875, 0.0012645721435546875, 0.041290283203125, -0.01149749755859375, -0.003692626953125, 0.0033817291259765625, -0.043426513671875, 0.0197296142578125, 0.030517578125, 0.03961181640625, 0.0207366943359375, 0.0023517608642578125, -0.033660888671875, 0.049713134765625, -0.01390838623046875, 0.032196044921875, -0.037506103515625, 0.00882720947265625, 0.0031795501708984375, -0.008514404296875, -0.0430908203125, 0.0227508544921875, -0.04168701171875, -0.044097900390625, 0.052703857421875, -0.033172607421875, -0.00862884521484375, -0.00299835205078125, 0.0266265869140625, -0.0114898681640625, -0.00005453824996948242, 0.035003662109375, -0.01389312744140625, -0.01265716552734375, 0.022216796875, 0.040313720703125, 0.035675048828125, 0.017913818359375, -0.0083465576171875, -0.01192474365234375, -0.0278778076171875, 0.00643157958984375, 0.01110076904296875, -0.07977294921875, 0.041015625, 0.0050048828125, 0.030517578125, -0.016815185546875, -0.0005102157592773438, 0.0120391845703125, 0.09588623046875, -0.0142059326171875, -0.03131103515625, -0.024017333984375, -0.01087188720703125, -0.0308380126953125, -0.000797271728515625, -0.004169464111328125, -0.0031299591064453125, 0.00644683837890625, 0.051910400390625, -0.0049591064453125, 0.04302978515625, -0.0100250244140625, -0.00650787353515625, 0.007785797119140625, -0.007080078125, 0.01042938232421875, -0.0413818359375, -0.00469970703125, 0.035736083984375, -0.00868988037109375, -0.01043701171875, -0.00685882568359375, 0.00994873046875, 0.027801513671875, 0.00115203857421875, -0.014190673828125, -0.022125244140625, -0.0545654296875, -0.043548583984375, 0.026702880859375, 0.0926513671875, -0.020416259765625, -0.05828857421875, 0.004108428955078125, 0.03216552734375, -0.06854248046875, -0.102294921875, -0.050506591796875, -0.00269317626953125, 0.0055999755859375, -0.0092010498046875, 0.00026297569274902344, 0.0239715576171875, -0.023773193359375, 0.0142822265625, 0.031524658203125, -0.005199432373046875, -0.05218505859375, -0.0477294921875, -0.08306884765625, -0.04833984375, 0.001308441162109375, 0.0309600830078125, -0.00989532470703125, 0.0770263671875, 0.0140838623046875, -0.018524169921875, -0.01467132568359375, 0.0096588134765625, -0.01335906982421875, -0.02734375, -0.006618499755859375, -0.03240966796875, 0.0008959770202636719, -0.01157379150390625, 0.06011962890625, -0.0027332305908203125, 0.01015472412109375, 0.0021533966064453125, 0.015869140625, 0.019378662109375, 0.0350341796875, 0.00295257568359375, -0.0304107666015625, 0.0279998779296875, 0.0133056640625, -0.03619384765625, 0.0218505859375, -0.007152557373046875, -0.013824462890625, -0.003204345703125, -0.004428863525390625, -0.0168304443359375, 0.028656005859375, -0.02960205078125, 0.024932861328125, 0.011016845703125, 0.01158905029296875, -0.021484375, 0.052459716796875, 0.0012216567993164062, 0.0157623291015625, -0.03387451171875, 0.029022216796875, -0.0262603759765625, 0.02142333984375, 0.01139068603515625, -0.0287628173828125, -0.01087188720703125, -0.0469970703125, -0.0230712890625, -0.0863037109375, 0.058074951171875, -0.050933837890625, -0.038330078125, -0.0535888671875, -0.010345458984375, -0.006237030029296875, 0.08514404296875, -0.01227569580078125, -0.03167724609375, -0.0216064453125, 0.0357666015625, -0.057769775390625, -0.0662841796875, 0.0092926025390625, 0.003528594970703125, -0.0841064453125, -0.002399444580078125, -0.0121002197265625, -0.0303802490234375, -0.00370025634765625, -0.0014562606811523438, -0.054229736328125, -0.064208984375, 0.0240020751953125, 0.07196044921875, -0.0380859375, 0.051971435546875, -0.0294342041015625, 0.045013427734375, -0.01837158203125, 0.016937255859375, -0.0751953125, -0.02777099609375, 0.00279998779296875, 0.07684326171875, 0.02294921875, -0.042572021484375, -0.0008344650268554688, 0.0457763671875, 0.02410888671875, -0.03131103515625, 0.023162841796875, -0.0162811279296875, -0.003108978271484375, 0.041168212890625, 0.0277099609375, -0.00904083251953125, -0.0311431884765625, -0.0380859375, -0.01282501220703125, -0.01580810546875, -0.00717926025390625, 0.026214599609375, -0.004230499267578125, 0.01186370849609375, 0.046539306640625, 0.004932403564453125, -0.0214385986328125, 0.050872802734375, -0.053558349609375, 0.023895263671875, -0.01465606689453125, -0.0006589889526367188, 0.0531005859375, 0.031646728515625, 0.0105438232421875, -0.00940704345703125, 0.044647216796875, 0.01145172119140625, -0.05242919921875, -0.0175933837890625, -0.02001953125, 0.0338134765625, -0.0026988983154296875, 0.04266357421875, 0.0165252685546875, -0.054840087890625, 0.08917236328125, 0.0236358642578125, -0.0203857421875, -0.0008454322814941406, 0.02044677734375, 0.012115478515625, -0.01305389404296875, 0.022674560546875, -0.0126953125, 0.00908660888671875, 0.062164306640625, 0.005031585693359375, 0.0198516845703125, 0.01385498046875, 0.0005044937133789062, 0.00981903076171875, -0.0584716796875, -0.02972412109375, -0.042633056640625, 0.02972412109375, -0.055267333984375, 0.0113677978515625, -0.03350830078125, 0.0176239013671875, -0.0171661376953125, -0.0164642333984375, -0.0086517333984375, 0.0240631103515625, 0.02587890625, -0.0170440673828125, 0.0455322265625, 0.00887298583984375, -0.016754150390625, -0.003936767578125, -0.0127716064453125, 0.024017333984375, 0.0328369140625, 0.005947113037109375, -0.0211334228515625, -0.0133209228515625, -0.00023031234741210938, -0.0169677734375, -0.01421356201171875, 0.007785797119140625, 0.018798828125, -0.0408935546875, 0.00800323486328125, 0.00395965576171875, -0.0212249755859375, -0.0347900390625, 0.0653076171875, 0.007755279541015625, 0.00356292724609375, 0.0235137939453125, 0.052337646484375, 0.025634765625, 0.029449462890625, -0.030181884765625, 0.047393798828125, 0.00992584228515625, 0.058929443359375, 0.0189666748046875, -0.057830810546875, 0.00843048095703125, 0.0200653076171875, -0.057220458984375, -0.01427459716796875, 0.0169219970703125, -0.0008535385131835938, -0.03021240234375, -0.0246124267578125, -0.003780364990234375, 0.06390380859375, 0.03765869140625, -0.00905609130859375, -0.0180206298828125, -0.00560760498046875, 0.0243988037109375, -0.005542755126953125, -0.044891357421875, -0.0014591217041015625, 0.032073974609375, 0.001827239990234375, 0.0298309326171875, -0.0233612060546875, 0.046417236328125, 0.004276275634765625, 0.0389404296875, -0.054412841796875, -0.06964111328125, 0.045318603515625, -0.0239715576171875, -0.0455322265625, 0.0014276504516601562, 0.021728515625, -0.036651611328125, 0.00438690185546875, 0.05291748046875, -0.04388427734375, 0.01299285888671875, -0.057708740234375, 0.04693603515625, -0.0899658203125, -0.021728515625, 0.11077880859375, 0.105712890625, 0.0094451904296875, -0.01678466796875, -0.0213623046875, -0.026092529296875, -0.01398468017578125, -0.03057861328125, -0.0162811279296875, -0.02764892578125, 0.0088348388671875, 0.0149688720703125, 0.01763916015625, 0.0007100105285644531, 0.00208282470703125, 0.009765625, -0.0023403167724609375, 0.016845703125, -0.0003285408020019531, 0.07525634765625, -0.03228759765625, 0.08062744140625, 0.0220489501953125, 0.023895263671875, -0.0169677734375, -0.03057861328125, 0.032501220703125, 0.00646209716796875, -0.02667236328125, -0.0303802490234375, -0.0224456787109375, -0.07568359375, -0.004177093505859375, -0.0159912109375, 0.050933837890625, -0.00699615478515625, -0.0145111083984375, -0.01494598388671875, -0.0005412101745605469, -0.040863037109375, 0.07086181640625, -0.025115966796875, -0.0223388671875, 0.02728271484375, -0.006160736083984375, 0.0357666015625, -0.01384735107421875, -0.0338134765625, 0.00232696533203125, 0.004993438720703125, -0.016571044921875, 0.028167724609375, 0.030426025390625, 0.0245361328125, 0.032928466796875, -0.0030059814453125, 0.0113525390625, 0.01476287841796875, 0.00562286376953125, -0.03387451171875, -0.0168304443359375, 0.0250396728515625, -0.0191650390625, -0.0186309814453125, -0.0007801055908203125, -0.0193939208984375, 0.055328369140625, 0.0716552734375, 0.09466552734375, -0.10614013671875, 0.0168304443359375, 0.0230712890625, -0.037322998046875, 0.0313720703125, -0.0110931396484375, -0.006591796875, -0.0289459228515625, -0.002338409423828125, 0.024383544921875, -0.0115509033203125, -0.01178741455078125, 0.016143798828125, -0.002086639404296875, -0.019744873046875, 0.0202484130859375, 0.0016651153564453125, -0.024444580078125, -0.0052947998046875, 0.004085540771484375, 0.0246734619140625, 0.01389312744140625, 0.0067596435546875, -0.0152587890625, -0.006381988525390625, -0.037506103515625, -0.00749969482421875, -0.040496826171875, -0.018218994140625, -0.01471710205078125, 0.03509521484375, 0.041656494140625, 0.042694091796875, -0.0020122528076171875, -0.029266357421875, 0.0086517333984375, 0.03900146484375, -0.0157623291015625, -0.00731658935546875, -0.02935791015625, 0.0679931640625, 0.011077880859375, 0.017730712890625, 0.0070953369140625, 0.0089263916015625, 0.0067291259765625, -0.043365478515625, 0.01309967041015625, -0.0535888671875, 0.0226287841796875, 0.0214691162109375, 0.0292205810546875, 0.005611419677734375, -0.00890350341796875, 0.01045989990234375, -0.082763671875, -0.03460693359375, 0.0010824203491210938, -0.015167236328125, 0.01531219482421875, -0.00833892822265625, -0.046661376953125, 0.0274505615234375, 0.005718231201171875, 0.006038665771484375, 0.0031833648681640625, 0.00583648681640625, -0.0307769775390625, -0.028533935546875, -0.05328369140625, 0.036376953125, 0.0382080078125, 0.051239013671875, -0.0143890380859375, -0.0007481575012207031, 0.0269622802734375, 0.0013837814331054688, 0.00225830078125, -0.01488494873046875, -0.02288818359375, 0.010284423828125, 0.0865478515625, 0.0362548828125, 0.03271484375, 0.0281524658203125, -0.033477783203125, -0.0006871223449707031, 0.0499267578125, -0.026092529296875, 0.0271453857421875, -0.0178070068359375, -0.02105712890625, -0.0254974365234375, -0.0010986328125, -0.01528167724609375, 0.005748748779296875, 0.0116119384765625, 0.02008056640625, -0.016021728515625, -0.0131072998046875, -0.026519775390625, 0.0029811859130859375, 0.046661376953125, 0.046722412109375, -0.076171875, -0.029205322265625, -0.035400390625, 0.0433349609375, 0.00919342041015625, -0.011566162109375, 0.0357666015625, -0.00937652587890625, 0.051116943359375, 0.0086517333984375, -0.027679443359375, -0.01143646240234375, 0.0546875, 0.045257568359375, -0.00632476806640625, 0.01971435546875, -0.0465087890625, -0.00502777099609375, 0.0297393798828125, 0.058380126953125, -0.03070068359375, -0.007476806640625, 0.00907135009765625, 0.0108489990234375, -0.006053924560546875, -0.024749755859375, 0.01001739501953125, 0.0386962890625, 0.04193115234375, 0.0021877288818359375, -0.0230560302734375, 0.0188140869140625, 0.00624847412109375, -0.00018131732940673828, -0.00525665283203125, 0.005031585693359375, -0.00699615478515625, -0.0197296142578125, -0.018341064453125, 0.031585693359375, 0.06256103515625, 0.0160369873046875, 0.031982421875, -0.047332763671875, -0.03155517578125, 0.004482269287109375, -0.0168914794921875, 0.01198577880859375, -0.0101318359375, 0.019012451171875, 0.030914306640625, -0.005611419677734375, -0.00482940673828125, -0.0045013427734375, 0.018096923828125, 0.0287628173828125, -0.0050506591796875, -0.024932861328125, 0.004650115966796875, -0.02838134765625, -0.045318603515625, -0.055389404296875, -0.06109619140625, 0.0035228729248046875, 0.0213165283203125, 0.0296173095703125, 0.0206298828125, 0.046234130859375, -0.00939178466796875, -0.056365966796875, 0.049163818359375, -0.02337646484375, 0.0190277099609375, 0.056182861328125, -0.048095703125, 0.0203399658203125, -0.0380859375, -0.029327392578125, -0.0131378173828125, 0.01044464111328125, -0.0307464599609375, 0.011199951171875, 0.042144775390625, 0.0044097900390625, -0.0036296844482421875, -0.012847900390625, 0.0161285400390625, -0.00539398193359375, -0.015869140625, -0.003993988037109375, -0.03271484375, 0.0311279296875, -0.01276397705078125, -0.054534912109375, -0.03350830078125, -0.032257080078125, 0.0278778076171875, -0.005710601806640625, 0.07110595703125, -0.024566650390625, 0.022369384765625, -0.0011930465698242188, 0.0579833984375, -0.044403076171875, 0.007640838623046875, 0.00887298583984375, -0.0183258056640625, 0.012237548828125, -0.0241851806640625, 0.01491546630859375, -0.0150299072265625, 0.034942626953125, -0.0114288330078125, -0.01666259765625, -0.046905517578125, 0.0540771484375, 0.0160675048828125, 0.02801513671875, -0.01512908935546875, -0.019561767578125, 0.03533935546875, 0.0269927978515625, 0.00670623779296875, 0.050262451171875, 0.02777099609375, 0.0212249755859375, 0.0079803466796875, 0.00012791156768798828, 0.03485107421875, -0.0209197998046875, 0.0650634765625, 0.034698486328125, -0.056610107421875, 0.0178070068359375, -0.0207061767578125, -0.03070068359375, 0.0036163330078125, 0.010284423828125, -0.00775909423828125, -0.0283660888671875, 0.038848876953125, -0.0159759521484375, 0.0389404296875, 0.0214691162109375, 0.004180908203125, 0.020233154296875, 0.0201873779296875, -0.0283660888671875, -0.004817962646484375, -0.01023101806640625, -0.0223846435546875, -0.00327301025390625, -0.0023212432861328125, 0.0116424560546875, -0.00032258033752441406, -0.005741119384765625, -0.035186767578125, -0.0231475830078125, -0.01175689697265625, 0.0012836456298828125, -0.042724609375, -0.015350341796875, 0.024078369140625, 0.037506103515625, -0.0203399658203125, -0.016815185546875, -0.00505828857421875, 0.036102294921875, 0.006046295166015625, -0.051422119140625, -0.0158538818359375, 0.06829833984375, -0.0201873779296875, 0.000865936279296875, 0.0296478271484375, -0.0013608932495117188, -0.0343017578125, -0.016693115234375, -0.01033782958984375, 0.01065826416015625, -0.0225982666015625, -0.0253448486328125, 0.00794219970703125, 0.0013370513916015625, 0.004894256591796875, -0.077880859375, -0.01078033447265625, -0.08221435546875, 0.01020050048828125, 0.02783203125, -0.0279693603515625, -0.0140838623046875, -0.056182861328125, -0.09210205078125, 0.06317138671875, 0.0081939697265625, -0.0419921875, 0.011077880859375, 0.01076507568359375, 0.00785064697265625, -0.0257110595703125, 0.00392913818359375, 0.000644683837890625, -0.01233673095703125, -0.01226806640625, 0.0274505615234375, -0.001834869384765625, 0.019683837890625, -0.0217742919921875, -0.05352783203125, 0.01812744140625, 0.01276397705078125, 0.0382080078125, -0.0270538330078125, 0.016326904296875, 0.0177459716796875, 0.0299072265625, -0.004253387451171875, -0.00307464599609375, 0.026397705078125, -0.0248870849609375, -0.01898193359375, 0.02252197265625, -0.0311737060546875, 0.0163116455078125, 0.046539306640625, 0.10687255859375, 0.0272064208984375, -0.0540771484375, -0.0007405281066894531, -0.004726409912109375, -0.017913818359375, 0.0175628662109375, 0.034912109375, -0.047637939453125, -0.0079345703125, 0.013885498046875, -0.01071929931640625, 0.01416778564453125, 0.0175323486328125, -0.01483154296875, -0.0014495849609375, 0.0310211181640625, -0.0018110275268554688, -0.064697265625, -0.017425537109375, 0.038330078125, -0.043365478515625, -0.04205322265625, 0.005702972412109375, 0.0229644775390625, -0.0276031494140625, -0.012298583984375, -0.026214599609375, 0.0258636474609375, 0.0237579345703125, -0.007259368896484375, 0.0253448486328125, -0.0567626953125, 0.0218353271484375, 0.046234130859375, -0.001186370849609375, -0.0099639892578125, -0.01403045654296875, -0.0116424560546875, 0.0202178955078125, 0.000029861927032470703, -0.032196044921875, 0.0322265625, -0.016204833984375, 0.0008258819580078125, -0.01690673828125, 0.0384521484375, 0.01216888427734375, -0.039825439453125, 0.044464111328125, -0.02203369140625, 0.01171112060546875, 0.01165008544921875, -0.006038665771484375, -0.029449462890625, -0.0014123916625976562, -0.052703857421875, 0.01526641845703125, -0.0006289482116699219 ]
05ade974070fc4193fd64f28fa0507a547c8cd0b
Wordpress Stackexchange Q: Can I force WP_Query to return no results? I'm working on a website with a search feature that allows users to search through a lot of post meta. There is a specific search pattern that I would like to forcibly return no results for. The WP_Query technically will find results in the database, but I'd like to override that somehow to force it to return no results to trigger the if( $example->have_posts() ) to fail. Is there some sort of parameter I can pass to WP_Query like 'force_no_results' => true that will force it to return no results? A: Curiously there is no clean/explicit way to short circuit WP_Query. If it's main query you might work something out around WP->parse_request(), there seems to be relatively recent (3.5) do_parse_request filter there. But for WP_Query itself dirty hacks are usually in order, such as short-circuiting SQL query by adding AND 1=0 via posts_where filter, etc.
Q: Can I force WP_Query to return no results? I'm working on a website with a search feature that allows users to search through a lot of post meta. There is a specific search pattern that I would like to forcibly return no results for. The WP_Query technically will find results in the database, but I'd like to override that somehow to force it to return no results to trigger the if( $example->have_posts() ) to fail. Is there some sort of parameter I can pass to WP_Query like 'force_no_results' => true that will force it to return no results? A: Curiously there is no clean/explicit way to short circuit WP_Query. If it's main query you might work something out around WP->parse_request(), there seems to be relatively recent (3.5) do_parse_request filter there. But for WP_Query itself dirty hacks are usually in order, such as short-circuiting SQL query by adding AND 1=0 via posts_where filter, etc. A: Try 'post__in' => array(0) Simple and to the point. Update: 'post__in' => empty( $include ) ? [ 0 ] : $include, A: The problems on set a query parameter to unexistent value are 2: * *The query will run, so even if you already know will be no results there is a little performance price to pay *WordPress queries has 19 different 'posts_*' filter hooks ('posts_where', 'post_join', etc..) that act on query, so you can never be sure that even setting unexistent param the query return no results, a simple OR clause returned by a filter make return something. You need a little bit hardcore routine to be sure a query return no result and there is no (or very minimun) performance issue. To trigger that routine, you can use every method, technically you can pass any argument to WP_Query, event arguments that doesn't exists. So if you like something like 'force_no_results' => true, you can use it like so: $a = new WP_Query( array( 's' => 'foo', 'force_no_results' => true ) ); and add a callback running on 'pre_get_posts' that do the hard work: add_action( 'pre_get_posts', function( $q ) { if (array_key_exists('force_no_results', $q->query) && $q->query['force_no_results']) { $q->query = $q->query_vars = array(); $added = array(); $filters = array( 'where', 'where_paged', 'join', 'join_paged', 'groupby', 'orderby', 'distinct', 'limits', 'fields', 'request', 'clauses', 'where_request', 'groupby_request', 'join_request', 'orderby_request', 'distinct_request','fields_request', 'limits_request', 'clauses_request' ); // remove all possible interfering filter and save for later restore foreach ( $filters as $f ) { if ( isset($GLOBALS['wp_filter']["posts_{$f}"]) ) { $added["posts_{$f}"] = $GLOBALS['wp_filter']["posts_{$f}"]; unset($GLOBALS['wp_filter']["posts_{$f}"]); } } // be sure filters are not suppressed $q->set( 'suppress_filters', FALSE ); $done = 0; // use a filter to return a non-sense request add_filter('posts_request', function( $r ) use( &$done ) { if ( $done === 0 ) { $done = 1; $r = "SELECT ID FROM {$GLOBALS['wpdb']->posts} WHERE 0 = 1"; } return $r; }); // restore any filter that was added and we removed add_filter('posts_results', function( $posts ) use( &$done, $added ) { if ( $done === 1 ) { $done = 2; foreach ( $added as $hook => $filters ) { $GLOBALS['wp_filter'][$hook] = $filters; } } return $posts; }); } }, PHP_INT_MAX ); What this code does is run on 'pre_get_posts' as late as possible. If the argument 'force_no_results' is present in the query, then: * *first remove all possible filters that can interfere with the query, and store them inside an helper array *after be sure the filter are triggered, adda filter that return this kind of request: SELECT ID FROM wp_posts WHERE 0 = 1 once all filters are removed, there is no possibilities this query is changed and it is very fast, and has no result for sure *immediately after this query is ran, all original filters (if there were any) are restored and all subsequent queries will works as expected.
wordpress
{ "language": "en", "length": 627, "provenance": "stackexchange_00019.jsonl.gz:444077", "question_score": "26", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140692" }
[ 0.07330322265625, -0.007049560546875, 0.021026611328125, 0.017120361328125, 0.01511383056640625, -0.045440673828125, 0.1103515625, -0.0384521484375, 0.047332763671875, 0.0169830322265625, -0.041290283203125, -0.00635528564453125, -0.00180816650390625, -0.01296234130859375, -0.040679931640625, -0.05218505859375, 0.0307464599609375, -0.016632080078125, -0.00391387939453125, -0.0076904296875, -0.0028934478759765625, 0.021453857421875, -0.0106201171875, 0.007419586181640625, -0.006824493408203125, 0.01885986328125, 0.05615234375, -0.034271240234375, 0.01326751708984375, -0.01226806640625, 0.0019550323486328125, -0.004985809326171875, 0.01409149169921875, 0.0404052734375, -0.02752685546875, 0.0266876220703125, -0.0127716064453125, 0.023193359375, 0.0054473876953125, 0.01806640625, 0.01293182373046875, -0.01351165771484375, -0.05950927734375, 0.005809783935546875, -0.04241943359375, -0.020477294921875, 0.0199127197265625, -0.011993408203125, 0.031524658203125, 0.0012950897216796875, -0.0179290771484375, 0.03692626953125, 0.0029315948486328125, -0.053436279296875, -0.0306549072265625, -0.046478271484375, -0.01233673095703125, 0.00445556640625, 0.0237274169921875, -0.01488494873046875, -0.0011892318725585938, -0.003276824951171875, 0.030731201171875, 0.0182952880859375, -0.0023593902587890625, -0.00705718994140625, -0.0249786376953125, 0.0003693103790283203, -0.01514434814453125, 0.0027294158935546875, 0.039703369140625, -0.0181884765625, -0.01180267333984375, 0.0259246826171875, -0.056365966796875, -0.0364990234375, 0.048431396484375, -0.013275146484375, 0.01458740234375, 0.01739501953125, 0.016845703125, -0.014404296875, -0.05999755859375, -0.00846099853515625, 0.026947021484375, -0.00036263465881347656, -0.0008192062377929688, -0.007732391357421875, -0.0357666015625, -0.014801025390625, -0.0185089111328125, -0.02349853515625, -0.08056640625, 0.00951385498046875, 0.005146026611328125, -0.035919189453125, 0.033660888671875, 0.0262908935546875, -0.01326751708984375, 0.00490570068359375, -0.0127105712890625, -0.035736083984375, 0.00534820556640625, -0.015472412109375, 0.00554656982421875, 0.01415252685546875, -0.0018625259399414062, -0.0217132568359375, 0.041656494140625, 0.03997802734375, 0.0160980224609375, 0.040008544921875, -0.04229736328125, 0.01092529296875, -0.048980712890625, 0.0026950836181640625, -0.05572509765625, -0.04071044921875, -0.024383544921875, -0.023712158203125, 0.0188446044921875, 0.02447509765625, -0.0001838207244873047, -0.003849029541015625, -0.00934600830078125, -0.02532958984375, -0.033477783203125, -0.00951385498046875, -0.004322052001953125, 0.0231781005859375, -0.02142333984375, 0.011322021484375, 0.062744140625, 0.0304412841796875, -0.006000518798828125, -0.0298614501953125, 0.003162384033203125, 0.0018281936645507812, 0.01001739501953125, 0.01213836669921875, 0.008880615234375, -0.030609130859375, -0.0084686279296875, 0.00664520263671875, 0.061737060546875, 0.03607177734375, 0.038421630859375, 0.011871337890625, -0.01058197021484375, -0.0214691162109375, 0.0035572052001953125, 0.033294677734375, 0.0290069580078125, 0.003284454345703125, -0.04278564453125, -0.00353240966796875, 0.01453399658203125, -0.016632080078125, -0.020355224609375, -0.03759765625, -0.0182037353515625, 0.0089569091796875, 0.04766845703125, 0.0213470458984375, 0.00791168212890625, -0.01273345947265625, -0.0200653076171875, -0.008544921875, 0.0198974609375, 0.072265625, -0.042144775390625, 0.022247314453125, 0.047821044921875, -0.0054168701171875, -0.04034423828125, -0.028778076171875, 0.015045166015625, 0.013397216796875, 0.002422332763671875, 0.045196533203125, -0.00870513916015625, -0.028472900390625, 0.0550537109375, -0.020904541015625, -0.043182373046875, 0.05462646484375, -0.00504302978515625, 0.051483154296875, -0.01221466064453125, 0.01092529296875, 0.036468505859375, 0.047576904296875, -0.0198516845703125, 0.03680419921875, -0.0031642913818359375, -0.055328369140625, -0.0124053955078125, -0.0164947509765625, -0.0153045654296875, 0.0012598037719726562, 0.01219940185546875, 0.0193023681640625, -0.022003173828125, -0.01190948486328125, -0.07000732421875, 0.006710052490234375, -0.0261383056640625, 0.033782958984375, -0.0151214599609375, 0.020782470703125, 0.0298614501953125, 0.0185699462890625, -0.041748046875, 0.0222625732421875, 0.0023479461669921875, -0.0213623046875, -0.032440185546875, 0.01169586181640625, -0.010498046875, 0.0093841552734375, -0.00197601318359375, -0.02685546875, -0.024505615234375, 0.00020885467529296875, 0.037078857421875, -0.034942626953125, 0.0022029876708984375, -0.0279083251953125, 0.06304931640625, -0.0224609375, 0.01343536376953125, 0.0291290283203125, 0.07177734375, 0.08673095703125, 0.0032901763916015625, 0.016937255859375, 0.0286865234375, -0.05511474609375, 0.00630950927734375, 0.038604736328125, 0.0222625732421875, 0.0028171539306640625, -0.02276611328125, -0.01837158203125, 0.00901031494140625, -0.02398681640625, 0.0105743408203125, -0.01593017578125, 0.0165557861328125, 0.0004973411560058594, -0.0135955810546875, -0.038543701171875, 0.033843994140625, -0.033782958984375, 0.029815673828125, 0.02581787109375, 0.012420654296875, 0.011505126953125, -0.01013946533203125, -0.016754150390625, 0.003421783447265625, 0.0506591796875, -0.0034923553466796875, 0.019073486328125, 0.009979248046875, -0.003017425537109375, -0.00330352783203125, 0.007007598876953125, -0.0063934326171875, 0.0073394775390625, 0.006908416748046875, -0.07550048828125, 0.00008696317672729492, 0.0216827392578125, -0.016632080078125, -0.00936126708984375, -0.0450439453125, 0.0158233642578125, 0.0179595947265625, -0.00014650821685791016, 0.004955291748046875, 0.052276611328125, 0.0222015380859375, -0.0222930908203125, -0.00485992431640625, -0.00260162353515625, 0.030548095703125, -0.005035400390625, -0.0187530517578125, 0.00931549072265625, 0.016876220703125, 0.05963134765625, -0.01947021484375, 0.043182373046875, -0.0096435546875, 0.005420684814453125, -0.0258636474609375, -0.08465576171875, 0.06640625, -0.06365966796875, 0.041656494140625, 0.09271240234375, -0.004302978515625, 0.0290069580078125, 0.0010547637939453125, 0.0116729736328125, -0.01534271240234375, 0.0012464523315429688, -0.022674560546875, 0.02117919921875, -0.11151123046875, 0.00029754638671875, 0.0478515625, 0.0694580078125, 0.038970947265625, -0.016998291015625, 0.019775390625, 0.0799560546875, -0.018768310546875, -0.055084228515625, 0.03143310546875, 0.0080413818359375, 0.004425048828125, 0.030426025390625, 0.00792694091796875, -0.0243072509765625, 0.018310546875, -0.01323699951171875, 0.002849578857421875, -0.00501251220703125, -0.0810546875, -0.036834716796875, -0.06353759765625, 0.034912109375, -0.007099151611328125, 0.01320648193359375, 0.0014371871948242188, 0.113525390625, 0.0107879638671875, -0.05462646484375, -0.007305145263671875, 0.048065185546875, -0.0148468017578125, -0.00801849365234375, -0.0274200439453125, -0.016876220703125, -0.0016117095947265625, -0.005779266357421875, 0.00116729736328125, -0.004596710205078125, 0.03167724609375, -0.0113677978515625, 0.0188140869140625, 0.027008056640625, 0.031982421875, -0.017059326171875, -0.042724609375, -0.000560760498046875, 0.016265869140625, -0.0518798828125, -0.0256500244140625, 0.01050567626953125, -0.03985595703125, 0.01116943359375, 0.0229339599609375, -0.0188140869140625, 0.00864410400390625, 0.00493621826171875, 0.06964111328125, 0.00214385986328125, -0.005435943603515625, 0.00623321533203125, 0.049407958984375, 0.017669677734375, 0.0584716796875, -0.03826904296875, 0.06854248046875, -0.0152130126953125, 0.006198883056640625, 0.0276641845703125, -0.0005354881286621094, 0.005016326904296875, -0.041259765625, -0.0516357421875, -0.00957489013671875, 0.03070068359375, -0.028564453125, 0.0182647705078125, -0.01172637939453125, -0.0140380859375, -0.00507354736328125, 0.07220458984375, -0.032684326171875, -0.038818359375, -0.052825927734375, 0.0221710205078125, -0.02655029296875, -0.0692138671875, 0.041900634765625, -0.01003265380859375, -0.05218505859375, -0.013763427734375, -0.024017333984375, -0.0271453857421875, 0.01153564453125, -0.08172607421875, -0.01342010498046875, -0.05047607421875, 0.01139068603515625, -0.0192108154296875, -0.00818634033203125, -0.004947662353515625, -0.0197601318359375, -0.016387939453125, 0.0178070068359375, -0.042572021484375, -0.08306884765625, -0.00843048095703125, 0.01334381103515625, 0.0271759033203125, -0.034027099609375, 0.01154327392578125, -0.047393798828125, 0.0236968994140625, 0.0231170654296875, 0.005870819091796875, 0.0305633544921875, -0.007465362548828125, -0.0014295578002929688, 0.030181884765625, 0.0380859375, -0.035675048828125, -0.01045989990234375, -0.0118255615234375, -0.00829315185546875, 0.037078857421875, -0.024322509765625, -0.0052337646484375, -0.0345458984375, -0.011199951171875, 0.0007271766662597656, -0.03521728515625, -0.046142578125, 0.01419830322265625, -0.04736328125, 0.00919342041015625, -0.03314208984375, -0.005207061767578125, 0.051025390625, 0.00411224365234375, -0.0216217041015625, -0.012847900390625, 0.04345703125, 0.0185546875, -0.0306396484375, -0.01111602783203125, -0.00028204917907714844, 0.004344940185546875, -0.01264190673828125, 0.038055419921875, -0.0172576904296875, 0.0016384124755859375, 0.04791259765625, -0.038726806640625, 0.020751953125, -0.0202789306640625, 0.060302734375, -0.019012451171875, -0.044586181640625, 0.05401611328125, -0.029327392578125, -0.0445556640625, 0.035308837890625, 0.0034313201904296875, -0.031585693359375, 0.0250396728515625, 0.044677734375, -0.00498199462890625, -0.0043487548828125, -0.035003662109375, 0.01148223876953125, 0.007167816162109375, 0.02557373046875, 0.00589752197265625, 0.037109375, -0.00691986083984375, -0.0247955322265625, -0.042388916015625, 0.0163116455078125, -0.00634765625, -0.0162506103515625, 0.0010356903076171875, 0.06744384765625, -0.034332275390625, 0.0189361572265625, 0.01329803466796875, -0.0117340087890625, 0.08587646484375, -0.01493072509765625, -0.0498046875, -0.005634307861328125, -0.007503509521484375, 0.009490966796875, 0.04168701171875, -0.01385498046875, 0.0254364013671875, 0.0234375, -0.0152130126953125, -0.011932373046875, 0.003875732421875, -0.047393798828125, -0.041748046875, 0.036346435546875, 0.0264739990234375, -0.00014603137969970703, 0.02081298828125, 0.06109619140625, -0.01433563232421875, 0.061920166015625, -0.02423095703125, -0.0174102783203125, -0.0099639892578125, 0.017242431640625, 0.0267333984375, -0.0177154541015625, 0.016326904296875, -0.01395416259765625, 0.04205322265625, -0.053314208984375, -0.0035076141357421875, 0.0045318603515625, 0.0305328369140625, 0.002193450927734375, -0.0316162109375, 0.053985595703125, 0.01064300537109375, -0.0280914306640625, 0.033905029296875, 0.040618896484375, 0.005550384521484375, -0.06658935546875, -0.055419921875, 0.046417236328125, 0.044464111328125, -0.0012607574462890625, 0.026824951171875, -0.01611328125, 0.01092529296875, 0.0129241943359375, -0.0057220458984375, -0.020721435546875, -0.00858306884765625, -0.06207275390625, -0.0160064697265625, 0.037139892578125, 0.0231475830078125, 0.00507354736328125, -0.020172119140625, -0.045501708984375, 0.0250701904296875, -0.027587890625, 0.026611328125, -0.04248046875, 0.0240478515625, -0.0276031494140625, 0.0110015869140625, 0.056427001953125, 0.03466796875, -0.030242919921875, -0.02618408203125, -0.0400390625, -0.005207061767578125, 0.01220703125, -0.01383209228515625, -0.0117645263671875, -0.01690673828125, 0.0308380126953125, 0.03839111328125, -0.0244903564453125, -0.07623291015625, -0.029144287109375, -0.0013017654418945312, 0.046661376953125, 0.0275115966796875, -0.01580810546875, 0.05914306640625, -0.026031494140625, 0.045074462890625, -0.008026123046875, 0.0242156982421875, -0.005596160888671875, -0.004344940185546875, 0.0098419189453125, -0.056884765625, -0.0286712646484375, 0.0108795166015625, -0.0294342041015625, -0.006717681884765625, -0.01474761962890625, -0.01436614990234375, 0.0230865478515625, -0.046966552734375, -0.006366729736328125, -0.0223846435546875, 0.06298828125, -0.06427001953125, 0.0303497314453125, -0.017120361328125, -0.00930023193359375, -0.00539398193359375, -0.0090484619140625, -0.004177093505859375, 0.005313873291015625, 0.0005221366882324219, -0.0153656005859375, -0.00817108154296875, -0.027130126953125, 0.02880859375, 0.037994384765625, -0.0145111083984375, 0.0296478271484375, -0.0211639404296875, 0.002468109130859375, 0.022003173828125, -0.0175018310546875, 0.005222320556640625, 0.002002716064453125, 0.06341552734375, 0.00377655029296875, -0.01528167724609375, 0.05462646484375, -0.03936767578125, 0.0057373046875, 0.05853271484375, 0.04132080078125, -0.0751953125, 0.017669677734375, 0.00970458984375, 0.00482177734375, -0.01192474365234375, -0.01264190673828125, -0.0195770263671875, -0.04290771484375, 0.02996826171875, 0.018646240234375, -0.0216522216796875, 0.00693511962890625, 0.0052032470703125, -0.01160430908203125, -0.0158843994140625, -0.0009927749633789062, -0.007465362548828125, -0.029266357421875, 0.0184326171875, 0.0229034423828125, -0.019195556640625, 0.018768310546875, 0.05010986328125, -0.02325439453125, -0.004444122314453125, -0.0400390625, -0.01245880126953125, 0.006687164306640625, -0.04815673828125, 0.031341552734375, 0.0004107952117919922, 0.0303497314453125, 0.050689697265625, -0.01229095458984375, 0.0290374755859375, 0.0092926025390625, -0.0006136894226074219, -0.02362060546875, -0.02801513671875, 0.0142669677734375, 0.04388427734375, -0.032379150390625, 0.025543212890625, -0.0021228790283203125, -0.02423095703125, -0.0108795166015625, -0.06097412109375, 0.04083251953125, -0.035064697265625, 0.01708984375, 0.0201416015625, 0.00179290771484375, -0.0005922317504882812, -0.028350830078125, 0.0489501953125, -0.026123046875, 0.0221099853515625, -0.0205078125, 0.0166778564453125, -0.02392578125, -0.0445556640625, -0.020660400390625, 0.057525634765625, 0.00738525390625, -0.0013170242309570312, 0.03765869140625, 0.0195159912109375, -0.03363037109375, 0.019866943359375, -0.057830810546875, 0.09228515625, 0.003955841064453125, 0.053619384765625, -0.052825927734375, 0.002910614013671875, 0.030059814453125, 0.01025390625, 0.01209259033203125, 0.002979278564453125, -0.026031494140625, 0.0132293701171875, 0.06207275390625, 0.03253173828125, 0.0182647705078125, 0.0312347412109375, 0.0025196075439453125, 0.040771484375, 0.08074951171875, -0.05328369140625, 0.0174407958984375, 0.003849029541015625, -0.0020904541015625, 0.010498046875, 0.02020263671875, 0.019317626953125, -0.01253509521484375, 0.04248046875, -0.0341796875, 0.006992340087890625, 0.031524658203125, 0.03155517578125, 0.006320953369140625, 0.0255126953125, 0.0406494140625, -0.08966064453125, -0.00984954833984375, -0.031524658203125, 0.039306640625, 0.027099609375, 0.01263427734375, -0.004123687744140625, -0.00862884521484375, 0.050262451171875, -0.0160369873046875, 0.0021648406982421875, 0.0268402099609375, -0.03277587890625, 0.0501708984375, 0.026947021484375, 0.03076171875, -0.0259552001953125, 0.0026397705078125, 0.057830810546875, 0.0694580078125, -0.0364990234375, -0.062164306640625, -0.00045680999755859375, -0.0152587890625, -0.002895355224609375, 0.01169586181640625, -0.0195465087890625, 0.02642822265625, 0.07354736328125, -0.0172882080078125, 0.0217437744140625, -0.001850128173828125, -0.0265655517578125, -0.0272979736328125, 0.0007691383361816406, 0.042022705078125, 0.04022216796875, 0.009063720703125, -0.0162811279296875, -0.01349639892578125, 0.0287933349609375, 0.0005354881286621094, 0.00696563720703125, -0.08599853515625, 0.002880096435546875, -0.02081298828125, 0.033935546875, -0.0418701171875, 0.02850341796875, -0.045196533203125, -0.053924560546875, -0.0152435302734375, 0.04644775390625, 0.023101806640625, 0.0182037353515625, 0.04840087890625, 0.041412353515625, -0.022125244140625, -0.008819580078125, 0.051239013671875, -0.00763702392578125, -0.052093505859375, -0.01788330078125, 0.0101318359375, 0.047027587890625, 0.0184478759765625, 0.0150604248046875, 0.049591064453125, 0.004055023193359375, -0.00800323486328125, 0.0030517578125, -0.0038166046142578125, -0.032745361328125, 0.05096435546875, 0.003261566162109375, 0.07733154296875, 0.0205230712890625, -0.060516357421875, -0.0101776123046875, -0.036590576171875, -0.01451873779296875, 0.0286102294921875, 0.0428466796875, 0.004962921142578125, 0.0163726806640625, 0.017425537109375, -0.0321044921875, 0.002483367919921875, 0.0198974609375, 0.006439208984375, -0.0178375244140625, 0.0036106109619140625, -0.0169830322265625, -0.069580078125, -0.026153564453125, -0.01995849609375, 0.0162200927734375, 0.00033593177795410156, 0.048736572265625, 0.01474761962890625, 0.0076446533203125, -0.0035552978515625, -0.00807952880859375, 0.020294189453125, 0.0035915374755859375, 0.002323150634765625, 0.0017299652099609375, -0.0157470703125, -0.01090240478515625, 0.0218505859375, 0.0074920654296875, 0.030029296875, -0.027374267578125, -0.007495880126953125, -0.037872314453125, 0.018585205078125, 0.0093994140625, 0.0062713623046875, -0.0321044921875, -0.017242431640625, 0.018798828125, 0.00753021240234375, 0.002231597900390625, -0.0198974609375, -0.02447509765625, 0.0154876708984375, -0.033355712890625, -0.0640869140625, 0.043914794921875, -0.08343505859375, 0.047882080078125, 0.034423828125, 0.0025043487548828125, 0.061798095703125, -0.032135009765625, -0.03948974609375, -0.01143646240234375, 0.004180908203125, -0.0889892578125, -0.0094757080078125, 0.0033512115478515625, -0.037078857421875, -0.045562744140625, 0.02606201171875, 0.02545166015625, -0.005641937255859375, -0.07427978515625, 0.016021728515625, -0.0484619140625, -0.0138397216796875, -0.034637451171875, -0.00865936279296875, -0.020050048828125, -0.004451751708984375, 0.00286865234375, -0.057861328125, -0.0224151611328125, 0.0226287841796875, 0.0225830078125, -0.0027217864990234375, -0.06964111328125, 0.05450439453125, -0.03759765625, 0.008636474609375, -0.02337646484375, 0.00478363037109375, 0.0048675537109375, 0.03759765625, -0.0254669189453125, 0.01263427734375, -0.0183258056640625, -0.025482177734375, 0.0025386810302734375, -0.0095367431640625, 0.020477294921875, 0.0021457672119140625, -0.0162200927734375, -0.02545166015625, -0.0261993408203125, 0.01377105712890625, -0.0168304443359375, -0.005939483642578125, 0.0146026611328125, -0.0030841827392578125, -0.0306854248046875, -0.05841064453125, 0.030914306640625, -0.05908203125, -0.0013322830200195312, 0.031707763671875, 0.01318359375, 0.040069580078125, -0.016845703125, -0.08441162109375, 0.04296875, -0.004642486572265625, -0.03558349609375, -0.0148468017578125, -0.0041351318359375, 0.01425933837890625, -0.0411376953125, -0.013427734375, 0.0107879638671875, -0.0290374755859375, 0.00640869140625, 0.0233001708984375, -0.01113128662109375, 0.0128936767578125, 0.048187255859375, -0.07550048828125, 0.0338134765625, -0.0007925033569335938, -0.00014221668243408203, -0.03045654296875, 0.02081298828125, -0.02154541015625, 0.0295867919921875, -0.04071044921875, -0.004337310791015625, -0.0152435302734375, 0.0020751953125, -0.0074310302734375, 0.007114410400390625, -0.01763916015625, -0.0005459785461425781, 0.06951904296875, 0.0294189453125, 0.0170135498046875, -0.0238189697265625, -0.0266571044921875, -0.00335693359375, 0.0018291473388671875, -0.035552978515625, 0.015899658203125, -0.04443359375, -0.01253509521484375, -0.0261688232421875, -0.024932861328125, 0.006412506103515625, -0.03466796875, -0.0458984375, 0.01419830322265625, -0.017425537109375, -0.00927734375, -0.0133819580078125, 0.008331298828125, 0.00910186767578125, -0.0218505859375, -0.0280303955078125, -0.0186920166015625, 0.025726318359375, -0.0272064208984375, -0.05780029296875, 0.01806640625, 0.050018310546875, -0.006252288818359375, -0.01812744140625, 0.03558349609375, -0.053924560546875, 0.0271148681640625, 0.016510009765625, 0.004474639892578125, 0.035614013671875, -0.00765228271484375, 0.04241943359375, 0.0140228271484375, 0.0118255615234375, 0.003448486328125, 0.01995849609375, 0.0063629150390625, -0.0298309326171875, -0.007106781005859375, 0.039093017578125, 0.0116729736328125, -0.02862548828125, 0.04180908203125, -0.051361083984375, 0.01522064208984375, 0.00482177734375, 0.036712646484375, -0.005779266357421875, 0.0005474090576171875, 0.049713134765625, 0.004077911376953125, 0.007625579833984375 ]
808f8c3b76216898099893af9de529e676615167
Wordpress Stackexchange Q: get_the_title($postID) OR get_the_title()? I would like to know which could be more performant between these two approaches of getting data of a post * *To use a loop after a WP_Query($aConditions) and use functions like get_the_title() ... and all the similar functions without passing any parameters *To call get_the_title($postID) with the parameter outside the loop A: They're both doing the same thing. If you don't pass a post ID, get_the_title() will just use the current post and go about it's business. The performance difference between passing a postID and not passing a postID is, if anything at all, is extremely minor. get_the_title() Codex get_the_title() Core Function
Q: get_the_title($postID) OR get_the_title()? I would like to know which could be more performant between these two approaches of getting data of a post * *To use a loop after a WP_Query($aConditions) and use functions like get_the_title() ... and all the similar functions without passing any parameters *To call get_the_title($postID) with the parameter outside the loop A: They're both doing the same thing. If you don't pass a post ID, get_the_title() will just use the current post and go about it's business. The performance difference between passing a postID and not passing a postID is, if anything at all, is extremely minor. get_the_title() Codex get_the_title() Core Function
wordpress
{ "language": "en", "length": 107, "provenance": "stackexchange_00019.jsonl.gz:444095", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140751" }
[ 0.04327392578125, -0.00937652587890625, 0.05218505859375, -0.0003306865692138672, -0.01372528076171875, -0.01561737060546875, 0.0650634765625, -0.039337158203125, -0.0113677978515625, 0.0171051025390625, -0.030517578125, 0.0075531005859375, -0.034454345703125, -0.0281829833984375, -0.0013599395751953125, -0.055145263671875, 0.055084228515625, -0.059783935546875, 0.037506103515625, -0.007781982421875, 0.0179443359375, 0.0298004150390625, 0.062103271484375, 0.0650634765625, 0.024200439453125, -0.0728759765625, 0.038604736328125, -0.01071929931640625, 0.01522064208984375, -0.0115509033203125, 0.026214599609375, 0.01136016845703125, -0.0000941157341003418, 0.0170745849609375, 0.0131378173828125, -0.0063323974609375, 0.0238494873046875, -0.0053558349609375, 0.035491943359375, 0.006259918212890625, -0.005596160888671875, 0.019805908203125, -0.022216796875, 0.0191497802734375, -0.03924560546875, -0.0157470703125, -0.0174560546875, -0.021697998046875, 0.0125732421875, -0.012420654296875, 0.034820556640625, 0.003185272216796875, 0.04229736328125, 0.00566864013671875, -0.0007920265197753906, 0.033843994140625, 0.0252227783203125, -0.0166473388671875, 0.05523681640625, -0.07562255859375, -0.09185791015625, -0.034881591796875, 0.05865478515625, -0.0116424560546875, -0.0006575584411621094, 0.042144775390625, 0.038970947265625, -0.01227569580078125, -0.01502227783203125, -0.0211181640625, -0.007160186767578125, -0.025787353515625, -0.0011501312255859375, -0.00733184814453125, -0.0302581787109375, -0.030181884765625, 0.010009765625, -0.0313720703125, -0.0006017684936523438, 0.0034618377685546875, -0.06097412109375, -0.02337646484375, -0.08935546875, 0.00550079345703125, 0.006145477294921875, 0.0440673828125, -0.0233001708984375, -0.01479339599609375, -0.00861358642578125, -0.048919677734375, -0.020294189453125, -0.024993896484375, -0.01629638671875, -0.0026531219482421875, -0.0204925537109375, -0.042510986328125, 0.0086822509765625, 0.04547119140625, -0.018280029296875, 0.0032596588134765625, -0.0145111083984375, -0.016876220703125, -0.0265045166015625, -0.0176544189453125, 0.00446319580078125, 0.0133056640625, -0.00010651350021362305, 0.0188446044921875, 0.03662109375, 0.032989501953125, -0.00555419921875, 0.01537322998046875, 0.0063018798828125, -0.0173187255859375, -0.0229339599609375, 0.0249176025390625, -0.01306915283203125, -0.00641632080078125, 0.006412506103515625, 0.00774383544921875, 0.029266357421875, 0.005035400390625, 0.004421234130859375, 0.029144287109375, -0.026275634765625, -0.0193634033203125, -0.031829833984375, -0.0032024383544921875, -0.046234130859375, 0.029510498046875, -0.020172119140625, -0.0010786056518554688, 0.0609130859375, 0.03387451171875, -0.000888824462890625, -0.0291595458984375, -0.035186767578125, 0.004817962646484375, 0.00249481201171875, -0.026092529296875, 0.0145416259765625, -0.005084991455078125, 0.0108795166015625, 0.0168304443359375, -0.01134490966796875, 0.0044708251953125, 0.01433563232421875, 0.00600433349609375, -0.00669097900390625, -0.0728759765625, 0.009307861328125, 0.0045318603515625, -0.0090179443359375, -0.0117950439453125, 0.0216522216796875, -0.02020263671875, -0.0487060546875, -0.004184722900390625, 0.045562744140625, 0.004344940185546875, 0.049560546875, -0.01201629638671875, -0.05279541015625, 0.0030975341796875, -0.0293731689453125, -0.02130126953125, 0.0186309814453125, -0.0017957687377929688, 0.007610321044921875, 0.033416748046875, 0.052886962890625, -0.035003662109375, -0.0299835205078125, -0.0091552734375, -0.0111846923828125, -0.0030384063720703125, -0.006072998046875, -0.035614013671875, 0.047332763671875, -0.0269927978515625, -0.07861328125, -0.05078125, 0.0020008087158203125, -0.028900146484375, -0.0309295654296875, 0.008575439453125, 0.025054931640625, 0.0340576171875, 0.005825042724609375, 0.025909423828125, 0.0265655517578125, 0.025299072265625, -0.0284576416015625, 0.01445770263671875, -0.0020599365234375, -0.01019287109375, -0.0206451416015625, -0.0066070556640625, 0.00335693359375, -0.017608642578125, -0.00514984130859375, -0.003147125244140625, -0.00632476806640625, 0.0306854248046875, -0.02581787109375, -0.0364990234375, 0.00826263427734375, 0.0175628662109375, 0.00429534912109375, 0.033966064453125, 0.01300811767578125, 0.00958251953125, -0.026702880859375, -0.00850677490234375, -0.01514434814453125, 0.003818511962890625, -0.049560546875, -0.055572509765625, -0.00666046142578125, -0.01061248779296875, -0.0026531219482421875, 0.0164337158203125, -0.0224151611328125, 0.0274200439453125, 0.08843994140625, -0.002197265625, 0.01375579833984375, -0.0038967132568359375, 0.09197998046875, 0.017425537109375, -0.0265045166015625, -0.0018491744995117188, 0.048370361328125, 0.07464599609375, 0.003192901611328125, -0.022491455078125, -0.00203704833984375, -0.0924072265625, 0.0184173583984375, 0.06292724609375, 0.032745361328125, 0.0255889892578125, -0.011566162109375, 0.00954437255859375, 0.029022216796875, -0.015594482421875, 0.0169525146484375, -0.01517486572265625, 0.03155517578125, 0.043975830078125, -0.0051116943359375, 0.0111846923828125, 0.04144287109375, 0.02777099609375, 0.00394439697265625, 0.053436279296875, -0.01136016845703125, -0.00891876220703125, 0.0031528472900390625, -0.01526641845703125, -0.0082244873046875, -0.023773193359375, 0.0128021240234375, -0.00441741943359375, -0.0084686279296875, 0.031158447265625, 0.00998687744140625, 0.025390625, -0.01194000244140625, 0.01154327392578125, 0.012054443359375, 0.007724761962890625, 0.0055389404296875, 0.033050537109375, -0.007587432861328125, -0.0008997917175292969, -0.0174102783203125, -0.002292633056640625, -0.004734039306640625, -0.0078887939453125, -0.0090789794921875, 0.02227783203125, -0.01163482666015625, -0.016754150390625, -0.007640838623046875, -0.0194549560546875, 0.005939483642578125, 0.00691986083984375, 0.014404296875, 0.0140380859375, 0.03912353515625, 0.0187530517578125, -0.0330810546875, 0.03912353515625, -0.0311279296875, -0.009552001953125, 0.0181121826171875, -0.04248046875, 0.02691650390625, -0.049530029296875, 0.02911376953125, 0.04315185546875, 0.00455474853515625, -0.0310211181640625, 0.0134429931640625, -0.005176544189453125, 0.039642333984375, -0.002471923828125, -0.0149993896484375, 0.01503753662109375, -0.07818603515625, -0.01378631591796875, 0.02166748046875, 0.13134765625, -0.029693603515625, -0.0562744140625, 0.0196990966796875, 0.04913330078125, -0.0784912109375, -0.0867919921875, 0.031494140625, -0.09417724609375, -0.01052093505859375, -0.03070068359375, -0.044342041015625, -0.00420379638671875, -0.0030155181884765625, -0.0059661865234375, 0.0252532958984375, -0.0240936279296875, -0.08746337890625, -0.043853759765625, -0.0982666015625, -0.0031833648681640625, -0.01280975341796875, 0.04132080078125, 0.002925872802734375, 0.0120086669921875, 0.00909423828125, -0.023345947265625, 0.0199432373046875, 0.0202484130859375, 0.00864410400390625, 0.01233673095703125, 0.032196044921875, -0.020721435546875, 0.00372314453125, 0.00982666015625, -0.039642333984375, 0.034454345703125, -0.021514892578125, -0.0244140625, 0.004116058349609375, 0.04803466796875, 0.054931640625, 0.058074951171875, -0.01174163818359375, 0.09075927734375, 0.07989501953125, 0.01444244384765625, -0.02703857421875, -0.01201629638671875, -0.052978515625, 0.0374755859375, 0.04400634765625, 0.00463104248046875, 0.0062408447265625, 0.0008540153503417969, 0.0084991455078125, 0.0015726089477539062, -0.037017822265625, -0.0305633544921875, 0.01366424560546875, 0.0302581787109375, 0.0533447265625, 0.05206298828125, 0.00911712646484375, -0.00852203369140625, 0.034454345703125, -0.0002467632293701172, 0.049774169921875, 0.03277587890625, -0.0210723876953125, -0.03338623046875, -0.01403045654296875, 0.049041748046875, 0.0234527587890625, 0.0120086669921875, -0.021240234375, -0.0361328125, -0.020721435546875, 0.049774169921875, 0.041046142578125, -0.0197296142578125, 0.01557159423828125, 0.02593994140625, -0.066162109375, -0.04437255859375, 0.0007882118225097656, 0.004177093505859375, -0.0416259765625, -0.01273345947265625, -0.054840087890625, 0.01067352294921875, -0.0165863037109375, 0.059295654296875, -0.002552032470703125, -0.036285400390625, 0.0197296142578125, -0.01580810546875, 0.01454925537109375, 0.027099609375, -0.0025081634521484375, 0.0227203369140625, -0.01383209228515625, -0.03204345703125, -0.049560546875, 0.0009446144104003906, 0.0085296630859375, 0.01507568359375, -0.014251708984375, -0.007450103759765625, -0.005245208740234375, 0.0174407958984375, 0.00724029541015625, 0.0152740478515625, 0.01253509521484375, -0.01107025146484375, 0.02203369140625, 0.00775146484375, 0.0003159046173095703, -0.0256805419921875, -0.00775909423828125, -0.030181884765625, -0.05755615234375, 0.00484466552734375, -0.023956298828125, 0.026824951171875, -0.015777587890625, -0.02215576171875, -0.08807373046875, -0.038665771484375, -0.00974273681640625, -0.0247955322265625, -0.01250457763671875, 0.0154266357421875, -0.020111083984375, -0.0726318359375, 0.08184814453125, 0.06439208984375, 0.0008435249328613281, -0.03167724609375, 0.0880126953125, 0.0130157470703125, -0.06756591796875, 0.0113677978515625, -0.038360595703125, 0.02764892578125, -0.050262451171875, 0.023040771484375, 0.0272064208984375, -0.033782958984375, 0.07781982421875, -0.009521484375, -0.00229644775390625, 0.0254364013671875, 0.0212249755859375, 0.005046844482421875, -0.0250244140625, 0.01678466796875, -0.006198883056640625, -0.02081298828125, 0.031829833984375, -0.00954437255859375, -0.026275634765625, -0.007076263427734375, 0.01064300537109375, -0.0099945068359375, 0.036895751953125, -0.010040283203125, -0.0034160614013671875, 0.0196533203125, 0.03369140625, -0.01166534423828125, -0.01180267333984375, 0.0201416015625, -0.042083740234375, -0.0004582405090332031, 0.00533294677734375, -0.0010614395141601562, 0.0221405029296875, 0.01300048828125, 0.023681640625, 0.0416259765625, 0.01739501953125, -0.041046142578125, -0.002532958984375, 0.042572021484375, -0.0140533447265625, -0.0236663818359375, -0.010223388671875, -0.027801513671875, 0.037353515625, 0.0233917236328125, 0.01041412353515625, 0.039337158203125, 0.0263824462890625, 0.0278167724609375, -0.007305145263671875, -0.0247039794921875, 0.036163330078125, -0.023773193359375, -0.004444122314453125, 0.04620361328125, -0.0262908935546875, 0.02081298828125, 0.06683349609375, -0.0025310516357421875, 0.05328369140625, -0.0301055908203125, 0.056732177734375, 0.024749755859375, 0.0137481689453125, 0.00037860870361328125, 0.01702880859375, 0.00507354736328125, 0.00379180908203125, -0.0040283203125, -0.027496337890625, 0.0006995201110839844, 0.0123748779296875, 0.0259246826171875, -0.01065826416015625, -0.0196380615234375, 0.04052734375, -0.00452423095703125, -0.0205841064453125, 0.01788330078125, 0.01483917236328125, 0.0068359375, -0.0207672119140625, 0.009124755859375, 0.035308837890625, 0.04736328125, 0.00457763671875, -0.0278778076171875, -0.00542449951171875, 0.0258636474609375, -0.0264892578125, 0.0099334716796875, 0.0053558349609375, 0.004863739013671875, 0.0116119384765625, -0.043670654296875, -0.026397705078125, 0.049041748046875, 0.0280609130859375, -0.01078033447265625, -0.0111236572265625, 0.0015048980712890625, -0.0009007453918457031, 0.08087158203125, -0.06646728515625, -0.01495361328125, -0.017791748046875, -0.01386260986328125, 0.0782470703125, 0.049835205078125, 0.02410888671875, 0.01473236083984375, -0.04779052734375, -0.01047515869140625, -0.0574951171875, -0.059783935546875, -0.042938232421875, -0.024505615234375, -0.0394287109375, -0.00414276123046875, -0.016082763671875, 0.035491943359375, 0.01512908935546875, 0.042633056640625, -0.03192138671875, 0.0168304443359375, -0.040863037109375, 0.04736328125, 0.035919189453125, 0.040283203125, -0.0187225341796875, -0.0213165283203125, -0.0219268798828125, 0.00494384765625, -0.01032257080078125, -0.042510986328125, -0.01209259033203125, 0.0024890899658203125, 0.0299835205078125, 0.007030487060546875, 0.001628875732421875, 0.0018558502197265625, 0.01517486572265625, 0.0014791488647460938, -0.0008192062377929688, -0.00753021240234375, 0.01904296875, 0.003032684326171875, -0.033843994140625, 0.052978515625, -0.006694793701171875, 0.014678955078125, 0.01099395751953125, -0.002788543701171875, 0.0062713623046875, 0.002056121826171875, 0.0012731552124023438, 0.0018787384033203125, 0.0075836181640625, 0.025146484375, 0.07574462890625, -0.01311492919921875, 0.0223541259765625, 0.0263214111328125, -0.01153564453125, 0.0002880096435546875, -0.0025882720947265625, 0.0148468017578125, -0.029937744140625, 0.06317138671875, 0.020294189453125, -0.03106689453125, 0.05865478515625, -0.040863037109375, 0.00673675537109375, 0.0012826919555664062, 0.060394287109375, -0.019927978515625, 0.00592041015625, 0.03997802734375, -0.01351165771484375, -0.026580810546875, -0.022674560546875, 0.001499176025390625, -0.05499267578125, 0.052398681640625, 0.0131988525390625, -0.016510009765625, 0.0152130126953125, -0.0260009765625, 0.00675201416015625, -0.0296783447265625, 0.048187255859375, -0.00434112548828125, -0.05169677734375, 0.0243988037109375, 0.01488494873046875, 0.0117034912109375, -0.02593994140625, -0.0164794921875, 0.0043182373046875, -0.0552978515625, -0.058624267578125, 0.0025424957275390625, 0.015899658203125, -0.0122528076171875, -0.005176544189453125, 0.038360595703125, 0.0214691162109375, 0.048065185546875, 0.0071563720703125, 0.00376129150390625, 0.0215911865234375, -0.018096923828125, -0.050384521484375, -0.0106201171875, -0.0135345458984375, 0.02099609375, -0.02410888671875, 0.0240325927734375, -0.03411865234375, 0.0045318603515625, -0.0124969482421875, -0.011016845703125, 0.068115234375, -0.0181427001953125, -0.0355224609375, 0.018280029296875, 0.008209228515625, 0.00152587890625, -0.003986358642578125, 0.06964111328125, -0.01849365234375, 0.02294921875, 0.007160186767578125, 0.0128326416015625, -0.027587890625, -0.0014495849609375, -0.057647705078125, 0.0950927734375, -0.006587982177734375, 0.02301025390625, 0.00867462158203125, 0.019775390625, -0.0355224609375, -0.00885009765625, -0.031463623046875, 0.0311126708984375, -0.03936767578125, 0.00823974609375, -0.027099609375, 0.006038665771484375, -0.01151275634765625, -0.0112457275390625, 0.05987548828125, 0.0107574462890625, -0.0364990234375, -0.01873779296875, 0.03875732421875, 0.0596923828125, 0.0179290771484375, 0.00978851318359375, 0.030548095703125, 0.08465576171875, 0.0523681640625, -0.06268310546875, 0.00937652587890625, 0.0040283203125, 0.004299163818359375, 0.06024169921875, 0.01268768310546875, -0.018035888671875, 0.01113128662109375, 0.013763427734375, -0.049835205078125, -0.01141357421875, 0.0260162353515625, 0.006351470947265625, 0.01299285888671875, 0.0433349609375, 0.03875732421875, -0.053009033203125, 0.0196685791015625, -0.0494384765625, 0.061859130859375, -0.0003197193145751953, 0.037689208984375, 0.041473388671875, 0.026214599609375, 0.06329345703125, 0.00991058349609375, 0.024627685546875, 0.00446319580078125, 0.0130157470703125, 0.053009033203125, 0.01885986328125, 0.003932952880859375, -0.073974609375, -0.029205322265625, 0.047271728515625, 0.07781982421875, -0.04351806640625, 0.04010009765625, 0.018707275390625, -0.01264190673828125, -0.0002830028533935547, -0.068603515625, 0.003963470458984375, 0.0325927734375, -0.0137481689453125, -0.006450653076171875, 0.00007939338684082031, 0.033447265625, -0.01107025146484375, -0.0003981590270996094, -0.005523681640625, 0.0233306884765625, 0.01398468017578125, -0.0310821533203125, 0.032073974609375, 0.01065826416015625, 0.055938720703125, 0.0140380859375, 0.076416015625, -0.055633544921875, -0.0247650146484375, -0.0020046234130859375, 0.05303955078125, -0.00887298583984375, 0.005588531494140625, -0.01959228515625, -0.0440673828125, -0.03216552734375, 0.0297698974609375, 0.06268310546875, 0.032745361328125, 0.06329345703125, 0.04437255859375, 0.00738525390625, 0.01216888427734375, 0.03350830078125, 0.006500244140625, 0.002216339111328125, 0.0050506591796875, -0.006237030029296875, -0.00020587444305419922, -0.0236968994140625, -0.0223846435546875, 0.02642822265625, 0.004383087158203125, -0.0042877197265625, 0.0254974365234375, 0.0040130615234375, -0.0394287109375, -0.007404327392578125, 0.0291595458984375, 0.031951904296875, 0.006927490234375, -0.03179931640625, 0.0151519775390625, 0.017913818359375, -0.07012939453125, -0.0054931640625, 0.02655029296875, -0.0487060546875, 0.048248291015625, -0.017242431640625, 0.01111602783203125, -0.00539398193359375, 0.01276397705078125, 0.0045318603515625, 0.031524658203125, 0.0328369140625, 0.0238494873046875, -0.082275390625, -0.0313720703125, -0.0294952392578125, 0.01470947265625, 0.0394287109375, 0.0100555419921875, 0.02178955078125, 0.03814697265625, -0.0066986083984375, 0.01116180419921875, -0.024322509765625, 0.00846099853515625, 0.0019130706787109375, -0.0121917724609375, 0.0013933181762695312, -0.00035190582275390625, -0.00469970703125, 0.0253448486328125, 0.049774169921875, -0.003826141357421875, 0.02264404296875, -0.00812530517578125, 0.0123748779296875, -0.043853759765625, 0.029449462890625, -0.00841522216796875, 0.02142333984375, 0.0246734619140625, -0.01220703125, 0.052520751953125, -0.006008148193359375, -0.03228759765625, -0.0242767333984375, 0.01239013671875, -0.0233917236328125, 0.0311279296875, 0.018707275390625, 0.033416748046875, 0.02496337890625, -0.031707763671875, 0.0201263427734375, 0.00798797607421875, -0.003875732421875, 0.043670654296875, 0.01473236083984375, -0.00415802001953125, 0.04010009765625, 0.0167083740234375, -0.048858642578125, -0.038909912109375, 0.04931640625, 0.0020923614501953125, 0.0162353515625, -0.056243896484375, 0.01468658447265625, -0.0216827392578125, -0.029510498046875, -0.010894775390625, -0.0482177734375, -0.0286407470703125, -0.0012083053588867188, -0.034454345703125, -0.019134521484375, 0.00830078125, -0.035430908203125, -0.005401611328125, -0.0229339599609375, 0.0312347412109375, -0.0031452178955078125, -0.03643798828125, -0.0723876953125, -0.0287322998046875, -0.005825042724609375, 0.0117340087890625, 0.03497314453125, -0.01039886474609375, -0.0092926025390625, -0.027130126953125, 0.0146942138671875, -0.0087890625, 0.0090789794921875, 0.0160980224609375, -0.033966064453125, -0.0250091552734375, 0.04022216796875, 0.0299530029296875, 0.067138671875, -0.0217132568359375, -0.0285797119140625, -0.01192474365234375, 0.03253173828125, -0.0236968994140625, -0.06170654296875, 0.0236358642578125, -0.059844970703125, -0.0103912353515625, -0.019866943359375, 0.0104827880859375, 0.0115966796875, -0.007572174072265625, 0.0287322998046875, 0.052398681640625, 0.00696563720703125, 0.00588226318359375, -0.03826904296875, -0.008941650390625, 0.0017957687377929688, -0.007221221923828125, -0.005523681640625, -0.035552978515625, -0.040191650390625, 0.0178680419921875, 0.033538818359375, 0.018524169921875, 0.019256591796875, 0.02593994140625, -0.0472412109375, 0.016937255859375, -0.0015478134155273438, 0.0178985595703125, -0.0182952880859375, -0.0192108154296875, -0.003833770751953125, -0.015655517578125, -0.056732177734375, 0.0301055908203125, 0.01319122314453125, 0.06854248046875, -0.06280517578125, -0.034271240234375, 0.0284576416015625, 0.01313018798828125, 0.052947998046875, 0.040252685546875, -0.01214599609375, -0.0455322265625, 0.0011548995971679688, 0.016204833984375, -0.030242919921875, -0.006256103515625, 0.028900146484375, -0.052520751953125, -0.01363372802734375, -0.00870513916015625, -0.028564453125, 0.0108184814453125, 0.0098114013671875, -0.0280303955078125, -0.00525665283203125, -0.01873779296875, -0.024383544921875, -0.035430908203125, -0.017608642578125, 0.01454925537109375, -0.01904296875, -0.02752685546875, 0.0121002197265625, 0.0140838623046875, -0.0347900390625, 0.01377105712890625, 0.0338134765625, 0.032196044921875, -0.0132293701171875, 0.0120697021484375, 0.0226898193359375, 0.0245208740234375, -0.020172119140625, -0.0199737548828125, -0.0020885467529296875, 0.024322509765625, 0.006862640380859375, 0.03656005859375, -0.00844573974609375, 0.038543701171875, 0.00005751848220825195, 0.03118896484375, -0.00653076171875, 0.09942626953125, 0.00958251953125, 0.04632568359375, -0.00189208984375, -0.014312744140625, 0.02056884765625, -0.0193023681640625, 0.002178192138671875, -0.00600433349609375, 0.013153076171875, -0.043121337890625, 0.0194549560546875, -0.021484375, 0.006145477294921875, 0.01015472412109375 ]
724fb34bc907e8b14164fb8482380435cbb53c72
Wordpress Stackexchange Q: Get current post id in functions.php I have a wp_localize_script() function in my functions.php where I need to push the current post ID of the current post to a jQuery file. So I was wondering how you can get the current post ID of a post in my functions.php. These are both not working: global $post; $post_id = $post->ID; global $wp_query; $post_id = $wp_query->get_queried_object_id(); A: If you hook your localize script function to wp_enqueue_scripts, then you will have access to the global $post variable. As long as you pick a hook at or after 'wp' you should have access to the global $post. <?php add_action('wp_enqueue_scripts', 'YOUR_NAME_scripts'); function YOUR_NAME_scripts() { wp_enqueue_script('YOUR_NAME-js'); global $post; $params = array( 'site_url' => site_url(), 'admin_ajax_url' => admin_url('admin-ajax.php'), 'post_id' => $post->ID ); wp_localize_script( 'jquery', 'YOUR_NAME', $params ); }
Q: Get current post id in functions.php I have a wp_localize_script() function in my functions.php where I need to push the current post ID of the current post to a jQuery file. So I was wondering how you can get the current post ID of a post in my functions.php. These are both not working: global $post; $post_id = $post->ID; global $wp_query; $post_id = $wp_query->get_queried_object_id(); A: If you hook your localize script function to wp_enqueue_scripts, then you will have access to the global $post variable. As long as you pick a hook at or after 'wp' you should have access to the global $post. <?php add_action('wp_enqueue_scripts', 'YOUR_NAME_scripts'); function YOUR_NAME_scripts() { wp_enqueue_script('YOUR_NAME-js'); global $post; $params = array( 'site_url' => site_url(), 'admin_ajax_url' => admin_url('admin-ajax.php'), 'post_id' => $post->ID ); wp_localize_script( 'jquery', 'YOUR_NAME', $params ); }
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:444097", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140753" }
[ 0.045654296875, -0.000980377197265625, -0.001155853271484375, -0.0328369140625, 0.0230560302734375, -0.01470184326171875, 0.0176849365234375, -0.004169464111328125, -0.019287109375, 0.0150604248046875, -0.01617431640625, 0.0100860595703125, -0.04095458984375, -0.017974853515625, -0.0007548332214355469, -0.0264892578125, 0.06280517578125, -0.062469482421875, 0.00992584228515625, -0.0081939697265625, -0.009735107421875, 0.0204010009765625, 0.06390380859375, 0.07366943359375, 0.0228729248046875, -0.03887939453125, 0.06524658203125, -0.0010156631469726562, 0.0039520263671875, -0.0098876953125, 0.0276947021484375, -0.003917694091796875, 0.01285552978515625, -0.019378662109375, 0.0164642333984375, 0.0161590576171875, 0.030059814453125, -0.0032482147216796875, 0.0467529296875, 0.00098419189453125, 0.0218658447265625, -0.0255279541015625, -0.03302001953125, 0.037200927734375, -0.041595458984375, -0.048187255859375, 0.0243988037109375, -0.0026645660400390625, 0.001789093017578125, 0.070068359375, 0.01885986328125, 0.03192138671875, 0.0117340087890625, 0.025909423828125, 0.007293701171875, 0.005580902099609375, -0.027008056640625, -0.021392822265625, 0.047454833984375, 0.07073974609375, -0.029571533203125, -0.042938232421875, 0.01490020751953125, -0.0909423828125, -0.0224151611328125, 0.03759765625, 0.0511474609375, 0.01491546630859375, -0.032745361328125, -0.02740478515625, 0.004467010498046875, -0.0166168212890625, 0.01155853271484375, 0.01155853271484375, -0.027496337890625, -0.060150146484375, 0.034637451171875, -0.02655029296875, -0.0083160400390625, 0.0129852294921875, -0.0175933837890625, -0.0289154052734375, -0.03607177734375, 0.039703369140625, -0.037078857421875, 0.041015625, -0.02703857421875, -0.01470947265625, -0.048004150390625, -0.05084228515625, -0.035552978515625, -0.041412353515625, -0.06866455078125, -0.01169586181640625, -0.01007843017578125, -0.01348876953125, 0.06268310546875, 0.073486328125, -0.0316162109375, 0.005458831787109375, -0.0089569091796875, -0.04010009765625, 0.03070068359375, -0.0401611328125, -0.003253936767578125, 0.044158935546875, 0.040435791015625, 0.0246124267578125, 0.01800537109375, -0.01155853271484375, -0.004673004150390625, -0.004970550537109375, 0.0193939208984375, 0.018096923828125, -0.0292205810546875, -0.005901336669921875, -0.03173828125, -0.002513885498046875, -0.01458740234375, -0.002674102783203125, -0.00045299530029296875, 0.01117706298828125, -0.0196990966796875, 0.0150909423828125, 0.0204925537109375, -0.0078125, -0.0221710205078125, 0.0169219970703125, -0.0226287841796875, 0.03265380859375, -0.04461669921875, 0.006633758544921875, 0.10302734375, 0.02545166015625, 0.00934600830078125, -0.045013427734375, 0.00821685791015625, -0.0293121337890625, 0.00846099853515625, 0.001956939697265625, -0.0010433197021484375, -0.0113677978515625, 0.02313232421875, -0.00994110107421875, -0.019073486328125, 0.0223388671875, 0.01593017578125, 0.0004405975341796875, -0.013580322265625, -0.037445068359375, -0.006259918212890625, -0.019134521484375, 0.027496337890625, 0.0211639404296875, 0.0006189346313476562, -0.00311279296875, 0.0523681640625, -0.045989990234375, 0.0019016265869140625, -0.041107177734375, 0.03240966796875, 0.0005469322204589844, -0.0163116455078125, 0.004650115966796875, -0.01412200927734375, -0.0006251335144042969, -0.0169830322265625, 0.00960540771484375, 0.0275421142578125, 0.0687255859375, -0.0020923614501953125, -0.0050201416015625, -0.0010557174682617188, -0.002197265625, -0.0272064208984375, -0.023468017578125, -0.032928466796875, -0.01715087890625, 0.04046630859375, 0.0010976791381835938, -0.016937255859375, -0.02056884765625, 0.0258636474609375, 0.00551605224609375, -0.005279541015625, 0.0181121826171875, 0.045562744140625, 0.06817626953125, -0.01038360595703125, 0.031463623046875, 0.0126800537109375, -0.0102386474609375, -0.0814208984375, 0.023040771484375, -0.0271759033203125, 0.0204315185546875, -0.0088653564453125, 0.031341552734375, -0.0216522216796875, -0.00426483154296875, 0.0044403076171875, -0.0098114013671875, 0.019622802734375, 0.007312774658203125, -0.059844970703125, 0.00975799560546875, -0.0223846435546875, 0.04754638671875, 0.01378631591796875, -0.022857666015625, 0.0164031982421875, -0.0010776519775390625, 0.005863189697265625, -0.057647705078125, -0.0606689453125, 0.0274658203125, -0.038055419921875, 0.01251220703125, -0.0293426513671875, 0.03570556640625, -0.054656982421875, -0.01479339599609375, -0.04388427734375, -0.01276397705078125, 0.03387451171875, 0.001644134521484375, -0.0196075439453125, -0.0230560302734375, 0.051666259765625, -0.004459381103515625, 0.0141754150390625, 0.02642822265625, -0.006175994873046875, 0.02764892578125, 0.00604248046875, -0.01104736328125, 0.0257720947265625, -0.0428466796875, 0.026519775390625, 0.0247039794921875, 0.037689208984375, 0.0249786376953125, 0.0355224609375, 0.018463134765625, 0.0245819091796875, -0.022705078125, 0.03515625, -0.0350341796875, 0.0200653076171875, 0.062042236328125, -0.0273590087890625, 0.00548553466796875, 0.01320648193359375, -0.052734375, 0.00484466552734375, 0.043792724609375, -0.037841796875, -0.0172119140625, -0.0012683868408203125, 0.01033782958984375, -0.00899505615234375, -0.041412353515625, -0.00994873046875, -0.0309906005859375, 0.042633056640625, 0.00971221923828125, 0.046630859375, 0.044219970703125, -0.0232086181640625, -0.01085662841796875, 0.01427459716796875, 0.0104217529296875, 0.006458282470703125, 0.045989990234375, -0.0030307769775390625, -0.0199127197265625, -0.034332275390625, -0.004901885986328125, 0.02874755859375, 0.0118255615234375, -0.00624847412109375, 0.0167236328125, -0.041259765625, -0.0142364501953125, 0.00838470458984375, -0.029632568359375, -0.01187896728515625, 0.01433563232421875, 0.0243377685546875, -0.004917144775390625, 0.0146484375, 0.00904083251953125, -0.057373046875, 0.07025146484375, 0.01187896728515625, -0.032989501953125, 0.0390625, -0.0416259765625, 0.040679931640625, -0.01552581787109375, 0.051971435546875, 0.0628662109375, 0.0030956268310546875, 0.008056640625, 0.003078460693359375, -0.00370025634765625, 0.01486968994140625, -0.0174560546875, -0.01087188720703125, -0.0168304443359375, -0.032684326171875, 0.00897979736328125, 0.01476287841796875, 0.059539794921875, -0.04547119140625, -0.04931640625, -0.022369384765625, 0.0035343170166015625, -0.13330078125, -0.1494140625, 0.0240020751953125, -0.050079345703125, -0.00009894371032714844, -0.02691650390625, -0.0287628173828125, -0.01537322998046875, 0.007358551025390625, -0.0011682510375976562, -0.04315185546875, -0.0207672119140625, -0.055328369140625, -0.0650634765625, -0.044677734375, 0.0034885406494140625, -0.0273284912109375, -0.0061187744140625, 0.004688262939453125, -0.0015163421630859375, 0.0215911865234375, -0.0170745849609375, 0.033172607421875, 0.055267333984375, -0.0264434814453125, -0.033660888671875, -0.00730133056640625, -0.01358795166015625, 0.00170135498046875, 0.002735137939453125, -0.03631591796875, 0.0052490234375, 0.01091766357421875, -0.017608642578125, 0.00862884521484375, 0.033203125, 0.02874755859375, 0.061492919921875, 0.006984710693359375, 0.0232086181640625, 0.051605224609375, -0.0244903564453125, -0.0174713134765625, -0.031341552734375, -0.049835205078125, 0.01126861572265625, 0.0299835205078125, -0.0079498291015625, -0.0183258056640625, 0.015899658203125, 0.0279693603515625, -0.0262603759765625, 0.032623291015625, -0.01113128662109375, 0.0229339599609375, 0.00925445556640625, 0.041259765625, -0.030609130859375, 0.043731689453125, -0.00470733642578125, 0.0161285400390625, 0.0111083984375, 0.022003173828125, 0.01016998291015625, -0.049652099609375, -0.05340576171875, -0.02117919921875, 0.036651611328125, 0.01413726806640625, 0.01381683349609375, 0.00013947486877441406, -0.035308837890625, 0.01093292236328125, 0.06439208984375, -0.0167236328125, -0.0008945465087890625, -0.0120849609375, 0.0028476715087890625, -0.046051025390625, -0.048126220703125, -0.05462646484375, 0.0009207725524902344, -0.02813720703125, 0.00916290283203125, -0.037017822265625, 0.024505615234375, -0.0255279541015625, 0.088134765625, -0.00550079345703125, -0.031005859375, 0.055755615234375, -0.046234130859375, 0.004302978515625, 0.03509521484375, -0.0196380615234375, 0.0158843994140625, -0.0616455078125, -0.0062103271484375, -0.07757568359375, -0.0157318115234375, -0.00920867919921875, 0.048797607421875, 0.004230499267578125, -0.04840087890625, -0.037322998046875, 0.0172119140625, -0.033203125, 0.01006317138671875, 0.0008335113525390625, 0.045562744140625, 0.021331787109375, -0.0038127899169921875, -0.012359619140625, -0.013916015625, -0.0014142990112304688, 0.004238128662109375, -0.046051025390625, 0.0017023086547851562, -0.0268402099609375, -0.03765869140625, 0.01486968994140625, -0.041534423828125, -0.09228515625, -0.030426025390625, -0.007434844970703125, 0.0227813720703125, -0.031097412109375, 0.029449462890625, -0.027862548828125, -0.09759521484375, 0.074462890625, 0.01708984375, -0.01139068603515625, -0.0263671875, 0.056121826171875, 0.0170135498046875, -0.035614013671875, -0.0205841064453125, 0.0022525787353515625, 0.0247802734375, -0.0035114288330078125, 0.0635986328125, 0.01125335693359375, -0.0178985595703125, 0.074462890625, 0.007068634033203125, -0.0169830322265625, 0.0261993408203125, 0.043548583984375, 0.004261016845703125, -0.00635528564453125, 0.0033168792724609375, -0.01351165771484375, -0.0257720947265625, 0.00475311279296875, -0.0274200439453125, -0.036590576171875, -0.006160736083984375, 0.05181884765625, -0.052398681640625, 0.08770751953125, -0.0149993896484375, -0.057891845703125, 0.02020263671875, -0.030792236328125, -0.021820068359375, 0.0037860870361328125, -0.0039215087890625, 0.01177215576171875, 0.0242919921875, -0.005184173583984375, 0.0203857421875, 0.0038547515869140625, 0.0238494873046875, 0.0181121826171875, 0.0211944580078125, -0.00506591796875, 0.01126861572265625, 0.007080078125, 0.048370361328125, -0.033294677734375, -0.03033447265625, -0.037811279296875, -0.0009160041809082031, -0.0224761962890625, 0.02569580078125, -0.003047943115234375, -0.0030422210693359375, 0.016845703125, -0.01204681396484375, -0.0029773712158203125, 0.0172576904296875, 0.0021572113037109375, -0.0198822021484375, 0.00775146484375, 0.0098876953125, 0.00018739700317382812, -0.0027332305908203125, 0.0843505859375, 0.022125244140625, 0.0433349609375, -0.04913330078125, 0.00916290283203125, -0.0123138427734375, 0.0477294921875, 0.0207366943359375, -0.03924560546875, 0.0099029541015625, 0.020660400390625, -0.00443267822265625, -0.01397705078125, 0.0364990234375, 0.0275421142578125, 0.007587432861328125, 0.00421905517578125, -0.0108642578125, -0.007419586181640625, -0.0229644775390625, -0.033233642578125, 0.051177978515625, 0.043487548828125, -0.03936767578125, -0.0238494873046875, 0.007793426513671875, 0.03173828125, 0.0150604248046875, 0.0216827392578125, -0.0114593505859375, -0.022552490234375, -0.0212860107421875, -0.0030269622802734375, 0.0103912353515625, -0.0430908203125, -0.03900146484375, -0.0250396728515625, 0.00565338134765625, 0.0199127197265625, -0.035186767578125, -0.03369140625, -0.00920867919921875, -0.01282501220703125, 0.03271484375, 0.0478515625, 0.021575927734375, -0.03717041015625, -0.0291595458984375, 0.00804901123046875, -0.029632568359375, 0.05950927734375, -0.0145721435546875, -0.005496978759765625, -0.0204925537109375, -0.0232696533203125, -0.0057220458984375, 0.028076171875, -0.0243377685546875, -0.0162811279296875, -0.00634765625, 0.0081787109375, 0.02935791015625, -0.0017757415771484375, 0.003589630126953125, 0.0005831718444824219, 0.0141448974609375, -0.0037708282470703125, 0.048614501953125, -0.01355743408203125, 0.061279296875, 0.010833740234375, 0.0194854736328125, 0.00251007080078125, 0.03143310546875, -0.0208892822265625, -0.00202178955078125, 0.004535675048828125, -0.0247802734375, 0.002605438232421875, -0.0035915374755859375, -0.0107574462890625, -0.031951904296875, 0.0080108642578125, -0.01004791259765625, 0.0189056396484375, 0.021209716796875, 0.01910400390625, -0.005859375, -0.06951904296875, 0.03765869140625, -0.010772705078125, 0.048583984375, -0.054412841796875, -0.047760009765625, 0.017181396484375, 0.061187744140625, -0.00817108154296875, -0.041656494140625, -0.032135009765625, 0.036590576171875, -0.006542205810546875, 0.0188751220703125, 0.07470703125, 0.045654296875, 0.06805419921875, 0.00339508056640625, 0.0265350341796875, 0.0180206298828125, 0.0172271728515625, -0.044189453125, -0.01357269287109375, 0.0261688232421875, 0.006587982177734375, -0.0154876708984375, 0.0011959075927734375, -0.0115966796875, -0.005130767822265625, -0.0010881423950195312, 0.03692626953125, -0.028717041015625, 0.0168304443359375, 0.025238037109375, -0.035797119140625, -0.03900146484375, 0.0004935264587402344, 0.008026123046875, 0.00279998779296875, 0.048065185546875, 0.00919342041015625, -0.007724761962890625, 0.057464599609375, 0.0013332366943359375, -0.0039005279541015625, -0.0374755859375, 0.026336669921875, 0.0009503364562988281, -0.022491455078125, 0.0037860870361328125, -0.0021514892578125, -0.017181396484375, -0.046295166015625, -0.00659942626953125, 0.008056640625, -0.031524658203125, -0.07177734375, 0.0267181396484375, -0.008758544921875, 0.01776123046875, -0.005619049072265625, -0.01113128662109375, 0.03253173828125, 0.0355224609375, -0.00986480712890625, -0.0164947509765625, 0.00518035888671875, 0.0181884765625, -0.01338958740234375, -0.047119140625, 0.01593017578125, 0.0655517578125, -0.062042236328125, 0.0305328369140625, 0.0008778572082519531, -0.0154266357421875, 0.0029392242431640625, -0.0194854736328125, 0.0601806640625, -0.08013916015625, 0.01145172119140625, 0.004543304443359375, 0.043701171875, 0.020843505859375, -0.01313018798828125, 0.00557708740234375, -0.054962158203125, -0.0379638671875, -0.01113128662109375, -0.057281494140625, -0.016204833984375, -0.036346435546875, -0.051483154296875, 0.080078125, 0.005191802978515625, 0.032196044921875, 0.016326904296875, 0.0224456787109375, -0.0012254714965820312, 0.0194549560546875, -0.028564453125, 0.021148681640625, -0.0335693359375, 0.0175323486328125, -0.033599853515625, 0.0121917724609375, 0.01177978515625, 0.01203155517578125, 0.06573486328125, 0.0200653076171875, 0.046173095703125, -0.0031452178955078125, 0.00821685791015625, 0.0297698974609375, -0.043975830078125, -0.01947021484375, 0.0200347900390625, 0.0223846435546875, 0.0164642333984375, -0.0292205810546875, 0.0207977294921875, -0.04559326171875, 0.0037517547607421875, 0.05059814453125, 0.020751953125, 0.0093841552734375, 0.0107574462890625, -0.0075836181640625, -0.04620361328125, 0.0190582275390625, 0.0238037109375, 0.005481719970703125, -0.020050048828125, 0.06695556640625, 0.039764404296875, -0.0194549560546875, -0.0235443115234375, -0.034088134765625, 0.046539306640625, 0.012664794921875, 0.01549530029296875, 0.0177764892578125, 0.0227508544921875, 0.0141143798828125, 0.01119232177734375, 0.006175994873046875, 0.0183563232421875, -0.01507568359375, 0.0657958984375, 0.0782470703125, 0.031829833984375, -0.001506805419921875, -0.016021728515625, 0.062286376953125, 0.09710693359375, -0.04827880859375, 0.0081939697265625, 0.020538330078125, 0.01788330078125, -0.017913818359375, -0.017303466796875, 0.037200927734375, 0.0226287841796875, 0.009979248046875, -0.00421142578125, -0.01490020751953125, 0.024627685546875, 0.03314208984375, 0.0160675048828125, 0.0193328857421875, -0.067138671875, -0.0173187255859375, -0.07965087890625, 0.00823974609375, 0.0233612060546875, 0.07025146484375, 0.033294677734375, 0.0611572265625, 0.006053924560546875, -0.034515380859375, 0.00289154052734375, 0.016357421875, 0.0234832763671875, -0.019561767578125, -0.007511138916015625, -0.016632080078125, -0.0019588470458984375, 0.0211334228515625, 0.043304443359375, 0.01031494140625, 0.0364990234375, 0.005268096923828125, -0.032440185546875, -0.004436492919921875, 0.0548095703125, -0.01251983642578125, 0.031341552734375, -0.01291656494140625, 0.0255279541015625, -0.0116729736328125, -0.0189666748046875, -0.016998291015625, 0.037506103515625, 0.00601959228515625, -0.0121307373046875, 0.03338623046875, 0.0132904052734375, -0.028472900390625, 0.03558349609375, 0.0225067138671875, 0.07098388671875, 0.01219940185546875, -0.0731201171875, 0.006076812744140625, -0.057342529296875, -0.05145263671875, 0.0308685302734375, 0.0261993408203125, -0.01335906982421875, 0.022979736328125, 0.02728271484375, -0.01041412353515625, -0.0131072998046875, 0.018798828125, 0.0219573974609375, 0.019927978515625, 0.0225982666015625, 0.042205810546875, -0.01434326171875, -0.007366180419921875, 0.01096343994140625, 0.017669677734375, 0.01788330078125, -0.04510498046875, 0.0207366943359375, 0.0279541015625, -0.02447509765625, 0.0244293212890625, -0.061676025390625, -0.019744873046875, 0.0303192138671875, -0.00412750244140625, 0.01557159423828125, 0.0123138427734375, -0.030364990234375, 0.0220184326171875, 0.016387939453125, 0.015228271484375, 0.0211334228515625, -0.0343017578125, 0.0264739990234375, 0.010345458984375, 0.03253173828125, -0.0250701904296875, -0.0198974609375, -0.0357666015625, -0.01345062255859375, 0.037567138671875, 0.01446533203125, -0.005924224853515625, 0.008758544921875, -0.0069732666015625, -0.046539306640625, 0.029083251953125, -0.025299072265625, 0.021759033203125, 0.0294952392578125, -0.0231475830078125, 0.0173492431640625, 0.00885009765625, -0.01207733154296875, 0.0126953125, 0.0220794677734375, -0.010894775390625, -0.00035071372985839844, 0.01332855224609375, 0.0064697265625, -0.00930023193359375, 0.045379638671875, 0.0245513916015625, 0.004741668701171875, -0.0035152435302734375, -0.0020732879638671875, -0.048797607421875, -0.05609130859375, -0.018096923828125, -0.041229248046875, 0.0018310546875, 0.0316162109375, -0.0032863616943359375, -0.003368377685546875, -0.0141448974609375, -0.020721435546875, -0.00902557373046875, -0.03125, 0.01322174072265625, -0.00007992982864379883, -0.0272674560546875, -0.0031337738037109375, -0.034820556640625, 0.03253173828125, -0.0299224853515625, 0.01514434814453125, -0.037445068359375, -0.025177001953125, -0.0426025390625, 0.0253753662109375, -0.0168914794921875, 0.01922607421875, -0.003650665283203125, 0.00453948974609375, -0.01317596435546875, 0.056304931640625, -0.001163482666015625, 0.091064453125, -0.016204833984375, -0.03802490234375, 0.0265655517578125, -0.0014772415161132812, -0.0195159912109375, -0.047027587890625, 0.020294189453125, -0.08819580078125, 0.0201263427734375, -0.03472900390625, 0.03973388671875, 0.05364990234375, -0.009002685546875, -0.046173095703125, 0.0222930908203125, -0.0243072509765625, -0.03582763671875, -0.0241241455078125, 0.01064300537109375, 0.035858154296875, -0.0345458984375, -0.0194854736328125, -0.056549072265625, -0.058624267578125, -0.00777435302734375, 0.004909515380859375, 0.033172607421875, 0.02435302734375, -0.01161956787109375, -0.0274200439453125, 0.012969970703125, 0.0197296142578125, 0.0394287109375, 0.0213470458984375, 0.006710052490234375, 0.0073089599609375, 0.029266357421875, -0.0655517578125, -0.01197052001953125, -0.042205810546875, 0.0439453125, -0.041107177734375, -0.0416259765625, -0.008392333984375, 0.00531768798828125, 0.07122802734375, 0.036773681640625, 0.012481689453125, -0.042266845703125, 0.0110321044921875, -0.0212249755859375, -0.05322265625, -0.005641937255859375, 0.0280609130859375, -0.058563232421875, -0.002666473388671875, 0.028106689453125, -0.0008392333984375, -0.040008544921875, -0.006069183349609375, -0.035614013671875, -0.011962890625, -0.00843048095703125, -0.003265380859375, -0.008270263671875, -0.01385498046875, 0.04925537109375, -0.03607177734375, 0.0017185211181640625, 0.0300750732421875, 0.007541656494140625, 0.036163330078125, 0.0297088623046875, -0.01059722900390625, 0.0184783935546875, -0.011566162109375, -0.004039764404296875, 0.019622802734375, 0.022705078125, 0.0105743408203125, 0.00189208984375, -0.004840850830078125, 0.0198516845703125, 0.0042572021484375, 0.01474761962890625, -0.0037708282470703125, 0.05426025390625, -0.0029888153076171875, 0.0242462158203125, -0.0281524658203125, 0.0206298828125, 0.0087890625, -0.0009002685546875, -0.0280609130859375, 0.0176849365234375, 0.016082763671875, -0.05078125, 0.0002281665802001953, 0.00829315185546875, 0.01042938232421875, -0.01462554931640625, 0.004474639892578125, -0.020751953125, 0.00870513916015625, 0.00783538818359375 ]
a3fff8886166df0c340f2bdea9c72259623d09ea
Wordpress Stackexchange Q: Is it possible to change the path of a css file that is registered through wp_enqueue_style()? The theme I am using already calls the wp_enqueue_style function to enqueue a css file. I want to whether it is possible to change the css file path before it is actually outputted on the page. Why I want to do this? Basically, I want to check if it is a dev or prod environment. Based on that I want to include either the uncompressed or compressed file. A: I wonder if you are looking for the style_loader_src filter? For example: add_filter( 'style_loader_src', function ( $src ){ // ... your stuff ... return $src; } ); Similarly there exists the script_loader_src filter. There's also the base_url property of the global $wp_scripts and $wp_styles objects, but I think that's only used for enqueued native styles and scripts.
Q: Is it possible to change the path of a css file that is registered through wp_enqueue_style()? The theme I am using already calls the wp_enqueue_style function to enqueue a css file. I want to whether it is possible to change the css file path before it is actually outputted on the page. Why I want to do this? Basically, I want to check if it is a dev or prod environment. Based on that I want to include either the uncompressed or compressed file. A: I wonder if you are looking for the style_loader_src filter? For example: add_filter( 'style_loader_src', function ( $src ){ // ... your stuff ... return $src; } ); Similarly there exists the script_loader_src filter. There's also the base_url property of the global $wp_scripts and $wp_styles objects, but I think that's only used for enqueued native styles and scripts.
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:444100", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140756" }
[ -0.0017766952514648438, -0.01641845703125, -0.019683837890625, -0.01482391357421875, -0.0347900390625, -0.03179931640625, 0.01763916015625, 0.019805908203125, -0.026702880859375, -0.0189666748046875, -0.056884765625, 0.027679443359375, -0.0357666015625, -0.010406494140625, 0.0372314453125, -0.05364990234375, 0.050750732421875, -0.00859832763671875, 0.037445068359375, 0.0035953521728515625, 0.0017004013061523438, 0.0199127197265625, 0.042724609375, 0.08575439453125, 0.026275634765625, -0.037200927734375, 0.0694580078125, -0.014404296875, 0.0225677490234375, -0.016357421875, 0.0237579345703125, -0.02227783203125, 0.0229339599609375, 0.02532958984375, -0.02069091796875, 0.0162506103515625, 0.016754150390625, -0.007808685302734375, -0.0038242340087890625, 0.04193115234375, 0.03082275390625, -0.016998291015625, -0.0027103424072265625, 0.0308685302734375, -0.02203369140625, -0.037322998046875, 0.04034423828125, -0.01073455810546875, 0.0007791519165039062, 0.0291748046875, 0.006343841552734375, 0.013916015625, 0.00432586669921875, -0.01385498046875, -0.002956390380859375, -0.023651123046875, -0.032806396484375, 0.0243377685546875, 0.0028591156005859375, 0.0007534027099609375, 0.0157318115234375, 0.0245819091796875, 0.0035915374755859375, 0.005687713623046875, -0.00907135009765625, 0.0034809112548828125, 0.0099334716796875, 0.00955963134765625, -0.06463623046875, -0.0291748046875, 0.02801513671875, -0.0269775390625, -0.00885772705078125, -0.028564453125, -0.037261962890625, 0.059295654296875, -0.00435638427734375, -0.0067901611328125, 0.03802490234375, -0.016632080078125, 0.0228424072265625, -0.0230255126953125, -0.0078582763671875, -0.026214599609375, 0.0282135009765625, 0.0063629150390625, -0.01038360595703125, -0.00696563720703125, 0.0009622573852539062, 0.0011625289916992188, -0.022369384765625, 0.04425048828125, 0.0155487060546875, -0.0134429931640625, -0.0377197265625, 0.003551483154296875, 0.03143310546875, 0.0193634033203125, 0.022369384765625, 0.031219482421875, 0.0037822723388671875, -0.04473876953125, 0.037506103515625, -0.01971435546875, -0.0022125244140625, 0.067138671875, 0.0012712478637695312, 0.0172882080078125, 0.027923583984375, 0.01432037353515625, 0.0278778076171875, -0.00031113624572753906, -0.0201568603515625, -0.0237274169921875, -0.035125732421875, 0.0101165771484375, -0.0248565673828125, -0.02197265625, -0.0023479461669921875, -0.0146484375, 0.0213623046875, 0.039947509765625, 0.006870269775390625, -0.036407470703125, -0.01302337646484375, -0.027008056640625, -0.0088653564453125, -0.04412841796875, 0.0298309326171875, 0.01525115966796875, -0.0243988037109375, -0.007762908935546875, 0.05792236328125, 0.038299560546875, 0.022857666015625, -0.0137481689453125, 0.046875, -0.0160980224609375, -0.020782470703125, 0.0211639404296875, 0.021331787109375, -0.0469970703125, -0.0293121337890625, 0.0118560791015625, 0.00768280029296875, 0.0330810546875, 0.019927978515625, 0.01007080078125, -0.0310516357421875, -0.049407958984375, 0.03564453125, -0.03662109375, 0.015228271484375, 0.0208740234375, 0.0062255859375, -0.020355224609375, 0.05377197265625, -0.029998779296875, -0.0006098747253417969, -0.0479736328125, -0.040771484375, 0.01256561279296875, 0.0560302734375, -0.0011262893676757812, 0.01641845703125, -0.0151214599609375, -0.02490234375, 0.0150299072265625, 0.0262298583984375, 0.0081939697265625, 0.007602691650390625, -0.00885772705078125, 0.0151519775390625, 0.005863189697265625, -0.006076812744140625, 0.023406982421875, -0.0032596588134765625, -0.004474639892578125, 0.024993896484375, 0.0404052734375, 0.0036754608154296875, -0.0149383544921875, 0.06402587890625, -0.03167724609375, -0.004302978515625, -0.024871826171875, -0.000545501708984375, -0.00800323486328125, 0.010345458984375, 0.020111083984375, 0.0026874542236328125, 0.0251922607421875, -0.024810791015625, 0.007175445556640625, -0.0005040168762207031, -0.0010433197021484375, 0.0097198486328125, 0.01251220703125, 0.00981903076171875, -0.01016998291015625, 0.0211181640625, 0.01059722900390625, 0.028839111328125, -0.004619598388671875, -0.02423095703125, 0.02093505859375, -0.015167236328125, 0.031768798828125, -0.035308837890625, 0.006633758544921875, 0.00466156005859375, -0.00421905517578125, 0.0248260498046875, -0.0826416015625, -0.018768310546875, 0.024627685546875, -0.0173187255859375, 0.0234222412109375, 0.0006299018859863281, 0.01352691650390625, 0.026763916015625, -0.0090789794921875, 0.01861572265625, 0.0189971923828125, -0.0123748779296875, 0.0179901123046875, -0.033721923828125, 0.004913330078125, 0.00167083740234375, -0.00945281982421875, 0.052520751953125, 0.036895751953125, 0.0248260498046875, 0.05133056640625, 0.01090240478515625, -0.01049041748046875, 0.01715087890625, -0.0921630859375, 0.02996826171875, 0.04168701171875, 0.058746337890625, 0.03253173828125, 0.0131683349609375, -0.00327301025390625, 0.066650390625, 0.0011758804321289062, 0.024658203125, -0.0286865234375, -0.0034332275390625, -0.01544952392578125, -0.0014715194702148438, -0.011138916015625, 0.04248046875, -0.0919189453125, 0.0096588134765625, 0.040740966796875, -0.011138916015625, -0.0143585205078125, 0.011260986328125, 0.015380859375, 0.0088958740234375, 0.01373291015625, -0.014984130859375, 0.0191802978515625, 0.0012731552124023438, -0.004119873046875, -0.0006384849548339844, -0.023681640625, 0.0108489990234375, -0.0025959014892578125, 0.0291748046875, -0.06512451171875, 0.0015201568603515625, 0.043792724609375, -0.0091552734375, 0.01178741455078125, -0.0211944580078125, -0.00994873046875, -0.009674072265625, 0.0232696533203125, -0.012451171875, 0.0164031982421875, -0.0272216796875, -0.01629638671875, -0.0177001953125, -0.06292724609375, 0.0155181884765625, 0.024871826171875, -0.00970458984375, 0.006175994873046875, 0.0311737060546875, 0.018524169921875, -0.00817108154296875, 0.02001953125, -0.0164031982421875, -0.00974273681640625, 0.0699462890625, 0.040008544921875, -0.0002894401550292969, 0.00852203369140625, 0.0151214599609375, 0.0202789306640625, -0.006992340087890625, -0.0147552490234375, 0.0086669921875, 0.045196533203125, 0.037261962890625, -0.0258026123046875, -0.01428985595703125, 0.007396697998046875, -0.053741455078125, -0.0008006095886230469, 0.023345947265625, -0.033447265625, 0.02532958984375, -0.0190582275390625, -0.0030536651611328125, -0.003932952880859375, -0.07928466796875, -0.07611083984375, -0.05010986328125, -0.0628662109375, 0.01300048828125, 0.00664520263671875, -0.011962890625, 0.00412750244140625, 0.0304718017578125, 0.0260772705078125, -0.017364501953125, -0.01824951171875, -0.020843505859375, -0.0469970703125, -0.04791259765625, -0.00984954833984375, -0.004161834716796875, -0.0100250244140625, 0.0091400146484375, 0.06756591796875, 0.0244293212890625, -0.04693603515625, 0.024993896484375, 0.043609619140625, -0.01125335693359375, 0.00850677490234375, 0.02874755859375, -0.06671142578125, -0.0224151611328125, -0.01532745361328125, 0.0007991790771484375, 0.0018863677978515625, 0.00150299072265625, 0.0125579833984375, -0.01739501953125, 0.0022220611572265625, -0.01001739501953125, 0.036773681640625, 0.024810791015625, -0.01202392578125, 0.00012624263763427734, -0.05084228515625, -0.045013427734375, 0.0140380859375, -0.032867431640625, 0.05157470703125, 0.0210723876953125, -0.02032470703125, 0.0012407302856445312, 0.042938232421875, 0.0241546630859375, -0.029327392578125, 0.017578125, -0.0176544189453125, 0.06622314453125, 0.00951385498046875, 0.022369384765625, -0.053009033203125, 0.07745361328125, 0.00043010711669921875, 0.01593017578125, 0.034942626953125, 0.0194549560546875, -0.00868988037109375, -0.0223541259765625, -0.08721923828125, -0.0260162353515625, 0.034149169921875, -0.047607421875, 0.01800537109375, -0.037994384765625, -0.019683837890625, -0.0019435882568359375, 0.09808349609375, -0.035064697265625, -0.030914306640625, 0.048187255859375, 0.048583984375, -0.0732421875, -0.062042236328125, -0.03863525390625, -0.00957489013671875, -0.102294921875, 0.0219879150390625, -0.0222320556640625, -0.0367431640625, 0.008209228515625, -0.0401611328125, -0.050140380859375, -0.0706787109375, 0.029815673828125, -0.006572723388671875, 0.004669189453125, 0.0266876220703125, -0.0012178421020507812, 0.01383209228515625, -0.0230865478515625, -0.01715087890625, -0.12017822265625, -0.0377197265625, -0.04412841796875, 0.1260986328125, 0.021453857421875, 0.0233154296875, -0.00676727294921875, 0.0908203125, 0.00220489501953125, 0.048553466796875, 0.03216552734375, 0.017364501953125, 0.01392364501953125, 0.0073394775390625, 0.04510498046875, -0.028289794921875, -0.0166168212890625, -0.0095367431640625, -0.08099365234375, 0.01477813720703125, 0.0124664306640625, 0.0034275054931640625, 0.07550048828125, -0.048065185546875, -0.0245361328125, -0.01055145263671875, -0.002956390380859375, -0.00893402099609375, 0.00405120849609375, -0.0250091552734375, -0.029815673828125, -0.0151824951171875, 0.0579833984375, -0.0172271728515625, 0.019622802734375, -0.01407623291015625, 0.0736083984375, 0.0207672119140625, -0.03265380859375, -0.0172271728515625, 0.018096923828125, 0.0182647705078125, 0.0181121826171875, 0.0265655517578125, -0.00029277801513671875, -0.0160064697265625, 0.05059814453125, -0.0011777877807617188, -0.012237548828125, 0.01169586181640625, 0.040679931640625, 0.0272674560546875, -0.0170135498046875, 0.01317596435546875, 0.01497650146484375, -0.0333251953125, 0.04290771484375, 0.01453399658203125, -0.004131317138671875, 0.006984710693359375, 0.0251922607421875, 0.015625, -0.053802490234375, -0.041717529296875, -0.026123046875, -0.0030879974365234375, -0.0021762847900390625, 0.0587158203125, 0.03936767578125, -0.00994110107421875, 0.045135498046875, 0.0517578125, -0.007427215576171875, 0.004913330078125, -0.005771636962890625, -0.006076812744140625, 0.02606201171875, 0.010528564453125, -0.00206756591796875, 0.0129852294921875, -0.005451202392578125, 0.03375244140625, 0.0090179443359375, -0.0301513671875, -0.0207672119140625, -0.0166778564453125, 0.046600341796875, 0.01009368896484375, -0.012542724609375, 0.03863525390625, 0.0003998279571533203, -0.03509521484375, -0.0272674560546875, -0.031494140625, -0.0274505615234375, -0.06121826171875, 0.05419921875, 0.01251983642578125, -0.013641357421875, 0.042572021484375, -0.0031833648681640625, 0.04742431640625, -0.007717132568359375, -0.0197296142578125, -0.00841522216796875, -0.006656646728515625, -0.0032901763916015625, -0.0130615234375, 0.039154052734375, 0.01262664794921875, -0.0001672506332397461, 0.079833984375, -0.030609130859375, -0.006916046142578125, 0.0290069580078125, 0.032623291015625, -0.046966552734375, -0.018463134765625, 0.0307769775390625, -0.0057220458984375, -0.01439666748046875, 0.017303466796875, -0.00803375244140625, -0.0150909423828125, -0.0201263427734375, -0.02264404296875, 0.0284271240234375, -0.0088348388671875, 0.0031452178955078125, -0.037322998046875, -0.0164947509765625, -0.00742340087890625, -0.0012826919555664062, -0.0257720947265625, 0.0003650188446044922, -0.007511138916015625, -0.005157470703125, -0.005519866943359375, -0.01076507568359375, -0.02215576171875, -0.0178680419921875, -0.019561767578125, -0.0130767822265625, 0.040069580078125, -0.038299560546875, 0.037933349609375, -0.023681640625, -0.01568603515625, -0.00641632080078125, 0.0235595703125, 0.0361328125, 0.030029296875, -0.040283203125, 0.012359619140625, -0.05078125, -0.0027942657470703125, -0.03179931640625, -0.06695556640625, -0.0176849365234375, -0.00959014892578125, -0.0210113525390625, -0.003345489501953125, -0.0234375, -0.026214599609375, -0.032623291015625, 0.026885986328125, 0.03594970703125, 0.01216888427734375, -0.005268096923828125, 0.06317138671875, 0.0074920654296875, 0.0204315185546875, 0.0233917236328125, 0.03643798828125, -0.01007843017578125, -0.0194854736328125, -0.018798828125, -0.0225982666015625, 0.0105743408203125, -0.0233154296875, 0.022216796875, 0.040313720703125, 0.08197021484375, 0.0121002197265625, 0.032562255859375, -0.0083465576171875, -0.01293182373046875, -0.0308074951171875, 0.0025691986083984375, -0.0236358642578125, 0.037109375, -0.01456451416015625, 0.02667236328125, 0.046478271484375, -0.0304107666015625, 0.00630950927734375, 0.005035400390625, -0.0009860992431640625, 0.03204345703125, -0.03472900390625, -0.04644775390625, 0.02337646484375, 0.0164031982421875, 0.014801025390625, 0.034332275390625, -0.0193328857421875, 0.0281982421875, 0.035797119140625, -0.01287841796875, -0.0008063316345214844, 0.015655517578125, 0.032958984375, -0.0077056884765625, 0.0187835693359375, 0.0181732177734375, -0.01351165771484375, 0.0194854736328125, 0.0379638671875, 0.04522705078125, -0.07086181640625, 0.02020263671875, -0.01219940185546875, -0.00417327880859375, 0.0467529296875, 0.0273895263671875, -0.004150390625, 0.025604248046875, 0.0180816650390625, -0.03558349609375, 0.0005764961242675781, 0.0389404296875, -0.0103607177734375, 0.0077667236328125, -0.00380706787109375, -0.01470184326171875, -0.0105438232421875, -0.06695556640625, -0.0142059326171875, 0.06768798828125, -0.0277557373046875, -0.0478515625, 0.0198822021484375, -0.0238189697265625, 0.0233306884765625, -0.02142333984375, 0.04180908203125, -0.0266571044921875, 0.0199432373046875, -0.00035834312438964844, -0.0297088623046875, 0.055572509765625, 0.0034198760986328125, 0.003787994384765625, -0.01441192626953125, -0.0296783447265625, 0.01329803466796875, 0.0269927978515625, -0.00742340087890625, 0.01387786865234375, -0.0007534027099609375, -0.0242462158203125, -0.007717132568359375, -0.0093841552734375, -0.0090789794921875, 0.0004646778106689453, 0.004344940185546875, 0.058197021484375, -0.05126953125, -0.007671356201171875, 0.00908660888671875, -0.0004069805145263672, 0.0129241943359375, -0.00995635986328125, 0.0035266876220703125, -0.039031982421875, -0.030487060546875, 0.001056671142578125, -0.057281494140625, 0.0070648193359375, -0.043670654296875, 0.0004017353057861328, 0.0550537109375, -0.030609130859375, 0.00698089599609375, 0.04815673828125, 0.0124969482421875, -0.021026611328125, 0.01277923583984375, -0.01512908935546875, 0.0217742919921875, 0.0289306640625, 0.01076507568359375, -0.01496124267578125, -0.025482177734375, 0.018829345703125, 0.0692138671875, 0.03997802734375, 0.0043182373046875, -0.01502227783203125, -0.003086090087890625, 0.06396484375, 0.0250244140625, 0.0098876953125, 0.022186279296875, -0.017181396484375, 0.020111083984375, -0.01158905029296875, -0.04754638671875, 0.01287078857421875, -0.047119140625, -0.0390625, 0.00763702392578125, 0.00855255126953125, 0.0000527501106262207, -0.00788116455078125, 0.03289794921875, -0.041839599609375, 0.004558563232421875, 0.032440185546875, -0.01009368896484375, -0.0168914794921875, 0.023681640625, 0.004852294921875, -0.0157928466796875, -0.0243377685546875, -0.021820068359375, 0.03277587890625, -0.0136260986328125, -0.00502777099609375, -0.029449462890625, -0.016571044921875, 0.04510498046875, 0.0311431884765625, -0.0299530029296875, 0.048980712890625, 0.02020263671875, 0.04156494140625, 0.0186920166015625, 0.02679443359375, 0.0168609619140625, 0.044219970703125, -0.046051025390625, 0.00994110107421875, -0.045989990234375, 0.00970458984375, 0.01331329345703125, 0.00742340087890625, -0.012603759765625, -0.040130615234375, 0.0008397102355957031, -0.057952880859375, -0.038848876953125, -0.0228271484375, 0.01029205322265625, 0.031768798828125, 0.01055145263671875, -0.007488250732421875, -0.028350830078125, -0.0286712646484375, 0.020233154296875, -0.03741455078125, 0.01080322265625, 0.014068603515625, 0.035003662109375, 0.0218658447265625, 0.014373779296875, 0.0249176025390625, -0.008758544921875, -0.0145263671875, 0.03558349609375, -0.014678955078125, 0.023681640625, 0.00461578369140625, 0.007747650146484375, -0.0201263427734375, 0.0037841796875, 0.01763916015625, 0.01305389404296875, 0.040740966796875, 0.00930023193359375, -0.05426025390625, -0.0034236907958984375, 0.01580810546875, -0.0308837890625, 0.04473876953125, -0.03863525390625, 0.05706787109375, 0.020477294921875, 0.00704193115234375, -0.045806884765625, 0.0276031494140625, 0.05450439453125, -0.045318603515625, 0.0433349609375, -0.0158538818359375, -0.0086669921875, -0.003170013427734375, -0.001987457275390625, 0.0173797607421875, -0.0008835792541503906, -0.02471923828125, -0.01197052001953125, 0.0031604766845703125, 0.013671875, -0.0139312744140625, 0.0227203369140625, -0.0187530517578125, 0.05364990234375, 0.041046142578125, -0.0018625259399414062, -0.019287109375, 0.0159759521484375, 0.01470184326171875, -0.018829345703125, 0.0272064208984375, 0.02435302734375, -0.0478515625, -0.053619384765625, -0.04986572265625, 0.07562255859375, 0.0226593017578125, 0.085205078125, -0.0574951171875, 0.03875732421875, 0.055755615234375, -0.005344390869140625, 0.0184326171875, 0.024658203125, 0.0283355712890625, -0.0303497314453125, 0.007022857666015625, -0.017547607421875, -0.04351806640625, 0.00997161865234375, 0.03240966796875, -0.03765869140625, 0.0030059814453125, 0.0023441314697265625, 0.023681640625, -0.01556396484375, 0.0024471282958984375, -0.046478271484375, -0.059051513671875, -0.04241943359375, 0.03521728515625, -0.033538818359375, -0.036834716796875, -0.021453857421875, -0.022857666015625, 0.054168701171875, -0.0430908203125, 0.054840087890625, 0.002590179443359375, 0.1107177734375, 0.03448486328125, -0.01171875, -0.022003173828125, 0.00959014892578125, -0.0157470703125, 0.0112762451171875, 0.01291656494140625, 0.048431396484375, -0.00998687744140625, -0.00934600830078125, -0.031280517578125, 0.024444580078125, 0.053741455078125, 0.022552490234375, 0.042999267578125, -0.0003516674041748047, -0.01495361328125, -0.05181884765625, -0.058929443359375, -0.0306549072265625, -0.0308074951171875, 0.0035800933837890625, 0.010955810546875, 0.00612640380859375, -0.037506103515625, 0.00243377685546875, 0.004505157470703125, 0.033172607421875, 0.029266357421875, -0.0904541015625, 0.05487060546875, -0.0289306640625, 0.030181884765625, 0.004947662353515625, 0.0152130126953125, -0.005126953125, -0.04522705078125, -0.053741455078125, -0.033660888671875, -0.037750244140625, 0.045654296875, -0.036376953125, 0.005401611328125, 0.02325439453125, 0.00460052490234375, 0.0599365234375, 0.004512786865234375, -0.00955963134765625, 0.07135009765625, -0.1058349609375, -0.0133056640625, -0.0178985595703125, 0.04718017578125, 0.00750732421875, -0.0894775390625, -0.01251220703125, -0.018890380859375, 0.0253753662109375, 0.0224151611328125, -0.022308349609375, -0.0105438232421875, -0.044921875, -0.083984375, 0.0146026611328125, 0.0145111083984375, -0.0513916015625, -0.03369140625, 0.02825927734375, -0.0154571533203125, -0.007221221923828125, 0.004039764404296875, -0.028778076171875, 0.0158233642578125, 0.0249176025390625, 0.016143798828125, 0.076171875, 0.010986328125, 0.0026721954345703125, -0.035369873046875, 0.00846099853515625, -0.00862884521484375, 0.061065673828125, -0.04315185546875, 0.01209259033203125, 0.0141143798828125, 0.0308685302734375, 0.0068359375, -0.0091400146484375, 0.050262451171875, -0.03106689453125, -0.0255889892578125, -0.0219879150390625, -0.02081298828125, -0.01125335693359375, 0.07568359375, 0.0312042236328125, 0.019317626953125, -0.01178741455078125, -0.029693603515625, -0.01523590087890625, 0.00555419921875, -0.010467529296875, 0.01157379150390625, -0.0650634765625, -0.015625, 0.0143890380859375, 0.007472991943359375, -0.062347412109375, -0.01983642578125, -0.0423583984375, -0.031829833984375, -0.005641937255859375, 0.021026611328125, 0.015655517578125, -0.036102294921875, 0.04376220703125, -0.00955963134765625, 0.0552978515625, 0.00021064281463623047, 0.04400634765625, 0.06121826171875, 0.043121337890625, -0.018463134765625, 0.041107177734375, -0.03521728515625, 0.01125335693359375, -0.004695892333984375, -0.026641845703125, -0.020538330078125, 0.0291900634765625, -0.00218963623046875, -0.0027408599853515625, -0.0236968994140625, -0.0022640228271484375, 0.04754638671875, 0.00014829635620117188, -0.018157958984375, 0.06976318359375, -0.0138702392578125, 0.014404296875, 0.0033721923828125, 0.01268768310546875, -0.03594970703125, 0.00150299072265625, 0.0058135986328125, -0.031463623046875, -0.012939453125, 0.00023186206817626953, -0.03863525390625, -0.07574462890625, 0.0307159423828125, -0.0292205810546875, 0.0020294189453125, 0.0164031982421875 ]
81a7fd03a0bf20d0c6594660a20863b48fbb8808
Wordpress Stackexchange Q: custom login page redirect to logged in user profile page If I click on sign in then it should go to the login page. The issue is that when I put the link then it goes to redirect_to home page, but I want to go on user profile page instead. I don't want to use a plugin to redirect to profile page after login. I have code for user profile - <a href="<?php echo bp_loggedin_user_domain(); ?>/profile/edit/"><span>My Profile</span></a> And i want to put this link into <input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" /> Is this possible? Are there other suggestions? A: If you're using the built in function to create the login box, one of the parameters is redirect. wp_login_form function reference To get your profile link, check when you're logged in as admin. The link is the same, but the options presented are different. Default is yoursite.com/wp-admin/profile.php
Q: custom login page redirect to logged in user profile page If I click on sign in then it should go to the login page. The issue is that when I put the link then it goes to redirect_to home page, but I want to go on user profile page instead. I don't want to use a plugin to redirect to profile page after login. I have code for user profile - <a href="<?php echo bp_loggedin_user_domain(); ?>/profile/edit/"><span>My Profile</span></a> And i want to put this link into <input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" /> Is this possible? Are there other suggestions? A: If you're using the built in function to create the login box, one of the parameters is redirect. wp_login_form function reference To get your profile link, check when you're logged in as admin. The link is the same, but the options presented are different. Default is yoursite.com/wp-admin/profile.php A: You can write code in function in functions.php and add action to this add_filter( 'login_redirect', 'my_rd', 10, 3 ); Function my_rd(){ } A: IF you wants to use plguin bp redirect to profile go here: add_filter( 'bp_login_redirect', 'bpdev_redirect_to_profile', 11, 3 ); function bpdev_redirect_to_profile( $redirect_to_calculated, $redirect_url_specified, $user ){ if( empty( $redirect_to_calculated ) ) $redirect_to_calculated = admin_url(); //if the user is not site admin,redirect to his/her profile if( isset( $user->ID) && ! is_super_admin( $user->ID ) ) return bp_core_get_user_domain( $user->ID ); else return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/ }
wordpress
{ "language": "en", "length": 243, "provenance": "stackexchange_00019.jsonl.gz:444104", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140765" }
[ 0.07135009765625, -0.0105438232421875, 0.03204345703125, -0.02880859375, 0.017181396484375, -0.022705078125, 0.0740966796875, -0.031280517578125, -0.0557861328125, 0.019287109375, 0.048980712890625, 0.0094451904296875, -0.038177490234375, -0.052581787109375, 0.03692626953125, -0.035003662109375, 0.00084686279296875, 0.01995849609375, 0.03521728515625, -0.012664794921875, 0.01395416259765625, -0.01129913330078125, 0.0158843994140625, 0.00408935546875, 0.0237884521484375, 0.00824737548828125, 0.058807373046875, -0.0191650390625, 0.0310821533203125, 0.0035724639892578125, 0.020538330078125, -0.052581787109375, 0.0169677734375, 0.0238037109375, -0.019500732421875, -0.041534423828125, 0.009918212890625, 0.0110626220703125, 0.007747650146484375, 0.00444793701171875, 0.045318603515625, -0.020965576171875, -0.01262664794921875, 0.0276336669921875, -0.026885986328125, -0.038299560546875, 0.0325927734375, -0.016815185546875, 0.0170440673828125, 0.00809478759765625, 0.0186614990234375, -0.00457763671875, 0.0255584716796875, -0.024505615234375, -0.01355743408203125, 0.00238037109375, -0.026153564453125, 0.00789642333984375, 0.024261474609375, 0.03216552734375, 0.0016155242919921875, -0.0093231201171875, 0.00807952880859375, -0.047943115234375, -0.020721435546875, 0.01056671142578125, -0.0176544189453125, 0.01363372802734375, -0.0289306640625, -0.058807373046875, -0.0131683349609375, -0.0233154296875, -0.010589599609375, -0.0008630752563476562, -0.054107666015625, 0.0156707763671875, 0.01078033447265625, -0.0043182373046875, 0.0245513916015625, -0.0015001296997070312, -0.0303192138671875, -0.005519866943359375, -0.034149169921875, -0.020721435546875, 0.0195159912109375, 0.0193328857421875, -0.03759765625, -0.0151214599609375, -0.006317138671875, -0.0031566619873046875, -0.0172576904296875, 0.0007777214050292969, 0.005992889404296875, 0.0146026611328125, -0.0164947509765625, -0.002681732177734375, 0.003108978271484375, 0.0168609619140625, 0.0244140625, -0.0025234222412109375, -0.005580902099609375, -0.032745361328125, -0.0160369873046875, -0.01146697998046875, -0.0207366943359375, 0.057159423828125, 0.0242156982421875, 0.010498046875, -0.02874755859375, 0.0088043212890625, 0.01386260986328125, -0.059783935546875, -0.0357666015625, -0.05694580078125, 0.00933074951171875, 0.055450439453125, -0.0226287841796875, 0.00832366943359375, 0.00970458984375, 0.01496124267578125, -0.041412353515625, -0.032867431640625, 0.040863037109375, -0.03363037109375, 0.025421142578125, -0.016876220703125, -0.0146942138671875, -0.01490020751953125, -0.017333984375, 0.007610321044921875, -0.037567138671875, 0.0162353515625, 0.0740966796875, 0.023406982421875, 0.0082855224609375, -0.03094482421875, 0.0207977294921875, -0.03338623046875, -0.028076171875, 0.026458740234375, -0.00849151611328125, -0.0450439453125, -0.017181396484375, -0.0287628173828125, 0.0152130126953125, 0.048065185546875, 0.02484130859375, -0.0036983489990234375, -0.014678955078125, -0.0675048828125, 0.00568389892578125, -0.01934814453125, -0.0008721351623535156, -0.0017786026000976562, 0.051605224609375, -0.013519287109375, 0.024749755859375, -0.01174163818359375, 0.01543426513671875, 0.01776123046875, 0.04248046875, 0.00795745849609375, -0.0198974609375, -0.0234832763671875, -0.050537109375, -0.0246124267578125, -0.0186309814453125, -0.01206207275390625, 0.0218353271484375, 0.004062652587890625, 0.034149169921875, -0.0162200927734375, -0.0243377685546875, 0.0294647216796875, 0.0235748291015625, 0.00864410400390625, -0.003330230712890625, 0.049041748046875, 0.0078125, 0.0178985595703125, 0.0080718994140625, -0.032135009765625, 0.044036865234375, -0.00005245208740234375, -0.038970947265625, 0.04949951171875, 0.008514404296875, 0.06597900390625, 0.000010311603546142578, 0.020751953125, 0.01316070556640625, 0.034759521484375, -0.054168701171875, 0.0279388427734375, -0.002910614013671875, -0.0196990966796875, -0.00180816650390625, -0.0215301513671875, -0.008392333984375, 0.02886962890625, -0.0143280029296875, -0.008636474609375, -0.0013866424560546875, 0.01306915283203125, 0.002780914306640625, -0.01525115966796875, 0.0012998580932617188, 0.021820068359375, 0.0299072265625, 0.016387939453125, -0.00817108154296875, -0.0038967132568359375, 0.0308837890625, -0.08929443359375, -0.053436279296875, 0.015106201171875, -0.0159454345703125, 0.0291900634765625, -0.0036602020263671875, 0.0213623046875, -0.00916290283203125, -0.0189971923828125, -0.0133056640625, -0.0146636962890625, 0.039154052734375, -0.017974853515625, -0.018890380859375, -0.0245208740234375, -0.00861358642578125, 0.005889892578125, -0.0635986328125, 0.039306640625, 0.019439697265625, 0.0275421142578125, -0.054534912109375, -0.007724761962890625, -0.01126861572265625, 0.007320404052734375, 0.0112152099609375, 0.0302581787109375, 0.0174560546875, 0.048614501953125, -0.002105712890625, 0.040771484375, 0.0202789306640625, -0.0374755859375, 0.0119171142578125, 0.008087158203125, 0.048065185546875, 0.050689697265625, -0.02239990234375, -0.031402587890625, 0.01517486572265625, -0.061431884765625, 0.016204833984375, 0.039886474609375, -0.0171661376953125, -0.0279083251953125, 0.006008148193359375, -0.00965118408203125, -0.00510406494140625, -0.06451416015625, -0.01690673828125, -0.0274810791015625, -0.01214599609375, -0.04095458984375, -0.019683837890625, -0.0298309326171875, -0.0214080810546875, -0.0267791748046875, 0.046600341796875, -0.017333984375, -0.019775390625, -0.023193359375, 0.05609130859375, -0.04248046875, -0.038726806640625, 0.005710601806640625, 0.00469970703125, -0.022064208984375, 0.006549835205078125, 0.00553131103515625, -0.051177978515625, -0.0170135498046875, 0.0186920166015625, -0.04583740234375, -0.004627227783203125, 0.047119140625, 0.037506103515625, -0.0049591064453125, 0.029815673828125, -0.0202484130859375, -0.0440673828125, 0.059417724609375, -0.0018682479858398438, -0.06201171875, -0.00847625732421875, -0.06915283203125, 0.050994873046875, -0.059051513671875, 0.04150390625, 0.07861328125, -0.01323699951171875, 0.03619384765625, 0.0095977783203125, -0.004871368408203125, -0.006572723388671875, 0.0201263427734375, 0.016632080078125, -0.038543701171875, 0.01435089111328125, 0.0347900390625, 0.035858154296875, 0.017822265625, 0.026458740234375, -0.0169525146484375, -0.017242431640625, 0.0270538330078125, -0.0462646484375, -0.02056884765625, -0.05523681640625, -0.1025390625, 0.0281219482421875, 0.006641387939453125, -0.02777099609375, 0.01117706298828125, 0.0584716796875, 0.0416259765625, 0.00220489501953125, -0.006244659423828125, -0.06378173828125, -0.05487060546875, -0.0560302734375, -0.0063323974609375, -0.01323699951171875, 0.0024280548095703125, 0.006366729736328125, 0.01983642578125, -0.004184722900390625, -0.0188140869140625, 0.00860595703125, 0.024810791015625, 0.01441192626953125, -0.0215606689453125, -0.042938232421875, 0.0051727294921875, 0.0250396728515625, -0.0169219970703125, 0.055755615234375, 0.0026702880859375, 0.0034961700439453125, 0.0007605552673339844, 0.00290679931640625, -0.06231689453125, -0.0032958984375, -0.0110626220703125, -0.01556396484375, -0.0099945068359375, 0.006031036376953125, -0.046661376953125, 0.025726318359375, -0.02520751953125, -0.04107666015625, 0.035247802734375, 0.037353515625, -0.01702880859375, 0.0132598876953125, -0.046112060546875, -0.01032257080078125, 0.01094818115234375, -0.01415252685546875, 0.006389617919921875, -0.00004744529724121094, -0.0132598876953125, -0.004730224609375, 0.0006346702575683594, 0.03460693359375, -0.01690673828125, -0.033050537109375, 0.0027637481689453125, -0.0005340576171875, -0.0078582763671875, 0.002368927001953125, -0.022918701171875, -0.08905029296875, 0.05572509765625, -0.00046515464782714844, -0.0033702850341796875, -0.023223876953125, -0.02880859375, 0.007266998291015625, 0.1090087890625, -0.00826263427734375, 0.0139617919921875, 0.01134490966796875, 0.0030689239501953125, -0.049530029296875, -0.013946533203125, -0.0926513671875, 0.0078277587890625, -0.099609375, 0.00955963134765625, 0.0015802383422851562, -0.0276031494140625, -0.00423431396484375, 0.0142059326171875, -0.033966064453125, -0.04791259765625, 0.015350341796875, 0.022064208984375, -0.0012884140014648438, 0.0195159912109375, -0.01168060302734375, 0.0007829666137695312, 0.0188140869140625, -0.01471710205078125, -0.05035400390625, -0.00888824462890625, 0.004329681396484375, 0.024749755859375, 0.0233917236328125, -0.0352783203125, -0.0005779266357421875, 0.0299072265625, 0.04736328125, 0.008056640625, 0.026031494140625, -0.022705078125, 0.0227203369140625, -0.0114593505859375, 0.0094146728515625, -0.01515960693359375, -0.0004506111145019531, -0.006923675537109375, -0.011199951171875, 0.022491455078125, -0.0335693359375, 0.00849151611328125, 0.0002703666687011719, -0.025726318359375, -0.04498291015625, -0.0308990478515625, -0.006092071533203125, 0.0269622802734375, 0.006244659423828125, 0.00269317626953125, -0.046142578125, -0.06719970703125, 0.0251922607421875, 0.0004761219024658203, -0.02227783203125, 0.01132965087890625, 0.039825439453125, 0.0219268798828125, -0.0150909423828125, -0.0203857421875, 0.02325439453125, 0.012481689453125, -0.01690673828125, 0.054962158203125, -0.0028076171875, -0.008392333984375, 0.0860595703125, -0.041534423828125, 0.027099609375, -0.03765869140625, 0.046966552734375, -0.021697998046875, -0.02862548828125, 0.033599853515625, -0.0321044921875, -0.01062774658203125, 0.06689453125, 0.0233154296875, -0.02294921875, 0.00858306884765625, 0.008331298828125, -0.0005755424499511719, -0.04217529296875, -0.0140228271484375, -0.028045654296875, -0.0010166168212890625, 0.0015687942504882812, 0.0222320556640625, 0.0286865234375, -0.0153656005859375, 0.018524169921875, 0.02484130859375, -0.0142669677734375, 0.01611328125, -0.0287017822265625, -0.002056121826171875, 0.0101470947265625, 0.006031036376953125, -0.020355224609375, 0.0257568359375, -0.00673675537109375, 0.0682373046875, 0.030670166015625, -0.0207061767578125, 0.016571044921875, -0.047821044921875, -0.0187225341796875, -0.01100921630859375, 0.00555419921875, 0.046417236328125, -0.004169464111328125, -0.0031490325927734375, -0.01702880859375, -0.0233154296875, -0.01026153564453125, -0.05072021484375, 0.01543426513671875, -0.00341033935546875, 0.005035400390625, 0.0296630859375, 0.0806884765625, -0.01532745361328125, 0.061248779296875, -0.0262451171875, 0.044921875, 0.04705810546875, 0.00505828857421875, 0.01528167724609375, 0.043060302734375, -0.0194091796875, -0.033111572265625, -0.01983642578125, -0.01314544677734375, 0.01070404052734375, 0.0079345703125, 0.0247802734375, 0.029052734375, 0.00769805908203125, 0.00229644775390625, -0.020721435546875, 0.0034580230712890625, 0.05322265625, -0.01273345947265625, -0.08648681640625, -0.01305389404296875, 0.00959014892578125, 0.02813720703125, -0.048248291015625, -0.0073394775390625, -0.0029544830322265625, -0.02899169921875, 0.004787445068359375, -0.0170745849609375, -0.03839111328125, 0.00004941225051879883, 0.0042724609375, -0.033843994140625, -0.043060302734375, -0.01183319091796875, 0.003337860107421875, 0.017822265625, -0.0219879150390625, -0.0280609130859375, 0.0096588134765625, -0.0243072509765625, 0.041107177734375, -0.032379150390625, -0.0085601806640625, -0.01519012451171875, 0.0015859603881835938, 0.061614990234375, 0.0301971435546875, -0.05810546875, 0.0160064697265625, -0.029754638671875, 0.013916015625, 0.0196533203125, -0.033172607421875, -0.0204010009765625, -0.032318115234375, 0.01702880859375, 0.022125244140625, 0.004901885986328125, -0.015350341796875, -0.0374755859375, 0.0002524852752685547, 0.00958251953125, 0.0281219482421875, -0.001430511474609375, 0.058746337890625, -0.026580810546875, 0.03448486328125, 0.00015842914581298828, 0.041168212890625, 0.0076904296875, -0.018646240234375, 0.0258941650390625, 0.01314544677734375, -0.031585693359375, -0.06231689453125, 0.0207366943359375, 0.0142669677734375, 0.088623046875, -0.0088653564453125, -0.0236663818359375, 0.01482391357421875, 0.0015039443969726562, -0.0208587646484375, 0.039825439453125, 0.057159423828125, 0.0171356201171875, -0.005039215087890625, 0.0064544677734375, 0.00350189208984375, 0.01480865478515625, 0.012420654296875, -0.0196685791015625, 0.0115203857421875, 0.004390716552734375, -0.03839111328125, -0.049957275390625, 0.0443115234375, 0.06158447265625, 0.022491455078125, 0.031158447265625, 0.0148773193359375, 0.0156707763671875, 0.0149688720703125, -0.0176544189453125, 0.0194091796875, 0.02392578125, 0.05548095703125, -0.010650634765625, -0.00978851318359375, 0.035491943359375, -0.027618408203125, 0.00940704345703125, 0.1068115234375, 0.0565185546875, -0.1534423828125, 0.018402099609375, -0.002895355224609375, 0.03375244140625, 0.05853271484375, -0.01641845703125, 0.0066070556640625, 0.0229644775390625, 0.0190277099609375, -0.0194549560546875, -0.0316162109375, 0.00931549072265625, 0.0007643699645996094, -0.004169464111328125, -0.0110626220703125, 0.0240631103515625, -0.0065155029296875, -0.0672607421875, 0.0026493072509765625, 0.027679443359375, -0.0243072509765625, -0.0240325927734375, -0.028778076171875, 0.0295867919921875, -0.032379150390625, -0.049560546875, 0.037750244140625, -0.052459716796875, 0.01678466796875, 0.054779052734375, -0.0095977783203125, 0.061004638671875, 0.035888671875, -0.0004239082336425781, 0.01495361328125, -0.0147705078125, 0.001079559326171875, 0.06195068359375, -0.0211944580078125, -0.01232147216796875, -0.01093292236328125, -0.04449462890625, 0.0003032684326171875, -0.010894775390625, -0.01018524169921875, -0.0260772705078125, -0.043914794921875, 0.096923828125, 0.004459381103515625, -0.026153564453125, 0.015655517578125, 0.01186370849609375, -0.0213775634765625, -0.028594970703125, 0.01091766357421875, -0.057708740234375, -0.023895263671875, -0.0219268798828125, -0.02197265625, 0.02655029296875, -0.03460693359375, -0.0462646484375, 0.056732177734375, -0.02850341796875, 0.0180816650390625, -0.008636474609375, 0.0261383056640625, 0.0189208984375, 0.0186614990234375, -0.0180816650390625, 0.04559326171875, 0.028076171875, 0.05072021484375, -0.00896453857421875, -0.01152801513671875, 0.038970947265625, 0.034515380859375, 0.05682373046875, 0.0278167724609375, -0.07696533203125, 0.0065155029296875, 0.03375244140625, 0.0268096923828125, 0.0036182403564453125, 0.06787109375, 0.0156097412109375, 0.01087188720703125, 0.0284271240234375, -0.038787841796875, 0.0157470703125, -0.024658203125, -0.0011835098266601562, 0.00649261474609375, 0.007537841796875, -0.021728515625, -0.028472900390625, 0.0244903564453125, -0.0853271484375, 0.0029468536376953125, 0.0364990234375, 0.040771484375, -0.006824493408203125, -0.015350341796875, 0.00859832763671875, -0.0260162353515625, 0.0154571533203125, -0.018463134765625, 0.02996826171875, 0.0190277099609375, 0.006381988525390625, 0.0218963623046875, 0.00704193115234375, 0.017059326171875, -0.04974365234375, -0.007778167724609375, -0.00341796875, -0.00794219970703125, 0.0977783203125, 0.0202789306640625, 0.01898193359375, -0.057861328125, 0.01776123046875, 0.021575927734375, 0.0985107421875, -0.06671142578125, -0.042388916015625, 0.01220703125, 0.01776123046875, 0.0474853515625, 0.0245361328125, 0.0880126953125, -0.020477294921875, 0.0019292831420898438, -0.0296630859375, 0.02532958984375, 0.0273895263671875, -0.01325225830078125, -0.01206207275390625, -0.0138092041015625, -0.0219268798828125, 0.0606689453125, -0.01180267333984375, 0.0084686279296875, -0.0124359130859375, -0.026397705078125, -0.0028629302978515625, 0.0062255859375, 0.0577392578125, 0.024169921875, 0.003643035888671875, 0.00406646728515625, -0.00372314453125, -0.000644683837890625, -0.0254058837890625, -0.0251617431640625, -0.00177001953125, 0.03521728515625, 0.01488494873046875, -0.0307769775390625, -0.01611328125, 0.0174560546875, 0.0222015380859375, -0.01287078857421875, 0.01446533203125, -0.0032215118408203125, 0.013885498046875, -0.022674560546875, 0.033203125, 0.0224761962890625, -0.00962066650390625, -0.01401519775390625, 0.005840301513671875, 0.05902099609375, -0.0015544891357421875, 0.044219970703125, 0.01326751708984375, -0.033294677734375, 0.0031642913818359375, -0.018768310546875, 0.0946044921875, 0.030029296875, -0.07281494140625, -0.0240478515625, -0.00766754150390625, -0.04278564453125, 0.0294342041015625, 0.04864501953125, -0.003631591796875, -0.0183563232421875, -0.0099029541015625, 0.03240966796875, 0.0098114013671875, -0.04364013671875, 0.0005655288696289062, -0.0031871795654296875, 0.0340576171875, 0.0143585205078125, -0.058197021484375, -0.014923095703125, -0.03662109375, 0.0116729736328125, 0.023712158203125, 0.0489501953125, -0.00437164306640625, 0.033935546875, -0.056854248046875, 0.00452423095703125, -0.0265045166015625, -0.0616455078125, 0.053863525390625, 0.015289306640625, -0.0167083740234375, -0.004241943359375, -0.085693359375, 0.08404541015625, -0.0129547119140625, 0.037750244140625, 0.050140380859375, 0.0278167724609375, -0.0211944580078125, 0.0211181640625, -0.00963592529296875, -0.0277862548828125, -0.039093017578125, -0.01044464111328125, 0.0031795501708984375, 0.005573272705078125, -0.00022423267364501953, -0.024658203125, 0.048828125, -0.032928466796875, -0.01441192626953125, -0.0011005401611328125, -0.05950927734375, -0.01415252685546875, 0.025726318359375, -0.006313323974609375, -0.0248565673828125, 0.003070831298828125, -0.01149749755859375, 0.002803802490234375, 0.0039005279541015625, 0.0177001953125, 0.00673675537109375, 0.01194000244140625, -0.007198333740234375, 0.021087646484375, 0.020355224609375, -0.0089111328125, -0.0016832351684570312, 0.01529693603515625, -0.0265960693359375, -0.0025539398193359375, -0.04705810546875, -0.04150390625, -0.07208251953125, 0.0108489990234375, 0.0236358642578125, -0.0155029296875, -0.039764404296875, -0.0418701171875, 0.0021648406982421875, 0.0289764404296875, -0.0015020370483398438, -0.047149658203125, 0.00399017333984375, -0.02716064453125, 0.047515869140625, -0.03277587890625, -0.01436614990234375, 0.018890380859375, 0.047393798828125, -0.0170135498046875, 0.04241943359375, -0.02734375, -0.052886962890625, 0.0011625289916992188, -0.0015048980712890625, 0.047149658203125, 0.01320648193359375, -0.015777587890625, -0.03045654296875, -0.051177978515625, 0.0290679931640625, -0.044189453125, -0.0269317626953125, -0.0186614990234375, 0.01505279541015625, -0.00555419921875, -0.0146026611328125, 0.00926971435546875, 0.0028934478759765625, -0.00521087646484375, 0.0194244384765625, -0.032989501953125, -0.022674560546875, -0.0640869140625, -0.07916259765625, 0.05438232421875, 0.0079498291015625, -0.034881591796875, -0.04339599609375, 0.043731689453125, 0.017974853515625, -0.044281005859375, -0.01020050048828125, -0.039794921875, -0.024200439453125, -0.001064300537109375, 0.01158905029296875, 0.0174560546875, 0.008758544921875, 0.037750244140625, -0.033111572265625, 0.026123046875, 0.00311279296875, -0.028839111328125, -0.01549530029296875, 0.0053253173828125, 0.0252838134765625, 0.04058837890625, -0.0080413818359375, -0.0085906982421875, 0.0037364959716796875, -0.01244354248046875, -0.01617431640625, -0.039520263671875, 0.02862548828125, -0.007305145263671875, 0.00830078125, 0.004604339599609375, -0.01416015625, -0.00847625732421875, -0.04376220703125, -0.034149169921875, -0.003997802734375, -0.023895263671875, 0.0191802978515625, -0.08502197265625, -0.0199737548828125, 0.0097503662109375, -0.022857666015625, -0.021881103515625, 0.027740478515625, -0.030975341796875, 0.00839996337890625, 0.047119140625, -0.0000445246696472168, -0.0092010498046875, 0.0052032470703125, 0.05010986328125, -0.0280914306640625, 0.0115509033203125, -0.0051422119140625, 0.0174560546875, 0.0161285400390625, -0.0021800994873046875, 0.0457763671875, 0.01995849609375, -0.0362548828125, -0.005695343017578125, 0.0187225341796875, 0.004268646240234375, -0.0288238525390625, -0.055816650390625, -0.01001739501953125, 0.0338134765625, -0.01519012451171875, 0.046844482421875, -0.009429931640625, 0.02996826171875, 0.025909423828125, 0.047882080078125, -0.0033779144287109375, 0.0025119781494140625, -0.01090240478515625, 0.035919189453125, -0.01299285888671875, -0.0163421630859375, 0.0162506103515625, -0.032440185546875, 0.007175445556640625, 0.0128631591796875, 0.04425048828125, -0.014434814453125, 0.0027713775634765625, 0.03411865234375, 0.029754638671875, 0.01202392578125 ]
4e9ba2530580f9cc3de6723cc6df6b58dc640c50
Wordpress Stackexchange Q: Change text of Description in Image Library i would like to change or add text to the Media Library Overlay on the right side if you click on an image and can enter a description for the image. At the moment there stands "Description" or "Caption" (German Version installed). See Image here: A: Even if is not very flexible filter you can use the gettex hook. Only be aware that this filter runs for every string being translated, so can affect performarce if over-used. To narrow the performance impact you can add it only of admin footer, and remove it just after had use it: add_action('admin_footer', function() { add_filter( 'gettext', 'change_caption_text', 99, 3 ); }, 9 ); function change_caption_text( $trans = NULL, $untrans = NULL, $domain = NULL ) { if ( $untrans === 'Caption' && $domain === 'default' ) { remove_filter( current_filter(), __FUNCTION__ ); $trans = __( ':-)', 'your-domain' ); } return $trans; } Result:
Q: Change text of Description in Image Library i would like to change or add text to the Media Library Overlay on the right side if you click on an image and can enter a description for the image. At the moment there stands "Description" or "Caption" (German Version installed). See Image here: A: Even if is not very flexible filter you can use the gettex hook. Only be aware that this filter runs for every string being translated, so can affect performarce if over-used. To narrow the performance impact you can add it only of admin footer, and remove it just after had use it: add_action('admin_footer', function() { add_filter( 'gettext', 'change_caption_text', 99, 3 ); }, 9 ); function change_caption_text( $trans = NULL, $untrans = NULL, $domain = NULL ) { if ( $untrans === 'Caption' && $domain === 'default' ) { remove_filter( current_filter(), __FUNCTION__ ); $trans = __( ':-)', 'your-domain' ); } return $trans; } Result:
wordpress
{ "language": "en", "length": 157, "provenance": "stackexchange_00019.jsonl.gz:444105", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140766" }
[ -0.006900787353515625, -0.0084686279296875, 0.0010309219360351562, 0.04986572265625, -0.0250396728515625, -0.0257568359375, 0.045745849609375, -0.0220794677734375, 0.015716552734375, 0.0325927734375, 0.0111846923828125, -0.00815582275390625, 0.0223846435546875, -0.0262603759765625, -0.02374267578125, -0.0018224716186523438, 0.00616455078125, -0.01146697998046875, 0.0231475830078125, -0.00716400146484375, -0.008514404296875, -0.00591278076171875, 0.052703857421875, -0.0360107421875, -0.00920867919921875, -0.040802001953125, 0.1026611328125, -0.022430419921875, -0.0013399124145507812, -0.026275634765625, 0.010162353515625, 0.01222991943359375, 0.025970458984375, -0.0012044906616210938, -0.0299530029296875, -0.004016876220703125, 0.01007080078125, -0.00783538818359375, 0.00092315673828125, 0.00865936279296875, 0.04608154296875, -0.01467132568359375, -0.01922607421875, 0.019805908203125, -0.019256591796875, -0.0036144256591796875, 0.006622314453125, -0.04412841796875, 0.01071929931640625, 0.01340484619140625, 0.03460693359375, -0.01371002197265625, 0.04022216796875, -0.00748443603515625, -0.018798828125, 0.00629425048828125, -0.040313720703125, 0.0615234375, 0.025482177734375, 0.00850677490234375, -0.01247406005859375, 0.0185089111328125, -0.006946563720703125, -0.01056671142578125, -0.001129150390625, -0.042694091796875, 0.004791259765625, 0.0411376953125, -0.0404052734375, -0.0341796875, 0.03143310546875, -0.00933837890625, 0.020965576171875, -0.084228515625, 0.0132904052734375, 0.08154296875, -0.047088623046875, -0.01210784912109375, 0.02099609375, -0.04803466796875, 0.0721435546875, 0.01551055908203125, 0.03643798828125, 0.030029296875, -0.027740478515625, 0.0075836181640625, 0.000885009765625, -0.029449462890625, -0.0265045166015625, 0.01849365234375, -0.01442718505859375, -0.0221405029296875, -0.0032329559326171875, 0.031036376953125, 0.0136260986328125, -0.0013017654418945312, 0.02105712890625, 0.037445068359375, -0.0001785755157470703, 0.026763916015625, -0.019287109375, -0.030487060546875, 0.024932861328125, -0.0295867919921875, 0.006923675537109375, -0.04815673828125, -0.0247039794921875, -0.021728515625, 0.045867919921875, 0.054718017578125, -0.048980712890625, 0.0419921875, -0.00995635986328125, 0.03607177734375, -0.0258331298828125, -0.0019159317016601562, -0.023529052734375, -0.0030364990234375, -0.03857421875, 0.038177490234375, 0.005931854248046875, 0.00965118408203125, 0.01245880126953125, -0.023040771484375, 0.0101165771484375, -0.0222320556640625, -0.02496337890625, -0.02239990234375, 0.045501708984375, -0.01605224609375, -0.0279693603515625, -0.003505706787109375, 0.059967041015625, 0.045684814453125, 0.04376220703125, 0.0013866424560546875, -0.006427764892578125, -0.007778167724609375, 0.02020263671875, 0.00023627281188964844, 0.026153564453125, -0.038909912109375, 0.0010786056518554688, 0.034698486328125, -0.00264739990234375, 0.026824951171875, -0.00015342235565185547, 0.0010395050048828125, -0.00640869140625, -0.059356689453125, 0.03253173828125, -0.05743408203125, 0.042266845703125, -0.01416015625, -0.01134490966796875, -0.0499267578125, 0.05767822265625, -0.0655517578125, 0.0005779266357421875, -0.061737060546875, 0.01464080810546875, -0.0017633438110351562, 0.0020503997802734375, 0.016815185546875, -0.0153350830078125, 0.023834228515625, -0.00302886962890625, -0.008758544921875, 0.01122283935546875, 0.01434326171875, -0.017303466796875, 0.0151824951171875, -0.0073394775390625, -0.00475311279296875, -0.007015228271484375, 0.01806640625, -0.010772705078125, 0.054656982421875, 0.017913818359375, 0.003932952880859375, -0.010162353515625, -0.03533935546875, 0.061279296875, -0.023162841796875, -0.0045013427734375, 0.0009765625, 0.008819580078125, 0.03875732421875, 0.012359619140625, 0.043548583984375, -0.0261688232421875, -0.01363372802734375, -0.03570556640625, -0.0017576217651367188, -0.029815673828125, -0.00476837158203125, -0.0039520263671875, 0.007266998291015625, -0.01181793212890625, 0.0244598388671875, 0.05340576171875, 0.01152801513671875, -0.01837158203125, 0.0225677490234375, -0.032501220703125, -0.02374267578125, -0.0128173828125, 0.00342559814453125, -0.0247039794921875, 0.0269775390625, 0.0099029541015625, -0.02667236328125, -0.009918212890625, 0.01300811767578125, 0.011077880859375, -0.0552978515625, 0.00234222412109375, 0.0418701171875, 0.031005859375, 0.028106689453125, 0.04327392578125, -0.00847625732421875, 0.04669189453125, 0.0172271728515625, 0.00836181640625, 0.0176849365234375, -0.017852783203125, 0.01471710205078125, 0.046356201171875, 0.0231781005859375, 0.0203857421875, 0.00189208984375, 0.02899169921875, 0.0238037109375, -0.023101806640625, -0.0010862350463867188, -0.01473236083984375, -0.06695556640625, -0.00959014892578125, 0.0469970703125, 0.03533935546875, 0.044158935546875, 0.03875732421875, 0.0648193359375, 0.046142578125, 0.013641357421875, 0.03570556640625, -0.015655517578125, -0.0006251335144042969, -0.0062408447265625, -0.0039005279541015625, -0.026947021484375, 0.030120849609375, -0.08465576171875, 0.032135009765625, 0.035980224609375, -0.0209808349609375, -0.060516357421875, 0.0150146484375, 0.00457763671875, 0.014373779296875, 0.01342010498046875, -0.01502227783203125, 0.03411865234375, 0.0031604766845703125, 0.0173797607421875, 0.0105133056640625, 0.0216522216796875, -0.0521240234375, 0.01654052734375, 0.03192138671875, 0.004940032958984375, -0.010009765625, 0.0186004638671875, -0.015380859375, -0.015777587890625, -0.035552978515625, 0.0293121337890625, -0.04010009765625, -0.01432037353515625, 0.01018524169921875, 0.03961181640625, -0.057830810546875, -0.00835418701171875, 0.0221405029296875, -0.036529541015625, -0.04803466796875, 0.0016183853149414062, -0.054473876953125, -0.044830322265625, -0.00855255126953125, 0.0202178955078125, -0.0177459716796875, -0.0037593841552734375, -0.023406982421875, -0.00855255126953125, 0.032501220703125, -0.0474853515625, 0.031158447265625, -0.0269317626953125, 0.07708740234375, 0.06396484375, -0.026153564453125, 0.0312347412109375, -0.0033473968505859375, -0.001110076904296875, 0.01190185546875, 0.007442474365234375, -0.01267242431640625, -0.0245208740234375, -0.0270233154296875, 0.013275146484375, -0.0163421630859375, -0.0159912109375, -0.04296875, -0.052520751953125, -0.040496826171875, -0.0567626953125, -0.095458984375, -0.0220947265625, 0.015869140625, -0.048583984375, 0.0031147003173828125, 0.0184478759765625, -0.0367431640625, -0.036102294921875, 0.06536865234375, -0.0026397705078125, -0.010833740234375, -0.01251220703125, -0.025054931640625, -0.027587890625, -0.04644775390625, 0.0017147064208984375, 0.0007295608520507812, 0.0184783935546875, 0.00598907470703125, 0.04644775390625, -0.000047206878662109375, -0.03717041015625, 0.0335693359375, 0.059661865234375, 0.02294921875, 0.03289794921875, 0.060394287109375, -0.06451416015625, -0.01568603515625, 0.0008106231689453125, 0.0218048095703125, 0.024444580078125, -0.0309600830078125, 0.004940032958984375, -0.01739501953125, -0.0090789794921875, -0.00421905517578125, -0.034210205078125, 0.0023040771484375, 0.0143890380859375, -0.0216827392578125, -0.04815673828125, -0.037109375, -0.01389312744140625, -0.03228759765625, 0.0305633544921875, 0.01116180419921875, 0.0180206298828125, -0.0195465087890625, 0.06109619140625, -0.020782470703125, -0.0098876953125, 0.04998779296875, -0.048553466796875, -0.0312347412109375, -0.0186767578125, -0.0201568603515625, -0.0246429443359375, -0.0001817941665649414, -0.021240234375, -0.0301361083984375, -0.0184173583984375, 0.0217742919921875, -0.0245361328125, 0.0235595703125, -0.0168914794921875, -0.032073974609375, 0.029541015625, -0.0230560302734375, -0.006977081298828125, -0.00186920166015625, -0.0250244140625, 0.02935791015625, 0.0863037109375, -0.0138702392578125, -0.0204010009765625, 0.01554107666015625, -0.01120758056640625, 0.028411865234375, 0.033538818359375, -0.0219268798828125, -0.01535797119140625, -0.072265625, 0.007793426513671875, 0.00501251220703125, -0.0218658447265625, -0.0088348388671875, 0.01215362548828125, -0.0146636962890625, -0.0245208740234375, 0.0242767333984375, 0.034820556640625, -0.02825927734375, 0.04205322265625, -0.050262451171875, 0.04840087890625, -0.033782958984375, -0.015289306640625, -0.0777587890625, -0.040496826171875, 0.030181884765625, 0.0760498046875, -0.0225982666015625, -0.000029325485229492188, -0.0071563720703125, 0.06390380859375, 0.042938232421875, 0.036895751953125, 0.004608154296875, -0.036407470703125, 0.061737060546875, -0.009521484375, 0.0146942138671875, -0.018798828125, -0.0305023193359375, -0.012664794921875, -0.01403045654296875, 0.075927734375, 0.01959228515625, 0.05078125, 0.02264404296875, -0.01016998291015625, -0.0643310546875, -0.006633758544921875, 0.0023441314697265625, 0.01068878173828125, -0.00998687744140625, -0.0166168212890625, -0.01303863525390625, -0.0511474609375, 0.030792236328125, 0.0178375244140625, 0.000492095947265625, 0.0037937164306640625, 0.03253173828125, 0.00970458984375, -0.044677734375, -0.03961181640625, 0.00958251953125, 0.049102783203125, -0.006732940673828125, -0.04998779296875, -0.0213165283203125, -0.039825439453125, 0.013458251953125, 0.01334381103515625, -0.01763916015625, 0.01541900634765625, 0.033172607421875, -0.0021343231201171875, -0.017303466796875, 0.000017404556274414062, -0.0223846435546875, 0.00772857666015625, -0.0045166015625, -0.03228759765625, 0.034027099609375, -0.031463623046875, 0.01166534423828125, -0.0017213821411132812, 0.03179931640625, -0.003734588623046875, -0.02191162109375, 0.0127410888671875, 0.02734375, -0.01331329345703125, -0.02813720703125, 0.023162841796875, -0.03094482421875, 0.005340576171875, 0.0260772705078125, 0.0036773681640625, -0.049407958984375, -0.046966552734375, 0.0279388427734375, 0.0016889572143554688, -0.0175323486328125, 0.05731201171875, -0.0112762451171875, 0.049652099609375, -0.028594970703125, -0.053070068359375, 0.0242919921875, -0.036956787109375, 0.0162200927734375, 0.04083251953125, 0.06707763671875, -0.0012159347534179688, -0.023284912109375, 0.027069091796875, 0.0238494873046875, 0.035980224609375, 0.036712646484375, -0.00017344951629638672, 0.041046142578125, 0.0090179443359375, 0.0036678314208984375, 0.005519866943359375, 0.030059814453125, -0.002681732177734375, 0.010101318359375, -0.01461029052734375, 0.01383209228515625, 0.01910400390625, 0.006824493408203125, 0.007965087890625, 0.02392578125, -0.0179595947265625, 0.027496337890625, 0.024688720703125, -0.0250396728515625, 0.004547119140625, 0.043701171875, 0.046234130859375, -0.004512786865234375, -0.0286102294921875, -0.0311737060546875, -0.069091796875, -0.01800537109375, 0.048980712890625, 0.0142974853515625, -0.062286376953125, -0.03839111328125, -0.004230499267578125, 0.0296173095703125, -0.02081298828125, 0.00048089027404785156, -0.050811767578125, -0.0309600830078125, -0.0015554428100585938, -0.00923919677734375, -0.0164031982421875, 0.00009232759475708008, 0.00853729248046875, -0.0054473876953125, -0.029876708984375, -0.03741455078125, 0.0165863037109375, -0.015228271484375, 0.00026297569274902344, 0.0194244384765625, 0.032135009765625, -0.0340576171875, 0.0164337158203125, 0.0001533031463623047, 0.0004780292510986328, -0.0265655517578125, 0.036346435546875, 0.01059722900390625, -0.00885772705078125, 0.078125, -0.03369140625, -0.016021728515625, -0.048309326171875, -0.06158447265625, -0.04534912109375, -0.01239776611328125, 0.0033817291259765625, -0.016204833984375, 0.0111541748046875, -0.033050537109375, 0.02301025390625, 0.0157012939453125, 0.0301361083984375, -0.00780487060546875, 0.062744140625, -0.0304718017578125, 0.036285400390625, 0.0292205810546875, 0.01345062255859375, -0.0009751319885253906, 0.023223876953125, 0.0024356842041015625, -0.0174560546875, -0.0340576171875, -0.031402587890625, 0.0247955322265625, 0.025390625, -0.0008835792541503906, 0.035552978515625, 0.05340576171875, 0.0245361328125, 0.0295867919921875, -0.0199127197265625, -0.005908966064453125, -0.01678466796875, 0.032867431640625, -0.03985595703125, 0.034820556640625, 0.0141448974609375, -0.01873779296875, 0.0703125, -0.028045654296875, -0.00904083251953125, 0.0293121337890625, -0.041046142578125, 0.03192138671875, 0.063720703125, -0.033111572265625, -0.00226593017578125, 0.040679931640625, -0.0034542083740234375, 0.038330078125, -0.0030765533447265625, 0.02349853515625, 0.050140380859375, -0.016571044921875, 0.00391387939453125, 0.0236053466796875, 0.029571533203125, -0.0150146484375, 0.0024852752685546875, 0.0220184326171875, -0.033599853515625, 0.0028018951416015625, 0.0174407958984375, 0.042327880859375, -0.00714874267578125, -0.0109100341796875, 0.00376129150390625, -0.0254669189453125, 0.020111083984375, 0.004802703857421875, -0.024749755859375, -0.0312042236328125, 0.01922607421875, -0.07781982421875, -0.037689208984375, -0.0187530517578125, -0.0117340087890625, -0.00656890869140625, -0.01690673828125, 0.0367431640625, 0.01116943359375, 0.00383758544921875, -0.0304412841796875, 0.01125335693359375, 0.00785064697265625, -0.0132904052734375, -0.0034198760986328125, -0.00495147705078125, -0.015655517578125, -0.040924072265625, -0.013092041015625, -0.031494140625, 0.004741668701171875, -0.006381988525390625, 0.019012451171875, 0.00855255126953125, 0.044158935546875, -0.0305938720703125, 0.03314208984375, 0.00971221923828125, -0.025390625, 0.0159149169921875, -0.01305389404296875, -0.0135345458984375, 0.01302337646484375, -0.0396728515625, -0.0008559226989746094, -0.044708251953125, 0.0276031494140625, -0.01392364501953125, -0.0684814453125, 0.030029296875, -0.055389404296875, 0.01131439208984375, 0.03076171875, -0.007648468017578125, -0.0018215179443359375, 0.004543304443359375, 0.046905517578125, -0.06689453125, -0.05523681640625, 0.0169219970703125, -0.0836181640625, -0.0352783203125, -0.0172271728515625, -0.0732421875, 0.09063720703125, 0.01299285888671875, 0.037322998046875, -0.0146331787109375, 0.03668212890625, -0.03607177734375, 0.0081787109375, -0.01751708984375, 0.0174407958984375, -0.009246826171875, 0.041717529296875, -0.027008056640625, -0.00955963134765625, 0.0169677734375, 0.057891845703125, 0.047607421875, 0.01146697998046875, 0.0012388229370117188, -0.041900634765625, 0.0015106201171875, 0.0667724609375, 0.008209228515625, -0.0011529922485351562, 0.0010728836059570312, 0.0413818359375, 0.01358795166015625, -0.048675537109375, 0.0258331298828125, -0.04608154296875, -0.0239410400390625, 0.04296875, 0.022705078125, 0.02154541015625, 0.0111541748046875, 0.03448486328125, -0.03369140625, -0.005496978759765625, 0.047454833984375, -0.05401611328125, -0.003635406494140625, 0.01422882080078125, 0.0196380615234375, -0.004878997802734375, 0.051300048828125, -0.0294036865234375, 0.044403076171875, -0.0042877197265625, 0.043914794921875, 0.01078033447265625, 0.004329681396484375, 0.060028076171875, 0.0170440673828125, 0.013275146484375, 0.036407470703125, 0.003925323486328125, -0.01316070556640625, 0.016845703125, 0.0230865478515625, 0.009124755859375, 0.046295166015625, 0.05340576171875, 0.0038547515869140625, -0.0265655517578125, 0.0167694091796875, 0.0235443115234375, -0.0078125, -0.019439697265625, -0.03961181640625, 0.00498199462890625, -0.0322265625, -0.036407470703125, -0.0005254745483398438, -0.0236663818359375, 0.0170440673828125, 0.043243408203125, 0.0123443603515625, -0.002391815185546875, -0.024169921875, -0.03155517578125, -0.079833984375, 0.0657958984375, 0.023834228515625, 0.06170654296875, -0.002788543701171875, 0.0662841796875, -0.0022602081298828125, -0.0244598388671875, 0.00989532470703125, -0.01377105712890625, 0.01073455810546875, -0.004222869873046875, -0.027618408203125, -0.02374267578125, 0.029937744140625, 0.0225677490234375, 0.01256561279296875, 0.01282501220703125, 0.00780487060546875, 0.0323486328125, 0.031402587890625, 0.0010471343994140625, 0.08697509765625, 0.0004057884216308594, 0.0183563232421875, -0.047882080078125, 0.0290069580078125, 0.0161285400390625, -0.00801849365234375, -0.01142120361328125, -0.01415252685546875, 0.058746337890625, -0.012725830078125, 0.03240966796875, -0.0094146728515625, -0.037750244140625, -0.0225677490234375, 0.0242767333984375, 0.0733642578125, 0.0289154052734375, -0.0408935546875, 0.01129150390625, -0.033050537109375, -0.063720703125, 0.01061248779296875, 0.029083251953125, -0.036468505859375, 0.038665771484375, 0.00873565673828125, -0.006290435791015625, 0.0160064697265625, -0.03057861328125, 0.016754150390625, 0.0008397102355957031, -0.0027618408203125, 0.0002579689025878906, 0.0073089599609375, 0.0017805099487304688, 0.0211334228515625, 0.031219482421875, -0.006908416748046875, 0.03668212890625, -0.007049560546875, 0.00951385498046875, -0.00440216064453125, -0.03558349609375, 0.006580352783203125, -0.03216552734375, 0.027252197265625, -0.01387786865234375, -0.0118255615234375, 0.0041656494140625, -0.008819580078125, 0.07086181640625, 0.02520751953125, -0.008087158203125, 0.04833984375, 0.003154754638671875, -0.005756378173828125, -0.03192138671875, 0.002506256103515625, -0.026763916015625, -0.037689208984375, -0.0110321044921875, 0.030029296875, 0.006870269775390625, 0.0033969879150390625, -0.0225830078125, 0.0435791015625, 0.00748443603515625, 0.004547119140625, 0.0094451904296875, -0.0225982666015625, 0.0297088623046875, 0.044952392578125, -0.037322998046875, 0.0013132095336914062, -0.003787994384765625, -0.02020263671875, 0.0125274658203125, 0.00959014892578125, 0.026397705078125, 0.0003437995910644531, 0.0013475418090820312, -0.0207366943359375, -0.04107666015625, 0.01078033447265625, -0.045562744140625, -0.004329681396484375, -0.018402099609375, 0.019317626953125, -0.011505126953125, 0.0097503662109375, -0.029205322265625, -0.08477783203125, -0.00920867919921875, -0.00313568115234375, -0.056854248046875, -0.042266845703125, -0.033416748046875, -0.00750732421875, 0.01093292236328125, 0.0022487640380859375, -0.029510498046875, 0.0299072265625, -0.024322509765625, -0.005336761474609375, 0.00666046142578125, -0.050384521484375, 0.018798828125, 0.05914306640625, -0.044158935546875, -0.07000732421875, -0.040985107421875, 0.0012493133544921875, -0.07861328125, 0.0186614990234375, 0.03765869140625, -0.01336669921875, -0.0233001708984375, 0.048431396484375, 0.0294036865234375, 0.091064453125, -0.036407470703125, -0.0382080078125, -0.0186920166015625, 0.021240234375, 0.0181884765625, -0.034088134765625, 0.0049591064453125, -0.025970458984375, -0.002086639404296875, -0.0009927749633789062, -0.01348876953125, 0.00032401084899902344, -0.0386962890625, -0.05902099609375, 0.0084686279296875, 0.00814056396484375, -0.033782958984375, -0.0272216796875, 0.021484375, -0.03460693359375, 0.0498046875, 0.009063720703125, -0.0271759033203125, 0.0197906494140625, 0.0212554931640625, 0.01116180419921875, 0.06640625, -0.006023406982421875, 0.0025615692138671875, -0.05743408203125, -0.01515960693359375, -0.032745361328125, 0.0380859375, 0.02056884765625, -0.01525115966796875, -0.015472412109375, -0.01202392578125, -0.08233642578125, -0.07080078125, -0.049224853515625, 0.052764892578125, -0.028228759765625, -0.06494140625, 0.0193023681640625, 0.028472900390625, 0.0750732421875, 0.047576904296875, 0.006092071533203125, -0.078125, 0.034576416015625, 0.0270233154296875, 0.0007796287536621094, 0.0033168792724609375, -0.00894927978515625, -0.034393310546875, -0.02288818359375, 0.0010061264038085938, -0.037139892578125, -0.01120758056640625, 0.00705718994140625, -0.0557861328125, 0.0091552734375, -0.004619598388671875, -0.023590087890625, -0.0081024169921875, -0.0462646484375, 0.0980224609375, -0.05126953125, -0.003948211669921875, -0.00423431396484375, 0.04443359375, 0.027679443359375, -0.053314208984375, -0.034393310546875, -0.03314208984375, 0.0215911865234375, 0.0521240234375, -0.0029201507568359375, 0.03656005859375, 0.007720947265625, 0.0012178421020507812, -0.01385498046875, -0.0006432533264160156, 0.0026073455810546875, -0.0032863616943359375, -0.03082275390625, 0.038543701171875, -0.01247406005859375, 0.026275634765625, -0.0169830322265625, 0.0654296875, -0.0006670951843261719, 0.01454925537109375, -0.03369140625, 0.0083770751953125, 0.01039886474609375, -0.07037353515625, 0.0203857421875, 0.0123443603515625, -0.0256500244140625, 0.006092071533203125, -0.0017499923706054688, -0.03558349609375, -0.0260772705078125, 0.017578125 ]
8314ce8229be25790d8614a0cafc418038a7e914
Wordpress Stackexchange Q: how to have the gallery shortcode output one single UL list instead of several DL? I need the built-in gallery shortcode to output UL instead of DL. How can I do it? I know I can use the 'post_gallery' filter, but that means almost duplicating the media's gallery_shortcode function. I'd like to find a less 'verbose' solution. Thank you A: You can use the the following attributes for the gallery shortcode: [gallery itemtag="ul" icontag="li" captiontag="li"] The problem with this is that the gallery shortcode wraps the image and the caption in different elements(thats why the default solution is using dl-dt-dd), so this will generate one li element for the image, and one for the caption. You can still style it using CSS though, because both of the element has unique classnames.
Q: how to have the gallery shortcode output one single UL list instead of several DL? I need the built-in gallery shortcode to output UL instead of DL. How can I do it? I know I can use the 'post_gallery' filter, but that means almost duplicating the media's gallery_shortcode function. I'd like to find a less 'verbose' solution. Thank you A: You can use the the following attributes for the gallery shortcode: [gallery itemtag="ul" icontag="li" captiontag="li"] The problem with this is that the gallery shortcode wraps the image and the caption in different elements(thats why the default solution is using dl-dt-dd), so this will generate one li element for the image, and one for the caption. You can still style it using CSS though, because both of the element has unique classnames. A: Ok, so I rewrote the gallery shortcode function by copying the original and removing/adding/changing what I needed, and now I share it with you. The major things I added/changed are: * *One single UL/LI list per gallery instead of a DL for each damned item.. *Removed 'itemtag' attr, since there's no point in using another tag for items inside an UL *'icontag' now defaults to 'figure', 'captiontag' now defaults to 'p' *new 'class' attr for adding a custom class to the container UL *new 'first-in-row', 'last-in-row', 'first-row', 'last-row' helper classes for LI items (though I strongly recommend to use nth-child css selectors instead) Here's the code: //remove styles: I'll use mine add_filter('use_default_gallery_style','__return_false'); //remove default shortcode remove_shortcode('gallery'); //add new shortcode add_shortcode('gallery', 'custom_gallery'); function custom_gallery($attr) { $post = get_post(); static $instance = 0; $instance++; if(!empty($attr['ids'])){ // 'ids' is explicitly ordered, unless you specify otherwise. if(empty($attr['orderby'])){ $attr['orderby'] = 'post__in'; } $attr['include'] = $attr['ids']; } $output = ''; // We're trusting author input, so let's at least make sure it looks like a valid orderby statement if(isset($attr['orderby'])){ $attr['orderby'] = sanitize_sql_orderby($attr['orderby']); if(!$attr['orderby']) unset($attr['orderby']); } extract(shortcode_atts(array( 'order' => 'ASC', 'orderby' => 'menu_order ID', 'id' => $post ? $post->ID : 0, 'icontag' => 'figure', 'captiontag' => 'p', 'columns' => 3, 'size' => 'thumbnail', 'include' => '', 'exclude' => '', 'link' => '', 'class' => ''//now you can add custom class to container UL ), $attr, 'gallery')); $id = intval($id); if('RAND' == $order) $orderby = 'none'; if(!empty($include)){ $_attachments = get_posts(array( 'include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby )); $attachments = array(); foreach($_attachments as $key => $val){ $attachments[$val->ID] = $_attachments[$key]; } } elseif (!empty($exclude)){ $attachments = get_children(array( 'post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby )); } else { $attachments = get_children(array( 'post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby )); } if(empty($attachments)) return ''; //if ( is_feed() ) //removed, see original in media.php $itemtag = tag_escape('li');//new tag for item $captiontag = tag_escape($captiontag); $icontag = tag_escape($icontag); //valid tags check removed, see original in media.php $columns = intval($columns); $selector = "gallery-{$instance}"; $size_class = sanitize_html_class( $size ); //new tag for container $output = "<ul id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class} {$class}'>"; $i = 0; $c = count($attachments); $o = (int)floor($c/$columns)*$columns; foreach ( $attachments as $id => $attachment ) { if(!empty($link) && 'file' === $link) $image_output = wp_get_attachment_link($id,$size,false,false); elseif(!empty($link) && 'none' === $link) $image_output = wp_get_attachment_image($id,$size,false); else $image_output = wp_get_attachment_link( $id, $size, true, false ); $image_meta = wp_get_attachment_metadata($id); $orientation = ''; if(isset($image_meta['height'], $image_meta['width'])) $orientation = ($image_meta['height'] > $image_meta['width']) ? 'portrait' : 'landscape'; //setup custom aux classes to help style $m = ++$i % $columns; $item_pos_class = ($m == 1) ? 'first-in-row' : (($m == 0) ? 'last-in-row' : ''); $row_class = ($i <= $columns) ? 'first-row' : (($i > $o) ? 'last-row' : ''); //added: custom aux classes $output .= "<{$itemtag} class='gallery-item {$item_pos_class} {$row_class}'>"; $output .= "<{$icontag} class='gallery-icon {$orientation}'>$image_output</{$icontag}>"; if($captiontag && trim($attachment->post_excerpt)){ $output .= "<{$captiontag} class='wp-caption-text gallery-caption'>" . wptexturize($attachment->post_excerpt) . "</{$captiontag}>"; } $output .= "</{$itemtag}>"; } //changed BR>clear:both with a more conventional clearfix div $output .= "</ul>\n<div class='clearfix'></div>"; return $output; }//end custom gallery And just to complete the gallery shortcode "chapter", here I show you how to eventually programmatically change the default and/or user defined attributes. Say for example I need to change the size attr based on number of items: add_filter('shortcode_atts_gallery','set_gallery_thumbs_size',10,3); function set_gallery_thumbs_size($out, $pairs, $atts) { //in this case, if size was defined by the user, keep original and stop here if(isset($atts['size'])) return $out; //get number of images $c = count(explode(',',$atts['ids'])); //set different sizes based on items count //new sizes were created with add_image_size() and image_size_names_choose filter (see wp docs) $atts['size'] = ($c > 2) ? 'thumb-3c' : ( ($c > 1) ? 'thumb-2c' : 'thumbnail'); //merge original array with new one and return it return array_merge($out,$atts); } Hope it will help other people searching for a cleaner gallery markup.
wordpress
{ "language": "en", "length": 795, "provenance": "stackexchange_00019.jsonl.gz:444159", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/140934" }
[ 0.02117919921875, -0.0017366409301757812, -0.00533294677734375, 0.0019359588623046875, -0.0168609619140625, -0.021514892578125, 0.031707763671875, -0.0251312255859375, 0.00518798828125, 0.0213775634765625, 0.005184173583984375, 0.01025390625, -0.06744384765625, -0.024169921875, -0.013824462890625, -0.0284576416015625, 0.023956298828125, 0.0014181137084960938, 0.006359100341796875, -0.01546478271484375, 0.007495880126953125, -0.01495361328125, -0.0165252685546875, 0.07623291015625, 0.020233154296875, -0.044097900390625, 0.078857421875, -0.011810302734375, 0.0196990966796875, -0.0259552001953125, 0.019378662109375, -0.012451171875, 0.05133056640625, 0.007579803466796875, -0.06500244140625, 0.037322998046875, -0.06488037109375, 0.0200653076171875, -0.03216552734375, 0.0186767578125, 0.01548004150390625, -0.01523590087890625, 0.0168304443359375, -0.004085540771484375, -0.03216552734375, 0.0121917724609375, -0.00022554397583007812, -0.009033203125, 0.0284576416015625, -0.016387939453125, 0.0129547119140625, 0.01041412353515625, 0.021087646484375, -0.0357666015625, -0.0230255126953125, 0.013458251953125, 0.000037789344787597656, -0.049896240234375, 0.03338623046875, -0.0185394287109375, -0.00739288330078125, -0.022735595703125, 0.0345458984375, -0.022430419921875, 0.00006824731826782227, 0.0197601318359375, 0.007152557373046875, 0.0169219970703125, -0.0019388198852539062, 0.011383056640625, -0.006084442138671875, -0.04656982421875, 0.0096588134765625, -0.016693115234375, -0.02691650390625, 0.03533935546875, 0.0071258544921875, 0.0172882080078125, 0.003017425537109375, -0.0201263427734375, 0.038330078125, 0.0219268798828125, -0.0276947021484375, -0.00904083251953125, 0.00691986083984375, 0.01175689697265625, 0.004913330078125, -0.019500732421875, -0.00930023193359375, 0.0185089111328125, -0.0188751220703125, 0.01580810546875, 0.0062103271484375, 0.0347900390625, -0.023681640625, 0.01267242431640625, 0.0013399124145507812, 0.06121826171875, -0.01110076904296875, 0.03436279296875, -0.01291656494140625, -0.027374267578125, 0.03826904296875, -0.052886962890625, 0.002544403076171875, -0.0145416259765625, -0.003055572509765625, 0.02178955078125, 0.061126708984375, 0.031524658203125, -0.01456451416015625, 0.061798095703125, -0.0222015380859375, -0.009521484375, 0.0114898681640625, 0.01361846923828125, -0.0594482421875, 0.063720703125, -0.01561737060546875, 0.03753662109375, 0.008270263671875, 0.034881591796875, 0.01390838623046875, 0.017425537109375, 0.012451171875, 0.044342041015625, 0.007747650146484375, -0.08197021484375, 0.07354736328125, -0.048858642578125, -0.04144287109375, 0.040191650390625, 0.0701904296875, 0.0184173583984375, 0.02911376953125, 0.0231781005859375, 0.020660400390625, -0.01328277587890625, 0.0216064453125, -0.00788116455078125, 0.01971435546875, -0.003101348876953125, 0.004390716552734375, 0.0025768280029296875, 0.006198883056640625, 0.0233612060546875, 0.01995849609375, 0.025726318359375, -0.0013952255249023438, -0.07427978515625, 0.03363037109375, 0.000751495361328125, 0.02166748046875, 0.0203399658203125, -0.01015472412109375, -0.0517578125, 0.036773681640625, -0.039825439453125, 0.043731689453125, -0.06402587890625, -0.01438140869140625, 0.00183868408203125, 0.0357666015625, -0.053924560546875, -0.05145263671875, -0.0164337158203125, -0.027587890625, -0.00860595703125, 0.00963592529296875, 0.0267181396484375, -0.006439208984375, -0.043060302734375, -0.03375244140625, -0.000743865966796875, -0.00621795654296875, 0.0278472900390625, -0.025970458984375, -0.006877899169921875, 0.03619384765625, 0.00010657310485839844, -0.0160064697265625, -0.0228118896484375, 0.036163330078125, 0.0133056640625, -0.058319091796875, 0.049346923828125, 0.002025604248046875, 0.058685302734375, 0.00969696044921875, -0.0014028549194335938, 0.0380859375, 0.025787353515625, -0.01800537109375, -0.00464630126953125, 0.02789306640625, -0.01190185546875, -0.0390625, -0.0233917236328125, -0.00240325927734375, 0.001232147216796875, -0.01131439208984375, 0.00582122802734375, -0.0208892822265625, 0.01904296875, -0.004177093505859375, -0.01232147216796875, -0.003681182861328125, 0.016754150390625, -0.0870361328125, 0.0102386474609375, 0.0340576171875, -0.00603485107421875, -0.04388427734375, 0.0419921875, 0.0477294921875, 0.00885009765625, -0.039825439453125, 0.01165008544921875, 0.0022068023681640625, -0.0025768280029296875, 0.028564453125, -0.0264892578125, 0.0166168212890625, 0.01346588134765625, 0.052032470703125, -0.013916015625, -0.0173797607421875, -0.040985107421875, -0.006191253662109375, 0.006786346435546875, -0.0968017578125, 0.03466796875, 0.0097808837890625, -0.00846099853515625, -0.0447998046875, 0.0032749176025390625, -0.01885986328125, -0.01494598388671875, -0.004070281982421875, 0.02947998046875, 0.045867919921875, 0.03173828125, 0.02392578125, 0.01078033447265625, 0.10205078125, 0.0308074951171875, 0.036285400390625, -0.042236328125, -0.009613037109375, -0.0024166107177734375, 0.0007905960083007812, 0.00708770751953125, 0.0302886962890625, -0.0243682861328125, 0.0250091552734375, 0.034332275390625, 0.03509521484375, 0.004589080810546875, 0.007564544677734375, 0.0174560546875, -0.0014104843139648438, 0.052520751953125, -0.0185394287109375, 0.0210113525390625, 0.022186279296875, -0.00313568115234375, 0.0294647216796875, 0.022186279296875, -0.0150909423828125, 0.001659393310546875, 0.01361846923828125, 0.0205078125, 0.0132904052734375, 0.0288543701171875, -0.047088623046875, 0.045806884765625, -0.002796173095703125, -0.006946563720703125, 0.018035888671875, 0.01525115966796875, -0.00628662109375, 0.0304107666015625, 0.00007081031799316406, -0.0162506103515625, 0.01116180419921875, -0.0250091552734375, -0.01308441162109375, -0.0033397674560546875, -0.04669189453125, -0.043212890625, -0.00740814208984375, 0.03240966796875, -0.0209808349609375, 0.02020263671875, 0.004978179931640625, -0.009246826171875, 0.06695556640625, -0.04534912109375, 0.037811279296875, -0.039794921875, 0.0721435546875, 0.0445556640625, -0.04864501953125, 0.031158447265625, -0.022674560546875, 0.0180511474609375, -0.041748046875, -0.01435089111328125, -0.03253173828125, -0.041290283203125, -0.0009508132934570312, 0.0390625, 0.021087646484375, 0.05224609375, -0.0258636474609375, -0.049285888671875, -0.00417327880859375, 0.01055145263671875, -0.037200927734375, -0.030364990234375, 0.0220947265625, -0.047637939453125, 0.06048583984375, -0.01212310791015625, -0.01050567626953125, -0.0546875, 0.04864501953125, 0.024566650390625, 0.00267791748046875, -0.00127410888671875, -0.0201416015625, 0.00400543212890625, -0.018280029296875, 0.03778076171875, -0.005764007568359375, -0.00634765625, 0.0006136894226074219, 0.09033203125, 0.0130462646484375, -0.06072998046875, -0.00789642333984375, 0.047027587890625, -0.0227508544921875, 0.01485443115234375, 0.0076141357421875, -0.021484375, -0.055908203125, 0.0161590576171875, -0.0604248046875, 0.004913330078125, -0.00315093994140625, -0.00839996337890625, -0.0203399658203125, -0.0019989013671875, 0.03216552734375, -0.037200927734375, -0.00925445556640625, 0.046875, 0.043914794921875, -0.0121917724609375, -0.005828857421875, -0.025238037109375, -0.0484619140625, 0.0008397102355957031, 0.01428985595703125, 0.0194091796875, -0.02227783203125, 0.0167694091796875, -0.033355712890625, 0.0021190643310546875, 0.047607421875, -0.044677734375, 0.01392364501953125, -0.02197265625, -0.031158447265625, -0.0187835693359375, 0.051849365234375, -0.00894927978515625, -0.038482666015625, 0.01190185546875, 0.0017690658569335938, 0.002414703369140625, -0.0268096923828125, 0.0247039794921875, -0.06475830078125, 0.046600341796875, -0.00872039794921875, 0.02777099609375, -0.041717529296875, -0.035675048828125, -0.00759124755859375, 0.09649658203125, -0.0462646484375, -0.0300445556640625, 0.015838623046875, -0.002208709716796875, 0.0328369140625, -0.0022487640380859375, -0.041107177734375, -0.040618896484375, -0.0955810546875, 0.00304412841796875, 0.006671905517578125, -0.042724609375, -0.004085540771484375, -0.01519012451171875, -0.0428466796875, -0.058807373046875, 0.01546478271484375, 0.00841522216796875, 0.007427215576171875, -0.02899169921875, -0.0198516845703125, -0.0302276611328125, -0.0093231201171875, -0.01462554931640625, -0.039337158203125, -0.03387451171875, 0.047821044921875, 0.037506103515625, -0.0059051513671875, -0.060638427734375, -0.004322052001953125, 0.0526123046875, -0.00986480712890625, 0.046051025390625, 0.0034008026123046875, 0.01548004150390625, 0.0017795562744140625, 0.018157958984375, 0.0258026123046875, -0.01824951171875, -0.0138702392578125, 0.0035114288330078125, -0.017486572265625, 0.00737762451171875, -0.029449462890625, -0.028472900390625, -0.002452850341796875, -0.027008056640625, -0.07635498046875, -0.04376220703125, 0.0087127685546875, 0.0029735565185546875, 0.012908935546875, -0.0010881423950195312, -0.046356201171875, -0.050811767578125, -0.032470703125, -0.005039215087890625, -0.0198211669921875, 0.027496337890625, 0.041046142578125, 0.0300750732421875, 0.01110076904296875, -0.038970947265625, 0.033935546875, 0.040191650390625, -0.03717041015625, 0.03814697265625, 0.0308837890625, -0.016845703125, 0.03741455078125, -0.0177764892578125, 0.0158843994140625, -0.0242462158203125, 0.041717529296875, 0.004848480224609375, 0.0214385986328125, 0.0022563934326171875, 0.02105712890625, -0.0213165283203125, 0.00800323486328125, 0.007568359375, 0.025543212890625, 0.01519012451171875, -0.012725830078125, 0.03900146484375, -0.06256103515625, -0.0092926025390625, -0.041656494140625, 0.007175445556640625, 0.0667724609375, 0.024810791015625, 0.0209503173828125, -0.01029205322265625, 0.03863525390625, 0.03485107421875, -0.006683349609375, 0.04193115234375, 0.01995849609375, -0.00843048095703125, 0.032257080078125, -0.00524139404296875, -0.024993896484375, 0.0232696533203125, -0.01000213623046875, 0.0022640228271484375, 0.03167724609375, -0.0180816650390625, 0.0006651878356933594, 0.0035419464111328125, -0.049835205078125, -0.041168212890625, 0.0308837890625, 0.022369384765625, -0.01256561279296875, 0.0185089111328125, -0.003940582275390625, -0.0182647705078125, 0.0038623809814453125, -0.00995635986328125, -0.009552001953125, -0.021270751953125, -0.007602691650390625, 0.0025234222412109375, 0.003520965576171875, -0.024383544921875, -0.0048370361328125, 0.00960540771484375, -0.0081634521484375, 0.00504302978515625, 0.032989501953125, 0.032379150390625, -0.03466796875, -0.0153656005859375, 0.037322998046875, 0.00554656982421875, -0.026519775390625, 0.0082244873046875, 0.0538330078125, 0.045654296875, 0.017333984375, -0.0294189453125, -0.033355712890625, -0.04779052734375, -0.01125335693359375, 0.01004791259765625, -0.044189453125, -0.03778076171875, -0.0413818359375, 0.0192413330078125, 0.043731689453125, -0.0155029296875, -0.0273590087890625, -0.0021953582763671875, 0.0212249755859375, 0.0185394287109375, 0.00878143310546875, -0.07220458984375, 0.04541015625, 0.04986572265625, -0.0013484954833984375, -0.0109405517578125, -0.0160980224609375, 0.00725555419921875, -0.00640106201171875, -0.0166778564453125, -0.01184844970703125, 0.03814697265625, -0.0309906005859375, 0.03436279296875, -0.0286712646484375, 0.00839996337890625, -0.040191650390625, 0.01213836669921875, 0.05828857421875, 0.04949951171875, 0.0084686279296875, 0.003231048583984375, -0.00193023681640625, -0.00101470947265625, 0.0792236328125, -0.00885772705078125, -0.003887176513671875, -0.058013916015625, -0.020599365234375, 0.03515625, -0.005893707275390625, 0.00707244873046875, -0.01433563232421875, -0.0108795166015625, -0.0247344970703125, 0.025665283203125, -0.021759033203125, -0.01800537109375, 0.032806396484375, -0.00650787353515625, -0.0171966552734375, -0.0423583984375, 0.00765228271484375, -0.005496978759765625, 0.0135040283203125, -0.03656005859375, -0.03936767578125, -0.00417327880859375, -0.01461029052734375, 0.0299835205078125, 0.0154266357421875, 0.0038700103759765625, 0.01392364501953125, 0.0170745849609375, 0.00466156005859375, -0.01047515869140625, 0.00965118408203125, -0.0012140274047851562, 0.0093231201171875, 0.002834320068359375, 0.0200042724609375, 0.043487548828125, -0.03302001953125, -0.047515869140625, 0.019195556640625, 0.01146697998046875, 0.0259552001953125, -0.01523590087890625, 0.01593017578125, 0.005115509033203125, 0.03759765625, -0.0352783203125, 0.015045166015625, 0.045318603515625, -0.0038776397705078125, 0.017303466796875, -0.009918212890625, 0.054351806640625, 0.0032901763916015625, 0.06024169921875, -0.01483154296875, -0.004901885986328125, 0.0242462158203125, -0.043426513671875, 0.025115966796875, 0.0157623291015625, 0.06048583984375, -0.0212554931640625, 0.00800323486328125, 0.028045654296875, -0.0360107421875, -0.01264190673828125, -0.0194091796875, -0.005161285400390625, -0.053314208984375, 0.0423583984375, 0.006755828857421875, -0.0191802978515625, 0.005512237548828125, -0.007633209228515625, 0.00749969482421875, -0.00992584228515625, 0.0498046875, 0.021942138671875, 0.0212860107421875, -0.0560302734375, -0.0030670166015625, 0.0007953643798828125, -0.0369873046875, -0.0006937980651855469, -0.0088348388671875, -0.057586669921875, -0.07696533203125, -0.0333251953125, 0.013946533203125, -0.0183868408203125, 0.0105743408203125, 0.00441741943359375, 0.00417327880859375, 0.035675048828125, -0.040008544921875, 0.016937255859375, -0.0008969306945800781, -0.0021724700927734375, 0.006381988525390625, -0.01000213623046875, -0.01018524169921875, 0.00896453857421875, -0.033355712890625, 0.0089111328125, -0.0256500244140625, 0.01247406005859375, -0.03570556640625, -0.09503173828125, 0.08843994140625, -0.08099365234375, 0.0173187255859375, -0.0374755859375, 0.058929443359375, 0.02899169921875, -0.006011962890625, 0.041046142578125, -0.046783447265625, -0.044586181640625, 0.01198577880859375, -0.0526123046875, -0.0235748291015625, -0.029266357421875, -0.08245849609375, 0.044036865234375, -0.00083160400390625, 0.036865234375, -0.002300262451171875, 0.0144500732421875, -0.005428314208984375, -0.01113128662109375, -0.0123443603515625, 0.03271484375, 0.0237274169921875, -0.001766204833984375, 0.0227813720703125, 0.0126190185546875, 0.0121917724609375, -0.004367828369140625, 0.0047760009765625, 0.0024967193603515625, -0.030059814453125, 0.0173492431640625, 0.05621337890625, -0.00641632080078125, 0.00010949373245239258, 0.060516357421875, -0.018341064453125, 0.051116943359375, 0.048309326171875, -0.060516357421875, 0.0180511474609375, 0.0060577392578125, -0.0218658447265625, 0.01036834716796875, 0.0015964508056640625, -0.021026611328125, 0.037811279296875, 0.010162353515625, -0.06390380859375, 0.0266876220703125, 0.040679931640625, 0.00501251220703125, 0.0229949951171875, 0.017974853515625, 0.056640625, -0.06195068359375, -0.0268707275390625, -0.01490020751953125, 0.0484619140625, 0.00035762786865234375, 0.037109375, 0.0399169921875, 0.01459503173828125, 0.060333251953125, 0.005535125732421875, 0.0275115966796875, 0.025665283203125, -0.01068115234375, 0.001667022705078125, -0.007266998291015625, 0.016876220703125, -0.0271759033203125, 0.0196990966796875, 0.0513916015625, 0.0208740234375, -0.0186920166015625, -0.01439666748046875, 0.0288543701171875, 0.0165557861328125, -0.013580322265625, 0.00487518310546875, 0.01678466796875, -0.072021484375, -0.02691650390625, -0.040496826171875, -0.0103759765625, 0.02105712890625, 0.055633544921875, -0.01363372802734375, -0.0299224853515625, -0.0295257568359375, -0.0418701171875, -0.0152435302734375, 0.005786895751953125, 0.01007080078125, 0.042388916015625, -0.00888824462890625, 0.0576171875, -0.05419921875, -0.0191192626953125, -0.005748748779296875, 0.005840301513671875, -0.01332855224609375, 0.0084991455078125, -0.058197021484375, -0.035675048828125, 0.031280517578125, 0.04779052734375, -0.0009374618530273438, -0.01012420654296875, 0.03814697265625, 0.041046142578125, -0.025848388671875, -0.023040771484375, 0.04345703125, -0.01446533203125, 0.0032482147216796875, -0.03485107421875, 0.0303955078125, 0.040557861328125, 0.00988006591796875, -0.01233673095703125, -0.0021686553955078125, 0.072998046875, -0.063720703125, 0.038238525390625, -0.0211334228515625, -0.038726806640625, -0.006984710693359375, -0.021820068359375, 0.040863037109375, -0.032958984375, -0.078857421875, -0.017608642578125, 0.00041484832763671875, -0.08648681640625, 0.050628662109375, 0.0623779296875, -0.0224456787109375, -0.0184783935546875, 0.020416259765625, -0.03411865234375, 0.0009284019470214844, 0.031829833984375, 0.01312255859375, 0.00009357929229736328, 0.0067596435546875, -0.0181884765625, -0.06402587890625, -0.029754638671875, -0.0447998046875, 0.04083251953125, 0.03948974609375, 0.0296478271484375, 0.0094451904296875, 0.050933837890625, 0.0031871795654296875, -0.016143798828125, -0.01456451416015625, -0.008819580078125, 0.0188140869140625, -0.044677734375, -0.017913818359375, -0.00885772705078125, 0.00775909423828125, 0.0012655258178710938, 0.031585693359375, -0.03228759765625, -0.0015115737915039062, -0.041229248046875, 0.020904541015625, -0.006885528564453125, 0.0823974609375, -0.004863739013671875, -0.01165771484375, -0.0262908935546875, -0.0179290771484375, 0.043365478515625, 0.0288543701171875, 0.004016876220703125, 0.01137542724609375, 0.0689697265625, -0.02740478515625, 0.031341552734375, -0.0035648345947265625, 0.033447265625, 0.033966064453125, 0.065673828125, -0.01074981689453125, -0.011505126953125, -0.0215911865234375, 0.001636505126953125, 0.019927978515625, -0.0008397102355957031, -0.01493072509765625, -0.03350830078125, 0.0272216796875, 0.024383544921875, 0.0208740234375, -0.030181884765625, -0.002620697021484375, 0.03662109375, -0.0247802734375, -0.013092041015625, -0.01200103759765625, -0.0161590576171875, -0.08648681640625, 0.0150604248046875, 0.0165863037109375, -0.031341552734375, -0.0159912109375, -0.0390625, -0.0225982666015625, 0.0384521484375, 0.046234130859375, -0.0557861328125, 0.01727294921875, 0.0285797119140625, -0.00164031982421875, 0.041351318359375, -0.006992340087890625, -0.00608062744140625, 0.022552490234375, -0.03851318359375, -0.0506591796875, -0.033935546875, 0.041839599609375, -0.0513916015625, 0.0199432373046875, 0.0012445449829101562, -0.02520751953125, 0.0187530517578125, 0.04852294921875, 0.0350341796875, 0.09283447265625, 0.017730712890625, -0.045440673828125, -0.01910400390625, -0.0015811920166015625, 0.00997161865234375, -0.0009889602661132812, 0.02496337890625, -0.031463623046875, -0.033721923828125, 0.07916259765625, -0.04669189453125, 0.004154205322265625, -0.04315185546875, -0.100341796875, 0.061767578125, 0.0186614990234375, -0.0487060546875, 0.025726318359375, 0.025665283203125, 0.0008802413940429688, -0.01195526123046875, 0.005855560302734375, -0.0182647705078125, 0.0225830078125, -0.0119171142578125, 0.01161956787109375, 0.054290771484375, -0.0044708251953125, 0.0076904296875, 0.0136871337890625, 0.02459716796875, 0.006793975830078125, 0.0104522705078125, 0.012908935546875, -0.019134521484375, 0.01611328125, -0.005535125732421875, -0.08062744140625, -0.04656982421875, -0.0194244384765625, 0.054656982421875, 0.01274871826171875, -0.05224609375, -0.045928955078125, -0.05181884765625, 0.0594482421875, 0.0097503662109375, 0.01103973388671875, 0.0160064697265625, 0.0085601806640625, 0.0108642578125, -0.009033203125, 0.0264739990234375, 0.01904296875, -0.03399658203125, -0.01392364501953125, 0.0185699462890625, -0.003482818603515625, -0.032470703125, 0.01015472412109375, -0.0311431884765625, -0.0216827392578125, -0.03668212890625, -0.007122039794921875, -0.030609130859375, -0.0015287399291992188, 0.02911376953125, -0.01934814453125, 0.00482177734375, -0.0259246826171875, 0.006877899169921875, 0.014251708984375, -0.03985595703125, -0.057342529296875, 0.0094451904296875, -0.0016489028930664062, 0.0205535888671875, -0.006549835205078125, -0.006008148193359375, -0.00344085693359375, 0.0582275390625, -0.011810302734375, -0.006496429443359375, 0.0023365020751953125, -0.00855255126953125, 0.006717681884765625, -0.01015472412109375, 0.0013036727905273438, -0.01529693603515625, -0.0126495361328125, 0.0074615478515625, -0.01143646240234375, 0.044464111328125, 0.0027904510498046875, -0.0193023681640625, 0.050048828125, -0.050445556640625, 0.009918212890625, 0.0229339599609375, 0.020721435546875, -0.0192413330078125, 0.0016021728515625, -0.03570556640625, 0.0201873779296875, 0.0007157325744628906 ]
ca5aea315dceb304bf06341972525917a81d3bd5
Wordpress Stackexchange Q: Custom taxonomy only shows 0 in autocomplete for terms and "Choose from the most used tags" I have a custom post type (rezept that I added a custom taxonomy Allergiefrei to. I got this working so far. Adding terms to the custom taxonomy's box works, too, but autocomplete and 'Choose from the most used tags' only shows "0". Here's the code where I register the custom taxonomy: function register_rezept_taxonomies() { register_taxonomy( 'Allergiefrei', 'rezept', array( 'label' => 'Allergien', 'rewrite' => array('slug' => 'allergien') ) ); } add_action('init', 'register_rezept_taxonomies'); I'm defining custom taxonomies and the post type in a plugin. A: Turns out you can't use uppercase taxonomy ids. Those work, mostly, but when WordPress sanitizes Ajax calls, everything uppercase is converted to lower case and it won't find the correct taxonomy. The solution is to only define and use lowercase taxonomy ids.
Q: Custom taxonomy only shows 0 in autocomplete for terms and "Choose from the most used tags" I have a custom post type (rezept that I added a custom taxonomy Allergiefrei to. I got this working so far. Adding terms to the custom taxonomy's box works, too, but autocomplete and 'Choose from the most used tags' only shows "0". Here's the code where I register the custom taxonomy: function register_rezept_taxonomies() { register_taxonomy( 'Allergiefrei', 'rezept', array( 'label' => 'Allergien', 'rewrite' => array('slug' => 'allergien') ) ); } add_action('init', 'register_rezept_taxonomies'); I'm defining custom taxonomies and the post type in a plugin. A: Turns out you can't use uppercase taxonomy ids. Those work, mostly, but when WordPress sanitizes Ajax calls, everything uppercase is converted to lower case and it won't find the correct taxonomy. The solution is to only define and use lowercase taxonomy ids.
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:444176", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141000" }
[ 0.0238189697265625, 0.0019025802612304688, -0.011383056640625, -0.03125, 0.011383056640625, -0.0130767822265625, 0.0205078125, -0.00928497314453125, 0.013946533203125, 0.028472900390625, -0.0379638671875, -0.00634765625, -0.01641845703125, -0.01296234130859375, -0.02362060546875, -0.041107177734375, 0.01898193359375, -0.022705078125, 0.0239715576171875, -0.0178985595703125, 0.004085540771484375, -0.004863739013671875, 0.052032470703125, -0.0236053466796875, 0.0263824462890625, -0.07037353515625, 0.0262603759765625, -0.036895751953125, 0.01715087890625, -0.0287322998046875, 0.010406494140625, 0.0506591796875, 0.037445068359375, 0.01430511474609375, -0.033203125, 0.01274871826171875, 0.0280609130859375, -0.0117950439453125, -0.023406982421875, 0.044342041015625, 0.02587890625, -0.0116119384765625, 0.0143585205078125, 0.03900146484375, -0.0178375244140625, -0.048370361328125, 0.0230865478515625, -0.041900634765625, 0.0033283233642578125, -0.07501220703125, 0.0211181640625, 0.0276947021484375, 0.06781005859375, -0.0887451171875, -0.01244354248046875, 0.023773193359375, -0.0119171142578125, -0.009185791015625, 0.033599853515625, -0.01421356201171875, -0.01052093505859375, -0.0227508544921875, 0.032073974609375, 0.001071929931640625, -0.00963592529296875, -0.0023479461669921875, -0.043243408203125, -0.004497528076171875, 0.01335906982421875, -0.007556915283203125, 0.00540924072265625, -0.0171356201171875, 0.031341552734375, 0.0014810562133789062, -0.022735595703125, -0.0985107421875, 0.07049560546875, -0.045867919921875, -0.01360321044921875, 0.00807952880859375, 0.032012939453125, -0.0254058837890625, 0.038482666015625, 0.045379638671875, -0.029632568359375, 0.055572509765625, -0.005962371826171875, -0.0285491943359375, -0.0052642822265625, 0.0053863525390625, -0.0051116943359375, -0.0347900390625, -0.031097412109375, 0.057037353515625, 0.02276611328125, -0.0264434814453125, 0.036102294921875, 0.04888916015625, -0.01910400390625, -0.004146575927734375, 0.0218048095703125, -0.04052734375, 0.024200439453125, -0.0439453125, 0.020050048828125, 0.0390625, -0.0248870849609375, 0.0170745849609375, 0.0650634765625, 0.01007080078125, 0.0104827880859375, 0.035491943359375, 0.0179595947265625, 0.00069427490234375, -0.021453857421875, -0.028900146484375, -0.01000213623046875, -0.005519866943359375, 0.007965087890625, -0.05340576171875, -0.01727294921875, 0.045806884765625, 0.0031452178955078125, -0.054412841796875, 0.0195465087890625, 0.0123138427734375, 0.0245208740234375, -0.05145263671875, -0.01453399658203125, 0.047088623046875, -0.03680419921875, 0.00913238525390625, 0.0556640625, 0.01409149169921875, -0.00809478759765625, -0.0208587646484375, 0.004100799560546875, -0.0019550323486328125, -0.032135009765625, 0.02496337890625, 0.0190582275390625, -0.02862548828125, -0.012939453125, -0.01331329345703125, 0.01276397705078125, 0.00765228271484375, 0.0162506103515625, 0.0239410400390625, -0.005161285400390625, -0.0352783203125, 0.03582763671875, -0.035064697265625, 0.04840087890625, 0.01274871826171875, -0.0848388671875, 0.019287109375, -0.001926422119140625, -0.006473541259765625, -0.0535888671875, -0.05078125, 0.034271240234375, -0.038909912109375, -0.043975830078125, 0.0003933906555175781, -0.0570068359375, 0.054901123046875, 0.006252288818359375, -0.001796722412109375, 0.032257080078125, -0.0035076141357421875, 0.0362548828125, -0.00643157958984375, 0.0169830322265625, 0.0221710205078125, 0.0270233154296875, 0.01532745361328125, 0.0087738037109375, 0.012054443359375, 0.045867919921875, 0.006496429443359375, 0.001979827880859375, -0.024139404296875, 0.09259033203125, -0.0386962890625, -0.040557861328125, -0.006664276123046875, -0.0023059844970703125, 0.045166015625, 0.03399658203125, 0.0243988037109375, 0.00386810302734375, -0.00429534912109375, -0.030487060546875, 0.039459228515625, 0.0296173095703125, -0.0185089111328125, -0.07391357421875, -0.0196990966796875, -0.015960693359375, -0.025787353515625, -0.00821685791015625, -0.0260772705078125, 0.01308441162109375, -0.0181121826171875, -0.03912353515625, 0.002162933349609375, -0.0294342041015625, 0.02459716796875, 0.003803253173828125, -0.0094451904296875, 0.00849151611328125, -0.0238800048828125, -0.039459228515625, 0.048309326171875, -0.021484375, 0.002651214599609375, -0.0202484130859375, 0.01328277587890625, -0.0249481201171875, 0.008880615234375, -0.0160980224609375, -0.0496826171875, -0.0179290771484375, 0.0396728515625, 0.03326416015625, 0.04901123046875, -0.039886474609375, 0.0146636962890625, 0.0211639404296875, 0.027313232421875, -0.0124053955078125, 0.050018310546875, 0.044097900390625, 0.033599853515625, -0.050811767578125, -0.0169525146484375, -0.0452880859375, -0.037200927734375, -0.01495361328125, 0.06890869140625, 0.0105743408203125, 0.06103515625, 0.018585205078125, 0.04193115234375, 0.082763671875, 0.01079559326171875, 0.0147705078125, 0.01291656494140625, -0.0012216567993164062, 0.029510498046875, 0.009429931640625, 0.0238037109375, 0.01421356201171875, 0.0035266876220703125, 0.00713348388671875, 0.0243072509765625, -0.039947509765625, -0.016632080078125, 0.0257110595703125, -0.03924560546875, 0.0157470703125, -0.0210113525390625, -0.00319671630859375, -0.0169219970703125, 0.0826416015625, -0.00777435302734375, 0.0712890625, 0.02191162109375, -0.034942626953125, 0.0069580078125, 0.0134735107421875, 0.019012451171875, -0.016815185546875, 0.000995635986328125, 0.05462646484375, -0.01151275634765625, -0.040557861328125, 0.01422882080078125, 0.005550384521484375, -0.0117340087890625, 0.0162506103515625, 0.0562744140625, -0.04193115234375, -0.011444091796875, -0.0270538330078125, -0.06524658203125, -0.020904541015625, 0.057098388671875, -0.031829833984375, -0.0177154541015625, -0.00141143798828125, 0.0374755859375, -0.0207366943359375, 0.006381988525390625, 0.0295562744140625, -0.007843017578125, 0.0020198822021484375, -0.042755126953125, 0.0247955322265625, -0.0238494873046875, 0.040008544921875, 0.0667724609375, 0.01348876953125, 0.0016345977783203125, -0.003513336181640625, 0.00856781005859375, -0.038909912109375, 0.019622802734375, -0.00457000732421875, 0.0010433197021484375, -0.047271728515625, 0.0212554931640625, 0.01910400390625, 0.057403564453125, -0.038848876953125, -0.053070068359375, -0.020965576171875, 0.017730712890625, -0.0732421875, -0.057708740234375, 0.03753662109375, -0.0033245086669921875, 0.019378662109375, -0.016021728515625, 0.012664794921875, -0.0267791748046875, -0.02471923828125, 0.0005693435668945312, 0.0179290771484375, -0.052581787109375, -0.045013427734375, -0.08380126953125, -0.07574462890625, -0.015716552734375, 0.01015472412109375, -0.006877899169921875, 0.0022678375244140625, 0.08624267578125, 0.020965576171875, -0.05511474609375, 0.036376953125, 0.0102996826171875, -0.0203094482421875, 0.04736328125, 0.036590576171875, -0.0401611328125, -0.006000518798828125, 0.006866455078125, 0.001575469970703125, 0.0186309814453125, -0.036895751953125, -0.01067352294921875, -0.0016345977783203125, -0.00836181640625, -0.0033168792724609375, 0.0465087890625, 0.01190948486328125, 0.016937255859375, 0.0271759033203125, -0.024932861328125, 0.01197052001953125, -0.01171112060546875, 0.004177093505859375, 0.033905029296875, -0.0243682861328125, -0.0179443359375, -0.03643798828125, 0.054412841796875, -0.0269775390625, 0.01739501953125, -0.0236968994140625, -0.04266357421875, 0.03509521484375, 0.0008206367492675781, -0.0075531005859375, 0.016387939453125, 0.045989990234375, -0.01523590087890625, 0.013916015625, 0.028106689453125, 0.0036773681640625, 0.005710601806640625, -0.0024585723876953125, -0.0182037353515625, -0.0272674560546875, 0.01190185546875, -0.07745361328125, -0.03326416015625, 0.006076812744140625, 0.01104736328125, 0.0231475830078125, 0.0625, 0.00885009765625, -0.00708770751953125, 0.03118896484375, 0.003753662109375, 0.004261016845703125, -0.021240234375, -0.032928466796875, -0.02294921875, -0.058807373046875, -0.00910186767578125, -0.0113067626953125, -0.036346435546875, 0.0178070068359375, -0.027862548828125, -0.0170745849609375, -0.031494140625, 0.05804443359375, -0.05010986328125, 0.032073974609375, 0.0182647705078125, 0.0216217041015625, -0.02716064453125, -0.038238525390625, -0.017791748046875, -0.06610107421875, 0.0038776397705078125, 0.005435943603515625, -0.005146026611328125, -0.042755126953125, 0.0638427734375, -0.043975830078125, 0.01153564453125, 0.0335693359375, 0.027435302734375, -0.01409149169921875, -0.0220184326171875, -0.0116424560546875, -0.000038743019104003906, 0.004688262939453125, -0.02435302734375, -0.004215240478515625, 0.0216827392578125, -0.0209808349609375, 0.0194091796875, 0.007328033447265625, 0.002468109130859375, 0.039703369140625, -0.043243408203125, -0.034942626953125, -0.026885986328125, -0.06732177734375, -0.006805419921875, -0.0479736328125, -0.0274505615234375, -0.01042938232421875, -0.043121337890625, 0.004974365234375, -0.0171051025390625, -0.0238494873046875, 0.01727294921875, 0.0394287109375, 0.01358795166015625, -0.0028228759765625, -0.0297698974609375, 0.0162200927734375, 0.023895263671875, 0.021209716796875, -0.0182952880859375, -0.0297698974609375, -0.0220489501953125, 0.04095458984375, -0.01611328125, 0.01153564453125, -0.0207366943359375, 0.08050537109375, -0.01617431640625, -0.0258636474609375, 0.0299530029296875, -0.0196075439453125, -0.01372528076171875, 0.0220947265625, -0.0211944580078125, -0.0269927978515625, 0.01055908203125, 0.05999755859375, -0.0244293212890625, 0.0216064453125, -0.04046630859375, -0.0408935546875, 0.0248565673828125, 0.00928497314453125, 0.01291656494140625, -0.015472412109375, 0.003795623779296875, -0.017669677734375, -0.007099151611328125, 0.0087890625, 0.04449462890625, 0.004131317138671875, 0.00696563720703125, 0.02044677734375, 0.037567138671875, 0.007801055908203125, 0.0215301513671875, -0.003993988037109375, 0.043487548828125, -0.0271148681640625, -0.061981201171875, -0.01544952392578125, -0.0247955322265625, 0.0267486572265625, 0.042022705078125, 0.0035533905029296875, 0.006961822509765625, 0.0087127685546875, 0.0278472900390625, 0.03765869140625, -0.030181884765625, 0.03277587890625, -0.00165557861328125, 0.01219940185546875, 0.0174560546875, -0.027374267578125, -0.0241241455078125, 0.0158538818359375, 0.032989501953125, -0.033233642578125, -0.0005035400390625, -0.00341033935546875, -0.028564453125, 0.04571533203125, 0.0190277099609375, -0.0228118896484375, 0.020233154296875, 0.00746917724609375, 0.01424407958984375, -0.035247802734375, -0.0301361083984375, -0.01084136962890625, -0.003749847412109375, 0.0004143714904785156, 0.015655517578125, 0.05615234375, 0.048004150390625, -0.0220489501953125, 0.0085601806640625, -0.058380126953125, -0.051544189453125, -0.023040771484375, -0.01763916015625, 0.0240020751953125, -0.019317626953125, -0.025299072265625, 0.01479339599609375, -0.043243408203125, 0.027191162109375, -0.0010423660278320312, 0.00003403425216674805, 0.0229034423828125, 0.00890350341796875, -0.02520751953125, 0.00762939453125, 0.048095703125, -0.050079345703125, -0.0474853515625, -0.00914764404296875, -0.026824951171875, 0.052734375, -0.021636962890625, 0.05810546875, -0.01406097412109375, -0.049163818359375, 0.0101165771484375, 0.0132904052734375, 0.044708251953125, 0.00870513916015625, -0.0433349609375, 0.01371002197265625, -0.02667236328125, -0.001865386962890625, 0.0017366409301757812, -0.047760009765625, -0.0224761962890625, -0.031707763671875, -0.0121307373046875, 0.0296173095703125, -0.002742767333984375, 0.0164337158203125, -0.0030918121337890625, -0.006671905517578125, -0.02105712890625, 0.039520263671875, 0.00290679931640625, -0.027557373046875, 0.0111846923828125, -0.018218994140625, 0.01056671142578125, -0.02142333984375, 0.005237579345703125, -0.01934814453125, -0.057098388671875, -0.10052490234375, 0.0079193115234375, 0.058685302734375, -0.040618896484375, 0.091552734375, 0.042388916015625, 0.038665771484375, 0.0552978515625, 0.00954437255859375, 0.01369476318359375, -0.0008716583251953125, -0.039703369140625, -0.017974853515625, 0.0255126953125, 0.046234130859375, -0.01220703125, 0.046112060546875, 0.0229034423828125, -0.00792694091796875, -0.004154205322265625, -0.01922607421875, 0.00803375244140625, 0.0166778564453125, 0.01293182373046875, -0.003498077392578125, -0.0155181884765625, -0.005035400390625, 0.006931304931640625, -0.01548004150390625, 0.0109710693359375, -0.01306915283203125, -0.004741668701171875, -0.0213165283203125, -0.06500244140625, -0.005130767822265625, -0.0158843994140625, -0.0276947021484375, 0.0134735107421875, -0.021728515625, -0.0384521484375, 0.0474853515625, -0.0016889572143554688, -0.06298828125, -0.020172119140625, 0.0158538818359375, -0.0134735107421875, -0.0892333984375, 0.00811767578125, -0.01085662841796875, -0.0240631103515625, 0.01318359375, -0.0310821533203125, -0.026702880859375, -0.0262298583984375, -0.03216552734375, -0.0286102294921875, 0.0222625732421875, -0.0008120536804199219, 0.016143798828125, 0.00140380859375, -0.025421142578125, 0.015716552734375, -0.00868988037109375, 0.0157623291015625, 0.0374755859375, -0.0162811279296875, 0.0103607177734375, -0.0008025169372558594, 0.041107177734375, -0.034149169921875, -0.01322174072265625, 0.0258636474609375, -0.0003819465637207031, 0.0189208984375, 0.038970947265625, -0.020782470703125, 0.01067352294921875, -0.004596710205078125, -0.013031005859375, 0.05712890625, -0.042266845703125, -0.005962371826171875, 0.01166534423828125, -0.011993408203125, -0.0005860328674316406, 0.02716064453125, -0.031158447265625, -0.01444244384765625, -0.005298614501953125, 0.038543701171875, -0.006122589111328125, -0.013336181640625, 0.04278564453125, 0.01435089111328125, -0.008209228515625, -0.0018634796142578125, -0.0045318603515625, -0.042572021484375, -0.008544921875, 0.0017042160034179688, -0.0200958251953125, -0.00506591796875, 0.00836944580078125, -0.053741455078125, 0.1124267578125, -0.01739501953125, 0.049713134765625, 0.0176544189453125, 0.040740966796875, 0.003261566162109375, 0.047149658203125, -0.0186767578125, 0.0012111663818359375, -0.01113128662109375, 0.00730133056640625, -0.00835418701171875, 0.00936126708984375, -0.0104217529296875, 0.0335693359375, 0.049407958984375, 0.004791259765625, 0.0036258697509765625, -0.0088348388671875, 0.03533935546875, 0.0135650634765625, -0.031402587890625, 0.0133819580078125, -0.00441741943359375, 0.00433349609375, 0.0129241943359375, -0.0213775634765625, 0.0178375244140625, -0.0127716064453125, -0.017608642578125, 0.034393310546875, -0.00011116266250610352, -0.017303466796875, 0.00015807151794433594, 0.0065460205078125, -0.06591796875, 0.01044464111328125, 0.044158935546875, -0.0010194778442382812, 0.0494384765625, -0.002399444580078125, 0.059051513671875, -0.06072998046875, -0.0151519775390625, -0.0185089111328125, 0.044921875, -0.0013532638549804688, 0.0304718017578125, 0.0008807182312011719, 0.0019159317016601562, 0.08660888671875, -0.06451416015625, 0.007175445556640625, -0.0025463104248046875, -0.0163116455078125, -0.0029392242431640625, -0.01837158203125, 0.02166748046875, -0.041534423828125, 0.0143280029296875, 0.049346923828125, 0.0171966552734375, -0.02911376953125, -0.0517578125, 0.01534271240234375, 0.03131103515625, 0.0131683349609375, 0.054107666015625, 0.042022705078125, 0.0133819580078125, 0.07159423828125, -0.037445068359375, 0.0080718994140625, 0.0279998779296875, 0.032562255859375, -0.00018215179443359375, 0.0163726806640625, -0.0552978515625, -0.0111236572265625, -0.056060791015625, 0.004390716552734375, 0.02435302734375, 0.09869384765625, 0.00423431396484375, 0.0845947265625, -0.058258056640625, -0.038360595703125, -0.032928466796875, 0.003612518310546875, 0.034942626953125, 0.02447509765625, -0.0377197265625, 0.015167236328125, 0.021942138671875, 0.04046630859375, 0.0118560791015625, -0.01105499267578125, 0.014923095703125, 0.0202789306640625, 0.02520751953125, -0.01052093505859375, 0.053497314453125, 0.00273895263671875, 0.01476287841796875, -0.044342041015625, 0.04949951171875, 0.0209197998046875, 0.0078582763671875, -0.01012420654296875, 0.016693115234375, 0.057586669921875, -0.0144195556640625, 0.00688934326171875, 0.005001068115234375, -0.0229644775390625, 0.07568359375, -0.017059326171875, 0.067138671875, 0.00823211669921875, -0.0751953125, 0.0007143020629882812, -0.07281494140625, -0.0355224609375, 0.0333251953125, 0.0325927734375, 0.01123809814453125, 0.00395965576171875, 0.017242431640625, 0.0011625289916992188, -0.00273895263671875, 0.0006489753723144531, 0.00836181640625, -0.0081939697265625, 0.0138702392578125, -0.001972198486328125, -0.01885986328125, -0.004489898681640625, 0.029815673828125, 0.003631591796875, -0.041412353515625, 0.0706787109375, -0.0197296142578125, -0.0245513916015625, -0.0284881591796875, 0.014801025390625, -0.040740966796875, -0.04852294921875, 0.0838623046875, -0.023681640625, -0.036102294921875, -0.0029354095458984375, -0.01367950439453125, 0.003437042236328125, 0.050567626953125, -0.046966552734375, 0.0217132568359375, -0.0134429931640625, 0.0007367134094238281, -0.05316162109375, 0.027069091796875, -0.0305938720703125, -0.03875732421875, -0.03863525390625, -0.0260162353515625, -0.0013608932495117188, -0.0066680908203125, 0.0025920867919921875, 0.040313720703125, -0.0036945343017578125, -0.0149993896484375, 0.020843505859375, -0.05023193359375, 0.041717529296875, 0.048248291015625, -0.0146484375, 0.015350341796875, -0.027313232421875, -0.033660888671875, 0.0005893707275390625, -0.006175994873046875, -0.02374267578125, -0.0023822784423828125, -0.039459228515625, -0.01201629638671875, 0.016021728515625, 0.051422119140625, -0.00699615478515625, 0.0298309326171875, -0.01276397705078125, -0.00035858154296875, 0.01113128662109375, -0.013641357421875, -0.0100860595703125, -0.027740478515625, -0.0338134765625, 0.0091552734375, -0.0239410400390625, -0.01361083984375, -0.045501708984375, 0.01495361328125, 0.03125, 0.00426483154296875, -0.0289459228515625, 0.010528564453125, -0.0131378173828125, 0.0277252197265625, 0.0201568603515625, -0.00800323486328125, 0.0177154541015625, 0.0733642578125, -0.011566162109375, -0.01386260986328125, 0.0020008087158203125, -0.00164794921875, 0.0024356842041015625, -0.003955841064453125, 0.007236480712890625, -0.0062103271484375, -0.02130126953125, -0.033111572265625, 0.003040313720703125, 0.01470947265625, 0.038543701171875, -0.0245208740234375, 0.0243377685546875, -0.0279693603515625, -0.0174713134765625, -0.05120849609375, 0.020965576171875, -0.11322021484375, -0.031982421875, -0.03521728515625, 0.01165008544921875, 0.02203369140625, -0.0297698974609375, -0.0654296875, 0.046966552734375, -0.015960693359375, -0.0198211669921875, -0.05731201171875, -0.00360107421875, 0.00461578369140625, -0.029052734375, -0.0300140380859375, -0.0153350830078125, -0.0599365234375, 0.037841796875, -0.0157470703125, 0.05267333984375, 0.0240478515625, 0.00823211669921875, -0.0113983154296875, -0.0150146484375, -0.02197265625, -0.0232696533203125, 0.0355224609375, -0.0275421142578125, 0.032196044921875, 0.02874755859375, -0.055023193359375, -0.01348876953125, -0.0249481201171875, -0.005947113037109375, 0.0264129638671875, -0.019134521484375, -0.05096435546875, -0.05474853515625, 0.0806884765625, -0.04205322265625, 0.022735595703125, 0.0087127685546875, -0.0238494873046875, -0.00974273681640625, 0.008453369140625, 0.01212310791015625, 0.00293731689453125, -0.0273895263671875, 0.018829345703125, -0.0037994384765625, -0.001079559326171875, 0.006023406982421875, -0.0165863037109375, -0.0150146484375, -0.01197052001953125, -0.022705078125, -0.01214599609375, -0.052154541015625, 0.032958984375, 0.0094146728515625, -0.035858154296875, -0.059356689453125, -0.001617431640625, -0.00926971435546875, -0.04534912109375, -0.0299835205078125, 0.015838623046875, -0.02899169921875, 0.035675048828125, 0.0256805419921875, 0.04547119140625, -0.03131103515625, 0.0223236083984375, -0.03509521484375, -0.0095672607421875, 0.0015201568603515625, -0.0166015625, 0.01097869873046875, 0.0266571044921875, -0.004283905029296875, -0.0017118453979492188, 0.004878997802734375, 0.0157928466796875, 0.019744873046875, -0.00690460205078125, 0.04595947265625, -0.00649261474609375, -0.0191192626953125, 0.006046295166015625, -0.01160430908203125, 0.0156097412109375, -0.005306243896484375, 0.047821044921875, -0.026336669921875, -0.006420135498046875, 0.0154876708984375, 0.01216888427734375, 0.0180511474609375 ]
f9640638cd124d0385fc90e9738eee728880b81d
Wordpress Stackexchange Q: wp_localize_script with mce_external_plugins in wordpress I am not sure if it is possible or not. Can i use wp_localize_script with mce_external_plugins filter? I want to send a variable to the tinymce plugin script. For Example: add_filter( "mce_external_plugins", array( &$this, 'add_test_plugin' ) ); public function add_test_plugin( $plugin_array ){ global $pagenow; if( is_admin() && $pagenow == "post.php" || $pagenow == "post-new.php" ){ $plugin_array['mytest'] = plugin_dir_url(__FILE__) . '/js/testing.js'; return $plugin_array; } } I have to send a variable to testing.js? How do i achieve this? Update: this is the link that help me to resolve my problem Using post ID in custom tinyMCE button A: If I understand correctly; you just need to make a Javascript variable available to testing.js. I think it would be just as useful to send the variable with jQuery, as that would be loaded prior to TinyMCE anyway: add_action('wp_enqueue_scripts', 'YOUR_NAME_scripts'); //back end function YOUR_NAME_scripts( $hook_suffix ) { global $blog_id; $params = array( 'site_url' => site_url(), 'admin_ajax_url' => site_url() . '/wp-admin/admin-ajax.php', 'mytest' => $whatever_variable_value ); wp_localize_script( 'jquery', 'YOUR_JAVASCRIPT_VARIABLE_HOLDER', $params ); } Then you can access the mytest variable in testing.js by simply using YOUR_JAVASCRIPT_VARIABLE_HOLDER.mytest anywhere in the script.
Q: wp_localize_script with mce_external_plugins in wordpress I am not sure if it is possible or not. Can i use wp_localize_script with mce_external_plugins filter? I want to send a variable to the tinymce plugin script. For Example: add_filter( "mce_external_plugins", array( &$this, 'add_test_plugin' ) ); public function add_test_plugin( $plugin_array ){ global $pagenow; if( is_admin() && $pagenow == "post.php" || $pagenow == "post-new.php" ){ $plugin_array['mytest'] = plugin_dir_url(__FILE__) . '/js/testing.js'; return $plugin_array; } } I have to send a variable to testing.js? How do i achieve this? Update: this is the link that help me to resolve my problem Using post ID in custom tinyMCE button A: If I understand correctly; you just need to make a Javascript variable available to testing.js. I think it would be just as useful to send the variable with jQuery, as that would be loaded prior to TinyMCE anyway: add_action('wp_enqueue_scripts', 'YOUR_NAME_scripts'); //back end function YOUR_NAME_scripts( $hook_suffix ) { global $blog_id; $params = array( 'site_url' => site_url(), 'admin_ajax_url' => site_url() . '/wp-admin/admin-ajax.php', 'mytest' => $whatever_variable_value ); wp_localize_script( 'jquery', 'YOUR_JAVASCRIPT_VARIABLE_HOLDER', $params ); } Then you can access the mytest variable in testing.js by simply using YOUR_JAVASCRIPT_VARIABLE_HOLDER.mytest anywhere in the script. A: The WordPress documentation on the mce_external_plugins filter hook proposes to use two filter hooks to add your variable to testing.js: admin_head-post.php and admin_head-post-new.php https://codex.wordpress.org/Plugin_API/Filter_Reference/mce_external_plugins This is the sample: foreach ( array('post.php','post-new.php') as $hook ) { add_action( "admin_head-$hook", 'my_admin_head' ); } /** * Localize Script */ function my_admin_head() { $plugin_url = plugins_url( '/', __FILE__ ); ?> <!-- TinyMCE Shortcode Plugin --> <script type='text/javascript'> var my_plugin = { 'url': '<?php echo $plugin_url; ?>', }; </script> <!-- TinyMCE Shortcode Plugin --> <?php }
wordpress
{ "language": "en", "length": 271, "provenance": "stackexchange_00019.jsonl.gz:444183", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141037" }
[ 0.0194854736328125, -0.023681640625, -0.011016845703125, -0.061065673828125, 0.01161956787109375, -0.0003421306610107422, 0.0020313262939453125, 0.0301513671875, -0.02117919921875, 0.01554107666015625, -0.0004992485046386719, 0.0303192138671875, -0.037261962890625, -0.02032470703125, 0.004863739013671875, -0.01311492919921875, 0.052886962890625, -0.0185546875, 0.016571044921875, 0.0026111602783203125, -0.0256500244140625, 0.03240966796875, 0.040924072265625, 0.0021953582763671875, 0.0135650634765625, -0.004177093505859375, 0.034698486328125, -0.02215576171875, -0.0098876953125, -0.0202178955078125, 0.0162811279296875, 0.0088348388671875, 0.02423095703125, 0.03753662109375, -0.04302978515625, 0.01410675048828125, 0.0025920867919921875, 0.032928466796875, 0.0192718505859375, 0.01153564453125, 0.037689208984375, -0.03118896484375, -0.0280914306640625, 0.05133056640625, -0.0166015625, -0.045684814453125, 0.0560302734375, -0.0256805419921875, -0.00991058349609375, 0.039154052734375, 0.01068115234375, -0.0173492431640625, 0.018157958984375, 0.01406097412109375, 0.007572174072265625, 0.01910400390625, -0.023284912109375, -0.0223388671875, 0.01222991943359375, 0.1029052734375, 0.01186370849609375, 0.00954437255859375, -0.02935791015625, -0.06878662109375, -0.017913818359375, 0.0039520263671875, -0.043609619140625, 0.0190887451171875, 0.011016845703125, -0.0115509033203125, -0.01483917236328125, -0.018310546875, 0.011688232421875, -0.017364501953125, -0.0328369140625, -0.0338134765625, 0.016693115234375, -0.039306640625, -0.0019779205322265625, -0.00916290283203125, -0.036712646484375, -0.03778076171875, -0.025634765625, 0.034759521484375, -0.04400634765625, 0.044158935546875, -0.021484375, -0.004261016845703125, -0.04290771484375, -0.03326416015625, -0.02764892578125, -0.03753662109375, -0.0728759765625, 0.01528167724609375, 0.00528717041015625, -0.0035343170166015625, 0.051483154296875, 0.0316162109375, 0.0159759521484375, 0.021514892578125, -0.005573272705078125, -0.042572021484375, 0.028472900390625, -0.03546142578125, 0.0008502006530761719, 0.024139404296875, 0.03509521484375, 0.046173095703125, 0.0310516357421875, 0.0031185150146484375, -0.01169586181640625, 0.01776123046875, -0.0198516845703125, 0.0236053466796875, -0.00038051605224609375, 0.0018215179443359375, -0.072509765625, 0.0321044921875, -0.03271484375, 0.046295166015625, -0.005344390869140625, -0.0022430419921875, -0.0058135986328125, 0.0233154296875, 0.00943756103515625, -0.0224151611328125, -0.019256591796875, 0.036102294921875, -0.0215301513671875, 0.062744140625, -0.0312347412109375, -0.019012451171875, 0.0528564453125, 0.05377197265625, 0.0163116455078125, -0.0367431640625, 0.039703369140625, 0.003078460693359375, 0.025390625, -0.002101898193359375, -0.01227569580078125, -0.00856781005859375, 0.0013933181762695312, -0.00675201416015625, -0.0282440185546875, 0.01334381103515625, 0.019073486328125, 0.006885528564453125, -0.0355224609375, -0.039947509765625, 0.004718780517578125, 0.0002071857452392578, 0.048919677734375, 0.027191162109375, -0.031463623046875, -0.009124755859375, 0.0321044921875, -0.04449462890625, -0.0099334716796875, -0.057647705078125, 0.00431060791015625, 0.01418304443359375, 0.0212860107421875, -0.01947021484375, -0.027374267578125, -0.032073974609375, -0.01544952392578125, -0.01299285888671875, 0.021881103515625, 0.0701904296875, -0.0411376953125, 0.017669677734375, -0.01349639892578125, 0.0065155029296875, 0.001766204833984375, -0.000006318092346191406, -0.0501708984375, 0.070068359375, 0.04376220703125, -0.07208251953125, -0.0016345977783203125, -0.041717529296875, 0.11968994140625, -0.0011510848999023438, -0.0188751220703125, -0.01090240478515625, 0.021240234375, 0.04412841796875, -0.00384521484375, 0.0249176025390625, -0.00893402099609375, 0.002475738525390625, 0.00004595518112182617, 0.001667022705078125, -0.017669677734375, 0.0004000663757324219, -0.028289794921875, 0.0263671875, -0.024566650390625, -0.003185272216796875, 0.052032470703125, -0.002689361572265625, 0.054046630859375, -0.00823211669921875, -0.0165252685546875, 0.0302276611328125, -0.01213836669921875, 0.025634765625, 0.03131103515625, -0.0171051025390625, 0.0016727447509765625, 0.0184478759765625, -0.003543853759765625, -0.042205810546875, -0.047607421875, 0.046112060546875, 0.006549835205078125, 0.0760498046875, 0.0159759521484375, 0.0240631103515625, 0.05364990234375, -0.057037353515625, 0.0450439453125, 0.007625579833984375, -0.0179901123046875, -0.016754150390625, -0.01230621337890625, -0.0105133056640625, 0.000027298927307128906, -0.0228118896484375, 0.0423583984375, 0.04034423828125, -0.0081024169921875, 0.0252227783203125, 0.007122039794921875, -0.026458740234375, -0.0003867149353027344, -0.1029052734375, 0.043548583984375, 0.050018310546875, 0.0296478271484375, 0.061248779296875, 0.00772857666015625, 0.01540374755859375, 0.04425048828125, -0.0278472900390625, 0.0228118896484375, -0.017730712890625, 0.0286102294921875, 0.0780029296875, -0.0252227783203125, -0.034423828125, -0.003284454345703125, -0.0853271484375, -0.0274658203125, 0.039886474609375, -0.0188751220703125, -0.0182342529296875, 0.020050048828125, -0.00919342041015625, 0.004962921142578125, 0.025787353515625, -0.01230621337890625, 0.00030732154846191406, 0.083740234375, -0.00196075439453125, 0.025360107421875, 0.0177001953125, -0.038543701171875, 0.020111083984375, 0.0240936279296875, -0.019317626953125, -0.005035400390625, 0.00021207332611083984, 0.046234130859375, -0.0302581787109375, -0.06536865234375, 0.01200103759765625, 0.057830810546875, 0.009796142578125, -0.007080078125, 0.0243377685546875, -0.005321502685546875, -0.01538848876953125, 0.0046539306640625, -0.01519775390625, -0.0013532638549804688, -0.017852783203125, 0.0762939453125, 0.002124786376953125, 0.03338623046875, -0.024627685546875, -0.0241546630859375, 0.04925537109375, 0.01232147216796875, -0.065185546875, 0.07745361328125, -0.005157470703125, 0.0299072265625, -0.011322021484375, 0.06396484375, 0.045196533203125, -0.0194854736328125, 0.0096588134765625, 0.0230560302734375, -0.017669677734375, 0.020416259765625, 0.01416015625, 0.01483154296875, -0.0279541015625, -0.0170135498046875, 0.01160430908203125, -0.00006109476089477539, 0.019500732421875, -0.00919342041015625, -0.04302978515625, -0.01071929931640625, 0.000667572021484375, -0.07611083984375, -0.0655517578125, 0.04766845703125, -0.03350830078125, 0.002628326416015625, -0.01338958740234375, -0.028778076171875, -0.034088134765625, 0.0086669921875, -0.002391815185546875, -0.02777099609375, -0.025665283203125, -0.0347900390625, -0.048431396484375, -0.03338623046875, 0.00196075439453125, -0.0088958740234375, -0.01837158203125, 0.00875091552734375, -0.00231170654296875, 0.01739501953125, -0.012603759765625, 0.033416748046875, 0.0218353271484375, -0.0035152435302734375, 0.0060577392578125, 0.0172576904296875, -0.041259765625, -0.0080108642578125, -0.01178741455078125, 0.0008754730224609375, 0.02117919921875, -0.01180267333984375, -0.00783538818359375, -0.0014219284057617188, 0.04229736328125, 0.044036865234375, -0.01849365234375, -0.0066680908203125, 0.046142578125, 0.0309600830078125, 0.0008673667907714844, -0.0274810791015625, 0.037811279296875, -0.008941650390625, 0.0267181396484375, -0.007068634033203125, -0.0284881591796875, 0.022247314453125, 0.04071044921875, 0.039031982421875, -0.01430511474609375, 0.031768798828125, -0.0008068084716796875, -0.0061798095703125, -0.003692626953125, 0.034515380859375, -0.0254058837890625, 0.036376953125, -0.0157470703125, 0.0142822265625, 0.0194091796875, 0.0018520355224609375, 0.01317596435546875, -0.0180816650390625, -0.0081329345703125, 0.0259552001953125, 0.0190887451171875, 0.0046539306640625, 0.04644775390625, -0.0238189697265625, -0.01454925537109375, -0.0216064453125, 0.0325927734375, -0.017059326171875, -0.0014677047729492188, -0.011993408203125, 0.0061492919921875, -0.0313720703125, -0.0308685302734375, -0.029693603515625, -0.00475311279296875, -0.039764404296875, 0.017486572265625, -0.0310211181640625, 0.0070343017578125, -0.033111572265625, 0.08905029296875, -0.0185699462890625, -0.029937744140625, 0.0311126708984375, -0.033477783203125, 0.0032291412353515625, 0.00002014636993408203, -0.0137176513671875, -0.020416259765625, -0.02978515625, -0.0262298583984375, -0.0753173828125, -0.01560211181640625, -0.00827789306640625, 0.07281494140625, 0.0231781005859375, -0.043365478515625, -0.03448486328125, 0.030029296875, -0.0260467529296875, 0.0158233642578125, -0.005275726318359375, 0.0252685546875, 0.00530242919921875, -0.005001068115234375, -0.0178680419921875, -0.019927978515625, 0.0222015380859375, 0.0160064697265625, -0.06011962890625, -0.036041259765625, -0.024658203125, -0.048431396484375, 0.04339599609375, -0.059326171875, -0.06976318359375, -0.021942138671875, -0.002227783203125, -0.01641845703125, -0.0037937164306640625, -0.009429931640625, -0.0067596435546875, -0.05804443359375, 0.02899169921875, 0.02496337890625, -0.0019817352294921875, -0.02069091796875, 0.0206146240234375, 0.0231170654296875, -0.031890869140625, 0.04083251953125, 0.0007534027099609375, 0.03338623046875, -0.0236358642578125, 0.04217529296875, 0.018890380859375, -0.0258636474609375, 0.0638427734375, 0.01155853271484375, 0.0206451416015625, -0.0037555694580078125, 0.072265625, 0.0091094970703125, -0.0009622573852539062, 0.033477783203125, 0.043212890625, -0.08697509765625, -0.0201263427734375, -0.031646728515625, 0.0057525634765625, -0.00490570068359375, 0.026641845703125, -0.0491943359375, 0.05914306640625, -0.01374053955078125, -0.0191497802734375, 0.01552581787109375, -0.019927978515625, 0.0207061767578125, 0.0161590576171875, -0.00928497314453125, -0.01537322998046875, -0.0088043212890625, -0.016082763671875, 0.0758056640625, 0.037261962890625, 0.03057861328125, 0.0283660888671875, 0.0294647216796875, -0.01708984375, 0.00852203369140625, -0.0016946792602539062, -0.004459381103515625, -0.01024627685546875, -0.02392578125, -0.053863525390625, 0.0188751220703125, 0.037506103515625, -0.00438690185546875, 0.0072784423828125, -0.01020050048828125, -0.0021152496337890625, -0.025726318359375, 0.0098876953125, 0.0635986328125, -0.03302001953125, -0.00553131103515625, 0.03436279296875, -0.0234375, 0.01343536376953125, -0.032928466796875, 0.092041015625, -0.01407623291015625, 0.029510498046875, -0.005428314208984375, 0.042694091796875, 0.0210113525390625, 0.05120849609375, 0.0263519287109375, -0.0430908203125, -0.000028252601623535156, 0.04522705078125, -0.03741455078125, -0.018157958984375, 0.0190277099609375, 0.023773193359375, -0.0033588409423828125, -0.007236480712890625, -0.023406982421875, 0.03009033203125, -0.005359649658203125, -0.026580810546875, 0.030792236328125, -0.01220703125, -0.03839111328125, -0.034942626953125, -0.01456451416015625, 0.03778076171875, 0.0107269287109375, 0.0034809112548828125, -0.0244140625, -0.034698486328125, -0.007366180419921875, -0.0026702880859375, 0.016357421875, -0.03558349609375, -0.05169677734375, 0.012298583984375, 0.01540374755859375, -0.00426483154296875, -0.070556640625, -0.036865234375, -0.004665374755859375, 0.01123809814453125, 0.05462646484375, 0.00439453125, 0.0142364501953125, -0.0233306884765625, 0.01413726806640625, -0.02935791015625, -0.00548553466796875, 0.032501220703125, -0.003902435302734375, -0.0113372802734375, -0.0298309326171875, -0.03643798828125, -0.0244598388671875, -0.0234832763671875, -0.02557373046875, -0.0269317626953125, 0.01058197021484375, 0.0252685546875, 0.037994384765625, 0.0125579833984375, -0.012176513671875, 0.0030078887939453125, -0.0316162109375, 1.7881393432617188e-7, 0.0283203125, -0.005657196044921875, 0.042816162109375, -0.01212310791015625, 0.058013916015625, -0.01422119140625, -0.003448486328125, -0.034454345703125, -0.0159149169921875, 0.00044918060302734375, -0.026458740234375, 0.023223876953125, -0.0081634521484375, -0.00980377197265625, -0.03302001953125, 0.012603759765625, -0.0018663406372070312, 0.024261474609375, 0.019073486328125, -0.0064697265625, -0.00807952880859375, -0.0201873779296875, 0.047027587890625, 0.049346923828125, 0.026214599609375, -0.03265380859375, -0.0261688232421875, 0.00814056396484375, 0.00960540771484375, 0.0009450912475585938, -0.00408172607421875, -0.01558685302734375, 0.00811004638671875, -0.034912109375, 0.05108642578125, 0.05316162109375, 0.0088348388671875, 0.03753662109375, 0.020263671875, 0.00322723388671875, 0.004802703857421875, 0.002227783203125, 0.004638671875, -0.0290679931640625, -0.01432037353515625, -0.0248260498046875, -0.0163116455078125, -0.02154541015625, -0.016845703125, -0.0164642333984375, 0.040313720703125, 0.038787841796875, -0.0655517578125, -0.00994873046875, -0.0018663406372070312, -0.0204620361328125, -0.038787841796875, -0.019927978515625, 0.01538848876953125, -0.016326904296875, 0.0310821533203125, 0.00923919677734375, -0.016326904296875, 0.01324462890625, -0.00861358642578125, -0.0008778572082519531, 0.01605224609375, 0.03253173828125, 0.01165771484375, -0.03363037109375, 0.01015472412109375, 0.0198516845703125, 0.0123138427734375, -0.01560211181640625, 0.01198577880859375, -0.005352020263671875, -0.0288238525390625, -0.060089111328125, -0.0189971923828125, -0.0245513916015625, -0.0325927734375, -0.0275726318359375, -0.0028076171875, 0.050872802734375, 0.033203125, -0.0010280609130859375, -0.03436279296875, 0.0211639404296875, 0.01025390625, 0.0277862548828125, -0.023529052734375, 0.006683349609375, 0.0164642333984375, -0.051177978515625, 0.004016876220703125, -0.01611328125, -0.002559661865234375, 0.003101348876953125, 0.033233642578125, 0.016204833984375, 0.0008559226989746094, -0.0382080078125, 0.0123291015625, 0.01331329345703125, 0.0156707763671875, -0.0292205810546875, 0.01035308837890625, -0.07098388671875, -0.0592041015625, -0.012908935546875, -0.085693359375, -0.016510009765625, -0.04571533203125, -0.07818603515625, 0.1241455078125, 0.0001512765884399414, 0.03515625, -0.0033626556396484375, 0.06121826171875, -0.01432037353515625, 0.0212249755859375, -0.0013494491577148438, 0.00952911376953125, -0.0091552734375, -0.03680419921875, -0.031402587890625, 0.005146026611328125, -0.0293731689453125, 0.04559326171875, 0.0088653564453125, -0.004909515380859375, 0.0401611328125, -0.01175689697265625, -0.001373291015625, 0.05194091796875, -0.006015777587890625, -0.041290283203125, 0.043914794921875, -0.004428863525390625, 0.013031005859375, 0.00783538818359375, 0.023223876953125, -0.040435791015625, 0.0233917236328125, 0.062042236328125, -0.00453948974609375, -0.0096893310546875, 0.02752685546875, 0.000018358230590820312, -0.017181396484375, 0.01432037353515625, -0.00708770751953125, -0.0267486572265625, -0.04803466796875, 0.049560546875, -0.0233917236328125, 0.01328277587890625, -0.059356689453125, -0.0077972412109375, 0.00904083251953125, 0.0018911361694335938, -0.0131988525390625, 0.0266876220703125, 0.016845703125, 0.0005331039428710938, -0.035614013671875, -0.028106689453125, -0.005962371826171875, 0.000133514404296875, 0.0162811279296875, 0.0094146728515625, 0.0149383544921875, -0.017730712890625, 0.0025081634521484375, 0.0293426513671875, 0.026153564453125, -0.034942626953125, -0.0235443115234375, 0.01059722900390625, 0.00408935546875, -0.033477783203125, -0.0037250518798828125, -0.016937255859375, 0.034423828125, 0.058563232421875, -0.0030517578125, -0.004730224609375, 0.0098419189453125, 0.022552490234375, 0.0031909942626953125, 0.0270538330078125, -0.01375579833984375, 0.0118408203125, -0.05572509765625, -0.0235137939453125, 0.02044677734375, 0.1004638671875, 0.0413818359375, 0.0465087890625, -0.050689697265625, -0.0531005859375, -0.033355712890625, 0.007228851318359375, 0.019500732421875, 0.028472900390625, -0.0301055908203125, 0.0176849365234375, 0.0322265625, 0.03765869140625, -0.0063323974609375, 0.020660400390625, 0.0294189453125, 0.01837158203125, -0.0201568603515625, -0.0077972412109375, 0.0180816650390625, -0.0357666015625, 0.031341552734375, -0.0546875, -0.0031642913818359375, -0.02642822265625, -0.0179290771484375, -0.0039520263671875, 0.00049591064453125, -0.01165771484375, -0.02276611328125, 0.0243377685546875, -0.0006098747253417969, -0.060821533203125, 0.00814056396484375, -0.00518798828125, 0.09674072265625, 0.0030765533447265625, -0.00336456298828125, 0.0246734619140625, -0.046630859375, -0.075439453125, 0.020538330078125, 0.0498046875, 0.00008702278137207031, 0.015716552734375, -0.006404876708984375, -0.04473876953125, 0.0123443603515625, 0.02264404296875, 0.001483917236328125, -0.01513671875, -0.006256103515625, -0.022979736328125, 0.01326751708984375, 0.0083465576171875, 0.01251220703125, 0.015655517578125, 0.0273590087890625, 0.00323486328125, -0.0029296875, 0.017242431640625, -0.0235137939453125, 0.02154541015625, -0.0246734619140625, 0.01226806640625, -0.022918701171875, 0.03680419921875, 0.0172119140625, -0.01029205322265625, 0.017578125, 0.0614013671875, -0.01332855224609375, -0.005054473876953125, 0.0088348388671875, -0.01226043701171875, -0.0004439353942871094, 0.05169677734375, 0.043243408203125, -0.0198516845703125, -0.048004150390625, -0.046173095703125, 0.02850341796875, 0.0222930908203125, 0.052520751953125, -0.016021728515625, 0.016754150390625, 0.00821685791015625, -0.002872467041015625, 0.01517486572265625, 0.0005407333374023438, -0.0014247894287109375, 0.019805908203125, 0.00368499755859375, -0.01244354248046875, 0.0369873046875, -0.007755279541015625, -0.004474639892578125, 0.03497314453125, 0.0207366943359375, 0.0286407470703125, -0.01324462890625, 0.026031494140625, 0.00998687744140625, 0.04937744140625, 0.005458831787109375, 0.005260467529296875, 0.01044464111328125, 0.0163116455078125, -0.03839111328125, -0.023834228515625, -0.0423583984375, -0.047454833984375, 0.0311737060546875, 0.028472900390625, 0.023345947265625, -0.01332855224609375, -0.03228759765625, -0.0182952880859375, 0.0242919921875, -0.00629425048828125, -0.0367431640625, 0.01232147216796875, -0.051971435546875, 0.0169830322265625, -0.0142364501953125, 0.04034423828125, -0.035003662109375, -0.0043487548828125, -0.044769287109375, -0.03179931640625, -0.044677734375, 0.050262451171875, -0.0241241455078125, 0.0189361572265625, 0.0250396728515625, -0.01030731201171875, -0.015411376953125, 0.01424407958984375, 0.01187896728515625, 0.0640869140625, -0.052154541015625, -0.01800537109375, 0.06988525390625, -0.01357269287109375, -0.033233642578125, -0.08807373046875, -0.01172637939453125, -0.07537841796875, 0.05322265625, -0.029815673828125, -0.007678985595703125, -0.01192474365234375, -0.053009033203125, -0.08343505859375, 0.031982421875, -0.01413726806640625, -0.037109375, -0.051605224609375, 0.01611328125, 0.0208587646484375, -0.008636474609375, -0.0222930908203125, -0.04541015625, -0.058074951171875, -0.0097808837890625, 0.033782958984375, 0.016632080078125, 0.01372528076171875, 0.0101318359375, -0.04229736328125, 0.0229644775390625, 0.00959014892578125, 0.034454345703125, 0.01335906982421875, -0.007617950439453125, 0.035552978515625, 0.04693603515625, 0.006374359130859375, -0.07769775390625, -0.0020503997802734375, -0.0845947265625, 0.0025844573974609375, -0.036956787109375, -0.061126708984375, -0.02325439453125, 0.10546875, 0.040130615234375, 0.0345458984375, -0.0255889892578125, 0.0284271240234375, -0.0210113525390625, -0.04840087890625, -0.013336181640625, 0.03607177734375, -0.07611083984375, -0.016998291015625, 0.034912109375, 0.02252197265625, -0.0355224609375, 0.0263214111328125, -0.00490570068359375, -0.0234375, 0.065185546875, -0.0034160614013671875, 0.002025604248046875, -0.02105712890625, 0.078857421875, -0.043426513671875, -0.0200958251953125, 0.053436279296875, 0.0030345916748046875, 0.036712646484375, 0.06915283203125, -0.02783203125, 0.032073974609375, -0.0210418701171875, 0.0085296630859375, -0.0037689208984375, 0.025146484375, -0.02520751953125, 0.029205322265625, -0.031829833984375, 0.0007395744323730469, -0.0011758804321289062, -0.00628662109375, 0.007274627685546875, 0.0098876953125, 0.0213470458984375, -0.01409912109375, -0.034393310546875, 0.01007843017578125, -0.019561767578125, 0.0003097057342529297, -0.00548553466796875, 0.00839996337890625, 0.04254150390625, -0.0206146240234375, 0.00726318359375, -0.01302337646484375, -0.0115966796875, -0.0136871337890625, 0.00833892822265625, -0.0193328857421875, -0.0207672119140625, 0.019805908203125 ]
756ece37049b42ae3f49dad592b0a440fb752c9c
Wordpress Stackexchange Q: is it recommended to use an MVC framework in wordpress? Just started learning wordpress... will start developping soon... is it recommended to start with an MVC framework for wordpress? tbh it's hard to follow/understand plugins as each developer use his own style (most of time it's like spaghetti coding)... will a MVC framework make a plugin more maintenable.. are there limits/constraints of using the MVC approach in wp? A: is it recommended to start with an MVC framework for wordpress? Not really. WP has no native inclination or affinity for MVC. tbh it's hard to follow/understand plugins as each developer use his own style (most of time it's like spaghetti coding)... Welcome to WordPress. :) Have no doubt though — people can mess up MVC just as thoroughly. will a MVC framework make a plugin more maintenable.. are there limits/constraints of using the MVC approach in wp? If you have knowledge and skills for specific approach then it would be easier and more convenient to maintain for you. And the other way around. There are very few universal conventions in WP development for code organization.
Q: is it recommended to use an MVC framework in wordpress? Just started learning wordpress... will start developping soon... is it recommended to start with an MVC framework for wordpress? tbh it's hard to follow/understand plugins as each developer use his own style (most of time it's like spaghetti coding)... will a MVC framework make a plugin more maintenable.. are there limits/constraints of using the MVC approach in wp? A: is it recommended to start with an MVC framework for wordpress? Not really. WP has no native inclination or affinity for MVC. tbh it's hard to follow/understand plugins as each developer use his own style (most of time it's like spaghetti coding)... Welcome to WordPress. :) Have no doubt though — people can mess up MVC just as thoroughly. will a MVC framework make a plugin more maintenable.. are there limits/constraints of using the MVC approach in wp? If you have knowledge and skills for specific approach then it would be easier and more convenient to maintain for you. And the other way around. There are very few universal conventions in WP development for code organization. A: I can feel the pain because I was going through the same problem. If you are working in a team & there is no standard procedure to follow, things get messy pretty fast. Everyone starts writing code in their own way & at the end of the day it looks like a spaghetti code. Most of the time I work with experienced WordPress developers, therefore they are already aware of wp functions that are used frequently. It is just that everyone has his/her own style. Hence to solve the problem of spaghetti code, a defined structure & coding standard is required. In my case, to solve the problem of structure, I have created a boilerplate that defines the structure to follow. The boilerplate aims to separate concerns between Model, View & Controller. Dveloper gets a chance to write individual Model, View & Controller classes. Also, the concern of whether to load a controller/model or not is delegated to Router, so that your controller & model can focus only on what they are supposed to do. I believe this would help in keeping the footprint small & keep things fast. Router automatically calls required models, controllers & views. Since this is meant to be a boilerplate & not full fledge mvc framework, it does not have things like ORM, Helpers or any other extra goodies. It only focuses on one thing & that is to allow developer write MVC code. Now that problem of structure is solved, we can look at coding standard related problem. The problem of coding standard is easy to solve. Developer has to follow WordPress Coding Standards & should use tool like phpcs,phpcbf,phpmd to deal with coding standard problems. Here is a link to the boilerplate: https://github.com/sumitpore/mvc-plugin-boilerplate-for-wordpress/
wordpress
{ "language": "en", "length": 477, "provenance": "stackexchange_00019.jsonl.gz:444185", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141047" }
[ 0.0202484130859375, -0.0247344970703125, -0.00658416748046875, -0.020477294921875, -0.00856781005859375, -0.010345458984375, 0.01413726806640625, 0.00927734375, -0.00274658203125, 0.025115966796875, -0.0096893310546875, -0.0002084970474243164, 0.003185272216796875, -0.01290130615234375, -0.00368499755859375, -0.015716552734375, 0.00909423828125, 0.0218505859375, 0.022552490234375, -0.00789642333984375, 0.006175994873046875, -0.005138397216796875, 0.013397216796875, -0.006084442138671875, 0.055999755859375, -0.018951416015625, 0.01367950439453125, 0.004505157470703125, 0.0172271728515625, 0.004795074462890625, 0.01983642578125, -0.0216827392578125, 0.0099334716796875, -0.0009508132934570312, 0.0224456787109375, -0.00958251953125, 0.00518798828125, 0.004558563232421875, 0.017364501953125, 0.014556884765625, 0.00128936767578125, -0.0004184246063232422, 0.0489501953125, -0.013336181640625, 0.0170135498046875, -0.0288848876953125, 0.014129638671875, -0.06451416015625, 0.0164031982421875, -0.014404296875, 0.03680419921875, 0.005779266357421875, 0.052154541015625, -0.0216827392578125, -0.030853271484375, -0.0228729248046875, 0.00007009506225585938, -0.004322052001953125, 0.035888671875, -0.00371551513671875, -0.0296783447265625, -0.01390838623046875, 0.0206298828125, -0.023529052734375, 0.01001739501953125, -0.0177001953125, -0.035400390625, 0.0195159912109375, 0.00223541259765625, 0.0078887939453125, 0.0128631591796875, -0.013580322265625, -0.01043701171875, -0.00543212890625, 0.0126190185546875, 0.00021636486053466797, 0.0228271484375, -0.005611419677734375, 0.00024700164794921875, 0.033477783203125, -0.01082611083984375, -0.00019311904907226562, -0.0169830322265625, -0.046051025390625, 0.014862060546875, -0.0245513916015625, -0.0192718505859375, -0.007843017578125, -0.036407470703125, -0.022491455078125, -0.031585693359375, -0.0153045654296875, -0.0518798828125, 0.006862640380859375, 0.00026154518127441406, -0.0033664703369140625, -0.0163421630859375, -0.03887939453125, 0.02264404296875, 0.037811279296875, 0.054534912109375, -0.060882568359375, 0.0831298828125, -0.0124969482421875, -0.011932373046875, 0.036651611328125, 0.0020503997802734375, 0.036956787109375, 0.0289459228515625, 0.032806396484375, 0.01450347900390625, -0.002925872802734375, 0.00757598876953125, -0.06488037109375, -0.0178680419921875, 0.033416748046875, 0.01490020751953125, -0.014984130859375, 0.0158233642578125, -0.033721923828125, -0.00565338134765625, 0.01113128662109375, -0.01146697998046875, 0.0179443359375, -0.00975799560546875, -0.00539398193359375, 0.00347900390625, -0.0279541015625, -0.046142578125, 0.010833740234375, -0.0175018310546875, 0.0262603759765625, 0.0193023681640625, 0.031280517578125, -0.0216827392578125, -0.006618499755859375, -0.01367950439453125, -0.028045654296875, 0.0004930496215820312, -0.0029430389404296875, -0.0162811279296875, -0.007541656494140625, 0.035736083984375, -0.0171356201171875, -0.0109100341796875, 0.0143585205078125, 0.02850341796875, 0.023681640625, -0.0239715576171875, -0.05242919921875, 0.03411865234375, -0.021240234375, -0.0118255615234375, 0.01325225830078125, 0.09344482421875, 0.0005016326904296875, 0.05548095703125, -0.022796630859375, 0.0133056640625, 0.01015472412109375, -0.01605224609375, -0.00433349609375, 0.043182373046875, -0.043182373046875, -0.04833984375, 0.0210113525390625, -0.037811279296875, -0.007282257080078125, 0.02154541015625, 0.014617919921875, 0.004589080810546875, -0.038726806640625, 0.01044464111328125, 0.035552978515625, -0.001552581787109375, 0.036346435546875, -0.00881195068359375, 0.0160675048828125, 0.032257080078125, 0.024688720703125, 0.0183563232421875, -0.01416778564453125, 0.095458984375, 0.0005888938903808594, -0.06219482421875, 0.053955078125, -0.0002713203430175781, 0.055267333984375, 0.01226806640625, 0.00927734375, 0.027099609375, 0.036041259765625, -0.0162506103515625, 0.047271728515625, -0.01145172119140625, -0.03753662109375, -0.0323486328125, -0.0005950927734375, -0.02423095703125, 0.0019273757934570312, 0.0218963623046875, 0.0079803466796875, -0.00595855712890625, 0.0009279251098632812, -0.037689208984375, -0.0012140274047851562, -0.01357269287109375, 0.0228271484375, 0.029632568359375, 0.0212249755859375, -0.0090789794921875, -0.005237579345703125, -0.0207061767578125, 0.00292205810546875, -0.037811279296875, 0.00152587890625, -0.00559234619140625, -0.01548004150390625, -0.00669097900390625, -0.045623779296875, 0.009857177734375, 0.03509521484375, 0.0007257461547851562, 0.0577392578125, 0.005809783935546875, -0.0139312744140625, -0.0235443115234375, -0.031646728515625, -0.0237579345703125, -0.00991058349609375, -0.0202178955078125, 0.05047607421875, -0.0209808349609375, -0.009185791015625, -0.03448486328125, 0.0027408599853515625, -0.011474609375, -0.03460693359375, -0.00348663330078125, 0.033905029296875, 0.0179901123046875, 0.024322509765625, -0.01335906982421875, 0.0287017822265625, 0.0211181640625, -0.0908203125, -0.01551055908203125, 0.016998291015625, -0.0052642822265625, 0.02850341796875, -0.01540374755859375, -0.00009846687316894531, 0.0197601318359375, -0.05487060546875, -0.0273895263671875, 0.055206298828125, -0.0233917236328125, -0.048828125, 0.0169219970703125, 0.0020294189453125, 0.0218658447265625, -0.059295654296875, -0.054534912109375, -0.012298583984375, 0.00360870361328125, -0.00313568115234375, 0.017120361328125, 0.0195770263671875, -0.017608642578125, -0.007205963134765625, 0.0238494873046875, 0.0231475830078125, -0.00353240966796875, 0.067138671875, 0.05059814453125, 0.0318603515625, -0.0323486328125, -0.0269012451171875, 0.0016088485717773438, 0.041748046875, -0.01432037353515625, 0.029693603515625, 0.00994110107421875, -0.0256195068359375, -0.0037994384765625, -0.0159912109375, 0.007137298583984375, -0.044464111328125, 0.0311431884765625, 0.0102386474609375, 0.050445556640625, -0.043121337890625, -0.0765380859375, 0.059356689453125, -0.023040771484375, -0.059661865234375, 0.01453399658203125, -0.038482666015625, 0.025909423828125, -0.01290130615234375, 0.0440673828125, 0.0677490234375, 0.01012420654296875, 0.01229095458984375, -0.0164337158203125, 0.03460693359375, 0.0101776123046875, -0.0220489501953125, -0.0261993408203125, 0.00830078125, -0.078125, 0.00901031494140625, 0.035797119140625, 0.0643310546875, 0.014678955078125, -0.034454345703125, 0.0017461776733398438, 0.0457763671875, -0.0294189453125, -0.0540771484375, 0.01401519775390625, -0.03240966796875, 0.0181121826171875, 0.019805908203125, -0.0056304931640625, -0.0295867919921875, 0.0390625, 0.003566741943359375, 0.0011568069458007812, -0.02593994140625, -0.058502197265625, -0.072021484375, -0.07415771484375, -0.0239105224609375, -0.0038623809814453125, 0.00814056396484375, 0.0027713775634765625, 0.04705810546875, 0.004978179931640625, -0.05078125, -0.010009765625, 0.0202178955078125, -0.00323486328125, 0.0148773193359375, 0.01082611083984375, -0.046630859375, -0.005123138427734375, -0.0055999755859375, 0.041595458984375, -0.0015430450439453125, -0.005359649658203125, -0.0143280029296875, 0.0020122528076171875, -0.0219573974609375, -0.003269195556640625, -0.006866455078125, -0.0182342529296875, -0.021453857421875, -0.005672454833984375, -0.06964111328125, -0.01934814453125, 0.0182342529296875, -0.0303497314453125, 0.0028018951416015625, -0.0009927749633789062, -0.0141754150390625, -0.016357421875, 0.00975799560546875, 0.006999969482421875, 0.01372528076171875, -0.051361083984375, -0.01305389404296875, 0.06707763671875, 0.002025604248046875, 0.0254058837890625, 0.007160186767578125, 0.049407958984375, -0.0235137939453125, -0.034210205078125, 0.00885009765625, -0.01165008544921875, -0.00420379638671875, -0.0231170654296875, -0.012786865234375, 0.00537872314453125, 0.0281219482421875, 0.0178985595703125, 0.0228729248046875, -0.006053924560546875, -0.01546478271484375, -0.006694793701171875, 0.0457763671875, -0.0012187957763671875, -0.0152587890625, -0.00896453857421875, 0.0029125213623046875, -0.031463623046875, -0.0194091796875, -0.04962158203125, -0.0008344650268554688, 0.0019588470458984375, 0.007053375244140625, 0.0164794921875, -0.0173492431640625, 0.0052947998046875, 0.0063934326171875, 0.0001348257064819336, -0.0201873779296875, 0.0198974609375, -0.0721435546875, 0.0198822021484375, -0.010589599609375, 0.016632080078125, -0.032562255859375, 0.014495849609375, -0.06842041015625, -0.09881591796875, -0.03216552734375, 0.02392578125, 0.0831298828125, 0.004871368408203125, -0.065673828125, -0.00930023193359375, 0.0745849609375, -0.029083251953125, 0.0421142578125, -0.006504058837890625, 0.03631591796875, -0.003421783447265625, 0.0086517333984375, 0.0025920867919921875, -0.0158233642578125, -0.01332855224609375, -0.06689453125, -0.051300048828125, -0.02197265625, -0.034912109375, 0.04010009765625, -0.024139404296875, 0.0015878677368164062, -0.01082611083984375, -0.049468994140625, -0.0634765625, 0.013458251953125, -0.052215576171875, 0.0184326171875, -0.052825927734375, -0.0266265869140625, 0.0556640625, 0.006092071533203125, -0.002819061279296875, -0.00884246826171875, 0.0789794921875, 0.005611419677734375, -0.03302001953125, -0.0293426513671875, -0.002437591552734375, 0.01436614990234375, 0.0231170654296875, 0.03363037109375, -0.0164642333984375, 0.0026874542236328125, 0.03594970703125, -0.01275634765625, 0.009857177734375, -0.007678985595703125, 0.03582763671875, -0.01216888427734375, -0.0333251953125, 0.033447265625, -0.005584716796875, -0.0016126632690429688, 0.04974365234375, -0.0018320083618164062, -0.0200653076171875, 0.0042877197265625, 0.01418304443359375, -0.02996826171875, 0.00522613525390625, -0.00406646728515625, -0.042388916015625, 0.01248931884765625, -0.00864410400390625, 0.03851318359375, 0.0195159912109375, -0.007350921630859375, 0.02691650390625, 0.01323699951171875, 0.0106201171875, 0.0316162109375, 0.0209197998046875, -0.00543975830078125, 0.0173797607421875, 0.05145263671875, -0.0001806020736694336, -0.01139068603515625, -0.0176544189453125, 0.0711669921875, 0.01271820068359375, -0.043426513671875, 0.0143585205078125, -0.0216217041015625, 0.0090179443359375, 0.00783538818359375, -0.0323486328125, 0.05328369140625, 0.00087738037109375, -0.053253173828125, -0.01116943359375, -0.0699462890625, -0.055145263671875, -0.070556640625, 0.015533447265625, -0.0256805419921875, -0.001361846923828125, 0.0404052734375, 0.00457000732421875, -0.003841400146484375, 0.021087646484375, -0.012451171875, 0.0252838134765625, 0.0167083740234375, 0.023651123046875, 0.0206146240234375, -0.0171356201171875, -0.0043182373046875, -0.00841522216796875, -0.0012636184692382812, -0.06597900390625, -0.01357269287109375, -0.0019893646240234375, 0.02923583984375, 0.010101318359375, -0.033111572265625, 0.041839599609375, 0.0211334228515625, -0.0038051605224609375, -0.0075225830078125, -0.0205535888671875, 0.00890350341796875, -0.0157012939453125, 0.0006570816040039062, 0.033905029296875, 0.025482177734375, -0.0016326904296875, 0.030364990234375, 0.02740478515625, 0.058990478515625, -0.016357421875, 0.00560760498046875, -0.00789642333984375, -0.0008063316345214844, 0.0011205673217773438, 0.0021381378173828125, -0.010345458984375, -0.0399169921875, -0.0355224609375, -0.012542724609375, -0.016204833984375, 0.07000732421875, 0.00092315673828125, 0.042755126953125, -0.036651611328125, -0.0216522216796875, -0.0457763671875, 0.015106201171875, 0.001270294189453125, -0.00655364990234375, -0.047698974609375, -0.0184783935546875, -0.06732177734375, -0.033721923828125, -0.09832763671875, -0.0284271240234375, -0.049285888671875, 0.05517578125, -0.0229339599609375, -0.005092620849609375, 0.006988525390625, 0.0216064453125, -0.0239410400390625, 0.032257080078125, 0.0031795501708984375, -0.01149749755859375, -0.015380859375, 0.055419921875, -0.01168060302734375, 0.02545166015625, 0.002841949462890625, 0.0198974609375, -0.00839996337890625, -0.013458251953125, 0.03753662109375, -0.0345458984375, -0.053955078125, -0.0157623291015625, -0.059722900390625, 0.00617218017578125, 0.021484375, -0.0290374755859375, 0.04345703125, -0.05078125, -0.00872039794921875, -0.0130462646484375, 0.033355712890625, -0.07403564453125, -0.0037631988525390625, 0.0316162109375, -0.01337432861328125, 0.006450653076171875, -0.0246124267578125, -0.034271240234375, 0.019256591796875, 0.00046634674072265625, -0.00982666015625, 0.001537322998046875, -0.01198577880859375, 0.05615234375, 0.03594970703125, 0.0059814453125, 0.036895751953125, 0.025482177734375, 0.0299530029296875, 0.00013530254364013672, 0.032684326171875, -0.01468658447265625, -0.041717529296875, 0.06866455078125, 0.0270233154296875, -0.051788330078125, 0.045257568359375, -0.047760009765625, 0.0205535888671875, 0.039215087890625, 0.0537109375, -0.08935546875, 0.0274810791015625, 0.0115203857421875, -0.0104522705078125, 0.00868988037109375, -0.0028476715087890625, -0.010162353515625, -0.0252838134765625, 0.08306884765625, -0.06781005859375, -0.01427459716796875, 0.0172576904296875, -0.061431884765625, -0.0021533966064453125, -0.0101165771484375, 0.029205322265625, 0.01169586181640625, -0.06329345703125, 0.00789642333984375, 0.046539306640625, -0.001209259033203125, -0.0074615478515625, 0.0175323486328125, -0.006946563720703125, -0.018402099609375, -0.0016613006591796875, 0.051971435546875, 0.001255035400390625, 0.00429534912109375, 0.0343017578125, -0.024810791015625, -0.003627777099609375, 0.041046142578125, -0.044219970703125, 0.056427001953125, -0.006984710693359375, -0.01346588134765625, -0.0400390625, -0.0160980224609375, 0.0111541748046875, 0.0230712890625, -0.042938232421875, 0.031036376953125, -0.03338623046875, -0.01282501220703125, 0.0011844635009765625, 0.0198822021484375, 0.049072265625, 0.0004105567932128906, -0.034942626953125, 0.0277252197265625, 0.01459503173828125, -0.00815582275390625, -0.036865234375, -0.034027099609375, -0.08587646484375, -0.0251617431640625, -0.0439453125, -0.0396728515625, 0.051116943359375, -0.04248046875, -0.0302276611328125, 0.034912109375, 0.040435791015625, -0.0242767333984375, -0.0016794204711914062, 0.020233154296875, -0.0243682861328125, 0.006870269775390625, -0.0263671875, 0.0171051025390625, -0.01678466796875, -0.033966064453125, -0.01438140869140625, 0.017852783203125, -0.054229736328125, -0.007358551025390625, 0.0212249755859375, 0.0193634033203125, -0.06756591796875, 0.01038360595703125, 0.02587890625, 0.030975341796875, 0.0105133056640625, 0.057159423828125, -0.0268402099609375, -0.035491943359375, -0.0122528076171875, -0.01230621337890625, 0.0142822265625, -0.0149383544921875, -0.031646728515625, -0.0142059326171875, 0.0110015869140625, 0.00827789306640625, 0.01049041748046875, -0.001918792724609375, 0.00365447998046875, -0.0011224746704101562, -0.00677490234375, 0.0216522216796875, 0.01739501953125, 0.00933837890625, 0.01045989990234375, 0.00664520263671875, 0.00872802734375, -0.012847900390625, 0.04718017578125, -0.01372528076171875, 0.0008435249328613281, 0.024993896484375, 0.00267791748046875, -0.0113067626953125, 0.01241302490234375, -0.00814056396484375, 0.0296783447265625, -0.00673675537109375, 0.0264892578125, -0.00955963134765625, 0.034271240234375, -0.06512451171875, -0.07257080078125, 0.038543701171875, 0.06280517578125, -0.0014677047729492188, 0.04010009765625, 0.0117034912109375, 0.022308349609375, 0.006504058837890625, -0.03753662109375, 0.0625, 0.03863525390625, 0.00464630126953125, -0.035736083984375, 0.004047393798828125, 0.0308990478515625, 0.0015411376953125, 0.0011034011840820312, -0.006366729736328125, -0.005886077880859375, 0.01317596435546875, 0.00024056434631347656, -0.0005712509155273438, 0.00031113624572753906, 0.0089569091796875, -0.00872039794921875, 0.01490020751953125, -0.00926971435546875, -0.00403594970703125, 0.037750244140625, 0.0224609375, -0.00921630859375, -0.03790283203125, -0.02099609375, -0.0792236328125, 0.03271484375, 0.0325927734375, 0.0203704833984375, 0.049835205078125, 0.0218963623046875, 0.006237030029296875, 0.0267333984375, 0.00788116455078125, 0.059295654296875, -0.01271820068359375, -0.0185699462890625, -0.00133514404296875, -0.04779052734375, -0.00945281982421875, -0.035064697265625, -0.00885009765625, -0.004749298095703125, 0.0104217529296875, -0.0028629302978515625, 0.0307464599609375, 0.0004935264587402344, -0.02557373046875, 0.042999267578125, -0.01425933837890625, 0.1046142578125, 0.01490020751953125, -0.050750732421875, -0.003253936767578125, -0.01885986328125, -0.043914794921875, 0.005458831787109375, 0.0299835205078125, -0.004062652587890625, 0.016448974609375, 0.033660888671875, -0.0126800537109375, -0.00341033935546875, 0.0201873779296875, -0.0081024169921875, -0.034576416015625, 0.044036865234375, -0.00737762451171875, -0.01214599609375, -0.016632080078125, -0.0249176025390625, 0.051422119140625, 0.01212310791015625, 0.11785888671875, -0.056427001953125, 0.027496337890625, 0.0009722709655761719, -0.022308349609375, -0.0009059906005859375, -0.01398468017578125, 0.0189361572265625, -0.0097198486328125, -0.01323699951171875, -0.01245880126953125, -0.0260162353515625, 0.01052093505859375, 0.010101318359375, -0.043304443359375, 0.01446533203125, -0.01515960693359375, 0.01360321044921875, -0.007503509521484375, 0.01248931884765625, -0.03729248046875, -0.06353759765625, -0.0289459228515625, 0.016326904296875, -0.003429412841796875, 0.0217742919921875, 0.00055694580078125, -0.0006074905395507812, -0.044921875, -0.04388427734375, -0.035675048828125, -0.023834228515625, -0.0697021484375, 0.026885986328125, 0.0114898681640625, -0.068359375, 0.05377197265625, 0.00327301025390625, -0.023834228515625, 0.0272979736328125, 0.044891357421875, 0.025482177734375, -0.1143798828125, 0.02581787109375, 0.07452392578125, 0.06512451171875, -0.00749969482421875, 0.023529052734375, 0.0292205810546875, -0.018890380859375, 0.0105743408203125, 0.0089569091796875, -0.019744873046875, -0.0083465576171875, -0.032501220703125, 0.007045745849609375, -0.036590576171875, -0.050323486328125, -0.0821533203125, -0.0247039794921875, 0.027252197265625, 0.00447845458984375, -0.0284271240234375, 0.004306793212890625, -0.006725311279296875, -0.006053924560546875, -0.0014944076538085938, -0.0227813720703125, 0.010345458984375, 0.0095062255859375, -0.0252532958984375, -0.00714111328125, -0.006801605224609375, 0.004070281982421875, -0.0020618438720703125, 0.07598876953125, 0.07208251953125, -0.057281494140625, 0.005809783935546875, 0.06829833984375, 0.05303955078125, 0.129638671875, 0.0085296630859375, -0.03131103515625, 0.0086517333984375, 0.000244140625, 0.0182952880859375, -0.0291900634765625, -0.0192413330078125, -0.01105499267578125, 0.0019207000732421875, -0.006107330322265625, -0.0038852691650390625, -0.0002321004867553711, -0.0634765625, -0.1383056640625, 0.0958251953125, -0.035858154296875, -0.041595458984375, -0.0027675628662109375, -0.0099334716796875, 0.01123046875, -0.032470703125, -0.00263214111328125, -0.043609619140625, -0.049224853515625, -0.007778167724609375, 0.02825927734375, -0.002239227294921875, 0.039947509765625, 0.005035400390625, -0.0117950439453125, 0.02532958984375, 0.0172271728515625, 0.01611328125, -0.0241851806640625, 0.006397247314453125, 0.03607177734375, 0.041351318359375, -0.007312774658203125, 0.03265380859375, 0.015777587890625, 0.0253143310546875, 0.00777435302734375, -0.042755126953125, -0.005199432373046875, -0.01401519775390625, 0.0161285400390625, 0.0147857666015625, 0.01076507568359375, -0.0115509033203125, -0.018310546875, -0.0283660888671875, -0.011505126953125, -0.002880096435546875, 0.010833740234375, -0.0662841796875, -0.00801849365234375, 0.0186004638671875, -0.0132293701171875, 0.0225982666015625, -0.02349853515625, -0.0391845703125, -0.0024127960205078125, -0.02545166015625, -0.0132293701171875, -0.054107666015625, 0.0302581787109375, 0.042938232421875, -0.0164031982421875, 0.05108642578125, -0.01763916015625, 0.005786895751953125, 0.0555419921875, 0.03399658203125, -0.01050567626953125, 0.045013427734375, -0.0301971435546875, 0.0019893646240234375, 0.00815582275390625, 0.01561737060546875, 0.0021877288818359375, 0.006763458251953125, -0.007770538330078125, 0.04473876953125, 0.0202484130859375, 0.08087158203125, -0.0309906005859375, 0.0171051025390625, 0.021636962890625, -0.03887939453125, -0.0163116455078125, -0.0032825469970703125, -0.0159912109375, 0.0294189453125, -0.0333251953125, 0.00559234619140625, 0.004276275634765625, -0.03466796875, 0.00702667236328125, 0.0173797607421875, 0.0208282470703125, -0.00730133056640625, 0.0016727447509765625, -0.01488494873046875, -0.00449371337890625, 0.005176544189453125 ]
77359c4461812e8907498c379836515d1363cfed
Wordpress Stackexchange Q: How to customize wp_signon() I am trying to get a customized sign on process. The features that are absent in WordPress by default are the following: * *Allow user to choose a password at the time of registration. *Allow user to sign in using social networks particularly Facebook, Twitter and Google plus. *Verify user's Cell Phone number using sms for activating account. *Let the default role of every new user, irrespective of the sign in method, be elevated to contributor. *Upon successful log in, the user should be directed to his own personalized dashboard instead of the static home page. So my questions are: * *I have looked at numerous plugins which provide social media log ins, but all of them signup the user as a contributor. So, how do it change this behavior? *How do I send both the email and sms verification before activating the account? Which hook do I need to use here? *Once the user logs in successfully, how do I redirect him/her? *How do I let the user select the password, or better still, present the user creation page seen by admin only to the anonymous user?
Q: How to customize wp_signon() I am trying to get a customized sign on process. The features that are absent in WordPress by default are the following: * *Allow user to choose a password at the time of registration. *Allow user to sign in using social networks particularly Facebook, Twitter and Google plus. *Verify user's Cell Phone number using sms for activating account. *Let the default role of every new user, irrespective of the sign in method, be elevated to contributor. *Upon successful log in, the user should be directed to his own personalized dashboard instead of the static home page. So my questions are: * *I have looked at numerous plugins which provide social media log ins, but all of them signup the user as a contributor. So, how do it change this behavior? *How do I send both the email and sms verification before activating the account? Which hook do I need to use here? *Once the user logs in successfully, how do I redirect him/her? *How do I let the user select the password, or better still, present the user creation page seen by admin only to the anonymous user?
wordpress
{ "language": "en", "length": 193, "provenance": "stackexchange_00019.jsonl.gz:444213", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141144" }
[ 0.01168060302734375, 0.015533447265625, -0.021484375, -0.0155487060546875, 0.01654052734375, -0.009674072265625, 0.004962921142578125, -0.045257568359375, -0.06219482421875, 0.0005812644958496094, 0.002613067626953125, 0.02069091796875, -0.0743408203125, -0.0292816162109375, 0.0199737548828125, -0.0711669921875, 0.0009360313415527344, 0.0245819091796875, 0.00760650634765625, -0.030181884765625, 0.00960540771484375, -0.0278167724609375, 0.005725860595703125, 0.05364990234375, 0.0259552001953125, -0.02569580078125, 0.056915283203125, -0.022552490234375, 0.0176239013671875, 0.0016956329345703125, 0.028961181640625, -0.03692626953125, 0.00047707557678222656, 0.036407470703125, -0.013824462890625, -0.040191650390625, 0.0019321441650390625, 0.0172882080078125, 0.0070648193359375, 0.018157958984375, 0.024749755859375, -0.0039005279541015625, 0.04754638671875, -0.01540374755859375, 0.00479888916015625, -0.035003662109375, 0.05859375, -0.0143585205078125, 0.0203399658203125, 0.029510498046875, -0.01666259765625, 0.01280975341796875, -0.0015859603881835938, -0.051361083984375, -0.01279449462890625, -0.053436279296875, -0.03717041015625, 0.008941650390625, 0.0189361572265625, 0.066162109375, -0.005046844482421875, 0.002391815185546875, -0.01910400390625, -0.050384521484375, -0.01163482666015625, -0.00029778480529785156, -0.050384521484375, 0.0191192626953125, -0.0243988037109375, -0.024993896484375, 0.004016876220703125, -0.0283660888671875, 0.0015878677368164062, -0.0153350830078125, -0.00726318359375, 0.05206298828125, -0.0294952392578125, 0.0246429443359375, 0.046600341796875, -0.01568603515625, -0.003917694091796875, 0.0111541748046875, 0.00298309326171875, -0.05023193359375, 0.04022216796875, -0.029388427734375, -0.0116424560546875, -0.01094818115234375, 0.005199432373046875, 0.0091552734375, 0.003223419189453125, -0.045440673828125, -0.01352691650390625, 0.041961669921875, 0.003955841064453125, -0.01708984375, 0.0152740478515625, 0.0224761962890625, 0.0005130767822265625, -0.016754150390625, 0.025115966796875, -0.03759765625, -0.0166015625, -0.02093505859375, -0.005916595458984375, 0.07989501953125, -0.00836944580078125, -0.009521484375, -0.00959014892578125, 0.01387786865234375, 0.0237884521484375, -0.08172607421875, 0.029632568359375, -0.0080413818359375, -0.01531219482421875, -0.0086822509765625, 0.01324462890625, 0.0305938720703125, 0.006778717041015625, 0.005809783935546875, -0.0201873779296875, -0.0024890899658203125, -0.0126190185546875, 0.003047943115234375, -0.00435638427734375, -0.0302276611328125, -0.0025081634521484375, 0.00814056396484375, -0.03839111328125, 0.0285797119140625, -0.03564453125, 0.027252197265625, 0.08331298828125, 0.02496337890625, -0.005008697509765625, -0.0236358642578125, 0.0179901123046875, 0.007144927978515625, -0.004734039306640625, 0.019012451171875, -0.0186767578125, -0.0231170654296875, 0.01323699951171875, -0.0205230712890625, 0.04376220703125, 0.02593994140625, 0.0270233154296875, -0.0008578300476074219, 0.005802154541015625, -0.024871826171875, 0.0014371871948242188, -0.007129669189453125, -0.02410888671875, 0.0157318115234375, 0.06243896484375, 0.00733184814453125, 0.031341552734375, -0.007328033447265625, 0.0215606689453125, 0.0198516845703125, 0.041717529296875, -0.0180511474609375, -0.036468505859375, 0.025787353515625, -0.002529144287109375, 0.0198211669921875, 0.01474761962890625, 0.0109405517578125, 0.0251007080078125, -0.01213836669921875, 0.0186920166015625, 0.0034084320068359375, 0.033660888671875, 0.0024318695068359375, 0.0032634735107421875, 0.003696441650390625, -0.02447509765625, 0.036865234375, 0.045745849609375, -0.005523681640625, -0.0042724609375, -0.0257110595703125, 0.11602783203125, -0.0254364013671875, -0.054168701171875, 0.0352783203125, -0.0023288726806640625, 0.044097900390625, 0.0188751220703125, 0.0098419189453125, 0.023681640625, 0.0252838134765625, -0.049560546875, 0.03936767578125, -0.024200439453125, -0.0136871337890625, -0.015350341796875, 0.0008363723754882812, -0.0290985107421875, 0.003955841064453125, 0.01904296875, -0.0247955322265625, 0.0107879638671875, -0.0384521484375, -0.0302734375, -0.031951904296875, -0.00865936279296875, 0.0227203369140625, 0.0123443603515625, 0.0021991729736328125, 0.002872467041015625, -0.035919189453125, -0.00664520263671875, -0.007781982421875, -0.025787353515625, -0.00914764404296875, -0.03472900390625, 0.0499267578125, -0.01039886474609375, 0.036651611328125, -0.0006747245788574219, -0.043548583984375, 0.023529052734375, 0.001529693603515625, 0.060943603515625, -0.0200347900390625, -0.0078582763671875, -0.0367431640625, 0.061248779296875, -0.0110931396484375, 0.0032711029052734375, 0.037841796875, -0.03424072265625, -0.00594329833984375, -0.0380859375, -0.004425048828125, 0.0095062255859375, 0.0159912109375, 0.0137481689453125, 0.0152435302734375, 0.0262451171875, 0.0172119140625, -0.0011014938354492188, 0.0112762451171875, 0.014129638671875, -0.012786865234375, 0.04046630859375, -0.01509857177734375, 0.0275421142578125, 0.071533203125, -0.014801025390625, -0.01319122314453125, -0.0004343986511230469, -0.0584716796875, 0.00832366943359375, 0.02630615234375, -0.041046142578125, -0.0587158203125, 0.0294647216796875, -0.00276947021484375, 0.017120361328125, -0.0390625, -0.0033321380615234375, -0.017547607421875, -0.032989501953125, -0.00685882568359375, -0.0262451171875, -0.01287078857421875, -0.01049041748046875, -0.00412750244140625, 0.0287628173828125, -0.024688720703125, -0.0130462646484375, 0.025634765625, 0.036041259765625, -0.0394287109375, -0.00965118408203125, -0.0110626220703125, -0.02630615234375, -0.01215362548828125, 0.0079193115234375, 0.0235137939453125, -0.0209503173828125, -0.01549530029296875, 0.009979248046875, -0.04901123046875, -0.005596160888671875, 0.0186920166015625, 0.007099151611328125, -0.017242431640625, 0.0269927978515625, -0.005641937255859375, -0.017333984375, 0.0015277862548828125, 0.0168609619140625, -0.036895751953125, -0.03570556640625, -0.0404052734375, 0.030609130859375, -0.04278564453125, 0.03192138671875, 0.076416015625, -0.017242431640625, 0.02288818359375, -0.007503509521484375, 0.0174407958984375, -0.0113372802734375, 0.02423095703125, 0.0089263916015625, -0.0301513671875, 0.00424957275390625, 0.01458740234375, 0.0132598876953125, 0.0216827392578125, -0.0036792755126953125, -0.01197052001953125, -0.0096893310546875, 0.0125732421875, 0.004116058349609375, 0.01052093505859375, -0.0305023193359375, -0.10699462890625, 0.0152740478515625, -0.037200927734375, -0.036773681640625, 0.01560211181640625, -0.0015077590942382812, 0.00870513916015625, -0.038177490234375, -0.04254150390625, -0.04168701171875, -0.08367919921875, -0.044281005859375, -0.030548095703125, -0.0089569091796875, 0.0026226043701171875, -0.0012331008911132812, -0.009521484375, 0.00408172607421875, 0.016876220703125, 0.0276031494140625, 0.03485107421875, 0.0096435546875, -0.0419921875, -0.0018892288208007812, -0.0211029052734375, 0.007564544677734375, -0.01154327392578125, -0.00727081298828125, 0.01483917236328125, -0.01043701171875, 0.0106658935546875, 0.00011920928955078125, -0.0406494140625, -0.00562286376953125, 0.035858154296875, 0.0015239715576171875, -0.01092529296875, 0.022735595703125, -0.0340576171875, 0.040863037109375, 0.004009246826171875, -0.000044286251068115234, 0.00559234619140625, -0.017364501953125, -0.0307464599609375, 0.0182037353515625, -0.01319122314453125, 0.0204620361328125, 0.0006237030029296875, 0.0226898193359375, 0.0020694732666015625, -0.005664825439453125, -0.013275146484375, -0.0013990402221679688, -0.03582763671875, -0.01114654541015625, -0.034271240234375, 0.0165252685546875, -0.00867462158203125, 0.024383544921875, 0.011199951171875, -0.014678955078125, -0.0210418701171875, -0.054901123046875, 0.039642333984375, -0.049468994140625, -0.0011892318725585938, -0.050994873046875, -0.0036182403564453125, -0.014007568359375, 0.07244873046875, 0.01204681396484375, -0.00919342041015625, 0.0140380859375, 0.013214111328125, -0.0692138671875, -0.01056671142578125, -0.032928466796875, -0.004268646240234375, -0.07220458984375, 0.017913818359375, -0.02215576171875, -0.0179290771484375, -0.003192901611328125, -0.07647705078125, -0.0245208740234375, -0.061126708984375, 0.017852783203125, 0.0195465087890625, 0.0003681182861328125, -0.0204315185546875, -0.00870513916015625, -0.041351318359375, 0.0283050537109375, -0.0016736984252929688, -0.0286407470703125, -0.00026702880859375, -0.025421142578125, 0.0116424560546875, 0.012481689453125, -0.01233673095703125, 0.0093536376953125, 0.03314208984375, -0.00848388671875, -0.02069091796875, 0.017791748046875, 0.018280029296875, 0.0086822509765625, 0.00140380859375, -0.021087646484375, -0.026214599609375, 0.00902557373046875, -0.006229400634765625, -0.0290374755859375, 0.051025390625, -0.018280029296875, 0.0272369384765625, 0.0034580230712890625, -0.0220794677734375, -0.04150390625, -0.02618408203125, -0.0283660888671875, 0.018768310546875, -0.00487518310546875, 0.00038123130798339844, -0.03631591796875, -0.04937744140625, 0.04620361328125, -0.022674560546875, -0.01006317138671875, -0.011932373046875, 0.09185791015625, 0.0291900634765625, 0.00019359588623046875, 0.041168212890625, -0.047698974609375, 0.020355224609375, 0.0184783935546875, 0.0022735595703125, 0.01251983642578125, -0.0157012939453125, 0.0036983489990234375, 0.01045989990234375, 0.008758544921875, 0.0278472900390625, -0.005794525146484375, -0.0107574462890625, -0.050140380859375, 0.031890869140625, -0.01337432861328125, -0.01861572265625, 0.019317626953125, 0.023162841796875, -0.015869140625, 0.021240234375, -0.0005393028259277344, 0.00380706787109375, -0.0225982666015625, 0.0018558502197265625, -0.007663726806640625, 0.017120361328125, -0.036346435546875, -0.0062408447265625, 0.00763702392578125, -0.0012502670288085938, -0.05096435546875, -0.034515380859375, -0.012054443359375, -0.0288848876953125, -0.060638427734375, -0.00676727294921875, 0.007282257080078125, -0.02813720703125, 0.0011768341064453125, 0.01519012451171875, -0.013671875, 0.10107421875, 0.00637054443359375, -0.058197021484375, 0.0029468536376953125, -0.0294036865234375, 0.050567626953125, 0.01242828369140625, -0.025848388671875, 0.06414794921875, 0.0277557373046875, -0.017822265625, -0.0181427001953125, -0.0635986328125, -0.005443572998046875, -0.067138671875, 0.0064544677734375, -0.01357269287109375, 0.007564544677734375, 0.01885986328125, 0.06658935546875, -0.00286102294921875, 0.04278564453125, -0.01873779296875, 0.0282135009765625, 0.041778564453125, -0.0241851806640625, 0.0071868896484375, 0.0517578125, -0.0182647705078125, -0.032318115234375, 0.01715087890625, 0.005462646484375, 0.006866455078125, -0.0008835792541503906, 0.00717926025390625, -0.0089263916015625, -0.0028209686279296875, 0.01471710205078125, -0.0262451171875, -0.0216064453125, 0.044403076171875, -0.0107269287109375, -0.0809326171875, -0.0179443359375, 0.00835418701171875, 0.018524169921875, -0.03021240234375, 0.0036144256591796875, -0.020538330078125, -0.047149658203125, -0.0159454345703125, 0.0274505615234375, -0.0254058837890625, -0.01207733154296875, -0.021514892578125, -0.031219482421875, 0.00991058349609375, 0.0182647705078125, -0.032562255859375, -0.03515625, -0.00824737548828125, -0.0291595458984375, 0.05682373046875, -0.024261474609375, 0.039093017578125, -0.0288238525390625, 0.0018682479858398438, -0.00826263427734375, 0.01387786865234375, 0.032440185546875, 0.00518035888671875, -0.019683837890625, -0.00917816162109375, -0.01264190673828125, -0.019134521484375, -0.0264739990234375, -0.0245513916015625, -0.029815673828125, 0.00496673583984375, 0.037353515625, 0.027435302734375, 0.0229949951171875, -0.02508544921875, -0.06768798828125, 0.0323486328125, 0.0543212890625, 0.07373046875, 0.0031337738037109375, 0.002422332763671875, 0.01074981689453125, 0.038330078125, 0.0169830322265625, 0.006748199462890625, -0.00650787353515625, -0.030914306640625, -0.00856781005859375, 0.0197601318359375, -0.00417327880859375, -0.0114593505859375, -0.0019931793212890625, 0.009674072265625, 0.0982666015625, -0.0006532669067382812, -0.0296630859375, 0.0005860328674316406, 0.003574371337890625, -0.018463134765625, 0.044921875, 0.057769775390625, -0.01073455810546875, -0.01055145263671875, -0.0272979736328125, 0.033782958984375, -0.00481414794921875, 0.01013946533203125, 0.0033779144287109375, -0.03131103515625, 0.0006914138793945312, 0.039306640625, -0.043121337890625, 0.046112060546875, 0.041168212890625, -0.01419830322265625, 0.01178741455078125, -0.00791168212890625, -0.0160980224609375, -0.0028018951416015625, 0.024566650390625, -0.035064697265625, -0.035308837890625, 0.01378631591796875, 0.0083160400390625, -0.0218048095703125, -0.002017974853515625, -0.006618499755859375, 0.0149383544921875, 0.07220458984375, 0.072021484375, -0.1282958984375, 0.028045654296875, 0.01346588134765625, 0.01702880859375, 0.0418701171875, 0.011260986328125, -0.0083160400390625, -0.0142822265625, 0.01329803466796875, -0.0343017578125, -0.026519775390625, -0.006916046142578125, -0.0161590576171875, -0.01904296875, -0.01568603515625, 0.0081939697265625, 0.0034465789794921875, -0.0216217041015625, -0.006198883056640625, 0.005870819091796875, -0.00760650634765625, -0.017730712890625, -0.0065155029296875, 0.01279449462890625, -0.013214111328125, -0.06787109375, 0.01021575927734375, -0.04205322265625, 0.0013952255249023438, 0.0284423828125, -0.03173828125, 0.0511474609375, 0.020111083984375, -0.00437164306640625, 0.00435638427734375, -0.020172119140625, -0.01105499267578125, 0.0147247314453125, -0.017791748046875, 0.0153350830078125, 0.00677490234375, -0.0201416015625, 0.021514892578125, -0.00417327880859375, -0.04693603515625, 0.005016326904296875, 0.01202392578125, 0.047454833984375, -0.005893707275390625, -0.0275726318359375, 0.0498046875, -0.028045654296875, -0.019927978515625, -0.04119873046875, 0.022003173828125, -0.09356689453125, -0.049774169921875, -0.0276641845703125, -0.039794921875, -0.0016355514526367188, -0.029937744140625, -0.0276336669921875, 0.0762939453125, 0.01666259765625, -0.007091522216796875, 0.00446319580078125, 0.029571533203125, -0.01219940185546875, 0.03314208984375, -0.01357269287109375, 0.0213623046875, -0.050140380859375, 0.0408935546875, 0.0016613006591796875, 0.0187225341796875, 0.007663726806640625, -0.01267242431640625, 0.06768798828125, 0.0274810791015625, -0.04547119140625, -0.05145263671875, -0.028289794921875, 0.0167694091796875, -0.022491455078125, 0.052001953125, -0.0183563232421875, 0.0222320556640625, 0.01849365234375, -0.0638427734375, -0.00017774105072021484, -0.006755828857421875, -0.0010051727294921875, 0.0168609619140625, 0.014007568359375, -0.0169219970703125, -0.0265960693359375, 0.046112060546875, -0.10125732421875, -0.00305938720703125, 0.06512451171875, -0.005825042724609375, -0.0224761962890625, 0.045806884765625, 0.00995635986328125, -0.003978729248046875, 0.03399658203125, -0.034698486328125, 0.041656494140625, -0.01483154296875, 0.0053863525390625, 0.023223876953125, 0.025909423828125, -0.023956298828125, -0.045989990234375, -0.0180511474609375, -0.008941650390625, -0.02593994140625, 0.048919677734375, -0.005855560302734375, 0.01097869873046875, -0.06683349609375, 0.006168365478515625, 0.028106689453125, 0.061981201171875, -0.041656494140625, -0.036407470703125, 0.0099334716796875, 0.00677490234375, 0.06304931640625, 0.0108489990234375, 0.09423828125, -0.06085205078125, -0.04058837890625, -0.0294647216796875, 0.027496337890625, 0.03656005859375, 0.00293731689453125, -0.00582122802734375, 0.0220794677734375, -0.037628173828125, 0.040771484375, -0.0005850791931152344, 0.0216217041015625, 0.007144927978515625, -0.04656982421875, -0.0229949951171875, 0.00438690185546875, 0.06390380859375, 0.038970947265625, -0.0185394287109375, 0.017669677734375, 0.053985595703125, -0.0027942657470703125, 0.00847625732421875, 0.0256805419921875, -0.0014925003051757812, 0.01971435546875, -0.002288818359375, -0.00804901123046875, 0.0313720703125, 0.0132293701171875, -0.034149169921875, -0.0252227783203125, 0.007434844970703125, -0.0306549072265625, -0.00994873046875, -0.0197296142578125, 0.0138092041015625, 0.0275421142578125, -0.00811004638671875, 0.0177459716796875, 0.01031494140625, 0.03466796875, 0.0158233642578125, 0.06805419921875, 0.005702972412109375, -0.0003070831298828125, 0.009918212890625, -0.0121307373046875, 0.08258056640625, 0.0277557373046875, -0.0732421875, 0.0074310302734375, -0.0635986328125, -0.07635498046875, 0.044219970703125, 0.041015625, -0.03643798828125, 0.03118896484375, 0.02294921875, 0.03326416015625, 0.0232391357421875, -0.034454345703125, -0.0216522216796875, -0.01418304443359375, 0.04449462890625, 0.0037994384765625, -0.0751953125, -0.0255279541015625, -0.0167999267578125, -0.00408172607421875, -0.018585205078125, 0.08746337890625, 0.0093841552734375, -0.00780487060546875, -0.006687164306640625, 0.01029205322265625, -0.0277099609375, -0.01070404052734375, 0.034271240234375, -0.006618499755859375, -0.003997802734375, -0.006618499755859375, -0.0340576171875, 0.062164306640625, -0.01087188720703125, -0.0026798248291015625, 0.060028076171875, -0.0204315185546875, -0.0108184814453125, -0.01043701171875, -0.004787445068359375, -0.04034423828125, -0.0833740234375, -0.05462646484375, 0.01425933837890625, -0.029510498046875, -0.01251983642578125, -0.00981903076171875, 0.0452880859375, -0.052154541015625, -0.08856201171875, 0.00643157958984375, -0.09222412109375, -0.017852783203125, 0.032379150390625, 0.028656005859375, 0.0272369384765625, -0.0165863037109375, -0.01708984375, 0.00033354759216308594, 0.0208282470703125, -0.042236328125, -0.0004868507385253906, -0.01580810546875, 0.048919677734375, 0.048858642578125, 0.0501708984375, -0.038787841796875, -0.0030078887939453125, 0.0689697265625, -0.011383056640625, 0.01515960693359375, -0.0675048828125, -0.03814697265625, -0.06884765625, -0.003627777099609375, 0.0278472900390625, -0.0458984375, -0.049072265625, -0.0552978515625, 0.02642822265625, 0.04290771484375, 0.01494598388671875, -0.074462890625, 0.04656982421875, -0.03936767578125, 0.040374755859375, -0.0027313232421875, -0.00247955322265625, -0.00778961181640625, -0.01346588134765625, -0.0250244140625, 0.006389617919921875, -0.034149169921875, -0.0031261444091796875, -0.00702667236328125, 0.010101318359375, 0.057159423828125, 0.005619049072265625, -0.04461669921875, 0.01352691650390625, -0.0374755859375, 0.0665283203125, -0.06951904296875, -0.039703369140625, 0.006145477294921875, -0.01113128662109375, -0.018646240234375, 0.0150146484375, 0.02362060546875, -0.03228759765625, -0.0345458984375, -0.019989013671875, -0.0187835693359375, -0.0017213821411132812, -0.055755615234375, -0.11187744140625, 0.04730224609375, -0.0237579345703125, -0.036956787109375, -0.054107666015625, 0.0087890625, 0.0037784576416015625, -0.0190887451171875, -0.0228424072265625, -0.01006317138671875, -0.04229736328125, 0.011566162109375, 0.012603759765625, -0.0176544189453125, 0.02471923828125, 0.0135650634765625, -0.0616455078125, 0.013214111328125, 0.001575469970703125, -0.0002522468566894531, 0.035980224609375, -0.005397796630859375, 0.01403045654296875, 0.04254150390625, -0.04638671875, -0.04803466796875, -0.048370361328125, -0.019866943359375, -0.00017440319061279297, -0.049285888671875, 0.0479736328125, 0.00254058837890625, 0.0007386207580566406, -0.017364501953125, -0.01678466796875, -0.0269927978515625, 0.0026683807373046875, -0.032257080078125, -0.0031414031982421875, -0.02435302734375, 0.0017337799072265625, -0.056854248046875, -0.020050048828125, 0.0026226043701171875, 0.008331298828125, -0.004589080810546875, 0.012176513671875, -0.01392364501953125, -0.01995849609375, -0.0014600753784179688, -0.02154541015625, -0.05218505859375, 0.018035888671875, 0.07000732421875, -0.048126220703125, -0.0263671875, 0.007495880126953125, -0.0004107952117919922, 0.005901336669921875, -0.0216827392578125, 0.01739501953125, 0.037811279296875, -0.084228515625, -0.01045989990234375, -0.0032672882080078125, 0.0313720703125, -0.04742431640625, -0.029876708984375, -0.00644683837890625, 0.01922607421875, -0.002044677734375, 0.03302001953125, -0.013671875, 0.02587890625, 0.00771331787109375, 0.01812744140625, -0.016815185546875, -0.037261962890625, -0.052032470703125, 0.048583984375, -0.0251922607421875, -0.0143585205078125, 0.003826141357421875, -0.00681304931640625, 0.01032257080078125, -0.024383544921875, 0.027740478515625, -0.0215301513671875, 0.0260467529296875, 0.031463623046875, -0.0157623291015625, 0.0200347900390625 ]
86425f4f903ba45be02bf6cad0250ba52283d77a
Wordpress Stackexchange Q: Force HTTPS using .htaccess - stuck in redirect loop My Wordpress website is located at example.com/wordpress and I need everything inside to be accessible only using SSL. I've created a .htaccess rule that redirects http -> https: RewriteEngine On RewriteRule ^/?(.*) https://%{SERVER_NAME}/wordpress/directory/$1 [R,L] After implementing this rule the website is inaccessible as it is stuck in a redirect loop. What am I doing wrong? My Wordpress .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/directory/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/directory/index.php [L] </IfModule> A: This is a late answer but this works for me: Change the RewriteCond to this RewriteCond %{HTTP:X-Forwarded-Proto} !https Should be like this: RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L]
Q: Force HTTPS using .htaccess - stuck in redirect loop My Wordpress website is located at example.com/wordpress and I need everything inside to be accessible only using SSL. I've created a .htaccess rule that redirects http -> https: RewriteEngine On RewriteRule ^/?(.*) https://%{SERVER_NAME}/wordpress/directory/$1 [R,L] After implementing this rule the website is inaccessible as it is stuck in a redirect loop. What am I doing wrong? My Wordpress .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/directory/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/directory/index.php [L] </IfModule> A: This is a late answer but this works for me: Change the RewriteCond to this RewriteCond %{HTTP:X-Forwarded-Proto} !https Should be like this: RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L] A: Without being an htaccess expert, I'd say you're missing a RewriteCond - A condition. Check if it's on port 80. Try this: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^/?(.*) https://%{SERVER_NAME}/wordpress/directory/$1 [R,L] UPDATE: After seeing your updated question, with the full .htaccess - I'd do this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/directory/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/directory/index.php [L] RewriteCond %{HTTPS} off RewriteRule ^/?(.*) https://%{SERVER_NAME}/wordpress/directory/$1 [R,L] </IfModule> Having your condition and rule underneath Wordpress' standards. A: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Source https://www.godaddy.com/help/redirect-http-to-https-automatically-8828 A: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] or for just a single page RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} directory RewriteRule ^(.*)$ https://www.example.com/directory/$1 [R,L] or you can add this php to a particular file if (!isset($_SERVER['HTTPS']) || !$_SERVER['HTTPS']) { // if request is not secure, redirect to secure url $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; header('Location: ' . $url); exit; } or combine the wordpress rewrite rules with the SSL ones.. RewriteRule ^(.*)$ https://www.example.com/directory/index\.php[R,L] A: Web sites behind load balancers or reverse proxies that support HTTP_X_FORWARDED_PROTO can be fixed by adding the following code to the wp-config.php file, above the require_once call: if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS'] = 'on'; or by using a plugin Add into WordPress plugins folder on your website, then activate it in the Plugins admin <? /* Plugin Name: Set headers */ if (stripos(get_option('siteurl'), 'https://') === 0) { $_SERVER['HTTPS'] = 'on'; // add JavaScript detection of page protocol, and pray! add_action('wp_print_scripts', 'force_ssl_url_scheme_script'); } function force_ssl_url_scheme_script() { ?> <script> if (document.location.protocol != "https:") { document.location = document.URL.replace(/^http:/i, "https:"); } </script> <?php } Source It is working like * *http://www.exmaple.com/blog/ to https://www.exmaple.com/blog/ *http://www.exmaple.com/ to https://www.exmaple.com/
wordpress
{ "language": "en", "length": 409, "provenance": "stackexchange_00019.jsonl.gz:444227", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141179" }
[ 0.036773681640625, 0.01483917236328125, -0.006298065185546875, 0.0016632080078125, 0.01885986328125, -0.0155792236328125, 0.038970947265625, -0.046875, 0.020477294921875, -0.020355224609375, -0.03558349609375, -0.0004982948303222656, -0.02801513671875, -0.037200927734375, 0.0287322998046875, -0.03521728515625, 0.0008068084716796875, -0.004825592041015625, 0.0080718994140625, -0.00807952880859375, 0.0035247802734375, -0.00566864013671875, 0.0250244140625, -0.04132080078125, 0.00705718994140625, 0.01052093505859375, 0.11749267578125, -0.042205810546875, 0.006622314453125, -0.039337158203125, 0.00923919677734375, -0.005260467529296875, 0.0220794677734375, 0.05731201171875, -0.08648681640625, -0.061065673828125, 0.003925323486328125, 0.0134429931640625, -0.0233001708984375, 0.043701171875, 0.004489898681640625, -0.004947662353515625, 0.04974365234375, 0.0006136894226074219, 0.01079559326171875, -0.02197265625, -0.0030422210693359375, -0.051422119140625, -0.0248565673828125, 0.0103607177734375, 0.016571044921875, 0.047149658203125, 0.02862548828125, 0.0189971923828125, -0.00142669677734375, -0.0025882720947265625, 0.014739990234375, 0.0160369873046875, 0.005603790283203125, -0.03765869140625, -0.0211639404296875, 0.03045654296875, 0.0191802978515625, 0.036376953125, -0.015960693359375, -0.00389862060546875, -0.01300811767578125, 0.010162353515625, -0.040985107421875, -0.0218353271484375, 0.016845703125, -0.01471710205078125, -0.00139617919921875, -0.02301025390625, -0.01236724853515625, 0.0155029296875, 0.0277862548828125, 0.0282745361328125, 0.0002868175506591797, -0.005523681640625, -0.0026264190673828125, -0.006916046142578125, -0.034332275390625, -0.0200042724609375, 0.01200103759765625, 0.00788116455078125, -0.007770538330078125, -0.01529693603515625, -0.00649261474609375, -0.0153656005859375, -0.0214080810546875, 0.0218963623046875, -0.01259613037109375, -0.00945281982421875, -0.02239990234375, -0.02435302734375, 0.022857666015625, 0.0123443603515625, 0.0241851806640625, -0.0003437995910644531, 0.0189666748046875, -0.055633544921875, 0.004852294921875, -0.01457977294921875, -0.01806640625, 0.045379638671875, 0.01806640625, 0.06512451171875, 0.036285400390625, 0.020660400390625, 0.0252532958984375, -0.00037097930908203125, -0.040618896484375, -0.0207977294921875, -0.038330078125, 0.0287017822265625, -0.045867919921875, -0.033935546875, -0.007328033447265625, -0.01506805419921875, -0.01280975341796875, 0.01372528076171875, -0.0031585693359375, -0.01247406005859375, 0.0217437744140625, 0.00003045797348022461, -0.018890380859375, -0.01021575927734375, 0.00388336181640625, 0.0194244384765625, -0.03936767578125, -0.00899505615234375, 0.061187744140625, 0.05572509765625, 0.037841796875, -0.0274200439453125, 0.0325927734375, -0.0235748291015625, -0.0168304443359375, 0.04644775390625, -0.00858306884765625, -0.0614013671875, -0.0273284912109375, 0.0005960464477539062, 0.0198974609375, 0.01517486572265625, 0.008270263671875, 0.04193115234375, 0.0100860595703125, -0.053466796875, 0.047088623046875, -0.024322509765625, 0.0567626953125, 0.005435943603515625, -0.0055694580078125, -0.035491943359375, 0.062469482421875, -0.044219970703125, -0.04779052734375, -0.066162109375, 0.00820159912109375, 0.002918243408203125, 0.0162200927734375, 0.0017337799072265625, -0.0154266357421875, -0.01216888427734375, -0.03973388671875, -0.00511932373046875, 0.02471923828125, 0.0293121337890625, -0.004398345947265625, 0.01215362548828125, 0.026397705078125, 0.038665771484375, 0.00331878662109375, 0.0212249755859375, -0.0028018951416015625, 0.00296783447265625, 0.021240234375, 0.0584716796875, 0.0226593017578125, -0.0171051025390625, 0.03814697265625, 0.0185699462890625, -0.0286712646484375, 0.038330078125, -0.0138397216796875, 0.0237579345703125, 0.0079803466796875, 0.007259368896484375, 0.0002722740173339844, 0.03399658203125, -0.025390625, 0.044219970703125, -0.05096435546875, -0.0667724609375, 0.011566162109375, -0.004436492919921875, -0.029541015625, 0.0268402099609375, -0.029632568359375, 0.00521087646484375, -0.0309600830078125, 0.01468658447265625, 0.01181793212890625, -0.021575927734375, 0.01236724853515625, -0.0011844635009765625, 0.0013513565063476562, 0.020172119140625, 0.017852783203125, 0.0081787109375, -0.010711669921875, -0.039276123046875, -0.01540374755859375, 0.026123046875, -0.018310546875, 0.047332763671875, 0.0029087066650390625, 0.0516357421875, 0.01263427734375, -0.050201416015625, 0.013580322265625, -0.033477783203125, 0.0286102294921875, -0.0125885009765625, -0.0260162353515625, -0.011810302734375, 0.0091705322265625, -0.000023663043975830078, -0.04998779296875, 0.0213470458984375, 0.01432037353515625, 0.006679534912109375, -0.05450439453125, -0.007015228271484375, -0.0282135009765625, -0.0146331787109375, 0.0010528564453125, 0.04547119140625, 0.0289764404296875, 0.01216888427734375, -0.043365478515625, -0.030609130859375, 0.036102294921875, -0.057342529296875, -0.00572967529296875, -0.00701904296875, -0.00008285045623779297, -0.01438140869140625, 0.034332275390625, -0.025390625, 0.028076171875, -0.0112457275390625, 0.00302886962890625, 0.019317626953125, 0.0068511962890625, -0.02471923828125, -0.0250396728515625, 0.00730133056640625, 0.0233154296875, -0.0259552001953125, -0.05877685546875, -0.008270263671875, -0.006008148193359375, -0.01389312744140625, -0.0098114013671875, 0.0009617805480957031, 0.01117706298828125, -0.0279541015625, 0.0161895751953125, -0.05133056640625, -0.0117645263671875, 0.044891357421875, 0.037841796875, -0.0041046142578125, -0.030670166015625, 0.00739288330078125, -0.00978851318359375, 0.0270843505859375, 0.007678985595703125, 0.0225372314453125, 0.00318145751953125, -0.004673004150390625, -0.0290069580078125, -0.0285491943359375, 0.039459228515625, 0.038543701171875, 0.006649017333984375, 0.03533935546875, 0.03594970703125, 0.01763916015625, -0.0129241943359375, 0.013671875, 0.032562255859375, -0.0006937980651855469, 0.04339599609375, -0.048583984375, 0.04498291015625, -0.02459716796875, 0.05023193359375, 0.0623779296875, -0.0107421875, 0.0156402587890625, 0.01666259765625, -0.02288818359375, 0.0035762786865234375, -0.00586700439453125, -0.0164337158203125, 0.004558563232421875, -0.08154296875, 0.0009331703186035156, 0.030517578125, -0.04119873046875, 0.0556640625, 0.00791168212890625, 0.01511383056640625, 0.011566162109375, -0.04827880859375, -0.07666015625, -0.033905029296875, -0.061431884765625, 0.01558685302734375, 0.0295562744140625, -0.017913818359375, -0.01435089111328125, 0.048919677734375, 0.02020263671875, -0.0006728172302246094, 0.00035953521728515625, -0.0875244140625, -0.060302734375, -0.09930419921875, -0.00714874267578125, -0.01995849609375, 0.030975341796875, 0.0009140968322753906, 0.0048675537109375, -0.0186004638671875, -0.0186004638671875, -0.00814056396484375, 0.005947113037109375, -0.003520965576171875, -0.021881103515625, -0.05877685546875, -0.00165557861328125, -0.018035888671875, -0.0005621910095214844, 0.0540771484375, -0.01247406005859375, 0.0252838134765625, 0.0161895751953125, -0.01392364501953125, -0.044921875, 0.00353240966796875, -0.0273590087890625, -0.016998291015625, -0.0252685546875, -0.00484466552734375, -0.056915283203125, 0.01473236083984375, -0.0046234130859375, -0.0106964111328125, -0.0321044921875, 0.00677490234375, -0.028076171875, -0.0171661376953125, -0.0109100341796875, 0.0040283203125, 0.01073455810546875, 0.0203094482421875, -0.0219573974609375, 0.04937744140625, -0.01120758056640625, -0.005344390869140625, -0.046722412109375, 0.04833984375, -0.011749267578125, -0.0009188652038574219, 0.004390716552734375, -0.0126190185546875, -0.033905029296875, -0.012176513671875, -0.080078125, -0.04107666015625, 0.047515869140625, -0.03326416015625, 0.0105438232421875, -0.03167724609375, -0.02764892578125, -0.02545166015625, 0.0855712890625, -0.0191650390625, -0.0224609375, 0.0087890625, 0.02252197265625, -0.007568359375, 0.007602691650390625, -0.01424407958984375, -0.0277252197265625, -0.10284423828125, 0.001983642578125, -0.01087188720703125, -0.040985107421875, 0.033843994140625, -0.10821533203125, -0.028839111328125, -0.080322265625, 0.005680084228515625, 0.0032367706298828125, 0.0085296630859375, -0.0157012939453125, -0.00791168212890625, -0.0171661376953125, 0.01398468017578125, -0.03753662109375, -0.04864501953125, -0.0172882080078125, 0.026702880859375, 0.038726806640625, -0.0243988037109375, 0.0184173583984375, 0.00008803606033325195, 0.058349609375, 0.037139892578125, 0.038330078125, 0.0155029296875, -0.03753662109375, 0.048370361328125, 0.06268310546875, 0.046112060546875, 0.01373291015625, -0.0121612548828125, -0.004756927490234375, -0.00780487060546875, 0.020782470703125, -0.015380859375, -0.00421905517578125, 0.0178070068359375, -0.04132080078125, -0.03533935546875, -0.0200958251953125, -0.0347900390625, 0.01032257080078125, -0.0103759765625, -0.0198822021484375, -0.019012451171875, -0.059051513671875, 0.0855712890625, -0.00855255126953125, -0.00815582275390625, -0.0025997161865234375, 0.059295654296875, 0.0004398822784423828, -0.046905517578125, -0.0100250244140625, -0.020172119140625, 0.021484375, -0.0020751953125, 0.063232421875, 0.0297698974609375, 0.00962066650390625, 0.045501708984375, -0.00913238525390625, 0.0010957717895507812, 0.005218505859375, -0.00630950927734375, -0.002262115478515625, -0.033966064453125, -0.003276824951171875, -0.01409149169921875, -0.006011962890625, 0.04132080078125, 0.01200103759765625, -0.024810791015625, -0.01010894775390625, 0.00873565673828125, 0.028533935546875, -0.031646728515625, -0.01031494140625, -0.0301361083984375, 0.017364501953125, -0.039947509765625, 0.08062744140625, 0.0186614990234375, 0.0035400390625, 0.04730224609375, 0.04632568359375, -0.0029449462890625, -0.047332763671875, -0.034454345703125, -0.020782470703125, 0.0240325927734375, -0.042205810546875, -0.010772705078125, -0.009613037109375, -0.0129241943359375, 0.10125732421875, 0.03363037109375, -0.05419921875, 0.026458740234375, -0.0229644775390625, -0.04229736328125, 0.01557159423828125, -0.0012388229370117188, 0.018798828125, 0.01380157470703125, -0.0192718505859375, 0.01233673095703125, -0.0092926025390625, -0.0289764404296875, -0.04486083984375, 0.0186309814453125, 0.00559234619140625, -0.009918212890625, -0.01253509521484375, 0.06011962890625, 0.01568603515625, 0.0243072509765625, -0.006938934326171875, 0.0108795166015625, 0.00786590576171875, 0.004032135009765625, 0.002960205078125, 0.036712646484375, 0.0228118896484375, -0.036407470703125, 0.03369140625, -0.023101806640625, -0.03125, -0.004306793212890625, 0.03851318359375, 0.0095367431640625, 0.002811431884765625, 0.01374053955078125, -0.01386260986328125, -0.01128387451171875, 0.016143798828125, 0.0010890960693359375, -0.02557373046875, -0.0186767578125, -0.022613525390625, 0.03436279296875, -0.00395965576171875, -0.0266571044921875, 0.02056884765625, -0.012481689453125, 0.032196044921875, 0.0238800048828125, -0.005283355712890625, 0.01190185546875, 0.00550079345703125, 0.0120391845703125, -0.02996826171875, 0.01502227783203125, -0.0214080810546875, 0.03179931640625, -0.04217529296875, -0.02392578125, 0.024627685546875, 0.00634765625, 0.01435089111328125, 0.00858306884765625, -0.0295562744140625, 0.03399658203125, 0.0026073455810546875, 0.026031494140625, -0.0152587890625, -0.03375244140625, -0.004970550537109375, -0.04595947265625, -0.0110626220703125, 0.0279388427734375, -0.0020294189453125, -0.029571533203125, -0.007053375244140625, 0.01329803466796875, 0.0400390625, -0.00672149658203125, -0.0146026611328125, -0.023345947265625, 0.00749969482421875, 0.0038013458251953125, 0.037994384765625, -0.015716552734375, 0.055084228515625, -0.0109405517578125, 0.03204345703125, 0.00201416015625, 0.036895751953125, -0.01425933837890625, -0.017791748046875, 0.01541900634765625, -0.0516357421875, -0.0186767578125, -0.036712646484375, 0.0027751922607421875, 0.02093505859375, 0.030181884765625, -0.0109710693359375, -0.011688232421875, -0.00933074951171875, 0.00827789306640625, -0.0202178955078125, -0.007419586181640625, 0.003559112548828125, -0.01458740234375, -0.0061187744140625, 0.025238037109375, 0.0306243896484375, -0.03680419921875, -0.027313232421875, -0.017364501953125, 0.02777099609375, -0.01450347900390625, 0.0030384063720703125, -0.01715087890625, 0.0233001708984375, 0.0792236328125, 0.0269927978515625, 0.07525634765625, 0.027099609375, 0.02587890625, 0.041656494140625, -0.0028591156005859375, -0.02886962890625, -0.0124053955078125, 0.035614013671875, 0.00919342041015625, -0.019683837890625, 0.0478515625, -0.0266265869140625, -0.00028514862060546875, 0.0980224609375, 0.07281494140625, -0.095703125, -0.0222320556640625, 0.0106048583984375, -0.0419921875, -0.0347900390625, 0.007038116455078125, -0.00726318359375, -0.0032634735107421875, -0.0259857177734375, -0.004528045654296875, -0.03314208984375, -0.00667572021484375, 0.04296875, -0.0023479461669921875, -0.002735137939453125, 0.0303955078125, -0.01149749755859375, -0.055328369140625, -0.03125, 0.0189666748046875, -0.035186767578125, 0.0056610107421875, 0.0132293701171875, -0.0161895751953125, -0.019622802734375, -0.03173828125, 0.004138946533203125, -0.0277862548828125, -0.0097808837890625, 0.024566650390625, 0.016845703125, 0.012664794921875, 0.0755615234375, -0.00893402099609375, 0.0305938720703125, 0.0404052734375, -0.035919189453125, 0.046875, -0.0257568359375, -0.0167694091796875, -0.0184326171875, 0.0012559890747070312, -0.0041351318359375, 0.005123138427734375, -0.0259857177734375, -0.0024871826171875, -0.01453399658203125, 0.03985595703125, -0.038055419921875, -0.0011224746704101562, 0.0301361083984375, 0.013519287109375, -0.0137939453125, 0.003513336181640625, 0.0341796875, 0.008026123046875, 0.03448486328125, -0.0078277587890625, 0.01174163818359375, -0.01036834716796875, -0.035247802734375, -0.0252838134765625, 0.08477783203125, -0.0207366943359375, -0.006832122802734375, 0.0316162109375, 0.038330078125, -0.0254669189453125, 0.035919189453125, 0.01666259765625, 0.040771484375, 0.0288238525390625, -0.005157470703125, -0.0031452178955078125, -0.022003173828125, 0.0023345947265625, 0.0908203125, 0.08807373046875, 0.025909423828125, -0.0858154296875, 0.0171051025390625, 0.0999755859375, 0.054595947265625, 0.0290374755859375, 0.06683349609375, -0.0025310516357421875, 0.0026187896728515625, 0.0234375, -0.02471923828125, 0.01238250732421875, -0.00994110107421875, -0.0309600830078125, 0.00524139404296875, 0.022308349609375, 0.0027313232421875, 0.01442718505859375, -0.00852203369140625, -0.0723876953125, 0.033935546875, 0.045166015625, 0.042144775390625, 0.00855255126953125, 0.0168304443359375, -0.007518768310546875, -0.018890380859375, 0.0185394287109375, -0.040557861328125, 0.041473388671875, -0.0264739990234375, -0.00713348388671875, -0.004364013671875, 0.0009441375732421875, 0.00946044921875, 0.0194549560546875, 0.000629425048828125, 0.058929443359375, -0.0280609130859375, 0.0316162109375, 0.033355712890625, 0.0263519287109375, -0.00739288330078125, 0.0212249755859375, 0.00518798828125, 0.0382080078125, -0.039093017578125, -0.01904296875, -0.020294189453125, -0.01824951171875, 0.012542724609375, -0.03289794921875, 0.010772705078125, 0.004680633544921875, -0.015655517578125, -0.00879669189453125, 0.038421630859375, 0.04083251953125, 0.00920867919921875, 0.0035305023193359375, 0.01580810546875, -0.07696533203125, 0.050262451171875, -0.0223236083984375, -0.053192138671875, 0.0171356201171875, 0.057220458984375, 0.03759765625, 0.01898193359375, 0.013427734375, -0.034393310546875, 0.015960693359375, 0.02410888671875, 0.00658416748046875, -0.0489501953125, -0.0021152496337890625, -0.055328369140625, 0.0186767578125, 0.048797607421875, 0.0271148681640625, -0.002666473388671875, 0.031829833984375, 0.0377197265625, -0.0095977783203125, -0.0060577392578125, 0.044586181640625, -0.0027179718017578125, 0.02032470703125, -0.005031585693359375, -0.01097869873046875, -0.006153106689453125, -0.034332275390625, -0.016632080078125, -0.028228759765625, 0.04278564453125, 0.039581298828125, 0.033721923828125, 0.007495880126953125, 0.0028247833251953125, 0.00977325439453125, -0.019683837890625, 0.0158843994140625, 0.03564453125, -0.0082855224609375, -0.0041351318359375, 0.0034027099609375, -0.01058197021484375, 0.003757476806640625, 0.026947021484375, 0.01290130615234375, -0.005084991455078125, 0.0267486572265625, -0.035003662109375, 0.0287017822265625, 0.0233612060546875, 0.01146697998046875, 0.0244903564453125, 0.0218353271484375, 0.0002455711364746094, -0.049896240234375, -0.0028781890869140625, -0.00982666015625, 0.0229644775390625, -0.0024204254150390625, 0.12030029296875, -0.048858642578125, 0.0017557144165039062, -0.0220794677734375, -0.020294189453125, 0.019805908203125, 0.0035648345947265625, -0.047088623046875, 0.038787841796875, -0.0006031990051269531, -0.01409149169921875, -0.072021484375, 0.03338623046875, -0.005374908447265625, -0.0257568359375, 0.00772857666015625, 0.00830841064453125, 0.00966644287109375, 0.0017728805541992188, -0.004547119140625, -0.041748046875, -0.109375, -0.047882080078125, 0.060028076171875, -0.03375244140625, 0.0179290771484375, -0.04248046875, 0.046905517578125, -0.0213775634765625, 0.0015745162963867188, -0.0169525146484375, -0.0279541015625, -0.05194091796875, 0.00473785400390625, -0.012664794921875, -0.002048492431640625, 0.00951385498046875, -0.01971435546875, 0.0221099853515625, -0.0083770751953125, 0.0171051025390625, -0.00909423828125, -0.002971649169921875, -0.036529541015625, 0.00237274169921875, 0.0034618377685546875, -0.0012302398681640625, 0.000865936279296875, -0.002368927001953125, -0.037628173828125, -0.0271148681640625, -0.0214385986328125, -0.0268402099609375, -0.008941650390625, -0.0133514404296875, 0.017608642578125, -0.0012722015380859375, -0.04583740234375, -0.037200927734375, -0.021575927734375, 0.03167724609375, -0.031341552734375, 0.003753662109375, -0.027435302734375, -0.04931640625, 0.03814697265625, -0.032135009765625, 0.03399658203125, 0.023773193359375, 0.054595947265625, -0.0643310546875, -0.02801513671875, 0.00012552738189697266, 0.01198577880859375, -0.037506103515625, 0.01256561279296875, 0.0195159912109375, -0.018707275390625, 0.0201873779296875, -0.01412200927734375, -0.00360870361328125, 0.040130615234375, -0.024871826171875, 0.01251220703125, 0.026397705078125, -0.01244354248046875, -0.05499267578125, -0.031768798828125, 0.0264739990234375, -0.034576416015625, -0.040191650390625, -0.002410888671875, 0.01494598388671875, 0.0165863037109375, -0.039703369140625, -0.09063720703125, 0.050048828125, -0.019805908203125, -0.02886962890625, -0.08575439453125, 0.00930023193359375, -0.00428009033203125, 0.07012939453125, -0.01169586181640625, -0.036895751953125, -0.03857421875, 0.03436279296875, 0.0259857177734375, 0.04193115234375, -0.03875732421875, 0.062469482421875, -0.0028476715087890625, 0.06671142578125, 0.033538818359375, -0.00887298583984375, -0.01251983642578125, 0.0208740234375, 0.0255279541015625, 0.07525634765625, 0.0199737548828125, 0.02587890625, -0.0127105712890625, -0.08026123046875, 0.010040283203125, -0.037078857421875, -0.018951416015625, -0.07293701171875, 0.003063201904296875, -0.0037975311279296875, 0.00047898292541503906, 0.029571533203125, -0.055419921875, -0.0175933837890625, -0.01026153564453125, 0.001621246337890625, 0.0168304443359375, -0.037261962890625, 0.01995849609375, 0.0014123916625976562, -0.006229400634765625, 0.00782012939453125, 0.021514892578125, -0.03253173828125, 0.011444091796875, 0.0153961181640625, -0.036834716796875, -0.003856658935546875, 0.034271240234375, 0.060577392578125, -0.044647216796875, -0.01016998291015625, -0.005222320556640625, 0.01531219482421875, 0.0009737014770507812, -0.049774169921875, 0.0225830078125, 0.0604248046875, -0.01171875, -0.0041351318359375, 0.033966064453125, -0.026397705078125, -0.005474090576171875, 0.00296783447265625, -0.02166748046875, 0.01515960693359375, 0.01456451416015625, 0.0194091796875, -0.0306396484375, 0.021484375, 0.018951416015625, 0.050079345703125, -0.0008401870727539062, -0.056732177734375, -0.011199951171875, 0.04931640625, -0.01462554931640625, -0.02294921875, 0.0145111083984375, -0.060211181640625, 0.0167083740234375, 0.051849365234375, 0.005126953125, 0.040740966796875, -0.00823974609375, -0.06591796875, -0.01476287841796875, -0.0242767333984375 ]
ad95ecf9d2d7f2212d8c8386446678b2b0f1bbcd
Wordpress Stackexchange Q: Get post title with link I am using this code to send an email from my wordpress site. It send permalinks of the posts. How can i edit this to have linked titles instead of just permalinks; if(count($ids) > 0){ $user_id = $usermeta['user_id']; $userdata = get_userdata($user_id); $email = $userdata->data->user_email; //echo $email; $links = ''; foreach($ids as $id){ $link = get_permalink($id); $links .= $link . ' <br>'; } //echo $links; if (have_posts()) : while (have_posts()) : the_post(); $emailTpl = get_the_content(); endwhile; endif; $message = preg_replace('/\[\%urls\%\]/', $links, $emailTpl); $headers = "MIME-Version: 1.0\n" . "Content-Type: text/html;"; //wp_mail('[email protected]', 'New project notification', $link); //wp_mail('[email protected]', 'New project notification', $message, $headers); wp_mail($email, 'New project notification', $message, $headers); } A: Did you use it like that?? <a href="<?php get_permalink($id); ?>"><?php the_title($id); ?></a> for use to that foreach($ids as $id){ $link = get_permalink($id); $title = get_the_title($id); $links .= '<a href="'.$link.'">'.$title.'</a>'.'<br/>' ; //$links .= $link . ' <br>'; } get_permalink get_the_title Try to use that while I'm coding your code.
Q: Get post title with link I am using this code to send an email from my wordpress site. It send permalinks of the posts. How can i edit this to have linked titles instead of just permalinks; if(count($ids) > 0){ $user_id = $usermeta['user_id']; $userdata = get_userdata($user_id); $email = $userdata->data->user_email; //echo $email; $links = ''; foreach($ids as $id){ $link = get_permalink($id); $links .= $link . ' <br>'; } //echo $links; if (have_posts()) : while (have_posts()) : the_post(); $emailTpl = get_the_content(); endwhile; endif; $message = preg_replace('/\[\%urls\%\]/', $links, $emailTpl); $headers = "MIME-Version: 1.0\n" . "Content-Type: text/html;"; //wp_mail('[email protected]', 'New project notification', $link); //wp_mail('[email protected]', 'New project notification', $message, $headers); wp_mail($email, 'New project notification', $message, $headers); } A: Did you use it like that?? <a href="<?php get_permalink($id); ?>"><?php the_title($id); ?></a> for use to that foreach($ids as $id){ $link = get_permalink($id); $title = get_the_title($id); $links .= '<a href="'.$link.'">'.$title.'</a>'.'<br/>' ; //$links .= $link . ' <br>'; } get_permalink get_the_title Try to use that while I'm coding your code.
wordpress
{ "language": "en", "length": 161, "provenance": "stackexchange_00019.jsonl.gz:444263", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141318" }
[ 0.0294952392578125, -0.023590087890625, 0.0057220458984375, -0.0012111663818359375, -0.00708770751953125, -0.0267181396484375, 0.0560302734375, -0.0369873046875, -0.00827789306640625, 0.021575927734375, -0.014190673828125, 0.004306793212890625, 0.0223388671875, -0.0251617431640625, 0.032012939453125, -0.01061248779296875, 0.02154541015625, -0.01611328125, 0.01036834716796875, -0.00875091552734375, 0.012298583984375, 0.00439453125, 0.005016326904296875, 0.016021728515625, -0.01422119140625, 0.047393798828125, 0.08197021484375, -0.056793212890625, -0.01497650146484375, -0.042205810546875, -0.01239776611328125, 0.01342010498046875, 0.037139892578125, 0.0002944469451904297, -0.0241241455078125, 0.0160980224609375, 0.03704833984375, -0.019073486328125, 0.00008118152618408203, 0.041168212890625, 0.0210418701171875, -0.0153656005859375, 0.042449951171875, -0.016845703125, 0.0159454345703125, -0.012115478515625, 0.01715087890625, -0.055755615234375, -0.0165252685546875, 0.0296173095703125, 0.005420684814453125, -0.00009453296661376953, 0.014923095703125, 0.003940582275390625, 0.01242828369140625, 0.017120361328125, -0.003948211669921875, -0.0267486572265625, 0.041046142578125, -0.00937652587890625, -0.041839599609375, -0.038055419921875, 0.021514892578125, -0.03741455078125, -0.033203125, 0.0012035369873046875, 0.026702880859375, 0.00860595703125, 0.0142364501953125, -0.0252838134765625, -0.004009246826171875, 0.021881103515625, -0.0252838134765625, -0.034912109375, -0.01216888427734375, 0.004810333251953125, -0.00791168212890625, -0.049163818359375, -0.0010623931884765625, 0.0157318115234375, -0.0029354095458984375, -0.0032863616943359375, -0.0338134765625, -0.01214599609375, 0.0245208740234375, 0.021392822265625, -0.0111541748046875, -0.0178985595703125, -0.006256103515625, -0.020660400390625, -0.0250701904296875, 0.0013265609741210938, -0.00016629695892333984, -0.018524169921875, -0.03131103515625, -0.0219573974609375, 0.017852783203125, 0.046661376953125, -0.0165863037109375, -0.0025653839111328125, -0.022857666015625, -0.01238250732421875, 0.005634307861328125, -0.02203369140625, -0.0209197998046875, 0.029266357421875, 0.01251983642578125, 0.01004791259765625, -0.0015010833740234375, 0.007221221923828125, -0.017669677734375, -0.0127105712890625, 0.0122222900390625, 0.006988525390625, -0.0205535888671875, 0.0081787109375, -0.026580810546875, 0.0323486328125, -0.00556182861328125, 0.0511474609375, -0.00787353515625, 0.01776123046875, 0.015716552734375, 0.0027332305908203125, -0.0068817138671875, 0.011260986328125, 0.006622314453125, -0.0594482421875, 0.0016241073608398438, 0.0170440673828125, -0.0223541259765625, 0.01983642578125, 0.06201171875, 0.035369873046875, -0.0020427703857421875, -0.024993896484375, -0.0034580230712890625, -0.0199432373046875, -0.03399658203125, 0.0150299072265625, 0.008514404296875, 0.0032520294189453125, 0.01511383056640625, -0.024017333984375, -0.0020999908447265625, 0.00937652587890625, 0.006256103515625, 0.00905609130859375, 0.0172882080078125, -0.025848388671875, -0.01849365234375, -0.0162811279296875, -0.004970550537109375, 0.031005859375, -0.0220794677734375, -0.00353240966796875, -0.0028553009033203125, -0.01377105712890625, 0.01409912109375, -0.02734375, 0.0123138427734375, -0.0130767822265625, -0.003635406494140625, -0.0389404296875, -0.063720703125, 0.01800537109375, -0.050262451171875, -0.01727294921875, 0.02227783203125, 0.027435302734375, 0.017791748046875, -0.0181121826171875, -0.0021419525146484375, -0.00023734569549560547, -0.007297515869140625, -0.0065155029296875, 0.006557464599609375, 0.01134490966796875, 0.024627685546875, 0.00794219970703125, -0.0181732177734375, -0.02587890625, 0.050262451171875, -0.0394287109375, -0.03167724609375, 0.02362060546875, 0.01129913330078125, 0.04388427734375, 0.01363372802734375, 0.0166473388671875, 0.032257080078125, 0.0235595703125, 0.01152801513671875, -0.0003807544708251953, -0.042266845703125, -0.052520751953125, 0.006114959716796875, 0.0006566047668457031, -0.0396728515625, 0.047943115234375, -0.032684326171875, -0.0234222412109375, 0.0596923828125, 0.0078582763671875, 0.0007824897766113281, 0.0297393798828125, -0.03924560546875, 0.038543701171875, -0.01085662841796875, 0.01236724853515625, 0.024139404296875, 0.010040283203125, -0.02777099609375, -0.044769287109375, -0.0168914794921875, 0.01178741455078125, -0.01947021484375, -0.016510009765625, -0.036102294921875, 0.006855010986328125, -0.034149169921875, -0.033935546875, -0.02789306640625, 0.059051513671875, 0.026947021484375, -0.0147705078125, -0.00868988037109375, -0.0203399658203125, -0.006481170654296875, 0.02337646484375, -0.0577392578125, 0.0104522705078125, 0.0164031982421875, 0.055328369140625, -0.009307861328125, 0.00919342041015625, 0.00684356689453125, -0.01175689697265625, -0.0008978843688964844, 0.0193634033203125, 0.0445556640625, 0.017486572265625, 0.01345062255859375, -0.004917144775390625, 0.03814697265625, 0.0015707015991210938, 0.046112060546875, -0.037811279296875, -0.00487518310546875, 0.0184478759765625, 0.008514404296875, 0.022674560546875, 0.025238037109375, -0.032562255859375, -0.003826141357421875, 0.07037353515625, 0.0157623291015625, -0.00579071044921875, -0.0257415771484375, 0.016571044921875, 0.0092315673828125, -0.0090789794921875, -0.037445068359375, 0.007633209228515625, 0.005084991455078125, 0.025604248046875, 0.0224609375, 0.03411865234375, -0.0239410400390625, 0.004673004150390625, 0.002651214599609375, 0.00930023193359375, 0.0026988983154296875, 0.0350341796875, 0.0430908203125, -0.0015954971313476562, -0.0182037353515625, -0.0341796875, 0.020782470703125, 0.0269927978515625, -0.033782958984375, -0.0166778564453125, 0.0301971435546875, -0.00734710693359375, -0.003215789794921875, -0.00946807861328125, 0.036712646484375, -0.028045654296875, 0.0277557373046875, 0.0269622802734375, 0.040618896484375, 0.01219940185546875, -0.031890869140625, 0.04364013671875, 0.0057220458984375, -0.0188751220703125, -0.0240936279296875, -0.0102081298828125, 0.0214385986328125, -0.0230255126953125, 0.0026149749755859375, 0.0491943359375, -0.0105438232421875, 0.014556884765625, -0.0016870498657226562, -0.035614013671875, -0.01381683349609375, 0.0071258544921875, -0.012115478515625, -0.036834716796875, -0.0174407958984375, 0.031494140625, -0.00988006591796875, 0.0672607421875, -0.05682373046875, -0.08416748046875, -0.0240478515625, -0.0121002197265625, -0.1129150390625, -0.09466552734375, 0.035858154296875, -0.08544921875, -0.0016689300537109375, -0.007457733154296875, -0.05242919921875, -0.0217437744140625, 0.048431396484375, -0.007297515869140625, 0.01471710205078125, -0.040679931640625, -0.08673095703125, -0.03619384765625, -0.0811767578125, 0.039794921875, -0.0075836181640625, 0.0215606689453125, -0.0009450912475585938, -0.0347900390625, -0.0131378173828125, -0.01904296875, -0.001522064208984375, 0.06341552734375, 0.0019168853759765625, -0.035858154296875, -0.0292510986328125, 0.006900787353515625, -0.0200653076171875, 0.00844573974609375, 0.044586181640625, 0.004428863525390625, -0.0164794921875, 0.007709503173828125, -0.004474639892578125, 0.0000032186508178710938, 0.03094482421875, -0.03509521484375, -0.005344390869140625, 0.048187255859375, 0.0202178955078125, -0.022430419921875, -0.011383056640625, -0.0173492431640625, -0.053131103515625, -0.0033283233642578125, 0.0264129638671875, 0.00641632080078125, -0.000324249267578125, -0.01125335693359375, 0.0257110595703125, 0.0135345458984375, 0.0198211669921875, -0.00910186767578125, 0.0252838134765625, 0.005035400390625, 0.0190582275390625, -0.0259246826171875, -0.00244140625, -0.0253448486328125, 0.00963592529296875, -0.01435089111328125, 0.0060882568359375, -0.022308349609375, 0.0128021240234375, -0.04248046875, -0.047943115234375, 0.054718017578125, -0.044769287109375, 0.00679779052734375, -0.036285400390625, -0.03204345703125, -0.005748748779296875, 0.0697021484375, 0.008026123046875, -0.037841796875, -0.0160064697265625, 0.025177001953125, -0.0321044921875, -0.029510498046875, 0.0278167724609375, 0.00870513916015625, -0.0560302734375, -0.017181396484375, -0.0269775390625, -0.0187530517578125, -0.0225677490234375, 0.04486083984375, -0.02655029296875, -0.0276641845703125, 0.027679443359375, 0.0279388427734375, 0.0108184814453125, 0.033477783203125, -0.0298614501953125, 0.050201416015625, -0.046295166015625, -0.0044708251953125, -0.0206298828125, -0.00795745849609375, 0.02850341796875, -0.00688934326171875, -0.0312347412109375, 0.02459716796875, -0.017425537109375, 0.016876220703125, -0.007808685302734375, 0.015960693359375, -0.001739501953125, -0.00899505615234375, 0.0120391845703125, 0.0036258697509765625, 0.00501251220703125, -0.0117645263671875, 0.0222930908203125, 0.0038623809814453125, -0.053131103515625, 0.0264739990234375, -0.023712158203125, 0.0633544921875, 0.00946044921875, -0.035308837890625, -0.056427001953125, -0.01262664794921875, 0.01375579833984375, 0.0130157470703125, 0.01172637939453125, -0.01187896728515625, -0.01491546630859375, -0.07635498046875, 0.038177490234375, -0.00812530517578125, -0.0264434814453125, -0.003688812255859375, 0.03936767578125, 0.01873779296875, -0.0210113525390625, 0.00433349609375, 0.005527496337890625, 0.06268310546875, -0.01187896728515625, 0.02703857421875, 0.0288543701171875, -0.04925537109375, 0.0677490234375, 0.035064697265625, 0.0266265869140625, -0.00384521484375, 0.021026611328125, -0.003780364990234375, -0.002231597900390625, 0.0223541259765625, 0.01450347900390625, -0.020721435546875, 0.010589599609375, 0.005077362060546875, -0.0256195068359375, 0.0111846923828125, 0.032745361328125, 0.0013761520385742188, 0.01226043701171875, -0.01666259765625, -0.039031982421875, 0.022918701171875, -0.008880615234375, 0.004001617431640625, 0.00417327880859375, 0.0030803680419921875, -0.022857666015625, -0.0220184326171875, 0.00864410400390625, -0.022308349609375, 0.005764007568359375, 0.01129913330078125, 0.0262298583984375, -0.00867462158203125, -0.0020313262939453125, -0.032562255859375, -0.014495849609375, 0.0386962890625, 0.03546142578125, 0.0144500732421875, -0.0195770263671875, -0.0176239013671875, -0.00884246826171875, -0.025909423828125, 0.0013742446899414062, 0.06787109375, 0.03857421875, -0.0102386474609375, -0.00930023193359375, -0.033172607421875, 0.0238800048828125, -0.052947998046875, -0.007465362548828125, 0.01514434814453125, -0.023223876953125, 0.0093231201171875, 0.07080078125, 0.00823974609375, 0.0367431640625, -0.00811767578125, 0.03662109375, 0.0733642578125, 0.0009908676147460938, 0.006847381591796875, 0.00843048095703125, -0.0138397216796875, 0.0045623779296875, 0.035980224609375, -0.0377197265625, 0.01067352294921875, 0.0170135498046875, 0.0634765625, 0.038818359375, -0.006610870361328125, -0.017791748046875, -0.0496826171875, -0.023468017578125, 0.041107177734375, 0.03204345703125, -0.025360107421875, -0.029266357421875, 0.0149078369140625, 0.014129638671875, 0.0245361328125, 0.00745391845703125, 0.0219573974609375, 0.01129150390625, 0.0220489501953125, -0.0071868896484375, 0.00650787353515625, -0.01580810546875, -0.0041656494140625, 0.054290771484375, -0.0178070068359375, 0.00646209716796875, -0.02435302734375, 0.0218353271484375, -0.0478515625, 0.004150390625, 0.061279296875, 0.01451873779296875, 0.058349609375, -0.06378173828125, -0.005214691162109375, -0.03851318359375, -0.0219268798828125, 0.035247802734375, 0.01275634765625, -0.04376220703125, 0.0084228515625, -0.048797607421875, 0.01509857177734375, -0.02001953125, -0.046356201171875, -0.032989501953125, -0.02227783203125, 0.0193328857421875, 0.01483154296875, 0.004077911376953125, -0.03399658203125, -0.00637054443359375, 0.00479888916015625, 0.01544189453125, 0.0228424072265625, -0.0012969970703125, 0.0660400390625, -0.007419586181640625, 0.0634765625, 0.0072021484375, -0.008056640625, -0.0792236328125, -0.0007581710815429688, 0.006481170654296875, -0.0361328125, -0.0020885467529296875, -0.0038814544677734375, 0.0190582275390625, -0.0186004638671875, 0.01122283935546875, -0.0022029876708984375, -0.0101470947265625, -0.01209259033203125, 0.00809478759765625, -0.029144287109375, 0.02325439453125, -0.016387939453125, -0.041015625, 0.026885986328125, -0.00920867919921875, -0.00406646728515625, 0.0008330345153808594, 0.0219268798828125, -0.030242919921875, -0.00557708740234375, -0.02520751953125, -0.0007638931274414062, -0.00970458984375, 0.0268707275390625, 0.10748291015625, 0.002788543701171875, 0.0631103515625, 0.01904296875, 0.01800537109375, 0.058013916015625, 0.003292083740234375, 0.0657958984375, -0.007457733154296875, 0.093505859375, 0.01522064208984375, -0.0004019737243652344, 0.0654296875, -0.038421630859375, -0.00545501708984375, 0.0149078369140625, 0.08538818359375, -0.017974853515625, 0.0028629302978515625, 0.0260009765625, -0.021636962890625, 0.01522064208984375, -0.002109527587890625, -0.0238800048828125, -0.048004150390625, 0.04010009765625, -0.021453857421875, -0.02081298828125, -0.0049285888671875, 0.0104827880859375, 0.0168914794921875, 0.0025997161865234375, 0.050750732421875, -0.0181732177734375, -0.04840087890625, -0.06005859375, 0.0165252685546875, -0.02557373046875, -0.02960205078125, -0.0012903213500976562, 0.02154541015625, -0.0104217529296875, -0.042755126953125, 0.01239013671875, -0.00962066650390625, 0.00945281982421875, -0.060028076171875, -0.0161895751953125, 0.0238037109375, 0.0195465087890625, -0.0022716522216796875, -0.060211181640625, 0.0272064208984375, -0.033355712890625, -0.000514984130859375, -0.03436279296875, -0.0134429931640625, 0.0401611328125, -0.0186004638671875, 0.0157470703125, 0.002101898193359375, -0.0018663406372070312, -0.00635528564453125, 0.03594970703125, 0.08563232421875, 0.00739288330078125, -0.056304931640625, 0.037567138671875, 0.0003032684326171875, -0.02093505859375, -0.0231475830078125, 0.026519775390625, -0.036773681640625, -0.0011339187622070312, -0.01483154296875, -0.01506805419921875, -0.006473541259765625, -0.041961669921875, -0.063720703125, 0.11279296875, 0.03863525390625, 0.0290985107421875, 0.015869140625, 0.0413818359375, -0.042022705078125, 0.01849365234375, -0.037811279296875, 0.06939697265625, 0.001644134521484375, 0.022705078125, -0.0533447265625, -0.00986480712890625, 0.0026340484619140625, 0.0255126953125, 0.09503173828125, 0.0235748291015625, -0.002513885498046875, -0.0245361328125, 0.029449462890625, 0.02593994140625, -0.03924560546875, 0.00948333740234375, 0.00576019287109375, 0.043914794921875, 0.06427001953125, -0.0457763671875, 0.0252532958984375, 0.0088653564453125, -0.01898193359375, 0.031097412109375, 0.01367950439453125, 0.003925323486328125, 0.02301025390625, -0.021820068359375, -0.045806884765625, 0.0116424560546875, 0.042572021484375, -0.032867431640625, -0.0003008842468261719, -0.007350921630859375, 0.0289764404296875, -0.06365966796875, 0.006931304931640625, -0.03460693359375, 0.050537109375, 0.036834716796875, 0.02325439453125, 0.0260772705078125, 0.0237579345703125, 0.07513427734375, -0.029083251953125, -0.0004520416259765625, -0.013580322265625, 0.0238189697265625, 0.06915283203125, -0.006072998046875, 0.0154266357421875, -0.0880126953125, -0.051116943359375, 0.07470703125, 0.103271484375, -0.043670654296875, 0.01348876953125, 0.0132904052734375, 0.0216522216796875, 0.007343292236328125, -0.02191162109375, 0.0504150390625, -0.0263214111328125, 0.005069732666015625, -0.046661376953125, -0.007465362548828125, 0.0364990234375, 0.037445068359375, -0.005268096923828125, -0.033935546875, -0.0238189697265625, 0.0003008842468261719, -0.0665283203125, 0.056793212890625, 0.01837158203125, 0.034088134765625, -0.0218353271484375, 0.0941162109375, 0.0071563720703125, -0.0042877197265625, 0.027679443359375, -0.038726806640625, 0.0003058910369873047, -0.042694091796875, 0.01837158203125, -0.004467010498046875, -0.0004143714904785156, 0.0215911865234375, 0.060791015625, -0.03912353515625, 0.031524658203125, -0.0102996826171875, -0.040557861328125, -0.004283905029296875, -0.0665283203125, -0.0238037109375, 0.0218963623046875, -0.0262908935546875, 0.001590728759765625, -0.0109710693359375, -0.0181884765625, 0.016448974609375, -0.0011224746704101562, 0.019378662109375, -0.058502197265625, 0.03631591796875, -0.01021575927734375, -0.0008273124694824219, 0.056396484375, -0.0262908935546875, 0.017608642578125, -0.040191650390625, -0.1121826171875, -0.0208282470703125, 0.0045013427734375, 0.013275146484375, 0.0008258819580078125, 0.0212554931640625, 0.0036067962646484375, 0.0191802978515625, -0.0189208984375, 0.017364501953125, 0.03863525390625, -0.035247802734375, -0.0297088623046875, 0.034881591796875, 0.0419921875, -0.004177093505859375, -0.04815673828125, -0.032470703125, -0.00899505615234375, 0.01470184326171875, 0.002414703369140625, 0.030181884765625, 0.00914764404296875, 0.01264190673828125, -0.039642333984375, 0.058074951171875, -0.0811767578125, -0.049163818359375, 0.05462646484375, -0.006072998046875, -0.01091766357421875, -0.005115509033203125, -0.07623291015625, 0.0211639404296875, 0.0223388671875, 0.0267486572265625, 0.042877197265625, -0.0204010009765625, 0.007640838623046875, -0.0312347412109375, 0.0401611328125, -0.028594970703125, -0.034515380859375, -0.08087158203125, -0.0421142578125, 0.05255126953125, 0.058380126953125, 0.016265869140625, 0.042724609375, 0.00873565673828125, -0.004680633544921875, 0.019073486328125, -0.033721923828125, 0.038055419921875, 0.04254150390625, -0.035736083984375, -0.033111572265625, 0.0021839141845703125, -0.0122222900390625, -0.004058837890625, 0.0037364959716796875, 0.0279083251953125, -0.014190673828125, -0.0296630859375, 0.0028476715087890625, 0.01374053955078125, 0.03814697265625, -0.0036678314208984375, 0.001110076904296875, 0.015533447265625, -0.01428985595703125, -0.01244354248046875, -0.032806396484375, -0.023712158203125, -0.053924560546875, 0.0030841827392578125, 0.0192718505859375, -0.030364990234375, -0.0098114013671875, -0.022705078125, -0.02728271484375, 0.0077056884765625, -0.0243072509765625, 0.00913238525390625, -0.024505615234375, -0.017547607421875, 0.0271759033203125, -0.0518798828125, 0.0157318115234375, -0.02313232421875, 0.0146026611328125, -0.0233154296875, -0.07708740234375, -0.056243896484375, 0.079345703125, -0.067138671875, 0.007221221923828125, 0.0462646484375, -0.01529693603515625, -0.05377197265625, -0.02020263671875, 0.01035308837890625, 0.0191192626953125, 0.0020847320556640625, -0.029266357421875, -0.0126190185546875, 0.0083770751953125, -0.01148223876953125, -0.07135009765625, 0.02099609375, -0.093994140625, -0.035308837890625, 0.019287109375, -0.0288848876953125, -0.011505126953125, -0.050506591796875, -0.06622314453125, 0.07769775390625, -0.0164337158203125, -0.0275726318359375, -0.04351806640625, 0.0032215118408203125, 0.0003249645233154297, 0.025390625, 0.003482818603515625, -0.05755615234375, -0.04327392578125, 0.028656005859375, 0.007778167724609375, 0.015533447265625, 0.01073455810546875, 0.022918701171875, -0.025360107421875, 0.0197601318359375, 0.01617431640625, -0.037872314453125, 0.006175994873046875, -0.0308837890625, 0.050048828125, 0.0279388427734375, -0.029815673828125, -0.002559661865234375, 0.00638580322265625, -0.01412200927734375, -0.0391845703125, -0.06280517578125, -0.021820068359375, -0.01439666748046875, 0.09112548828125, 0.041656494140625, 0.0130767822265625, -0.044769287109375, 0.016815185546875, -0.0089569091796875, -0.0217437744140625, 0.001621246337890625, 0.0117034912109375, -0.016265869140625, -0.0011501312255859375, -0.01175689697265625, -0.003719329833984375, -0.01181793212890625, -0.033050537109375, -0.0205078125, -0.0144805908203125, -0.007602691650390625, 0.00554656982421875, 0.016571044921875, -0.007781982421875, 0.0623779296875, -0.047698974609375, 0.0008940696716308594, 0.0026454925537109375, 0.01312255859375, 0.0269927978515625, -0.004039764404296875, 0.0242919921875, 0.00023281574249267578, -0.010284423828125, -0.00695037841796875, 0.040435791015625, 0.018646240234375, 0.00389862060546875, -0.04949951171875, -0.005344390869140625, 0.0236663818359375, -0.00537872314453125, 0.0026149749755859375, -0.014312744140625, 0.05133056640625, -0.0048980712890625, 0.08660888671875, 0.00275421142578125, -0.02496337890625, 0.0057525634765625, 0.0291290283203125, -0.00968170166015625, -0.0173187255859375, 0.01532745361328125, -0.056640625, 0.007022857666015625, 0.01184844970703125, 0.04376220703125, -0.019439697265625, 0.013092041015625, -0.000640869140625, 0.0221710205078125, 0.02288818359375 ]
46ae9baf1d8fb9e4dd9743fc69a07158d11f5423
Wordpress Stackexchange Q: Adding body class when post contains a specific shortcode Simple shortcode function : function my_shortcode_function($atts,$content=null){ // Do something return $content; } add_shortcode('my_shortcode','my_shortcode_function'); I wonder how to add more extra body class when user use this shortcode in contents. I can't do something like : function my_shortcode_function($atts,$content=null){ // Do something add_filter('body_class','my_body_class'); return $content; } function my_body_class($classes) { $classes[] = 'foo'; return $classes; } add_shortcode('my_shortcode','my_shortcode_function'); Any idea ? A: I am doing something like this in one of my plugins: function my_body_class( $c ) { global $post; if( isset($post->post_content) && has_shortcode( $post->post_content, 'your-shortcode' ) ) { $c[] = 'your-class'; } return $c; } add_filter( 'body_class', 'my_body_class' ); I'm not sure it was really necessary, but I probably can't remove it now either. TheDeadMedic is right, you should think about whether you really need to do this.
Q: Adding body class when post contains a specific shortcode Simple shortcode function : function my_shortcode_function($atts,$content=null){ // Do something return $content; } add_shortcode('my_shortcode','my_shortcode_function'); I wonder how to add more extra body class when user use this shortcode in contents. I can't do something like : function my_shortcode_function($atts,$content=null){ // Do something add_filter('body_class','my_body_class'); return $content; } function my_body_class($classes) { $classes[] = 'foo'; return $classes; } add_shortcode('my_shortcode','my_shortcode_function'); Any idea ? A: I am doing something like this in one of my plugins: function my_body_class( $c ) { global $post; if( isset($post->post_content) && has_shortcode( $post->post_content, 'your-shortcode' ) ) { $c[] = 'your-class'; } return $c; } add_filter( 'body_class', 'my_body_class' ); I'm not sure it was really necessary, but I probably can't remove it now either. TheDeadMedic is right, you should think about whether you really need to do this.
wordpress
{ "language": "en", "length": 135, "provenance": "stackexchange_00019.jsonl.gz:444265", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141321" }
[ 0.041961669921875, 0.01462554931640625, 0.0035400390625, -0.002193450927734375, 0.01239013671875, -0.0204620361328125, 0.026092529296875, -0.0390625, -0.0284271240234375, 0.025634765625, -0.01641845703125, 0.034210205078125, -0.042388916015625, -0.0234832763671875, -0.002391815185546875, -0.0228424072265625, 0.032196044921875, -0.0045166015625, 0.034759521484375, -0.0066986083984375, 0.00787353515625, 0.016632080078125, 0.01157379150390625, 0.08441162109375, -0.0038661956787109375, -0.008026123046875, 0.0740966796875, -0.0452880859375, -0.008026123046875, -0.01385498046875, 0.00479888916015625, 0.028839111328125, 0.0482177734375, 0.0214385986328125, -0.0687255859375, 0.061553955078125, -0.0333251953125, 0.01227569580078125, -0.007358551025390625, 0.01425933837890625, -0.0019073486328125, 0.0063934326171875, 0.049468994140625, 0.0071868896484375, -0.022674560546875, -0.0284881591796875, 0.0206756591796875, -0.0268096923828125, -0.004215240478515625, -0.02899169921875, 0.0494384765625, 0.00400543212890625, 0.05908203125, -0.01293182373046875, -0.023529052734375, -0.0046234130859375, -0.03570556640625, -0.0139617919921875, 0.037689208984375, 0.01255035400390625, -0.0233917236328125, -0.0426025390625, 0.0162200927734375, -0.034912109375, -0.0204315185546875, 0.01479339599609375, -0.029571533203125, -0.00894927978515625, -0.0219268798828125, -0.0006809234619140625, 0.03704833984375, -0.0426025390625, -0.02410888671875, -0.0017757415771484375, -0.01285552978515625, 0.00823974609375, 0.006160736083984375, 0.0037021636962890625, -0.0003116130828857422, 0.0338134765625, 0.0142364501953125, 0.0008296966552734375, -0.006427764892578125, -0.0013971328735351562, -0.0164947509765625, -0.003574371337890625, -0.0052337646484375, -0.00768280029296875, -0.00029754638671875, -0.0076904296875, -0.0150146484375, -0.026824951171875, 0.037200927734375, -0.0057830810546875, -0.03680419921875, -0.0277557373046875, -0.0204315185546875, 0.056884765625, -0.01015472412109375, 0.0623779296875, 0.0207672119140625, -0.04833984375, 0.0888671875, -0.09429931640625, 0.0256500244140625, 0.03607177734375, -0.01312255859375, -0.0189666748046875, 0.037872314453125, 0.028839111328125, 0.000972747802734375, 0.00487518310546875, -0.0011768341064453125, -0.003681182861328125, -0.051544189453125, -0.0130767822265625, -0.05401611328125, -0.004749298095703125, 0.0018596649169921875, -0.015655517578125, 0.0318603515625, 0.03753662109375, 0.0633544921875, -0.06353759765625, -0.0173187255859375, -0.0182647705078125, -0.0509033203125, -0.0745849609375, 0.067626953125, -0.04534912109375, -0.023895263671875, 0.048583984375, 0.055938720703125, 0.00284576416015625, -0.00688934326171875, 0.01479339599609375, 0.0008916854858398438, -0.034149169921875, -0.0073089599609375, 0.01012420654296875, -0.0078582763671875, -0.0108795166015625, 0.018402099609375, -0.01806640625, -0.0181121826171875, 0.021728515625, 0.0247650146484375, 0.01544952392578125, -0.0277862548828125, -0.0697021484375, 0.0295562744140625, -0.00966644287109375, 0.0447998046875, 0.01058197021484375, -0.0517578125, 0.032989501953125, -0.011810302734375, 0.006656646728515625, -0.063232421875, -0.0162353515625, 0.0423583984375, -0.020538330078125, -0.024688720703125, -0.050018310546875, -0.0540771484375, -0.0106353759765625, -0.06103515625, -0.0026645660400390625, 0.021697998046875, -0.0030422210693359375, 0.02862548828125, -0.01087188720703125, -0.0193328857421875, 0.009368896484375, 0.007572174072265625, 0.00603485107421875, -0.0266265869140625, 0.0599365234375, 0.058563232421875, -0.039520263671875, -0.03106689453125, -0.0537109375, 0.115478515625, -0.03167724609375, -0.059356689453125, 0.0208587646484375, 0.0296173095703125, 0.08636474609375, -0.0008792877197265625, 0.03497314453125, 0.02105712890625, 0.006664276123046875, -0.01499176025390625, -0.0183258056640625, 0.00791168212890625, -0.0218963623046875, 0.00022912025451660156, -0.0132904052734375, 0.003772735595703125, 0.016571044921875, 0.0251312255859375, -0.01806640625, 0.0208587646484375, -0.00836181640625, -0.0086669921875, -0.00453948974609375, -0.003021240234375, 0.0113677978515625, -0.0166473388671875, -0.03509521484375, -0.004150390625, -0.04931640625, 0.001129150390625, 0.0077056884765625, -0.008392333984375, 0.05072021484375, -0.01145172119140625, 0.006744384765625, -0.0310821533203125, 0.034942626953125, -0.0260467529296875, -0.02520751953125, -0.031585693359375, 0.0222320556640625, 0.0328369140625, 0.0118255615234375, -0.022796630859375, -0.00928497314453125, -0.0265350341796875, 0.03497314453125, -0.07159423828125, 0.031402587890625, -0.0016450881958007812, -0.00528717041015625, -0.04937744140625, -0.00885772705078125, -0.022979736328125, -0.022369384765625, -0.01001739501953125, 0.042327880859375, 0.052032470703125, 0.04400634765625, 0.01491546630859375, -0.023681640625, 0.07623291015625, 0.0118408203125, 0.04669189453125, -0.03857421875, 0.01345062255859375, 0.06085205078125, 0.0280914306640625, 0.0215301513671875, -0.00457763671875, -0.060791015625, 0.01456451416015625, 0.03753662109375, -0.032623291015625, -0.016632080078125, 0.0017385482788085938, -0.0160369873046875, 0.0300445556640625, -0.02349853515625, -0.02972412109375, -0.01104736328125, 0.06158447265625, 0.001415252685546875, 0.053070068359375, 0.0231781005859375, -0.0272216796875, 0.0185394287109375, 0.002170562744140625, -0.0194549560546875, 0.00392913818359375, 0.027679443359375, 0.006366729736328125, 0.0350341796875, -0.01198577880859375, -0.0103759765625, 0.01885986328125, 0.02520751953125, -0.025146484375, -0.0016937255859375, -0.031890869140625, -0.0252838134765625, -0.000736236572265625, 0.004871368408203125, 0.01458740234375, -0.0174560546875, -0.01348876953125, -0.035919189453125, -0.007045745849609375, 0.052581787109375, -0.02203369140625, 0.046661376953125, 0.051116943359375, -0.0101470947265625, 0.0311279296875, -0.00722503662109375, 0.0101470947265625, -0.0352783203125, 0.0014371871948242188, 0.028961181640625, -0.0162506103515625, -0.0266265869140625, 0.004550933837890625, -0.0014934539794921875, -0.0301513671875, -0.0034046173095703125, -0.005588531494140625, -0.00962066650390625, -0.01507568359375, 0.058868408203125, 0.034027099609375, 0.033782958984375, 0.01629638671875, -0.0225677490234375, 0.0100555419921875, 0.04144287109375, -0.0269927978515625, -0.048980712890625, 0.010528564453125, -0.03369140625, -0.004047393798828125, -0.00677490234375, -0.021026611328125, -0.01386260986328125, 0.00933074951171875, -0.00797271728515625, 0.0131378173828125, 0.005741119384765625, -0.00836181640625, 0.006740570068359375, -0.040985107421875, 0.002803802490234375, 0.005390167236328125, 0.00799560546875, 0.0021762847900390625, 0.045074462890625, 0.0011444091796875, -0.0245819091796875, 0.018341064453125, 0.01346588134765625, -0.022857666015625, -0.00708770751953125, 0.0151824951171875, -0.03485107421875, -0.0531005859375, -0.01361846923828125, -0.0304107666015625, 0.0061798095703125, 0.0013446807861328125, 0.0037899017333984375, -0.01654052734375, 0.0176239013671875, 0.0207366943359375, 0.04327392578125, 0.015777587890625, 0.0109100341796875, 0.04638671875, -0.031524658203125, -0.0134429931640625, 0.027801513671875, -0.022796630859375, -0.04278564453125, -0.018524169921875, -0.007083892822265625, -0.02642822265625, 0.01776123046875, 0.02789306640625, 0.021575927734375, 0.007511138916015625, 0.00884246826171875, 0.038818359375, -0.01082611083984375, -0.0016126632690429688, -0.03558349609375, -0.019927978515625, -0.02532958984375, 0.0244140625, -0.0149688720703125, 0.028564453125, -0.0178680419921875, 0.0264739990234375, -0.058380126953125, -0.039581298828125, 0.0572509765625, 0.009552001953125, 0.04010009765625, -0.048675537109375, -0.045166015625, -0.006900787353515625, 0.1129150390625, -0.04052734375, 0.006671905517578125, -0.008819580078125, -0.00907135009765625, -0.0202484130859375, -0.0202789306640625, -0.0780029296875, -0.0138702392578125, -0.0465087890625, 0.030059814453125, -0.00894927978515625, 0.004398345947265625, -0.055938720703125, -0.0033473968505859375, -0.051605224609375, -0.0204010009765625, 0.033416748046875, -0.01483154296875, 0.026947021484375, 0.01201629638671875, 0.002532958984375, -0.00345611572265625, -0.005832672119140625, -0.021270751953125, -0.042327880859375, -0.0000029802322387695312, -0.01450347900390625, 0.044342041015625, 0.0066986083984375, -0.01377105712890625, -0.0394287109375, 0.0205841064453125, 0.004405975341796875, -0.008697509765625, -0.0007486343383789062, 0.0030193328857421875, 0.0155487060546875, 0.031524658203125, -0.0028858184814453125, 0.00861358642578125, 0.038116455078125, 0.048797607421875, -0.0011854171752929688, 0.0245819091796875, -0.061126708984375, -0.027801513671875, 0.00844573974609375, -0.06427001953125, 0.0221099853515625, -0.034332275390625, -0.025665283203125, 0.0455322265625, -0.032928466796875, 0.0180511474609375, -0.06292724609375, -0.00257110595703125, 0.031280517578125, 0.01064300537109375, -0.042022705078125, 0.0190582275390625, 0.009063720703125, 0.01366424560546875, -0.0308685302734375, -0.07025146484375, 0.05010986328125, 0.041259765625, -0.0084381103515625, 0.034271240234375, -0.005191802978515625, -0.0295562744140625, 0.052093505859375, -0.006069183349609375, -0.007633209228515625, -0.03668212890625, 0.09747314453125, 0.0011110305786132812, 0.0041961669921875, 0.007228851318359375, -0.01020050048828125, 0.01824951171875, -0.064697265625, -0.02008056640625, -0.010101318359375, 0.042236328125, 0.0227508544921875, -0.01522064208984375, 0.0562744140625, -0.0012292861938476562, -0.030548095703125, 0.01053619384765625, 0.03167724609375, -0.03082275390625, 0.042877197265625, -0.0171661376953125, -0.02740478515625, -0.0296478271484375, -0.0006256103515625, 0.004161834716796875, 0.01407623291015625, -0.022064208984375, 0.0506591796875, -0.0251312255859375, -0.01476287841796875, -0.0141754150390625, -0.00870513916015625, 0.0655517578125, 0.0136871337890625, -0.0496826171875, 0.0089111328125, -0.0220184326171875, -0.0181884765625, -0.00870513916015625, -0.032501220703125, 0.04742431640625, 0.03802490234375, 0.01358795166015625, -0.015380859375, -0.0670166015625, 0.02294921875, -0.04486083984375, 0.0323486328125, 0.0068817138671875, -0.0219879150390625, 0.040130615234375, -0.03790283203125, -0.0285797119140625, 0.0019931793212890625, 0.0199737548828125, 0.01297760009765625, 0.0301971435546875, 0.0211639404296875, 0.024871826171875, -0.01013946533203125, -0.0141754150390625, 0.0159149169921875, -0.0003662109375, -0.032745361328125, -0.04156494140625, 0.00997161865234375, 0.05352783203125, -0.0241241455078125, 0.005840301513671875, -0.005458831787109375, -0.00179290771484375, -0.025787353515625, -0.007656097412109375, 0.042572021484375, 0.05035400390625, -0.0225830078125, -0.0015420913696289062, 0.035614013671875, 0.06719970703125, 0.0036640167236328125, -0.0322265625, -0.00043392181396484375, -0.0104827880859375, -0.0084381103515625, -0.0369873046875, -0.00460052490234375, 0.0022449493408203125, -0.0038547515869140625, 0.00691986083984375, -0.0043792724609375, -0.039306640625, -0.04144287109375, 0.00287628173828125, 0.00759124755859375, 0.0106658935546875, -0.0474853515625, 0.029632568359375, -0.0112152099609375, -0.0089569091796875, -0.0090179443359375, 0.0229034423828125, 0.01061248779296875, 0.00927734375, -0.0086822509765625, -0.025970458984375, -0.032562255859375, -0.01432037353515625, -0.0284423828125, -0.0260162353515625, -0.0305023193359375, 0.0027313232421875, -0.00506591796875, 0.0333251953125, -0.0400390625, -0.0433349609375, 0.0068206787109375, -0.00978851318359375, -0.0196685791015625, 0.0263824462890625, 0.00753021240234375, 0.035980224609375, 0.022705078125, 0.051361083984375, 0.03289794921875, 0.05029296875, 0.017425537109375, -0.059173583984375, 0.036834716796875, -0.0682373046875, -0.04901123046875, -0.025177001953125, -0.043487548828125, 0.042388916015625, 0.0550537109375, -0.0225677490234375, -0.00926971435546875, 0.00157928466796875, -0.00885772705078125, -0.03216552734375, 0.032073974609375, 0.00872039794921875, 0.032958984375, -0.047637939453125, -0.005069732666015625, 0.0009670257568359375, -0.06256103515625, -0.0154571533203125, 0.0231781005859375, 0.004657745361328125, 0.0184478759765625, -0.01239013671875, 0.0009765625, 0.0596923828125, 0.058746337890625, -0.05999755859375, 0.02099609375, 0.04681396484375, -0.026824951171875, 0.0011005401611328125, 0.004261016845703125, 0.034820556640625, 0.00783538818359375, 0.06207275390625, -0.00557708740234375, -0.0067138671875, 0.0216827392578125, -0.0267486572265625, 0.043670654296875, 0.03955078125, 0.0799560546875, -0.05267333984375, 0.0248260498046875, 0.02288818359375, -0.0204620361328125, 0.05133056640625, 0.00928497314453125, 0.003566741943359375, 0.007389068603515625, 0.0229339599609375, -0.0031909942626953125, -0.01678466796875, 0.0248260498046875, -0.00580596923828125, -0.01537322998046875, -0.01419830322265625, -0.005588531494140625, 0.0034027099609375, 0.03851318359375, -0.00519561767578125, -0.0120391845703125, 0.024932861328125, -0.01479339599609375, -0.00809478759765625, 0.01122283935546875, -0.031402587890625, -0.047698974609375, 0.0130157470703125, -0.036041259765625, 0.0187835693359375, -0.03936767578125, 0.0134429931640625, 0.018798828125, 0.04681396484375, -0.019195556640625, -0.0067138671875, 0.02569580078125, 0.0130157470703125, 0.0167236328125, -0.0164794921875, 0.05841064453125, 0.0190277099609375, -0.05029296875, 0.022064208984375, 0.01511383056640625, -0.048797607421875, -0.01256561279296875, -0.05657958984375, 0.023590087890625, -0.043548583984375, 0.0001819133758544922, 0.004852294921875, 0.0261688232421875, 0.01262664794921875, -0.004871368408203125, 0.0195465087890625, -0.05267333984375, -0.0239410400390625, 0.0032138824462890625, -0.02227783203125, -0.016021728515625, -0.0272979736328125, -0.07598876953125, 0.0902099609375, 0.046539306640625, 0.0217132568359375, -0.0190582275390625, 0.0457763671875, -0.033477783203125, 0.005603790283203125, -0.0179290771484375, 0.040618896484375, 0.00815582275390625, 0.03778076171875, -0.044769287109375, -0.006267547607421875, 0.0036792755126953125, 0.056243896484375, 0.0033779144287109375, 0.0105133056640625, -0.014617919921875, 0.0287322998046875, 0.04827880859375, 0.02166748046875, 0.0021152496337890625, 0.01099395751953125, -0.0287628173828125, 0.00226593017578125, 0.0221099853515625, -0.0101776123046875, 0.02105712890625, 0.006473541259765625, -0.041534423828125, 0.0156402587890625, -0.005153656005859375, -0.006595611572265625, 0.022186279296875, 0.0166473388671875, 0.01165771484375, 0.01146697998046875, -0.010528564453125, -0.0225830078125, -0.035308837890625, 0.0645751953125, 0.01042938232421875, -0.0474853515625, -0.083251953125, -0.03338623046875, 0.0311431884765625, -0.006439208984375, 0.06536865234375, 0.054412841796875, 0.028350830078125, 0.06591796875, 0.0271148681640625, 0.04736328125, 0.0225067138671875, -0.006031036376953125, 0.04083251953125, 0.01459503173828125, 0.01025390625, -0.04730224609375, -0.00017070770263671875, 0.035308837890625, 0.0596923828125, -0.04180908203125, 0.00443267822265625, 0.01168060302734375, -0.0025043487548828125, -0.006076812744140625, -0.045928955078125, -0.007495880126953125, -0.051544189453125, -0.03936767578125, -0.005443572998046875, 0.00897979736328125, 0.01007843017578125, 0.0299072265625, -0.00788116455078125, 0.009429931640625, -0.042999267578125, 0.015777587890625, -0.0277557373046875, 0.023712158203125, 0.0164794921875, 0.0189056396484375, -0.014923095703125, 0.03912353515625, -0.01264190673828125, -0.004322052001953125, 0.005035400390625, -0.0119171142578125, 0.0025730133056640625, -0.0124664306640625, 0.017822265625, 0.0177001953125, -0.036590576171875, 0.01568603515625, -0.001953125, -0.0005550384521484375, 0.019744873046875, 0.0195770263671875, 0.00228118896484375, -0.016571044921875, 0.02618408203125, -0.01192474365234375, 0.0217437744140625, -0.0130157470703125, -0.01238250732421875, 0.0092315673828125, -0.0191192626953125, -0.0162811279296875, 0.003963470458984375, 0.04290771484375, -0.007110595703125, -0.0172882080078125, 0.00988006591796875, -0.03424072265625, 0.0406494140625, 0.0318603515625, 0.03997802734375, 0.02490234375, -0.03326416015625, 0.0057220458984375, -0.046234130859375, -0.07879638671875, 0.0345458984375, 0.061279296875, 0.007171630859375, -0.01873779296875, 0.00888824462890625, -0.02734375, 0.02008056640625, 0.017608642578125, -0.0262451171875, -0.004756927490234375, 0.04083251953125, -0.0227813720703125, -0.059356689453125, -0.040283203125, -0.047210693359375, 0.055694580078125, 0.04351806640625, 0.030364990234375, 0.005496978759765625, 0.049072265625, -0.039947509765625, 0.0051727294921875, -0.0312042236328125, -0.0255889892578125, 0.037811279296875, 0.01561737060546875, -0.0263214111328125, -0.0115814208984375, 0.00675201416015625, 0.035614013671875, 0.051971435546875, -0.0031948089599609375, 0.0345458984375, 0.0003821849822998047, 0.01104736328125, -0.03533935546875, 0.0022869110107421875, -0.031524658203125, 0.0210418701171875, -0.051239013671875, -0.0438232421875, 0.0440673828125, -0.0394287109375, -0.0181427001953125, -0.021484375, 0.0625, -0.04541015625, 0.024871826171875, 0.004581451416015625, 0.041900634765625, 0.0233612060546875, 0.03753662109375, -0.023162841796875, 0.0308380126953125, -0.00679779052734375, 0.0034313201904296875, 0.01885986328125, 0.03436279296875, 0.034423828125, -0.06396484375, 0.021392822265625, 0.04620361328125, 0.0614013671875, 0.006542205810546875, 0.0215911865234375, 0.01085662841796875, -0.0195770263671875, -0.0140228271484375, -0.0164337158203125, -0.0175628662109375, -0.03509521484375, 0.006153106689453125, 0.0188751220703125, 0.003665924072265625, -0.006313323974609375, -0.013824462890625, 0.0035686492919921875, 0.0183868408203125, 0.0036773681640625, -0.0626220703125, 0.011016845703125, 0.0008707046508789062, 0.051422119140625, -0.01242828369140625, 0.0160980224609375, 0.004878997802734375, 0.007640838623046875, -0.05560302734375, -0.02752685546875, -0.031341552734375, 0.0307464599609375, -0.0243682861328125, 0.031951904296875, 0.056884765625, -0.038421630859375, -0.0029277801513671875, 0.04876708984375, 0.0157623291015625, 0.098388671875, -0.041107177734375, -0.0250701904296875, 0.05322265625, -0.02825927734375, 0.0026416778564453125, -0.0565185546875, -0.015106201171875, -0.03289794921875, 0.014404296875, 0.0247344970703125, -0.0169525146484375, 0.0135040283203125, -0.027740478515625, -0.058929443359375, 0.05743408203125, 0.00479888916015625, -0.043487548828125, -0.0633544921875, 0.00476837158203125, 0.00257110595703125, 0.0043487548828125, -0.0196685791015625, -0.019775390625, -0.0293731689453125, 0.026763916015625, 0.00910186767578125, 0.04278564453125, 0.014984130859375, 0.0274505615234375, -0.0304412841796875, -0.00463104248046875, -0.051025390625, 0.0024585723876953125, 0.023193359375, -0.031890869140625, 0.0606689453125, 0.030059814453125, -0.028472900390625, 0.018280029296875, 0.03839111328125, -0.01309967041015625, -0.00266265869140625, -0.0595703125, -0.003650665283203125, -0.032073974609375, 0.07965087890625, -0.0260162353515625, 0.0204925537109375, 0.0117645263671875, -0.01430511474609375, -0.00809478759765625, -0.0006260871887207031, 0.00921630859375, -0.0017805099487304688, -0.0016326904296875, 0.01788330078125, -0.039642333984375, -0.024383544921875, 0.00408172607421875, -0.037750244140625, -0.0303802490234375, 0.01480865478515625, -0.0257568359375, -0.006397247314453125, -0.0178680419921875, -0.01617431640625, -0.00893402099609375, 0.0030078887939453125, 0.03936767578125, -0.0020465850830078125, 0.0191497802734375, 0.0105133056640625, 0.07525634765625, -0.03326416015625, -0.035400390625, 0.0012426376342773438, 0.0171051025390625, -0.01148223876953125, 0.029266357421875, 0.01373291015625, 0.00850677490234375, -0.030120849609375, 0.011505126953125, 0.0333251953125, 0.01244354248046875, -0.0294647216796875, 0.02215576171875, 0.0292205810546875, -0.005218505859375, -0.027313232421875, 0.06005859375, 0.011505126953125, 0.000005900859832763672, 0.0183868408203125, 0.0018987655639648438, 0.08160400390625, -0.06500244140625, 0.0008807182312011719, 0.03326416015625, 0.057769775390625, -0.031982421875, 0.03485107421875, -0.05816650390625, 0.044189453125, 0.024627685546875 ]
7834b53d721081fd35d47263feb32a0cdedabbef
Wordpress Stackexchange Q: Add button in TinyMCE editor to insert text I'm searching a way to add a custom button to the TinyMCE editor when clicked insert into the visual editor some text. For example: button called "Hi" when clicked insert into the editor "Hello I'm <B>Mark</b>!" Is it possible? And how? A: Add this to your plugin file or in functions.php file in the theme directory add_action( 'admin_enqueue_scripts', 'wpse_141344_admin_enqueue_scripts' ); add_action( 'admin_head', 'wpse_141344_add_mce_button' ); function wpse_141344_admin_enqueue_scripts() { wp_enqueue_script( 'wpse_141344-tinymce-scipt', 'url/to/your/custom-tinymce.js' ); } function wpse_141344_add_mce_button() { if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) { return; } add_filter( 'mce_external_plugins', 'wpse_141344_add_tinymce_plugin' ); add_filter( 'mce_buttons', 'wpse_141344_register_mce_button' ); } function wpse_141344_add_tinymce_plugin( $plugin_array ) { $plugin_array['wpse_141344_tinymce_button'] = 'url/to/your/custom-tinymce.js'; return $plugin_array; } function wpse_141344_register_mce_button( $buttons ) { array_push( $buttons, 'wpse_141344_tinymce_button' ); return $buttons; } And this is your custom-tinymce.js file (function() { tinymce.PluginManager.add('wpse_141344_tinymce_button', function( editor, url ) { editor.addButton( 'wpse_141344_tinymce_button', { // image : 'url/to/an/icon', // optional text : 'Hi', title : 'Hi', onclick: function() { editor.insertContent('Hello I\'m <B>Mark</b>!'); } }); }); })();
Q: Add button in TinyMCE editor to insert text I'm searching a way to add a custom button to the TinyMCE editor when clicked insert into the visual editor some text. For example: button called "Hi" when clicked insert into the editor "Hello I'm <B>Mark</b>!" Is it possible? And how? A: Add this to your plugin file or in functions.php file in the theme directory add_action( 'admin_enqueue_scripts', 'wpse_141344_admin_enqueue_scripts' ); add_action( 'admin_head', 'wpse_141344_add_mce_button' ); function wpse_141344_admin_enqueue_scripts() { wp_enqueue_script( 'wpse_141344-tinymce-scipt', 'url/to/your/custom-tinymce.js' ); } function wpse_141344_add_mce_button() { if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) { return; } add_filter( 'mce_external_plugins', 'wpse_141344_add_tinymce_plugin' ); add_filter( 'mce_buttons', 'wpse_141344_register_mce_button' ); } function wpse_141344_add_tinymce_plugin( $plugin_array ) { $plugin_array['wpse_141344_tinymce_button'] = 'url/to/your/custom-tinymce.js'; return $plugin_array; } function wpse_141344_register_mce_button( $buttons ) { array_push( $buttons, 'wpse_141344_tinymce_button' ); return $buttons; } And this is your custom-tinymce.js file (function() { tinymce.PluginManager.add('wpse_141344_tinymce_button', function( editor, url ) { editor.addButton( 'wpse_141344_tinymce_button', { // image : 'url/to/an/icon', // optional text : 'Hi', title : 'Hi', onclick: function() { editor.insertContent('Hello I\'m <B>Mark</b>!'); } }); }); })(); A: If you do want to make a button from scratch try using this code: <script type="text/javascript" src="<your installation path>/tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({ selector: "textarea", toolbar: "mybutton", setup: function(editor) { editor.addButton('mybutton', { type: 'menubutton', text: 'My button', icon: false, menu: [ {text: 'Hi', onclick: function() {editor.insertContent('Hello I am <B>Mark</b>');}}, {text: 'Insert text item 2', onclick: function() {editor.insertContent('It is a beautiful day');}} ] }); } }); </script> <form method="post" action="somepage"> <textarea name="content" style="width:100%"></textarea> </form> This snippet plugin (electricg/tinymce-snippet-plugin) might be useful if you just quickly want to add custom buttons with drop downs without coding so much. You can also look inside the plugin to make a high level system if you are interested. A: Try this : Add this code to functions.php file. add_action( 'init', 'droid_buttons' ); function droid_buttons() { add_filter( "mce_external_plugins", "droid_add_buttons" ); add_filter( 'mce_buttons', 'droid_register_buttons' ); } function droid_add_buttons( $plugin_array ) { $plugin_array['droid'] = get_template_directory_uri() . '/text-button.js'; echo get_template_directory_uri(); return $plugin_array; } function droid_register_buttons( $buttons ) { array_push( $buttons, 'droid_title'); // droid_title return $buttons; } Create .js file and replace you path/location of js file in below code: (function() { tinymce.create('tinymce.plugins.Droid', { init : function(ed, url) { ed.addButton('droid_title', { title : 'Droid Title', cmd : 'droid_title', image : '' }); ed.addCommand('droid_title', function() { var selected_text = ed.selection.getContent(); var return_text = ""; return_text = '<span class="droid_title">Hello I\'m <B>Mark</b>!</span>'; ed.execCommand('mceInsertContent', 0, return_text); }); }, }); // Register plugin tinymce.PluginManager.add( 'droid', tinymce.plugins.Droid ); })();
wordpress
{ "language": "en", "length": 403, "provenance": "stackexchange_00019.jsonl.gz:444272", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141344" }
[ 0.01383209228515625, 0.01165008544921875, -0.007175445556640625, -0.00714874267578125, 0.030029296875, -0.0138397216796875, 0.06390380859375, -0.0032501220703125, -0.002593994140625, 0.03448486328125, 0.01268768310546875, -0.007099151611328125, -0.0022640228271484375, -0.040435791015625, -0.01001739501953125, -0.009429931640625, 0.03271484375, -0.01284027099609375, 0.04400634765625, 0.00554656982421875, -0.0056304931640625, 0.0301513671875, 0.0411376953125, -0.036468505859375, -0.00787353515625, 0.014984130859375, 0.1004638671875, -0.00998687744140625, -0.0034008026123046875, -0.0166015625, 0.022216796875, -0.029205322265625, 0.0193328857421875, 0.05816650390625, -0.06854248046875, 0.03497314453125, 0.0016355514526367188, 0.0206756591796875, -0.00022494792938232422, 0.024627685546875, 0.040924072265625, -0.02313232421875, -0.0215606689453125, 0.034423828125, -0.034271240234375, -0.03875732421875, 0.050933837890625, -0.013519287109375, -0.01145172119140625, -0.0137786865234375, 0.008331298828125, -0.004795074462890625, 0.030029296875, -0.030181884765625, 0.005039215087890625, 0.0296783447265625, -0.082275390625, 0.035797119140625, -0.0102081298828125, 0.0802001953125, 0.052093505859375, 0.023406982421875, -0.024871826171875, -0.0025787353515625, 0.0035686492919921875, -0.01226043701171875, -0.01132965087890625, 0.00936126708984375, 0.0280914306640625, 0.00997161865234375, -0.015533447265625, -0.01251220703125, -0.0007047653198242188, -0.031951904296875, -0.016754150390625, 0.03717041015625, -0.0210723876953125, -0.0184783935546875, 0.029022216796875, -0.00362396240234375, -0.004962921142578125, -0.022979736328125, 0.01081085205078125, -0.00792694091796875, -0.0009202957153320312, 0.01110076904296875, -0.0184326171875, -0.01178741455078125, -0.020233154296875, -0.01203155517578125, -0.016998291015625, -0.06793212890625, -0.0033092498779296875, 0.04876708984375, -0.0016279220581054688, 0.0022029876708984375, 0.0031299591064453125, -0.00946044921875, -0.005626678466796875, 0.0301361083984375, 0.033721923828125, -0.0487060546875, 0.09295654296875, -0.038055419921875, 0.0302734375, -0.0111083984375, -0.029266357421875, 0.010833740234375, 0.05413818359375, 0.0225830078125, -0.01001739501953125, 0.0218353271484375, 0.01019287109375, -0.022491455078125, 0.0027923583984375, -0.005340576171875, -0.021209716796875, 0.033203125, 0.010406494140625, 0.020050048828125, -0.02630615234375, -0.036285400390625, -0.00809478759765625, 0.02301025390625, -0.01218414306640625, -0.050994873046875, -0.0103912353515625, 0.043731689453125, -0.0020236968994140625, -0.0070037841796875, -0.0301513671875, 0.012847900390625, 0.07330322265625, 0.069091796875, 0.03778076171875, -0.01157379150390625, 0.048431396484375, -0.0106353759765625, -0.0001970529556274414, -0.0072784423828125, 0.02056884765625, -0.0121917724609375, -0.0309600830078125, -0.0123291015625, -0.03765869140625, 0.01169586181640625, 0.0017518997192382812, 0.0220489501953125, -0.00533294677734375, -0.067626953125, 0.01666259765625, -0.040924072265625, 0.051544189453125, -0.00128936767578125, -0.0240020751953125, -0.023529052734375, 0.002254486083984375, -0.026092529296875, -0.0118560791015625, -0.034820556640625, 0.0149383544921875, 0.0095672607421875, 0.01555633544921875, -0.055816650390625, -0.034149169921875, -0.0386962890625, -0.04327392578125, 0.00844573974609375, 0.01189422607421875, 0.076904296875, -0.0312347412109375, 0.0165863037109375, 0.006595611572265625, 0.0165557861328125, -0.01250457763671875, 0.0018024444580078125, -0.0007762908935546875, 0.049774169921875, 0.005397796630859375, 0.055023193359375, 0.03411865234375, -0.03106689453125, 0.10308837890625, -0.0184783935546875, -0.05499267578125, 0.044219970703125, -0.0219879150390625, 0.0550537109375, 0.01898193359375, -0.004894256591796875, 0.0022335052490234375, 0.00980377197265625, 0.048431396484375, -0.0289764404296875, 0.0024547576904296875, -0.03863525390625, -0.0396728515625, -0.017242431640625, -0.0248260498046875, 0.0260162353515625, 0.0164794921875, -0.0225830078125, 0.030853271484375, 0.014434814453125, -0.053558349609375, 0.028900146484375, -0.026336669921875, 0.018585205078125, 0.04345703125, -0.040740966796875, -0.01300048828125, -0.0299072265625, 0.048797607421875, -0.08001708984375, -0.04888916015625, 0.0478515625, 0.003345489501953125, 0.031402587890625, 0.0294036865234375, 0.033905029296875, 0.049224853515625, -0.0189666748046875, 0.035888671875, 0.004009246826171875, 0.0060577392578125, -0.0285186767578125, -0.017364501953125, -0.007579803466796875, -0.0157012939453125, 0.0014944076538085938, -0.0280914306640625, 0.03948974609375, 0.040435791015625, 0.00608062744140625, -0.016876220703125, 0.0015668869018554688, -0.007293701171875, -0.0809326171875, -0.00800323486328125, 0.053985595703125, 0.020294189453125, 0.0208282470703125, -0.010467529296875, 0.044097900390625, 0.053375244140625, 0.003070831298828125, 0.005931854248046875, 0.0162353515625, 0.021484375, 0.080078125, -0.0113677978515625, 0.0129241943359375, -0.0017833709716796875, -0.046844482421875, 0.02191162109375, 0.039581298828125, -0.02313232421875, 0.023101806640625, -0.003414154052734375, -0.0278472900390625, 0.0020656585693359375, -0.0126495361328125, 0.00951385498046875, -0.0194549560546875, 0.044708251953125, 0.0599365234375, 0.050537109375, 0.05511474609375, -0.050384521484375, 0.041778564453125, -0.0027141571044921875, -0.007068634033203125, -0.016357421875, -0.030120849609375, 0.0460205078125, -0.004840850830078125, -0.058135986328125, 0.03521728515625, 0.034881591796875, -0.00579833984375, -0.0143280029296875, -0.004970550537109375, -0.036712646484375, -0.0120086669921875, 0.01210784912109375, -0.044891357421875, 0.0002105236053466797, -0.01500701904296875, 0.04644775390625, -0.02850341796875, 0.008148193359375, 0.00722503662109375, -0.0265045166015625, 0.04705810546875, 0.0273284912109375, -0.043121337890625, 0.053680419921875, -0.0124053955078125, 0.03271484375, 0.002964019775390625, 0.029266357421875, 0.06298828125, 0.0002777576446533203, -0.0013875961303710938, 0.004974365234375, -0.0120391845703125, -0.03759765625, 0.03692626953125, 0.01080322265625, -0.021392822265625, -0.02667236328125, 0.0242156982421875, 0.008697509765625, 0.0447998046875, -0.03936767578125, -0.055450439453125, -0.0364990234375, 0.01128387451171875, -0.0445556640625, -0.0177001953125, 0.03131103515625, -0.067626953125, 0.018310546875, -0.031951904296875, -0.055328369140625, -0.007904052734375, 0.0037479400634765625, -0.0017347335815429688, -0.0701904296875, -0.013214111328125, 0.035675048828125, -0.0094757080078125, 0.0027942657470703125, 0.004825592041015625, 0.0039520263671875, -0.0017919540405273438, 0.0117340087890625, 0.0266265869140625, 0.005962371826171875, -0.0364990234375, 0.04547119140625, -0.00463104248046875, 0.00833892822265625, 0.046112060546875, 0.04010009765625, -0.048309326171875, 0.0321044921875, -0.005146026611328125, 0.03485107421875, 0.05853271484375, -0.03662109375, -0.0009260177612304688, -0.025848388671875, -0.0240020751953125, 0.01654052734375, 0.0278472900390625, 0.026336669921875, 0.0175018310546875, 0.0728759765625, -0.019866943359375, 0.00391387939453125, 0.033203125, 0.0019989013671875, 0.0257415771484375, -0.043243408203125, -0.0227508544921875, 0.0218048095703125, 0.0301361083984375, 0.02471923828125, 0.03619384765625, 0.01873779296875, 0.02978515625, -0.00579071044921875, -0.01523590087890625, 0.000006973743438720703, -0.036163330078125, -0.001956939697265625, -0.006580352783203125, 0.01117706298828125, -0.006412506103515625, 0.035430908203125, 0.01560211181640625, 0.024871826171875, -0.0087738037109375, -0.0015964508056640625, 0.017547607421875, -0.033111572265625, 0.0275115966796875, -0.03814697265625, -0.00705718994140625, -0.016143798828125, 0.046051025390625, -0.0325927734375, -0.0161895751953125, -0.02197265625, 0.0026302337646484375, 0.029754638671875, -0.006481170654296875, -0.011688232421875, -0.0206756591796875, -0.056396484375, 0.0224609375, -0.024169921875, 0.0162506103515625, -0.0276641845703125, 0.05364990234375, -0.0233612060546875, -0.035675048828125, 0.03802490234375, -0.0435791015625, 0.0209503173828125, 0.0244903564453125, -0.02435302734375, 0.003551483154296875, -0.01690673828125, -0.047698974609375, -0.0794677734375, -0.00042128562927246094, -0.04156494140625, 0.046905517578125, 0.0182342529296875, 0.003406524658203125, -0.0204315185546875, 0.03448486328125, -0.023223876953125, 0.04742431640625, -0.00013315677642822266, 0.05596923828125, -0.0014591217041015625, -0.055023193359375, -0.002933502197265625, -0.04248046875, 0.034912109375, 0.034454345703125, -0.0236053466796875, 0.03240966796875, -0.03765869140625, -0.01457977294921875, 0.036651611328125, -0.077392578125, -0.019805908203125, -0.036895751953125, -0.006786346435546875, 0.0243682861328125, -0.0079498291015625, -0.004627227783203125, -0.025665283203125, -0.0264129638671875, -0.0029144287109375, -0.0258026123046875, 0.00788116455078125, 0.02130126953125, 0.031646728515625, 0.0242767333984375, -0.0009074211120605469, -0.0077667236328125, 0.00778961181640625, 0.02197265625, -0.00823974609375, -0.01346588134765625, 0.003849029541015625, -0.017822265625, -0.01666259765625, -0.0217132568359375, 0.01340484619140625, -0.0616455078125, 0.10565185546875, -0.0225372314453125, 0.00925445556640625, 0.01024627685546875, -0.0205841064453125, -0.0038928985595703125, -0.004238128662109375, -0.03271484375, -0.01531219482421875, -0.0160980224609375, 0.049163818359375, -0.03411865234375, 0.07208251953125, -0.0190582275390625, -0.0306854248046875, -0.0008444786071777344, 0.0292816162109375, 0.0219879150390625, 0.01708984375, -0.0005970001220703125, 0.01155853271484375, -0.00311279296875, -0.02850341796875, 0.038482666015625, 0.0189208984375, 0.0501708984375, 0.0141448974609375, 0.038238525390625, 0.002532958984375, -0.0237884521484375, 0.00044035911560058594, 0.0138397216796875, 0.0247650146484375, -0.0142059326171875, -0.02001953125, 0.0015115737915039062, 0.03369140625, -0.016571044921875, 0.0305328369140625, 0.0087127685546875, 0.029876708984375, -0.0254058837890625, 0.0226593017578125, 0.04937744140625, 0.008819580078125, -0.023040771484375, -0.037109375, -0.02227783203125, -0.0110321044921875, 0.00736236572265625, 0.05145263671875, -0.021484375, 0.025848388671875, 0.003932952880859375, 0.045379638671875, 0.060882568359375, 0.0160064697265625, 0.01389312744140625, -0.0011739730834960938, -0.01457977294921875, 0.0004677772521972656, -0.01959228515625, -0.00173187255859375, 0.0265045166015625, 0.0079498291015625, -0.005828857421875, 0.011474609375, -0.0214385986328125, 0.0268402099609375, -0.0257568359375, -0.0275726318359375, -0.0286407470703125, -0.0311126708984375, -0.03326416015625, -0.00374603271484375, 0.03363037109375, 0.005954742431640625, 0.00978851318359375, 0.00400543212890625, 0.006103515625, -0.0164642333984375, 0.016510009765625, -0.003978729248046875, -0.0016183853149414062, -0.0128631591796875, -0.016937255859375, 0.0115203857421875, -0.00004202127456665039, -0.01552581787109375, -0.07269287109375, -0.0261383056640625, -0.02099609375, 0.0013914108276367188, 0.0611572265625, -0.0092315673828125, 0.00601959228515625, -0.0194091796875, 0.01065826416015625, -0.009307861328125, 0.0177154541015625, -0.0089874267578125, -0.03082275390625, 0.008575439453125, -0.028839111328125, -0.03790283203125, -0.03875732421875, -0.00678253173828125, -0.0212554931640625, -0.043243408203125, -0.002017974853515625, 0.0279541015625, 0.038970947265625, -0.0025081634521484375, -0.033599853515625, -0.0006170272827148438, -0.00707244873046875, -0.0021419525146484375, 0.0379638671875, 0.01313018798828125, 0.06524658203125, 0.0029888153076171875, 0.06805419921875, 0.0294036865234375, 0.01116180419921875, -0.038238525390625, -0.022491455078125, 0.006061553955078125, -0.01763916015625, 0.01093292236328125, -0.007366180419921875, 0.004913330078125, -0.014984130859375, 0.00464630126953125, -0.00312042236328125, 0.033447265625, -0.00968170166015625, -0.0195770263671875, -0.005130767822265625, 0.0026721954345703125, 0.017578125, 0.029815673828125, 0.039520263671875, -0.049560546875, -0.0076904296875, 0.0059814453125, 0.0460205078125, -0.01044464111328125, -0.042572021484375, -0.0126953125, 0.03106689453125, -0.05462646484375, 0.06195068359375, 0.050323486328125, 0.0111083984375, 0.035369873046875, -0.01354217529296875, 0.01404571533203125, 0.0005254745483398438, -0.01087188720703125, -0.0229034423828125, 0.0046539306640625, 0.027679443359375, -0.006954193115234375, -0.03466796875, 0.03729248046875, -0.013275146484375, 0.035736083984375, 0.032470703125, 0.04254150390625, -0.063720703125, 0.000946044921875, -0.01141357421875, -0.035797119140625, 0.036895751953125, 0.0033435821533203125, -0.006282806396484375, -0.0283966064453125, 0.05999755859375, -0.01023101806640625, 0.00948333740234375, 0.04547119140625, 0.002552032470703125, -0.011505126953125, -0.00487518310546875, -0.0147705078125, -0.0050048828125, -0.0038661956787109375, -0.001850128173828125, 0.0014104843139648438, 0.001186370849609375, 0.01727294921875, 0.0298309326171875, -0.020782470703125, -0.013031005859375, -0.0335693359375, -0.00927734375, -0.009735107421875, -0.05120849609375, 0.050048828125, 0.0029735565185546875, 0.01204681396484375, 0.026336669921875, -0.020172119140625, 0.047393798828125, -0.007747650146484375, -0.0160369873046875, 0.04998779296875, -0.00226593017578125, -0.00872039794921875, 0.0186920166015625, -0.02032470703125, 0.001926422119140625, -0.00650787353515625, 0.015594482421875, 0.01038360595703125, 0.0292816162109375, 0.070556640625, -0.00689697265625, -0.044647216796875, 0.018798828125, -0.023040771484375, -0.005092620849609375, -0.06134033203125, -0.02655029296875, -0.0802001953125, -0.040435791015625, -0.05572509765625, -0.044677734375, 0.045928955078125, -0.0487060546875, -0.081787109375, 0.134033203125, 0.0201873779296875, 0.0287017822265625, -0.018829345703125, 0.05694580078125, -0.053680419921875, 0.02001953125, -0.00030303001403808594, 0.0236358642578125, -0.011016845703125, -0.0219879150390625, -0.01885986328125, -0.00493621826171875, -0.019317626953125, 0.052520751953125, 0.039642333984375, 0.0004150867462158203, -0.027557373046875, 0.0164642333984375, 0.0731201171875, 0.050750732421875, 0.0172119140625, 0.0139923095703125, 0.053955078125, -0.038482666015625, 0.0187225341796875, 0.065673828125, 0.052581787109375, -0.0275115966796875, 0.0028171539306640625, 0.057403564453125, -0.00555419921875, -0.003910064697265625, -0.0163116455078125, -0.0268402099609375, 0.0291748046875, -0.0132293701171875, -0.039764404296875, -0.022247314453125, -0.046112060546875, 0.0677490234375, -0.02288818359375, 0.031036376953125, -0.0633544921875, -0.0208892822265625, 0.01397705078125, -0.01050567626953125, 0.0273590087890625, 0.00789642333984375, 0.0145111083984375, 0.016845703125, -0.0156402587890625, 0.0017251968383789062, 0.0233001708984375, -0.0183868408203125, 0.0095062255859375, -0.01035308837890625, 0.0008544921875, -0.05792236328125, -0.010009765625, 0.050537109375, 0.0295257568359375, -0.02392578125, -0.0216217041015625, 0.0111846923828125, 0.010894775390625, -0.0142364501953125, -0.00800323486328125, -0.0029315948486328125, -0.01145172119140625, 0.0245513916015625, 0.0239105224609375, -0.024017333984375, -0.004947662353515625, 0.01010894775390625, 0.00982666015625, 0.0227203369140625, 0.01654052734375, -0.0177459716796875, -0.048919677734375, 0.0077667236328125, 0.007282257080078125, 0.0506591796875, 0.029998779296875, 0.0537109375, 0.0173187255859375, -0.0296173095703125, -0.0150604248046875, 0.0169830322265625, 0.0179901123046875, 0.0250244140625, -0.0224761962890625, -0.01763916015625, 0.04254150390625, 0.01201629638671875, 0.0214691162109375, 0.06884765625, 0.02362060546875, 0.0009946823120117188, 0.028472900390625, 0.0124969482421875, 0.018280029296875, -0.0292816162109375, -0.03631591796875, -0.056182861328125, 0.0006008148193359375, 0.0267181396484375, 0.0069122314453125, 0.027679443359375, -0.01824951171875, 0.0266571044921875, -0.0238189697265625, 0.0144805908203125, -0.01210784912109375, -0.050750732421875, 0.04376220703125, -0.0139617919921875, 0.07489013671875, 0.00021505355834960938, -0.04071044921875, 0.006587982177734375, -0.01428985595703125, -0.034698486328125, 0.006946563720703125, 0.04541015625, -0.01280975341796875, 0.0294189453125, -0.0299224853515625, -0.021728515625, 0.01934814453125, -0.000827789306640625, 0.01139068603515625, 0.0281524658203125, 0.006710052490234375, -0.01015472412109375, -0.040191650390625, 0.0036716461181640625, 0.0021209716796875, 0.006092071533203125, 0.01003265380859375, 0.031707763671875, -0.0024127960205078125, 0.006504058837890625, -0.0181121826171875, -0.0019207000732421875, 0.01177215576171875, -0.0211029052734375, 0.0202178955078125, 0.05426025390625, 0.00591278076171875, -0.024871826171875, -0.034027099609375, 0.042724609375, 0.022552490234375, 0.0095062255859375, 0.0183563232421875, 0.01470184326171875, 0.0164642333984375, -0.00959014892578125, 0.052764892578125, -0.0064544677734375, -0.0142822265625, -0.0115509033203125, -0.0007867813110351562, 0.0252227783203125, 0.042236328125, -0.0011396408081054688, 0.02972412109375, 0.004520416259765625, 0.0005788803100585938, 0.035614013671875, -0.0253448486328125, 0.033294677734375, 0.01983642578125, 0.00048613548278808594, -0.02410888671875, 0.005279541015625, -0.0162200927734375, -0.0247039794921875, 0.0116424560546875, 0.00366973876953125, 0.009307861328125, -0.0682373046875, 0.04876708984375, 0.0200042724609375, 0.05511474609375, -0.0160064697265625, 0.006866455078125, 0.01070404052734375, 0.011932373046875, 0.01027679443359375, -0.02386474609375, -0.04498291015625, -0.03375244140625, 0.0088958740234375, 0.024749755859375, -0.0144805908203125, -0.032623291015625, -0.0810546875, 0.0002963542938232422, 0.04473876953125, 0.008392333984375, -0.061187744140625, 0.03497314453125, -0.04376220703125, 0.0350341796875, -0.005695343017578125, 0.00991058349609375, -0.004364013671875, 0.0171661376953125, -0.028717041015625, -0.017852783203125, -0.0233612060546875, 0.0321044921875, -0.01336669921875, 0.01093292236328125, 0.01690673828125, -0.01355743408203125, 0.00690460205078125, 0.0207366943359375, 0.010986328125, 0.059967041015625, -0.011871337890625, -0.0269317626953125, 0.060089111328125, -0.04180908203125, -0.00476837158203125, -0.068359375, -0.016387939453125, -0.0758056640625, 0.01154327392578125, -0.0325927734375, 0.01326751708984375, 0.013519287109375, -0.0472412109375, -0.1011962890625, 0.02294921875, -0.0080718994140625, -0.041259765625, -0.032745361328125, 0.04931640625, 0.0037250518798828125, -0.03759765625, -0.0162200927734375, -0.004547119140625, 0.0084075927734375, 0.0009679794311523438, 0.004428863525390625, 0.0300750732421875, -0.01898193359375, 0.018951416015625, -0.08978271484375, -0.007472991943359375, -0.03582763671875, -0.00301361083984375, 0.0721435546875, -0.032806396484375, 0.037506103515625, 0.037841796875, -0.042724609375, -0.0572509765625, -0.052215576171875, -0.07843017578125, -0.0128936767578125, -0.05487060546875, -0.02032470703125, -0.0007371902465820312, 0.1064453125, 0.025115966796875, 0.020355224609375, -0.0557861328125, 0.005855560302734375, 0.007770538330078125, -0.0257110595703125, 0.005573272705078125, 0.01416015625, -0.049530029296875, -0.01036834716796875, -0.0030384063720703125, 0.0112762451171875, -0.035186767578125, 0.027679443359375, -0.013916015625, -0.0118560791015625, 0.036163330078125, -0.0036106109619140625, -0.0322265625, 0.00241851806640625, 0.10614013671875, -0.055084228515625, -0.01323699951171875, 0.0224456787109375, 0.005573272705078125, 0.04925537109375, 0.019989013671875, -0.0318603515625, 0.00945281982421875, -0.006122589111328125, 0.0287322998046875, -0.01392364501953125, 0.027679443359375, -0.033355712890625, 0.016937255859375, 0.00008416175842285156, 0.0260772705078125, -0.0034427642822265625, 0.0182037353515625, -0.032073974609375, 0.042755126953125, -0.0117645263671875, 0.05706787109375, -0.03277587890625, 0.019439697265625, -0.047637939453125, 0.039794921875, -0.01305389404296875, 0.0171356201171875, 0.0039825439453125, 0.0097503662109375, 0.0206146240234375, 0.0210418701171875, -0.024444580078125, 0.013885498046875, -0.0012149810791015625, 0.01274871826171875, -0.031036376953125, -0.003154754638671875 ]
29a01d959e11d2590a6c9242f538d30ca3e1856d
Wordpress Stackexchange Q: Wordpress function/template tag to get first n words of the content OK, this might be a duplicate, I was just unable to put my idea in proper search terms, sorry for that! Is there a built-in function or template tag to get the first n words of the content? I mean the_content(). Thanks! A: Yep, wp_trim_words(): <?php $trimmed = wp_trim_words( $text, $num_words = 55, $more = null ); ?> Or in your case: <?php echo apply_filters( 'the_content', wp_trim_words( strip_tags( $post->post_content ), 55 ) ); ?>
Q: Wordpress function/template tag to get first n words of the content OK, this might be a duplicate, I was just unable to put my idea in proper search terms, sorry for that! Is there a built-in function or template tag to get the first n words of the content? I mean the_content(). Thanks! A: Yep, wp_trim_words(): <?php $trimmed = wp_trim_words( $text, $num_words = 55, $more = null ); ?> Or in your case: <?php echo apply_filters( 'the_content', wp_trim_words( strip_tags( $post->post_content ), 55 ) ); ?>
wordpress
{ "language": "en", "length": 86, "provenance": "stackexchange_00019.jsonl.gz:444304", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141466" }
[ -0.07183837890625, -0.03765869140625, -0.01349639892578125, 0.06378173828125, -0.060577392578125, -0.00807952880859375, 0.02008056640625, -0.023651123046875, -0.0070648193359375, 0.0167999267578125, -0.035003662109375, -0.013519287109375, -0.0171356201171875, -0.01290130615234375, 0.0047149658203125, -0.04229736328125, 0.034881591796875, -0.031951904296875, 0.009063720703125, -0.005245208740234375, 0.00656890869140625, 0.033294677734375, -0.0189056396484375, 0.0439453125, 0.013885498046875, -0.01114654541015625, 0.0841064453125, -0.033172607421875, 0.027069091796875, -0.02398681640625, 0.03155517578125, -0.02117919921875, 0.006511688232421875, 0.0153961181640625, -0.028411865234375, -0.0428466796875, -0.0328369140625, 0.01451873779296875, -0.0162353515625, 0.00933837890625, -0.00135040283203125, 0.0164337158203125, 0.0082244873046875, 0.038330078125, -0.006649017333984375, -0.06402587890625, 0.0211181640625, -0.056671142578125, 0.02117919921875, -0.00798797607421875, 0.03759765625, -0.039215087890625, 0.0538330078125, -0.048431396484375, -0.0295257568359375, 0.00846099853515625, -0.031097412109375, 0.0300445556640625, 0.029541015625, 0.005214691162109375, -0.0250701904296875, -0.00444793701171875, 0.01305389404296875, -0.0206756591796875, -0.0035858154296875, 0.009124755859375, 0.044036865234375, 0.0015916824340820312, -0.05633544921875, -0.04534912109375, 0.01403045654296875, -0.00897216796875, 0.0131072998046875, -0.03125, 0.022491455078125, 0.00841522216796875, -0.0134429931640625, -0.00717926025390625, 0.006008148193359375, 0.0123138427734375, -0.0220489501953125, -0.0159149169921875, -0.0498046875, -0.0045013427734375, 0.0081939697265625, 0.01438140869140625, -0.01275634765625, -0.0204315185546875, -0.043670654296875, -0.00701904296875, -0.03179931640625, 0.05487060546875, -0.022125244140625, -0.038726806640625, -0.0455322265625, -0.013397216796875, 0.00725555419921875, 0.0207061767578125, -0.0301971435546875, -0.0264739990234375, 0.0262451171875, -0.044647216796875, 0.03076171875, -0.01401519775390625, 0.025970458984375, 0.0026454925537109375, -0.0265350341796875, 0.0009622573852539062, 0.07891845703125, 0.0290985107421875, 0.0013942718505859375, 0.02490234375, -0.00794219970703125, -0.0086822509765625, -0.0560302734375, 0.04010009765625, 0.001556396484375, -0.043731689453125, -0.0028247833251953125, -0.02557373046875, 0.004840850830078125, -0.00356292724609375, 0.022430419921875, 0.004581451416015625, 0.00400543212890625, 0.00322723388671875, -0.0268707275390625, -0.0209197998046875, 0.002872467041015625, 0.033538818359375, 0.00728607177734375, 0.032470703125, -0.0197906494140625, -0.0380859375, -0.05535888671875, 0.0010595321655273438, -0.0135650634765625, -0.0196990966796875, 0.006099700927734375, -0.00878143310546875, 0.011474609375, 0.0092620849609375, 0.0292510986328125, -0.0004413127899169922, 0.030517578125, 0.0019474029541015625, 0.0286865234375, 0.030029296875, -0.01050567626953125, -0.022064208984375, 0.04425048828125, -0.0018339157104492188, 0.039520263671875, -0.01229095458984375, -0.051300048828125, -0.0207672119140625, -0.058135986328125, -0.0004405975341796875, -0.01149749755859375, -0.0127410888671875, 0.01203155517578125, -0.0230865478515625, -0.0162200927734375, -0.002040863037109375, -0.048492431640625, 0.0400390625, -0.0126953125, -0.01348876953125, 0.01593017578125, 0.03521728515625, -0.011932373046875, 0.0207366943359375, 0.04339599609375, 0.012420654296875, -0.027252197265625, 0.00362396240234375, -0.0063934326171875, -0.00508880615234375, -0.005496978759765625, 0.06695556640625, 0.0277099609375, -0.0204925537109375, 0.0158843994140625, -0.006366729736328125, -0.0218505859375, 0.0032062530517578125, 0.01690673828125, 0.04302978515625, 0.01605224609375, 0.0184783935546875, 0.0112762451171875, -0.023101806640625, -0.022705078125, 0.009063720703125, -0.01242828369140625, -0.0260467529296875, -0.0239410400390625, -0.0159454345703125, -0.0115509033203125, 0.00592041015625, 0.084716796875, -0.0167694091796875, 0.0262451171875, -0.0292816162109375, -0.025360107421875, -0.0284576416015625, -0.0012674331665039062, 0.0038089752197265625, -0.0089111328125, -0.004364013671875, 0.0188140869140625, -0.037322998046875, -0.005451202392578125, -0.0266876220703125, -0.044769287109375, -0.001102447509765625, -0.01837158203125, 0.017059326171875, -0.007488250732421875, 0.0264434814453125, 0.0178375244140625, -0.0173187255859375, 0.0187225341796875, 0.03900146484375, 0.04266357421875, -0.0347900390625, -0.0133209228515625, -0.0204925537109375, 0.024078369140625, -0.0059356689453125, -0.048736572265625, 0.047760009765625, 0.01035308837890625, 0.0305633544921875, -0.01434326171875, 0.0020999908447265625, 0.0298309326171875, 0.00899505615234375, -0.00034165382385253906, 0.01593017578125, 0.037261962890625, 0.05584716796875, -0.0196075439453125, -0.0184783935546875, 0.12127685546875, -0.03143310546875, -0.02777099609375, 0.00823974609375, 0.057342529296875, 0.08978271484375, -0.0185699462890625, -0.02569580078125, 0.0225067138671875, -0.0282135009765625, -0.0143585205078125, 0.044891357421875, -0.017059326171875, -0.00982666015625, -0.032196044921875, 0.031341552734375, -0.003894805908203125, -0.036163330078125, 0.0025882720947265625, -0.0408935546875, 0.014984130859375, 0.0394287109375, 0.0224609375, 0.03253173828125, -0.06732177734375, 0.032135009765625, 0.046722412109375, 0.0828857421875, 0.01377105712890625, 0.050567626953125, 0.0005164146423339844, -0.02880859375, -0.0017871856689453125, -0.004199981689453125, -0.004901885986328125, 0.0050048828125, -0.0045318603515625, 0.050811767578125, -0.02032470703125, -0.0168609619140625, -0.056182861328125, -0.046051025390625, 0.004726409912109375, 0.0265350341796875, -0.0167999267578125, -0.002292633056640625, 0.002239227294921875, 0.076904296875, -0.02484130859375, 0.06103515625, -0.00783538818359375, 0.02923583984375, 0.0016508102416992188, -0.04339599609375, 0.03167724609375, -0.032440185546875, 0.03790283203125, 0.0634765625, -0.010223388671875, 0.00994873046875, 0.01428985595703125, 0.0155792236328125, 0.06451416015625, -0.03594970703125, -0.01702880859375, 0.038299560546875, -0.06951904296875, -0.0051422119140625, 0.0150299072265625, 0.0855712890625, -0.04815673828125, -0.04400634765625, -0.0173492431640625, 0.01971435546875, -0.040924072265625, -0.0215911865234375, 0.038665771484375, -0.031463623046875, -0.04315185546875, -0.006656646728515625, -0.035369873046875, 0.0002665519714355469, 0.007049560546875, -0.0216827392578125, 0.0218963623046875, -0.024993896484375, -0.07476806640625, -0.040435791015625, -0.07073974609375, 0.0198822021484375, -0.0095062255859375, 0.0184326171875, 0.00921630859375, 0.0304412841796875, 0.0023822784423828125, -0.05914306640625, -0.01357269287109375, 0.0003151893615722656, -0.0153961181640625, 0.0142822265625, 0.045074462890625, -0.00595855712890625, -0.024169921875, 0.0193939208984375, -0.0477294921875, 0.0235137939453125, -0.0345458984375, -0.0382080078125, -0.0159149169921875, 0.0100250244140625, 0.0238494873046875, 0.032379150390625, 0.01495361328125, 0.0229644775390625, 0.0521240234375, -0.034149169921875, -0.036590576171875, 0.006824493408203125, -0.041351318359375, 0.0408935546875, 0.04071044921875, -0.0306243896484375, -0.0206298828125, 0.0233917236328125, -0.019378662109375, -0.010528564453125, 0.0270843505859375, -0.00844573974609375, 0.0430908203125, -0.0213470458984375, -0.0416259765625, -0.00997161865234375, 0.00814056396484375, -0.00933837890625, 0.01473236083984375, -0.0010128021240234375, 0.028045654296875, 0.00621795654296875, -0.04302978515625, -0.06536865234375, -0.047454833984375, 0.066650390625, 0.0097198486328125, -0.01212310791015625, -0.0294647216796875, -0.04107666015625, -0.000002562999725341797, 0.09283447265625, -0.05511474609375, -0.032745361328125, -0.0372314453125, 0.018768310546875, -0.0122833251953125, -0.042083740234375, 0.0021381378173828125, -0.0156402587890625, -0.0675048828125, -0.009368896484375, -0.0345458984375, -0.016082763671875, -0.003131866455078125, 0.00516510009765625, -0.0295257568359375, -0.03875732421875, 0.023406982421875, -0.01241302490234375, 0.0163726806640625, -0.01580810546875, -0.003810882568359375, -0.0206298828125, -0.00646209716796875, -0.0263671875, 0.02099609375, -0.0155029296875, 0.00783538818359375, 0.007633209228515625, 0.0303802490234375, -0.028228759765625, -0.0029468536376953125, 0.026123046875, 0.0004017353057861328, -0.01324462890625, 0.0095367431640625, 0.00812530517578125, 0.012939453125, 0.009918212890625, 0.005062103271484375, -0.020782470703125, -0.015716552734375, -0.0265655517578125, 0.0021495819091796875, 0.03118896484375, -0.01824951171875, 0.0036029815673828125, -0.00989532470703125, 0.01103973388671875, -0.0249786376953125, -0.017333984375, -0.0028247833251953125, 0.00011736154556274414, 0.003467559814453125, 0.004909515380859375, -0.006084442138671875, -0.011871337890625, 0.0433349609375, 0.037994384765625, -0.040618896484375, 0.006618499755859375, 0.034332275390625, 0.0303192138671875, -0.0287322998046875, -0.060577392578125, 0.0118255615234375, 0.05426025390625, 0.04034423828125, 0.0052947998046875, -0.0046844482421875, -0.05340576171875, 0.086181640625, 0.034149169921875, 0.0178985595703125, -0.015625, 0.0229644775390625, 0.0032405853271484375, -0.0116119384765625, 0.012847900390625, 0.00298309326171875, 0.02642822265625, -0.00701904296875, -0.037017822265625, -0.0007762908935546875, 0.0223388671875, 0.02093505859375, -0.037109375, 0.053009033203125, -0.001373291015625, -0.034454345703125, 0.0201263427734375, 0.026824951171875, -0.0273895263671875, 0.01406097412109375, -0.0053253173828125, -0.0210418701171875, -0.0122528076171875, 0.0010423660278320312, 0.007568359375, -0.016143798828125, 0.003955841064453125, 0.01308441162109375, 0.018280029296875, -0.0088348388671875, 0.01824951171875, -0.005279541015625, 0.03961181640625, -0.016448974609375, -0.048858642578125, 0.000274658203125, -0.0035858154296875, 0.0291900634765625, 0.020172119140625, -0.0224151611328125, -0.004146575927734375, 0.014007568359375, -0.00714111328125, 0.011810302734375, -0.0231781005859375, 0.008056640625, -0.0292510986328125, -0.03253173828125, -0.01158905029296875, -0.0180206298828125, 0.008148193359375, 0.02398681640625, -0.046722412109375, 0.01546478271484375, -0.00530242919921875, 0.016082763671875, -0.0222015380859375, 0.03204345703125, -0.0015850067138671875, -0.01473236083984375, 0.01611328125, -0.0160980224609375, 0.032745361328125, -0.025787353515625, -0.006198883056640625, 0.0259246826171875, 0.06524658203125, -0.0345458984375, -0.0297698974609375, 0.01020050048828125, -0.058380126953125, 0.01184844970703125, -0.00841522216796875, 0.021697998046875, -0.02227783203125, 0.03314208984375, 0.03271484375, -0.0196533203125, -0.026824951171875, 0.0016279220581054688, 0.00803375244140625, -0.0206756591796875, 0.007843017578125, -0.0303802490234375, 0.0022716522216796875, -0.0169525146484375, -0.00678253173828125, 0.0034732818603515625, 0.0128326416015625, 0.005443572998046875, -0.0301361083984375, -0.042999267578125, -0.00797271728515625, -0.0012264251708984375, 0.068359375, -0.04132080078125, 0.0160064697265625, -0.032501220703125, 0.032867431640625, -0.06512451171875, 0.024078369140625, 0.029754638671875, 0.0364990234375, -0.01483917236328125, 0.0013513565063476562, -0.03662109375, -0.01244354248046875, 0.00930023193359375, -0.01519775390625, -0.0232086181640625, 0.0019779205322265625, -0.008941650390625, 0.003452301025390625, -0.00598907470703125, -0.006412506103515625, 0.0206146240234375, 0.0291595458984375, -0.0169830322265625, 0.0050506591796875, -0.042083740234375, 0.0389404296875, 0.05078125, 0.00803375244140625, 0.0167083740234375, 0.040374755859375, 0.0194549560546875, -0.0304107666015625, -0.0005311965942382812, -0.0615234375, -0.016632080078125, -0.01444244384765625, -0.0158843994140625, 0.01500701904296875, -0.001735687255859375, 0.01049041748046875, 0.015899658203125, -0.0322265625, -0.0033321380615234375, -0.0136871337890625, 0.0120086669921875, -0.0080413818359375, -0.044464111328125, 0.0262603759765625, 0.00235748291015625, 0.0252532958984375, -0.005001068115234375, -0.00788116455078125, 0.005218505859375, 0.005767822265625, -0.0039043426513671875, 0.0114288330078125, 0.0040130615234375, -0.00788116455078125, 0.018798828125, -0.002231597900390625, 0.0298309326171875, 0.02532958984375, 0.028228759765625, 0.007030487060546875, 0.01197052001953125, -0.018402099609375, -0.01337432861328125, 0.051422119140625, 0.0093841552734375, -0.00835418701171875, 0.0455322265625, -0.0254669189453125, -0.006549835205078125, 0.017578125, 0.024932861328125, -0.04644775390625, 0.0166015625, 0.014923095703125, 0.005771636962890625, -0.023834228515625, 0.0009374618530273438, -0.01531982421875, -0.0433349609375, 0.05078125, 0.006435394287109375, 0.008270263671875, 0.03277587890625, -0.014556884765625, -0.030792236328125, 0.0037899017333984375, 0.0181427001953125, 0.01175689697265625, -0.0440673828125, 0.0148468017578125, 0.016021728515625, 0.0060577392578125, -0.06280517578125, 0.034088134765625, 0.004192352294921875, 0.018402099609375, -0.027099609375, 0.06378173828125, 0.02911376953125, 0.0160369873046875, -0.0013818740844726562, -0.01239776611328125, -0.04522705078125, 0.048858642578125, -0.055755615234375, 0.0413818359375, 0.031036376953125, -0.086669921875, -0.04010009765625, -0.0185699462890625, 0.048187255859375, 0.048004150390625, -0.039031982421875, 0.041107177734375, -0.0236053466796875, -0.036376953125, -0.006633758544921875, -0.0562744140625, 0.064453125, -0.000736236572265625, -0.01511383056640625, 0.025970458984375, 0.0029087066650390625, -0.03289794921875, -0.021636962890625, 0.038970947265625, -0.043853759765625, 0.0306549072265625, 0.00119781494140625, 0.042816162109375, -0.0307769775390625, -0.011383056640625, -0.0692138671875, 0.1121826171875, 0.022430419921875, 0.0106964111328125, 0.00803375244140625, 0.0423583984375, -0.06878662109375, -0.005069732666015625, -0.03948974609375, 0.058013916015625, 0.007110595703125, 0.0129852294921875, -0.031646728515625, 0.0068817138671875, -0.005443572998046875, 0.02325439453125, 0.002223968505859375, -0.0113525390625, 0.0202178955078125, -0.02166748046875, 0.046234130859375, 0.0732421875, 0.02728271484375, -0.0225067138671875, 0.025726318359375, 0.0263214111328125, 0.023345947265625, -0.01519012451171875, 0.042083740234375, -0.054229736328125, -0.0028896331787109375, 0.054046630859375, 0.0064697265625, -0.012542724609375, 0.0284881591796875, -0.01399993896484375, -0.06103515625, 0.00534820556640625, 0.041015625, -0.04144287109375, -0.0029697418212890625, 0.07794189453125, 0.0390625, -0.032958984375, -0.049560546875, -0.039215087890625, 0.03570556640625, -0.0015039443969726562, 0.080810546875, 0.039093017578125, 0.035125732421875, 0.05914306640625, -0.006832122802734375, 0.049774169921875, 0.0170745849609375, -0.0458984375, 0.0264434814453125, -0.024139404296875, 0.002162933349609375, -0.11083984375, -0.0665283203125, 0.034027099609375, 0.04351806640625, -0.01099395751953125, -0.02288818359375, 0.0002884864807128906, 0.0118865966796875, 0.0096435546875, 0.01751708984375, 0.0254974365234375, 0.08734130859375, 0.086181640625, -0.01293182373046875, -0.0291748046875, 0.0305328369140625, 0.0257110595703125, 0.007480621337890625, -0.0036487579345703125, -0.00450897216796875, -0.038970947265625, -0.0240325927734375, 0.0189666748046875, 0.0301361083984375, 0.0243072509765625, -0.00756072998046875, 0.04217529296875, -0.002422332763671875, 0.0034160614013671875, 0.0261077880859375, 0.01519012451171875, -0.001110076904296875, -0.03753662109375, 0.036163330078125, 0.01088714599609375, -0.0197296142578125, -0.0167999267578125, -0.00939178466796875, -0.0019741058349609375, 0.0222320556640625, 0.034027099609375, -0.03802490234375, -0.027252197265625, 0.00969696044921875, -0.0291748046875, 0.01654052734375, 0.00139617919921875, -0.00357818603515625, 0.0032329559326171875, -0.0157928466796875, -0.0085906982421875, 0.04705810546875, 0.01291656494140625, 0.006534576416015625, 0.0406494140625, 0.0142822265625, 0.006229400634765625, -0.006763458251953125, -0.0184173583984375, 0.0017042160034179688, 0.01467132568359375, -0.126953125, 0.021453857421875, -0.04949951171875, -0.09942626953125, 0.03741455078125, 0.053253173828125, -0.034027099609375, 0.011688232421875, 0.01119232177734375, -0.00751495361328125, -0.0174102783203125, 0.006351470947265625, 0.03631591796875, 0.036712646484375, 0.00977325439453125, 0.034332275390625, -0.0740966796875, -0.0195770263671875, -0.055206298828125, 0.0312347412109375, -0.01171112060546875, 0.06890869140625, -0.0145111083984375, 0.038909912109375, 0.02105712890625, 0.0177154541015625, 0.00994873046875, -0.0124053955078125, 0.06756591796875, 0.0166015625, 0.0213165283203125, -0.0302734375, -0.04681396484375, 0.00885009765625, 0.054046630859375, -0.0186614990234375, 0.0290374755859375, -0.003803253173828125, 0.003559112548828125, -0.05780029296875, 0.0222625732421875, -0.00954437255859375, -0.0333251953125, -0.0400390625, -0.02532958984375, 0.058319091796875, 0.08001708984375, 0.039764404296875, 0.0185546875, 0.041168212890625, -0.0183258056640625, 0.00678253173828125, 0.00034546852111816406, 0.005985260009765625, 0.04833984375, 0.0179595947265625, -0.040130615234375, 0.0188751220703125, -0.011627197265625, -0.011383056640625, 0.0158233642578125, 0.0382080078125, 0.01322174072265625, -0.041015625, -0.007465362548828125, -0.032867431640625, 0.02001953125, -0.01568603515625, 0.00013709068298339844, -0.016693115234375, 0.02301025390625, -0.01373291015625, -0.0299072265625, -0.0175018310546875, -0.031219482421875, -0.048004150390625, -0.01120758056640625, -0.045135498046875, -0.0828857421875, -0.017333984375, -0.0268096923828125, 0.0157623291015625, 0.00496673583984375, -0.0130157470703125, 0.0157928466796875, -0.0304718017578125, -0.0224456787109375, -0.007610321044921875, -0.0091705322265625, 0.0160369873046875, 0.0372314453125, -0.020782470703125, -0.0231781005859375, -0.041168212890625, 0.004547119140625, -0.037445068359375, 0.0120697021484375, 0.044952392578125, -0.026336669921875, -0.007373809814453125, 0.036407470703125, 0.017974853515625, 0.08026123046875, -0.0164947509765625, -0.004291534423828125, 0.06280517578125, -0.0333251953125, -0.0176544189453125, -0.039581298828125, 0.000946044921875, -0.060516357421875, -0.002685546875, 0.0009512901306152344, -0.01461029052734375, 0.00014674663543701172, -0.049407958984375, -0.092041015625, 0.0221099853515625, -0.0225677490234375, -0.04046630859375, -0.016998291015625, -0.0236358642578125, 0.0063323974609375, -0.0374755859375, -0.0249176025390625, 0.034332275390625, -0.0457763671875, 0.004611968994140625, 0.002044677734375, 0.0157928466796875, 0.0433349609375, -0.0142974853515625, -0.02691650390625, 0.000324249267578125, -0.00926971435546875, -0.0214996337890625, 0.0037097930908203125, -0.00270843505859375, 0.019927978515625, 0.035797119140625, -0.0270538330078125, -0.00418853759765625, 0.0016698837280273438, -0.0291290283203125, -0.03387451171875, -0.0249786376953125, 0.00856781005859375, -0.01541900634765625, 0.07269287109375, 0.01039886474609375, 0.003482818603515625, -0.0167083740234375, -0.02581787109375, 0.00875091552734375, -0.050933837890625, -0.02276611328125, 0.04302978515625, -0.0926513671875, -0.01435089111328125, -0.005950927734375, -0.02996826171875, 0.01502227783203125, -0.06390380859375, -0.053924560546875, -0.00946807861328125, -0.081787109375, 0.021270751953125, -0.0208282470703125, 0.0109710693359375, 0.031951904296875, -0.0357666015625, -0.0106353759765625, -0.037200927734375, 0.0127410888671875, -0.01406097412109375, -0.05316162109375, 0.00159454345703125, 0.00627899169921875, 0.00835418701171875, -0.0033111572265625, 0.038177490234375, -0.0226898193359375, 0.036834716796875, 0.0005435943603515625, 0.02874755859375, 0.0069122314453125, -0.006412506103515625, 0.01690673828125, -0.0026645660400390625, 0.0131378173828125, -0.037261962890625, -0.02618408203125, -0.01448822021484375, 0.041290283203125, 0.00010496377944946289, 0.027862548828125, -0.032501220703125, 0.0019016265869140625, -0.0150299072265625, -0.026397705078125, -0.0017309188842773438, 0.035064697265625, -0.0278472900390625, -0.02142333984375, -0.0010833740234375, 0.0007429122924804688, 0.0016622543334960938, -0.00894927978515625 ]
e0fae959226c36eb32599d49f975ea99c8eb8306
Wordpress Stackexchange Q: Replacing all attachment links in post with media file link I'm working on a Wordpress site, where all images inside posts are linking to the corresponding attachment pages. I want to use a lightbox but obviously this would require changing all the links back to the media files directly (e.g. xyz.jpg). The site has a significant number of posts and images so it would be impossible to do this manually. Does anyone know of solution that would simply replace - in bulk - all of the image links to link to the media file, instead of the attachment page? A: I found a nice snippet at this site for your functions.php that does the trick: add_shortcode( 'gallery', 'file_gallery_shortcode' ); function file_gallery_shortcode( $atts ) { $atts['link'] = 'file'; return gallery_shortcode( $atts ); } I'd actually been looking unsuccessfully for the same thing, so I'm glad you asked.
Q: Replacing all attachment links in post with media file link I'm working on a Wordpress site, where all images inside posts are linking to the corresponding attachment pages. I want to use a lightbox but obviously this would require changing all the links back to the media files directly (e.g. xyz.jpg). The site has a significant number of posts and images so it would be impossible to do this manually. Does anyone know of solution that would simply replace - in bulk - all of the image links to link to the media file, instead of the attachment page? A: I found a nice snippet at this site for your functions.php that does the trick: add_shortcode( 'gallery', 'file_gallery_shortcode' ); function file_gallery_shortcode( $atts ) { $atts['link'] = 'file'; return gallery_shortcode( $atts ); } I'd actually been looking unsuccessfully for the same thing, so I'm glad you asked.
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:444344", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141570" }
[ 0.05810546875, -0.0281524658203125, 0.021026611328125, -0.0163421630859375, -0.01082611083984375, -0.034820556640625, 0.0821533203125, -0.0027256011962890625, 0.01082611083984375, 0.033050537109375, 0.00237274169921875, 0.00655364990234375, 0.0038280487060546875, -0.0253448486328125, -0.01306915283203125, -0.005115509033203125, 0.030792236328125, -0.015167236328125, 0.0295867919921875, -0.01416015625, 0.022064208984375, 0.0029811859130859375, 0.03851318359375, 0.0263519287109375, -0.01214599609375, 0.0255584716796875, 0.04107666015625, -0.047454833984375, -0.01294708251953125, -0.0220489501953125, -0.006610870361328125, 0.020843505859375, 0.043701171875, -0.01039886474609375, -0.050750732421875, 0.007534027099609375, -0.022674560546875, -0.014923095703125, -0.04498291015625, 0.0266265869140625, 0.016754150390625, 0.00046133995056152344, 0.04034423828125, -0.0179443359375, -0.0026187896728515625, -0.0105743408203125, 0.005245208740234375, -0.053680419921875, 0.037109375, -0.01959228515625, 0.003917694091796875, 0.037567138671875, 0.0257415771484375, -0.0015239715576171875, -0.0253143310546875, -0.00372314453125, -0.0276031494140625, -0.0015621185302734375, 0.0310516357421875, -0.0178070068359375, -0.0232391357421875, -0.0236358642578125, 0.0191802978515625, -0.0083465576171875, -0.010040283203125, -0.0025997161865234375, -0.045166015625, 0.005847930908203125, -0.037445068359375, -0.00949859619140625, 0.04473876953125, -0.053192138671875, -0.01476287841796875, -0.0305633544921875, 0.0094757080078125, 0.050079345703125, -0.02655029296875, 0.01512908935546875, 0.00917816162109375, 0.0011148452758789062, 0.03302001953125, 0.004039764404296875, 0.033477783203125, -0.0052032470703125, 0.0030307769775390625, -0.0119171142578125, -0.00293731689453125, -0.0157318115234375, -0.018829345703125, -0.0210113525390625, -0.02020263671875, 0.0004050731658935547, 0.0198974609375, -0.0374755859375, -0.0526123046875, -0.02569580078125, -0.01409912109375, -0.0074005126953125, 0.007068634033203125, 0.0355224609375, -0.014190673828125, -0.0227813720703125, 0.0194854736328125, -0.0306396484375, 0.0051422119140625, 0.03973388671875, 0.0047149658203125, -0.032196044921875, 0.00897979736328125, 0.010986328125, -0.01776123046875, 0.0357666015625, -0.0080413818359375, 0.0277099609375, -0.01019287109375, 0.015899658203125, -0.03802490234375, 0.041717529296875, -0.031585693359375, 0.051727294921875, -0.01215362548828125, 0.00890350341796875, -0.0045928955078125, -0.00476837158203125, 0.000335693359375, -0.006866455078125, -0.010986328125, -0.001918792724609375, 0.043212890625, 0.018280029296875, -0.0203399658203125, 0.0106658935546875, 0.03839111328125, -0.0017652511596679688, 0.00893402099609375, -0.016998291015625, -0.033294677734375, -0.037567138671875, 0.0173492431640625, 0.0070343017578125, 0.043701171875, -0.05224609375, 0.0112152099609375, 0.0538330078125, 0.0294342041015625, 0.035369873046875, 0.0230255126953125, 0.0026721954345703125, -0.01453399658203125, -0.0682373046875, 0.043426513671875, -0.0185089111328125, 0.044586181640625, 0.01873779296875, -0.01480865478515625, -0.0024261474609375, 0.08587646484375, -0.03973388671875, -0.018310546875, -0.075439453125, 0.03729248046875, 0.027099609375, 0.003063201904296875, 0.0006284713745117188, 0.0066986083984375, -0.0640869140625, -0.0240631103515625, -0.0007128715515136719, 0.030914306640625, 0.07159423828125, 0.010833740234375, -0.06402587890625, -0.036834716796875, 0.0167388916015625, -0.010162353515625, 0.04376220703125, 0.003658294677734375, 0.03179931640625, 0.03204345703125, 0.04852294921875, 0.0235748291015625, -0.020294189453125, 0.10009765625, -0.034393310546875, -0.028533935546875, -0.0002777576446533203, 0.0108489990234375, 0.0377197265625, 0.0166015625, 0.033294677734375, 0.0003943443298339844, 0.01788330078125, 0.0148468017578125, 0.0154571533203125, 0.0203704833984375, -0.0229644775390625, 0.01146697998046875, 0.010223388671875, 0.00682830810546875, -0.026641845703125, -0.01250457763671875, 0.01131439208984375, -0.0179290771484375, 0.027130126953125, -0.0167083740234375, 0.00931549072265625, -0.006481170654296875, 0.009246826171875, -0.07647705078125, 0.017913818359375, 0.047576904296875, 0.01497650146484375, -0.04058837890625, -0.00595855712890625, 0.045806884765625, 0.0201416015625, 0.003978729248046875, -0.0015716552734375, -0.007717132568359375, 0.0452880859375, -0.048126220703125, -0.004459381103515625, -0.04229736328125, 0.01291656494140625, 0.0239105224609375, 0.01024627685546875, -0.032012939453125, -0.0126953125, -0.034820556640625, 0.0118408203125, -0.058197021484375, 0.059661865234375, 0.007110595703125, -0.028045654296875, -0.051544189453125, -0.005218505859375, -0.00933837890625, -0.022979736328125, 0.00223541259765625, 0.048919677734375, 0.0391845703125, 0.00508880615234375, 0.0030193328857421875, 0.00606536865234375, 0.06695556640625, 0.03863525390625, 0.0285491943359375, -0.019866943359375, -0.006740570068359375, 0.036651611328125, -0.006252288818359375, 0.018402099609375, 0.0005779266357421875, -0.0638427734375, 0.00543212890625, 0.042449951171875, 0.0418701171875, 0.0131683349609375, -0.00283050537109375, 0.034210205078125, -0.006275177001953125, 0.041229248046875, -0.02606201171875, 0.0080718994140625, 0.0161590576171875, 0.005584716796875, 0.01788330078125, 0.00250244140625, -0.048004150390625, 0.0245819091796875, 0.0160675048828125, 0.002384185791015625, 0.0034847259521484375, 0.03546142578125, 0.0271453857421875, 0.042144775390625, -0.01971435546875, -0.01161956787109375, 0.00861358642578125, 0.03973388671875, -0.03192138671875, -0.0157623291015625, 0.00933837890625, -0.01081085205078125, -0.0004425048828125, -0.041168212890625, 0.039337158203125, -0.0216522216796875, -0.0192108154296875, -0.0292510986328125, -0.01319122314453125, 0.04046630859375, 0.005619049072265625, 0.0306549072265625, 0.034820556640625, -0.01261138916015625, 0.020751953125, -0.06072998046875, 0.058013916015625, -0.042449951171875, 0.0665283203125, 0.07958984375, -0.0180206298828125, 0.039520263671875, -0.0237579345703125, 0.03192138671875, -0.0313720703125, 0.017547607421875, 0.0017976760864257812, -0.046478271484375, 0.0250701904296875, -0.011749267578125, -0.012542724609375, 0.01776123046875, -0.07757568359375, -0.04864501953125, -0.047332763671875, -0.029296875, -0.09649658203125, -0.040008544921875, 0.0386962890625, -0.053741455078125, 0.01517486572265625, 0.01739501953125, -0.029693603515625, -0.0289459228515625, 0.0594482421875, -0.00009894371032714844, -0.0015687942504882812, 0.005611419677734375, 0.00038814544677734375, -0.0009136199951171875, -0.03240966796875, -0.01059722900390625, -0.006038665771484375, 0.00274658203125, 0.00624847412109375, 0.0225067138671875, 0.00833892822265625, -0.0172271728515625, 0.0162811279296875, 0.04364013671875, 0.0023136138916015625, 0.004695892333984375, 0.03271484375, -0.039764404296875, -0.0311431884765625, 0.0018377304077148438, 0.046844482421875, 0.01207733154296875, -0.0256195068359375, 0.0172576904296875, -0.0009298324584960938, 0.0230712890625, 0.01739501953125, 0.019317626953125, 0.0023555755615234375, 0.0205841064453125, 0.03277587890625, -0.0205230712890625, 0.0232391357421875, -0.040435791015625, -0.0225677490234375, 0.0185089111328125, 0.007785797119140625, -0.004932403564453125, -0.0175628662109375, 0.0160064697265625, 0.01432037353515625, 0.0172882080078125, 0.034271240234375, -0.00955963134765625, -0.0007405281066894531, -0.011627197265625, 0.00815582275390625, -0.03546142578125, 0.0225830078125, -0.0030364990234375, 0.0184326171875, 0.004070281982421875, -0.007389068603515625, -0.0280303955078125, 0.03253173828125, -0.032958984375, -0.044708251953125, 0.053955078125, -0.039520263671875, 0.022705078125, -0.07159423828125, -0.0252227783203125, -0.040618896484375, 0.0621337890625, -0.05780029296875, -0.018646240234375, -0.00707244873046875, 0.0128936767578125, -0.0021381378173828125, -0.041351318359375, -0.011962890625, -0.01349639892578125, -0.049530029296875, 0.0223846435546875, 0.022216796875, -0.014129638671875, -0.00814056396484375, 0.0157470703125, -0.01364898681640625, -0.0273895263671875, 0.0254974365234375, 0.0428466796875, -0.00861358642578125, 0.004154205322265625, -0.0235748291015625, 0.01155853271484375, -0.023284912109375, 0.0150604248046875, -0.1112060546875, -0.008148193359375, -0.018280029296875, 0.0811767578125, 0.00908660888671875, -0.045135498046875, -0.0184478759765625, 0.054107666015625, 0.0241851806640625, -0.004146575927734375, 0.01338958740234375, -0.034912109375, 0.0180816650390625, 0.0323486328125, -0.002132415771484375, -0.00330352783203125, -0.0018072128295898438, -0.047332763671875, -0.043609619140625, -0.021697998046875, -0.03668212890625, 0.0064239501953125, -0.0202484130859375, -0.004444122314453125, -0.033355712890625, -0.03857421875, 0.006435394287109375, 0.0701904296875, -0.00296783447265625, 0.005489349365234375, -0.077392578125, -0.047607421875, -0.0035762786865234375, -0.004047393798828125, -0.04425048828125, 0.0212860107421875, 0.01151275634765625, 0.01678466796875, -0.005458831787109375, -0.063720703125, 0.0145416259765625, 0.041778564453125, 0.0029010772705078125, 0.0260009765625, 0.00865936279296875, -0.028656005859375, 0.058074951171875, 0.0146636962890625, 0.0219573974609375, -0.0572509765625, 0.0740966796875, 0.00701904296875, 0.0287017822265625, 0.010650634765625, 0.0212554931640625, 0.006710052490234375, -0.01629638671875, 0.0028133392333984375, -0.0108795166015625, -0.014617919921875, 0.02886962890625, 0.050628662109375, -0.0227508544921875, -0.031707763671875, -0.0273284912109375, -0.01282501220703125, 0.0309906005859375, 0.04681396484375, 0.05096435546875, -0.005847930908203125, 0.047821044921875, 0.06231689453125, 0.00531005859375, 0.004550933837890625, 0.026519775390625, -0.01474761962890625, 0.04522705078125, -0.0180816650390625, -0.022186279296875, -0.0157012939453125, 0.01323699951171875, -0.0623779296875, 0.0227203369140625, -0.0178070068359375, -0.018463134765625, 0.021209716796875, -0.055450439453125, -0.0155181884765625, -0.002532958984375, 0.037628173828125, -0.0014324188232421875, -0.020233154296875, -0.026214599609375, -0.017425537109375, -0.020477294921875, -0.060028076171875, 0.037750244140625, 0.0031719207763671875, -0.015960693359375, 0.041259765625, -0.032958984375, -0.052642822265625, 0.0011167526245117188, 0.0191497802734375, 0.00423431396484375, 0.017425537109375, -0.0009083747863769531, 0.0214996337890625, 0.0167694091796875, -0.0181732177734375, -0.0031147003173828125, 0.0194549560546875, -0.034759521484375, 0.015869140625, 0.01332855224609375, 0.0555419921875, -0.0031375885009765625, -0.03265380859375, -0.0026721954345703125, -0.044830322265625, -0.0207366943359375, 0.029052734375, -0.01238250732421875, -0.042572021484375, -0.040924072265625, 0.01332855224609375, 0.04833984375, 0.0030918121337890625, -0.0222625732421875, 0.0009398460388183594, 0.00823211669921875, 0.0093841552734375, -0.043243408203125, -0.055816650390625, 0.035675048828125, 0.0543212890625, -0.0025787353515625, -0.04400634765625, -0.037811279296875, -0.0011472702026367188, 0.006687164306640625, -0.0191650390625, 0.00774383544921875, 0.05322265625, -0.012298583984375, 0.002414703369140625, -0.00559234619140625, -0.029083251953125, -0.0312042236328125, 0.00505828857421875, 0.038482666015625, 0.01342010498046875, -0.039764404296875, -0.0260162353515625, -0.003749847412109375, -0.0004940032958984375, 0.051361083984375, -0.0289154052734375, -0.0277862548828125, -0.0328369140625, 0.00798797607421875, 0.0325927734375, -0.004535675048828125, -0.01056671142578125, 0.020599365234375, 0.00933837890625, 0.0038299560546875, 0.04351806640625, 0.0243988037109375, -0.0207977294921875, 0.0008845329284667969, 0.0242156982421875, -0.003955841064453125, -0.0416259765625, -0.038848876953125, -0.0237884521484375, -0.0120697021484375, -0.039794921875, -0.01216888427734375, 0.04010009765625, -0.01543426513671875, 0.01175689697265625, -0.0054473876953125, 0.002407073974609375, 0.014068603515625, -0.011199951171875, -0.004436492919921875, -0.04217529296875, 0.034942626953125, -0.040863037109375, 0.039764404296875, -0.04241943359375, -0.01348876953125, 0.0233612060546875, -0.00046372413635253906, -0.0091094970703125, 0.0045623779296875, -0.006603240966796875, 0.0213623046875, 0.014007568359375, 0.012359619140625, 0.0120849609375, 0.0728759765625, -0.01316070556640625, 0.050506591796875, 0.03656005859375, 0.01195526123046875, 0.04681396484375, 0.038116455078125, 0.03350830078125, -0.0008130073547363281, 0.082763671875, 0.0095977783203125, -0.039031982421875, 0.01493072509765625, -0.056182861328125, 0.01496124267578125, -0.0009899139404296875, 0.02947998046875, -0.032745361328125, 0.0188446044921875, 0.00495147705078125, -0.0048980712890625, 0.030059814453125, -0.023284912109375, 0.001979827880859375, 0.0024204254150390625, 0.0149688720703125, -0.0184478759765625, -0.0421142578125, -0.0263214111328125, -0.00736236572265625, 0.01580810546875, -0.00814056396484375, 0.024505615234375, -0.017486572265625, -0.07562255859375, -0.047515869140625, 0.06854248046875, -0.033935546875, 0.0004432201385498047, -0.01024627685546875, 0.001125335693359375, -0.0272369384765625, -0.033905029296875, -0.00267791748046875, -0.03155517578125, -0.005283355712890625, -0.0255584716796875, 0.003398895263671875, 0.050140380859375, 0.0255126953125, -0.00037932395935058594, -0.001674652099609375, -0.01085662841796875, 0.0309295654296875, -0.005405426025390625, 0.002056121826171875, 0.01250457763671875, 0.01617431640625, -0.0190277099609375, 0.0020751953125, -0.0418701171875, 0.037872314453125, -0.031005859375, -0.0251922607421875, 0.09368896484375, -0.062347412109375, -0.00527191162109375, 0.01380157470703125, 0.044158935546875, -0.01512908935546875, 0.007450103759765625, 0.005153656005859375, -0.0633544921875, -0.0423583984375, 0.0209808349609375, -0.057586669921875, -0.01416015625, -0.021209716796875, -0.061309814453125, 0.09283447265625, -0.0154571533203125, 0.05450439453125, 0.0190277099609375, 0.0270843505859375, -0.0177001953125, 0.01885986328125, -0.0043487548828125, 0.0312042236328125, 0.01232147216796875, 0.0012378692626953125, -0.01319122314453125, -0.01043701171875, 0.00829315185546875, 0.03826904296875, 0.046905517578125, 0.017913818359375, -0.046630859375, -0.01214599609375, 0.043792724609375, 0.02740478515625, -0.002872467041015625, 0.05548095703125, -0.026336669921875, -0.0013895034790039062, 0.0112152099609375, -0.0382080078125, 0.01218414306640625, -0.00742340087890625, -0.03594970703125, -0.0037384033203125, 0.00528717041015625, 0.00934600830078125, -0.0015554428100585938, 0.0309906005859375, -0.060546875, 0.0019292831420898438, 0.041778564453125, -0.03179931640625, 0.0265045166015625, 0.0272674560546875, 0.0263214111328125, -0.00734710693359375, -0.017364501953125, -0.006969451904296875, 0.037261962890625, -0.0119476318359375, 0.012481689453125, 0.006656646728515625, 0.006275177001953125, 0.052001953125, -0.029052734375, -0.0120697021484375, 0.0000762939453125, 0.0133056640625, 0.01776123046875, 0.0100555419921875, 0.018218994140625, -0.04742431640625, -0.0234222412109375, 0.06756591796875, 0.03863525390625, -0.02496337890625, -0.0257720947265625, 0.016876220703125, -0.004055023193359375, -0.012054443359375, -0.0114593505859375, 0.012847900390625, -0.07000732421875, -0.04461669921875, -0.015655517578125, -0.00039458274841308594, 0.0196685791015625, 0.044952392578125, -0.0087432861328125, -0.023895263671875, -0.033599853515625, -0.0124053955078125, -0.03863525390625, 0.060089111328125, 0.03302001953125, 0.007503509521484375, -0.04400634765625, 0.0458984375, 0.0111236572265625, 0.0246429443359375, -0.00836181640625, 0.0023441314697265625, -0.03411865234375, 0.0281219482421875, -0.01837158203125, -0.0141448974609375, -0.01076507568359375, 0.0308074951171875, 0.0343017578125, 0.056793212890625, 0.055084228515625, 0.033050537109375, 0.0231170654296875, 0.00733184814453125, 0.02655029296875, -0.017578125, 0.03778076171875, -0.0229949951171875, 0.0301513671875, 0.028594970703125, -0.01422882080078125, -0.02484130859375, -0.021453857421875, 0.077392578125, -0.03485107421875, 0.08038330078125, -0.01175689697265625, 0.0013408660888671875, 0.048126220703125, -0.01004791259765625, 0.07708740234375, 0.01824951171875, -0.0667724609375, -0.0242919921875, -0.005039215087890625, -0.0430908203125, 0.0271453857421875, 0.04095458984375, -0.0489501953125, 0.0273284912109375, -0.0546875, 0.01230621337890625, 0.0110931396484375, -0.0271759033203125, -0.0160064697265625, 0.004764556884765625, 0.0114898681640625, -0.015350341796875, -0.03594970703125, -0.0183868408203125, 0.000965118408203125, 0.0249481201171875, -0.0033245086669921875, 0.0745849609375, -0.00508880615234375, 0.0116119384765625, -0.0144805908203125, 0.00157928466796875, -0.039825439453125, 0.0085296630859375, -0.03997802734375, -0.03240966796875, 0.0037021636962890625, 0.0131988525390625, 0.0716552734375, 0.0372314453125, 0.0184173583984375, -0.0308837890625, -0.0108642578125, -0.0164337158203125, 0.0045928955078125, 0.0250701904296875, 0.0263671875, -0.02435302734375, -0.0178985595703125, -0.03912353515625, -0.0211334228515625, 0.024078369140625, -0.00876617431640625, -0.0261383056640625, 0.035064697265625, 0.0655517578125, 0.0148468017578125, 0.027313232421875, -0.01436614990234375, 0.0634765625, 0.044586181640625, -0.0012617111206054688, -0.038421630859375, 0.0118408203125, -0.00437164306640625, -0.0081787109375, 0.0244903564453125, 0.0263214111328125, 0.0186767578125, -0.053131103515625, -0.006725311279296875, 0.033172607421875, 0.04144287109375, 0.01134490966796875, 0.0119476318359375, 0.01371002197265625, -0.0289764404296875, -0.0191192626953125, 0.0093841552734375, 0.0039520263671875, -0.0186309814453125, -0.020751953125, 0.01873779296875, -0.01444244384765625, 0.01251220703125, -0.0400390625, -0.0292205810546875, 0.0374755859375, 0.022216796875, -0.06982421875, 0.0035400390625, 0.0193939208984375, 0.03814697265625, -0.01528167724609375, -0.02197265625, -0.0245819091796875, 0.01690673828125, -0.0255889892578125, -0.0791015625, -0.0667724609375, 0.05267333984375, -0.07464599609375, 0.058013916015625, 0.06097412109375, -0.04083251953125, 0.004894256591796875, 0.05108642578125, 0.042755126953125, 0.11663818359375, -0.0018787384033203125, -0.057861328125, -0.038848876953125, 0.0106964111328125, 0.046722412109375, -0.0020732879638671875, -0.002593994140625, -0.006282806396484375, 0.00621795654296875, 0.004177093505859375, -0.03387451171875, -0.0247955322265625, -0.04705810546875, -0.06658935546875, 0.04315185546875, 0.0010824203491210938, -0.036529541015625, -0.07763671875, 0.0072174072265625, 0.0017108917236328125, 0.055816650390625, -0.010162353515625, -0.0110321044921875, -0.03155517578125, 0.0340576171875, 0.00804901123046875, 0.026092529296875, 0.0031299591064453125, 0.0325927734375, -0.00952911376953125, 0.0171356201171875, -0.0025424957275390625, -0.00983428955078125, 0.0120391845703125, -0.006984710693359375, 0.03717041015625, 0.04766845703125, -0.0178070068359375, -0.01494598388671875, -0.005298614501953125, -0.05035400390625, 0.01418304443359375, 0.00101470947265625, -0.037567138671875, -0.0198974609375, 0.029815673828125, 0.0279998779296875, 0.0225067138671875, -0.004428863525390625, 0.04559326171875, 0.01544952392578125, -0.0033969879150390625, -0.01071929931640625, -0.012420654296875, -0.00962066650390625, -0.016021728515625, -0.038482666015625, -0.0185089111328125, -0.0297393798828125, -0.01302337646484375, -0.041900634765625, -0.007843017578125, -0.02117919921875, -0.0036373138427734375, 0.0236968994140625, 0.060791015625, 0.0849609375, -0.043914794921875, 0.046356201171875, -0.00414276123046875, -0.0221099853515625, 0.0877685546875, -0.00745391845703125, 0.03436279296875, -0.008575439453125, -0.0169219970703125, 0.0013132095336914062, 0.036102294921875, -0.004608154296875, 0.002819061279296875, -0.042999267578125, -0.0122528076171875, 0.0343017578125, 0.004711151123046875, 0.03662109375, -0.00774383544921875, 0.038787841796875, 0.02398681640625, 0.03338623046875, -0.0382080078125, -0.001964569091796875, 0.0030765533447265625, -0.00849151611328125, -0.00553131103515625, 0.00823211669921875, 0.06549072265625, -0.050201416015625, -0.0006246566772460938, 0.01006317138671875, -0.042205810546875, -0.0248260498046875, -0.01139068603515625, -0.0225982666015625, -0.01100921630859375, -0.0016565322875976562 ]
459689dfbfb7d216252cbdd6330390a5621717e2
Wordpress Stackexchange Q: 3.9 breaks multisite I just updated to 3.9 and all my sites are now the main (first) site on the network. If I go to a subsite admin page the url will say that I am on my subsite but I am actually on the admin for the main site of the network. The admin bar will also show that the current site is the main network site, but the url says I should be on the subsite. I created a new testing environment with multi site and the same thing happens. If I create a new subsite it will always direct me to the main site, but the urls will show the subsite address. (front end and backend/admin). It seems like there is a major redirect issue happening. A: Probably this issue: Multisite subdirectory install breaks if network path has uppercase letters. https://core.trac.wordpress.org/ticket/27866
Q: 3.9 breaks multisite I just updated to 3.9 and all my sites are now the main (first) site on the network. If I go to a subsite admin page the url will say that I am on my subsite but I am actually on the admin for the main site of the network. The admin bar will also show that the current site is the main network site, but the url says I should be on the subsite. I created a new testing environment with multi site and the same thing happens. If I create a new subsite it will always direct me to the main site, but the urls will show the subsite address. (front end and backend/admin). It seems like there is a major redirect issue happening. A: Probably this issue: Multisite subdirectory install breaks if network path has uppercase letters. https://core.trac.wordpress.org/ticket/27866
wordpress
{ "language": "en", "length": 145, "provenance": "stackexchange_00019.jsonl.gz:444346", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141578" }
[ 0.019317626953125, -0.058990478515625, -0.005138397216796875, 0.00789642333984375, -0.0499267578125, -0.037872314453125, 0.01459503173828125, -0.007404327392578125, 0.0178680419921875, 0.0201568603515625, -0.003986358642578125, 0.00890350341796875, 0.025604248046875, -0.0237579345703125, 0.0191192626953125, 0.00586700439453125, 0.040313720703125, -0.030120849609375, -0.0158538818359375, -0.006374359130859375, -0.0122222900390625, 0.0178680419921875, -0.01922607421875, 0.06793212890625, -0.0122833251953125, 0.0238494873046875, 0.0313720703125, -0.01535797119140625, -0.0234832763671875, -0.0196685791015625, 0.004764556884765625, 0.02490234375, 0.03948974609375, 0.0050048828125, -0.0255584716796875, -0.0164031982421875, 0.02593994140625, -0.00927734375, -0.0018091201782226562, 0.012115478515625, -0.00743865966796875, 0.0138397216796875, 0.064453125, -0.0091705322265625, 0.0285491943359375, -0.0675048828125, 0.0413818359375, -0.05999755859375, 0.0511474609375, -0.0046234130859375, -0.015380859375, 0.01751708984375, -0.0140380859375, -0.0181732177734375, -0.01158905029296875, 0.012237548828125, 0.0029048919677734375, -0.0221405029296875, 0.0069427490234375, 0.002872467041015625, 0.0051422119140625, 0.0160980224609375, 0.018951416015625, -0.0019311904907226562, -0.0107879638671875, -0.012359619140625, 0.0274505615234375, -0.005039215087890625, -0.0462646484375, -0.010986328125, 0.036865234375, -0.0024776458740234375, 0.04949951171875, -0.003101348876953125, -0.0152740478515625, -0.049957275390625, 0.0261077880859375, 0.0162353515625, 0.03509521484375, -0.041595458984375, 0.018707275390625, 0.02288818359375, -0.0277099609375, -0.034912109375, 0.0268707275390625, 0.0168914794921875, -0.005809783935546875, -0.0264434814453125, -0.0095367431640625, 0.0235748291015625, -0.0113525390625, -0.033721923828125, 0.0211639404296875, 0.028472900390625, 0.0099029541015625, -0.041015625, 0.0027008056640625, 0.0697021484375, -0.03424072265625, 0.011077880859375, -0.06494140625, 0.0019588470458984375, -0.043365478515625, -0.033294677734375, 0.0119171142578125, 0.01474761962890625, 0.02288818359375, -0.034332275390625, 0.03118896484375, 0.0019083023071289062, -0.0210418701171875, 0.080078125, -0.033782958984375, -0.0214691162109375, -0.035125732421875, 0.0282440185546875, -0.035980224609375, -0.0178070068359375, -0.01445770263671875, 0.01132965087890625, -0.00705718994140625, 0.029815673828125, -0.03509521484375, -0.03173828125, 0.0287933349609375, 0.0026035308837890625, 0.0053863525390625, -0.01751708984375, -0.033050537109375, 0.0011034011840820312, -0.0269317626953125, 0.03948974609375, 0.0264434814453125, -0.00673675537109375, -0.021881103515625, 0.000057697296142578125, 0.007640838623046875, 0.03204345703125, 0.0006361007690429688, 0.006801605224609375, 0.0133514404296875, -0.036041259765625, -0.0199737548828125, 0.01258087158203125, -0.0145416259765625, 0.05560302734375, 0.0144805908203125, -0.01568603515625, -0.006748199462890625, -0.08087158203125, 0.02862548828125, -0.08807373046875, 0.0343017578125, 0.006855010986328125, -0.0264892578125, -0.05303955078125, 0.034637451171875, -0.04840087890625, -0.0030498504638671875, -0.066650390625, -0.0164794921875, -0.0019474029541015625, 0.032196044921875, -0.042938232421875, -0.028564453125, -0.01497650146484375, -0.036376953125, 0.00345611572265625, 0.02655029296875, -0.00687408447265625, -0.027984619140625, 0.00867462158203125, 0.01090240478515625, 0.00977325439453125, 0.002490997314453125, 0.0212554931640625, 0.0288848876953125, -0.002094268798828125, -0.00664520263671875, 0.0723876953125, 0.01324462890625, -0.0196380615234375, 0.0274658203125, -0.01605224609375, -0.06396484375, 0.02978515625, -0.0223846435546875, 0.03851318359375, 0.0494384765625, -0.012725830078125, 0.03204345703125, 0.0008778572082519531, -0.04229736328125, 0.032989501953125, 0.00811767578125, -0.0255279541015625, 0.0007343292236328125, -0.00006240606307983398, 0.009124755859375, -0.03875732421875, -0.0227813720703125, 0.026031494140625, 0.0098419189453125, 0.0323486328125, 0.04583740234375, 0.0230255126953125, 0.006778717041015625, 0.017425537109375, 0.06219482421875, 0.02886962890625, -0.017303466796875, 0.02264404296875, 0.005649566650390625, -0.04803466796875, -0.05181884765625, 0.033050537109375, -0.027557373046875, 0.0394287109375, 0.0019817352294921875, 0.0308837890625, 0.008941650390625, -0.01082611083984375, 0.00759124755859375, -0.0096893310546875, 0.058502197265625, 0.01363372802734375, -0.0158538818359375, -0.0031452178955078125, 0.056915283203125, 0.04241943359375, -0.05657958984375, 0.00429534912109375, -0.00336456298828125, -0.0024261474609375, -0.04901123046875, 0.00983428955078125, 0.01041412353515625, -0.00748443603515625, -0.01419830322265625, 0.03021240234375, 0.0350341796875, -0.012451171875, -0.03619384765625, -0.053497314453125, 0.0154876708984375, -0.06182861328125, -0.00959014892578125, -0.022552490234375, -0.0274200439453125, 0.037811279296875, -0.0196380615234375, 0.0305938720703125, 0.0009613037109375, -0.03692626953125, -0.03973388671875, 0.055267333984375, 0.0009317398071289062, -0.043426513671875, -0.0124053955078125, -0.0028743743896484375, 0.0302581787109375, -0.038238525390625, -0.0560302734375, 0.01349639892578125, -0.016357421875, 0.00782012939453125, 0.02490234375, 0.023712158203125, 0.0076904296875, -0.0166015625, 0.0108642578125, -0.0256805419921875, 0.013702392578125, 0.053436279296875, 0.0804443359375, -0.064453125, -0.0037441253662109375, -0.0430908203125, 0.027984619140625, 0.002597808837890625, -0.0208282470703125, 0.0152130126953125, -0.057708740234375, -0.0166473388671875, -0.032135009765625, -0.0748291015625, 0.007007598876953125, 0.022186279296875, 0.0428466796875, -0.018463134765625, 0.02642822265625, -0.0209197998046875, -0.0300445556640625, 0.043212890625, -0.007053375244140625, -0.0616455078125, 0.035919189453125, -0.0158538818359375, 0.015594482421875, -0.0285491943359375, 0.01415252685546875, 0.0275726318359375, -0.0294342041015625, -0.00640106201171875, -0.0062713623046875, 0.04010009765625, -0.00994873046875, -0.007415771484375, -0.01540374755859375, 0.001800537109375, -0.087158203125, -0.03662109375, 0.010467529296875, -0.022308349609375, 0.0064239501953125, -0.0282135009765625, -0.0015010833740234375, -0.00949859619140625, -0.0810546875, -0.067626953125, -0.07568359375, -0.00418853759765625, -0.02294921875, 0.02587890625, -0.00029778480529785156, 0.0267181396484375, 0.027740478515625, 0.020751953125, 0.01271820068359375, 0.0006418228149414062, -0.06036376953125, -0.027069091796875, -0.0751953125, -0.0217742919921875, -0.000006616115570068359, 0.00859832763671875, -0.003849029541015625, 0.012939453125, -0.007373809814453125, -0.02630615234375, -0.0011091232299804688, 0.039520263671875, 0.0032806396484375, -0.0279693603515625, -0.0178680419921875, -0.047637939453125, 0.019073486328125, 0.003849029541015625, -0.0201568603515625, -0.0002608299255371094, 0.02911376953125, -0.032684326171875, 0.0137481689453125, -0.0187835693359375, 0.0190277099609375, -0.0277099609375, -0.0177154541015625, 0.01027679443359375, -0.013671875, -0.043426513671875, -0.0143280029296875, -0.0211944580078125, -0.048980712890625, 0.031982421875, 0.03466796875, -0.0187530517578125, -0.00832366943359375, 0.0057220458984375, -0.016571044921875, -0.0307769775390625, 0.045135498046875, -0.0455322265625, 0.0126800537109375, -0.0144500732421875, -0.01435089111328125, -0.047393798828125, 0.03271484375, 0.0007152557373046875, -0.015869140625, 0.0025043487548828125, 0.02886962890625, 0.00641632080078125, 0.01861572265625, -0.00011777877807617188, -0.00833892822265625, 0.0115509033203125, -0.10272216796875, 0.01369476318359375, -0.0640869140625, 0.0007076263427734375, -0.065673828125, 0.05181884765625, -0.052490234375, 0.01174163818359375, -0.004730224609375, 0.018798828125, -0.037811279296875, -0.0458984375, -0.062103271484375, -0.00616455078125, -0.0044097900390625, -0.007190704345703125, -0.047698974609375, 0.027679443359375, -0.004993438720703125, -0.016265869140625, 0.04400634765625, -0.0650634765625, 0.024749755859375, -0.050506591796875, -0.03814697265625, -0.0182952880859375, -0.0293121337890625, -0.05450439453125, 0.003948211669921875, -0.036895751953125, -0.0526123046875, -0.0134124755859375, -0.004840850830078125, 0.0186767578125, -0.024444580078125, 0.0246124267578125, -0.01557159423828125, 0.0396728515625, 0.0216522216796875, 0.0147552490234375, -0.02325439453125, -0.0275421142578125, -0.00811767578125, 0.0168914794921875, -0.0196990966796875, 0.002597808837890625, 0.002010345458984375, -0.01251983642578125, -0.07647705078125, -0.0650634765625, -0.019500732421875, -0.0153656005859375, 0.04498291015625, -0.054046630859375, -0.01483154296875, -0.0240631103515625, -0.0133056640625, 0.01195526123046875, -0.0197601318359375, 0.0021533966064453125, -0.0185699462890625, -0.01308441162109375, 0.0005445480346679688, -0.032012939453125, -0.012359619140625, 0.021148681640625, 0.0028438568115234375, 0.005706787109375, 0.005619049072265625, -0.026458740234375, 0.01380157470703125, 0.0266876220703125, -0.01262664794921875, 0.050567626953125, 0.0228118896484375, 0.005283355712890625, 0.011688232421875, -0.021697998046875, 0.04705810546875, 0.0015230178833007812, -0.023101806640625, 0.007350921630859375, -0.0257720947265625, 0.022705078125, 0.0262908935546875, -0.0284423828125, -0.0214080810546875, -0.01332855224609375, -0.0106048583984375, -0.04583740234375, 0.0218963623046875, 0.0207977294921875, 0.019989013671875, -0.03607177734375, -0.056396484375, 0.022247314453125, -0.01050567626953125, 0.034881591796875, 0.006549835205078125, 0.007427215576171875, 0.037628173828125, 0.0223236083984375, -0.016357421875, -0.01496124267578125, -0.002597808837890625, -0.005584716796875, 0.0020122528076171875, -0.00408172607421875, -0.03997802734375, 0.01141357421875, -0.01248931884765625, 0.1395263671875, -0.02789306640625, -0.040802001953125, -0.0220947265625, -0.0426025390625, 0.0157318115234375, 0.050018310546875, -0.0008378028869628906, 0.0186614990234375, 0.01276397705078125, -0.0281982421875, -0.0199432373046875, 0.0175933837890625, -0.01366424560546875, -0.040679931640625, -0.017333984375, -0.025848388671875, -0.0087127685546875, 0.00958251953125, 0.034149169921875, 0.0019855499267578125, 0.0226593017578125, -0.0167388916015625, -0.0274200439453125, 0.0286407470703125, -0.02337646484375, -0.005748748779296875, 0.09661865234375, -0.043487548828125, 0.01369476318359375, 0.081787109375, 0.010284423828125, 0.01314544677734375, 0.053375244140625, 0.0374755859375, 0.05072021484375, 0.0111236572265625, -0.05853271484375, -0.0311737060546875, -0.0070343017578125, 0.0308380126953125, -0.058837890625, -0.10992431640625, -0.006069183349609375, -0.006916046142578125, 0.00609588623046875, -0.0902099609375, -0.01806640625, -0.0013170242309570312, -0.041595458984375, -0.0014963150024414062, -0.0178070068359375, -0.03216552734375, -0.01360321044921875, -0.00244903564453125, -0.004802703857421875, -0.026123046875, -0.00658416748046875, -0.03790283203125, -0.00579833984375, -0.007518768310546875, -0.01885986328125, 0.0218048095703125, -0.01273345947265625, -0.01995849609375, -0.013641357421875, 0.00653839111328125, -0.0494384765625, 0.029937744140625, 0.003265380859375, -0.0218048095703125, -0.06103515625, 0.001003265380859375, -0.01247406005859375, -0.02069091796875, 0.0269927978515625, -0.0198516845703125, -0.0263519287109375, -0.007579803466796875, -0.0009775161743164062, 0.00476837158203125, -0.0291748046875, -0.06219482421875, -0.052734375, 0.0206451416015625, 0.050689697265625, -0.01003265380859375, -0.0192108154296875, 0.0290985107421875, -0.01215362548828125, 0.0168609619140625, -0.004169464111328125, 0.0156707763671875, 0.00753021240234375, -0.00008249282836914062, 0.005374908447265625, -0.030517578125, -0.023956298828125, 0.0027980804443359375, 0.008575439453125, 0.02752685546875, 0.034820556640625, -0.01137542724609375, -0.031463623046875, 0.017730712890625, 0.0081024169921875, -0.02880859375, -0.01474761962890625, 0.042633056640625, 0.00991058349609375, -0.037628173828125, 0.01568603515625, 0.02789306640625, -0.0209197998046875, -0.0253753662109375, -0.010101318359375, 0.01467132568359375, -0.00732421875, 0.00806427001953125, -0.0188751220703125, 0.0298004150390625, 0.057647705078125, 0.0169830322265625, 0.045196533203125, 0.025146484375, 0.0247650146484375, -0.0215911865234375, -0.0313720703125, 0.00952911376953125, -0.0138092041015625, -0.006198883056640625, -0.034332275390625, -0.0036773681640625, -0.00795745849609375, -0.01177215576171875, -0.007572174072265625, 0.052642822265625, 0.04315185546875, -0.0799560546875, -0.012237548828125, -0.01377105712890625, -0.0269012451171875, -0.013702392578125, -0.004146575927734375, -0.0273895263671875, -0.016754150390625, 0.0018444061279296875, 0.031005859375, -0.0262603759765625, 0.015350341796875, 0.050689697265625, -0.0205230712890625, -0.004962921142578125, 0.0357666015625, 0.0303497314453125, 0.018768310546875, -0.008087158203125, -0.01367950439453125, 0.0195465087890625, -0.003276824951171875, -0.027099609375, 0.00910186767578125, -0.0379638671875, -0.00833892822265625, -0.0018510818481445312, -0.0599365234375, 0.030914306640625, 0.00324249267578125, 0.0064239501953125, -0.020904541015625, 0.06005859375, -0.052520751953125, 0.033782958984375, 0.046356201171875, -0.05609130859375, 0.057525634765625, -0.0214080810546875, 0.033538818359375, -0.013519287109375, -0.07757568359375, 0.0029087066650390625, -0.0285797119140625, -0.0257568359375, -0.01479339599609375, 0.00421905517578125, 0.06268310546875, -0.01375579833984375, -0.029541015625, 0.01959228515625, 0.0228729248046875, 0.006519317626953125, 0.01328277587890625, -0.0254669189453125, -0.055419921875, -0.059722900390625, -0.002971649169921875, -0.08782958984375, 0.02056884765625, 0.01363372802734375, -0.0406494140625, 0.0697021484375, 0.0124359130859375, 0.00565338134765625, 0.0117340087890625, 0.0246429443359375, -0.042510986328125, -0.01277923583984375, -0.01107025146484375, 0.007320404052734375, -0.026336669921875, 0.03662109375, -0.08099365234375, -0.0260772705078125, -0.0094757080078125, 0.08099365234375, -0.00955963134765625, 0.002170562744140625, -0.0228271484375, 0.0208282470703125, 0.04962158203125, 0.0273895263671875, 0.0228118896484375, 0.023773193359375, -0.0127716064453125, -0.0166015625, 0.01294708251953125, -0.0207366943359375, 0.019439697265625, 0.01108551025390625, -0.0322265625, 0.00542449951171875, -0.0006194114685058594, -0.01125335693359375, 0.05841064453125, 0.01381683349609375, -0.063720703125, 0.0352783203125, 0.04571533203125, -0.01137542724609375, 0.00391387939453125, 0.01093292236328125, -0.0199127197265625, 0.047119140625, 0.052215576171875, -0.0152740478515625, 0.03338623046875, -0.01422882080078125, -0.007450103759765625, -0.0238189697265625, -0.0017728805541992188, 0.0239410400390625, -0.00690460205078125, -0.0269317626953125, 0.0457763671875, -0.00893402099609375, 0.00966644287109375, 0.0303802490234375, 0.05340576171875, -0.0069580078125, -0.0263824462890625, 0.041473388671875, 0.03924560546875, 0.000583648681640625, -0.050048828125, -0.01024627685546875, -0.0318603515625, 0.03314208984375, 0.0176544189453125, 0.01047515869140625, 0.045379638671875, 0.04547119140625, -0.05377197265625, -0.009765625, 0.005237579345703125, 0.028045654296875, -0.0102691650390625, -0.032501220703125, 0.0107269287109375, 0.00847625732421875, -0.052947998046875, 0.0211181640625, 0.004177093505859375, 0.07318115234375, 0.0201873779296875, 0.055328369140625, -0.049530029296875, -0.0310211181640625, -0.017425537109375, 0.036163330078125, -0.0250091552734375, 0.01203155517578125, -0.050262451171875, -0.0850830078125, 0.0245208740234375, 0.045623779296875, 0.0282440185546875, 0.04327392578125, 0.05340576171875, 0.031829833984375, -0.01284027099609375, 0.01107025146484375, 0.060394287109375, -0.0214385986328125, 0.0145263671875, -0.0445556640625, -0.0121307373046875, -0.032257080078125, -0.009063720703125, -0.01534271240234375, 0.034271240234375, -0.01210784912109375, 0.02081298828125, -0.0218658447265625, 0.0219879150390625, -0.021881103515625, 0.0231475830078125, 0.0162811279296875, 0.0093536376953125, 0.03228759765625, -0.013671875, -0.00002390146255493164, 0.0176239013671875, -0.0183563232421875, -0.0196380615234375, 0.016571044921875, -0.0352783203125, 0.0308074951171875, -0.01166534423828125, -0.00909423828125, 0.006626129150390625, -0.012298583984375, 0.007686614990234375, 0.0305633544921875, 0.01568603515625, 0.0174102783203125, 0.00907135009765625, 0.005496978759765625, 0.016693115234375, -0.0046539306640625, -0.0206146240234375, 0.131591796875, -0.04742431640625, -0.007793426513671875, 0.0094451904296875, 0.0019159317016601562, -0.026092529296875, -0.01319122314453125, -0.024871826171875, -0.0179290771484375, 0.0016078948974609375, 0.0008983612060546875, -0.042572021484375, 0.015350341796875, 0.020538330078125, -0.027252197265625, 0.004428863525390625, 0.0072784423828125, 0.0020542144775390625, -0.01071929931640625, 0.0240020751953125, -0.0297393798828125, -0.049041748046875, -0.058349609375, -0.0137176513671875, 0.0237884521484375, 0.029205322265625, -0.0026531219482421875, 0.031951904296875, 0.0157012939453125, -0.0292816162109375, 0.014312744140625, -0.03216552734375, 0.0280914306640625, 0.034271240234375, -0.0099334716796875, -0.055511474609375, 0.014129638671875, 0.01021575927734375, -0.004215240478515625, 0.018646240234375, 0.04754638671875, 0.01390838623046875, 0.03912353515625, 0.039581298828125, 0.0283660888671875, 0.04071044921875, -0.01441192626953125, -0.003391265869140625, 0.0328369140625, -0.0171051025390625, -0.032562255859375, -0.0222320556640625, -0.03155517578125, -0.0206298828125, -0.008819580078125, 0.00766754150390625, -0.01104736328125, -0.033782958984375, -0.05352783203125, 0.00585174560546875, 0.04290771484375, -0.0001366138458251953, -0.067626953125, 0.0421142578125, -0.0262451171875, 0.042388916015625, -0.00519561767578125, -0.021148681640625, -0.0022258758544921875, 0.0212554931640625, 0.006229400634765625, 0.01617431640625, -0.044342041015625, -0.0010051727294921875, -0.0047607421875, -0.0244293212890625, 0.0117034912109375, 0.016021728515625, -0.025726318359375, -0.051025390625, -0.037109375, -0.01116180419921875, -0.010345458984375, -0.027191162109375, -0.0016088485717773438, -0.01381683349609375, -0.0090484619140625, 0.01558685302734375, 0.007213592529296875, 0.005306243896484375, -0.01824951171875, 0.0097808837890625, 0.00978851318359375, 0.0269317626953125, -0.0191650390625, -0.0176239013671875, 0.0191802978515625, 0.01020050048828125, -0.019287109375, -0.04876708984375, -0.0643310546875, -0.0177154541015625, 0.05670166015625, -0.01134490966796875, -0.0249481201171875, -0.05126953125, 0.06280517578125, 0.0175628662109375, 0.057373046875, -0.01708984375, 0.0404052734375, 0.0111846923828125, 0.049224853515625, 0.034393310546875, -0.0030345916748046875, 0.033538818359375, -0.0287933349609375, 0.045166015625, 0.041229248046875, -0.0430908203125, -0.012237548828125, 0.00681304931640625, -0.00811767578125, -0.01158905029296875, -0.010711669921875, -0.01499176025390625, -0.0208587646484375, 0.06597900390625, 0.0188140869140625, 0.005939483642578125, -0.0242767333984375, -0.039031982421875, -0.0274200439453125, -0.01126861572265625, -0.03558349609375, 0.027496337890625, -0.09228515625, -0.024932861328125, 0.0170745849609375, -0.036407470703125, 0.0230712890625, 0.0301513671875, -0.03826904296875, 0.032135009765625, 0.0266571044921875, -0.041107177734375, -0.0265045166015625, -0.031463623046875, 0.039093017578125, -0.044097900390625, -0.067626953125, 0.00716400146484375, 0.0245361328125, -0.050811767578125, -0.0167999267578125, 0.035186767578125, -0.016876220703125, -0.0396728515625, 0.01316070556640625, 0.01241302490234375, -0.0017566680908203125, -0.007061004638671875, -0.054046630859375, -0.0035839080810546875, 0.0008292198181152344, -0.006641387939453125, -0.01055908203125, 0.0172119140625, -0.0053253173828125, -0.0163421630859375, 0.042236328125, -0.004558563232421875, 0.026763916015625, -0.02685546875, 0.0657958984375, -0.0399169921875, -0.0186614990234375, -0.0270843505859375, -0.0205841064453125, -0.0159149169921875, 0.048309326171875, -0.0157470703125, -0.027984619140625, 0.020233154296875, -0.0271148681640625, 0.040863037109375, 0.004673004150390625 ]
ee342916c662c228bed7f5221592a963e1cb0a90
Wordpress Stackexchange Q: WP 3.9 TinyMCE no longer loads on category description editor I've used this script below inside functions.php since WP 3.5 It converts the standard category description editor to a rich text editor. Unfortunately, after upgrading sites to WP 3.9, the description editor is back to a standard text area. Any ideas what I need to change for 3.9? add_action('load-categories.php', 'cb_admin_init'); add_action('load-edit-tags.php', 'cb_admin_init'); function cb_admin_init() { if ( user_can_richedit() && isset($_GET['action']) && 'edit' === $_GET['action'] && ( !empty($_GET['cat_ID']) || ( !empty($_GET['taxonomy']) && !empty($_GET['tag_ID']) ) ) ){ add_filter( 'tiny_mce_before_init', 'cb_mceinit'); add_action('admin_footer', 'wp_tiny_mce'); add_action('admin_head', 'cb_head'); } } function cb_mceinit($init) { $init['mode'] = 'exact'; $init['editor_selector'] = 'description'; $init['elements'] = 'category_description,description'; $init['plugins'] = 'safari,inlinepopups,spellchecker,paste,fullscreen'; $init['theme_advanced_buttons1'] .= ',image'; $init['theme_advanced_buttons2'] .= ',code'; $init['onpageload'] = ''; $init['save_callback'] = ''; return $init; } function cb_head() { wp_enqueue_style('editor-buttons'); ?> <style type="text/css">#category_description_tbl,#description_tbl{border:1px solid #dfdfdf;}.wp_themeSkin .mceStatusbar{border-color:#dddddd;}</style><?php } add_action('init', 'cb_editor_init'); A: I was having the same issue and the problem was actually coming from the way the js was dynamically generating tinyMCE. Prior to v.4, it was: tinymce.EditorManager.execCommand('mceAddControl', true, id); With 4, you need to use: tinymce.EditorManager.execCommand('mceAddEditor', true, id); Have a look at wherever your function 'wp_tiny_mce' is - might be in there.
Q: WP 3.9 TinyMCE no longer loads on category description editor I've used this script below inside functions.php since WP 3.5 It converts the standard category description editor to a rich text editor. Unfortunately, after upgrading sites to WP 3.9, the description editor is back to a standard text area. Any ideas what I need to change for 3.9? add_action('load-categories.php', 'cb_admin_init'); add_action('load-edit-tags.php', 'cb_admin_init'); function cb_admin_init() { if ( user_can_richedit() && isset($_GET['action']) && 'edit' === $_GET['action'] && ( !empty($_GET['cat_ID']) || ( !empty($_GET['taxonomy']) && !empty($_GET['tag_ID']) ) ) ){ add_filter( 'tiny_mce_before_init', 'cb_mceinit'); add_action('admin_footer', 'wp_tiny_mce'); add_action('admin_head', 'cb_head'); } } function cb_mceinit($init) { $init['mode'] = 'exact'; $init['editor_selector'] = 'description'; $init['elements'] = 'category_description,description'; $init['plugins'] = 'safari,inlinepopups,spellchecker,paste,fullscreen'; $init['theme_advanced_buttons1'] .= ',image'; $init['theme_advanced_buttons2'] .= ',code'; $init['onpageload'] = ''; $init['save_callback'] = ''; return $init; } function cb_head() { wp_enqueue_style('editor-buttons'); ?> <style type="text/css">#category_description_tbl,#description_tbl{border:1px solid #dfdfdf;}.wp_themeSkin .mceStatusbar{border-color:#dddddd;}</style><?php } add_action('init', 'cb_editor_init'); A: I was having the same issue and the problem was actually coming from the way the js was dynamically generating tinyMCE. Prior to v.4, it was: tinymce.EditorManager.execCommand('mceAddControl', true, id); With 4, you need to use: tinymce.EditorManager.execCommand('mceAddEditor', true, id); Have a look at wherever your function 'wp_tiny_mce' is - might be in there. A: Here is the sample complete code to do this. See reference link also. // Add term page function pippin_taxonomy_add_new_meta_field() { // this will add the custom meta field to the add new term page ?> <div class="form-field"> <label for="term_meta[custom_term_meta]"><?php _e( 'Example meta field', 'pippin' ); ?></label> <?php wp_editor( $content,'term_meta[custom_term_meta]') ?> <p class="description"><?php _e( 'Enter a value for this field','pippin' ); ?></p> </div> <?php } add_action( 'category_add_form_fields', 'pippin_taxonomy_add_new_meta_field', 10, 2 ); add_action( 'category_add_form_fields', 'pippin_taxonomy_add_new_meta_field', 10, 2 ); add_action( 'genres_add_form_fields', 'pippin_taxonomy_add_new_meta_field', 10, 2 ); // Edit term page function pippin_taxonomy_edit_meta_field($term) { // put the term ID into a variable $t_id = $term->term_id; // retrieve the existing value(s) for this meta field. This returns an array $term_meta = get_option( "taxonomy_$t_id" ); ?> <tr class="form-field"> <th scope="row" valign="top"><label for="term_meta[custom_term_meta]"><?php _e( 'Example meta field', 'pippin' ); ?></label></th> <td> <?php $content = esc_attr( $term_meta['custom_term_meta'] ) ? esc_attr( $term_meta['custom_term_meta'] ) : ''; wp_editor( $content,'term_meta[custom_term_meta]') ?> <p class="description"><?php _e( 'Enter a value for this field','pippin' ); ?></p> </td> </tr> <?php } add_action( 'category_edit_form_fields', 'pippin_taxonomy_edit_meta_field', 10, 2 ); // Save extra taxonomy fields callback function. function save_taxonomy_custom_meta( $term_id ) { if ( isset( $_POST['term_meta'] ) ) { $t_id = $term_id; $term_meta = get_option( "taxonomy_$t_id" ); $cat_keys = array_keys( $_POST['term_meta'] ); foreach ( $cat_keys as $key ) { if ( isset ( $_POST['term_meta'][$key] ) ) { $term_meta[$key] = $_POST['term_meta'][$key]; } } // Save the option array. update_option( "taxonomy_$t_id", $term_meta ); } } add_action( 'edited_category', 'save_taxonomy_custom_meta', 10, 2 ); add_action( 'create_category', 'save_taxonomy_custom_meta', 10, 2 ); add_action( 'edited_genres', 'save_taxonomy_custom_meta', 10, 2 ); add_action( 'create_genres', 'save_taxonomy_custom_meta', 10, 2 );
wordpress
{ "language": "en", "length": 448, "provenance": "stackexchange_00019.jsonl.gz:444364", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141623" }
[ 0.0015468597412109375, -0.0096282958984375, -0.0311126708984375, -0.018646240234375, 0.00251007080078125, -0.030670166015625, 0.03265380859375, 0.02093505859375, 0.013519287109375, 0.05047607421875, -0.016448974609375, 0.00873565673828125, 0.0114288330078125, -0.0095062255859375, -0.03125, 0.0029468536376953125, 0.03045654296875, -0.01071929931640625, 0.032806396484375, -0.00498199462890625, 0.014862060546875, 0.027618408203125, 0.021820068359375, 0.0006761550903320312, 0.02532958984375, 0.0022411346435546875, 0.052154541015625, -0.036712646484375, 0.0187835693359375, -0.0238037109375, 0.022705078125, -0.022613525390625, 0.032196044921875, 0.044708251953125, -0.061065673828125, 0.051544189453125, -0.029693603515625, 0.03076171875, 0.007228851318359375, 0.0290679931640625, 0.03204345703125, -0.03045654296875, 0.006122589111328125, -0.051361083984375, -0.007221221923828125, 0.0195159912109375, 0.00614166259765625, -0.028717041015625, 0.016021728515625, -0.07818603515625, 0.0190887451171875, 0.02532958984375, 0.0474853515625, -0.050750732421875, -0.00901031494140625, 0.039581298828125, -0.09228515625, 0.034759521484375, 0.002010345458984375, 0.08221435546875, 0.0374755859375, 0.0006413459777832031, -0.01751708984375, -0.0208282470703125, -0.0021343231201171875, -0.0097808837890625, 0.00548553466796875, 0.016632080078125, -0.00742340087890625, -0.016510009765625, 0.015625, -0.00778961181640625, 0.0079193115234375, -0.043060302734375, 0.01546478271484375, 0.0280609130859375, -0.0259552001953125, 0.00614166259765625, 0.01308441162109375, -0.0025424957275390625, 0.0176849365234375, -0.0057830810546875, -0.00992584228515625, 0.0086669921875, 0.0218658447265625, 0.0367431640625, 0.0026073455810546875, -0.0247955322265625, -0.0293121337890625, -0.002544403076171875, -0.009735107421875, -0.040740966796875, -0.022064208984375, 0.0302276611328125, 0.0174560546875, -0.0286102294921875, 0.0182647705078125, 0.049224853515625, -0.0150146484375, 0.032958984375, -0.030487060546875, -0.0277557373046875, 0.0484619140625, -0.047210693359375, 0.0323486328125, 0.0019369125366210938, -0.03802490234375, -0.0394287109375, 0.0594482421875, 0.03436279296875, -0.0034656524658203125, 0.0616455078125, -0.03082275390625, -0.01087188720703125, -0.01071929931640625, 0.0029239654541015625, -0.06011962890625, 0.031341552734375, -0.004913330078125, 0.04150390625, 0.004695892333984375, 0.03363037109375, 0.00647735595703125, -0.00873565673828125, -0.0203704833984375, -0.023590087890625, -0.005359649658203125, -0.035430908203125, 0.0085296630859375, 0.0010585784912109375, -0.0290679931640625, 0.0379638671875, 0.049560546875, -0.0007863044738769531, -0.004657745361328125, -0.01187896728515625, 0.00717926025390625, 0.0081024169921875, 0.01361083984375, 0.0015993118286132812, 0.0123748779296875, -0.0296478271484375, -0.01081085205078125, 0.0192718505859375, -0.0192108154296875, 0.0125732421875, 0.00922393798828125, 0.01030731201171875, -0.00934600830078125, -0.054351806640625, 0.01378631591796875, -0.0428466796875, 0.0787353515625, 0.005886077880859375, -0.0467529296875, -0.065185546875, 0.07781982421875, -0.078857421875, -0.0367431640625, -0.12347412109375, 0.0247802734375, -0.00064849853515625, -0.006984710693359375, -0.035308837890625, -0.047637939453125, -0.024505615234375, -0.019287109375, -0.007045745849609375, 0.02667236328125, 0.06829833984375, 0.01641845703125, 0.01139068603515625, 0.01190185546875, 0.0231475830078125, -0.006290435791015625, -0.0001456737518310547, -0.02081298828125, 0.03228759765625, 0.045684814453125, -0.004215240478515625, -0.0008726119995117188, -0.0260009765625, 0.08984375, -0.0222015380859375, -0.0399169921875, 0.011871337890625, -0.010894775390625, 0.0333251953125, 0.041351318359375, 0.0138397216796875, 0.011016845703125, -0.034149169921875, 0.0108795166015625, 0.018707275390625, 0.00902557373046875, -0.051483154296875, -0.00916290283203125, -0.01013946533203125, -0.0020732879638671875, -0.01021575927734375, 0.00547027587890625, 0.012603759765625, 0.0023593902587890625, -0.00356292724609375, -0.06805419921875, 0.022491455078125, -0.0216827392578125, 0.0440673828125, 0.078125, 0.0240325927734375, -0.031951904296875, -0.006343841552734375, 0.01216888427734375, 0.0098114013671875, -0.017364501953125, 0.05926513671875, -0.00893402099609375, 0.0540771484375, 0.013275146484375, 0.01512908935546875, 0.0435791015625, -0.0215911865234375, 0.055755615234375, 0.047454833984375, 0.01617431640625, 0.0013303756713867188, -0.00835418701171875, 0.0068359375, 0.063720703125, 0.0249481201171875, 0.01372528076171875, -0.039031982421875, 0.056976318359375, 0.056243896484375, -0.022430419921875, -0.0047149658203125, 0.00943756103515625, -0.0419921875, -0.0025119781494140625, 0.040771484375, 0.0248870849609375, -0.0151824951171875, -0.03802490234375, -0.02392578125, 0.0865478515625, -0.01056671142578125, -0.0014982223510742188, -0.01457977294921875, -0.003452301025390625, 0.020355224609375, 0.0189056396484375, -0.0013208389282226562, 0.0113525390625, 0.0021343231201171875, 0.0150146484375, 0.0294036865234375, 0.003452301025390625, -0.036956787109375, 0.04229736328125, -0.013702392578125, 0.0308074951171875, -0.0245361328125, -0.054473876953125, 0.0130615234375, 0.043304443359375, 0.034942626953125, 0.04595947265625, 0.04425048828125, -0.057220458984375, 0.02880859375, 0.0171966552734375, 0.03424072265625, -0.0178680419921875, 0.03582763671875, 0.050445556640625, -0.024078369140625, -0.053955078125, 0.0177001953125, 0.00023066997528076172, 0.028656005859375, 0.0028896331787109375, 0.06378173828125, 0.00966644287109375, -0.00899505615234375, -0.044921875, -0.06414794921875, 0.005214691162109375, 0.0200653076171875, 0.0166168212890625, -0.0251617431640625, 0.031982421875, 0.002506256103515625, -0.0301055908203125, 0.030731201171875, -0.0389404296875, -0.0260467529296875, 0.038604736328125, -0.000946044921875, 0.01116943359375, -0.005718231201171875, 0.035888671875, 0.037689208984375, -0.0193634033203125, -0.002132415771484375, 0.01268768310546875, -0.003063201904296875, 0.033233642578125, 0.01531219482421875, 0.0103912353515625, -0.0058441162109375, -0.0222625732421875, 0.0047760009765625, 0.032470703125, 0.038787841796875, 0.009857177734375, -0.0440673828125, 0.00638580322265625, 0.0240478515625, -0.055877685546875, -0.03204345703125, -0.038482666015625, -0.05316162109375, 0.0037250518798828125, -0.01505279541015625, -0.036529541015625, -0.004756927490234375, 0.0181121826171875, 0.028106689453125, 0.061004638671875, -0.00806427001953125, -0.0249481201171875, 0.0028057098388671875, -0.0562744140625, -0.07037353515625, -0.00577545166015625, -0.026947021484375, 0.01015472412109375, 0.0307464599609375, 0.01296234130859375, -0.0283050537109375, 0.02703857421875, -0.013458251953125, -0.0024471282958984375, 0.040740966796875, 0.025726318359375, -0.05010986328125, 0.049652099609375, 0.0035343170166015625, -0.0225982666015625, 0.03192138671875, -0.00319671630859375, -0.0282440185546875, -0.0019779205322265625, 0.04901123046875, 0.0194244384765625, 0.0142974853515625, 0.01629638671875, 0.0168914794921875, 0.013946533203125, -0.01690673828125, -0.01525115966796875, -0.012908935546875, -0.039093017578125, 0.046234130859375, 0.02325439453125, -0.00904083251953125, 0.0128173828125, 0.0132598876953125, -0.01309967041015625, 0.0023746490478515625, 0.03717041015625, -0.0220489501953125, 0.00006765127182006836, -0.017791748046875, -0.0301361083984375, -0.0287322998046875, 0.007480621337890625, -0.024810791015625, -0.04351806640625, -0.0173187255859375, -0.0330810546875, -0.021148681640625, -0.00794219970703125, -0.007251739501953125, 0.0044403076171875, -0.00011032819747924805, -0.0789794921875, -0.01001739501953125, -0.031890869140625, 0.029998779296875, -0.0267791748046875, 0.01016998291015625, -0.0239715576171875, 0.003101348876953125, 0.0291748046875, -0.0088958740234375, -0.0228729248046875, 0.0203704833984375, -0.0758056640625, 0.00626373291015625, -0.0626220703125, 0.0218353271484375, 0.004180908203125, 0.004261016845703125, -0.04052734375, 0.048309326171875, -0.0241546630859375, -0.0328369140625, 0.026885986328125, -0.01346588134765625, -0.042694091796875, 0.019439697265625, -0.0511474609375, -0.0033550262451171875, -0.0262451171875, -0.00850677490234375, -0.09820556640625, -0.0131072998046875, -0.06793212890625, 0.06634521484375, 0.0188446044921875, 0.04998779296875, -0.0171966552734375, 0.061309814453125, 0.0167388916015625, 0.0301971435546875, 0.0015707015991210938, 0.004787445068359375, -0.03173828125, -0.00829315185546875, 0.01287841796875, -0.0269012451171875, -0.009490966796875, -0.0006260871887207031, -0.045013427734375, -0.050323486328125, -0.04864501953125, -0.066650390625, -0.0041656494140625, -0.057525634765625, -0.06109619140625, -0.0538330078125, -0.041900634765625, 0.006778717041015625, 0.0074920654296875, -0.023040771484375, -0.05230712890625, -0.0831298828125, 0.01422119140625, -0.03436279296875, -0.007144927978515625, 0.0065765380859375, 0.02197265625, 0.0230255126953125, -0.0026702880859375, 0.03662109375, -0.049072265625, 0.0255584716796875, 0.03765869140625, 0.02850341796875, 0.0050048828125, -0.0305938720703125, 0.061920166015625, 0.028900146484375, 0.04730224609375, -0.0626220703125, 0.0595703125, -0.0037479400634765625, 0.008697509765625, 0.0066986083984375, 0.000004112720489501953, 0.01342010498046875, 0.002117156982421875, -0.0245819091796875, 0.01390838623046875, 0.01340484619140625, 0.0115509033203125, 0.0014123916625976562, -0.005039215087890625, -0.022796630859375, -0.006610870361328125, -0.0160064697265625, 0.07965087890625, 0.0303192138671875, 0.032928466796875, 0.0152130126953125, -0.0032596588134765625, 0.0301361083984375, -0.0262451171875, 0.004787445068359375, 0.019134521484375, -0.00946807861328125, 0.0011930465698242188, 0.01004791259765625, -0.0322265625, -0.0202178955078125, -0.005401611328125, 0.004657745361328125, -0.0155487060546875, -0.012298583984375, -0.06756591796875, 0.004108428955078125, 0.07025146484375, 0.01444244384765625, 0.023834228515625, -0.01047515869140625, 0.005584716796875, 0.004901885986328125, -0.004123687744140625, 0.03131103515625, 0.0290374755859375, 0.010345458984375, -0.01081085205078125, -0.0194091796875, 0.0023746490478515625, 0.0153961181640625, 0.055694580078125, -0.01019287109375, 0.04248046875, -0.015960693359375, 0.0308380126953125, 0.01131439208984375, 0.01971435546875, 0.03204345703125, 0.013641357421875, -0.0123138427734375, 0.005634307861328125, 0.0019016265869140625, -0.051727294921875, -0.031494140625, -0.00705718994140625, 0.027862548828125, -0.0030231475830078125, -0.00040459632873535156, 0.03363037109375, 0.01110076904296875, -0.017974853515625, 0.006275177001953125, -0.039459228515625, -0.057708740234375, -0.0016078948974609375, 0.0176239013671875, -0.003173828125, -0.037567138671875, 0.0035114288330078125, 0.035797119140625, -0.031524658203125, 0.0002598762512207031, -0.024322509765625, -0.039520263671875, -0.0193023681640625, 0.003032684326171875, -0.00836181640625, -0.01216888427734375, -0.01861572265625, -0.0325927734375, -0.02392578125, 0.0045166015625, -0.00031375885009765625, 0.027069091796875, -0.0044403076171875, -0.005596160888671875, -0.0110626220703125, -0.0004649162292480469, -0.0265960693359375, 0.00921630859375, 0.0176239013671875, -0.0208892822265625, 0.0254669189453125, -0.0109710693359375, -0.052154541015625, -0.0472412109375, -0.03778076171875, -0.041748046875, -0.0309906005859375, -0.00440216064453125, -0.024444580078125, 0.008514404296875, -0.0216064453125, 0.0004620552062988281, -0.0260772705078125, 0.0206451416015625, 0.022613525390625, 0.02789306640625, -0.0032100677490234375, 0.008209228515625, 0.0276031494140625, 0.0142669677734375, 0.02276611328125, 0.0106353759765625, -0.002506256103515625, -0.0272064208984375, 0.01064300537109375, -0.05926513671875, -0.005462646484375, -0.0113067626953125, -0.0270843505859375, 0.0274810791015625, 0.019287109375, -0.00550079345703125, 0.00995635986328125, 0.002010345458984375, 0.00653076171875, -0.02752685546875, -0.006000518798828125, -0.0008697509765625, 0.0128631591796875, -0.02081298828125, -0.01175689697265625, 0.01983642578125, -0.0330810546875, 0.039886474609375, 0.0021820068359375, -0.05157470703125, 0.00333404541015625, 0.01355743408203125, -0.045074462890625, 0.05035400390625, 0.04058837890625, 0.00591278076171875, 0.0019235610961914062, -0.0242767333984375, -0.01251983642578125, -0.048828125, -0.017120361328125, 0.0302734375, 0.0033550262451171875, 0.017425537109375, -0.01338958740234375, 0.042144775390625, 0.03570556640625, 0.002567291259765625, 0.0009565353393554688, 0.045745849609375, 0.065673828125, -0.06219482421875, 0.00948333740234375, 0.024810791015625, -0.03167724609375, -0.03387451171875, -0.00742340087890625, -0.03448486328125, -0.049285888671875, 0.035186767578125, 0.00252532958984375, -0.02386474609375, 0.010833740234375, 0.0220947265625, -0.00582122802734375, -0.0018749237060546875, 0.044342041015625, 0.022552490234375, -0.0286102294921875, 0.00010031461715698242, 0.0168914794921875, 0.01436614990234375, -0.0081939697265625, -0.0145263671875, -0.0110931396484375, -0.0299072265625, -0.03961181640625, 0.00567626953125, -0.01551055908203125, 0.0023193359375, 0.0217437744140625, -0.0115966796875, 0.01416015625, 0.05035400390625, -0.041259765625, 0.0634765625, 0.0090179443359375, -0.0247802734375, 0.0012960433959960938, -0.036224365234375, 0.034027099609375, 0.044281005859375, -0.035675048828125, 0.03680419921875, 0.019989013671875, -0.04046630859375, 0.0017232894897460938, -0.007747650146484375, 0.03289794921875, -0.025726318359375, -0.02313232421875, 0.028289794921875, -0.0175933837890625, -0.0028839111328125, -0.0218963623046875, 0.00211334228515625, -0.07861328125, -0.0550537109375, -0.02703857421875, -0.0517578125, 0.0219573974609375, -0.034393310546875, -0.080078125, 0.11370849609375, 0.041473388671875, 0.01666259765625, -0.0017995834350585938, 0.0369873046875, -0.072265625, -0.0181732177734375, 0.01169586181640625, 0.00725555419921875, -0.02972412109375, -0.01003265380859375, -0.033203125, -0.0038089752197265625, -0.003101348876953125, 0.053802490234375, 0.0182952880859375, 0.006622314453125, -0.001857757568359375, 0.012664794921875, 0.033294677734375, 0.023223876953125, -0.01800537109375, 0.014892578125, 0.0394287109375, -0.03448486328125, 0.01482391357421875, 0.021728515625, 0.049713134765625, -0.060821533203125, 0.00426483154296875, 0.035919189453125, 0.006195068359375, 0.0030155181884765625, -0.0015010833740234375, -0.00421905517578125, -0.06085205078125, 0.0010280609130859375, 0.047271728515625, -0.040802001953125, -0.039642333984375, 0.03839111328125, -0.031280517578125, -0.037811279296875, -0.00737762451171875, -0.03411865234375, 0.0250396728515625, -0.01885986328125, -0.0054168701171875, -0.005390167236328125, 0.0015125274658203125, 0.033233642578125, -0.0309600830078125, -0.0270233154296875, 0.00986480712890625, -0.009674072265625, 0.007965087890625, -0.0077667236328125, 0.0268707275390625, -0.0134124755859375, 0.01119232177734375, -0.0009479522705078125, 0.0230712890625, -0.027374267578125, -0.050262451171875, -0.004436492919921875, 0.00800323486328125, 0.031982421875, 0.0275726318359375, 0.03857421875, 0.00787353515625, 0.047088623046875, -0.0006780624389648438, -0.030975341796875, -0.0146026611328125, 0.022247314453125, -0.00673675537109375, 0.020111083984375, 0.023101806640625, -0.039215087890625, -0.04559326171875, 0.02777099609375, 0.0008425712585449219, 0.037933349609375, -0.003192901611328125, 0.0499267578125, -0.0179443359375, -0.0068359375, -0.01171112060546875, 0.027984619140625, 0.013458251953125, 0.0113067626953125, -0.02227783203125, 0.00786590576171875, -0.01093292236328125, 0.024749755859375, 0.02496337890625, 0.0296630859375, 0.049530029296875, 0.042938232421875, 0.002353668212890625, 0.0093994140625, 0.027313232421875, -0.0113372802734375, -0.0322265625, -0.0269317626953125, -0.0221710205078125, 0.00653839111328125, 0.01306915283203125, 0.0175018310546875, 0.0253448486328125, 0.004482269287109375, -0.0037097930908203125, -0.0082855224609375, 0.00982666015625, -0.035125732421875, 0.01409149169921875, 0.0044708251953125, 0.032928466796875, 0.031951904296875, -0.00473785400390625, -0.0008907318115234375, -0.0272979736328125, -0.0307159423828125, 0.0158538818359375, 0.03863525390625, -0.00008434057235717773, 0.01250457763671875, -0.01306915283203125, -0.01045989990234375, -0.0060882568359375, 0.022491455078125, -0.01849365234375, -0.00788116455078125, 0.0266876220703125, -0.02276611328125, -0.01201629638671875, 0.007724761962890625, 0.00009101629257202148, 0.01087188720703125, 0.0421142578125, 0.067138671875, -0.00917816162109375, 0.0289306640625, -0.0399169921875, 0.0287628173828125, -0.037567138671875, -0.057220458984375, 0.017578125, 0.024139404296875, 0.03143310546875, -0.00499725341796875, -0.02490234375, 0.031951904296875, 0.01195526123046875, -0.0037097930908203125, -0.014434814453125, 0.0245361328125, 0.017120361328125, 0.035491943359375, 0.0241851806640625, -0.026336669921875, -0.02008056640625, -0.04229736328125, -0.0200042724609375, 0.0225372314453125, 0.03399658203125, 0.01409912109375, 0.01373291015625, 0.05010986328125, 0.00007748603820800781, 0.0297698974609375, 0.01181793212890625, 0.0267181396484375, 0.027679443359375, 0.020843505859375, -0.01534271240234375, 0.061187744140625, -0.0080718994140625, 0.04010009765625, 0.01042938232421875, 0.0518798828125, 0.0261688232421875, -0.031463623046875, 0.061859130859375, 0.051239013671875, 0.0511474609375, -0.04522705078125, -0.0033779144287109375, 0.08819580078125, -0.0181884765625, 0.0204010009765625, -0.0060272216796875, -0.033050537109375, -0.052093505859375, -0.020355224609375, 0.0007295608520507812, -0.056732177734375, -0.0753173828125, -0.088134765625, 0.0172882080078125, 0.019378662109375, -0.00568389892578125, -0.043182373046875, 0.07562255859375, -0.0479736328125, 0.00428009033203125, -0.019317626953125, 0.01558685302734375, -0.005298614501953125, 0.050323486328125, -0.01568603515625, 0.01220703125, -0.03729248046875, -0.006256103515625, -0.03857421875, 0.0196380615234375, 0.0635986328125, -0.0255889892578125, -0.04766845703125, -0.00707244873046875, 0.00379180908203125, 0.042449951171875, -0.0271759033203125, 0.005733489990234375, 0.0875244140625, -0.0153045654296875, -0.049774169921875, -0.07379150390625, -0.0190887451171875, -0.051666259765625, 0.0289154052734375, 0.004085540771484375, -0.04840087890625, -0.0249176025390625, -0.061737060546875, -0.08221435546875, 0.0303955078125, 0.0015354156494140625, -0.031768798828125, -0.018585205078125, -0.0249481201171875, -0.02532958984375, 0.03765869140625, 0.0081939697265625, -0.02117919921875, 0.0007786750793457031, 0.047607421875, 0.02325439453125, 0.0523681640625, 0.0098419189453125, 0.0037708282470703125, -0.0526123046875, 0.00897216796875, -0.0166778564453125, 0.02850341796875, 0.0113983154296875, 0.0209503173828125, -0.0130767822265625, 0.0501708984375, -0.0296173095703125, -0.0645751953125, -0.05615234375, -0.0146331787109375, 0.0129547119140625, -0.058258056640625, -0.0443115234375, -0.019775390625, 0.06298828125, 0.0254974365234375, 0.007068634033203125, -0.02490234375, -0.0171356201171875, 0.0036983489990234375, -0.020843505859375, -0.0266265869140625, 0.029144287109375, -0.0777587890625, -0.0316162109375, 0.007457733154296875, -0.01508331298828125, -0.007965087890625, 0.037200927734375, -0.0238037109375, 0.0010423660278320312, 0.005977630615234375, -0.050323486328125, -0.0078887939453125, -0.05975341796875, 0.067138671875, -0.0419921875, -0.0288238525390625, 0.025787353515625, 0.037017822265625, -0.0010232925415039062, 0.0248260498046875, -0.054107666015625, 0.0179443359375, -0.0274658203125, 0.0191497802734375, -0.024627685546875, -0.00885009765625, -0.037933349609375, 0.04278564453125, -0.006832122802734375, -0.01104736328125, 0.006317138671875, -0.01186370849609375, 0.002536773681640625, -0.037353515625, -0.0205230712890625, -0.00844573974609375, -0.02130126953125, 0.0207366943359375, -0.034912109375, 0.034027099609375, -0.00124359130859375, 0.00748443603515625, 0.0265350341796875, 0.01016998291015625, 0.012359619140625, 0.0209808349609375, -0.02301025390625, -0.0204620361328125, -0.01108551025390625, -0.034027099609375, 0.01079559326171875, -0.003116607666015625 ]
eb754c6a58c9175a8e465f70428715d94e6b4405
Wordpress Stackexchange Q: Detecting errors generated by $wpdb->get_results() How do I detect errors when using $wpdb->get_results()? For example: $result = $wpdb->get_results("SELECT * FROM this is not a valid query"); The preceding code doesn't generate any exceptions or errors; it simply sets $result to an empty array. How do we reliably detect errors generated by get_results()? A: There is a class variable that stores the last error string - $wpdb->last_error. By the looks of the way $wpdb is coded, if the query succeeds, $wpdb->last_error will be an empty string, if it fails, it will be the error string returned by MySQL. So something like this would do the trick. $result = $wpdb->get_results("SELECT * FROM this is not a valid query"); if ($wpdb->last_error) { echo 'You done bad! ' . $wpdb->last_error; }
Q: Detecting errors generated by $wpdb->get_results() How do I detect errors when using $wpdb->get_results()? For example: $result = $wpdb->get_results("SELECT * FROM this is not a valid query"); The preceding code doesn't generate any exceptions or errors; it simply sets $result to an empty array. How do we reliably detect errors generated by get_results()? A: There is a class variable that stores the last error string - $wpdb->last_error. By the looks of the way $wpdb is coded, if the query succeeds, $wpdb->last_error will be an empty string, if it fails, it will be the error string returned by MySQL. So something like this would do the trick. $result = $wpdb->get_results("SELECT * FROM this is not a valid query"); if ($wpdb->last_error) { echo 'You done bad! ' . $wpdb->last_error; } A: The best I can find is: $wpdb->show_errors(); $result = $wpdb->get_results("SELECT * FROM this is not a valid query"); $wpdb->hide_errors(); Unfortunately, that hardly solves the problem. I want to handle the error programmatically, not just echo it to the output stream.
wordpress
{ "language": "en", "length": 169, "provenance": "stackexchange_00019.jsonl.gz:444366", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141627" }
[ 0.08441162109375, 0.0180206298828125, -0.0010633468627929688, -0.05810546875, 0.0302734375, -0.0267333984375, 0.014251708984375, -0.0208587646484375, 0.03131103515625, 0.01519775390625, -0.06390380859375, -0.013580322265625, -0.01107025146484375, -0.0095062255859375, -0.05291748046875, -0.054779052734375, 0.034820556640625, -0.022918701171875, 0.020721435546875, -0.003650665283203125, 0.001972198486328125, 0.00803375244140625, 0.006771087646484375, 0.042449951171875, -0.033538818359375, -0.014862060546875, 0.0963134765625, -0.017791748046875, 0.0006504058837890625, -0.028106689453125, -0.0035247802734375, 0.00171661376953125, 0.0029697418212890625, 0.056060791015625, -0.038726806640625, 0.053253173828125, 0.07672119140625, -0.004756927490234375, 0.003520965576171875, 0.06195068359375, 0.01611328125, -0.0111541748046875, 0.0360107421875, -0.01328277587890625, -0.0005517005920410156, -0.00907135009765625, 0.051849365234375, -0.0189971923828125, 0.021331787109375, 0.038177490234375, 0.0227813720703125, -0.00878143310546875, 0.016204833984375, 0.01898193359375, -0.0263671875, -0.0254669189453125, -0.019927978515625, 0.006946563720703125, 0.01947021484375, 0.02899169921875, -0.0124053955078125, 0.0172271728515625, -0.01103973388671875, -0.0297393798828125, -0.0004506111145019531, 0.00702667236328125, 0.00421142578125, 0.0196533203125, 0.02569580078125, -0.0128326416015625, -0.0246124267578125, 0.00392913818359375, -0.02294921875, 0.01605224609375, -0.038299560546875, -0.0253448486328125, 0.031768798828125, -0.03912353515625, -0.0038604736328125, 0.037384033203125, 0.0228271484375, -0.01384735107421875, -0.0265350341796875, 0.0194244384765625, 0.01407623291015625, 0.04388427734375, 0.006023406982421875, -0.0242462158203125, -0.0229644775390625, -0.020416259765625, -0.00846099853515625, -0.037628173828125, -0.046722412109375, 0.00634765625, 0.00604248046875, -0.059906005859375, 0.0161895751953125, 0.0305023193359375, -0.046478271484375, -0.01042938232421875, -0.0289459228515625, 0.00765228271484375, -0.023956298828125, -0.002162933349609375, 0.01438140869140625, 0.01520538330078125, -0.0195465087890625, -0.08673095703125, 0.00740814208984375, 0.0306243896484375, -0.004528045654296875, 0.021942138671875, -0.05712890625, -0.0672607421875, -0.051971435546875, 0.0677490234375, -0.0201568603515625, -0.06781005859375, 0.0233154296875, -0.0467529296875, 0.0066070556640625, 0.035491943359375, -0.04498291015625, -0.02984619140625, 0.00786590576171875, -0.007213592529296875, -0.0167388916015625, 0.003204345703125, -0.0031948089599609375, 0.045806884765625, -0.04364013671875, 0.01357269287109375, 0.01513671875, -0.0195159912109375, -0.0146026611328125, -0.034698486328125, 0.025665283203125, 0.0099334716796875, 0.0223388671875, -0.0078582763671875, 0.045806884765625, -0.003971099853515625, -0.033721923828125, 0.0172882080078125, 0.002613067626953125, -0.005901336669921875, 0.023468017578125, 0.01052093505859375, -0.027191162109375, -0.0059661865234375, -0.0121612548828125, 0.039794921875, -0.01433563232421875, 0.00894927978515625, 0.027984619140625, -0.032012939453125, -0.01593017578125, -0.017730712890625, 0.039825439453125, -0.01041412353515625, 0.0280303955078125, -0.00978851318359375, 0.0018777847290039062, -0.0208587646484375, -0.042327880859375, 0.01100921630859375, -0.052642822265625, -0.007541656494140625, 0.02655029296875, 0.00841522216796875, 0.005680084228515625, -0.0254058837890625, 0.034393310546875, -0.0247344970703125, -0.033355712890625, -0.00020325183868408203, -0.0013780593872070312, 0.015960693359375, 0.0151824951171875, 0.0081024169921875, -0.00888824462890625, -0.0252227783203125, 0.06488037109375, -0.0108184814453125, -0.037841796875, 0.02288818359375, 0.02325439453125, 0.04052734375, 0.0006957054138183594, 0.0217132568359375, 0.0179901123046875, 0.034423828125, 0.0123291015625, -0.00197601318359375, -0.01351165771484375, -0.053009033203125, 0.0009822845458984375, -0.00759124755859375, -0.018035888671875, 0.0212554931640625, 0.019989013671875, 0.00701904296875, -0.0010843276977539062, -0.00936126708984375, -0.0814208984375, 0.006134033203125, -0.037353515625, 0.040191650390625, -0.007549285888671875, 0.0216827392578125, 0.019683837890625, -0.00296783447265625, -0.06451416015625, 0.08404541015625, -0.0285186767578125, -0.037567138671875, -0.0274505615234375, 0.033935546875, -0.0165252685546875, 0.03131103515625, -0.038238525390625, -0.0199432373046875, -0.03472900390625, -0.03240966796875, 0.01021575927734375, -0.006832122802734375, 0.004268646240234375, 0.006786346435546875, 0.06500244140625, -0.006587982177734375, 0.0640869140625, -0.007099151611328125, 0.026275634765625, 0.059661865234375, -0.0037136077880859375, -0.030670166015625, -0.0283660888671875, -0.10699462890625, 0.0077972412109375, 0.0655517578125, 0.039215087890625, 0.01213836669921875, -0.0190582275390625, -0.048187255859375, 0.007167816162109375, -0.051300048828125, 0.0195465087890625, -0.0287628173828125, 0.0062103271484375, 0.0072784423828125, -0.007106781005859375, -0.03350830078125, 0.038848876953125, -0.0185394287109375, -0.018280029296875, 0.03668212890625, -0.055572509765625, -0.012847900390625, 0.0115203857421875, -0.0158843994140625, 0.006378173828125, -0.0169525146484375, 0.021697998046875, -0.0216522216796875, 0.01629638671875, -0.0224456787109375, 0.0013494491577148438, -0.0025234222412109375, 0.00901031494140625, -0.003856658935546875, -0.00005078315734863281, -0.09893798828125, 0.00228118896484375, 0.0134124755859375, -0.0012493133544921875, 0.05792236328125, -0.0249481201171875, -0.00981903076171875, 0.02996826171875, 0.016510009765625, -0.019744873046875, 0.06280517578125, 0.0006365776062011719, -0.022125244140625, -0.0224151611328125, -0.019195556640625, 0.0143280029296875, -0.021209716796875, 0.005962371826171875, 0.00328826904296875, 0.01320648193359375, 0.06195068359375, -0.0209197998046875, 0.0643310546875, -0.040771484375, 0.0029506683349609375, 0.03729248046875, -0.0247955322265625, 0.029022216796875, -0.043212890625, 0.01165008544921875, 0.048675537109375, -0.01482391357421875, -0.01131439208984375, -0.01088714599609375, 0.028076171875, 0.0283050537109375, -0.00801849365234375, -0.02862548828125, -0.0011148452758789062, -0.093505859375, -0.04156494140625, 0.0389404296875, 0.07293701171875, 0.018310546875, -0.041259765625, 0.03289794921875, 0.0555419921875, -0.017822265625, -0.0927734375, -0.05145263671875, 0.00872802734375, 0.0036773681640625, 0.0108642578125, 0.022979736328125, 0.01137542724609375, 0.00510406494140625, 0.006622314453125, 0.023040771484375, -0.040802001953125, -0.06756591796875, -0.041717529296875, -0.0736083984375, 0.01129913330078125, 0.00482940673828125, 0.029632568359375, 0.0013227462768554688, 0.0565185546875, 0.0016231536865234375, -0.051025390625, -0.01381683349609375, 0.0105133056640625, -0.0254974365234375, -0.0157928466796875, -0.030792236328125, 0.00980377197265625, 0.0026569366455078125, 0.0010480880737304688, -0.00923919677734375, 0.0024166107177734375, 0.0144805908203125, -0.01035308837890625, 0.01715087890625, 0.025634765625, 0.043975830078125, -0.004390716552734375, -0.029388427734375, 0.01215362548828125, 0.005092620849609375, -0.0379638671875, -0.033111572265625, 0.016693115234375, -0.029937744140625, 0.0258941650390625, -0.011749267578125, -0.01268768310546875, 0.041748046875, 0.00353240966796875, 0.059967041015625, 0.017059326171875, -0.00344085693359375, -0.0185394287109375, 0.07293701171875, 0.022674560546875, 0.0472412109375, -0.04534912109375, 0.052337646484375, -0.013946533203125, -0.032501220703125, 0.013031005859375, 0.0014705657958984375, -0.0003955364227294922, -0.01004791259765625, -0.038665771484375, -0.018096923828125, 0.036163330078125, -0.02447509765625, 0.005329132080078125, -0.005290985107421875, -0.01012420654296875, 0.0226593017578125, 0.07745361328125, 0.019805908203125, -0.038116455078125, -0.01508331298828125, 0.003910064697265625, 0.0087890625, -0.0028820037841796875, 0.031341552734375, -0.0251922607421875, -0.0582275390625, 0.0187225341796875, -0.01189422607421875, -0.0190887451171875, -0.006465911865234375, -0.013580322265625, -0.0311126708984375, -0.0394287109375, 0.0207672119140625, -0.034149169921875, 0.00832366943359375, 0.00916290283203125, -0.009857177734375, -0.0052490234375, 0.01036834716796875, -0.06024169921875, -0.08367919921875, -0.0127716064453125, -0.046539306640625, 0.07147216796875, 0.00994110107421875, 0.0216522216796875, -0.0214080810546875, 0.0238037109375, -0.01560211181640625, -0.02392578125, 0.040618896484375, 0.0309600830078125, 0.005626678466796875, 0.01201629638671875, 0.00908660888671875, -0.0261993408203125, 0.01122283935546875, -0.001861572265625, -0.031829833984375, 0.03106689453125, -0.0205078125, 0.0290679931640625, 0.0171051025390625, -0.025421142578125, 0.0255126953125, -0.0240020751953125, -0.0155181884765625, 0.03839111328125, -0.00850677490234375, -0.00399017333984375, -0.035888671875, -0.0065460205078125, 0.01151275634765625, -0.00394439697265625, -0.026702880859375, 0.00604248046875, 0.03546142578125, 0.0292205810546875, -0.0159454345703125, -0.005702972412109375, 0.0111236572265625, 0.026214599609375, -0.0289459228515625, 0.0311737060546875, 0.003856658935546875, -0.033447265625, 0.05096435546875, -0.01708984375, -0.0283660888671875, 0.039703369140625, 0.01468658447265625, 0.0212249755859375, -0.0200653076171875, 0.0033397674560546875, 0.003925323486328125, -0.008148193359375, 0.032196044921875, -0.0221710205078125, 0.013824462890625, 0.013824462890625, 0.015777587890625, -0.044769287109375, 0.024810791015625, -0.01751708984375, -0.028045654296875, 0.009857177734375, -0.0215606689453125, 0.0156402587890625, -0.01537322998046875, 0.01253509521484375, -0.01253509521484375, 0.001861572265625, -0.0023403167724609375, -0.0286102294921875, 0.007793426513671875, -0.00243377685546875, 0.052337646484375, -0.024444580078125, 0.01203155517578125, -0.04071044921875, -0.0017910003662109375, 0.04022216796875, -0.00775909423828125, -0.047515869140625, 0.00331878662109375, -0.019989013671875, 0.021484375, 0.034210205078125, -0.03594970703125, 0.02081298828125, 0.006744384765625, -0.0309906005859375, 0.004474639892578125, -0.046966552734375, -0.031951904296875, -0.056793212890625, 0.02667236328125, 0.025970458984375, 0.005008697509765625, -0.0015316009521484375, 0.056304931640625, 0.00238800048828125, 0.0181884765625, -0.009490966796875, -0.00923919677734375, 0.0031566619873046875, 0.04876708984375, 0.031982421875, -0.052703857421875, 0.00012981891632080078, 0.0307464599609375, 0.01187896728515625, -0.0286102294921875, -0.0301971435546875, -0.00882720947265625, 0.00927734375, -0.0521240234375, -0.0060272216796875, 0.06829833984375, 0.0279541015625, -0.035552978515625, 0.031951904296875, 0.02386474609375, -0.0163726806640625, -0.058990478515625, -0.06781005859375, 0.019805908203125, 0.0208740234375, -0.0015478134155273438, 0.031341552734375, 0.022216796875, 0.0487060546875, 0.00646209716796875, -0.00006115436553955078, 0.004955291748046875, 0.0113677978515625, -0.0241851806640625, -0.04095458984375, -0.01488494873046875, -0.018646240234375, 0.02911376953125, -0.0163116455078125, -0.0215606689453125, -0.00211334228515625, -0.06103515625, -0.01262664794921875, -0.038238525390625, 0.0653076171875, -0.0765380859375, 0.01445770263671875, 0.03924560546875, 0.036834716796875, 0.0171661376953125, -0.032989501953125, -0.0243682861328125, -0.026702880859375, 0.01953125, -0.01312255859375, 0.0006165504455566406, -0.0222625732421875, 0.0474853515625, 0.01824951171875, 0.036407470703125, -0.02642822265625, -0.0250244140625, 0.004467010498046875, 0.00933837890625, -0.0220184326171875, -0.035614013671875, 0.063720703125, 0.00925445556640625, 0.012786865234375, 0.0159912109375, 0.0313720703125, 0.0068359375, -0.01043701171875, -0.00445556640625, -0.01354217529296875, 0.0258331298828125, -0.0136566162109375, 0.016448974609375, -0.01690673828125, 0.027008056640625, 0.0058746337890625, 0.0001932382583618164, -0.00913238525390625, -0.007694244384765625, 0.007354736328125, 0.053924560546875, 0.0172119140625, -0.006122589111328125, 0.068603515625, -0.035888671875, -0.03350830078125, 0.000232696533203125, 0.0007081031799316406, 0.003170013427734375, -0.005565643310546875, -0.02783203125, 0.01541900634765625, -0.005157470703125, 0.031646728515625, 0.04931640625, -0.0047149658203125, 0.04852294921875, -0.003742218017578125, 0.00699615478515625, 0.037322998046875, 0.0178070068359375, 0.007350921630859375, -0.033966064453125, 0.067626953125, 0.0199737548828125, -0.0252685546875, 0.055755615234375, -0.04718017578125, 0.0303802490234375, 0.057281494140625, 0.09332275390625, -0.083740234375, 0.01384735107421875, 0.04620361328125, -0.02886962890625, -0.021697998046875, -0.01439666748046875, -0.018890380859375, -0.032501220703125, 0.062286376953125, -0.0290985107421875, -0.01537322998046875, 0.015960693359375, -0.00962066650390625, 0.0003643035888671875, -0.0181732177734375, 0.0772705078125, 0.006351470947265625, -0.061248779296875, 0.04718017578125, 0.0250701904296875, 0.017364501953125, 0.0276947021484375, 0.039215087890625, -0.0008249282836914062, -0.0168609619140625, -0.0313720703125, -0.0017232894897460938, -0.007183074951171875, -0.041900634765625, -0.0282745361328125, 0.005519866943359375, 0.0080108642578125, 0.0272216796875, -0.0124664306640625, -0.0150146484375, 0.006328582763671875, -0.0181121826171875, -0.0271148681640625, -0.00516510009765625, -0.005306243896484375, 0.040283203125, -0.0213470458984375, 0.0200653076171875, -0.016845703125, 0.006290435791015625, 0.01486968994140625, 0.0123443603515625, 0.031768798828125, -0.01535797119140625, -0.01511383056640625, 0.03411865234375, -0.00846099853515625, 0.00783538818359375, -0.03765869140625, 0.0229339599609375, -0.05645751953125, 0.00250244140625, -0.01131439208984375, 0.01313018798828125, 0.005767822265625, -0.0166473388671875, -0.018402099609375, 0.02886962890625, 0.0160980224609375, -0.005199432373046875, 0.048431396484375, -0.0078582763671875, -0.041473388671875, -0.0198516845703125, -0.064208984375, 0.0496826171875, -0.01161956787109375, 0.1002197265625, -0.06134033203125, -0.0038604736328125, 0.02984619140625, 0.0199737548828125, -0.007266998291015625, -0.002513885498046875, -0.00641632080078125, 0.005767822265625, 0.034912109375, 0.0098114013671875, -0.0029125213623046875, 0.02520751953125, 0.006542205810546875, 0.045745849609375, 0.089111328125, -0.0552978515625, 0.04290771484375, -0.0290069580078125, 0.0294952392578125, 0.01268768310546875, -0.00049591064453125, -0.0194854736328125, -0.006519317626953125, -0.024749755859375, 0.0280914306640625, -0.0159149169921875, -0.02093505859375, -0.012939453125, 0.01253509521484375, 0.06622314453125, 0.0653076171875, -0.052337646484375, -0.0288238525390625, -0.031890869140625, 0.0445556640625, -0.008941650390625, 0.0251617431640625, 0.035858154296875, 0.00801849365234375, 0.078857421875, 0.0093841552734375, 0.005664825439453125, 0.008209228515625, 0.002452850341796875, 0.0272216796875, 0.023040771484375, 0.0267791748046875, -0.03338623046875, 0.0013027191162109375, 0.023193359375, 0.044036865234375, -0.036224365234375, -0.02197265625, 0.0024852752685546875, 0.00308990478515625, 0.0156707763671875, -0.0149688720703125, 0.01102447509765625, 0.01395416259765625, 0.04443359375, -0.025238037109375, -0.040191650390625, 0.004302978515625, -0.006778717041015625, -0.0291595458984375, -0.0293426513671875, 0.0748291015625, -0.0269775390625, 0.0318603515625, -0.045440673828125, 0.01197052001953125, 0.049652099609375, -0.0015077590942382812, -0.0107574462890625, -0.09796142578125, -0.0007729530334472656, -0.046417236328125, 0.01395416259765625, -0.02288818359375, 0.07440185546875, -0.049407958984375, 0.00568389892578125, -0.0203399658203125, 0.03399658203125, -0.0092315673828125, -0.040802001953125, 0.0073394775390625, 0.01166534423828125, -0.0440673828125, -0.0184173583984375, 0.0277557373046875, -0.0170745849609375, -0.0572509765625, -0.050018310546875, 0.00850677490234375, 0.050567626953125, 0.0298919677734375, 0.0189208984375, 0.0323486328125, 0.0168304443359375, -0.0302734375, 0.020538330078125, 0.0041656494140625, -0.0035457611083984375, 0.04754638671875, -0.026580810546875, 0.0170745849609375, 0.0028247833251953125, -0.1309814453125, -0.04833984375, -0.007843017578125, 0.033782958984375, 0.0123443603515625, 0.026519775390625, 0.006893157958984375, 0.0288848876953125, 0.01253509521484375, -0.016693115234375, 0.0262908935546875, -0.0173187255859375, 0.00445556640625, -0.0138397216796875, 0.01593017578125, -0.0118865966796875, 0.01055908203125, -0.0033817291259765625, 0.042449951171875, 0.00878143310546875, -0.0246734619140625, 0.02044677734375, 0.0029888153076171875, -0.0123443603515625, -0.0234832763671875, 0.04974365234375, -0.0494384765625, -0.007781982421875, 0.015625, -0.003936767578125, -0.0008997917175292969, 0.0018472671508789062, -0.040069580078125, 0.017333984375, -0.0024566650390625, -0.01229095458984375, 0.0172119140625, -0.051422119140625, 0.029266357421875, 0.0194854736328125, 0.03839111328125, -0.0179901123046875, -0.035003662109375, -0.0094146728515625, 0.017242431640625, 0.01041412353515625, 0.049835205078125, 0.0023479461669921875, 0.036224365234375, -0.030059814453125, -0.00789642333984375, 0.01503753662109375, -0.033966064453125, 0.03570556640625, 0.035400390625, -0.07232666015625, 0.033721923828125, -0.0579833984375, -0.037322998046875, -0.00691986083984375, -0.01010894775390625, -0.022674560546875, -0.0310211181640625, 0.054107666015625, -0.01322174072265625, -0.034210205078125, -0.0010356903076171875, -0.0268402099609375, -0.0159149169921875, -0.0119171142578125, 0.0186004638671875, -0.02642822265625, 0.0081634521484375, -0.01215362548828125, 0.006439208984375, -0.0290374755859375, 0.0015869140625, 0.01275634765625, -0.0235443115234375, 0.026947021484375, 0.008880615234375, 0.006870269775390625, -0.006763458251953125, -0.06280517578125, 0.0187530517578125, -0.0129547119140625, 0.060394287109375, -0.048095703125, 0.026153564453125, 0.003307342529296875, 0.02398681640625, -0.039947509765625, -0.0285797119140625, 0.0044708251953125, 0.0248565673828125, -0.00405120849609375, 0.0136260986328125, 0.0382080078125, -0.0255126953125, -0.0692138671875, -0.0266876220703125, -0.0013360977172851562, 0.0016012191772460938, 0.0197906494140625, -0.028411865234375, 0.01107025146484375, -0.006282806396484375, -0.01312255859375, -0.046539306640625, 0.00128173828125, -0.052276611328125, 0.0002834796905517578, 0.007083892822265625, -0.00882720947265625, 0.0028095245361328125, -0.0311431884765625, -0.063232421875, 0.10211181640625, -0.0157623291015625, -0.019439697265625, 0.0080718994140625, -0.041351318359375, -0.008697509765625, 0.0019550323486328125, -0.01160430908203125, 0.0079498291015625, -0.01522064208984375, 0.033843994140625, 0.01558685302734375, -0.0308685302734375, 0.0428466796875, -0.01259613037109375, -0.05816650390625, 0.0008373260498046875, -0.00481414794921875, 0.00628662109375, -0.007389068603515625, 0.0208587646484375, -0.01090240478515625, 0.037567138671875, -0.0204620361328125, -0.01480865478515625, -0.0154571533203125, -0.023956298828125, 0.0240020751953125, 0.003208160400390625, -0.0185699462890625, 0.00365447998046875, 0.06268310546875, 0.0295562744140625, 0.0250244140625, -0.02374267578125, -0.028167724609375, 0.02801513671875, -0.02874755859375, -0.021881103515625, 0.0176239013671875, -0.06378173828125, -0.0225982666015625, -0.0162811279296875, -0.0078125, -0.0135498046875, -0.007389068603515625, -0.03741455078125, 0.0147552490234375, 0.043060302734375, 0.0111083984375, -0.031890869140625, -0.0640869140625, 0.032318115234375, -0.024688720703125, -0.0003783702850341797, -0.01349639892578125, 0.04925537109375, 0.00624847412109375, 0.010040283203125, 0.007511138916015625, 0.0158843994140625, -0.027252197265625, 0.0004782676696777344, 0.00992584228515625, -0.006275177001953125, 0.0010662078857421875, -0.0095062255859375, 0.032257080078125, 0.00885009765625, -0.020965576171875, 0.0222015380859375, 0.06744384765625, -0.00939178466796875, -0.048675537109375, 0.0127716064453125, 0.0208740234375, 0.039703369140625, 0.017364501953125, 0.031585693359375, 0.02099609375, -0.03271484375, 0.027069091796875, -0.036376953125, -0.002666473388671875, 0.0107269287109375, 0.0006508827209472656, -0.057861328125, 0.0277099609375, 0.09613037109375, 0.0214691162109375, 0.033721923828125 ]
143655d9f1a11485060e01b219ad1b5165f8aa20
Wordpress Stackexchange Q: TinyMCE 4.x : How to customize toolbar on wp_editor() Since upgrading to Wordpress 3.9 (which includes TinyMCE 4.x), I have problems customizing the editor, displayed via wp_editor() In the example below, I want to disable the 'fullscreen' button, but this doesn't work. $settings = array( 'textarea_name' => 'description', 'quicktags' => false, 'media_buttons' => false, 'teeny' => true, 'tinymce'=> array( 'theme_advanced_disable' => 'fullscreen' ) ); wp_editor( $content, 'description', $settings ); Unfortunately, the documentation for TinyMCE API 4.x isn't as helpful to me as the 3.8 one A: Try this: replace 'theme_advanced_disable' => 'fullscreen' with 'toolbar1'=> 'bold,italic,underline,bullist,numlist,link,unlink,forecolor,undo,redo' Also, remove 'teeny' => true,
Q: TinyMCE 4.x : How to customize toolbar on wp_editor() Since upgrading to Wordpress 3.9 (which includes TinyMCE 4.x), I have problems customizing the editor, displayed via wp_editor() In the example below, I want to disable the 'fullscreen' button, but this doesn't work. $settings = array( 'textarea_name' => 'description', 'quicktags' => false, 'media_buttons' => false, 'teeny' => true, 'tinymce'=> array( 'theme_advanced_disable' => 'fullscreen' ) ); wp_editor( $content, 'description', $settings ); Unfortunately, the documentation for TinyMCE API 4.x isn't as helpful to me as the 3.8 one A: Try this: replace 'theme_advanced_disable' => 'fullscreen' with 'toolbar1'=> 'bold,italic,underline,bullist,numlist,link,unlink,forecolor,undo,redo' Also, remove 'teeny' => true, A: adding this filter below your code you can delete fullscreen button or another with teeny=>true, deleting items from $buttons array (fullscreen is 14 counting from left to right from 0 ) first remove from $settings 'tinymce'=> array( 'theme_advanced_disable' => 'fullscreen' ) and add filter add_filter( "teeny_mce_buttons", "gk_comment_form_no_fullscreen"); function gk_comment_form_no_fullscreen($buttons) { unset($buttons[14]); return $buttons; }
wordpress
{ "language": "en", "length": 156, "provenance": "stackexchange_00019.jsonl.gz:444383", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141708" }
[ -0.00537872314453125, -0.0259552001953125, -0.0007843971252441406, 0.0212249755859375, -0.019439697265625, -0.01259613037109375, 0.05657958984375, 0.00005608797073364258, 0.04852294921875, 0.035186767578125, 0.042266845703125, -0.0276641845703125, -0.004108428955078125, -0.03564453125, -0.039031982421875, 0.017608642578125, 0.0255584716796875, -0.0089569091796875, 0.031097412109375, -0.005420684814453125, 0.0145416259765625, -0.008758544921875, 0.027374267578125, 0.00466156005859375, 0.00004553794860839844, 0.00038170814514160156, 0.0733642578125, -0.037689208984375, 0.00925445556640625, -0.02325439453125, 0.010589599609375, -0.0118560791015625, 0.006343841552734375, 0.0655517578125, -0.051544189453125, 0.02545166015625, -0.0287017822265625, 0.04437255859375, 0.020751953125, 0.01184844970703125, 0.04559326171875, -0.0272064208984375, -0.0243682861328125, -0.00225067138671875, -0.020751953125, -0.03216552734375, 0.0673828125, -0.0341796875, 0.00304412841796875, 0.01410675048828125, -0.0215911865234375, 0.038665771484375, -0.0053558349609375, -0.00937652587890625, -0.007965087890625, -0.0182647705078125, -0.01486968994140625, 0.019378662109375, 0.0116119384765625, 0.06622314453125, 0.0108795166015625, 0.0286712646484375, -0.0247650146484375, -0.049407958984375, 0.01218414306640625, -0.007541656494140625, -0.040069580078125, 0.0157470703125, 0.00836181640625, 0.0168304443359375, 0.0038547515869140625, -0.029754638671875, 0.033538818359375, -0.033660888671875, 0.014495849609375, -0.0013866424560546875, -0.0240936279296875, -0.00849151611328125, 0.040130615234375, -0.038299560546875, 0.01334381103515625, 0.035064697265625, -0.049591064453125, -0.0277099609375, 0.022674560546875, -0.006206512451171875, -0.01100921630859375, -0.0141754150390625, 0.003505706787109375, 0.0151214599609375, 0.004558563232421875, -0.050048828125, 0.02105712890625, 0.07049560546875, 0.01387786865234375, -0.0157318115234375, 0.034332275390625, -0.0186309814453125, 0.007083892822265625, -0.008453369140625, 0.046600341796875, -0.0692138671875, 0.06146240234375, -0.004428863525390625, 0.0187835693359375, 0.00025200843811035156, -0.018829345703125, 0.00850677490234375, 0.056671142578125, 0.0330810546875, -0.004486083984375, 0.01508331298828125, -0.0157012939453125, -0.0194854736328125, -0.013397216796875, -0.011627197265625, -0.041534423828125, 0.04705810546875, -0.00225830078125, 0.02777099609375, -0.00791168212890625, 0.01381683349609375, 0.006572723388671875, -0.00261688232421875, -0.0152435302734375, -0.0175018310546875, 0.00814056396484375, -0.022674560546875, 0.004810333251953125, 0.028594970703125, -0.046417236328125, -0.0033054351806640625, 0.043487548828125, 0.04486083984375, 0.036468505859375, -0.035308837890625, 0.0242919921875, -0.00992584228515625, 0.007320404052734375, 0.04351806640625, -0.045440673828125, -0.0379638671875, 0.034698486328125, -0.0225372314453125, -0.010223388671875, 0.01983642578125, 0.0267486572265625, 0.0011796951293945312, -0.0166473388671875, -0.04595947265625, 0.0243377685546875, -0.0196990966796875, 0.035064697265625, 0.036407470703125, -0.02691650390625, -0.00797271728515625, 0.0692138671875, -0.046142578125, -0.035858154296875, -0.06805419921875, 0.031341552734375, 0.0006346702575683594, -0.004467010498046875, -0.03265380859375, -0.03033447265625, -0.0200042724609375, -0.03857421875, -0.00630950927734375, 0.026885986328125, 0.041107177734375, -0.024383544921875, -0.000576019287109375, 0.0066986083984375, 0.02496337890625, -0.0079193115234375, 0.029296875, -0.018890380859375, 0.0122833251953125, 0.04107666015625, -0.0099945068359375, -0.0200958251953125, -0.039093017578125, 0.061920166015625, -0.0240325927734375, -0.048126220703125, 0.007534027099609375, 0.0024738311767578125, 0.05694580078125, 0.0147247314453125, 0.0249786376953125, 0.004627227783203125, -0.004608154296875, -0.0026340484619140625, -0.023406982421875, 0.0293426513671875, 0.0011157989501953125, -0.037567138671875, -0.004840850830078125, 0.00323486328125, -0.0085906982421875, 0.0426025390625, -0.0234222412109375, 0.029541015625, -0.0200958251953125, -0.07598876953125, 0.021759033203125, -0.023773193359375, 0.04168701171875, 0.038238525390625, -0.0218353271484375, -0.01255035400390625, -0.030364990234375, -0.01279449462890625, 0.046875, -0.0296783447265625, 0.040679931640625, -0.01094818115234375, 0.050567626953125, 0.0275726318359375, 0.0439453125, 0.05450439453125, -0.01250457763671875, 0.0655517578125, 0.004619598388671875, 0.0450439453125, -0.034332275390625, -0.005886077880859375, -0.0298919677734375, 0.0687255859375, -0.0162200927734375, 0.0205841064453125, 0.010986328125, 0.03424072265625, 0.01073455810546875, -0.040130615234375, -0.0253448486328125, -0.003948211669921875, -0.06890869140625, 0.00732421875, 0.06732177734375, 0.038543701171875, -0.0169830322265625, -0.056549072265625, -0.036834716796875, 0.04388427734375, 0.01221466064453125, 0.00994873046875, -0.03021240234375, 0.0303802490234375, 0.03759765625, 0.012481689453125, -0.035797119140625, 0.0171051025390625, -0.0030117034912109375, 0.0204315185546875, 0.023773193359375, 0.00690460205078125, 0.040802001953125, 0.00945281982421875, -0.002368927001953125, -0.016143798828125, 0.0092010498046875, 0.017181396484375, -0.0122833251953125, 0.048797607421875, 0.01959228515625, 0.046844482421875, 0.037445068359375, -0.057708740234375, 0.0312042236328125, 0.0172882080078125, 0.0193939208984375, 0.003246307373046875, -0.0185394287109375, 0.0221710205078125, -0.03741455078125, -0.032501220703125, 0.013092041015625, 0.01580810546875, -0.0274200439453125, -0.0296783447265625, 0.0208892822265625, 0.0113525390625, -0.012481689453125, 0.0008344650268554688, -0.05291748046875, 0.015625, -0.0372314453125, -0.00884246826171875, -0.05108642578125, -0.0168914794921875, 0.031951904296875, -0.033233642578125, 0.0479736328125, 0.0010919570922851562, -0.0208282470703125, 0.055389404296875, 0.010650634765625, 0.0255584716796875, -0.0047454833984375, 0.03753662109375, 0.04364013671875, -0.0400390625, 0.024261474609375, 0.0181121826171875, -0.00977325439453125, 0.0104217529296875, 0.0266265869140625, 0.026702880859375, 0.0196533203125, -0.049530029296875, 0.0158233642578125, 0.03314208984375, 0.03448486328125, 0.004779815673828125, -0.0290374755859375, -0.003875732421875, 0.056640625, -0.01454925537109375, 0.01032257080078125, 0.01715087890625, -0.038818359375, -0.0369873046875, -0.0169677734375, -0.01535797119140625, 0.00850677490234375, -0.0055084228515625, -0.01477813720703125, -0.034515380859375, 0.00705718994140625, 0.0062255859375, 0.0008730888366699219, -0.00579833984375, -0.01910400390625, -0.0015192031860351562, -0.006511688232421875, 0.00846099853515625, 0.06927490234375, -0.0004940032958984375, -0.04327392578125, 0.004302978515625, -0.0075531005859375, -0.010589599609375, 0.01366424560546875, 0.02642822265625, -0.0357666015625, 0.00774383544921875, 0.007732391357421875, -0.01160430908203125, 0.00855255126953125, -0.0011091232299804688, -0.0406494140625, -0.01042938232421875, 0.005214691162109375, -0.00209808349609375, 0.051788330078125, 0.0281219482421875, -0.00902557373046875, 0.03509521484375, -0.041168212890625, -0.038787841796875, 0.0234375, -0.0491943359375, 0.041168212890625, 0.006694793701171875, -0.0140380859375, 0.01611328125, 0.043121337890625, 0.0292816162109375, 0.0253753662109375, 0.051361083984375, -0.002613067626953125, 0.00600433349609375, -0.007465362548828125, 0.00447845458984375, -0.050445556640625, -0.016143798828125, -0.034576416015625, 0.0247650146484375, -0.0233306884765625, -0.01432037353515625, -0.0155181884765625, -0.005321502685546875, -0.00405120849609375, -0.0203857421875, 0.037261962890625, -0.048187255859375, -0.028167724609375, -0.017608642578125, -0.0167236328125, 0.01044464111328125, 0.060699462890625, -0.01068878173828125, 0.00719451904296875, 0.005985260009765625, -0.00757598876953125, -0.0243988037109375, -0.0022125244140625, -0.0760498046875, 0.01445770263671875, -0.07861328125, 0.0172119140625, -0.0016489028930664062, -0.027679443359375, -0.044342041015625, 0.040496826171875, -0.06915283203125, -0.023956298828125, 0.038726806640625, -0.00667572021484375, -0.0223541259765625, 0.006927490234375, -0.047210693359375, -0.012847900390625, -0.021270751953125, -0.000004351139068603516, -0.09881591796875, -0.01132965087890625, -0.0562744140625, 0.06707763671875, 0.00249481201171875, 0.0201568603515625, -0.052520751953125, 0.031341552734375, -0.00514984130859375, -0.006591796875, 0.0187530517578125, 0.02471923828125, -0.0250244140625, 0.007091522216796875, 0.00574493408203125, -0.0272064208984375, 0.006359100341796875, 0.0139923095703125, -0.06671142578125, -0.0015668869018554688, -0.018798828125, -0.042694091796875, 0.044036865234375, -0.05853271484375, -0.021331787109375, -0.042236328125, -0.038665771484375, 0.0212249755859375, -0.0185546875, -0.007213592529296875, -0.055633544921875, -0.046417236328125, 0.0404052734375, -0.03240966796875, 0.00048065185546875, 0.0019359588623046875, 0.05718994140625, 0.0098419189453125, -0.0165557861328125, -0.0100555419921875, -0.0146942138671875, 0.040496826171875, 0.00434112548828125, 0.006534576416015625, -0.014068603515625, -0.047271728515625, 0.07275390625, 0.011627197265625, 0.022003173828125, -0.040374755859375, 0.05841064453125, 0.00522613525390625, -0.004611968994140625, 0.022308349609375, -0.004756927490234375, -0.0164947509765625, -0.0026111602783203125, -0.02142333984375, 0.0235137939453125, -0.0079803466796875, 0.01239776611328125, 0.0162811279296875, -0.024078369140625, -0.0255279541015625, -0.0036220550537109375, 0.003177642822265625, 0.041656494140625, 0.025787353515625, 0.0054473876953125, 0.02099609375, -0.0263824462890625, -0.00799560546875, -0.028228759765625, 0.044921875, 0.0240478515625, 0.0075531005859375, 0.0161895751953125, 0.025299072265625, -0.031890869140625, 0.0013885498046875, 0.00643157958984375, 0.0019483566284179688, 0.01220703125, -0.02386474609375, -0.057647705078125, 0.040985107421875, 0.05450439453125, -0.01435089111328125, -0.035125732421875, 0.0159149169921875, 0.034332275390625, -0.0309295654296875, 0.0014696121215820312, 0.01031494140625, -0.023040771484375, -0.027313232421875, 0.01202392578125, 0.0227508544921875, -0.024932861328125, -0.029388427734375, 0.06134033203125, 0.0018281936645507812, -0.00319671630859375, -0.009307861328125, 0.01206207275390625, 0.00843048095703125, 0.037017822265625, 0.0125274658203125, 0.0149993896484375, -0.0159454345703125, 0.018890380859375, 0.00792694091796875, -0.03436279296875, -0.028564453125, 0.03564453125, 0.034423828125, -0.0006823539733886719, -0.01511383056640625, 0.0002868175506591797, -0.01263427734375, -0.007030487060546875, -0.003810882568359375, -0.038970947265625, -0.052825927734375, -0.005336761474609375, 0.049163818359375, 0.01515960693359375, -0.017822265625, -0.0262451171875, 0.0200958251953125, -0.06414794921875, -0.01074981689453125, 0.029083251953125, -0.043243408203125, -0.0096282958984375, -0.004688262939453125, 0.0018367767333984375, 0.0026531219482421875, -0.017608642578125, -0.08160400390625, -0.0765380859375, 0.0005173683166503906, 0.00452423095703125, 0.058807373046875, -0.006153106689453125, -0.0035610198974609375, -0.0225067138671875, 0.004444122314453125, -0.04949951171875, 0.00821685791015625, 0.018402099609375, -0.004314422607421875, 0.00955963134765625, 0.0242156982421875, -0.046783447265625, -0.0292816162109375, -0.060394287109375, -0.03839111328125, -0.059661865234375, -0.0299530029296875, 0.019134521484375, 0.0281982421875, 0.02911376953125, 0.0078887939453125, -0.0223388671875, 0.013763427734375, 0.00853729248046875, 0.07293701171875, 0.004367828369140625, 0.0253143310546875, -0.0244903564453125, 0.04833984375, -0.00322723388671875, 0.00223541259765625, 0.007762908935546875, -0.028533935546875, 0.0455322265625, -0.0148773193359375, -0.0611572265625, -0.0270538330078125, -0.0276336669921875, 0.0097503662109375, 0.0394287109375, -0.0269622802734375, 0.01480865478515625, -0.035186767578125, 0.0035915374755859375, -0.035430908203125, 0.035491943359375, -0.07159423828125, 0.013885498046875, -0.0254974365234375, -0.035736083984375, 0.0255889892578125, 0.0062713623046875, 0.0098114013671875, 0.0237579345703125, -0.033172607421875, 0.028106689453125, 0.00860595703125, -0.0276641845703125, 0.03955078125, 0.049835205078125, -0.0237579345703125, 0.0204315185546875, 0.0026721954345703125, -0.0202178955078125, 0.00799560546875, -0.0178070068359375, -0.03192138671875, 0.04522705078125, 0.0106048583984375, -0.0135650634765625, -0.00011581182479858398, 0.00450897216796875, 0.0004203319549560547, 0.03924560546875, 0.061065673828125, 0.1004638671875, -0.10015869140625, 0.0206146240234375, 0.038421630859375, -0.0169525146484375, 0.0251007080078125, -0.0258331298828125, -0.0133209228515625, -0.058563232421875, 0.1072998046875, -0.0273590087890625, 0.00926971435546875, 0.041107177734375, -0.0274200439453125, -0.0200042724609375, -0.005558013916015625, 0.039581298828125, 0.018524169921875, 0.0028362274169921875, 0.00838470458984375, 0.0227508544921875, 0.00804901123046875, 0.02667236328125, 0.0177001953125, -0.018890380859375, -0.0263824462890625, -0.02899169921875, -0.0254669189453125, -0.02294921875, -0.050537109375, 0.041961669921875, -0.01947021484375, -0.01953125, 0.05694580078125, -0.051910400390625, 0.06365966796875, 0.0240020751953125, -0.047271728515625, 0.01317596435546875, -0.0007510185241699219, 0.01233673095703125, 0.0199127197265625, -0.0205078125, 0.01253509521484375, -0.0024662017822265625, 0.01036834716796875, 0.0047149658203125, 0.03802490234375, 0.09552001953125, -0.004512786865234375, -0.043548583984375, 0.045806884765625, -0.023406982421875, -0.037689208984375, -0.0540771484375, -0.03155517578125, -0.08709716796875, -0.007537841796875, -0.0435791015625, -0.006793975830078125, 0.032318115234375, -0.057830810546875, -0.054168701171875, 0.12841796875, -0.00628662109375, 0.030609130859375, 0.00508880615234375, 0.056304931640625, -0.033966064453125, 0.037689208984375, 0.0015687942504882812, 0.00536346435546875, -0.013763427734375, -0.003398895263671875, 0.01267242431640625, 0.015777587890625, 0.0102996826171875, 0.0352783203125, 0.049835205078125, 0.006641387939453125, -0.04388427734375, 0.0002353191375732422, 0.053466796875, 0.042816162109375, 0.002838134765625, 0.051513671875, -0.0032367706298828125, -0.036651611328125, 0.011749267578125, 0.023345947265625, 0.036224365234375, -0.0122528076171875, -0.0220794677734375, 0.017669677734375, 0.023040771484375, 0.020111083984375, 0.014923095703125, 0.0222320556640625, 0.0222320556640625, -0.01800537109375, 0.0011320114135742188, -0.0718994140625, -0.034027099609375, 0.012359619140625, -0.0113983154296875, -0.037261962890625, -0.0009741783142089844, -0.0250244140625, 0.0272979736328125, -0.0016946792602539062, -0.0289764404296875, -0.03326416015625, 0.0012311935424804688, -0.01806640625, -0.0276641845703125, -0.039947509765625, 0.035247802734375, -0.0162353515625, -0.00588226318359375, 0.0006685256958007812, 0.0004811286926269531, -0.01654052734375, 0.01312255859375, 0.040802001953125, -0.007633209228515625, -0.0142974853515625, -0.06781005859375, -0.0003311634063720703, -0.0260772705078125, -0.0003752708435058594, -0.02142333984375, -0.03887939453125, -0.010406494140625, 0.056884765625, 0.00380706787109375, 0.003055572509765625, 0.0068817138671875, 0.02838134765625, -0.0014619827270507812, 0.00890350341796875, -0.02642822265625, -0.007137298583984375, -0.040557861328125, -0.0254669189453125, 0.0238494873046875, 0.0272216796875, 0.02203369140625, 0.041778564453125, 0.031280517578125, -0.0106353759765625, -0.03173828125, 0.043548583984375, -0.004650115966796875, 0.03472900390625, -0.040435791015625, -0.020294189453125, 0.00327301025390625, 0.0299835205078125, 0.011383056640625, -0.038116455078125, 0.0201416015625, 0.039703369140625, -0.00974273681640625, -0.0227813720703125, 0.0142364501953125, -0.0012521743774414062, -0.051544189453125, -0.03350830078125, -0.0294952392578125, 0.015777587890625, 0.00977325439453125, 0.030914306640625, 0.0093994140625, 0.0241851806640625, 0.0026493072509765625, 0.006740570068359375, 0.012176513671875, 0.002811431884765625, 0.0084075927734375, 0.0112457275390625, 0.00144195556640625, 0.03582763671875, -0.05877685546875, -0.003047943115234375, 0.01280975341796875, -0.06549072265625, 0.007686614990234375, 0.044281005859375, -0.0243988037109375, 0.006412506103515625, -0.058319091796875, -0.0241546630859375, 0.00034308433532714844, 0.0001914501190185547, 0.00016939640045166016, 0.0212554931640625, -0.005916595458984375, -0.01141357421875, -0.036224365234375, -0.00696563720703125, -0.01068878173828125, 0.01543426513671875, 0.007328033447265625, 0.048248291015625, 0.00276947021484375, 0.0238189697265625, -0.046539306640625, 0.031524658203125, -0.034271240234375, -0.052886962890625, 0.0260467529296875, 0.0244293212890625, 0.032867431640625, -0.00891876220703125, -0.04913330078125, 0.07379150390625, 0.0020351409912109375, 0.018035888671875, 0.04278564453125, 0.01000213623046875, -0.0036144256591796875, 0.00386810302734375, 0.01177978515625, -0.0197601318359375, 0.0038204193115234375, -0.025299072265625, -0.025543212890625, 0.023834228515625, -0.021209716796875, -0.026031494140625, -0.00217437744140625, 0.06494140625, -0.0004963874816894531, 0.0399169921875, 0.027618408203125, 0.0650634765625, 0.036773681640625, -0.0019435882568359375, -0.034942626953125, -0.00753021240234375, 0.0020122528076171875, -0.02392578125, 0.034149169921875, -0.025482177734375, 0.0096282958984375, -0.04876708984375, 0.061126708984375, 0.030120849609375, 0.05938720703125, -0.0018701553344726562, 0.0039043426513671875, 0.050750732421875, 0.0101470947265625, -0.0285186767578125, -0.0286102294921875, -0.0172271728515625, -0.017364501953125, -0.004276275634765625, 0.0237274169921875, -0.0175933837890625, -0.037017822265625, -0.0882568359375, 0.002559661865234375, 0.03399658203125, 0.0177764892578125, -0.0760498046875, 0.045318603515625, -0.017822265625, 0.037567138671875, 0.0030727386474609375, 0.043609619140625, -0.0272369384765625, 0.007099151611328125, -0.02166748046875, -0.00861358642578125, -0.05133056640625, 0.0252685546875, -0.02410888671875, -0.007678985595703125, 0.0222320556640625, 0.00787353515625, -0.036163330078125, 0.0231781005859375, -0.01215362548828125, 0.052642822265625, -0.05194091796875, -0.028717041015625, 0.034942626953125, -0.029022216796875, -0.00537109375, -0.030487060546875, -0.002353668212890625, -0.07135009765625, 0.0058135986328125, 0.045440673828125, -0.05352783203125, -0.01934814453125, -0.0594482421875, -0.0858154296875, 0.0027408599853515625, 0.0296173095703125, -0.052734375, 0.007843017578125, -0.0059967041015625, -0.0191802978515625, 0.035552978515625, 0.00835418701171875, -0.01197052001953125, 0.00897979736328125, 0.00637054443359375, 0.01190185546875, 0.05242919921875, -0.0256500244140625, 0.01029205322265625, -0.059600830078125, 0.01065826416015625, -0.0176239013671875, 0.024871826171875, -0.01160430908203125, 0.00763702392578125, 0.01285552978515625, 0.00970458984375, -0.01763916015625, -0.036163330078125, 0.0116729736328125, -0.02392578125, -0.0025615692138671875, -0.0278167724609375, -0.04632568359375, -0.0248260498046875, 0.07855224609375, 0.07861328125, 0.029815673828125, -0.02362060546875, -0.007137298583984375, -0.01995849609375, -0.015716552734375, 0.00235748291015625, 0.019500732421875, -0.05401611328125, 0.0033702850341796875, 0.0281524658203125, -0.0020160675048828125, -0.005184173583984375, 0.02130126953125, -0.01399993896484375, -0.01259613037109375, 0.0127105712890625, -0.0304412841796875, -0.03070068359375, 0.013275146484375, 0.06988525390625, -0.053924560546875, -0.0237579345703125, 0.0110931396484375, -0.00615692138671875, 0.00860595703125, -0.0093994140625, -0.03460693359375, -0.004901885986328125, -0.050872802734375, 0.0145263671875, -0.02752685546875, 0.0307159423828125, -0.046905517578125, 0.0184478759765625, 0.0037708282470703125, -0.01148223876953125, -0.018646240234375, -0.0081024169921875, 0.0200042724609375, -0.01175689697265625, -0.014312744140625, 0.020233154296875, 0.011138916015625, 0.0274810791015625, -0.0183258056640625, 0.0279693603515625, 0.051788330078125, -0.0241546630859375, 0.04486083984375, -0.004451751708984375, 0.015899658203125, 0.061798095703125, 0.0236358642578125, -0.0040130615234375, 0.0169677734375, 0.004718780517578125, 0.032073974609375, 0.0045623779296875 ]
ad6020e3cf4d4dd7d6304280be6631e7e090574d
Wordpress Stackexchange Q: Wordpress 3.9 Database Update Infinite Loop I recently updated my blog's Wordpress version to 3.9. After running the update I received this message upon trying to access the admin panel. Database Update Required WordPress has been updated! Before we send you on your way, we have to update your database to the newest version. The update process may take a little while, so please be patient. I am presented then with a button "Update Wordpress Database". When I click the button, after a short pause I am presented with the following message. Update Complete Your WordPress database has been successfully updated! Great. Except that whenever I try to access the admin panel I am re-presented the first message asking me once again to update my database. Does anybody know of a way out of this infinite loop? A: I had that on one of my sites recently (set to auto update core, so not sure if on 3.9 or one of 3.8.*). Flushing cache fixed it — wp cache flush via wp-cli, I imagine other ways would work just as well.
Q: Wordpress 3.9 Database Update Infinite Loop I recently updated my blog's Wordpress version to 3.9. After running the update I received this message upon trying to access the admin panel. Database Update Required WordPress has been updated! Before we send you on your way, we have to update your database to the newest version. The update process may take a little while, so please be patient. I am presented then with a button "Update Wordpress Database". When I click the button, after a short pause I am presented with the following message. Update Complete Your WordPress database has been successfully updated! Great. Except that whenever I try to access the admin panel I am re-presented the first message asking me once again to update my database. Does anybody know of a way out of this infinite loop? A: I had that on one of my sites recently (set to auto update core, so not sure if on 3.9 or one of 3.8.*). Flushing cache fixed it — wp cache flush via wp-cli, I imagine other ways would work just as well. A: This is due to a missmatch between the databases versions you said you are using in the settings. Please follow this steps: * *Go to /wp-include/ folder and open the version.php. *Find the value for $wp_db_version, and write it down. *Now, open your database, check in the table called wp_options *Find the db_version value: SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version'; *Those two values must be the same. Change it in the version.php file, not the database. Source: http://wpquestions.com/question/showChrono/id/4151 Source: https://stackoverflow.com/a/23506630/2615737
wordpress
{ "language": "en", "length": 265, "provenance": "stackexchange_00019.jsonl.gz:444392", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141731" }
[ 0.034881591796875, -0.0004718303680419922, -0.0240325927734375, -0.004730224609375, 0.0189056396484375, -0.042449951171875, 0.04827880859375, -0.01702880859375, 0.06964111328125, 0.0230255126953125, -0.09246826171875, -0.01473236083984375, 0.00946044921875, 0.025421142578125, -0.061065673828125, -0.027435302734375, 0.04449462890625, -0.013427734375, 0.04193115234375, 0.00958251953125, 0.00800323486328125, 0.041015625, 0.012237548828125, 0.0152740478515625, -0.01279449462890625, 0.004451751708984375, 0.04681396484375, -0.018768310546875, 0.0044403076171875, -0.01120758056640625, 0.0059967041015625, -0.01434326171875, 0.0222930908203125, 0.0311737060546875, -0.035064697265625, -0.0626220703125, -0.0145111083984375, 0.009735107421875, -0.01482391357421875, 0.0266876220703125, -0.00699615478515625, 0.01386260986328125, 0.033599853515625, -0.0108642578125, -0.01971435546875, -0.0029125213623046875, -0.02728271484375, -0.031463623046875, 0.023223876953125, 0.002170562744140625, 0.00020635128021240234, 0.003932952880859375, 0.0114288330078125, 0.01229095458984375, 0.0029010772705078125, 0.0021533966064453125, -0.0240020751953125, 0.0277252197265625, 0.0249176025390625, -0.0019664764404296875, -0.0189666748046875, -0.0035991668701171875, 0.01629638671875, -0.021453857421875, -0.02276611328125, -0.004932403564453125, 0.06634521484375, 0.002986907958984375, -0.035125732421875, -0.037841796875, 0.0288238525390625, 0.0226898193359375, -0.0118255615234375, -0.0212860107421875, 0.041046142578125, 0.01416778564453125, 0.01380157470703125, 0.01461029052734375, -0.0026416778564453125, 0.029083251953125, 0.046142578125, -0.005687713623046875, 0.0245361328125, 0.01526641845703125, -0.01415252685546875, 0.0240325927734375, -0.0007100105285644531, -0.0167388916015625, -0.005268096923828125, -0.0279541015625, -0.007328033447265625, -0.0216217041015625, -0.0099334716796875, 0.01178741455078125, -0.00661468505859375, -0.047698974609375, 0.0018138885498046875, 0.049346923828125, -0.037078857421875, 0.01470184326171875, -0.03399658203125, -0.0167694091796875, 0.021820068359375, -0.04156494140625, 0.00339508056640625, -0.005916595458984375, -0.016754150390625, -0.0241851806640625, 0.0347900390625, 0.043243408203125, -0.0089263916015625, 0.01027679443359375, -0.061187744140625, -0.02508544921875, -0.00904083251953125, 0.007259368896484375, -0.08056640625, 0.01009368896484375, -0.0147857666015625, -0.009674072265625, -0.0360107421875, 0.01885986328125, -0.0714111328125, -0.03692626953125, 0.0026187896728515625, -0.042236328125, 0.0126800537109375, 0.03509521484375, -0.0311737060546875, 0.006679534912109375, -0.043975830078125, 0.0280303955078125, 0.08453369140625, 0.028076171875, -0.00799560546875, -0.01537322998046875, 0.011627197265625, 0.0086669921875, -0.004573822021484375, 0.0343017578125, -0.00835418701171875, -0.051544189453125, -0.0228118896484375, -0.005077362060546875, 0.040374755859375, 0.052581787109375, 0.00817108154296875, -0.0293121337890625, 0.02740478515625, -0.00640106201171875, -0.0430908203125, -0.0080413818359375, 0.03314208984375, 0.0250701904296875, -0.00565338134765625, -0.0406494140625, 0.053070068359375, -0.05999755859375, 0.00492095947265625, -0.060943603515625, -0.031097412109375, -0.0142974853515625, 0.03436279296875, -0.01548004150390625, -0.0272064208984375, 0.02783203125, -0.0273284912109375, -0.005428314208984375, 0.0310516357421875, 0.03082275390625, 0.01412200927734375, 0.0022716522216796875, 0.041229248046875, 0.019134521484375, -0.01097869873046875, 0.00803375244140625, -0.033111572265625, -0.014862060546875, 0.041412353515625, -0.00557708740234375, -0.0279998779296875, -0.0246429443359375, 0.032379150390625, -0.0125885009765625, -0.0186309814453125, -0.0092620849609375, 0.0007910728454589844, 0.0234527587890625, 0.0294342041015625, 0.0036754608154296875, 0.01097869873046875, -0.017730712890625, -0.015625, 0.0693359375, -0.02044677734375, -0.04815673828125, -0.0268707275390625, 0.006427764892578125, -0.03997802734375, -0.02899169921875, -0.03509521484375, 0.06585693359375, -0.049896240234375, 0.031829833984375, -0.04803466796875, 0.030914306640625, -0.0186004638671875, 0.0477294921875, 0.0638427734375, 0.0158233642578125, -0.0012369155883789062, 0.0352783203125, -0.04083251953125, 0.00893402099609375, -0.0552978515625, 0.033050537109375, -0.04376220703125, 0.04278564453125, -0.0126953125, 0.0751953125, -0.03240966796875, -0.04779052734375, -0.0263824462890625, -0.048492431640625, 0.01467132568359375, -0.0167694091796875, -0.006038665771484375, -0.00469207763671875, 0.02520751953125, 0.01116943359375, 0.00905609130859375, 0.03033447265625, 0.00827789306640625, 0.0171661376953125, -0.0198516845703125, -0.0223846435546875, -0.0305633544921875, -0.08746337890625, 0.0021915435791015625, 0.0682373046875, 0.032684326171875, -0.044952392578125, -0.03656005859375, -0.0127716064453125, 0.0195159912109375, -0.040435791015625, -0.00908660888671875, 0.01111602783203125, -0.01016998291015625, 0.0650634765625, 0.0082855224609375, 0.0162506103515625, 0.00408172607421875, -0.01445770263671875, -0.02447509765625, 0.050201416015625, 0.0032176971435546875, 0.0462646484375, -0.059906005859375, -0.004306793212890625, 0.003368377685546875, -0.0670166015625, -0.047393798828125, -0.0288238525390625, -0.00550079345703125, -0.01274871826171875, 0.02471923828125, 0.025543212890625, 0.00728607177734375, -0.023223876953125, 0.01277923583984375, -0.00982666015625, 0.0192108154296875, 0.0182037353515625, -0.0760498046875, 0.01505279541015625, -0.0173797607421875, 0.0197601318359375, -0.00015032291412353516, -0.005584716796875, -0.03302001953125, -0.0228729248046875, -0.018829345703125, -0.007633209228515625, -0.0084381103515625, -0.01102447509765625, 0.033782958984375, -0.0048370361328125, -0.04608154296875, -0.0269622802734375, 0.020416259765625, 0.01776123046875, -0.041778564453125, 0.040863037109375, -0.029266357421875, -0.0171051025390625, 0.0017461776733398438, -0.0213623046875, 0.0232696533203125, -0.01529693603515625, -0.01763916015625, 0.04425048828125, 0.008331298828125, 0.001506805419921875, 0.0211334228515625, -0.0098419189453125, 0.01904296875, 0.02239990234375, 0.0148468017578125, 0.01427459716796875, -0.045928955078125, 0.00968170166015625, 0.032318115234375, 0.04034423828125, 0.036407470703125, -0.026275634765625, 0.0214691162109375, 0.040924072265625, -0.06097412109375, -0.08782958984375, -0.0625, 0.007465362548828125, -0.034393310546875, -0.0010137557983398438, 0.0213623046875, 0.015533447265625, -0.0193328857421875, 0.0096893310546875, 0.047637939453125, 0.005184173583984375, -0.07373046875, -0.0197601318359375, -0.09185791015625, -0.048492431640625, -0.021331787109375, 0.0203094482421875, -0.0195770263671875, 0.0335693359375, -0.03582763671875, -0.0972900390625, -0.06842041015625, -0.00217437744140625, -0.003826141357421875, -0.00666046142578125, -0.0034046173095703125, -0.033782958984375, 0.037841796875, -0.0006089210510253906, -0.035675048828125, 0.016571044921875, 0.003662109375, -0.034393310546875, -0.004665374755859375, 0.0033321380615234375, 0.02044677734375, -0.029449462890625, 0.005588531494140625, 0.031097412109375, -0.003936767578125, -0.0283355712890625, 0.007198333740234375, 0.0011043548583984375, 0.0017375946044921875, -0.022796630859375, -0.0178375244140625, -0.0240631103515625, -0.0211029052734375, 0.0193328857421875, -0.00882720947265625, 0.004100799560546875, -0.0101470947265625, -0.0221099853515625, 0.0133209228515625, -0.00403594970703125, -0.01348114013671875, 0.00579071044921875, 0.00493621826171875, -0.040618896484375, 0.0211029052734375, -0.0013580322265625, -0.0323486328125, -0.00914764404296875, 0.006389617919921875, 0.007472991943359375, -0.01678466796875, 0.01158905029296875, -0.06640625, 0.0235595703125, -0.060150146484375, -0.01580810546875, -0.0360107421875, 0.06488037109375, 0.03302001953125, -0.0052032470703125, -0.006092071533203125, -0.006717681884765625, -0.0285797119140625, 0.003398895263671875, -0.03778076171875, 0.007549285888671875, 0.0055694580078125, 0.0070343017578125, -0.0249786376953125, 0.01352691650390625, -0.01111602783203125, 0.017059326171875, 0.032958984375, -0.02850341796875, 0.032073974609375, -0.07989501953125, -0.018157958984375, -0.0179290771484375, -0.01548004150390625, -0.07733154296875, -0.01036834716796875, -0.0281829833984375, -0.1119384765625, -0.01549530029296875, -0.017608642578125, 0.06585693359375, -0.00489044189453125, 0.0286712646484375, -0.0290679931640625, 0.044097900390625, 0.0167083740234375, 0.0034999847412109375, -0.01082611083984375, -0.007480621337890625, -0.06689453125, 0.005828857421875, -0.004276275634765625, -0.0248870849609375, -0.023284912109375, -0.046600341796875, -0.0140228271484375, -0.046875, -0.0347900390625, -0.0421142578125, -0.0173187255859375, -0.005828857421875, 0.01021575927734375, -0.0256500244140625, -0.032135009765625, 0.0304412841796875, -0.0288543701171875, 0.0159454345703125, -0.040283203125, -0.02923583984375, 0.0689697265625, -0.01493072509765625, -0.00798797607421875, 0.0098114013671875, 0.06671142578125, 0.00028634071350097656, -0.0298919677734375, -0.0714111328125, -0.01462554931640625, 0.0293121337890625, 0.0243682861328125, 0.06646728515625, 0.0391845703125, -0.016357421875, 0.059234619140625, 0.03662109375, 0.01009368896484375, -0.00689697265625, 0.026031494140625, 0.00759124755859375, -0.0280914306640625, 0.022064208984375, -0.00579833984375, -0.018310546875, 0.0244903564453125, 0.006359100341796875, -0.0146484375, -0.005649566650390625, 0.022430419921875, 0.0243682861328125, -0.01190185546875, -0.0308837890625, -0.052886962890625, 0.034423828125, 0.0186614990234375, -0.0062255859375, -0.0159759521484375, 0.01355743408203125, 0.0160369873046875, 0.0066070556640625, -0.02587890625, -0.03375244140625, -0.01091766357421875, 0.0201873779296875, 0.0203857421875, -0.02880859375, -0.00536346435546875, -0.043304443359375, -0.0203094482421875, 0.0960693359375, 0.00949859619140625, -0.05706787109375, 0.0123748779296875, 0.0010499954223632812, 0.039886474609375, 0.016510009765625, 0.0230560302734375, 0.0203399658203125, -0.0014257431030273438, -0.00669097900390625, -0.03173828125, 0.0133209228515625, 0.007415771484375, -0.0222930908203125, -0.02557373046875, -0.0027523040771484375, -0.00911712646484375, 0.0081634521484375, 0.0249786376953125, 0.005107879638671875, 0.007354736328125, -0.0214691162109375, 0.02935791015625, 0.06719970703125, -0.012481689453125, 0.0294342041015625, 0.013641357421875, -0.01448822021484375, -0.046966552734375, 0.0158233642578125, -0.030181884765625, 0.004856109619140625, 0.013885498046875, 0.035400390625, 0.0215606689453125, -0.014801025390625, 0.00420379638671875, -0.0234375, 0.01513671875, 0.019378662109375, -0.0204620361328125, -0.0367431640625, -0.01386260986328125, 0.00556182861328125, 0.0206756591796875, -0.056732177734375, 0.0116119384765625, 0.012451171875, -0.01080322265625, 0.027984619140625, -0.0041046142578125, 0.0227813720703125, -0.039520263671875, -0.038787841796875, 0.035980224609375, -0.0242462158203125, -0.048828125, 0.0302581787109375, 0.02008056640625, -0.009521484375, -0.01145172119140625, 0.009063720703125, 0.00525665283203125, 0.0178070068359375, -0.016204833984375, -0.039947509765625, -0.030853271484375, 0.0083770751953125, 0.036834716796875, -0.00301361083984375, -0.0219573974609375, -0.02520751953125, -0.04840087890625, -0.02301025390625, -0.04547119140625, -0.04290771484375, -0.0318603515625, 0.0268402099609375, -0.00598907470703125, 0.00547027587890625, -0.00383758544921875, -0.008636474609375, -0.035919189453125, 0.0304107666015625, 0.0254364013671875, 0.0165557861328125, -0.01544189453125, 0.0083770751953125, 0.0302581787109375, 0.0260162353515625, 0.024169921875, 0.0025653839111328125, -0.0153350830078125, -0.0229949951171875, 0.0134429931640625, 0.0001270771026611328, -0.00910186767578125, -0.0254974365234375, 0.021087646484375, -0.04302978515625, -0.007720947265625, -0.019927978515625, -0.0102691650390625, -0.019134521484375, 0.0107879638671875, -0.01181793212890625, 0.06292724609375, -0.0010480880737304688, -0.017913818359375, 0.041290283203125, -0.032379150390625, 0.0031147003173828125, -0.006175994873046875, 0.00725555419921875, -0.01540374755859375, -0.0136260986328125, -0.032379150390625, 0.036834716796875, -0.023681640625, 0.0517578125, 0.03448486328125, -0.006809234619140625, 0.0237884521484375, 0.0024280548095703125, 0.00620269775390625, -0.03546142578125, -0.0343017578125, -0.016845703125, -0.0178070068359375, 0.028076171875, -0.00658416748046875, -0.003223419189453125, 0.031158447265625, -0.019561767578125, 0.0261993408203125, 0.036834716796875, 0.06976318359375, -0.0211334228515625, -0.0213470458984375, -0.0086517333984375, -0.08087158203125, 0.01497650146484375, 0.002979278564453125, -0.0196075439453125, -0.036224365234375, 0.01361083984375, -0.01178741455078125, -0.01171112060546875, -0.0042572021484375, 0.01105499267578125, -0.01560211181640625, -0.0127716064453125, 0.02886962890625, 0.007537841796875, -0.0178070068359375, -0.018157958984375, 0.017669677734375, -0.034454345703125, 0.029693603515625, 0.00698089599609375, -0.00699615478515625, -0.006175994873046875, -0.002933502197265625, 0.02886962890625, -0.048065185546875, -0.01552581787109375, 0.006465911865234375, 0.0242156982421875, -0.0169677734375, 0.061370849609375, -0.030914306640625, 0.043487548828125, 0.035614013671875, -0.033111572265625, -0.0135040283203125, -0.0239105224609375, 0.040618896484375, 0.048248291015625, -0.08575439453125, 0.03509521484375, -0.0301971435546875, 0.0011396408081054688, -0.01119232177734375, -0.055511474609375, 0.0191650390625, 0.0035152435302734375, -0.0055084228515625, 0.02972412109375, 0.00972747802734375, -0.02276611328125, 0.0096893310546875, 0.05731201171875, -0.058074951171875, -0.05450439453125, 0.03607177734375, -0.0445556640625, -0.041717529296875, 0.034942626953125, -0.0273284912109375, 0.0865478515625, 0.028472900390625, -0.04290771484375, -0.01194000244140625, 0.065185546875, -0.043914794921875, 0.037384033203125, -0.0155029296875, 0.0214691162109375, -0.034454345703125, 0.034210205078125, -0.07391357421875, 0.0006389617919921875, -0.0076446533203125, 0.0295867919921875, -0.0428466796875, -0.022125244140625, -0.004322052001953125, 0.0027217864990234375, 0.0399169921875, 0.053741455078125, 0.049224853515625, -0.0107574462890625, -0.01275634765625, 0.01551055908203125, 0.050048828125, -0.035003662109375, 0.039581298828125, -0.0202178955078125, -0.016693115234375, -0.0124053955078125, 0.030242919921875, 0.0308380126953125, 0.043426513671875, 0.08465576171875, 0.006641387939453125, 0.0089874267578125, 0.021209716796875, -0.0176544189453125, -0.0051727294921875, 0.0233001708984375, -0.017486572265625, 0.01203155517578125, 0.020660400390625, -0.0254974365234375, 0.0212860107421875, -0.0182647705078125, -0.0312042236328125, -0.022979736328125, 0.0010061264038085938, 0.0196685791015625, -0.018402099609375, -0.0390625, 0.035247802734375, -0.0014324188232421875, 0.049713134765625, 0.035247802734375, 0.053192138671875, 0.00872039794921875, 0.006740570068359375, 0.00946044921875, 0.056396484375, -0.0311279296875, -0.0270843505859375, -0.0008373260498046875, -0.004558563232421875, 0.041107177734375, -0.007053375244140625, 0.0297698974609375, 0.0201416015625, 0.0172882080078125, -0.0029087066650390625, 0.017242431640625, 0.007556915283203125, -0.0274810791015625, -0.0014944076538085938, 0.032501220703125, -0.00812530517578125, 0.059234619140625, -0.0165863037109375, 0.0308990478515625, 0.01690673828125, 0.03643798828125, -0.0302734375, 0.046966552734375, -0.034454345703125, 0.005672454833984375, -0.036468505859375, 0.03594970703125, -0.021484375, 0.04241943359375, -0.07208251953125, -0.061187744140625, 0.0117950439453125, 0.056121826171875, -0.0066680908203125, 0.01922607421875, 0.058990478515625, 0.072998046875, -0.01392364501953125, -0.0201416015625, 0.053924560546875, -0.00983428955078125, -0.0212554931640625, -0.0374755859375, 0.012115478515625, 0.01219940185546875, 0.0204315185546875, 0.013763427734375, 0.055206298828125, -0.0095062255859375, 0.01467132568359375, -0.039306640625, 0.0185089111328125, -0.0300445556640625, 0.046783447265625, 0.037689208984375, 0.02410888671875, 0.05120849609375, 0.00927734375, -0.01290130615234375, 0.0292510986328125, 0.006107330322265625, -0.0206756591796875, 0.017913818359375, -0.00295257568359375, 0.01534271240234375, -0.0160980224609375, -0.01453399658203125, -0.01468658447265625, 0.0216217041015625, -0.01154327392578125, 0.0229339599609375, 0.0196380615234375, -0.0042572021484375, -0.053253173828125, -0.0286865234375, -0.0098419189453125, 0.00826263427734375, 0.021026611328125, 0.06591796875, 0.003917694091796875, 0.016693115234375, -0.005847930908203125, 0.004055023193359375, -0.0031147003173828125, 0.0037059783935546875, -0.05084228515625, -0.0011930465698242188, 0.03118896484375, -0.0055389404296875, -0.07086181640625, 0.033447265625, 0.0219268798828125, 0.01551055908203125, 0.030548095703125, -0.018096923828125, 0.01137542724609375, -0.01178741455078125, -0.0194091796875, -0.0364990234375, -0.051605224609375, 0.0229034423828125, 0.03564453125, -0.0328369140625, -0.0311279296875, -0.01203155517578125, -0.00012022256851196289, 0.03265380859375, -0.0034618377685546875, 0.024505615234375, 0.02386474609375, 0.0297393798828125, 0.0259552001953125, -0.0006213188171386719, -0.0241241455078125, -0.00018668174743652344, -0.0140380859375, 0.010986328125, -0.004085540771484375, 0.0357666015625, -0.004169464111328125, 0.03643798828125, 0.01016998291015625, 0.05523681640625, 0.048614501953125, 0.003849029541015625, 0.0293426513671875, 0.016387939453125, -0.019256591796875, 0.005863189697265625, 0.039520263671875, -0.0200653076171875, -0.0109710693359375, -0.02655029296875, -0.01155853271484375, -0.01837158203125, -0.039337158203125, -0.061859130859375, 0.031494140625, 0.0220947265625, 0.016632080078125, -0.06829833984375, 0.05377197265625, -0.019287109375, 0.0288543701171875, -0.006103515625, -0.0321044921875, 0.01508331298828125, 0.0714111328125, 0.0306243896484375, -0.04718017578125, -0.02215576171875, 0.05291748046875, -0.0298004150390625, -0.041534423828125, -0.057525634765625, 0.014556884765625, 0.024444580078125, -0.034912109375, -0.00482940673828125, 0.0009016990661621094, 0.04852294921875, -0.00014579296112060547, 0.0731201171875, -0.043426513671875, -0.0222015380859375, -0.07794189453125, -0.0092315673828125, -0.08990478515625, 0.019744873046875, 0.001811981201171875, 0.00891876220703125, 0.035400390625, -0.0312347412109375, -0.08367919921875, 0.00971221923828125, -0.01155853271484375, -0.0418701171875, -0.0673828125, -0.0191497802734375, -0.006420135498046875, 0.050628662109375, -0.01274871826171875, -0.0300140380859375, -0.04345703125, 0.0278778076171875, 0.037109375, 0.030242919921875, 0.0251617431640625, 0.05291748046875, -0.028472900390625, 0.0360107421875, 0.006481170654296875, 0.00864410400390625, 0.029876708984375, -0.00254058837890625, 0.0263671875, 0.053680419921875, -0.0361328125, -0.035186767578125, -0.0217742919921875, -0.04296875, -0.004184722900390625, -0.02874755859375, -0.036376953125, -0.01198577880859375, 0.1033935546875, 0.04620361328125, 0.0374755859375, -0.033294677734375, -0.006378173828125, -0.0257415771484375, -0.007061004638671875, -0.01305389404296875, 0.0171051025390625, -0.07781982421875, -0.01302337646484375, 0.0457763671875, -0.017181396484375, -0.0413818359375, 0.027618408203125, -0.0248870849609375, -0.01209259033203125, 0.0005664825439453125, -0.034576416015625, 0.014190673828125, -0.022491455078125, 0.0227813720703125, -0.006526947021484375, -0.0016775131225585938, 0.005275726318359375, 0.00981903076171875, -0.006305694580078125, 0.051910400390625, -0.00412750244140625, 0.0150909423828125, -0.0289306640625, 0.022735595703125, -0.002269744873046875, -0.0247955322265625, -0.0280609130859375, 0.005893707275390625, 0.0118560791015625, 0.002445220947265625, -0.00045943260192871094, -0.003940582275390625, -0.017181396484375, 0.012298583984375, -0.0180511474609375, 0.060821533203125, 0.00389862060546875, 0.0021915435791015625, -0.0296173095703125, 0.055450439453125, -0.0291595458984375, -0.0177001953125, -0.0276947021484375, -0.00897216796875, -0.0011358261108398438, 0.05413818359375, 0.0194244384765625, -0.0265045166015625, 0.0016231536865234375, -0.0243682861328125, 0.05682373046875, -0.00417327880859375 ]
13ad1091c1045bcdedcaba2b8c5b069608d201e2
Wordpress Stackexchange Q: WordPress Terminology Options Vs. Settings What term should be used when defining a page in the admin menu that allows you to change a plugins options? A: These two are pretty close, but relate to slightly different stages of the process. In purely technical terms WordPress has two different APIs — Options API and Settings API. Options API deals with saving and retrieving options from database. So its scope and scope of "options" in terminology is that of purely storage. Settings API deals with admin pages, forms, receiving/validating/sanitizing data, and finally using Options API to store it. So in terminology it refers more or less to level of admin interface and user interaction. Depending on nature of your plugin its page should be named either after its own name or after what plugin does. Then it should be nested appropriately in a level such as Settings or Appearance. Creating top level pages for the plugins is not uncommon, but is often considered overblown and annoying, especially so if the plugin/theme doesn't have many things to put there.
Q: WordPress Terminology Options Vs. Settings What term should be used when defining a page in the admin menu that allows you to change a plugins options? A: These two are pretty close, but relate to slightly different stages of the process. In purely technical terms WordPress has two different APIs — Options API and Settings API. Options API deals with saving and retrieving options from database. So its scope and scope of "options" in terminology is that of purely storage. Settings API deals with admin pages, forms, receiving/validating/sanitizing data, and finally using Options API to store it. So in terminology it refers more or less to level of admin interface and user interaction. Depending on nature of your plugin its page should be named either after its own name or after what plugin does. Then it should be nested appropriately in a level such as Settings or Appearance. Creating top level pages for the plugins is not uncommon, but is often considered overblown and annoying, especially so if the plugin/theme doesn't have many things to put there. A: You should just use the name of the plugin. No need to concatenate "options" or "settings" to it. A lot of times (if the plugin is small, or you rarely need to change it's settings) you place the plugins admin page under the "Settings"-page that already exists.
wordpress
{ "language": "en", "length": 226, "provenance": "stackexchange_00019.jsonl.gz:444393", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141734" }
[ 0.0382080078125, -0.0163726806640625, 0.031402587890625, 0.005279541015625, -0.024261474609375, -0.0246429443359375, 0.032196044921875, -0.032806396484375, -0.01058197021484375, -0.0083465576171875, 0.0001938343048095703, 0.0035247802734375, -0.034576416015625, -0.0380859375, 0.01032257080078125, -0.046478271484375, 0.010986328125, -0.0005884170532226562, 0.0008168220520019531, -0.025299072265625, 0.0147247314453125, -0.00524139404296875, -0.0219879150390625, 0.07171630859375, 0.034881591796875, -0.09197998046875, 0.01012420654296875, -0.0014209747314453125, 0.0149078369140625, -0.01163482666015625, 0.0133209228515625, 0.0164031982421875, 0.0100250244140625, 0.01035308837890625, 0.0229949951171875, 0.005733489990234375, 0.03240966796875, 0.00489044189453125, 0.037567138671875, 0.01239013671875, 0.03753662109375, -0.00482177734375, 0.01357269287109375, 0.045440673828125, -0.018707275390625, -0.039794921875, 0.0401611328125, -0.0262603759765625, -0.00799560546875, 0.0017547607421875, 0.0246429443359375, -0.08221435546875, 0.02850341796875, 0.006328582763671875, -0.0303192138671875, -0.0278167724609375, 0.031494140625, -0.01120758056640625, 0.03375244140625, -0.041961669921875, -0.0570068359375, -0.0116424560546875, 0.04351806640625, 0.01079559326171875, 0.033721923828125, -0.041107177734375, 0.002285003662109375, 0.0574951171875, -0.039215087890625, 0.0181121826171875, 0.039520263671875, -0.00933074951171875, 0.026763916015625, -0.04034423828125, -0.00461578369140625, 0.00948333740234375, 0.003124237060546875, -0.009033203125, 0.024078369140625, -0.0283050537109375, 0.06353759765625, 0.027984619140625, 0.055999755859375, -0.00730133056640625, 0.026824951171875, 0.016632080078125, 0.00899505615234375, -0.034912109375, 0.00006288290023803711, 0.0164794921875, -0.01267242431640625, -0.03399658203125, 0.01629638671875, 0.057403564453125, -0.00014340877532958984, 0.00780487060546875, 0.016021728515625, -0.018310546875, 0.01953125, 0.0159759521484375, 0.0362548828125, -0.05029296875, 0.051116943359375, -0.0092620849609375, 0.011962890625, 0.033660888671875, 0.01519775390625, 0.0190582275390625, 0.041046142578125, 0.0005164146423339844, 0.00753021240234375, 0.04608154296875, 0.025726318359375, -0.0218505859375, 0.03521728515625, -0.047088623046875, -0.0180816650390625, 0.03155517578125, 0.00600433349609375, -0.04998779296875, -0.019287109375, -0.011444091796875, 0.0163421630859375, 0.007678985595703125, -0.0177459716796875, -0.01580810546875, -0.0237884521484375, -0.01544952392578125, -0.051788330078125, 0.0252227783203125, 0.00887298583984375, -0.003265380859375, 0.0302734375, 0.021942138671875, -0.0225067138671875, -0.007175445556640625, 0.01444244384765625, 0.000988006591796875, -0.029876708984375, 0.0108642578125, 0.0246734619140625, -0.0211639404296875, -0.039276123046875, -0.0225372314453125, -0.004680633544921875, -0.003612518310546875, 0.008056640625, 0.044586181640625, -0.005153656005859375, -0.060943603515625, 0.049530029296875, -0.0206298828125, 0.016510009765625, -0.0099639892578125, -0.029449462890625, 0.0245513916015625, -0.0213775634765625, 0.01105499267578125, -0.015167236328125, 0.0049285888671875, -0.045166015625, -0.01444244384765625, 0.0265045166015625, -0.00469970703125, 0.0020847320556640625, 0.03387451171875, -0.0069427490234375, 0.004497528076171875, 0.0084075927734375, -0.0296478271484375, 0.047027587890625, 0.00783538818359375, -0.04290771484375, -0.018768310546875, 0.0125885009765625, -0.023956298828125, -0.01296234130859375, -0.0025005340576171875, 0.0230865478515625, -0.00798797607421875, -0.0126953125, -0.021820068359375, 0.032318115234375, -0.00212860107421875, -0.0386962890625, 0.04742431640625, 0.00412750244140625, 0.03826904296875, 0.001453399658203125, 0.01220703125, 0.0310821533203125, 0.031951904296875, 0.018890380859375, -0.004619598388671875, -0.0136871337890625, -0.020538330078125, -0.015289306640625, 0.03240966796875, -0.0301513671875, -0.0146636962890625, -0.03436279296875, 0.05535888671875, -0.052490234375, 0.022918701171875, -0.05401611328125, -0.0044403076171875, -0.017791748046875, 0.045654296875, -0.0093841552734375, 0.0191497802734375, 0.0018682479858398438, -0.00554656982421875, -0.0174102783203125, 0.0089263916015625, -0.004558563232421875, -0.0060577392578125, 0.0009160041809082031, 0.04107666015625, 0.0009899139404296875, 0.034698486328125, 0.01207733154296875, -0.034759521484375, 0.00226593017578125, 0.02545166015625, 0.06903076171875, -0.0294647216796875, 0.01175689697265625, -0.038909912109375, 0.09136962890625, -0.0272216796875, 0.04119873046875, 0.0321044921875, 0.052825927734375, 0.08428955078125, 0.022186279296875, -0.00922393798828125, 0.0211029052734375, -0.07611083984375, 0.0280914306640625, 0.0258026123046875, 0.0206756591796875, 0.02899169921875, -0.002193450927734375, 0.02557373046875, 0.0310821533203125, -0.050872802734375, 0.003864288330078125, 0.0007472038269042969, 0.016693115234375, -0.00415802001953125, 0.0177001953125, -0.044189453125, 0.0243072509765625, -0.0293426513671875, 0.0261077880859375, 0.0034332275390625, -0.06658935546875, -0.03839111328125, 0.05535888671875, -0.037750244140625, 0.008148193359375, -0.040283203125, 0.0128326416015625, -0.0236358642578125, 0.0015735626220703125, 0.0113067626953125, 0.0309906005859375, 0.032318115234375, -0.0124969482421875, -0.0144805908203125, 0.019775390625, 0.036712646484375, -0.00916290283203125, 0.0171051025390625, 0.09136962890625, -0.0489501953125, -0.04583740234375, -0.01544952392578125, 0.0229644775390625, 0.00630950927734375, -0.01018524169921875, 0.016571044921875, -0.055328369140625, -0.0134735107421875, -0.003528594970703125, -0.05010986328125, -0.00690460205078125, 0.032745361328125, -0.007411956787109375, 0.009002685546875, 0.043731689453125, 0.01163482666015625, -0.026397705078125, 0.025970458984375, -0.0124359130859375, -0.01551055908203125, 0.038482666015625, 0.003543853759765625, 0.003902435302734375, -0.00762939453125, 0.0272979736328125, 0.04351806640625, 0.0154571533203125, -0.03729248046875, 0.0036754608154296875, -0.00464630126953125, 0.01314544677734375, 0.00989532470703125, 0.0051422119140625, -0.005290985107421875, -0.01134490966796875, 0.043426513671875, 0.00974273681640625, 0.007625579833984375, -0.0245361328125, -0.048370361328125, -0.06439208984375, 0.00351715087890625, -0.08642578125, 0.0010128021240234375, 0.022705078125, -0.07244873046875, 0.04443359375, -0.0181427001953125, -0.029876708984375, -0.0318603515625, 0.0237579345703125, 0.0182037353515625, -0.00466156005859375, -0.01097869873046875, -0.0229949951171875, -0.0292816162109375, -0.054290771484375, -0.0207672119140625, -0.0026111602783203125, 0.00870513916015625, -0.0062713623046875, 0.05902099609375, 0.0013303756713867188, -0.0740966796875, -0.025482177734375, -0.00555419921875, -0.0136260986328125, 0.00534820556640625, 0.037322998046875, -0.0369873046875, 0.01141357421875, 0.005100250244140625, 0.03546142578125, 0.044769287109375, -0.041351318359375, -0.0182037353515625, -0.03369140625, 0.025909423828125, -0.0127716064453125, -0.01311492919921875, 0.0338134765625, 0.0191497802734375, -0.0287017822265625, -0.0310516357421875, -0.0281982421875, -0.00775909423828125, -0.058685302734375, 0.00888824462890625, 0.0189208984375, 0.0108795166015625, 0.0299530029296875, -0.00641632080078125, -0.048492431640625, -0.023651123046875, 0.013153076171875, -0.05975341796875, 0.034759521484375, -0.0294647216796875, -0.04046630859375, 0.0174560546875, 0.01197052001953125, -0.0238494873046875, -0.04498291015625, -0.01293182373046875, -0.03179931640625, -0.001956939697265625, -0.022796630859375, 0.0140838623046875, -0.08367919921875, 0.0269317626953125, -0.06298828125, 0.00009864568710327148, -0.0311737060546875, -0.005237579345703125, 0.01427459716796875, 0.11114501953125, -0.011016845703125, -0.008941650390625, 0.0265045166015625, 0.0126495361328125, -0.046234130859375, -0.003337860107421875, -0.07122802734375, 0.0009064674377441406, -0.04693603515625, 0.007549285888671875, 0.0167083740234375, -0.0294647216796875, -0.035430908203125, 0.0677490234375, -0.047607421875, -0.006671905517578125, 0.0273284912109375, -0.009735107421875, 0.01641845703125, 0.01715087890625, 0.0141143798828125, -0.0202789306640625, -0.01280975341796875, -0.0007395744323730469, -0.043548583984375, -0.02093505859375, 0.036163330078125, 0.0160980224609375, 0.0187835693359375, -0.1044921875, -0.0028839111328125, 0.030487060546875, -0.0174407958984375, 0.0164337158203125, 0.0036182403564453125, 0.01922607421875, -0.00115966796875, -0.003856658935546875, 0.003871917724609375, -0.03155517578125, -0.0083160400390625, -0.00730133056640625, -0.04742431640625, 0.006397247314453125, -0.00501251220703125, 0.030181884765625, 0.01541900634765625, -0.033203125, -0.05609130859375, -0.00377655029296875, -0.0299835205078125, -0.03936767578125, -0.0211029052734375, -0.010406494140625, 0.034698486328125, -0.0384521484375, 0.053985595703125, -0.0108184814453125, 0.0015878677368164062, 0.01160430908203125, 0.12030029296875, 0.007904052734375, -0.0055694580078125, -0.0867919921875, -0.0238494873046875, 0.021148681640625, -0.01497650146484375, 0.0426025390625, 0.0175018310546875, -0.0134735107421875, 0.058013916015625, -0.017181396484375, 0.001453399658203125, -0.01378631591796875, -0.00681304931640625, 0.005023956298828125, -0.018341064453125, 0.0050811767578125, 0.00553131103515625, 0.02569580078125, 0.01294708251953125, -0.03662109375, 0.0086517333984375, -0.0599365234375, 0.00965118408203125, -0.004856109619140625, 0.032012939453125, -0.0211029052734375, -0.0128631591796875, 0.0014495849609375, 0.0223541259765625, 0.0182952880859375, 0.032073974609375, 0.0001862049102783203, -0.007083892822265625, -0.021453857421875, 0.000141143798828125, 0.01203155517578125, 0.050567626953125, -0.0298004150390625, 0.02105712890625, 0.0091552734375, -0.03106689453125, -0.0181732177734375, -0.017822265625, 0.0672607421875, -0.036376953125, -0.08673095703125, 0.017578125, -0.0389404296875, 0.029937744140625, 0.046478271484375, 0.04296875, 0.0379638671875, -0.02337646484375, -0.03778076171875, -0.00635528564453125, 0.00911712646484375, -0.02813720703125, -0.03924560546875, 0.001873016357421875, 0.017242431640625, -0.0138092041015625, -0.0038604736328125, 0.0364990234375, -0.0103607177734375, 0.0151824951171875, -0.01229095458984375, -0.01154327392578125, -0.0185089111328125, 0.0022220611572265625, 0.017822265625, 0.015716552734375, 0.0296630859375, -0.043182373046875, 0.05072021484375, -0.030120849609375, -0.03179931640625, 0.0296173095703125, 0.0254364013671875, -0.0142974853515625, -0.001323699951171875, 0.016448974609375, 0.0266876220703125, -0.033477783203125, 0.0230255126953125, -0.02789306640625, -0.0728759765625, -0.01319122314453125, 0.04510498046875, 0.043365478515625, -0.01397705078125, -0.01299285888671875, 0.04541015625, 0.001972198486328125, 0.0065155029296875, 0.006031036376953125, -0.0648193359375, 0.01617431640625, 0.040863037109375, -0.059173583984375, -0.018341064453125, -0.006000518798828125, -0.0396728515625, -0.0443115234375, 0.0003478527069091797, -0.0159454345703125, 0.028076171875, -0.037261962890625, 0.04241943359375, -0.0028896331787109375, -0.01311492919921875, 0.033172607421875, 0.022613525390625, 0.024078369140625, 0.0123443603515625, -0.12066650390625, 0.016693115234375, -0.04412841796875, 0.00435638427734375, -0.0276336669921875, -0.01537322998046875, -0.0782470703125, -0.00013315677642822266, -0.01123046875, 0.021881103515625, -0.02276611328125, 0.01324462890625, 0.0025272369384765625, 0.0240478515625, -0.0166015625, 0.0231170654296875, -0.00029468536376953125, 0.0162811279296875, -0.0268402099609375, 0.0136260986328125, -0.0084686279296875, -0.01486968994140625, -0.0264739990234375, 0.0112457275390625, 0.00780487060546875, -0.028564453125, -0.0284423828125, -0.032073974609375, -0.0288238525390625, 0.04534912109375, 0.0662841796875, 0.00045490264892578125, 0.049346923828125, -0.003810882568359375, 0.01605224609375, -0.0161590576171875, -0.0008039474487304688, -0.036102294921875, 0.002410888671875, 0.0469970703125, -0.0435791015625, -0.0065460205078125, -0.018402099609375, -0.009307861328125, 0.045013427734375, -0.0209808349609375, 0.03509521484375, 0.029632568359375, -0.0240631103515625, 0.0294189453125, 0.06817626953125, 0.0172882080078125, 0.047515869140625, 0.007297515869140625, 0.0179901123046875, 0.024200439453125, 0.01910400390625, -0.0090484619140625, -0.035308837890625, 0.0116729736328125, 0.006500244140625, -0.006717681884765625, 0.01039886474609375, -0.0291748046875, 0.028564453125, 0.07305908203125, 0.053863525390625, -0.1094970703125, 0.01227569580078125, 0.00862884521484375, -0.00567626953125, 0.03314208984375, 0.0226593017578125, -0.0176849365234375, -0.033233642578125, -0.0037212371826171875, -0.0064544677734375, -0.004528045654296875, 0.00783538818359375, 0.010955810546875, -0.04217529296875, -0.01326751708984375, 0.0034313201904296875, 0.004547119140625, 0.031829833984375, 0.021881103515625, -0.06024169921875, 0.0247039794921875, -0.0038204193115234375, -0.002902984619140625, 0.031463623046875, -0.032989501953125, -0.044097900390625, 0.043304443359375, -0.0229339599609375, -0.0223236083984375, 0.01220703125, -0.00920867919921875, 0.0012502670288085938, 0.049468994140625, -0.03125, 0.01128387451171875, 0.008880615234375, 0.027740478515625, -0.0178985595703125, -0.0141448974609375, 0.030517578125, 0.036834716796875, -0.05914306640625, 0.0239715576171875, -0.042633056640625, 0.0006737709045410156, -0.0205841064453125, -0.0352783203125, 0.07818603515625, 0.00777435302734375, -0.031829833984375, 0.018341064453125, -0.0036983489990234375, -0.021240234375, 0.0004673004150390625, -0.020263671875, -0.0469970703125, -0.032745361328125, -0.016815185546875, -0.050689697265625, 0.021148681640625, -0.005092620849609375, -0.042327880859375, 0.09747314453125, -0.0033092498779296875, -0.011993408203125, -0.00537109375, 0.055572509765625, -0.037078857421875, 0.030120849609375, -0.005401611328125, 0.027252197265625, -0.00748443603515625, -0.01059722900390625, -0.0285797119140625, 0.00464630126953125, -0.036773681640625, 0.034332275390625, 0.03533935546875, 0.021636962890625, -0.04150390625, 0.006435394287109375, 0.0430908203125, -0.037384033203125, -0.0219879150390625, 0.07904052734375, 0.03070068359375, -0.01032257080078125, 0.034576416015625, 0.015899658203125, 0.0477294921875, -0.042633056640625, 0.0196990966796875, 0.04302978515625, 0.004161834716796875, 0.019989013671875, -0.034271240234375, 0.0321044921875, 0.0156402587890625, -0.03680419921875, -0.013641357421875, -0.01168060302734375, -0.01340484619140625, -0.00028896331787109375, -0.005863189697265625, -0.033599853515625, 0.01654052734375, -0.0180206298828125, 0.03082275390625, 0.0109100341796875, 0.015533447265625, 0.01727294921875, 0.0249786376953125, 0.0074920654296875, -0.0272369384765625, -0.0014190673828125, 0.022430419921875, -0.036224365234375, 0.01558685302734375, -0.021270751953125, 0.0242767333984375, -0.04425048828125, 0.01123809814453125, -0.0299072265625, 0.0013208389282226562, -0.020050048828125, -0.07318115234375, -0.0021266937255859375, -0.005474090576171875, 0.00799560546875, 0.018951416015625, 0.01540374755859375, -0.01531982421875, 0.040924072265625, -0.03961181640625, 0.043212890625, 0.043426513671875, -0.000701904296875, 0.01253509521484375, 0.041839599609375, -0.10107421875, 0.028900146484375, -0.00475311279296875, 0.00514984130859375, -0.0139007568359375, 0.0240478515625, 0.0101470947265625, -0.0004374980926513672, -0.040863037109375, -0.0085601806640625, -0.034332275390625, 0.047088623046875, -0.0010118484497070312, 0.0225677490234375, -0.07452392578125, -0.0589599609375, 0.0263214111328125, 0.052947998046875, -0.0140228271484375, 0.02813720703125, 0.0178985595703125, 0.03302001953125, 0.0087127685546875, 0.002956390380859375, 0.0298919677734375, -0.0118408203125, -0.01036834716796875, -0.0008454322814941406, -0.02947998046875, -0.0029888153076171875, -0.0328369140625, -0.000431060791015625, 0.0214080810546875, 0.003505706787109375, -0.0157318115234375, 0.06024169921875, 0.0037841796875, 0.0017251968383789062, 0.041168212890625, 0.0007128715515136719, 0.05731201171875, 0.0187835693359375, -0.04193115234375, -0.0019073486328125, -0.0235443115234375, -0.036041259765625, -0.01245880126953125, 0.02313232421875, 0.006561279296875, 0.0160980224609375, -0.005313873291015625, -0.0254364013671875, 0.00801849365234375, -0.003841400146484375, 0.039093017578125, 0.005889892578125, -0.01352691650390625, -0.007556915283203125, 0.013427734375, -0.015625, -0.0008463859558105469, 0.059051513671875, 0.018096923828125, 0.050323486328125, -0.035369873046875, 0.043426513671875, -0.020111083984375, -0.005863189697265625, -0.028778076171875, -0.029327392578125, 0.053253173828125, -0.0183868408203125, -0.039886474609375, 0.010772705078125, -0.0116729736328125, 0.026123046875, 0.0379638671875, -0.0235443115234375, 0.0012340545654296875, 0.0116424560546875, 0.00983428955078125, -0.0156402587890625, 0.038421630859375, -0.0095977783203125, -0.028594970703125, 0.0186767578125, 0.01526641845703125, -0.00455474853515625, 0.034912109375, 0.0112152099609375, 0.0060272216796875, 0.01451873779296875, 0.02252197265625, -0.0006561279296875, 0.047332763671875, -0.0228424072265625, 0.0269012451171875, -0.0235595703125, -0.032257080078125, 0.00928497314453125, -0.0231475830078125, -0.00756072998046875, 0.010223388671875, 0.05047607421875, -0.01369476318359375, 0.003688812255859375, -0.0206451416015625, -0.0262451171875, -0.005084991455078125, -0.0217437744140625, -0.01092529296875, 0.001049041748046875, 0.008941650390625, -0.023345947265625, -0.00047087669372558594, -0.02423095703125, -0.02008056640625, 0.00460052490234375, 0.012298583984375, 0.010467529296875, -0.0205535888671875, -0.0384521484375, -0.0015153884887695312, 0.036895751953125, -0.0111236572265625, -0.023345947265625, 0.005504608154296875, -0.033233642578125, 0.0221710205078125, 0.004558563232421875, -0.03131103515625, 0.00881195068359375, 0.03228759765625, -0.006862640380859375, -0.0013170242309570312, -0.027130126953125, -0.0186614990234375, -0.00626373291015625, 0.035797119140625, 0.0210113525390625, -0.0301666259765625, -0.0034770965576171875, 0.06884765625, 0.037811279296875, 0.10638427734375, 0.0086517333984375, 0.0030078887939453125, 0.0389404296875, 0.02447509765625, -0.05010986328125, -0.0660400390625, -0.0035877227783203125, 0.01119232177734375, 0.0144500732421875, 0.026885986328125, -0.041259765625, -0.018157958984375, -0.03973388671875, -0.047119140625, 0.04705810546875, 0.0156707763671875, -0.031982421875, -0.0239410400390625, -0.0136260986328125, -0.0038814544677734375, 0.052886962890625, -0.0059356689453125, -0.006870269775390625, -0.047119140625, 0.01265716552734375, 0.0180206298828125, 0.014801025390625, 0.0159912109375, 0.0012216567993164062, -0.0657958984375, 0.0194091796875, 0.004329681396484375, 0.020294189453125, 0.0268707275390625, -0.00354766845703125, 0.023406982421875, 0.052764892578125, -0.0225372314453125, -0.050018310546875, -0.0357666015625, -0.03167724609375, -0.024169921875, -0.01239776611328125, -0.015960693359375, 0.015045166015625, 0.057037353515625, 0.102294921875, 0.0169525146484375, -0.06390380859375, 0.007720947265625, -0.0313720703125, 0.02081298828125, -0.0257568359375, -0.0083160400390625, -0.03143310546875, -0.0025234222412109375, 0.0037899017333984375, -0.018280029296875, 0.024200439453125, 0.0132598876953125, 0.0022754669189453125, 0.0155792236328125, 0.07012939453125, -0.03466796875, 0.016204833984375, -0.091552734375, 0.03070068359375, -0.0204315185546875, -0.032012939453125, 0.0177459716796875, 0.052734375, -0.014984130859375, 0.042694091796875, -0.0082855224609375, -0.009796142578125, -0.0242767333984375, 0.024383544921875, -0.0045166015625, 0.032867431640625, -0.032196044921875, -0.0127105712890625, -0.0029315948486328125, 0.041168212890625, 0.005825042724609375, 0.0297088623046875, -0.06982421875, 0.0833740234375, 0.0238494873046875, 0.06732177734375, 0.011962890625, 0.0301055908203125, -0.007564544677734375, 0.0406494140625, 0.01934814453125, -0.035400390625, 0.0277252197265625, -0.020172119140625, 0.002323150634765625, -0.0204925537109375, 0.01171875, -0.0491943359375, 0.032379150390625, 0.02618408203125, -0.0007395744323730469, 0.033599853515625 ]
30d46f6b4bd637d6fb2093a7b7eb54b2f5698405
Wordpress Stackexchange Q: How to add custom rewrite rule to .htaccess? I want to add a custom rewrite rule to my .htaccess file using a function inside functions.php The rewrite rule I want to add is as follows: RedirectMatch 301 ^/author/(.+)$ http://name-blog.com/$1 I know there is a WordPress function that adds a rewrite rule to the .htaccess: $wp_rewrite->add_external_rule( 'mobile/([^/]+)$', 'mobile/index.php?action=$1' ); So, how can I use that to add my rewrite rule to .htaccess? A: I found the solution on the Codex just after posting on the site and this is the code I was looking for: function my_htaccess_contents( $rules ) { $my_content = <<<EOD \n # BEGIN My Added Content # Protect wpconfig.php <Files wp-config.php> Order Allow,Deny Deny from all </Files> # END My Added Content\n EOD; return $my_content . $rules; } add_filter('mod_rewrite_rules', 'my_htaccess_contents');
Q: How to add custom rewrite rule to .htaccess? I want to add a custom rewrite rule to my .htaccess file using a function inside functions.php The rewrite rule I want to add is as follows: RedirectMatch 301 ^/author/(.+)$ http://name-blog.com/$1 I know there is a WordPress function that adds a rewrite rule to the .htaccess: $wp_rewrite->add_external_rule( 'mobile/([^/]+)$', 'mobile/index.php?action=$1' ); So, how can I use that to add my rewrite rule to .htaccess? A: I found the solution on the Codex just after posting on the site and this is the code I was looking for: function my_htaccess_contents( $rules ) { $my_content = <<<EOD \n # BEGIN My Added Content # Protect wpconfig.php <Files wp-config.php> Order Allow,Deny Deny from all </Files> # END My Added Content\n EOD; return $my_content . $rules; } add_filter('mod_rewrite_rules', 'my_htaccess_contents');
wordpress
{ "language": "en", "length": 133, "provenance": "stackexchange_00019.jsonl.gz:444394", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141741" }
[ 0.050537109375, 0.00421142578125, -0.0144805908203125, -0.06488037109375, 0.02288818359375, -0.01548004150390625, 0.0159454345703125, 0.002872467041015625, -0.07208251953125, 0.0206298828125, 0.0063629150390625, 0.03802490234375, -0.0140838623046875, -0.03607177734375, 0.054412841796875, -0.0257568359375, 0.0184326171875, -0.01910400390625, 0.0258636474609375, -0.0121307373046875, 0.026580810546875, 0.0098724365234375, 0.0254974365234375, 0.0115509033203125, -0.0001494884490966797, -0.03192138671875, 0.11480712890625, -0.01433563232421875, 0.01393890380859375, -0.0223388671875, 0.018707275390625, -0.03070068359375, 0.0307159423828125, 0.053924560546875, -0.0711669921875, 0.0316162109375, 0.0193023681640625, 0.004428863525390625, -0.0177154541015625, 0.058929443359375, 0.0394287109375, -0.01605224609375, 0.006252288818359375, 0.02593994140625, -0.0027027130126953125, -0.064453125, 0.050537109375, -0.04010009765625, 0.002185821533203125, -0.00859832763671875, 0.00467681884765625, 0.0289459228515625, 0.01374053955078125, -0.01220703125, -0.00180816650390625, -0.0004279613494873047, 0.0061187744140625, 0.005767822265625, 0.02081298828125, -0.0239105224609375, -0.0282135009765625, 0.002986907958984375, 0.0269927978515625, 0.0234527587890625, -0.0197601318359375, 0.0009508132934570312, 0.0165252685546875, 0.01678466796875, -0.0269775390625, -0.0313720703125, 0.008544921875, -0.0170135498046875, -0.0092315673828125, -0.024749755859375, -0.02679443359375, 0.004749298095703125, 0.0244293212890625, -0.031890869140625, -0.004638671875, 0.01806640625, 0.0242462158203125, -0.0107421875, 0.0338134765625, -0.03326416015625, 0.027740478515625, -0.01029205322265625, -0.012908935546875, -0.0101776123046875, -0.0160064697265625, -0.033660888671875, -0.01226043701171875, -0.01415252685546875, -0.051910400390625, 0.001903533935546875, 0.006580352783203125, -0.018341064453125, 0.0352783203125, 0.053436279296875, 0.0181427001953125, 0.031524658203125, 0.033294677734375, -0.058868408203125, 0.06951904296875, -0.07025146484375, 0.010955810546875, 0.0611572265625, 0.0083770751953125, 0.05706787109375, 0.043548583984375, 0.003459930419921875, 0.01486968994140625, 0.0006299018859863281, 0.003940582275390625, 0.0126190185546875, -0.045989990234375, -0.00937652587890625, -0.031280517578125, -0.0190277099609375, -0.002094268798828125, -0.0254669189453125, 0.007537841796875, 0.0206451416015625, -0.0169830322265625, -0.007282257080078125, 0.0184478759765625, -0.0019817352294921875, -0.0010480880737304688, -0.01552581787109375, 0.0049896240234375, 0.016632080078125, -0.0168914794921875, 0.0295867919921875, -0.011688232421875, -0.0149993896484375, -0.02496337890625, -0.0158843994140625, 0.06451416015625, -0.022491455078125, -0.007293701171875, 0.03814697265625, 0.01233673095703125, -0.0364990234375, -0.037628173828125, 0.00536346435546875, 0.003101348876953125, 0.04736328125, 0.016998291015625, 0.0030727386474609375, -0.02093505859375, -0.0565185546875, -0.003978729248046875, -0.039459228515625, 0.07427978515625, -0.0163421630859375, -0.016571044921875, -0.03271484375, 0.00940704345703125, -0.032562255859375, -0.04315185546875, -0.0264892578125, 0.0016384124755859375, -0.003841400146484375, 0.01446533203125, -0.0201568603515625, -0.020294189453125, -0.0091705322265625, -0.043365478515625, 0.00011396408081054688, 0.0227813720703125, 0.007518768310546875, 0.005786895751953125, -0.0201263427734375, 0.01473236083984375, 0.0231170654296875, -0.005138397216796875, 0.03411865234375, -0.0001367330551147461, 0.021026611328125, -0.00846099853515625, 0.11822509765625, 0.059600830078125, -0.0146331787109375, 0.02587890625, 0.0070953369140625, -0.0518798828125, 0.06622314453125, 0.00377655029296875, 0.094970703125, -0.0123291015625, 0.00677490234375, 0.01035308837890625, 0.03662109375, -0.00795745849609375, 0.0015707015991210938, -0.0169219970703125, -0.032562255859375, 0.01000213623046875, -0.00479888916015625, -0.02740478515625, 0.035064697265625, -0.034698486328125, -0.01113128662109375, -0.01824951171875, 0.0177459716796875, -0.031707763671875, -0.00555419921875, -0.01229095458984375, 0.0156097412109375, 0.0183563232421875, -0.0088958740234375, 0.01413726806640625, -0.0028133392333984375, -0.0207366943359375, -0.01531982421875, -0.0246734619140625, 0.044677734375, 0.01031494140625, 0.057342529296875, 0.022705078125, 0.04144287109375, 0.033843994140625, -0.03076171875, 0.0287322998046875, -0.00928497314453125, 0.01214599609375, -0.0299224853515625, -0.034881591796875, -0.0239410400390625, -0.0345458984375, 0.0037841796875, -0.0921630859375, 0.054840087890625, 0.04150390625, 0.0246734619140625, -0.05340576171875, -0.01271820068359375, -0.042816162109375, -0.046142578125, -0.00858306884765625, 0.0614013671875, 0.0305023193359375, 0.0254974365234375, -0.0102691650390625, 0.006526947021484375, 0.01554107666015625, -0.0241851806640625, 0.01409149169921875, -0.002361297607421875, -0.002552032470703125, 0.0242919921875, 0.0242919921875, -0.0182952880859375, 0.0059814453125, -0.08209228515625, -0.0004992485046386719, 0.04425048828125, -0.03631591796875, -0.00553131103515625, -0.042633056640625, 0.0286102294921875, 0.0082244873046875, -0.0233612060546875, -0.01282501220703125, -0.0272674560546875, 0.03228759765625, -0.002376556396484375, 0.004703521728515625, 0.007251739501953125, -0.0305023193359375, 0.01427459716796875, 0.01209259033203125, -0.03045654296875, 0.01183319091796875, 0.035247802734375, -0.00506591796875, 0.005199432373046875, -0.00982666015625, 0.004241943359375, 0.007602691650390625, 0.0200958251953125, -0.02349853515625, 0.013336181640625, -0.03265380859375, -0.006092071533203125, -0.01336669921875, -0.051971435546875, -0.002582550048828125, -0.0114898681640625, 0.021453857421875, 0.012298583984375, 0.0343017578125, 0.007442474365234375, 0.00495147705078125, -0.02099609375, 0.0135040283203125, -0.0276947021484375, -0.00615692138671875, -0.042144775390625, 0.055999755859375, -0.047271728515625, 0.003448486328125, 0.0643310546875, -0.00994110107421875, 0.000446319580078125, 0.0160064697265625, -0.0022373199462890625, 0.001178741455078125, 0.0288848876953125, 0.0108642578125, 0.01116180419921875, -0.045806884765625, 0.006366729736328125, 0.0192413330078125, -0.0089263916015625, 0.0159759521484375, 0.0008730888366699219, -0.01413726806640625, 0.029052734375, -0.0265960693359375, 0.0029010772705078125, 0.002506256103515625, -0.03448486328125, -0.0203704833984375, 0.03582763671875, -0.021820068359375, -0.0196533203125, 0.056488037109375, -0.003986358642578125, -0.0219573974609375, -0.0098419189453125, -0.0543212890625, -0.046905517578125, -0.0638427734375, -0.007472991943359375, -0.0137481689453125, 0.00917816162109375, -0.00434112548828125, 0.049072265625, 0.002414703369140625, -0.0302581787109375, 0.01128387451171875, -0.040374755859375, -0.0010137557983398438, 0.0007538795471191406, -0.047607421875, -0.003520965576171875, -0.021087646484375, -0.01531219482421875, 0.037017822265625, 0.01375579833984375, -0.0045166015625, 0.025909423828125, -0.033111572265625, -0.01337432861328125, -0.0019817352294921875, 0.0035552978515625, 0.040771484375, -0.035125732421875, 0.010772705078125, -0.06396484375, -0.0294342041015625, 0.00922393798828125, -0.0200347900390625, -0.00980377197265625, 0.006214141845703125, -0.0258636474609375, -0.0022144317626953125, 0.01258087158203125, 0.01470947265625, 0.01258087158203125, 0.0209503173828125, -0.0152740478515625, 0.03240966796875, 0.01241302490234375, 0.02099609375, -0.0399169921875, 0.0382080078125, -0.0010471343994140625, 0.02752685546875, 0.0296173095703125, 0.0019779205322265625, -0.024566650390625, -0.0019817352294921875, -0.07513427734375, -0.0712890625, 0.040435791015625, -0.054718017578125, 0.010345458984375, -0.0556640625, -0.01271820068359375, -0.0159759521484375, 0.09869384765625, 0.0271453857421875, -0.034881591796875, -0.00817108154296875, 0.003082275390625, -0.001674652099609375, -0.035980224609375, 0.024169921875, -0.035247802734375, -0.06732177734375, 0.002765655517578125, -0.0230712890625, -0.0168914794921875, -0.009979248046875, -0.045989990234375, -0.0224151611328125, -0.041107177734375, 0.03167724609375, -0.0421142578125, 0.0160064697265625, 0.057525634765625, -0.01314544677734375, 0.036468505859375, -0.0318603515625, -0.0335693359375, -0.0645751953125, -0.02044677734375, -0.00289154052734375, 0.05987548828125, 0.008270263671875, -0.03302001953125, -0.002384185791015625, 0.060089111328125, 0.01108551025390625, -0.02130126953125, 0.0284881591796875, -0.01296234130859375, 0.02728271484375, 0.025115966796875, 0.0200653076171875, -0.0187225341796875, 0.00296783447265625, 0.0105743408203125, 0.0038204193115234375, 0.0501708984375, -0.02435302734375, 0.0079345703125, 0.017547607421875, -0.0380859375, -0.051177978515625, -0.0384521484375, -0.02557373046875, 0.03662109375, -0.0298004150390625, -0.0006732940673828125, -0.042694091796875, -0.05743408203125, 0.0443115234375, -0.034423828125, -0.01715087890625, -0.0005307197570800781, 0.077880859375, 0.014984130859375, -0.01593017578125, 0.01181793212890625, 0.009307861328125, 0.04522705078125, -0.02667236328125, 0.023773193359375, 0.0113525390625, -0.01442718505859375, 0.0364990234375, -0.0264739990234375, 0.01544189453125, -0.0247650146484375, 0.024658203125, 0.00794219970703125, -0.013702392578125, 0.0154266357421875, 0.0005030632019042969, 0.01214599609375, 0.005306243896484375, -0.01385498046875, -0.0219268798828125, 0.019378662109375, 0.04620361328125, -0.0224609375, 0.03887939453125, -0.017059326171875, -0.017303466796875, 0.0170135498046875, -0.021270751953125, 0.055633544921875, -0.0038089752197265625, 0.0095367431640625, 0.01012420654296875, 0.00952911376953125, -0.0111236572265625, 0.0148162841796875, -0.006069183349609375, -0.0004906654357910156, 0.0241851806640625, -0.0096282958984375, -0.019683837890625, -0.00542449951171875, -0.01016998291015625, 0.08685302734375, 0.031951904296875, -0.022064208984375, 0.022064208984375, -0.029266357421875, -0.02496337890625, -0.0051422119140625, -0.03094482421875, 0.028961181640625, 0.002288818359375, -0.033935546875, 0.0229949951171875, -0.039794921875, -0.0250091552734375, -0.055206298828125, 0.0248870849609375, -0.0022792816162109375, -0.0173797607421875, 0.0002532005310058594, 0.049835205078125, -0.00922393798828125, 0.006862640380859375, 0.0173797607421875, 0.041778564453125, 0.0428466796875, 0.0261688232421875, 0.002445220947265625, -0.004669189453125, 0.00460052490234375, 0.000499725341796875, -0.01910400390625, -0.03485107421875, -0.017364501953125, 0.007144927978515625, 0.057037353515625, -0.00534820556640625, -0.0116729736328125, 0.0101165771484375, -0.04815673828125, -0.0201416015625, -0.01739501953125, -0.00492095947265625, -0.009033203125, -0.0164947509765625, -0.0265350341796875, 0.008880615234375, 0.019317626953125, -0.0101165771484375, 0.0202484130859375, -0.00861358642578125, 0.052947998046875, 0.017303466796875, 0.04315185546875, -0.0223236083984375, -0.04022216796875, -0.026153564453125, -0.0006413459777832031, 0.03955078125, -0.052581787109375, -0.021636962890625, -0.0313720703125, -0.01526641845703125, 0.042388916015625, 0.005420684814453125, 0.03778076171875, -0.00159454345703125, -0.040740966796875, 0.07080078125, 0.00769805908203125, 0.0284576416015625, -0.01953125, 0.0013723373413085938, -0.007781982421875, -0.0214691162109375, -0.00954437255859375, 0.0086822509765625, -0.0293731689453125, 0.0011606216430664062, -0.0063629150390625, -0.00318145751953125, 0.00342559814453125, -0.01392364501953125, 0.0017004013061523438, -0.0396728515625, 0.032257080078125, 0.02008056640625, 0.01082611083984375, -0.0107574462890625, 0.07379150390625, -0.005474090576171875, 0.0310211181640625, 0.0110626220703125, 0.049468994140625, 0.00942230224609375, -0.0277252197265625, 0.0301666259765625, -0.057159423828125, -0.03485107421875, -0.0258026123046875, -0.0369873046875, 0.0160980224609375, 0.0273284912109375, -0.01180267333984375, 0.0294189453125, -0.0154876708984375, -0.00861358642578125, -0.010467529296875, -0.0277557373046875, -0.029541015625, 0.03741455078125, -0.0276336669921875, 0.016876220703125, 0.07952880859375, -0.041717529296875, 0.0028743743896484375, -0.01505279541015625, -0.0165557861328125, 0.005916595458984375, 0.01702880859375, -0.07196044921875, 0.061309814453125, 0.10052490234375, 0.015045166015625, 0.07220458984375, 0.025054931640625, 0.0382080078125, 0.04541015625, -0.010772705078125, 0.0014028549194335938, 0.032073974609375, 0.036895751953125, 0.004253387451171875, -0.018341064453125, 0.027862548828125, -0.00936126708984375, 0.03173828125, 0.046875, 0.054534912109375, -0.0672607421875, 0.00222015380859375, -0.015655517578125, -0.00829315185546875, 0.08404541015625, 0.029083251953125, -0.0266571044921875, 0.0020427703857421875, 0.01456451416015625, -0.049407958984375, -0.01250457763671875, 0.01529693603515625, 0.036956787109375, -0.01031494140625, -0.01175689697265625, 0.00896453857421875, 0.01189422607421875, 0.01282501220703125, -0.01277923583984375, -0.0030956268310546875, 0.016754150390625, 0.0200958251953125, 0.035552978515625, -0.0293426513671875, 0.0032978057861328125, 0.0190277099609375, 0.03302001953125, -0.0472412109375, -0.0120849609375, 0.02557373046875, -0.0166168212890625, 0.00554656982421875, 0.045074462890625, -0.025390625, 0.0290374755859375, 0.0044403076171875, -0.0203704833984375, 0.052490234375, -0.02874755859375, -0.00634002685546875, -0.035003662109375, 0.0020999908447265625, -0.0023212432861328125, 0.0002396106719970703, -0.045928955078125, -0.0013666152954101562, -0.047393798828125, 0.0225677490234375, -0.058319091796875, -0.0025196075439453125, 0.01041412353515625, -0.01387786865234375, 0.0222930908203125, 0.01507568359375, 0.01544189453125, -0.039642333984375, -0.034454345703125, 0.0198211669921875, -0.0377197265625, 0.010650634765625, -0.010986328125, -0.054656982421875, 0.07037353515625, -0.02935791015625, 0.040191650390625, 0.03656005859375, 0.0214080810546875, -0.02093505859375, -0.0015163421630859375, -0.0160369873046875, 0.04168701171875, 0.0261077880859375, 0.0297088623046875, -0.062042236328125, -0.0357666015625, -0.0015239715576171875, 0.0948486328125, 0.073974609375, 0.0207977294921875, -0.04638671875, -0.0019378662109375, 0.0277862548828125, 0.01239776611328125, -0.02215576171875, 0.050384521484375, -0.0272979736328125, -0.0307464599609375, 0.0078277587890625, 0.003116607666015625, 0.016693115234375, 0.009765625, -0.043487548828125, 0.00939178466796875, 0.0016202926635742188, -0.00637054443359375, -0.002674102783203125, 0.00818634033203125, -0.022125244140625, -0.00279998779296875, 0.0184173583984375, -0.02935791015625, -0.01248931884765625, 0.050323486328125, 0.00909423828125, -0.0256500244140625, -0.0207061767578125, -0.0260467529296875, 0.036163330078125, -0.007061004638671875, 0.044677734375, 0.036712646484375, 0.0157470703125, 0.03302001953125, 0.0364990234375, 0.028045654296875, 0.031280517578125, -0.00952911376953125, 0.04351806640625, 0.039520263671875, 0.04351806640625, 0.0228271484375, 0.015472412109375, -0.0254364013671875, 0.0285797119140625, -0.024749755859375, -0.0035533905029296875, 0.0089569091796875, -0.0164947509765625, -0.007236480712890625, -0.039306640625, -0.00403594970703125, -0.0157318115234375, -0.036102294921875, -0.00037860870361328125, 0.00031685829162597656, 0.0006504058837890625, 0.01605224609375, -0.0011949539184570312, 0.0247039794921875, -0.037109375, 0.01331329345703125, -0.0260467529296875, -0.0225067138671875, 0.00991058349609375, 0.04833984375, 0.04241943359375, 0.0214691162109375, 0.031951904296875, -0.031890869140625, 0.00940704345703125, 0.02911376953125, -0.0173492431640625, -0.0129241943359375, -0.0333251953125, -0.06390380859375, 0.018096923828125, 0.04833984375, 0.010528564453125, 0.007602691650390625, 0.0154266357421875, 0.00112152099609375, -0.01314544677734375, 0.006313323974609375, 0.038726806640625, -0.0264434814453125, 0.046661376953125, -0.03729248046875, 0.07757568359375, 0.013458251953125, 0.004276275634765625, -0.057586669921875, 0.0288238525390625, 0.0494384765625, 0.0004737377166748047, 0.009674072265625, 0.0028705596923828125, -0.04571533203125, 0.0184326171875, -0.0103302001953125, 0.052520751953125, 0.030548095703125, -0.019256591796875, 0.0224761962890625, -0.027862548828125, -0.09124755859375, 0.0178070068359375, 0.04376220703125, -0.0163726806640625, 0.0028247833251953125, -0.02008056640625, 0.0032634735107421875, 0.015655517578125, -0.0013666152954101562, -0.03375244140625, -0.0030879974365234375, 0.037872314453125, -0.0157012939453125, -0.048126220703125, -0.0239105224609375, -0.00931549072265625, 0.048797607421875, 0.011444091796875, 0.109619140625, -0.051361083984375, 0.0012273788452148438, -0.0268096923828125, -0.0125732421875, -0.0074462890625, -0.0235595703125, 0.0080718994140625, 0.00623321533203125, -0.01274871826171875, 0.0015726089477539062, -0.07708740234375, 0.0007524490356445312, 0.0170745849609375, -0.05035400390625, 0.0296173095703125, -0.014678955078125, 0.01023101806640625, -0.056549072265625, -0.00028395652770996094, -0.048065185546875, -0.0738525390625, -0.054443359375, -0.01122283935546875, -0.007053375244140625, -0.0300750732421875, -0.022552490234375, 0.038726806640625, 0.0001519918441772461, -0.01235198974609375, 0.0087432861328125, -0.0374755859375, 0.019287109375, 0.0421142578125, -0.025604248046875, -0.06884765625, 0.0191192626953125, -0.01412200927734375, -0.0013628005981445312, 0.00377655029296875, 0.042724609375, 0.01922607421875, -0.06915283203125, -0.025421142578125, -0.01739501953125, 0.01273345947265625, -0.0007305145263671875, -0.00139617919921875, -0.0250091552734375, -0.00433349609375, -0.0124664306640625, -0.012969970703125, -0.026092529296875, -0.008056640625, -0.01068115234375, 0.030181884765625, -0.004283905029296875, -0.024749755859375, -0.056427001953125, 0.0309906005859375, 0.033905029296875, -0.006221771240234375, -0.0765380859375, 0.04302978515625, -0.04132080078125, 0.1009521484375, -0.043182373046875, -0.0239715576171875, 0.00818634033203125, 0.018096923828125, -0.04095458984375, -0.0293426513671875, -0.044342041015625, -0.0002689361572265625, -0.0513916015625, -0.005207061767578125, 0.027313232421875, 0.0033817291259765625, 0.0242919921875, 0.00394439697265625, -0.016510009765625, 0.06903076171875, -0.0736083984375, -0.0138702392578125, 0.035797119140625, 0.00885772705078125, -0.035552978515625, -0.067626953125, 0.0004754066467285156, -0.042022705078125, 0.0026264190673828125, -0.01520538330078125, -0.00273895263671875, 0.00562286376953125, -0.0287933349609375, -0.038177490234375, 0.0228271484375, 0.011016845703125, -0.02301025390625, -0.05828857421875, -0.0037975311279296875, -0.02587890625, 0.057403564453125, 0.00754547119140625, -0.04864501953125, -0.0257720947265625, 0.0304412841796875, 0.0092315673828125, 0.0572509765625, -0.023406982421875, 0.0350341796875, 0.0006089210510253906, 0.03564453125, 0.017059326171875, -0.0100555419921875, 0.030548095703125, -0.03656005859375, 0.07293701171875, 0.0794677734375, -0.002544403076171875, 0.0183258056640625, 0.003238677978515625, -0.0718994140625, -0.01166534423828125, -0.049072265625, -0.0290679931640625, -0.059478759765625, 0.057647705078125, -0.002597808837890625, 0.0067901611328125, 0.01081085205078125, -0.026275634765625, -0.00794219970703125, -0.01000213623046875, -0.0091400146484375, 0.01061248779296875, -0.0250701904296875, 0.0034694671630859375, -0.021240234375, -0.013153076171875, 0.00554656982421875, 0.0171356201171875, -0.0259246826171875, 0.0205230712890625, 0.0137176513671875, -0.0221405029296875, -0.03350830078125, 0.0225830078125, 0.0860595703125, -0.061798095703125, -0.003849029541015625, 0.004116058349609375, 0.01611328125, 0.038604736328125, -0.053497314453125, -0.0041046142578125, 0.04705810546875, -0.0223846435546875, -0.007965087890625, 0.01140594482421875, 0.006023406982421875, -0.0187225341796875, 0.0128326416015625, -0.01245880126953125, 0.036712646484375, -0.0036716461181640625, 0.03961181640625, -0.005336761474609375, 0.04766845703125, 0.0011548995971679688, 0.06597900390625, -0.03302001953125, -0.043060302734375, -0.037994384765625, 0.0250091552734375, -0.01192474365234375, 0.030029296875, 0.031829833984375, -0.00399017333984375, 0.0009775161743164062, 0.017059326171875, 0.00946807861328125, -0.032440185546875, 0.009674072265625, -0.0309906005859375, 0.015625, 0.01132965087890625 ]
7639060be48e3f3f0061af8e2e55fcf95d8ab0bd
Wordpress Stackexchange Q: When to use esc_html and when to use sanitize_text_field? It seems that they do almost same type of job. So... When should I use esc_html() instead of sanitize_text_field()? A: esc_html() is more or less lossless — it just turns HTML markup into encoded visible text, so that it's not rendered as markup by browser. Semantically it's escape, so it's meant to be used to make output to page safe. sanitize_text_field() however actually removes all HTML markup, as well as extra whitespace. It leaves nothing but plain text. Semantically it's sanitize, so it's meant to be used to make input being saved safe.
Q: When to use esc_html and when to use sanitize_text_field? It seems that they do almost same type of job. So... When should I use esc_html() instead of sanitize_text_field()? A: esc_html() is more or less lossless — it just turns HTML markup into encoded visible text, so that it's not rendered as markup by browser. Semantically it's escape, so it's meant to be used to make output to page safe. sanitize_text_field() however actually removes all HTML markup, as well as extra whitespace. It leaves nothing but plain text. Semantically it's sanitize, so it's meant to be used to make input being saved safe.
wordpress
{ "language": "en", "length": 103, "provenance": "stackexchange_00019.jsonl.gz:444432", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141849" }
[ 0.0169677734375, 0.008941650390625, -0.04107666015625, -0.050689697265625, 0.0199127197265625, -0.0012464523315429688, -0.02880859375, -0.001094818115234375, 0.00727081298828125, 0.04034423828125, -0.0293426513671875, 0.0122528076171875, 0.004474639892578125, -0.011077880859375, -0.0207672119140625, -0.01378631591796875, -0.0007939338684082031, -0.01503753662109375, 0.0005593299865722656, -0.0173187255859375, -0.004589080810546875, -0.0207672119140625, 0.01422882080078125, -0.06414794921875, 0.00818634033203125, -0.05523681640625, 0.0732421875, -0.0020904541015625, 0.0016202926635742188, -0.00628662109375, 0.007293701171875, -0.005329132080078125, 0.0242156982421875, 0.046234130859375, -0.0615234375, 0.038177490234375, -0.0284423828125, 0.041015625, 0.00568389892578125, 0.0125885009765625, 0.035858154296875, -0.0216217041015625, 0.04229736328125, 0.00032138824462890625, -0.0003612041473388672, 0.00978851318359375, 0.0281829833984375, -0.0209808349609375, -0.0269775390625, -0.0301971435546875, 0.01560211181640625, -0.015472412109375, 0.0484619140625, -0.0445556640625, -0.0015716552734375, 0.01030731201171875, 0.0175933837890625, -0.02630615234375, 0.016143798828125, 0.06427001953125, 0.002735137939453125, 0.0284576416015625, -0.0180816650390625, -0.0596923828125, 0.020050048828125, -0.00200653076171875, -0.013702392578125, 0.035400390625, -0.0706787109375, -0.0009274482727050781, 0.031494140625, -0.06378173828125, 0.01128387451171875, -0.047515869140625, -0.00833892822265625, 0.058197021484375, -0.027862548828125, -0.00887298583984375, 0.034881591796875, -0.0171356201171875, -0.0171966552734375, 0.01580810546875, -0.02197265625, -0.05615234375, 0.004741668701171875, -0.04364013671875, -0.0175628662109375, 0.0073394775390625, 0.00567626953125, -0.0247955322265625, -0.001033782958984375, 0.004276275634765625, 0.01617431640625, -0.00904083251953125, -0.0203399658203125, -0.0494384765625, 0.032135009765625, 0.01727294921875, 0.02264404296875, 0.0009975433349609375, 0.07830810546875, -0.084716796875, 0.06781005859375, -0.0291595458984375, 0.01288604736328125, 0.08392333984375, -0.0181884765625, -0.027862548828125, 0.0285797119140625, 0.0024662017822265625, 0.024566650390625, -0.0077362060546875, -0.038909912109375, -0.0491943359375, 0.0088043212890625, 0.042083740234375, -0.042572021484375, 0.025970458984375, -0.0012292861938476562, -0.010101318359375, -0.01666259765625, -0.009002685546875, 0.0282440185546875, -0.043212890625, -0.0257110595703125, -0.05462646484375, -0.02734375, -0.005298614501953125, -0.0002071857452392578, 0.0160369873046875, -0.01435089111328125, 0.0227813720703125, 0.04473876953125, 0.023040771484375, -0.0017299652099609375, -0.01393890380859375, -0.0252532958984375, -0.0802001953125, 0.005901336669921875, 0.040496826171875, -0.0399169921875, -0.0269927978515625, 0.059234619140625, -0.021881103515625, 0.00881195068359375, 0.02557373046875, 0.017425537109375, -0.0016546249389648438, -0.00848388671875, -0.06732177734375, 0.0242767333984375, -0.0209503173828125, 0.03289794921875, -0.00867462158203125, -0.012176513671875, -0.033538818359375, -0.00428009033203125, -0.023956298828125, 0.00585174560546875, -0.034149169921875, 0.040435791015625, 0.004974365234375, 0.0281219482421875, 0.00803375244140625, -0.0242462158203125, -0.0252532958984375, -0.045501708984375, -0.00811004638671875, 0.0230560302734375, -0.03997802734375, 0.042724609375, 0.00833892822265625, 0.0139007568359375, -0.001735687255859375, 0.0155792236328125, 0.007598876953125, -0.04266357421875, 0.0313720703125, 0.031463623046875, -0.01123046875, 0.005817413330078125, -0.0273590087890625, 0.03887939453125, 0.00734710693359375, -0.057281494140625, 0.0290985107421875, 0.0038356781005859375, 0.0538330078125, 0.03363037109375, 0.010223388671875, 0.0335693359375, -0.009124755859375, 0.01200103759765625, -0.0261993408203125, 0.01477813720703125, -0.043914794921875, -0.03143310546875, -0.027008056640625, -0.005168914794921875, 0.0160369873046875, 0.074951171875, -0.036346435546875, 0.059234619140625, -0.022308349609375, -0.023193359375, 0.007904052734375, -0.01953125, 0.0073699951171875, 0.0003905296325683594, 0.01239013671875, 0.0186309814453125, -0.015777587890625, -0.0299530029296875, 0.0247802734375, -0.0251617431640625, -0.0161285400390625, -0.03204345703125, 0.044647216796875, -0.016326904296875, 0.0009217262268066406, 0.0194854736328125, -0.061981201171875, 0.0164947509765625, 0.0245208740234375, -0.00594329833984375, -0.03167724609375, 0.01177978515625, -0.02227783203125, 0.0294189453125, -0.031494140625, 0.082763671875, 0.02880859375, 0.0875244140625, 0.0650634765625, -0.00982666015625, -0.0003604888916015625, 0.01003265380859375, -0.07470703125, -0.0185394287109375, 0.057342529296875, 0.037872314453125, 0.08380126953125, -0.0183868408203125, -0.06365966796875, 0.077392578125, -0.0233001708984375, 0.0165252685546875, -0.053375244140625, -0.013671875, 0.01117706298828125, 0.013031005859375, -0.016815185546875, 0.0017805099487304688, -0.109375, 0.003582000732421875, 0.0223541259765625, -0.05718994140625, -0.045013427734375, -0.020904541015625, -0.004451751708984375, 0.0202484130859375, -0.05059814453125, -0.0084228515625, -0.0290985107421875, 0.042877197265625, -0.042388916015625, 0.0288238525390625, 0.0108795166015625, 0.006420135498046875, -0.0228424072265625, 0.0166015625, -0.0101165771484375, -0.0026397705078125, 0.06048583984375, -0.0433349609375, 0.02459716796875, -0.01131439208984375, -0.0121917724609375, -0.004119873046875, 0.039093017578125, -0.0012922286987304688, 0.006237030029296875, -0.0250091552734375, -0.0238189697265625, 0.013946533203125, -0.02392578125, 0.0006155967712402344, 0.0079345703125, 0.01515960693359375, -0.0105743408203125, 0.00835418701171875, 0.01116943359375, 0.004177093505859375, 0.0222625732421875, 0.03521728515625, -0.0288543701171875, -0.019561767578125, -0.03729248046875, 0.01375579833984375, -0.0114288330078125, 0.046875, 0.0595703125, 0.0197906494140625, -0.01355743408203125, 0.0012559890747070312, -0.036895751953125, 0.003849029541015625, -0.00579071044921875, -0.0254974365234375, 0.01033782958984375, -0.1273193359375, -0.040130615234375, 0.019622802734375, 0.047393798828125, -0.0306396484375, -0.043609619140625, -0.020263671875, 0.022064208984375, -0.064697265625, -0.048309326171875, -0.004871368408203125, -0.0310821533203125, -0.0272674560546875, 0.00547027587890625, -0.01047515869140625, 0.013641357421875, 0.0159759521484375, -0.002849578857421875, -0.0013856887817382812, 0.0182037353515625, -0.06268310546875, 0.004962921142578125, -0.024200439453125, 0.074951171875, -0.0250701904296875, 0.0019893646240234375, -0.0008363723754882812, 0.02862548828125, -0.0166473388671875, -0.01010894775390625, -0.0004725456237792969, 0.00015592575073242188, 0.01503753662109375, 0.0025768280029296875, -0.0161285400390625, -0.049407958984375, -0.0277557373046875, 0.01171112060546875, -0.0263214111328125, -0.059326171875, 0.06805419921875, -0.0221099853515625, -0.0082550048828125, 0.0091552734375, 0.0285186767578125, 0.0096435546875, -0.01555633544921875, 0.0218963623046875, 0.01763916015625, -0.032745361328125, 0.0181427001953125, -0.018585205078125, -0.0164031982421875, -0.00907135009765625, -0.00395965576171875, 0.012054443359375, -0.02288818359375, 0.01995849609375, 0.01251220703125, -0.0025119781494140625, 0.0445556640625, 0.0036945343017578125, -0.027587890625, -0.01454925537109375, -0.0240936279296875, -0.0362548828125, -0.0109100341796875, -0.03790283203125, 0.025543212890625, -0.016357421875, 0.0218048095703125, 0.00927734375, -0.007663726806640625, -0.00010454654693603516, -0.0151824951171875, 0.048004150390625, 0.038818359375, 0.058135986328125, -0.0114288330078125, -0.036956787109375, -0.0211029052734375, 0.0743408203125, -0.04534912109375, -0.020263671875, 0.01495361328125, 0.01178741455078125, -0.0015459060668945312, -0.0028438568115234375, -0.03863525390625, -0.02667236328125, -0.04241943359375, 0.03466796875, 0.0142822265625, -0.0154571533203125, -0.040069580078125, 0.02276611328125, -0.04815673828125, -0.01523590087890625, 0.0126495361328125, -0.01496124267578125, 0.01432037353515625, -0.01476287841796875, 0.04656982421875, -0.059661865234375, 0.019012451171875, -0.0294036865234375, -0.04266357421875, -0.0027561187744140625, -0.0352783203125, 0.0300140380859375, 0.03271484375, -0.0209808349609375, -0.020538330078125, 0.0272674560546875, 0.027557373046875, -0.0015583038330078125, 0.04443359375, -0.00156402587890625, -0.0016994476318359375, 0.038238525390625, 0.051055908203125, -0.02325439453125, 0.032440185546875, 0.01406097412109375, -0.055267333984375, 0.0025424957275390625, -0.00363922119140625, -0.003932952880859375, 0.04693603515625, -0.054595947265625, -0.0239715576171875, -0.01514434814453125, -0.053436279296875, -0.0246429443359375, -0.00609588623046875, -0.03509521484375, 0.00563812255859375, -0.0175323486328125, 0.039886474609375, 0.0211639404296875, 0.028076171875, -0.0165863037109375, 0.03729248046875, 0.0203094482421875, -0.035308837890625, 0.0295562744140625, -0.044219970703125, 0.01543426513671875, 0.007762908935546875, 0.017913818359375, -0.007213592529296875, -0.040008544921875, 0.0782470703125, -0.011383056640625, 0.0281219482421875, -0.0292510986328125, 0.01361846923828125, -0.00263214111328125, 0.0118408203125, -0.00856781005859375, -0.012451171875, 0.0308074951171875, 0.076904296875, 0.01474761962890625, 0.0111846923828125, -0.0086822509765625, -0.0298309326171875, 0.005950927734375, -0.0635986328125, 0.005947113037109375, -0.00927734375, -0.00824737548828125, 0.034881591796875, 0.0660400390625, 0.05279541015625, -0.0064697265625, 0.03472900390625, 0.028167724609375, -0.0078582763671875, -0.050933837890625, -0.037689208984375, -0.036590576171875, 0.0024013519287109375, -0.018951416015625, -0.02587890625, 0.000637054443359375, -0.005859375, 0.0296173095703125, -0.01580810546875, -0.0247802734375, -0.033203125, -0.00978851318359375, 0.04046630859375, 0.0026264190673828125, 0.055023193359375, -0.0014171600341796875, -0.0209503173828125, 0.00429534912109375, 0.0274810791015625, 0.0452880859375, 0.012664794921875, 0.00396728515625, -0.0157012939453125, 0.0168609619140625, -0.0215606689453125, 0.0014257431030273438, 0.041839599609375, -0.00885009765625, 0.014495849609375, -0.019317626953125, 0.0411376953125, -0.00044465065002441406, 0.023681640625, 0.006591796875, -0.0155181884765625, 0.015350341796875, -0.0078125, 0.0032958984375, -0.016754150390625, -0.05267333984375, 0.03594970703125, 0.037841796875, -0.0404052734375, 0.025115966796875, -0.005733489990234375, 0.0159454345703125, -0.0181884765625, 0.048309326171875, -0.0014715194702148438, -0.05902099609375, -0.039825439453125, -0.02716064453125, 0.035491943359375, -0.0287933349609375, 0.007389068603515625, 0.0126800537109375, -0.01055145263671875, 0.0187225341796875, -0.020294189453125, 0.0023746490478515625, -0.0212249755859375, -0.004695892333984375, 0.032623291015625, 0.000946044921875, -0.0242919921875, -0.032928466796875, -0.0108184814453125, -0.0133056640625, -0.01380157470703125, 0.07257080078125, -0.020050048828125, 0.045318603515625, -0.038726806640625, -0.005237579345703125, -0.018096923828125, 0.017333984375, 0.0264739990234375, 0.01042938232421875, -0.046356201171875, 0.0242919921875, -0.07366943359375, -0.004665374755859375, -0.06005859375, -0.0261383056640625, -0.043487548828125, 0.007221221923828125, 0.006687164306640625, 0.053863525390625, -0.01580810546875, -0.0018520355224609375, 0.0267486572265625, -0.0186920166015625, -0.047515869140625, 0.0579833984375, -0.0343017578125, 0.02032470703125, 0.00414276123046875, 0.0118255615234375, -0.0156707763671875, 0.010101318359375, 0.04315185546875, -0.02069091796875, -0.0019197463989257812, -0.043304443359375, 0.000004470348358154297, -0.0217742919921875, 0.03961181640625, 0.0257720947265625, 0.0189971923828125, 0.0018014907836914062, 0.051055908203125, -0.00975799560546875, -0.00269317626953125, 0.002155303955078125, -0.00885772705078125, -0.016204833984375, 0.046539306640625, 0.025054931640625, -0.0248870849609375, -0.016876220703125, 0.01224517822265625, -0.020233154296875, 0.033538818359375, 0.0007071495056152344, 0.017059326171875, 0.0006389617919921875, 0.03314208984375, 0.00818634033203125, -0.004596710205078125, -0.045074462890625, 0.01419830322265625, 0.02496337890625, 0.0010509490966796875, 0.026885986328125, -0.01160430908203125, -0.04510498046875, 0.018035888671875, 0.0290985107421875, 0.004833221435546875, 0.00972747802734375, 0.0245208740234375, -0.00102996826171875, 0.025543212890625, 0.09381103515625, 0.117431640625, -0.10400390625, -0.0003769397735595703, 0.05499267578125, -0.0335693359375, -0.03619384765625, -0.0158233642578125, 0.01113128662109375, -0.032745361328125, 0.055206298828125, -0.034271240234375, 0.0005016326904296875, 0.01116943359375, -0.041412353515625, -0.0218963623046875, -0.031402587890625, 0.04290771484375, 0.0194244384765625, -0.0239715576171875, 0.005809783935546875, 0.029144287109375, -0.02947998046875, -0.04345703125, 0.0096588134765625, 0.01540374755859375, -0.03436279296875, -0.076904296875, -0.008392333984375, 0.015533447265625, -0.025482177734375, -0.046173095703125, 0.0039215087890625, 0.025787353515625, 0.037689208984375, -0.0245208740234375, 0.00988006591796875, 0.0028934478759765625, 0.0137939453125, -0.0267333984375, -0.0390625, -0.03863525390625, 0.00533294677734375, -0.036346435546875, 0.01364898681640625, -0.036865234375, 0.019012451171875, -0.01727294921875, -0.0013456344604492188, 0.062255859375, 0.0233306884765625, -0.039398193359375, 0.01065826416015625, 0.0251617431640625, -0.012115478515625, -0.05938720703125, -0.009124755859375, -0.04022216796875, 0.02593994140625, -0.06170654296875, -0.00333404541015625, 0.048309326171875, -0.06298828125, -0.10833740234375, 0.0877685546875, 0.0836181640625, 0.052520751953125, -0.045013427734375, 0.015899658203125, -0.043548583984375, -0.0284881591796875, 0.0146331787109375, 0.0017566680908203125, -0.0173492431640625, -0.01528167724609375, 0.021728515625, 0.0154266357421875, 0.004657745361328125, 0.010223388671875, -0.01496124267578125, -0.00991058349609375, 0.0264434814453125, 0.0205230712890625, 0.0435791015625, 0.017822265625, -0.0149383544921875, -0.010467529296875, 0.01409149169921875, 0.019073486328125, 0.022979736328125, -0.021209716796875, 0.0221099853515625, -0.045440673828125, -0.0037899017333984375, 0.035400390625, 0.01023101806640625, -0.01079559326171875, 0.0295867919921875, 0.01178741455078125, -0.030792236328125, 0.0345458984375, 0.01317596435546875, 0.0391845703125, -0.0301666259765625, 0.024871826171875, 0.02215576171875, -0.036102294921875, 0.01483917236328125, -0.034332275390625, 0.045806884765625, 0.0230255126953125, 0.0625, 0.04705810546875, 0.0214080810546875, 0.084228515625, -0.00571441650390625, 0.035064697265625, -0.002132415771484375, -0.0148773193359375, 0.004909515380859375, -0.00394439697265625, 0.019073486328125, -0.0207366943359375, -0.01119232177734375, 0.0194854736328125, 0.0206756591796875, -0.005222320556640625, -0.01727294921875, 0.01239776611328125, 0.016204833984375, 0.0158233642578125, -0.0107574462890625, 0.0303955078125, -0.049041748046875, -0.017547607421875, -0.01485443115234375, 0.00862884521484375, 0.036407470703125, 0.0016469955444335938, 0.00594329833984375, 0.0019159317016601562, -0.027618408203125, 0.02215576171875, -0.0450439453125, -0.01186370849609375, 0.001140594482421875, 0.0263519287109375, 0.0472412109375, -0.0014324188232421875, 0.054351806640625, -0.016204833984375, -0.04248046875, 0.0101776123046875, 0.0142059326171875, 0.0439453125, -0.017486572265625, 0.032012939453125, 0.0273284912109375, 0.01873779296875, 0.0016565322875976562, 0.0140533447265625, 0.042266845703125, 0.06781005859375, 0.00006574392318725586, -0.007503509521484375, 0.052734375, -0.003753662109375, 0.0093841552734375, -0.00647735595703125, 0.0095977783203125, 0.0306854248046875, -0.0029773712158203125, -0.013397216796875, 0.02044677734375, 0.03973388671875, -0.01509857177734375, 0.0240478515625, -0.0043792724609375, -0.034698486328125, -0.00855255126953125, -0.0254364013671875, 0.04754638671875, 0.00234222412109375, 0.020782470703125, -0.0176239013671875, 0.0340576171875, -0.02374267578125, 0.021942138671875, 0.04071044921875, 0.01094818115234375, -0.004459381103515625, 0.0858154296875, -0.0545654296875, 0.0198516845703125, 0.066650390625, -0.01184844970703125, -0.0230712890625, 0.029754638671875, -0.0134429931640625, -0.0023651123046875, -0.023101806640625, 0.0287628173828125, 0.0380859375, -0.01934814453125, 0.01366424560546875, -0.0036563873291015625, 0.024658203125, 0.0142974853515625, 0.0193634033203125, -0.007419586181640625, 0.019256591796875, 0.037628173828125, 0.00417327880859375, -0.005435943603515625, -0.032928466796875, -0.018280029296875, 0.0265655517578125, 0.010711669921875, -0.01485443115234375, -0.0123291015625, 0.030426025390625, 0.011260986328125, 0.0172576904296875, 0.0177001953125, -0.0193023681640625, -0.054351806640625, 0.007114410400390625, 0.052734375, -0.01366424560546875, 0.033935546875, -0.007503509521484375, 0.033782958984375, -0.007663726806640625, -0.01027679443359375, 0.01513671875, -0.056060791015625, 0.01544952392578125, 0.020050048828125, -0.006732940673828125, 0.037078857421875, 0.057952880859375, -0.0100555419921875, 0.032440185546875, 0.0179901123046875, 0.00004076957702636719, 0.031951904296875, -0.047210693359375, -0.033843994140625, 0.004009246826171875, 0.0191192626953125, 0.011962890625, 0.00145721435546875, -0.0151214599609375, -0.0145263671875, -0.020843505859375, -0.00789642333984375, 0.00055694580078125, 0.00008702278137207031, -0.04290771484375, 0.00728607177734375, -0.0124053955078125, -0.035308837890625, -0.01302337646484375, -0.0280609130859375, -0.0003998279571533203, -0.01337432861328125, 0.015594482421875, -0.030975341796875, -0.005489349365234375, -0.0122833251953125, -0.003414154052734375, 0.0006308555603027344, -0.0419921875, -0.030364990234375, -0.024444580078125, -0.056304931640625, -0.0833740234375, 0.055877685546875, -0.06463623046875, 0.01220703125, 0.00043082237243652344, -0.0062103271484375, 0.0001398324966430664, 0.036407470703125, 0.00962066650390625, 0.061187744140625, 0.007709503173828125, -0.0052947998046875, 0.01500701904296875, 0.0399169921875, -0.009979248046875, -0.060333251953125, -0.0235748291015625, 0.007213592529296875, 0.047332763671875, -0.00522613525390625, -0.00408935546875, 0.0012950897216796875, -0.04754638671875, -0.1085205078125, 0.031463623046875, -0.0121002197265625, -0.04315185546875, 0.01401519775390625, -0.0009427070617675781, 0.009613037109375, 0.0200653076171875, 0.005550384521484375, -0.00461578369140625, -0.0341796875, -0.0211639404296875, 0.00685882568359375, 0.014373779296875, 0.053741455078125, -0.00838470458984375, -0.03955078125, -0.017730712890625, -0.02734375, -0.000514984130859375, -0.044036865234375, 0.00827789306640625, 0.006221771240234375, 0.03814697265625, -0.0237274169921875, -0.01666259765625, 0.013214111328125, 0.040985107421875, -0.00888824462890625, -0.0150909423828125, 0.01378631591796875, 0.01947021484375, 0.031036376953125, 0.0184173583984375, -0.0004048347473144531, -0.051788330078125, -0.039337158203125, -0.04083251953125, 0.021026611328125, -0.01265716552734375, -0.01166534423828125, -0.045196533203125, -0.007617950439453125, -0.00975799560546875, -0.0027828216552734375, 0.0294647216796875, -0.0260162353515625, -0.01007843017578125, -0.0014886856079101562, 0.01904296875, 0.01812744140625, -0.023223876953125, -0.039703369140625, 0.07965087890625, -0.037078857421875, 0.01235198974609375, 0.0002624988555908203, 0.037017822265625, 0.02099609375, 0.00473785400390625, 0.0193634033203125, -0.00783538818359375, -0.024993896484375, -0.00814056396484375, 0.01027679443359375, 0.0056304931640625, -0.00995635986328125, -0.0196075439453125, 0.0161590576171875, 0.01363372802734375, -0.02001953125, 0.037384033203125, 0.01666259765625, 0.042236328125, -0.003223419189453125, -0.0223541259765625, -0.047027587890625, -0.00379180908203125, -0.0090789794921875, 0.0014514923095703125, -0.01483154296875, 0.03466796875, 0.045379638671875, -0.021240234375, 0.0124664306640625, -0.03662109375, 0.00768280029296875, -0.04742431640625, 0.0264434814453125, -0.040069580078125, -0.00978851318359375, 0.0245361328125 ]
2a38ff237f22d4b0684964ef38d2471c81ad4080
Wordpress Stackexchange Q: wp-cli is not working properly. No response from commands I am trying to make a copy of a live site on a test server. I installed wp-cli and wp-cli sometimes works and sometimes doesn't. When it doesn't work, it just returns nothing. Not one character of output. I can view the website, apache, php and mysql all seem to be working. I turned on WP_DEBUG in wp-config.php and I see a couple of minor errors, as follows: PHP Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /var/www/wp-includes/functions.php on line 3083 Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /var/www/wp-includes/functions.php on line 3083 I have tried wp-cli --debug The only command that works is wp-cli --info This is the output of wp-cli, in case that is helpful. PHP binary: /usr/bin/php5‌‌ PHP version: 5.5.3-1ubuntu2.3 php.ini used: /etc/php5/cli/php.ini WP-CLI root dir: phar://wp-cli.phar WP-CLI global config: WP-CLI project config: WP-CLI version: 0.15.0 Every once in a while, a command will work. This is very strange. A: You need to use the --url flag when you have a multisite. wp-cli --debug --url=www.example.com or wp theme list --url=www.example.com
Q: wp-cli is not working properly. No response from commands I am trying to make a copy of a live site on a test server. I installed wp-cli and wp-cli sometimes works and sometimes doesn't. When it doesn't work, it just returns nothing. Not one character of output. I can view the website, apache, php and mysql all seem to be working. I turned on WP_DEBUG in wp-config.php and I see a couple of minor errors, as follows: PHP Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /var/www/wp-includes/functions.php on line 3083 Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /var/www/wp-includes/functions.php on line 3083 I have tried wp-cli --debug The only command that works is wp-cli --info This is the output of wp-cli, in case that is helpful. PHP binary: /usr/bin/php5‌‌ PHP version: 5.5.3-1ubuntu2.3 php.ini used: /etc/php5/cli/php.ini WP-CLI root dir: phar://wp-cli.phar WP-CLI global config: WP-CLI project config: WP-CLI version: 0.15.0 Every once in a while, a command will work. This is very strange. A: You need to use the --url flag when you have a multisite. wp-cli --debug --url=www.example.com or wp theme list --url=www.example.com A: If you only installed php5-cli then you probably don't have php5-mysql. Try running sudo apt-get install php5-mysql and see if that helps. A: I had this problem on a single-site install. Turned out that I had a broken plugin, and that was causing the site itself to fail with a fatal error. Once I replaced the broken plugin and the fatal error went away, wp-cli worked as normal.
wordpress
{ "language": "en", "length": 262, "provenance": "stackexchange_00019.jsonl.gz:444451", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141898" }
[ -0.0128326416015625, -0.028076171875, -0.0404052734375, -0.03173828125, -0.0213470458984375, -0.0184326171875, -0.0194854736328125, 0.0182647705078125, 0.01605224609375, 0.0163116455078125, -0.0200042724609375, 0.0090179443359375, -0.00806427001953125, -0.0290069580078125, -0.0083465576171875, -0.022003173828125, 0.03631591796875, -0.0298614501953125, 0.007488250732421875, -0.02252197265625, -0.012481689453125, 0.01450347900390625, 0.0222015380859375, 0.0521240234375, 0.033538818359375, -0.02239990234375, 0.03656005859375, 0.00803375244140625, -0.0108184814453125, -0.038787841796875, 0.01641845703125, 0.024688720703125, 0.0259857177734375, 0.01398468017578125, -0.01218414306640625, 0.0209808349609375, 0.01190948486328125, 0.0016422271728515625, -0.001934051513671875, 0.0226287841796875, -0.01085662841796875, 0.001171112060546875, 0.03790283203125, -0.0208587646484375, 0.006153106689453125, -0.036102294921875, 0.01198577880859375, -0.0288848876953125, 0.0037631988525390625, 0.01042938232421875, -0.04962158203125, 0.037872314453125, -0.0390625, 0.00542449951171875, 0.017822265625, 0.0028133392333984375, -0.0227508544921875, 0.0269622802734375, 0.017425537109375, 0.01161956787109375, -0.0281982421875, 0.0019550323486328125, 0.01236724853515625, -0.0025310516357421875, -0.0007872581481933594, -0.01042938232421875, 0.0296783447265625, 0.01317596435546875, -0.0230255126953125, 0.00696563720703125, 0.035125732421875, -0.00738525390625, -0.01568603515625, -0.0418701171875, -0.023284912109375, 0.0162353515625, 0.0146026611328125, -0.0274658203125, -0.0101470947265625, -0.0090789794921875, 0.049957275390625, 0.015869140625, -0.010162353515625, -0.0265960693359375, 0.038848876953125, 0.02154541015625, -0.001068115234375, -0.039398193359375, -0.049285888671875, -0.04046630859375, -0.0406494140625, -0.015869140625, -0.032562255859375, -0.06134033203125, -0.0265045166015625, -0.041900634765625, -0.031768798828125, -0.03582763671875, 0.0026683807373046875, 0.02203369140625, 0.0211181640625, -0.021942138671875, 0.03558349609375, -0.006977081298828125, 0.0021076202392578125, 0.06597900390625, 0.0118255615234375, 0.016326904296875, 0.01264190673828125, 0.0036716461181640625, 0.004123687744140625, -0.007068634033203125, 0.01523590087890625, -0.02685546875, 0.00011944770812988281, -0.039520263671875, -0.038848876953125, 0.05499267578125, 0.017242431640625, 0.03411865234375, 0.001422882080078125, 0.040802001953125, -0.0322265625, -0.0020885467529296875, -0.01824951171875, -0.005207061767578125, 0.040283203125, -0.052276611328125, -0.0274505615234375, 0.029693603515625, -0.01169586181640625, 0.01389312744140625, 0.0003917217254638672, 0.00214385986328125, -0.0199737548828125, -0.0096893310546875, 0.00884246826171875, 0.021209716796875, 0.02276611328125, 0.01031494140625, -0.028533935546875, -0.023773193359375, 0.00447845458984375, -0.0094451904296875, -0.004840850830078125, 0.00992584228515625, 0.01445770263671875, 0.01142120361328125, -0.0190277099609375, -0.027862548828125, -0.0142669677734375, 0.0032596588134765625, 0.027923583984375, 0.0157928466796875, 0.0204315185546875, -0.020233154296875, 0.0321044921875, -0.042572021484375, 0.007122039794921875, -0.03387451171875, 0.021240234375, 0.002593994140625, 0.00882720947265625, -0.01352691650390625, -0.0300750732421875, -0.017333984375, -0.0256195068359375, -0.003093719482421875, 0.0172271728515625, 0.0452880859375, 0.0218505859375, 0.00460052490234375, 0.0291748046875, 0.0107879638671875, -0.00391387939453125, -0.0009965896606445312, -0.01250457763671875, -0.0019779205322265625, 0.03192138671875, 0.04205322265625, -0.00799560546875, -0.024017333984375, 0.031890869140625, -0.0171051025390625, -0.07562255859375, -0.0020751953125, -0.00913238525390625, 0.038787841796875, 0.09088134765625, 0.003307342529296875, 0.041656494140625, -0.04315185546875, -0.01605224609375, 0.042205810546875, -0.0199127197265625, -0.041595458984375, -0.01335906982421875, -0.0035724639892578125, -0.0202789306640625, 0.00186920166015625, 0.0159912109375, -0.018096923828125, 0.02349853515625, 0.00849151611328125, -0.08123779296875, 0.050048828125, -0.046966552734375, 0.01198577880859375, 0.0335693359375, -0.019317626953125, 0.00713348388671875, 0.016204833984375, -0.00629425048828125, -0.044769287109375, -0.06634521484375, 0.053253173828125, -0.0010938644409179688, 0.0740966796875, -0.006908416748046875, 0.0841064453125, -0.0201568603515625, -0.024658203125, -0.00954437255859375, -0.016143798828125, -0.0178070068359375, 0.0046234130859375, -0.0116119384765625, 0.0005326271057128906, 0.0299072265625, 0.0122222900390625, 0.055755615234375, -0.012664794921875, 0.02655029296875, 0.012420654296875, -0.048248291015625, 0.0035991668701171875, -0.0155792236328125, -0.04949951171875, -0.00547027587890625, 0.055206298828125, 0.045654296875, 0.01190948486328125, -0.0002238750457763672, -0.028472900390625, 0.040008544921875, -0.01357269287109375, 0.039886474609375, -0.0665283203125, -0.02972412109375, -0.023406982421875, 0.02618408203125, -0.0237274169921875, 0.030120849609375, 0.0011882781982421875, -0.0105743408203125, 0.0207061767578125, -0.021026611328125, -0.030426025390625, 0.0022678375244140625, -0.0020809173583984375, 0.0120697021484375, -0.037567138671875, -0.040802001953125, -0.004253387451171875, -0.028289794921875, 0.017791748046875, -0.0187225341796875, -0.01113128662109375, -0.0244598388671875, 0.01027679443359375, 0.026824951171875, -0.0477294921875, 0.01361846923828125, 0.009979248046875, -0.0216217041015625, 0.03662109375, -0.031768798828125, 0.0030498504638671875, 0.043426513671875, 0.0180206298828125, -0.006000518798828125, 0.007724761962890625, 0.02203369140625, -0.003864288330078125, 0.01148223876953125, 0.03631591796875, 0.04364013671875, 0.0245513916015625, 0.019561767578125, -0.0076141357421875, -0.0081787109375, 0.044769287109375, -0.02978515625, 0.0830078125, -0.006671905517578125, -0.017120361328125, 0.065185546875, -0.00533294677734375, 0.0013275146484375, 0.0097503662109375, 0.06964111328125, 0.0390625, 0.0007290840148925781, -0.00318145751953125, -0.036163330078125, 0.0355224609375, -0.0208282470703125, -0.0197601318359375, -0.04461669921875, -0.024871826171875, -0.04803466796875, -0.0288238525390625, 0.0343017578125, 0.02032470703125, -0.01309967041015625, -0.0516357421875, -0.05279541015625, 0.00847625732421875, -0.11004638671875, -0.09429931640625, -0.0443115234375, -0.03338623046875, 0.0014638900756835938, -0.004528045654296875, -0.007228851318359375, 0.005451202392578125, -0.006244659423828125, 0.0176544189453125, 0.0816650390625, -0.07269287109375, -0.057525634765625, -0.07275390625, -0.08319091796875, -0.041015625, 0.00835418701171875, -0.01299285888671875, 0.00437164306640625, 0.05059814453125, 0.007495880126953125, -0.043212890625, 0.01092529296875, 0.05401611328125, 0.002414703369140625, 0.01495361328125, -0.0174560546875, 0.0010833740234375, 0.04486083984375, -0.002010345458984375, 0.054351806640625, 0.0435791015625, -0.0277252197265625, -0.0240631103515625, 0.0243072509765625, -0.033111572265625, -0.0018262863159179688, 0.0227813720703125, -0.0191497802734375, -0.06329345703125, -0.01493072509765625, -0.082275390625, 0.017547607421875, -0.024078369140625, -0.000316619873046875, 0.0523681640625, 0.00637054443359375, -0.0222930908203125, 0.00766754150390625, 0.0233917236328125, 0.005889892578125, 0.01058197021484375, -0.03009033203125, -0.00469970703125, 0.0740966796875, 0.008392333984375, 0.01453399658203125, -0.01018524169921875, 0.005725860595703125, -0.0291290283203125, -0.052978515625, -0.014068603515625, -0.0223541259765625, -0.00928497314453125, -0.024505615234375, -0.0101165771484375, -0.0210113525390625, 0.0321044921875, -0.0009775161743164062, 0.01529693603515625, -0.00547027587890625, -0.03125, -0.0021343231201171875, 0.05059814453125, -0.0662841796875, -0.058380126953125, 0.019927978515625, 0.05340576171875, -0.032012939453125, -0.050048828125, 0.0290069580078125, -0.03955078125, -0.04705810546875, 0.01312255859375, 0.010406494140625, -0.00115966796875, 0.0180511474609375, -0.044189453125, 0.0069122314453125, -0.051971435546875, 0.053558349609375, -0.0275421142578125, 0.0211181640625, -0.0087127685546875, 0.00841522216796875, -0.01520538330078125, -0.035888671875, -0.01209259033203125, -0.091796875, -0.0178680419921875, -0.00963592529296875, 0.04644775390625, -0.0271148681640625, 0.037078857421875, -0.04364013671875, 0.038055419921875, 0.004161834716796875, 0.005252838134765625, 0.00904083251953125, -0.006397247314453125, 0.0014553070068359375, 0.0201873779296875, 0.01528167724609375, -0.0054473876953125, -0.037353515625, -0.0210418701171875, -0.002468109130859375, 0.0007619857788085938, 0.0010423660278320312, -0.0309906005859375, 0.0163116455078125, -0.022705078125, -0.0218505859375, -0.02435302734375, -0.0462646484375, -0.03057861328125, -0.037841796875, -0.01441192626953125, -0.0006766319274902344, -0.02142333984375, 0.050872802734375, -0.0521240234375, 0.0232696533203125, -0.0034942626953125, 0.0928955078125, 0.00989532470703125, -0.00714111328125, 0.021728515625, 0.01128387451171875, 0.004482269287109375, 0.001132965087890625, 0.07293701171875, 0.032318115234375, 0.01015472412109375, 0.014678955078125, -0.00801849365234375, 0.0298919677734375, 0.0200042724609375, -0.01373291015625, 0.0135955810546875, -0.017486572265625, -0.01100921630859375, 0.03240966796875, -0.0048370361328125, 0.00431060791015625, -0.0186004638671875, -0.01079559326171875, 0.0355224609375, 0.035919189453125, -0.00637054443359375, -0.02569580078125, -0.04486083984375, -0.0650634765625, 0.0230712890625, -0.11187744140625, 0.0230865478515625, 0.0082244873046875, -0.016082763671875, 0.056884765625, 0.0021762847900390625, 0.002208709716796875, -0.00004476308822631836, 0.04327392578125, -0.0164947509765625, 0.02825927734375, 0.0279693603515625, -0.00608062744140625, -0.03466796875, -0.0183258056640625, 0.051788330078125, 0.01206207275390625, 0.002899169921875, 0.0034847259521484375, -0.020263671875, -0.034271240234375, -0.0175933837890625, 0.0277252197265625, 0.0394287109375, -0.0400390625, -0.033355712890625, -0.01194000244140625, -0.01428985595703125, -0.05242919921875, -0.03948974609375, -0.0126953125, -0.0160064697265625, -0.000698089599609375, 0.014984130859375, 0.00852203369140625, -0.0264739990234375, 0.02276611328125, -0.0010118484497070312, 0.01078033447265625, -0.0246734619140625, 0.035369873046875, 0.01322174072265625, -0.025115966796875, 0.039093017578125, -0.01263427734375, 0.0219268798828125, -0.00264739990234375, -0.033477783203125, 0.0200653076171875, 0.0219879150390625, 0.022308349609375, 0.033294677734375, -0.01079559326171875, 0.0278778076171875, -0.01107025146484375, 0.032867431640625, 0.0313720703125, -0.007625579833984375, -0.0153045654296875, -0.0247955322265625, 0.017425537109375, -0.01172637939453125, -0.0033168792724609375, 0.046539306640625, -0.0054779052734375, -0.0145111083984375, 0.04449462890625, -0.053070068359375, -0.023681640625, 0.00788116455078125, 0.035369873046875, -0.0220794677734375, -0.026092529296875, 0.0079345703125, 0.01203155517578125, -0.03289794921875, -0.0182342529296875, 0.0750732421875, -0.0261993408203125, 0.01004791259765625, -0.01259613037109375, 0.00311279296875, -0.02740478515625, 0.00689697265625, 0.0545654296875, 0.04827880859375, 0.01476287841796875, 0.0211334228515625, -0.027557373046875, -0.0121307373046875, 0.0215301513671875, -0.046844482421875, -0.0256500244140625, -0.046722412109375, 0.0225067138671875, 0.003795623779296875, 0.0072784423828125, -0.032470703125, -0.0261383056640625, 0.03790283203125, 0.05499267578125, 0.059295654296875, -0.04052734375, 0.0330810546875, 0.004940032958984375, -0.00849151611328125, -0.0321044921875, 0.0095672607421875, 0.04254150390625, 0.00005424022674560547, 0.0018587112426757812, 0.007472991943359375, -0.00971221923828125, -0.0382080078125, 0.055419921875, 0.0282440185546875, 0.0794677734375, -0.0008978843688964844, -0.0013723373413085938, -0.0004291534423828125, 0.00775909423828125, -0.01241302490234375, 0.01080322265625, 0.01251983642578125, 0.0103912353515625, 0.023773193359375, -0.0460205078125, -0.01171112060546875, 0.0341796875, 0.0271148681640625, 0.006439208984375, -0.0313720703125, -0.02130126953125, 0.03326416015625, -0.04498291015625, 0.06146240234375, 0.1240234375, 0.034423828125, 0.07794189453125, 0.0203094482421875, 0.0197906494140625, 0.0233917236328125, -0.00141143798828125, 0.00717926025390625, -0.0018768310546875, 0.0255889892578125, -0.0027179718017578125, -0.0190277099609375, 0.002643585205078125, -0.02471923828125, 0.0083770751953125, 0.05657958984375, 0.08209228515625, -0.058319091796875, -0.014739990234375, 0.028167724609375, -0.0060577392578125, 0.005687713623046875, -0.007198333740234375, -0.0364990234375, -0.02777099609375, 0.015655517578125, -0.0166015625, -0.04150390625, -0.004711151123046875, 0.03759765625, -0.00901031494140625, -0.0145111083984375, 0.035003662109375, 0.0200347900390625, -0.03143310546875, 0.00966644287109375, 0.031219482421875, -0.0005064010620117188, 0.00832366943359375, -0.0001850128173828125, -0.037353515625, -0.04541015625, -0.04400634765625, -0.041015625, -0.0291748046875, -0.0298614501953125, 0.04150390625, 0.0101776123046875, 0.052734375, 0.054595947265625, 0.0010404586791992188, 0.01296234130859375, 0.032501220703125, 0.001712799072265625, 0.019012451171875, -0.027008056640625, 0.0239410400390625, 0.06561279296875, -0.07781982421875, 0.01259613037109375, -0.0158233642578125, 0.006015777587890625, -0.006145477294921875, 0.035125732421875, 0.082275390625, -0.034698486328125, -0.024200439453125, 0.035888671875, -0.0213623046875, -0.010223388671875, 0.015625, 0.048004150390625, -0.053009033203125, -0.0166778564453125, 0.0330810546875, -0.0274200439453125, -0.039337158203125, 0.01546478271484375, -0.003490447998046875, 0.087646484375, -0.006641387939453125, -0.0357666015625, 0.0300445556640625, 0.044036865234375, -0.040313720703125, 0.0298309326171875, -0.03399658203125, 0.0302581787109375, -0.004177093505859375, 0.058502197265625, -0.026519775390625, 0.0012969970703125, 0.05010986328125, 0.03192138671875, 0.0230712890625, 0.0018253326416015625, 0.004974365234375, 0.00656890869140625, 0.036041259765625, -0.0034923553466796875, -0.01849365234375, 0.031097412109375, 0.02838134765625, 0.03851318359375, 0.0302734375, -0.03558349609375, 0.035888671875, -0.03240966796875, -0.0020809173583984375, 0.04736328125, 0.0021877288818359375, -0.01316070556640625, 0.01552581787109375, 0.039642333984375, -0.056671142578125, 0.0106048583984375, 0.039947509765625, 0.0209808349609375, -0.0390625, 0.0204315185546875, -0.038543701171875, 0.0382080078125, 0.0008664131164550781, -0.0158843994140625, 0.010986328125, 0.012481689453125, -0.01039886474609375, -0.0189361572265625, -0.00016415119171142578, 0.00609588623046875, -0.0443115234375, -0.03314208984375, 0.0126495361328125, -0.0185089111328125, 0.01470184326171875, 0.017425537109375, 0.049072265625, 0.006488800048828125, 0.03338623046875, 0.033782958984375, 0.01354217529296875, -0.02374267578125, -0.081298828125, 0.00994110107421875, 0.0328369140625, 0.0168914794921875, 0.035980224609375, 0.0028896331787109375, -0.0184326171875, 0.08026123046875, -0.01067352294921875, 0.01253509521484375, 0.0164947509765625, -0.0021228790283203125, 0.0052490234375, 0.0248565673828125, -0.0202178955078125, 0.002777099609375, -0.0138397216796875, -0.006488800048828125, -0.01322174072265625, 0.03631591796875, 0.01129913330078125, 0.040191650390625, -0.0399169921875, -0.0130157470703125, 0.0064697265625, 0.04461669921875, -0.0205230712890625, -0.01763916015625, -0.0374755859375, -0.07098388671875, 0.01003265380859375, 0.04412841796875, 0.00472259521484375, 0.00432586669921875, 0.043365478515625, 0.046142578125, -0.0204315185546875, -0.0129241943359375, 0.060516357421875, -0.00524139404296875, -0.0158843994140625, 0.00954437255859375, 0.01332855224609375, 0.0223846435546875, 0.00011551380157470703, -0.01910400390625, 0.07049560546875, 0.0006008148193359375, -0.055511474609375, 0.06011962890625, -0.0281524658203125, 0.00818634033203125, -0.0006403923034667969, -0.0077362060546875, 0.003368377685546875, -0.032562255859375, 0.0159149169921875, 0.0012035369873046875, -0.006671905517578125, 0.01067352294921875, 0.00555419921875, 0.0158233642578125, 0.0151214599609375, 0.00323486328125, 0.00482940673828125, -0.02099609375, -0.0294189453125, 0.05426025390625, -0.005474090576171875, -0.03216552734375, 0.0200042724609375, -0.006954193115234375, 0.009521484375, -0.0084991455078125, -0.0306243896484375, 0.054473876953125, 0.047576904296875, 0.07867431640625, -0.056915283203125, 0.045928955078125, 0.0107879638671875, 0.0081787109375, -0.0006194114685058594, 0.0028076171875, 0.011077880859375, 0.0139617919921875, 0.0218048095703125, -0.037353515625, -0.0275421142578125, 0.02862548828125, 0.039031982421875, 0.007015228271484375, 0.018646240234375, -0.016632080078125, 0.02911376953125, 0.005527496337890625, 0.03021240234375, -0.0085906982421875, -0.00940704345703125, -0.050811767578125, -0.0236053466796875, 0.06103515625, 0.07049560546875, -0.0016384124755859375, 0.0199127197265625, 0.002651214599609375, -0.013641357421875, 0.0017480850219726562, -0.00727081298828125, -0.00514984130859375, 0.0172576904296875, 0.01009368896484375, -0.0098114013671875, -0.042022705078125, -0.03155517578125, -0.042724609375, 0.01428985595703125, -0.006656646728515625, -0.03765869140625, 0.01558685302734375, -0.0391845703125, -0.0205841064453125, -0.0019235610961914062, -0.061126708984375, -0.006168365478515625, 0.0095367431640625, 0.0035400390625, 0.04736328125, -0.065185546875, -0.00467681884765625, -0.0372314453125, -0.014373779296875, 0.02655029296875, -0.0262451171875, 0.005771636962890625, -0.0083465576171875, 0.0268402099609375, 0.034088134765625, -0.0004391670227050781, -0.0134735107421875, 0.0215911865234375, -0.043426513671875, 0.013946533203125, 0.02392578125, 0.0297088623046875, -0.01284027099609375, 0.007198333740234375, -0.007144927978515625, -0.030853271484375, -0.030914306640625, 0.0423583984375, -0.022003173828125, 0.0038852691650390625, 0.036651611328125, -0.01369476318359375, -0.036773681640625, -0.00528717041015625, -0.00867462158203125, 0.047760009765625, 0.003543853759765625, -0.01494598388671875, 0.00429534912109375, 0.00884246826171875, -0.07281494140625, -0.0455322265625, 0.04742431640625, -0.048126220703125, -0.016815185546875, -0.03533935546875, -0.00644683837890625, -0.0174102783203125, -0.058868408203125, -0.112548828125, 0.05401611328125, -0.024261474609375, -0.02294921875, -0.058990478515625, -0.0245208740234375, 0.01239013671875, 0.0179290771484375, -0.0289764404296875, -0.01192474365234375, -0.0555419921875, 0.036865234375, -0.0287628173828125, 0.035858154296875, -0.0194244384765625, -0.035125732421875, -0.01383209228515625, 0.017181396484375, 0.038787841796875, -0.003177642822265625, 0.0216217041015625, 0.01548004150390625, 0.0011005401611328125, 0.049041748046875, -0.017578125, 0.006198883056640625, -0.0231475830078125, -0.0187835693359375, 0.0006556510925292969, 0.0019397735595703125, -0.016021728515625, 0.0003445148468017578, 0.0222015380859375, 0.0413818359375, -0.0033969879150390625, -0.0258331298828125, -0.01055908203125, -0.0132598876953125, -0.0029888153076171875, -0.0156097412109375, -0.0008115768432617188, -0.048675537109375, -0.0116119384765625, 0.002178192138671875, 0.025726318359375, -0.0028324127197265625, 0.0113983154296875, 0.0259552001953125, -0.02398681640625, 0.04095458984375, -0.0109100341796875, 0.002002716064453125, -0.0758056640625, 0.083984375, -0.0498046875, -0.007328033447265625, -0.000476837158203125, 0.061187744140625, 0.0313720703125, -0.0082244873046875, -0.0178375244140625, -0.0064544677734375, -0.0140838623046875, 0.044097900390625, -0.0178070068359375, 0.0018301010131835938, -0.041046142578125, 0.0090484619140625, 0.0253143310546875, 0.0260162353515625, -0.035369873046875, 0.03680419921875, 0.05218505859375, -0.007720947265625, -0.03466796875, 0.04052734375, -0.00835418701171875, -0.015899658203125, -0.0288848876953125, 0.0572509765625, -0.023406982421875, -0.006343841552734375, 0.022735595703125, -0.020538330078125, 0.00782012939453125, 0.030487060546875, -0.0159912109375, -0.0244903564453125, -0.0198211669921875, 0.0882568359375, 0.0186767578125, 0.00028324127197265625 ]
5e6e81eba674b8908871bf3954c1eaf3e5e9c3c7
Wordpress Stackexchange Q: Call to undefined function error after adding add_filter to wp-config I am getting Fatal error: Call to undefined function add_filter() in example.com/wp-config.php on line 20 after adding add_filter( 'auto_update_plugin', '__return_true' ); to wp-config.php My plugins.php file is present and add_filter() is defined inside of it. I just want to enable automatic updates for core, plugins and thems. What am I doing wrong? A: There is a section that should look like this: defined( 'ABSPATH' ) || define( 'ABSPATH', __DIR__ . '/' ); require_once( ABSPATH . 'wp-settings.php' ); add_filter() is available after that, you are probably using it too early.
Q: Call to undefined function error after adding add_filter to wp-config I am getting Fatal error: Call to undefined function add_filter() in example.com/wp-config.php on line 20 after adding add_filter( 'auto_update_plugin', '__return_true' ); to wp-config.php My plugins.php file is present and add_filter() is defined inside of it. I just want to enable automatic updates for core, plugins and thems. What am I doing wrong? A: There is a section that should look like this: defined( 'ABSPATH' ) || define( 'ABSPATH', __DIR__ . '/' ); require_once( ABSPATH . 'wp-settings.php' ); add_filter() is available after that, you are probably using it too early. A: The recommended best practice is to use a mu-plugin for this. Adding add_filter()s to wp-config.php directly can cause all kinds of other problems and conflicts. A: I used wp-cli and got this error. I had in wp-config.php at bottom: remove_filter('template_redirect','redirect_canonical'); instead i put to top define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); it solved my problem
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:444475", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/141985" }
[ 0.064453125, -0.0012521743774414062, 0.0020809173583984375, -0.06884765625, 0.026031494140625, -0.02154541015625, 0.0264739990234375, 0.00112152099609375, 0.0186767578125, 0.0059356689453125, -0.0589599609375, -0.004764556884765625, -0.0027141571044921875, -0.0170135498046875, -0.01885986328125, -0.040557861328125, 0.0347900390625, -0.035003662109375, 0.0293426513671875, -0.0036220550537109375, 0.00475311279296875, 0.029815673828125, 0.01090240478515625, 0.030242919921875, -0.0200347900390625, 0.01270294189453125, 0.0838623046875, -0.011871337890625, 0.0011625289916992188, 0.002307891845703125, 0.00518035888671875, -0.027984619140625, 0.004062652587890625, 0.042144775390625, -0.0355224609375, -0.042449951171875, 0.013031005859375, -0.004486083984375, -0.005382537841796875, 0.038543701171875, 0.01308441162109375, -0.01470947265625, -0.0075836181640625, 0.053314208984375, -0.015716552734375, -0.0295867919921875, 0.003833770751953125, -0.036834716796875, -0.011077880859375, -0.029022216796875, -0.0074920654296875, 0.001407623291015625, 0.0160980224609375, -0.0312347412109375, 0.00457763671875, -0.005512237548828125, -0.006633758544921875, 0.055023193359375, 0.023101806640625, 0.021881103515625, -0.0318603515625, 0.0121307373046875, -0.0079498291015625, -0.0457763671875, 0.005023956298828125, -0.00881195068359375, -0.013458251953125, 0.01239013671875, -0.0506591796875, 0.00276947021484375, 0.037841796875, -0.041412353515625, -0.0013608932495117188, 0.043121337890625, 0.00090789794921875, -0.06292724609375, 0.018280029296875, -0.0036258697509765625, 0.034332275390625, 0.039276123046875, 0.0226287841796875, 0.0050048828125, -0.012420654296875, 0.027099609375, -0.0260009765625, 0.05474853515625, -0.005512237548828125, -0.0289459228515625, -0.022613525390625, 0.0049591064453125, -0.01284027099609375, -0.03338623046875, -0.0290679931640625, 0.025848388671875, 0.0223388671875, -0.0168914794921875, 0.0419921875, 0.06561279296875, -0.0186004638671875, 0.050933837890625, -0.016571044921875, -0.046722412109375, 0.10211181640625, -0.0701904296875, -0.00391387939453125, 0.042633056640625, -0.01284027099609375, 0.040557861328125, 0.0357666015625, 0.047088623046875, 0.0250701904296875, -0.0267333984375, 0.02667236328125, -0.036285400390625, 0.00676727294921875, -0.01334381103515625, -0.01702880859375, 0.045623779296875, 0.03167724609375, 0.0015115737915039062, -0.012054443359375, 0.00726318359375, -0.0404052734375, -0.0005803108215332031, 0.00827789306640625, -0.0269775390625, 0.00418853759765625, 0.02484130859375, 0.01058197021484375, -0.01425933837890625, -0.01507568359375, 0.0302581787109375, 0.0594482421875, 0.0201873779296875, -0.01151275634765625, -0.006603240966796875, 0.035064697265625, 0.021453857421875, -0.0029125213623046875, 0.00965118408203125, 0.0220184326171875, -0.0254364013671875, -0.04425048828125, 0.003749847412109375, 0.017364501953125, -0.0024814605712890625, 0.01424407958984375, 0.037689208984375, 0.0172882080078125, -0.0175933837890625, 0.0127105712890625, 0.00998687744140625, 0.029571533203125, 0.00695037841796875, -0.01220703125, 0.00917816162109375, 0.0166015625, -0.0233001708984375, -0.046051025390625, -0.0107421875, 0.007160186767578125, -0.012359619140625, -0.00434112548828125, -0.019622802734375, -0.02587890625, 0.00567626953125, -0.03173828125, -0.0006837844848632812, 0.0250396728515625, -0.0213165283203125, -0.0178985595703125, 0.0130157470703125, 0.04901123046875, -0.003810882568359375, -0.004627227783203125, 0.022552490234375, 0.014129638671875, 0.033233642578125, 0.0065460205078125, 0.034698486328125, -0.0166168212890625, -0.0302581787109375, 0.055694580078125, -0.0252227783203125, -0.052154541015625, 0.01467132568359375, -0.01471710205078125, 0.052642822265625, 0.034210205078125, 0.00479888916015625, 0.015594482421875, -0.004421234130859375, 0.007358551025390625, 0.00007915496826171875, -0.0301971435546875, -0.05548095703125, 0.0104217529296875, -0.0166473388671875, -0.026763916015625, 0.053070068359375, 0.02362060546875, -0.0084991455078125, 0.0074615478515625, -0.047515869140625, -0.08074951171875, -0.035003662109375, -0.02728271484375, 0.034576416015625, 0.01113128662109375, -0.02099609375, 0.0030193328857421875, -0.043701171875, 0.0003886222839355469, -0.010589599609375, -0.0323486328125, 0.02069091796875, -0.040863037109375, 0.043914794921875, -0.0169219970703125, 0.059783935546875, -0.02117919921875, -0.0347900390625, -0.0302276611328125, -0.037109375, 0.031829833984375, -0.006359100341796875, -0.0121612548828125, -0.005950927734375, -0.0026454925537109375, -0.01253509521484375, -0.0009202957153320312, 0.0692138671875, -0.00960540771484375, -0.00646209716796875, -0.035186767578125, -0.01078033447265625, -0.061920166015625, -0.07391357421875, -0.0055084228515625, 0.066650390625, 0.04229736328125, 0.024383544921875, 0.01561737060546875, 0.031280517578125, 0.08740234375, -0.0200042724609375, 0.00940704345703125, 0.010040283203125, -0.0021820068359375, 0.0227813720703125, 0.0272216796875, -0.005126953125, 0.0053558349609375, -0.06793212890625, 0.00870513916015625, 0.03656005859375, -0.021575927734375, -0.00537109375, 0.01229095458984375, -0.042236328125, 0.003314971923828125, -0.11309814453125, -0.04302978515625, -0.0401611328125, 0.0061492919921875, 0.005825042724609375, 0.01284027099609375, 0.0062255859375, -0.0078887939453125, -0.0119171142578125, 0.025787353515625, -0.0182647705078125, -0.007610321044921875, 0.01556396484375, -0.0206298828125, 0.01282501220703125, -0.0115509033203125, 0.0173187255859375, -0.0355224609375, -0.01015472412109375, -0.01094818115234375, 0.037811279296875, 0.0237274169921875, -0.0224456787109375, 0.00001615285873413086, 0.01424407958984375, 0.021759033203125, -0.042449951171875, -0.003017425537109375, -0.0304412841796875, 0.021820068359375, -0.0295257568359375, -0.050262451171875, 0.0218353271484375, 0.002742767333984375, -0.0546875, 0.0261688232421875, 0.0005660057067871094, -0.004718780517578125, -0.007198333740234375, 0.05645751953125, 0.0487060546875, -0.01052093505859375, -0.00638580322265625, 0.024383544921875, 0.0130615234375, 0.03643798828125, 0.0021190643310546875, 0.0089111328125, 0.0269317626953125, -0.055084228515625, 0.004711151123046875, 0.0139617919921875, 0.0259552001953125, -0.0202484130859375, -0.043701171875, -0.0288543701171875, 0.011962890625, -0.06475830078125, -0.0273590087890625, -0.001438140869140625, -0.057159423828125, -0.0020618438720703125, 0.003665924072265625, -0.0308074951171875, -0.00600433349609375, 0.029571533203125, 0.01226043701171875, -0.033660888671875, -0.01239776611328125, -0.074462890625, -0.056884765625, -0.0772705078125, 0.04559326171875, -0.01027679443359375, 0.035125732421875, 0.0158233642578125, 0.08148193359375, 0.0170745849609375, -0.044342041015625, 0.03424072265625, -0.035125732421875, -0.03839111328125, 0.034881591796875, 0.01496124267578125, -0.0122833251953125, 0.003696441650390625, -0.003910064697265625, 0.0128021240234375, 0.0305328369140625, -0.0382080078125, -0.0160675048828125, -0.01953125, -0.0088653564453125, -0.017791748046875, -0.003467559814453125, 0.03546142578125, -0.02862548828125, -0.017547607421875, -0.06353759765625, 0.0225067138671875, 0.02410888671875, 0.009368896484375, 0.06060791015625, -0.00791168212890625, -0.0595703125, 0.0294342041015625, 0.0102386474609375, -0.04998779296875, -0.0098114013671875, 0.00933074951171875, -0.031982421875, 0.026947021484375, -0.0201873779296875, -0.034912109375, 0.0101318359375, 0.049285888671875, -0.0041656494140625, -0.0017843246459960938, 0.0223846435546875, 0.0341796875, 0.035675048828125, -0.055908203125, -0.0304718017578125, -0.01326751708984375, 0.047943115234375, 0.0219879150390625, -0.0024356842041015625, -0.0001596212387084961, -0.029541015625, -0.0187530517578125, 0.04217529296875, -0.0189361572265625, -0.024017333984375, -0.002288818359375, 0.00830841064453125, 0.0032501220703125, -0.035736083984375, 0.014007568359375, -0.03619384765625, -0.04327392578125, -0.0278472900390625, -0.040618896484375, -0.014404296875, 0.0157318115234375, -0.04327392578125, 0.0120391845703125, -0.03546142578125, 0.035980224609375, -0.06365966796875, 0.0217437744140625, 0.041168212890625, -0.0022258758544921875, -0.0044708251953125, -0.038482666015625, -0.0204620361328125, -0.08990478515625, 0.0193328857421875, -0.07269287109375, 0.044342041015625, 0.01406097412109375, 0.0282440185546875, -0.03204345703125, 0.0015783309936523438, 0.0279998779296875, 0.006572723388671875, -0.01334381103515625, -0.017333984375, -0.009246826171875, -0.007610321044921875, 0.00927734375, -0.0199432373046875, -0.010894775390625, -0.019134521484375, -0.03961181640625, 0.03173828125, -0.0109405517578125, 0.037506103515625, 0.00823974609375, -0.030242919921875, -0.028656005859375, -0.0258331298828125, -0.0288238525390625, 0.0142669677734375, -0.039703369140625, 0.02923583984375, -0.0257720947265625, -0.046630859375, 0.049530029296875, -0.040679931640625, 0.0021305084228515625, 0.011016845703125, 0.09722900390625, 0.02264404296875, -0.0212860107421875, 0.0004489421844482422, 0.004283905029296875, 0.04156494140625, 0.0135650634765625, 0.031341552734375, 0.00179290771484375, -0.0204620361328125, 0.03851318359375, 0.0177764892578125, 0.021575927734375, -0.04229736328125, 0.04986572265625, 0.007434844970703125, -0.0285186767578125, 0.0323486328125, 0.0135498046875, -0.0058746337890625, -0.01541900634765625, -0.055267333984375, 0.032440185546875, 0.03076171875, -0.0007700920104980469, -0.049468994140625, 0.040435791015625, -0.005218505859375, -0.03436279296875, 0.0183563232421875, -0.0162506103515625, 0.06219482421875, 0.0163726806640625, -0.010650634765625, 0.023162841796875, -0.00855255126953125, 0.020538330078125, -0.00319671630859375, 0.057647705078125, -0.0252227783203125, 0.06884765625, 0.0013837814331054688, 0.01324462890625, -0.0401611328125, -0.0211334228515625, 0.08624267578125, -0.0020122528076171875, -0.050689697265625, 0.030181884765625, -0.0196685791015625, 0.0251617431640625, 0.0179901123046875, 0.01325225830078125, 0.0477294921875, 0.0215606689453125, -0.033233642578125, 0.006744384765625, -0.01447296142578125, 0.0075225830078125, -0.048004150390625, 0.004566192626953125, 0.0023956298828125, -0.01534271240234375, 0.0254364013671875, 0.0096893310546875, 0.02459716796875, -0.0031719207763671875, -0.0082550048828125, -0.016754150390625, -0.010162353515625, 0.053558349609375, 0.0140533447265625, -0.0081634521484375, -0.0307159423828125, 0.0704345703125, 0.026611328125, -0.0294952392578125, -0.029144287109375, -0.0196380615234375, 0.0279998779296875, -0.0022678375244140625, 0.01102447509765625, 0.03472900390625, 0.0017633438110351562, -0.01198577880859375, 0.00461578369140625, 0.00763702392578125, -0.01410675048828125, -0.01428985595703125, 0.006076812744140625, 0.0273590087890625, 0.005279541015625, -0.00740814208984375, -0.0206756591796875, -0.00313568115234375, 0.024688720703125, -0.012908935546875, -0.0072174072265625, -0.0011615753173828125, 0.004650115966796875, 0.0196533203125, -0.03155517578125, -0.0280914306640625, -0.0095672607421875, 0.00655364990234375, -0.0196075439453125, -0.0131683349609375, 0.0325927734375, -0.028594970703125, 0.002277374267578125, -0.00536346435546875, -0.006793975830078125, 0.06512451171875, -0.001007080078125, 0.052093505859375, 0.00019180774688720703, -0.06201171875, -0.01457977294921875, -0.038909912109375, -0.0266571044921875, -0.027130126953125, 0.006183624267578125, -0.059478759765625, 0.0258636474609375, -0.03265380859375, 0.0271453857421875, -0.0175933837890625, 0.0167999267578125, -0.00988006591796875, -0.012847900390625, -0.0225372314453125, -0.01071929931640625, 0.0116729736328125, 0.0465087890625, -0.0179595947265625, 0.03631591796875, 0.03009033203125, 0.01372528076171875, -0.0135955810546875, -0.0233154296875, 0.008514404296875, -0.02398681640625, -0.018951416015625, -0.0164031982421875, -0.045013427734375, -0.00263214111328125, 0.062469482421875, -0.017364501953125, 0.0129241943359375, -0.01425933837890625, -0.006671905517578125, -0.0219879150390625, 0.0075836181640625, 0.0027294158935546875, 0.0186004638671875, 0.01019287109375, -0.037353515625, 0.0023670196533203125, -0.0020008087158203125, -0.0006089210510253906, 0.035003662109375, -0.03399658203125, 0.0269775390625, 0.00464630126953125, -0.043487548828125, 0.1090087890625, 0.060546875, -0.034881591796875, 0.0292205810546875, 0.03570556640625, -0.001331329345703125, -0.0013418197631835938, -0.00212860107421875, -0.019012451171875, -0.04766845703125, 0.04705810546875, 0.0182342529296875, 0.001880645751953125, 0.06524658203125, -0.0203704833984375, 0.027374267578125, 0.0198211669921875, 0.040008544921875, -0.040985107421875, 0.01461029052734375, 0.0130157470703125, -0.005313873291015625, 0.049072265625, 0.01544952392578125, -0.0247344970703125, -0.0198211669921875, 0.0498046875, -0.034088134765625, 0.017486572265625, 0.051177978515625, 0.00988006591796875, -0.0225067138671875, -0.0176239013671875, 0.00009483098983764648, 0.004581451416015625, 0.019317626953125, 0.004367828369140625, -0.000743865966796875, -0.007404327392578125, 0.0517578125, 0.0240478515625, -0.015380859375, -0.04473876953125, -0.0205230712890625, -0.0267486572265625, -0.00714111328125, -0.07122802734375, 0.028289794921875, -0.046722412109375, 0.04150390625, 0.0258026123046875, -0.015594482421875, 0.021881103515625, -0.0022792816162109375, 0.00995635986328125, 0.0792236328125, -0.0450439453125, 0.0178680419921875, 0.054046630859375, -0.07269287109375, 0.00787353515625, 0.016204833984375, -0.0150299072265625, 0.004547119140625, -0.009552001953125, 0.040771484375, 0.003108978271484375, -0.01480865478515625, 0.051513671875, 0.001255035400390625, -0.026153564453125, 0.007099151611328125, 0.03070068359375, -0.05853271484375, -0.04193115234375, 0.0194854736328125, -0.028778076171875, 0.0021762847900390625, 0.031524658203125, -0.027740478515625, 0.09771728515625, -0.0413818359375, -0.003803253173828125, 0.01380157470703125, 0.048675537109375, -0.026763916015625, 0.03271484375, -0.044677734375, 0.049774169921875, -0.0125579833984375, 0.053619384765625, -0.056304931640625, 0.0087432861328125, -0.0085601806640625, 0.026275634765625, 0.022125244140625, 0.01506805419921875, -0.024200439453125, -0.0167388916015625, -0.0138702392578125, 0.005817413330078125, -0.01282501220703125, 0.0391845703125, 0.0261383056640625, -0.0006575584411621094, 0.006481170654296875, 0.005146026611328125, 0.026123046875, -0.041259765625, -0.0051422119140625, 0.04388427734375, -0.006900787353515625, -0.0115814208984375, -0.037994384765625, 0.0257415771484375, 0.0024547576904296875, -0.02362060546875, -0.0104522705078125, 0.01422882080078125, -0.0048370361328125, 0.012908935546875, -0.0295257568359375, 0.0153656005859375, -0.0220489501953125, -0.00902557373046875, 0.01605224609375, -0.0218048095703125, -0.025543212890625, 0.027679443359375, 0.00762939453125, -0.0106658935546875, -0.0070648193359375, -0.0203399658203125, 0.00838470458984375, 0.01233673095703125, 0.04486083984375, 0.0294036865234375, 0.04180908203125, 0.01544952392578125, 0.032073974609375, 0.01358795166015625, 0.029998779296875, -0.0218353271484375, -0.047119140625, 0.01512908935546875, 0.0123138427734375, 0.00998687744140625, 0.0153961181640625, 0.020263671875, -0.02545166015625, 0.0289306640625, -0.06085205078125, 0.00609588623046875, 0.033721923828125, -0.0085906982421875, -0.0001462697982788086, -0.0089111328125, -0.00457000732421875, 0.0272979736328125, -0.0263671875, -0.002880096435546875, -0.0042877197265625, 0.06793212890625, 0.01430511474609375, 0.0577392578125, -0.0457763671875, -0.027587890625, -0.0307159423828125, 0.037017822265625, 0.015350341796875, 0.030426025390625, -0.0215301513671875, -0.027099609375, 0.008209228515625, 0.02960205078125, -0.0021457672119140625, 0.005523681640625, 0.036773681640625, 0.00948333740234375, -0.0679931640625, -0.0190582275390625, 0.0484619140625, -0.0413818359375, -0.0238494873046875, -0.018524169921875, 0.04315185546875, 0.03424072265625, 0.025054931640625, -0.01190185546875, 0.033599853515625, 0.03375244140625, -0.014984130859375, -0.0192108154296875, 0.0082855224609375, -0.06884765625, 0.01271820068359375, 0.01763916015625, 0.049285888671875, 0.007755279541015625, -0.01390838623046875, 0.03192138671875, -0.052154541015625, -0.0762939453125, 0.0291748046875, 0.0287322998046875, -0.0229949951171875, 0.026458740234375, 0.01001739501953125, -0.01861572265625, 0.0265655517578125, -0.0015115737915039062, 0.01397705078125, -0.004032135009765625, 0.020355224609375, -0.01337432861328125, 0.01013946533203125, -0.004741668701171875, -0.017303466796875, 0.05181884765625, 0.041351318359375, 0.1192626953125, -0.06988525390625, 0.0289459228515625, 0.002269744873046875, -0.037506103515625, 0.005558013916015625, 0.018585205078125, -0.0313720703125, -0.0010156631469726562, -0.02239990234375, -0.0026683807373046875, -0.00824737548828125, -0.00923919677734375, 0.049560546875, -0.04736328125, -0.004840850830078125, 0.012054443359375, 0.0186309814453125, -0.02484130859375, 0.07421875, -0.006793975830078125, -0.0291595458984375, -0.04327392578125, -0.005313873291015625, 0.033782958984375, 0.03790283203125, -0.00107574462890625, -0.038055419921875, 0.034759521484375, 0.011688232421875, -0.00037598609924316406, 0.0693359375, 0.001049041748046875, 0.020751953125, -0.05072021484375, -0.038330078125, -0.0458984375, -0.032257080078125, -0.01398468017578125, -0.0187835693359375, 0.042755126953125, -0.03350830078125, 0.013153076171875, -0.019500732421875, -0.0013141632080078125, 0.01430511474609375, -0.027862548828125, 0.00647735595703125, -0.0014019012451171875, -0.007598876953125, 0.007480621337890625, 0.00797271728515625, -0.0287322998046875, -0.051116943359375, -0.038238525390625, -0.018218994140625, -0.03826904296875, -0.07257080078125, -0.044708251953125, 0.03973388671875, 0.045684814453125, 0.0006270408630371094, -0.07379150390625, 0.054107666015625, -0.0533447265625, 0.0726318359375, -0.0274505615234375, -0.04083251953125, 0.013946533203125, 0.0185089111328125, -0.0030422210693359375, -0.0177154541015625, -0.0134429931640625, 0.024871826171875, 0.00043272972106933594, 0.0305023193359375, 0.05047607421875, -0.0016298294067382812, -0.00908660888671875, 0.016693115234375, -0.01346588134765625, 0.07684326171875, -0.050323486328125, -0.0077972412109375, 0.037017822265625, -0.013946533203125, -0.01450347900390625, -0.054840087890625, 0.0022220611572265625, -0.051422119140625, -0.00379180908203125, -0.037994384765625, 0.00786590576171875, -0.0009102821350097656, -0.05670166015625, -0.076904296875, 0.045013427734375, -0.0122528076171875, -0.034515380859375, -0.0797119140625, 0.005397796630859375, -0.002811431884765625, 0.025054931640625, -0.02996826171875, -0.003063201904296875, -0.0282745361328125, 0.0526123046875, -0.0022144317626953125, -0.006591796875, 0.011016845703125, -0.004840850830078125, -0.06280517578125, -0.0026264190673828125, -0.00489044189453125, -0.0246124267578125, 0.0013246536254882812, -0.0239715576171875, 0.045867919921875, 0.066162109375, 0.007320404052734375, -0.00406646728515625, 0.0186309814453125, -0.0814208984375, -0.00420379638671875, -0.0399169921875, -0.037353515625, -0.027618408203125, 0.0799560546875, 0.0186920166015625, 0.032989501953125, -0.01849365234375, -0.00341796875, 0.007049560546875, -0.00843048095703125, 0.008148193359375, 0.002956390380859375, -0.03948974609375, -0.016326904296875, 0.0028533935546875, -0.000022709369659423828, -0.01480865478515625, -0.00800323486328125, -0.0078582763671875, -0.0159149169921875, 0.005100250244140625, -0.0082244873046875, 0.01806640625, -0.03692626953125, 0.04248046875, -0.0229339599609375, -0.017974853515625, 0.032012939453125, 0.00936126708984375, -0.0004260540008544922, 0.05584716796875, -0.00786590576171875, 0.035491943359375, -0.0179290771484375, -0.009765625, 0.0177154541015625, -0.0011777877807617188, 0.010467529296875, -0.00494384765625, 0.006793975830078125, 0.0207977294921875, -0.0170440673828125, 0.00847625732421875, 0.0011501312255859375, 0.0693359375, -0.006595611572265625, 0.0699462890625, 0.00988006591796875, 0.0210723876953125, -0.0285491943359375, 0.048492431640625, -0.0181884765625, -0.0194854736328125, -0.0119476318359375, -0.0211944580078125, -0.013824462890625, 0.02386474609375, -0.0194244384765625, -0.04730224609375, 0.025482177734375, -0.0423583984375, 0.0182952880859375, 0.019134521484375 ]
11f7da9ca6fc2212ca9e1da7eb1bc66656c0d228
Wordpress Stackexchange Q: Jetpack Blog Subscriptions on Multisite I am using Jetpack on Multisite. When I connect with WordPress, it note the MultiSite Blog Address, and uses this when a user subscribes to get emails for any posts from the site. Subscriber get confirmation email, and then get all new posts. Works well. BUT my clients frequently have their site pointing to a Mapped Domain. To a subscriber, the multisite domain sent in the conformation email can look suspicious. Q. Is there (or can there be) any way to cater for mapped domains in Multisite in jetpack?
Q: Jetpack Blog Subscriptions on Multisite I am using Jetpack on Multisite. When I connect with WordPress, it note the MultiSite Blog Address, and uses this when a user subscribes to get emails for any posts from the site. Subscriber get confirmation email, and then get all new posts. Works well. BUT my clients frequently have their site pointing to a Mapped Domain. To a subscriber, the multisite domain sent in the conformation email can look suspicious. Q. Is there (or can there be) any way to cater for mapped domains in Multisite in jetpack?
wordpress
{ "language": "en", "length": 95, "provenance": "stackexchange_00019.jsonl.gz:444483", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142002" }
[ 0.01282501220703125, -0.0116729736328125, 0.006305694580078125, 0.006816864013671875, -0.03814697265625, -0.012542724609375, -0.010772705078125, -0.0281829833984375, -0.0039215087890625, 0.021881103515625, -0.006969451904296875, 0.024566650390625, 0.00838470458984375, -0.03460693359375, 0.017822265625, -0.01548004150390625, 0.005817413330078125, 0.01023101806640625, 0.0020732879638671875, -0.0223541259765625, 0.0102081298828125, -0.004329681396484375, -0.0121917724609375, 0.0526123046875, -0.0160980224609375, 0.045928955078125, 0.036163330078125, -0.0015621185302734375, -0.01247406005859375, 0.0002465248107910156, 0.01279449462890625, -0.01393890380859375, 0.04058837890625, -0.0006051063537597656, -0.03729248046875, 0.010162353515625, 0.0034923553466796875, 0.0031185150146484375, -0.0077667236328125, 0.0258941650390625, 0.01120758056640625, -0.0193634033203125, 0.004230499267578125, -0.0118865966796875, -0.00786590576171875, -0.0010080337524414062, 0.0030918121337890625, -0.042449951171875, 0.0004239082336425781, 0.0089111328125, 0.0152587890625, -0.01157379150390625, 0.0295562744140625, 0.01175689697265625, -0.03436279296875, -0.0281219482421875, 0.007465362548828125, 0.0193328857421875, 0.012359619140625, 0.00499725341796875, -0.01514434814453125, 0.055145263671875, -0.0116729736328125, 0.0078125, -0.00910186767578125, 0.00437164306640625, -0.04315185546875, 0.0015516281127929688, 0.0009160041809082031, 0.007965087890625, 0.01052093505859375, -0.03802490234375, 0.0323486328125, -0.016754150390625, -0.05914306640625, -0.002719879150390625, 0.00408935546875, -0.0126495361328125, 0.038299560546875, -0.05364990234375, -0.006473541259765625, -0.01383209228515625, -0.068603515625, 0.00506591796875, -0.0205078125, 0.015960693359375, -0.004405975341796875, -0.0033626556396484375, -0.06256103515625, -0.00693511962890625, -0.034332275390625, -0.036102294921875, -0.046295166015625, -0.002101898193359375, 0.00608062744140625, 0.0023021697998046875, 0.0237884521484375, 0.040557861328125, -0.006450653076171875, -0.0074920654296875, -0.0232696533203125, -0.0031604766845703125, -0.041778564453125, -0.009368896484375, 0.0046844482421875, -0.0100250244140625, -0.0143890380859375, 0.0163726806640625, 0.0628662109375, 0.035736083984375, -0.006649017333984375, 0.02972412109375, 0.004344940185546875, 0.0225372314453125, -0.0298614501953125, -0.03271484375, -0.03607177734375, -0.0001251697540283203, -0.0244293212890625, 0.003658294677734375, 0.004024505615234375, 0.03265380859375, -0.0280914306640625, -0.021881103515625, 0.006687164306640625, -0.022979736328125, -0.0095977783203125, 0.004974365234375, -0.0361328125, -0.00667572021484375, -0.0193634033203125, 0.0254669189453125, 0.023223876953125, 0.01568603515625, -0.00865936279296875, -0.00811004638671875, 0.05157470703125, 0.01438140869140625, 0.0004887580871582031, -0.006351470947265625, 0.01861572265625, -0.00228118896484375, -0.02362060546875, -0.005077362060546875, 0.0009202957153320312, -0.003963470458984375, 0.0181121826171875, 0.02935791015625, -0.003505706787109375, 0.02130126953125, -0.019195556640625, -0.03863525390625, 0.0079345703125, -0.0103607177734375, 0.01256561279296875, -0.023406982421875, 0.003955841064453125, -0.0214080810546875, 0.005062103271484375, -0.0179595947265625, 0.00736236572265625, -0.0267791748046875, -0.005733489990234375, -0.0211181640625, -0.0423583984375, 0.00887298583984375, -0.01312255859375, -0.00727081298828125, 0.015411376953125, -0.007770538330078125, -0.026641845703125, 0.02685546875, 0.04901123046875, 0.00391387939453125, 0.00524139404296875, 0.01458740234375, -0.0020275115966796875, 0.037109375, 0.0189208984375, -0.013671875, -0.016021728515625, -0.0386962890625, 0.06158447265625, -0.01049041748046875, -0.0224609375, 0.0139312744140625, -0.009063720703125, 0.04205322265625, 0.03192138671875, 0.018310546875, -0.0267333984375, 0.005950927734375, 0.01203155517578125, 0.00493621826171875, 0.00433349609375, -0.029205322265625, 0.008819580078125, 0.00959014892578125, -0.001216888427734375, -0.0275726318359375, -0.01419830322265625, -0.0207672119140625, 0.048919677734375, 0.0280609130859375, 0.06695556640625, 0.01081085205078125, 0.00775909423828125, -0.004840850830078125, 0.0022487640380859375, 0.0176544189453125, -0.005031585693359375, 0.00836181640625, 0.0009140968322753906, -0.0352783203125, -0.00023448467254638672, 0.019989013671875, 0.01146697998046875, -0.0026760101318359375, -0.00026416778564453125, -0.008880615234375, -0.0158538818359375, -0.00260162353515625, -0.0296630859375, 0.021484375, 0.03607177734375, -0.019287109375, -0.00936126708984375, -0.0260772705078125, -0.0301666259765625, 0.04705810546875, -0.1270751953125, 0.01519775390625, -0.004825592041015625, -0.0018301010131835938, -0.036834716796875, 0.0283355712890625, 0.0091705322265625, 0.044036865234375, -0.0157470703125, 0.017242431640625, 0.0186920166015625, 0.0082855224609375, 0.0188751220703125, 0.0289306640625, -0.004276275634765625, -0.0216064453125, 0.03240966796875, -0.0083770751953125, -0.002819061279296875, 0.07855224609375, -0.0302276611328125, 0.0298004150390625, -0.006206512451171875, -0.011138916015625, -0.03533935546875, 0.04339599609375, -0.00513458251953125, -0.0550537109375, -0.00353240966796875, 0.03961181640625, 0.02716064453125, 0.0286102294921875, -0.0198974609375, 0.01885986328125, 0.0010433197021484375, 0.0154266357421875, 0.040069580078125, 0.04058837890625, -0.01151275634765625, -0.01132965087890625, 0.005321502685546875, 0.019012451171875, 0.01416015625, 0.0382080078125, 0.0841064453125, 0.0142669677734375, -0.00487518310546875, -0.06817626953125, 0.0462646484375, 0.037445068359375, -0.047393798828125, -0.01209259033203125, -0.0253448486328125, -0.031097412109375, -0.0006437301635742188, -0.0029582977294921875, 0.00476837158203125, -0.050048828125, -0.03631591796875, -0.048309326171875, -0.023681640625, 0.060760498046875, -0.00838470458984375, 0.0210418701171875, 0.050567626953125, -0.01412200927734375, 0.0173492431640625, -0.03802490234375, 0.03173828125, -0.017181396484375, 0.0272674560546875, 0.06353759765625, 0.01371002197265625, 0.0014085769653320312, 0.00777435302734375, -0.014556884765625, 0.01287078857421875, 0.00327301025390625, -0.00982666015625, 0.00835418701171875, -0.08319091796875, -0.0006074905395507812, -0.0150909423828125, -0.02325439453125, -0.0291748046875, -0.0303802490234375, -0.0237884521484375, -0.05767822265625, -0.0948486328125, -0.05169677734375, -0.0042266845703125, -0.040557861328125, -0.005878448486328125, -0.01158905029296875, -0.02227783203125, -0.003894805908203125, 0.031585693359375, 0.006439208984375, -0.039764404296875, 0.00727081298828125, -0.07781982421875, -0.0645751953125, -0.0628662109375, 0.0252838134765625, -0.0199432373046875, 0.033477783203125, 0.007480621337890625, 0.010101318359375, 0.0229339599609375, 0.035369873046875, 0.049163818359375, 0.007518768310546875, -0.0276336669921875, -0.06683349609375, -0.0249481201171875, -0.05133056640625, 0.0110626220703125, -0.015960693359375, 0.040313720703125, 0.01422119140625, 0.01727294921875, 0.015411376953125, 0.00435638427734375, 0.0098876953125, 0.037750244140625, -0.052337646484375, -0.0178375244140625, 0.046478271484375, -0.00453948974609375, -0.0254058837890625, 0.038482666015625, -0.0296173095703125, -0.022308349609375, -0.047454833984375, 0.03448486328125, -0.0275421142578125, -0.049835205078125, -0.034881591796875, 0.045013427734375, 0.010711669921875, 0.056854248046875, 0.00179290771484375, 0.01329803466796875, -0.002742767333984375, 0.002841949462890625, -0.06842041015625, 0.0137176513671875, -0.01055908203125, -0.03277587890625, -0.032745361328125, -0.0026836395263671875, -0.0643310546875, 0.060699462890625, -0.0963134765625, -0.03302001953125, 0.039764404296875, -0.03759765625, 0.0236053466796875, -0.0677490234375, -0.0255889892578125, -0.044586181640625, 0.0804443359375, -0.00635528564453125, -0.024444580078125, -0.0095977783203125, 0.0043792724609375, -0.025146484375, -0.00487518310546875, -0.00609588623046875, 0.0006046295166015625, -0.0006189346313476562, -0.035308837890625, -0.051910400390625, -0.004901885986328125, 0.035858154296875, -0.031219482421875, 0.06439208984375, -0.047515869140625, 0.03326416015625, -0.032135009765625, 0.027923583984375, -0.007404327392578125, 0.04998779296875, -0.0648193359375, -0.01274871826171875, -0.033966064453125, -0.01377105712890625, -0.01605224609375, 0.01003265380859375, 0.0247344970703125, 0.008514404296875, -0.0262908935546875, 0.004970550537109375, 0.030181884765625, -0.0308837890625, 0.0238189697265625, -0.0616455078125, 0.01374053955078125, -0.030029296875, -0.015869140625, -0.057037353515625, -0.010040283203125, -0.0328369140625, -0.018218994140625, -0.033477783203125, -0.021575927734375, 0.0103607177734375, -0.033111572265625, 0.04132080078125, -0.00762939453125, -0.0263214111328125, -0.032470703125, -0.0183258056640625, -0.02423095703125, -0.043853759765625, 0.01245880126953125, -0.01513671875, -0.0009775161743164062, 0.0281524658203125, 0.01274871826171875, -0.00522613525390625, -0.010101318359375, 0.035369873046875, 0.01415252685546875, -0.02435302734375, -0.0186614990234375, 0.005382537841796875, 0.0236053466796875, -0.02093505859375, 0.0732421875, 0.09136962890625, 0.0066070556640625, -0.0184478759765625, 0.02642822265625, -0.0084686279296875, 0.0073394775390625, -0.00714111328125, 0.013519287109375, -0.01393890380859375, 0.01454925537109375, 0.01335906982421875, 0.000965118408203125, 0.025482177734375, 0.0037403106689453125, -0.01251983642578125, -0.002979278564453125, 0.036468505859375, 0.004383087158203125, -0.02252197265625, -0.030487060546875, -0.05181884765625, 0.034515380859375, -0.0142059326171875, -0.0042572021484375, -0.00775146484375, 0.01047515869140625, -0.0021572113037109375, 0.006725311279296875, -0.0177154541015625, 0.0002593994140625, -0.01187896728515625, 0.01364898681640625, -0.0102996826171875, 0.0158233642578125, -0.035003662109375, -0.004878997802734375, -0.0189971923828125, 0.08453369140625, -0.005153656005859375, -0.06982421875, 0.01514434814453125, -0.0181427001953125, 0.02142333984375, 0.0306396484375, -0.03125, 0.0225067138671875, 0.031951904296875, -0.054168701171875, -0.002178192138671875, -0.0150146484375, -0.016571044921875, -0.059356689453125, -0.04888916015625, -0.054962158203125, 0.0171356201171875, 0.03485107421875, 0.030792236328125, -0.07196044921875, 0.06561279296875, 0.0044708251953125, 0.003910064697265625, 0.050750732421875, -0.01654052734375, 0.029052734375, 0.032867431640625, -0.043731689453125, -0.00452423095703125, -0.003437042236328125, 0.005207061767578125, 0.0195770263671875, 0.0182037353515625, -0.002529144287109375, 0.0294647216796875, 0.01019287109375, -0.00372314453125, -0.0025653839111328125, -0.023223876953125, 0.0230865478515625, -0.01617431640625, -0.01390838623046875, -0.01047515869140625, -0.02178955078125, 0.0188751220703125, -0.00433349609375, 0.00513458251953125, -0.03558349609375, -0.0131378173828125, -0.01052093505859375, -0.01335906982421875, -0.010009765625, -0.0029506683349609375, 0.0038299560546875, -0.006694793701171875, -0.00850677490234375, 0.0026302337646484375, -0.038330078125, -0.00827789306640625, -0.0086212158203125, -0.030517578125, 0.05694580078125, -0.027130126953125, 0.047027587890625, -0.06500244140625, 0.02545166015625, -0.11968994140625, 0.029571533203125, -0.01543426513671875, 0.0139312744140625, -0.0226593017578125, 0.0058746337890625, -0.0245819091796875, -0.02178955078125, 0.04339599609375, 0.0179595947265625, -0.03631591796875, -0.019683837890625, 0.049285888671875, 0.048248291015625, -0.00788116455078125, -0.1036376953125, -0.000016629695892333984, -0.04022216796875, 0.039581298828125, 0.049652099609375, -0.025299072265625, 0.037750244140625, 0.02203369140625, 0.04840087890625, 0.02679443359375, 0.02740478515625, -0.00829315185546875, -0.01959228515625, -0.0034999847412109375, -0.06268310546875, -0.007480621337890625, 0.0163116455078125, -0.01389312744140625, 0.01230621337890625, -0.0093231201171875, -0.0005350112915039062, 0.0258026123046875, -0.0045013427734375, 0.0103607177734375, -0.021514892578125, -0.047088623046875, -0.025604248046875, 0.025177001953125, -0.00395965576171875, -0.00020563602447509766, 0.03314208984375, -0.018646240234375, -0.0154876708984375, -0.0203857421875, 0.00624847412109375, -0.032867431640625, 0.03131103515625, 0.0288543701171875, 0.002986907958984375, 0.037689208984375, -0.03582763671875, 0.028228759765625, 0.039306640625, -0.00698089599609375, 0.045013427734375, -0.0078277587890625, -0.004741668701171875, -0.0467529296875, 0.023345947265625, -0.00827789306640625, -0.027374267578125, 0.021881103515625, -0.027435302734375, -0.0007028579711914062, 0.00109100341796875, 0.0170440673828125, -0.0335693359375, 0.0025691986083984375, 0.0010938644409179688, -0.00693511962890625, -0.00624847412109375, 0.0198211669921875, -0.0099639892578125, 0.0498046875, -0.0232696533203125, -0.0257720947265625, -0.034027099609375, -0.005985260009765625, 0.0191650390625, -0.007335662841796875, 0.022308349609375, 0.043060302734375, 0.021240234375, -0.0211181640625, -0.007511138916015625, -0.00431060791015625, 0.0160064697265625, 0.0143585205078125, -0.040191650390625, 0.046722412109375, -0.06475830078125, -0.061004638671875, -0.011383056640625, -0.04229736328125, -0.033355712890625, -0.056610107421875, 0.0164337158203125, 0.0160980224609375, 0.06451416015625, -0.015838623046875, -0.0029735565185546875, 0.052978515625, 0.0082550048828125, 0.0171966552734375, 0.001132965087890625, 0.0082855224609375, 0.0241851806640625, -0.020294189453125, 0.0171966552734375, -0.00939178466796875, -0.0080108642578125, -0.003574371337890625, 0.060882568359375, 0.04937744140625, -0.0239410400390625, -0.018463134765625, 0.073974609375, 0.0258331298828125, -0.05364990234375, -0.0037937164306640625, -0.039337158203125, -0.07098388671875, -0.055511474609375, -0.02520751953125, -0.09027099609375, 0.033111572265625, -0.0072174072265625, -0.048919677734375, 0.0273590087890625, 0.023834228515625, -0.003387451171875, -0.041839599609375, 0.031768798828125, 0.02960205078125, 0.030517578125, -0.0273284912109375, 0.00765228271484375, 0.0176544189453125, 0.0195159912109375, -0.046478271484375, -0.025115966796875, -0.017059326171875, 0.07073974609375, 0.03302001953125, 0.0191802978515625, -0.06829833984375, -0.0224151611328125, -0.01690673828125, -0.00946044921875, -0.002994537353515625, 0.0848388671875, -0.00344085693359375, 0.024200439453125, 0.024200439453125, -0.0440673828125, 0.0255889892578125, -0.026763916015625, -0.006610870361328125, 0.0130462646484375, -0.022216796875, -0.029998779296875, 0.035614013671875, -0.0089874267578125, 0.0282135009765625, 0.0111236572265625, -0.033294677734375, -0.0232696533203125, 0.0164794921875, -0.01654052734375, -0.025543212890625, -0.007190704345703125, 0.07818603515625, -0.0364990234375, 0.0496826171875, -0.04315185546875, 0.0248260498046875, 0.037689208984375, 0.024505615234375, 0.07177734375, -0.02203369140625, -0.003910064697265625, -0.0141448974609375, 0.004207611083984375, 0.01334381103515625, 0.0162811279296875, 0.039581298828125, -0.0323486328125, -0.057952880859375, 0.02752685546875, 0.029022216796875, -0.004444122314453125, -0.025970458984375, 0.00992584228515625, 0.011383056640625, 0.0206146240234375, -0.0002727508544921875, 0.025177001953125, -0.02008056640625, -0.005756378173828125, -0.0029773712158203125, -0.008270263671875, -0.0033206939697265625, 0.026519775390625, -0.0016269683837890625, 0.01666259765625, 0.0005917549133300781, -0.004619598388671875, -0.01450347900390625, -0.005222320556640625, 0.0006527900695800781, 0.0650634765625, 0.01030731201171875, 0.11376953125, -0.0738525390625, -0.02978515625, -0.0282135009765625, 0.044464111328125, 0.03546142578125, -0.00562286376953125, -0.05230712890625, -0.0560302734375, 0.06280517578125, 0.03955078125, -0.00019049644470214844, 0.0124664306640625, 0.03887939453125, 0.0171356201171875, -0.0478515625, -0.007144927978515625, 0.028717041015625, -0.037109375, 0.052581787109375, -0.029815673828125, 0.0015687942504882812, -0.02740478515625, -0.035400390625, -0.0256805419921875, -0.0061492919921875, 0.0294342041015625, -0.007587432861328125, 0.061859130859375, -0.00933074951171875, -0.0036144256591796875, 0.034423828125, -0.0138397216796875, 0.06494140625, 0.00968170166015625, -0.07537841796875, -0.016632080078125, -0.033111572265625, -0.007556915283203125, 0.013641357421875, 0.04022216796875, 0.006755828857421875, -0.00991058349609375, -0.0292510986328125, 0.003475189208984375, 0.036895751953125, -0.01458740234375, -0.02264404296875, 0.019287109375, 0.04522705078125, -0.00962066650390625, -0.03460693359375, -0.004673004150390625, 0.00621795654296875, 0.005588531494140625, -0.0175933837890625, 0.12127685546875, -0.03564453125, -0.0083770751953125, 0.0182647705078125, 0.0142669677734375, 0.005939483642578125, -0.00695037841796875, 0.01375579833984375, -0.01531219482421875, 0.01739501953125, -0.0086822509765625, -0.0231170654296875, -0.00750732421875, 0.0467529296875, -0.04638671875, 0.01273345947265625, 0.004482269287109375, -0.0022430419921875, -0.044921875, -0.0033664703369140625, -0.034332275390625, -0.040496826171875, -0.08770751953125, -0.0301055908203125, 0.055206298828125, 0.056243896484375, -0.0133514404296875, 0.047393798828125, -0.00757598876953125, 0.00164031982421875, -0.0082855224609375, -0.01861572265625, -0.0191650390625, 0.019561767578125, -0.028045654296875, 0.009368896484375, 0.0226287841796875, -0.00934600830078125, 0.0202484130859375, -0.0029010772705078125, 0.0439453125, -0.0011568069458007812, -0.0025691986083984375, 0.0474853515625, 0.0009412765502929688, 0.026611328125, -0.0289459228515625, -0.018524169921875, 0.044036865234375, 0.002490997314453125, -0.03289794921875, -0.0555419921875, -0.044219970703125, -0.0479736328125, 0.01276397705078125, 0.024139404296875, -0.0239105224609375, -0.015167236328125, -0.05291748046875, -0.0325927734375, 0.055755615234375, -0.0294342041015625, 0.01396942138671875, -0.0230560302734375, -0.058349609375, 0.00655364990234375, 0.00688934326171875, 0.023529052734375, -0.022369384765625, 0.0037975311279296875, -0.0179901123046875, -0.045135498046875, -0.039215087890625, 0.059844970703125, -0.043548583984375, 0.00998687744140625, 0.034088134765625, -0.0027103424072265625, -0.0211029052734375, -0.0196685791015625, -0.0187225341796875, 0.025299072265625, -0.0164031982421875, -0.0086212158203125, 0.00583648681640625, 0.006244659423828125, -0.01358795166015625, -0.01506805419921875, -0.00325775146484375, -0.006305694580078125, -0.01528167724609375, -0.033599853515625, 0.006710052490234375, -0.003017425537109375, -0.028564453125, -0.0232086181640625, 0.06915283203125, -0.010345458984375, -0.0113067626953125, -0.09222412109375, -0.01212310791015625, 0.0197906494140625, 0.01473236083984375, -0.0279541015625, 0.00730133056640625, -0.06915283203125, 0.0155792236328125, -0.0111083984375, -0.01318359375, -0.0038051605224609375, 0.0004532337188720703, -0.0186920166015625, 0.022979736328125, 0.0272979736328125, -0.059112548828125, 0.0180206298828125, -0.04010009765625, 0.05072021484375, 0.038818359375, -0.02569580078125, -0.055328369140625, 0.0184478759765625, -0.0175628662109375, -0.0277557373046875, 0.0112152099609375, -0.04705810546875, 0.004352569580078125, 0.09100341796875, 0.10296630859375, 0.031341552734375, -0.062255859375, 0.038726806640625, -0.01534271240234375, -0.048583984375, -0.00946044921875, 0.0222930908203125, -0.0390625, -0.0046539306640625, 0.0007457733154296875, -0.01019287109375, 0.00006961822509765625, -0.04791259765625, -0.056884765625, 0.0015993118286132812, -0.03955078125, -0.001369476318359375, -0.0010585784912109375, -0.00780487060546875, 0.004608154296875, -0.02496337890625, -0.032012939453125, 0.0157623291015625, 0.00275421142578125, -0.042938232421875, 0.043792724609375, 0.0214996337890625, -0.0047607421875, -0.048370361328125, -0.00109100341796875, 0.0189361572265625, 0.035858154296875, -0.0276336669921875, -0.05633544921875, 0.004673004150390625, 0.039031982421875, -0.0208892822265625, 0.052825927734375, 0.035675048828125, -0.0006270408630371094, 0.000029981136322021484, 0.0252532958984375, -0.0061492919921875, -0.032135009765625, -0.01409912109375, 0.031951904296875, -0.03857421875, -0.0102386474609375, -0.0013065338134765625, -0.05316162109375, 0.00426483154296875, 0.02783203125, -0.00997161865234375, -0.035369873046875, 0.036529541015625, -0.03167724609375, 0.0201263427734375, 0.0203704833984375 ]
a475de7946ce27822f96194888be285ebcd36231
Wordpress Stackexchange Q: Twenty Fourteen theme and the page-templates folder I have to confess I'm struggling to see how the Wordpress Twenty Fourteen theme picks up templates put in the theme's page-templates folder. Previously I'd create new templates named page-<slug>.php in the theme's root folder, but not now. I've searched the code for mentions of page-templates and not found any where files are included; searched the WP source code too and found none. Can you explain how they're detected and picked up please? A: The actual query for a Theme's page templates happens in wp_get_theme()->get_page_templates() (source), which in turn calls get_files() (source). The magic happens here: $files = (array) $this->get_files( 'php', 1 ); The args for get_files() are: function get_files( $type = null, $depth = 0, $search_parent = false ) {} So, when WordPress searches the Theme for PHP files, it passes a $depth argument of 1, which means that it searches in subdirectories of the Theme root directory.
Q: Twenty Fourteen theme and the page-templates folder I have to confess I'm struggling to see how the Wordpress Twenty Fourteen theme picks up templates put in the theme's page-templates folder. Previously I'd create new templates named page-<slug>.php in the theme's root folder, but not now. I've searched the code for mentions of page-templates and not found any where files are included; searched the WP source code too and found none. Can you explain how they're detected and picked up please? A: The actual query for a Theme's page templates happens in wp_get_theme()->get_page_templates() (source), which in turn calls get_files() (source). The magic happens here: $files = (array) $this->get_files( 'php', 1 ); The args for get_files() are: function get_files( $type = null, $depth = 0, $search_parent = false ) {} So, when WordPress searches the Theme for PHP files, it passes a $depth argument of 1, which means that it searches in subdirectories of the Theme root directory. A: The important part in any page-slug.php template or a template used as a page template is the header section that identifies the page as a page template. Example of contributors.php: /** * Template Name: Contributor Page * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ The template name identifies this as a page template with name 'Contributors Page'. Page templates don't need to be registered or called in any way to be usable in the theme. They are automatically included, no matter where they are in the theme. Page templates don't have to be in the root folder to be "picked up". In the twentyfourteen however, these templates are given a body class, for that you need to call the complete path to the template. if ( ( ! is_active_sidebar( 'sidebar-2' ) ) || is_page_template( 'page-templates/full-width.php' ) || is_page_template( 'page-templates/contributors.php' ) || is_attachment() ) { $classes[] = 'full-width'; }
wordpress
{ "language": "en", "length": 311, "provenance": "stackexchange_00019.jsonl.gz:444494", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142049" }
[ 0.0188140869140625, -0.0159912109375, -0.00930023193359375, -0.01486968994140625, -0.00804901123046875, -0.01035308837890625, 0.0206451416015625, -0.01983642578125, 0.01007080078125, 0.00464630126953125, -0.01806640625, -0.019775390625, -0.002895355224609375, -0.03631591796875, 0.01126861572265625, -0.0303497314453125, 0.0280609130859375, -0.061065673828125, -0.01448822021484375, -0.0142669677734375, 0.01267242431640625, -0.01311492919921875, 0.0128631591796875, 0.0261077880859375, 0.0186309814453125, -0.050018310546875, 0.03778076171875, 0.0048675537109375, 0.01450347900390625, -0.026397705078125, 0.0121307373046875, 0.02099609375, 0.06463623046875, -0.015899658203125, -0.0294189453125, 0.01800537109375, -0.0115509033203125, -0.00733184814453125, -0.02630615234375, 0.0147705078125, -0.0016527175903320312, 0.0204010009765625, 0.020965576171875, 0.0108184814453125, -0.00868988037109375, -0.041412353515625, 0.0145416259765625, -0.0291595458984375, -0.0011310577392578125, 0.0285186767578125, -0.00942230224609375, -0.036376953125, -0.0030193328857421875, -0.0014333724975585938, -0.0187530517578125, -0.04925537109375, 0.0036678314208984375, 0.01352691650390625, 0.02435302734375, -0.0220184326171875, -0.036468505859375, 0.01059722900390625, 0.005352020263671875, -0.006839752197265625, -0.01119232177734375, 0.023284912109375, -0.0236358642578125, 0.01296234130859375, -0.029388427734375, -0.0168914794921875, -0.00289154052734375, -0.0440673828125, 0.01404571533203125, -0.039276123046875, 0.00333404541015625, 0.024200439453125, -0.03564453125, -0.01041412353515625, 0.041351318359375, -0.01076507568359375, -0.0168914794921875, -0.08575439453125, -0.0145111083984375, -0.0179595947265625, 0.019378662109375, 0.03265380859375, 0.00580596923828125, -0.006072998046875, -0.01338958740234375, 0.01012420654296875, -0.016204833984375, -0.0008606910705566406, 0.01059722900390625, 0.0028095245361328125, -0.0184326171875, -0.0008645057678222656, -0.006103515625, 0.045196533203125, -0.01326751708984375, 0.039093017578125, -0.0248870849609375, -0.0245513916015625, 0.039825439453125, -0.042694091796875, 0.004070281982421875, 0.025421142578125, 0.01090240478515625, 0.01163482666015625, 0.026824951171875, 0.0291748046875, 0.0020351409912109375, 0.02972412109375, 0.0193328857421875, -0.03204345703125, -0.0273284912109375, 0.0325927734375, 0.0206146240234375, -0.0240325927734375, 0.01169586181640625, -0.0201873779296875, 0.001972198486328125, 0.0249481201171875, 0.005435943603515625, -0.00726318359375, 0.002838134765625, 0.005229949951171875, -0.0266571044921875, -0.040191650390625, 0.01157379150390625, 0.03338623046875, -0.021331787109375, -0.0111541748046875, -0.020416259765625, 0.00341796875, -0.01751708984375, -0.027496337890625, -0.0130767822265625, 0.0040435791015625, -0.00966644287109375, -0.0020809173583984375, -0.0068359375, -0.0428466796875, -0.00312042236328125, 0.003475189208984375, -0.004314422607421875, -0.0177154541015625, 0.0196380615234375, 0.037933349609375, 0.00939178466796875, 0.0130767822265625, -0.02264404296875, 0.01190948486328125, 0.019287109375, 0.01071929931640625, 0.01171112060546875, -0.050018310546875, -0.00913238525390625, -0.03643798828125, 0.0282440185546875, -0.025543212890625, -0.015869140625, -0.0174560546875, 0.0187225341796875, -0.04107666015625, -0.0382080078125, 0.019805908203125, -0.0201568603515625, -0.01308441162109375, 0.02313232421875, -0.0075836181640625, 0.0118255615234375, -0.038330078125, -0.0209197998046875, 0.030120849609375, 0.035064697265625, 0.047821044921875, 0.0094451904296875, -0.0005035400390625, 0.0253753662109375, 0.038330078125, -0.0045928955078125, -0.0137176513671875, 0.0498046875, -0.0034885406494140625, -0.04345703125, 0.00804901123046875, 0.00818634033203125, 0.0015411376953125, 0.01076507568359375, 0.0016574859619140625, 0.05755615234375, 0.0102386474609375, -0.028961181640625, 0.0460205078125, 0.0025653839111328125, -0.03271484375, 0.00926971435546875, 0.01715087890625, -0.00762939453125, -0.04327392578125, -0.025482177734375, -0.015533447265625, 0.0361328125, 0.0190582275390625, -0.0143585205078125, 0.01076507568359375, -0.02691650390625, 0.03594970703125, 0.0008955001831054688, 0.0019159317016601562, 0.003711700439453125, -0.02203369140625, -0.0037021636962890625, -0.01494598388671875, -0.022186279296875, 0.008026123046875, 0.006122589111328125, 0.0258331298828125, 0.0007672309875488281, 0.03424072265625, -0.0018587112426757812, -0.0056610107421875, -0.0223846435546875, 0.0101776123046875, 0.0160064697265625, 0.0149688720703125, -0.050048828125, -0.0019550323486328125, -0.048431396484375, 0.0286712646484375, -0.06512451171875, 0.06719970703125, -0.0212249755859375, -0.0150146484375, -0.0379638671875, 0.004161834716796875, -0.006855010986328125, -0.01142120361328125, 0.0011396408081054688, 0.0284881591796875, 0.049163818359375, 0.059539794921875, 0.0213165283203125, 0.010589599609375, 0.03326416015625, -0.0697021484375, 0.00937652587890625, -0.021392822265625, 0.035308837890625, 0.058258056640625, 0.041595458984375, -0.005397796630859375, -0.0152587890625, -0.0088958740234375, 0.0054779052734375, 0.004364013671875, 0.0157012939453125, -0.004138946533203125, -0.0034198760986328125, 0.031982421875, 0.0097198486328125, 0.042694091796875, -0.024993896484375, 0.0234832763671875, 0.01727294921875, 0.01544952392578125, 0.02264404296875, 0.0199737548828125, -0.0239715576171875, -0.00518798828125, 0.00908660888671875, -0.0020084381103515625, 0.0181121826171875, 0.0298614501953125, 0.001861572265625, 0.017303466796875, -0.0272064208984375, -0.01047515869140625, 0.039825439453125, 0.019134521484375, -0.0021457672119140625, 0.029205322265625, -0.0209197998046875, 0.001461029052734375, -0.0211029052734375, -0.033416748046875, 0.0144500732421875, 0.047515869140625, 0.00445556640625, 0.028350830078125, 0.018402099609375, 0.0771484375, -0.0092926025390625, 0.049102783203125, -0.01360321044921875, 0.0291748046875, 0.1043701171875, 0.00740814208984375, 0.0233001708984375, 0.0016117095947265625, 0.025787353515625, 0.02752685546875, -0.03936767578125, 0.01849365234375, 0.0246124267578125, -0.00678253173828125, 0.0579833984375, 0.0199432373046875, 0.0128631591796875, -0.01751708984375, 0.0051727294921875, -0.0217437744140625, 0.0090789794921875, 0.036376953125, -0.03240966796875, -0.05267333984375, -0.02203369140625, 0.00377655029296875, -0.0914306640625, -0.05914306640625, 0.052001953125, -0.054168701171875, -0.01409912109375, -0.02911376953125, -0.04803466796875, -0.018280029296875, -0.01407623291015625, -0.0116424560546875, -0.0294036865234375, -0.0472412109375, -0.045013427734375, -0.07391357421875, -0.0445556640625, -0.007129669189453125, 0.0007061958312988281, -0.0087432861328125, 0.007083892822265625, 0.0235137939453125, 0.004337310791015625, -0.0386962890625, 0.01186370849609375, 0.049285888671875, -0.0037403106689453125, -0.0023975372314453125, 0.053863525390625, -0.0667724609375, 0.01171875, 0.0009665489196777344, 0.0007352828979492188, 0.0184173583984375, 0.00344085693359375, -0.014678955078125, -0.0157012939453125, -0.06146240234375, -0.040008544921875, 0.0247802734375, 0.0426025390625, -0.0699462890625, -0.02264404296875, -0.07598876953125, -0.06573486328125, -0.00959014892578125, -0.055633544921875, 0.06573486328125, 0.04864501953125, 0.0079193115234375, -0.025543212890625, 0.055816650390625, 0.029510498046875, -0.0014581680297851562, 0.0134735107421875, -0.0243072509765625, 0.01971435546875, 0.007320404052734375, 0.028656005859375, -0.0268402099609375, 0.0200042724609375, -0.0209808349609375, 0.030029296875, 0.005519866943359375, 0.006946563720703125, -0.0012273788452148438, -0.006786346435546875, -0.027099609375, -0.041168212890625, 0.054351806640625, 0.017333984375, 0.0316162109375, -0.03363037109375, -0.0276947021484375, -0.0307464599609375, 0.07330322265625, -0.06951904296875, -0.042022705078125, 0.00920867919921875, 0.04144287109375, -0.00836181640625, -0.0460205078125, 0.016510009765625, -0.0236663818359375, -0.04010009765625, 0.01154327392578125, 0.00472259521484375, -0.0310821533203125, 0.0044097900390625, -0.044769287109375, -0.0270233154296875, -0.0272064208984375, 0.023834228515625, 0.029266357421875, 0.03857421875, 0.0243377685546875, 0.005458831787109375, 0.03485107421875, -0.0113677978515625, -0.02557373046875, -0.08380126953125, -0.035125732421875, 0.0154266357421875, 0.0648193359375, -0.00133514404296875, -0.036651611328125, -0.0133209228515625, 0.06463623046875, 0.01384735107421875, 0.002010345458984375, 0.061737060546875, 0.0292205810546875, 0.01288604736328125, -0.00910186767578125, 0.04949951171875, -0.04833984375, 0.01495361328125, -0.00839996337890625, -0.04595947265625, 0.0205078125, -0.01285552978515625, -0.002716064453125, 0.020904541015625, -0.030914306640625, -0.0010433197021484375, -0.0171356201171875, -0.0038661956787109375, 0.00400543212890625, -0.00983428955078125, -0.00004118680953979492, -0.01296234130859375, 0.00260162353515625, 0.0540771484375, 0.026123046875, -0.017791748046875, -0.0206146240234375, 0.0792236328125, 0.01552581787109375, -0.052215576171875, -0.017364501953125, -0.01108551025390625, 0.0333251953125, 0.0252685546875, 0.03033447265625, 0.0139617919921875, -0.01151275634765625, 0.031005859375, 0.0189361572265625, -0.0160369873046875, -0.010650634765625, 0.046875, -0.020782470703125, -0.040130615234375, 0.0144500732421875, -0.040313720703125, 0.0231170654296875, 0.07281494140625, -0.010772705078125, -0.0308380126953125, -0.01148223876953125, 0.07177734375, -0.0157470703125, -0.0030727386474609375, -0.08087158203125, -0.06048583984375, 0.003002166748046875, -0.034698486328125, 0.06024169921875, -0.0206756591796875, 0.0206451416015625, 0.057220458984375, 0.041107177734375, 0.005527496337890625, 0.0080413818359375, 0.027496337890625, -0.0035800933837890625, 0.0251312255859375, 0.0192718505859375, -0.011322021484375, -0.031829833984375, 0.0149688720703125, -0.00860595703125, -0.016937255859375, -0.005504608154296875, -0.05169677734375, -0.00804901123046875, 0.0035686492919921875, 0.004344940185546875, -0.03106689453125, 0.0290374755859375, 0.0061798095703125, -0.00984954833984375, 0.00945281982421875, -0.034088134765625, -0.0347900390625, -0.0372314453125, -0.0169677734375, 0.010498046875, -0.0177001953125, 0.02325439453125, 0.02252197265625, 0.0177764892578125, -0.0037479400634765625, -0.033721923828125, -0.036376953125, -0.035308837890625, 0.005344390869140625, 0.017608642578125, 0.0264739990234375, -0.0096282958984375, 0.0116424560546875, 0.046966552734375, -0.0258331298828125, -0.0013580322265625, -0.01293182373046875, 0.0205841064453125, -0.0240020751953125, -0.0345458984375, 0.047943115234375, -0.009735107421875, 0.00020802021026611328, -0.004421234130859375, 0.0022525787353515625, -0.0267486572265625, 0.0097503662109375, 0.004108428955078125, -0.01091766357421875, -0.00698089599609375, -0.02734375, 0.01806640625, -0.014068603515625, -0.0017805099487304688, 0.04833984375, -0.08099365234375, 0.02325439453125, 0.031951904296875, -0.039794921875, 0.006504058837890625, 0.0249176025390625, -0.10015869140625, -0.05279541015625, -0.01140594482421875, -0.00585174560546875, 0.034271240234375, -0.0088653564453125, 0.0214385986328125, 0.0019083023071289062, -0.04541015625, 0.005878448486328125, 0.012969970703125, 0.039642333984375, 0.0049591064453125, -0.0703125, 0.0008835792541503906, -0.046539306640625, 0.0032939910888671875, -0.0278167724609375, -0.0478515625, -0.0248870849609375, 0.017059326171875, -0.00992584228515625, 0.0003972053527832031, -0.0131378173828125, -0.001041412353515625, 0.02813720703125, 0.05474853515625, -0.00147247314453125, 0.050872802734375, -0.029632568359375, 0.08123779296875, -0.0361328125, 0.0121002197265625, -0.0220947265625, 0.00290679931640625, -0.0297088623046875, 0.0254058837890625, 0.00414276123046875, -0.0268402099609375, 0.012237548828125, 0.007167816162109375, -0.04547119140625, -0.0010547637939453125, 0.08685302734375, 0.017486572265625, 0.02191162109375, -0.0311279296875, -0.0057525634765625, -0.008209228515625, 0.055633544921875, -0.031158447265625, -0.0208740234375, 0.0592041015625, -0.0136871337890625, -0.004795074462890625, 0.0238189697265625, -0.07586669921875, 0.038055419921875, 0.036163330078125, 0.00443267822265625, 0.026947021484375, -0.0640869140625, 0.07366943359375, 0.0762939453125, -0.0010824203491210938, 0.022491455078125, 0.0001283884048461914, -0.0119781494140625, -0.0207977294921875, 0.043792724609375, 0.0287628173828125, -0.033477783203125, 0.039276123046875, 0.0019397735595703125, -0.005016326904296875, 0.004398345947265625, -0.03515625, -0.0245361328125, 0.042327880859375, 0.0197601318359375, -0.031463623046875, -0.0223541259765625, -0.001857757568359375, -0.0164794921875, -0.0166473388671875, -0.005420684814453125, -0.0111236572265625, -0.042877197265625, 0.025909423828125, 0.04376220703125, 0.0005197525024414062, 0.0078582763671875, 0.010833740234375, -0.022003173828125, -0.007160186767578125, 0.05718994140625, 0.004512786865234375, 0.0023136138916015625, -0.0140380859375, -0.004669189453125, -0.002685546875, -0.027069091796875, 0.036468505859375, -0.01338958740234375, 0.0004646778106689453, 0.006778717041015625, 0.03778076171875, -0.00011104345321655273, -0.00830078125, 0.00008386373519897461, 0.04180908203125, 0.020538330078125, 0.044189453125, -0.01047515869140625, 0.0221099853515625, 0.015838623046875, 0.0153961181640625, -0.01175689697265625, 0.00616455078125, 0.058685302734375, 0.00850677490234375, -0.06597900390625, 0.021881103515625, -0.04632568359375, 0.005832672119140625, -0.0207061767578125, -0.0391845703125, 0.088134765625, 0.00202178955078125, -0.0343017578125, 0.01800537109375, 0.0460205078125, -0.016265869140625, 0.0203704833984375, 0.0237579345703125, -0.058380126953125, -0.0265350341796875, 0.034637451171875, -0.0044097900390625, 0.006328582763671875, 0.05535888671875, -0.050445556640625, 0.0638427734375, 0.007610321044921875, 0.0185699462890625, 0.034423828125, 0.0211029052734375, -0.04010009765625, -0.00217437744140625, -0.039337158203125, 0.03955078125, 0.0484619140625, 0.023895263671875, -0.04803466796875, -0.003620147705078125, -0.0304718017578125, 0.0239105224609375, 0.0237274169921875, -0.00689697265625, -0.002147674560546875, 0.0016355514526367188, 0.081298828125, 0.0252227783203125, 0.001956939697265625, 0.0172119140625, 0.0113983154296875, 0.01227569580078125, -0.0160675048828125, -0.0384521484375, 0.0174102783203125, -0.0633544921875, -0.00946044921875, 0.0310211181640625, 0.00998687744140625, 0.01024627685546875, 0.00998687744140625, -0.023681640625, -0.05242919921875, 0.01432037353515625, 0.0290069580078125, -0.017852783203125, 0.005962371826171875, -0.01111602783203125, 0.028594970703125, -0.044830322265625, -0.0584716796875, -0.006801605224609375, 0.04144287109375, 0.032867431640625, 0.01544189453125, -0.03436279296875, 0.018585205078125, 0.01800537109375, -0.01480865478515625, -0.01053619384765625, 0.053680419921875, -0.0450439453125, 0.0653076171875, 0.004650115966796875, 0.01047515869140625, -0.06207275390625, 0.01313018798828125, -0.00016224384307861328, 0.0439453125, -0.052520751953125, -0.0281524658203125, 0.006473541259765625, 0.0010976791381835938, -0.00705718994140625, 0.006458282470703125, 0.01381683349609375, 0.0029430389404296875, 0.0300750732421875, -0.01519775390625, -0.03912353515625, -0.019683837890625, -0.00214385986328125, -0.03387451171875, -0.05035400390625, 0.07440185546875, 0.0090179443359375, -0.0292510986328125, 0.041717529296875, 0.01438140869140625, 0.02197265625, -0.0188446044921875, 0.06201171875, -0.01702880859375, -0.003643035888671875, -0.0020618438720703125, -0.0091552734375, -0.0265350341796875, 0.00687408447265625, -0.0236968994140625, -0.012603759765625, -0.00894927978515625, 0.046630859375, 0.0084991455078125, -0.00937652587890625, -0.0322265625, -0.04644775390625, -0.0162200927734375, -0.0019388198852539062, -0.0010232925415039062, -0.03533935546875, 0.030426025390625, -0.0128326416015625, -0.004192352294921875, 0.00649261474609375, -0.035064697265625, -0.00485992431640625, -0.0276031494140625, 0.05615234375, -0.0189056396484375, -0.0287017822265625, 0.00791168212890625, -0.035858154296875, 0.03094482421875, -0.000701904296875, 0.00634765625, 0.004398345947265625, -0.078857421875, 0.0246734619140625, -0.048858642578125, -0.051483154296875, 0.03924560546875, 0.045257568359375, -0.0288543701171875, 0.022308349609375, 0.02972412109375, 0.00460052490234375, -0.0010366439819335938, -0.016754150390625, 0.0108795166015625, 0.01428985595703125, 0.032012939453125, 0.023101806640625, -0.0191650390625, -0.00994873046875, -0.02813720703125, 0.04248046875, 0.01169586181640625, 0.1285400390625, -0.055694580078125, 0.010498046875, 0.0047607421875, 0.0347900390625, -0.0205230712890625, -0.0091094970703125, 0.06793212890625, -0.00164031982421875, -0.016326904296875, -0.0243377685546875, -0.04644775390625, -0.0120391845703125, 0.030670166015625, -0.034698486328125, -0.0178375244140625, 0.0029506683349609375, 0.0243682861328125, 0.0114288330078125, -0.0263824462890625, -0.030426025390625, -0.0251312255859375, -0.03717041015625, -0.0183258056640625, 0.0216064453125, 0.0021877288818359375, 0.0016231536865234375, 0.03326416015625, -0.0018854141235351562, -0.0265960693359375, 0.026763916015625, -0.012603759765625, 0.03460693359375, 0.025238037109375, 0.008056640625, -0.00537109375, 0.0089569091796875, -0.0206756591796875, 0.045928955078125, -0.0214385986328125, 0.0206451416015625, 0.0033092498779296875, -0.08697509765625, -0.0107879638671875, 0.0009984970092773438, 0.021392822265625, -0.050567626953125, 0.0112457275390625, 0.00765228271484375, 0.00832366943359375, 0.0309600830078125, -0.0264892578125, -0.003597259521484375, -0.0298309326171875, -0.01898193359375, 0.0178680419921875, -0.005035400390625, 0.01107025146484375, 0.0220947265625, -0.033172607421875, 0.041290283203125, 0.024871826171875, -0.06268310546875, 0.00928497314453125, 0.00576019287109375, 0.0125885009765625, 0.018280029296875, 0.047393798828125, -0.01366424560546875, -0.018829345703125, -0.04400634765625, 0.01535797119140625, -0.00966644287109375, 0.010986328125, 0.019775390625, -0.00952911376953125, 0.043548583984375, 0.008056640625, -0.005153656005859375, -0.0022487640380859375, -0.0136871337890625, 0.05670166015625, -0.08831787109375, -0.0301055908203125, 0.040740966796875, -0.00820159912109375, 0.0079345703125, -0.027679443359375, -0.043701171875, 0.001068115234375, 0.04071044921875, -0.0003833770751953125, 0.00247955322265625, 0.01552581787109375, -0.04974365234375, -0.08740234375, 0.047637939453125, -0.01079559326171875, -0.04931640625, -0.0328369140625, 0.00791168212890625, -0.02227783203125, 0.01552581787109375, -0.009765625, -0.02490234375, 0.01727294921875, 0.0478515625, 0.03948974609375, -0.0157928466796875, 0.057525634765625, 0.0224609375, -0.0557861328125, 0.0163116455078125, -0.0103759765625, -0.00638580322265625, -0.0019664764404296875, -0.0153045654296875, 0.02288818359375, 0.050506591796875, -0.029632568359375, -0.056976318359375, 0.00641632080078125, -0.01094818115234375, -0.02337646484375, -0.0097808837890625, -0.024444580078125, -0.017822265625, 0.0675048828125, 0.03607177734375, 0.0134735107421875, -0.0189208984375, -0.01922607421875, -0.0028533935546875, -0.0419921875, -0.0017957687377929688, 0.0440673828125, -0.06695556640625, 0.01412200927734375, 0.017242431640625, -0.038848876953125, -0.022735595703125, -0.035064697265625, -0.07562255859375, -0.0031909942626953125, -0.07196044921875, -0.01323699951171875, 0.0198211669921875, -0.03802490234375, 0.08453369140625, -0.027679443359375, 0.0155029296875, -0.019256591796875, 0.043975830078125, 0.043792724609375, -0.02838134765625, -0.036224365234375, 0.05755615234375, -0.060546875, 0.021240234375, -0.003940582275390625, 0.00994110107421875, -0.049163818359375, 0.037750244140625, 0.01509857177734375, 0.031646728515625, -0.0162200927734375, 0.01103973388671875, 0.00615692138671875, 0.06317138671875, -0.0226287841796875, 0.115478515625, 0.022674560546875, 0.029998779296875, 0.01605224609375, 0.0633544921875, -0.019805908203125, -0.04449462890625, 0.000942230224609375, -0.08154296875, -0.012847900390625, 0.0012063980102539062, -0.0239105224609375, -0.06427001953125, 0.018951416015625, 0.01678466796875, -0.00043654441833496094, 0.019378662109375 ]
4f29205068c59e3b9962c5eaf4f927d8378dcf8f
Wordpress Stackexchange Q: Declare a function before plugin does on the theme functions.php file I'm working with a plugin that declares a function using this format: if (!function_exists('ABdevDND_get_current_post_type')){ function ABdevDND_get_current_post_type() { ... } } I'm trying to declare it in my theme's functions.php file, by just using: function ABdevDND_get_current_post_type() { ... } But my timing is wrong, and I'm getting Fatal error: Cannot redeclare ABdevDND_get_current_post_type(). How and where can I declare this function so it's declared before the plugin? A: You cannot do that in a theme, because themes are loaded after plugins. Use a custom plugin, maybe a mu-plugin to be sure, because they are loaded earlier than normal plugins.
Q: Declare a function before plugin does on the theme functions.php file I'm working with a plugin that declares a function using this format: if (!function_exists('ABdevDND_get_current_post_type')){ function ABdevDND_get_current_post_type() { ... } } I'm trying to declare it in my theme's functions.php file, by just using: function ABdevDND_get_current_post_type() { ... } But my timing is wrong, and I'm getting Fatal error: Cannot redeclare ABdevDND_get_current_post_type(). How and where can I declare this function so it's declared before the plugin? A: You cannot do that in a theme, because themes are loaded after plugins. Use a custom plugin, maybe a mu-plugin to be sure, because they are loaded earlier than normal plugins. A: On the inverse here, I recently had the issue of a theme overriding a plugin function on plugin activation. The theme code is loaded before the plugin is activated so as to buffer the any fatal errors. You will see the previously declared error even though the chain of actions is still working properly after activation. You can use this to disable your function override for the plugins page where you most likely will never need it. It would be great for WordPress to attempt activation of the plugin before plugins_loaded, but that is not the case here. global $pagenow; if ( $pagenow !== 'plugins.php' ) { //declare your function here }
wordpress
{ "language": "en", "length": 222, "provenance": "stackexchange_00019.jsonl.gz:444518", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142123" }
[ 0.06317138671875, -0.007190704345703125, -0.005279541015625, -0.054107666015625, 0.0086669921875, -0.01102447509765625, 0.001338958740234375, -0.01284027099609375, -0.042327880859375, -0.007297515869140625, -0.0239410400390625, 0.02752685546875, -0.046630859375, -0.0199432373046875, 0.02569580078125, -0.047821044921875, 0.057342529296875, -0.045745849609375, 0.054412841796875, -0.02716064453125, 0.0173187255859375, 0.02655029296875, 0.06866455078125, 0.09222412109375, 0.016204833984375, -0.0479736328125, 0.07025146484375, -0.005954742431640625, 0.0247955322265625, -0.01323699951171875, 0.0286407470703125, -0.006816864013671875, -0.0217742919921875, 0.044708251953125, 0.00630950927734375, -0.0184478759765625, -0.0186920166015625, 0.03302001953125, 0.048919677734375, -0.0034198760986328125, -0.00360107421875, 0.017425537109375, -0.0198516845703125, 0.035552978515625, -0.05621337890625, -0.07830810546875, 0.01442718505859375, 0.00994110107421875, -0.0085601806640625, 0.035888671875, 0.0219268798828125, 0.0005397796630859375, 0.041900634765625, -0.0200347900390625, -0.0209197998046875, -0.0467529296875, -0.031402587890625, 0.034423828125, 0.019134521484375, 0.040283203125, -0.0009145736694335938, 0.00852203369140625, 0.0015211105346679688, -0.0322265625, -0.0029163360595703125, 0.00827789306640625, -0.0097503662109375, 0.024322509765625, -0.0477294921875, -0.0168609619140625, 0.0218658447265625, -0.0269622802734375, 0.0273284912109375, 0.01824951171875, 0.00838470458984375, -0.09033203125, 0.062286376953125, 0.004001617431640625, -0.0028514862060546875, 0.0262603759765625, -0.00267791748046875, -0.02203369140625, 0.0020198822021484375, -0.01218414306640625, 0.003780364990234375, 0.020751953125, -0.018798828125, -0.0161590576171875, -0.0221405029296875, -0.013671875, -0.0286102294921875, 0.0165252685546875, -0.0212249755859375, -0.01519012451171875, -0.02142333984375, -0.006916046142578125, 0.03765869140625, 0.06976318359375, -0.0169525146484375, 0.0092010498046875, -0.005992889404296875, -0.0440673828125, 0.0167999267578125, -0.04608154296875, 0.01020050048828125, 0.056915283203125, -0.02130126953125, -0.06494140625, -0.0118408203125, 0.0291900634765625, 0.01154327392578125, -0.049407958984375, -0.006328582763671875, -0.037445068359375, -0.007694244384765625, 0.0411376953125, -0.006977081298828125, -0.00936126708984375, 0.01406097412109375, -0.0006585121154785156, 0.0312042236328125, 0.0498046875, -0.00432586669921875, -0.0241241455078125, 0.0025920867919921875, 0.0093841552734375, -0.0287017822265625, -0.041778564453125, 0.01458740234375, 0.029296875, -0.0229339599609375, -0.0180816650390625, 0.0322265625, 0.031524658203125, -0.0093536376953125, -0.0200653076171875, 0.035003662109375, -0.015289306640625, 0.006168365478515625, 0.01250457763671875, 0.0203094482421875, -0.0498046875, -0.036529541015625, 0.00978851318359375, -0.009368896484375, 0.035400390625, 0.012908935546875, -0.006816864013671875, -0.0309906005859375, -0.09539794921875, 0.0538330078125, -0.1021728515625, 0.038604736328125, 0.002593994140625, -0.0188446044921875, 0.00104522705078125, -0.01230621337890625, -0.012115478515625, -0.0262603759765625, 0.0020732879638671875, 0.021453857421875, -0.03314208984375, -0.060943603515625, -0.0084228515625, -0.06805419921875, 0.043792724609375, 0.00836181640625, 0.01032257080078125, 0.01373291015625, -0.029449462890625, 0.01178741455078125, -0.002155303955078125, 0.034759521484375, 0.019775390625, 0.007289886474609375, 0.0296478271484375, 0.00261688232421875, 0.007030487060546875, 0.036834716796875, 0.0191802978515625, -0.0058746337890625, -0.0172882080078125, 0.040283203125, -0.00839996337890625, -0.05743408203125, 0.04119873046875, 0.018524169921875, 0.07244873046875, 0.005504608154296875, 0.0222320556640625, 0.0241546630859375, 0.0183868408203125, -0.040740966796875, 0.0228424072265625, -0.04046630859375, -0.035308837890625, 0.032196044921875, 0.00841522216796875, -0.0294952392578125, 0.0233612060546875, -0.0286712646484375, 0.0216217041015625, -0.052154541015625, 0.0093841552734375, -0.0438232421875, -0.033447265625, -0.002536773681640625, 0.03216552734375, 0.0650634765625, 0.03228759765625, -0.0189208984375, 0.0038585662841796875, -0.0006737709045410156, -0.033782958984375, -0.03497314453125, 0.005321502685546875, -0.0133209228515625, 0.041259765625, -0.0157012939453125, 0.06927490234375, -0.026641845703125, -0.005397796630859375, -0.037689208984375, -0.016265869140625, -0.0084991455078125, 0.0423583984375, -0.034149169921875, -0.00001627206802368164, -0.0247802734375, 0.039581298828125, -0.0190277099609375, 0.0086517333984375, 0.0237274169921875, 0.0284881591796875, -0.0186614990234375, -0.0195159912109375, 0.0011167526245117188, -0.040069580078125, 0.0210418701171875, 0.0491943359375, 0.04193115234375, 0.048614501953125, 0.0296173095703125, 0.036163330078125, 0.037811279296875, -0.045379638671875, 0.00997161865234375, -0.01032257080078125, 0.02728271484375, 0.041168212890625, 0.01031494140625, 0.0247344970703125, 0.0095367431640625, -0.0189666748046875, 0.038177490234375, 0.032135009765625, 0.004077911376953125, -0.041015625, 0.03753662109375, -0.01464080810546875, -0.001537322998046875, -0.058135986328125, -0.054107666015625, 0.0033721923828125, 0.054168701171875, 0.007659912109375, 0.029571533203125, 0.0162506103515625, -0.053741455078125, 0.02374267578125, 0.0411376953125, 0.03704833984375, -0.007244110107421875, -0.002574920654296875, 0.0254669189453125, 0.0242462158203125, -0.05328369140625, 0.011871337890625, 0.034393310546875, 0.01404571533203125, -0.037261962890625, -0.0229644775390625, -0.07379150390625, -0.0209808349609375, -0.0004532337188720703, -0.03326416015625, 0.006336212158203125, 0.0193328857421875, 0.016265869140625, -0.003673553466796875, 0.0224609375, -0.00040721893310546875, -0.039459228515625, 0.06109619140625, -0.021148681640625, -0.023773193359375, -0.03521728515625, -0.03857421875, 0.019012451171875, -0.0227508544921875, 0.034942626953125, 0.057464599609375, 0.00495147705078125, -0.01122283935546875, 0.00012969970703125, 0.0018177032470703125, 0.023956298828125, 0.0103302001953125, -0.01003265380859375, -0.022369384765625, -0.0242919921875, -0.00672149658203125, 0.0241241455078125, 0.05792236328125, -0.00145721435546875, -0.059783935546875, 0.00713348388671875, 0.035552978515625, -0.042816162109375, -0.027191162109375, 0.005924224853515625, -0.03369140625, 0.048095703125, -0.02618408203125, 0.0034084320068359375, -0.036865234375, -0.0085296630859375, 0.0196533203125, -0.00962066650390625, -0.0011425018310546875, -0.0684814453125, -0.07763671875, -0.107666015625, -0.026336669921875, -0.015899658203125, 0.0245361328125, -0.0072021484375, 0.092529296875, 0.018829345703125, -0.045074462890625, 0.00691986083984375, 0.0124969482421875, -0.01427459716796875, 0.02362060546875, 0.00171661376953125, -0.00722503662109375, -0.00494384765625, 0.0164031982421875, 0.0404052734375, 0.027435302734375, -0.0295257568359375, -0.01064300537109375, -0.0279388427734375, -0.0194244384765625, -0.023681640625, 0.0628662109375, 0.036834716796875, -0.02838134765625, 0.0194244384765625, -0.047943115234375, 0.0031890869140625, 0.0192413330078125, -0.01605224609375, 0.02618408203125, -0.025482177734375, -0.02105712890625, 0.02825927734375, 0.00531768798828125, -0.00778961181640625, -0.0007252693176269531, 0.0119171142578125, -0.026214599609375, 0.0335693359375, -0.0009975433349609375, -0.006984710693359375, -0.0219879150390625, 0.08245849609375, -0.0027446746826171875, -0.0009965896606445312, 0.025390625, 0.01873779296875, 0.0026798248291015625, -0.00823974609375, -0.03448486328125, -0.0300140380859375, 0.041717529296875, -0.007167816162109375, -0.0233154296875, -0.007274627685546875, -0.0124359130859375, -0.0011234283447265625, 0.045379638671875, 0.00557708740234375, 0.0079498291015625, 0.0168304443359375, -0.006748199462890625, -0.06097412109375, -0.024566650390625, -0.10626220703125, 0.0054779052734375, -0.048858642578125, -0.01125335693359375, -0.004940032958984375, -0.0173797607421875, -0.01983642578125, 0.08135986328125, -0.05731201171875, -0.014923095703125, 0.02593994140625, -0.03948974609375, 0.019622802734375, 0.038604736328125, -0.0277099609375, 0.0134735107421875, -0.0208892822265625, -0.0380859375, -0.07806396484375, 0.0086212158203125, -0.06439208984375, 0.04931640625, 0.006317138671875, 0.0216827392578125, -0.0239105224609375, 0.02789306640625, 0.0087890625, -0.020782470703125, 0.01064300537109375, -0.00203704833984375, 0.02850341796875, 0.018524169921875, -0.0016298294067382812, -0.0018177032470703125, -0.0229034423828125, -0.006378173828125, -0.0189361572265625, 0.0394287109375, 0.004718780517578125, -0.00891876220703125, 0.033172607421875, -0.034881591796875, 0.00787353515625, 0.007419586181640625, 0.013702392578125, 0.03271484375, 0.0164031982421875, -0.00955963134765625, -0.0013837814331054688, -0.0033054351806640625, -0.00804901123046875, -0.0430908203125, -0.03509521484375, 0.0355224609375, 0.0699462890625, 0.0212249755859375, 0.0284423828125, -0.019195556640625, 0.0255279541015625, 0.044952392578125, 0.002105712890625, 0.0095672607421875, -0.039825439453125, -0.053192138671875, 0.09423828125, 0.002178192138671875, -0.0047760009765625, -0.0191497802734375, 0.01026153564453125, -0.00559234619140625, -0.051483154296875, 0.01540374755859375, -0.00963592529296875, 0.05169677734375, 0.01496124267578125, -0.008209228515625, -0.00775909423828125, 0.0032367706298828125, 0.00945281982421875, -0.027008056640625, 0.0244903564453125, -0.00247955322265625, -0.0161590576171875, 0.0081329345703125, 0.00727081298828125, 0.04815673828125, 0.05084228515625, -0.005748748779296875, 0.0277862548828125, 0.012786865234375, -0.0160980224609375, 0.04925537109375, 0.05059814453125, -0.00089263916015625, 0.035552978515625, 0.0203094482421875, -0.01320648193359375, 0.0029087066650390625, 0.0009059906005859375, 0.0413818359375, -0.006809234619140625, -0.0201873779296875, -0.061676025390625, -0.0067138671875, 0.00917816162109375, -0.0218048095703125, -0.0165557861328125, 0.0244140625, 0.0143890380859375, -0.026641845703125, 0.006824493408203125, -0.041961669921875, -0.003322601318359375, -0.03448486328125, 0.004428863525390625, 0.0290374755859375, -0.022003173828125, -0.00649261474609375, 0.051177978515625, 0.0150604248046875, 0.01727294921875, -0.0003867149353027344, 0.04425048828125, -0.00977325439453125, 0.0452880859375, 0.017059326171875, -0.01837158203125, 0.0031681060791015625, 0.012420654296875, -0.02752685546875, -0.0117645263671875, 0.01275634765625, -0.01187896728515625, -0.0024013519287109375, -0.0179290771484375, -0.0160980224609375, 0.06005859375, 0.025177001953125, -0.019805908203125, 0.037322998046875, 0.08087158203125, -0.0194549560546875, 0.0005841255187988281, -0.007709503173828125, 0.014739990234375, 0.0220947265625, -0.008758544921875, 0.04656982421875, 0.017852783203125, 0.04052734375, 0.01392364501953125, -0.03271484375, 0.016204833984375, 0.028717041015625, -0.05889892578125, -0.0114593505859375, 0.03399658203125, -0.048004150390625, -0.037811279296875, -0.0106658935546875, -0.00737762451171875, 0.0019969940185546875, -0.0111541748046875, 0.002964019775390625, -0.027374267578125, -0.00803375244140625, -0.01306915283203125, -0.0019969940185546875, 0.08551025390625, 0.03338623046875, -0.044708251953125, 0.0239410400390625, -0.034759521484375, -0.0261688232421875, -0.040283203125, -0.055450439453125, -0.06341552734375, -0.0308074951171875, -0.0016012191772460938, 0.023284912109375, -0.014404296875, -0.01195526123046875, 0.0028095245361328125, 0.01052093505859375, 0.0033855438232421875, 0.024993896484375, 0.0162811279296875, 0.013031005859375, 0.0088043212890625, 0.009490966796875, 0.01055908203125, 0.01096343994140625, 0.006771087646484375, -0.0262908935546875, -0.0026874542236328125, -0.0278167724609375, -0.007099151611328125, -0.0253448486328125, 0.0018548965454101562, 0.00437164306640625, 0.044921875, 0.004180908203125, 0.0221099853515625, 0.01438140869140625, 0.01055908203125, -0.005840301513671875, -0.020355224609375, 0.0325927734375, 0.028564453125, 0.01160430908203125, -0.0311126708984375, -0.01238250732421875, 0.01467132568359375, 0.00518035888671875, 0.01654052734375, -0.002719879150390625, 0.021209716796875, 0.00464630126953125, -0.08599853515625, 0.0634765625, 0.04254150390625, 0.03558349609375, 0.0257110595703125, -0.026336669921875, 0.015655517578125, -0.032806396484375, 0.0372314453125, -0.01288604736328125, -0.0343017578125, 0.05767822265625, 0.0238189697265625, -0.023223876953125, 0.0335693359375, -0.032257080078125, -0.00951385498046875, 0.0535888671875, 0.05682373046875, -0.0545654296875, -0.005695343017578125, 0.017974853515625, -0.00726318359375, 0.007904052734375, -0.01084136962890625, 0.01690673828125, -0.01788330078125, 0.031890869140625, 0.01483917236328125, 0.005336761474609375, 0.0237274169921875, -0.004364013671875, -0.02117919921875, -0.034332275390625, 0.0060272216796875, 0.0229034423828125, -0.0275421142578125, 0.0673828125, -0.0025691986083984375, 0.024932861328125, -0.025787353515625, 0.06292724609375, -0.042266845703125, 0.00373077392578125, -0.009185791015625, 0.0374755859375, 0.044036865234375, -0.01213836669921875, 0.013427734375, 0.0164337158203125, -0.0159759521484375, 0.0517578125, -0.03021240234375, 0.036651611328125, 0.0196380615234375, -0.007274627685546875, -0.047393798828125, -0.055877685546875, 0.0156097412109375, 0.054840087890625, -0.044891357421875, 0.038299560546875, -0.0022678375244140625, -0.036895751953125, -0.022735595703125, -0.04412841796875, 0.0823974609375, -0.023895263671875, -0.003875732421875, 0.037841796875, 0.036956787109375, -0.041015625, -0.0107421875, 0.02252197265625, -0.032257080078125, -0.01371002197265625, -0.00537872314453125, -0.01483154296875, -0.0285797119140625, -0.02691650390625, -0.05194091796875, 0.0775146484375, -0.025909423828125, 0.048919677734375, 0.027099609375, 0.0145721435546875, 0.0062103271484375, 0.01415252685546875, -0.0284423828125, 0.03204345703125, -0.040740966796875, 0.05096435546875, -0.0633544921875, 0.004848480224609375, -0.01012420654296875, 0.030487060546875, 0.04388427734375, 0.0011091232299804688, 0.010528564453125, 0.02618408203125, 0.09808349609375, 0.039947509765625, 0.00423431396484375, 0.0053558349609375, -0.0072021484375, -0.025726318359375, -0.015655517578125, 0.01055145263671875, 0.041717529296875, -0.0731201171875, -0.026824951171875, 0.003574371337890625, 0.0033931732177734375, -0.004817962646484375, -0.0217742919921875, -0.04412841796875, -0.0140533447265625, -0.0083770751953125, -0.00806427001953125, 0.024139404296875, 0.022430419921875, 0.02679443359375, 0.0294952392578125, 0.0018243789672851562, -0.01348876953125, -0.0098114013671875, 0.04302978515625, -0.01079559326171875, 0.02374267578125, 0.028961181640625, 0.013336181640625, -0.0012426376342773438, -0.0290679931640625, 0.0029621124267578125, 0.0010442733764648438, -0.0158538818359375, 0.04119873046875, 0.025787353515625, 0.02178955078125, -0.014251708984375, -0.01153564453125, 0.0270233154296875, 0.035980224609375, -0.0261688232421875, -0.032501220703125, 0.0083160400390625, -0.009246826171875, -0.0044403076171875, 0.01244354248046875, 0.0279998779296875, 0.07080078125, 0.057037353515625, 0.0092010498046875, -0.02227783203125, 0.0016069412231445312, 0.048492431640625, 0.01450347900390625, -0.0020732879638671875, -0.040374755859375, -0.04437255859375, -0.047821044921875, 0.006397247314453125, 0.02716064453125, 0.07135009765625, 0.026947021484375, 0.049102783203125, 0.0020122528076171875, -0.0260467529296875, -0.0061798095703125, 0.002971649169921875, -0.0099029541015625, 0.0049591064453125, -0.02752685546875, -0.0226593017578125, 0.010162353515625, 0.040069580078125, 0.0276947021484375, 0.032196044921875, 0.00714111328125, 0.010101318359375, 0.03009033203125, 0.003955841064453125, 0.0171661376953125, -0.002040863037109375, -0.017669677734375, -0.0146942138671875, -0.008087158203125, 0.007640838623046875, -0.0017852783203125, -0.001476287841796875, 0.01306915283203125, 0.01397705078125, -0.0031948089599609375, 0.0465087890625, 0.003154754638671875, -0.0001690387725830078, 0.016693115234375, -0.0088348388671875, 0.058929443359375, 0.01861572265625, -0.06219482421875, 0.00688934326171875, -0.06500244140625, -0.05511474609375, 0.0229339599609375, 0.049652099609375, 0.004150390625, -0.0177764892578125, 0.05364990234375, -0.036224365234375, 0.0477294921875, -0.00992584228515625, 0.01369476318359375, 0.0281524658203125, 0.0220947265625, 0.0229339599609375, -0.04962158203125, -0.0250244140625, -0.0209808349609375, 0.0285186767578125, 0.024078369140625, 0.04547119140625, -0.0012111663818359375, 0.0276947021484375, 0.0036258697509765625, -0.005039215087890625, -0.0099029541015625, -0.0190277099609375, 0.00971221923828125, -0.0147857666015625, 0.0035381317138671875, 0.008575439453125, -0.0328369140625, 0.00789642333984375, 0.01007080078125, -0.01812744140625, -0.00885772705078125, -0.015228271484375, 0.0290374755859375, 0.02960205078125, 0.03741455078125, -0.0023784637451171875, -0.0113067626953125, 0.0080108642578125, 0.00820159912109375, 0.0302276611328125, 0.02947998046875, -0.0135345458984375, -0.05389404296875, 0.0192108154296875, -0.070556640625, 0.01070404052734375, 0.01593017578125, -0.016815185546875, 0.016510009765625, 0.057525634765625, -0.053802490234375, -0.0087738037109375, -0.0221099853515625, 0.002864837646484375, 0.006317138671875, 0.06298828125, -0.0239410400390625, 0.00489044189453125, -0.0026569366455078125, 0.0029659271240234375, 0.0225677490234375, -0.037261962890625, -0.00876617431640625, 0.0197296142578125, -0.01090240478515625, -0.0027313232421875, -0.0290069580078125, -0.048828125, -0.039215087890625, 0.01068878173828125, 0.0119476318359375, -0.002841949462890625, -0.037139892578125, -0.025848388671875, 0.01021575927734375, 0.040069580078125, -0.0018291473388671875, -0.057708740234375, 0.0234222412109375, -0.0294952392578125, 0.06072998046875, -0.026519775390625, -0.028076171875, 0.0243988037109375, 0.041229248046875, -0.0005469322204589844, -0.004535675048828125, 0.0084991455078125, 0.01004791259765625, 0.0289459228515625, 0.050048828125, 0.058197021484375, -0.033966064453125, -0.0172882080078125, 0.058990478515625, 0.0233001708984375, 0.09405517578125, 0.0148773193359375, -0.0185546875, 0.061431884765625, -0.037628173828125, -0.037872314453125, -0.04937744140625, 0.01824951171875, -0.08099365234375, -0.01088714599609375, -0.0298919677734375, 0.004001617431640625, 0.027435302734375, -0.032501220703125, -0.0465087890625, 0.058868408203125, -0.006671905517578125, -0.0222015380859375, -0.0341796875, 0.033355712890625, 0.00848388671875, -0.00756072998046875, 0.0038623809814453125, -0.0316162109375, -0.01419830322265625, 0.016693115234375, -0.0035152435302734375, -0.00489044189453125, 0.044677734375, -0.0501708984375, -0.0311279296875, -0.01763916015625, 0.0165863037109375, 0.004291534423828125, -0.0308380126953125, -0.01380157470703125, 0.0330810546875, 0.033233642578125, -0.007625579833984375, -0.01512908935546875, 0.03759765625, 0.00860595703125, -0.04022216796875, -0.00506591796875, 0.0189361572265625, 0.0174713134765625, 0.07781982421875, 0.0172271728515625, 0.0016937255859375, -0.04510498046875, -0.0019502639770507812, -0.01270294189453125, -0.05279541015625, 0.008697509765625, 0.0474853515625, -0.07354736328125, 0.00598907470703125, 0.028656005859375, -0.019561767578125, -0.00922393798828125, -0.0125274658203125, -0.0380859375, 0.012176513671875, -0.01422882080078125, 0.004337310791015625, -0.042999267578125, 0.0160675048828125, 0.051025390625, -0.025482177734375, -0.006153106689453125, 0.037200927734375, -0.00650787353515625, 0.025238037109375, 0.0308380126953125, 0.038177490234375, 0.025238037109375, -0.0205078125, -0.0018110275268554688, 0.0297698974609375, 0.034759521484375, 0.0030956268310546875, -0.056884765625, 0.006198883056640625, 0.0009984970092773438, -0.007801055908203125, -0.01398468017578125, -0.0174560546875, 0.04364013671875, -0.0105438232421875, 0.046417236328125, 0.0038318634033203125, 0.057373046875, 0.0021991729736328125, 0.0250701904296875, -0.0190887451171875, 0.00010329484939575195, -0.007720947265625, -0.0255889892578125, 0.004299163818359375, 0.03948974609375, -0.0027561187744140625, 0.00616455078125, 0.019012451171875, 0.006504058837890625, 0.01424407958984375, -0.003353118896484375 ]
a6207ab386df59f1f48520a1426e890206c87638
Wordpress Stackexchange Q: WP Video media player not loading correct CSS after AJAX load I have a post which uses WP [video] shortcode to display my video file. It's supposed to look like this: But it looks like this: After I click "Load More Posts" AJAX call. The video player will look like the way I want after I click the post. It's only when the post is loaded with AJAX that it appears like this. Can anyone tell me what's wrong? Thanks. A: I call mediaelementplayer() from ajax success function. It works for me. $.get(ajaxPostUrl,function(data){ var posts = $(data).find('.post'); $('#post-container').append(posts); posts.find('video,audio').mediaelementplayer(/* Options */); });
Q: WP Video media player not loading correct CSS after AJAX load I have a post which uses WP [video] shortcode to display my video file. It's supposed to look like this: But it looks like this: After I click "Load More Posts" AJAX call. The video player will look like the way I want after I click the post. It's only when the post is loaded with AJAX that it appears like this. Can anyone tell me what's wrong? Thanks. A: I call mediaelementplayer() from ajax success function. It works for me. $.get(ajaxPostUrl,function(data){ var posts = $(data).find('.post'); $('#post-container').append(posts); posts.find('video,audio').mediaelementplayer(/* Options */); });
wordpress
{ "language": "en", "length": 103, "provenance": "stackexchange_00019.jsonl.gz:444520", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142130" }
[ 0.051513671875, 0.0169830322265625, -0.01605224609375, -0.01496124267578125, 0.020050048828125, -0.01528167724609375, 0.042572021484375, -0.041168212890625, -0.022186279296875, 0.0162200927734375, -0.056488037109375, 0.043792724609375, -0.055145263671875, 0.01763916015625, -0.027099609375, -0.04840087890625, 0.04583740234375, -0.0258941650390625, 0.04205322265625, -0.0015163421630859375, -0.006298065185546875, 0.026763916015625, 0.059783935546875, 0.0277862548828125, -0.012054443359375, 0.038909912109375, 0.07177734375, 0.0231475830078125, -0.0262908935546875, -0.0217132568359375, -0.0023784637451171875, 0.00020956993103027344, 0.04400634765625, 0.005428314208984375, -0.052642822265625, -0.01361846923828125, -0.005947113037109375, -0.0136566162109375, -0.03472900390625, 0.033538818359375, -0.00911712646484375, 0.0110931396484375, 0.0594482421875, -0.0016889572143554688, -0.0013437271118164062, -0.005855560302734375, -0.0191497802734375, -0.051849365234375, 0.0233306884765625, -0.03118896484375, 0.014404296875, -0.01084136962890625, 0.029998779296875, 0.00446319580078125, -0.037933349609375, -0.006839752197265625, -0.06524658203125, 0.046722412109375, 0.016143798828125, 0.019195556640625, 0.00484466552734375, -0.0034332275390625, 0.002658843994140625, -0.00495147705078125, -0.03057861328125, 0.007305145263671875, 0.032623291015625, -0.0186004638671875, -0.04791259765625, -0.0267486572265625, 0.058807373046875, -0.0266265869140625, -0.021270751953125, -0.01328277587890625, -0.0161285400390625, 0.0175018310546875, 0.02301025390625, -0.00821685791015625, -0.0012073516845703125, 0.011077880859375, 0.047821044921875, 0.0012121200561523438, -0.0033721923828125, -0.0105438232421875, 0.015655517578125, 0.00690460205078125, 0.004390716552734375, -0.0228118896484375, -0.0084991455078125, -0.0205535888671875, -0.0162811279296875, -0.04840087890625, -0.00860595703125, 0.0163421630859375, -0.0147705078125, -0.0182647705078125, -0.041748046875, 0.0154571533203125, -0.0242767333984375, 0.0276336669921875, -0.0137786865234375, -0.0099945068359375, 0.021331787109375, -0.037017822265625, 0.0098724365234375, -0.0228271484375, -0.0019931793212890625, -0.0188446044921875, 0.040924072265625, 0.0308380126953125, -0.047271728515625, 0.09326171875, 0.014556884765625, 0.019378662109375, -0.06298828125, -0.0203857421875, -0.01465606689453125, -0.0269012451171875, -0.017181396484375, -0.016937255859375, 0.00799560546875, 0.01401519775390625, 0.01003265380859375, -0.006267547607421875, 0.0018873214721679688, 0.00955963134765625, -0.0151824951171875, -0.0219573974609375, -0.0013856887817382812, 0.043182373046875, -0.0187530517578125, 0.01181793212890625, 0.049041748046875, 0.0190887451171875, 0.00708770751953125, -0.0262298583984375, -0.01297760009765625, -0.0030727386474609375, 0.00811004638671875, 0.00032520294189453125, -0.037841796875, -0.032379150390625, 0.0211944580078125, -0.01947021484375, 0.035888671875, 0.01219940185546875, -0.005619049072265625, 0.01090240478515625, 0.018646240234375, -0.038330078125, 0.046722412109375, -0.017822265625, 0.00862884521484375, 0.056732177734375, 0.06390380859375, 0.0012521743774414062, 0.1419677734375, -0.06072998046875, -0.01885986328125, -0.076171875, 0.03790283203125, 0.0261688232421875, 0.0187835693359375, -0.0282135009765625, -0.015869140625, -0.0430908203125, -0.054718017578125, -0.0007691383361816406, 0.027679443359375, 0.059173583984375, 0.00421905517578125, 0.00847625732421875, -0.009307861328125, 0.0142974853515625, -0.0084686279296875, 0.002685546875, 0.0244598388671875, -0.02911376953125, 0.032440185546875, -0.0091552734375, -0.032379150390625, -0.0269317626953125, 0.0845947265625, -0.0455322265625, -0.0241851806640625, 0.04425048828125, 0.03363037109375, 0.0716552734375, -0.0221710205078125, 0.0298919677734375, 0.005474090576171875, 0.054168701171875, 0.005374908447265625, 0.008087158203125, 0.020721435546875, -0.0546875, -0.0272216796875, -0.032196044921875, -0.005573272705078125, 0.0035037994384765625, 0.04779052734375, 0.038177490234375, -0.0113983154296875, 0.00647735595703125, -0.0511474609375, 0.033905029296875, -0.0272064208984375, 0.039520263671875, 0.01009368896484375, 0.0167083740234375, 0.0101470947265625, 0.03955078125, -0.02911376953125, -0.052001953125, -0.03948974609375, 0.02935791015625, -0.02825927734375, 0.012786865234375, -0.027313232421875, 0.0192108154296875, -0.0582275390625, -0.02923583984375, -0.051483154296875, 0.02166748046875, 0.01470184326171875, -0.007411956787109375, -0.00843048095703125, -0.02838134765625, 0.06060791015625, -0.023681640625, 0.07049560546875, 0.0306549072265625, 0.041412353515625, 0.0499267578125, -0.044097900390625, -0.03271484375, -0.048614501953125, -0.036163330078125, 0.0225982666015625, 0.058868408203125, 0.0261993408203125, 0.0196685791015625, 0.005077362060546875, 0.0266265869140625, 0.0369873046875, 0.004116058349609375, 0.0330810546875, -0.018157958984375, 0.004093170166015625, 0.025360107421875, 0.0016336441040039062, -0.01433563232421875, -0.007965087890625, -0.0943603515625, 0.0217437744140625, 0.03070068359375, 0.0169525146484375, 0.0426025390625, -0.018218994140625, 0.0238189697265625, -0.0239715576171875, 0.0006546974182128906, 0.02215576171875, -0.0386962890625, 0.026580810546875, -0.00873565673828125, 0.01442718505859375, 0.00872039794921875, -0.034759521484375, 0.006000518798828125, 0.0265960693359375, -0.0016927719116210938, -0.0148773193359375, 0.0130462646484375, 0.0648193359375, -0.0213165283203125, -0.0292510986328125, -0.0222015380859375, 0.004955291748046875, 0.01433563232421875, -0.0004227161407470703, 0.0032939910888671875, -0.03338623046875, -0.012939453125, 0.007175445556640625, -0.0372314453125, -0.0094451904296875, 0.02545166015625, 0.0015850067138671875, 0.023895263671875, 0.0207061767578125, 0.052276611328125, 0.0244598388671875, 0.029296875, 0.00917816162109375, 0.0190887451171875, 0.0601806640625, -0.04205322265625, 0.05633544921875, -0.024688720703125, 0.00882720947265625, 0.05120849609375, -0.00954437255859375, -0.004741668701171875, -0.01528167724609375, 0.046142578125, 0.008575439453125, -0.007381439208984375, -0.02386474609375, -0.038604736328125, -0.021392822265625, -0.054412841796875, 0.04974365234375, 0.038116455078125, 0.0121917724609375, -0.033905029296875, -0.01251983642578125, 0.04425048828125, -0.06591796875, -0.07916259765625, -0.007091522216796875, -0.09588623046875, 0.01126861572265625, -0.0108489990234375, -0.03216552734375, -0.005527496337890625, 0.01389312744140625, 0.0175933837890625, -0.059356689453125, 0.0058746337890625, -0.0225372314453125, -0.044342041015625, -0.05010986328125, 0.0024166107177734375, -0.0200042724609375, 0.00913238525390625, 0.00461578369140625, 0.0316162109375, 0.012359619140625, -0.0273590087890625, -0.0150299072265625, 0.038482666015625, -0.009124755859375, -0.042999267578125, 0.03131103515625, -0.0151214599609375, -0.040374755859375, 0.016448974609375, -0.02935791015625, 0.00952911376953125, -0.00632476806640625, -0.022247314453125, -0.0134124755859375, -0.0089874267578125, 0.0011386871337890625, 0.034393310546875, 0.003620147705078125, 0.007358551025390625, 0.045318603515625, -0.045867919921875, 0.007205963134765625, -0.00772857666015625, -0.01508331298828125, -0.0124053955078125, -0.001407623291015625, -0.031890869140625, -0.01012420654296875, -0.004253387451171875, -0.016937255859375, 0.0009646415710449219, 0.015411376953125, -0.034088134765625, 0.0428466796875, -0.009796142578125, -0.010955810546875, -0.01025390625, -0.0079193115234375, -0.0253448486328125, -0.01004791259765625, -0.033599853515625, 0.005855560302734375, -0.014801025390625, -0.006656646728515625, -0.040374755859375, 0.00844573974609375, 0.032684326171875, 0.005298614501953125, 0.03692626953125, -0.0251312255859375, -0.034271240234375, -0.0149688720703125, 0.04833984375, 0.016387939453125, -0.00763702392578125, 0.00799560546875, 0.0011959075927734375, -0.023101806640625, -0.031829833984375, -0.054107666015625, -0.001987457275390625, 0.018218994140625, 0.007717132568359375, 0.0152435302734375, -0.0030460357666015625, -0.0305938720703125, 0.050048828125, -0.03350830078125, -0.00025725364685058594, 0.0404052734375, -0.015655517578125, 0.00846099853515625, -0.00864410400390625, 0.0010833740234375, -0.030487060546875, -0.0231781005859375, -0.01291656494140625, -0.1259765625, -0.03173828125, -0.002330780029296875, 0.09527587890625, 0.0048065185546875, -0.061248779296875, -0.032470703125, 0.05914306640625, 0.00011080503463745117, 0.031494140625, -0.0011005401611328125, -0.018707275390625, 0.03973388671875, 0.043853759765625, 0.0247344970703125, 0.01849365234375, -0.00099945068359375, 0.001308441162109375, 0.006572723388671875, 0.05029296875, -0.046630859375, 0.0057525634765625, -0.057525634765625, -0.001216888427734375, -0.00444793701171875, -0.017669677734375, 0.00899505615234375, 0.04266357421875, -0.0117340087890625, 0.016510009765625, -0.04815673828125, -0.037353515625, -0.004566192626953125, 0.0167236328125, 0.002361297607421875, 0.00002562999725341797, 0.0050048828125, 0.0231170654296875, -0.0135955810546875, -0.0249176025390625, 0.0157470703125, 0.02606201171875, -0.0119476318359375, 0.054595947265625, 0.014251708984375, -0.0294036865234375, 0.06939697265625, -0.0035228729248046875, 0.04595947265625, 0.0196685791015625, 0.0537109375, 0.01387786865234375, -0.0173187255859375, 0.05377197265625, 0.045989990234375, -0.12310791015625, 0.00554656982421875, -0.0170745849609375, 0.046661376953125, 0.01096343994140625, -0.02862548828125, -0.01346588134765625, -0.0235443115234375, 0.00965118408203125, -0.035247802734375, 0.004573822021484375, -0.048675537109375, 0.10162353515625, 0.031280517578125, 0.0035037994384765625, 0.06744384765625, 0.0631103515625, 0.00958251953125, 0.00972747802734375, 0.05096435546875, -0.020172119140625, 0.04296875, 0.0252838134765625, 0.0051116943359375, -0.0161285400390625, -0.0016040802001953125, 0.00476837158203125, 0.031890869140625, -0.02886962890625, -0.0196990966796875, 0.0022602081298828125, -0.01248931884765625, -0.01410675048828125, 0.01140594482421875, 0.0288848876953125, 0.00574493408203125, 0.01215362548828125, -0.0196990966796875, -0.0166778564453125, -0.005786895751953125, -0.02825927734375, 0.05975341796875, 0.0257568359375, 0.00681304931640625, -0.019195556640625, 0.0960693359375, 0.031036376953125, 0.019256591796875, -0.017669677734375, 0.054962158203125, -0.0198974609375, 0.07568359375, 0.02197265625, -0.04168701171875, 0.0145111083984375, 0.044769287109375, -0.052154541015625, -0.04144287109375, -0.01535797119140625, -0.000002384185791015625, 0.028564453125, -0.042999267578125, -0.0193328857421875, 0.056610107421875, -0.00714111328125, -0.025909423828125, -0.00948333740234375, -0.000008225440979003906, -0.01763916015625, -0.0195465087890625, 0.019012451171875, 0.022552490234375, 0.040802001953125, 0.00457763671875, 0.00855255126953125, 0.0203857421875, 0.039093017578125, 0.040496826171875, -0.0369873046875, 0.02374267578125, 0.0242462158203125, 0.0170440673828125, -0.02069091796875, -0.0374755859375, 0.0006108283996582031, 0.0166015625, -0.0120697021484375, -0.01262664794921875, 0.04241943359375, -0.0599365234375, 0.018646240234375, -0.0165863037109375, 0.0304412841796875, -0.045928955078125, 0.0557861328125, -0.051513671875, -0.0291290283203125, -0.008636474609375, -0.00905609130859375, -0.0335693359375, -0.03875732421875, -0.018280029296875, -0.04803466796875, -0.0565185546875, -0.021697998046875, -0.031494140625, -0.011016845703125, -0.0054779052734375, 0.0277557373046875, -0.02435302734375, 0.060943603515625, 0.0175018310546875, 0.01139068603515625, -0.0028362274169921875, 0.044921875, -0.00017082691192626953, 0.04302978515625, 0.0038433074951171875, 0.0009012222290039062, -0.027252197265625, -0.0142822265625, -0.02862548828125, -0.032318115234375, -0.0246124267578125, 0.05401611328125, -0.0150909423828125, 0.003284454345703125, 0.0181732177734375, -0.0004515647888183594, 0.03643798828125, -0.01666259765625, -0.01026153564453125, -0.01548004150390625, 0.0258636474609375, -0.00878143310546875, 0.059173583984375, 0.00467681884765625, -0.033233642578125, 0.0008177757263183594, -0.0015878677368164062, -0.0224456787109375, 0.0389404296875, -0.0303497314453125, 0.0145111083984375, 0.0274658203125, 0.031585693359375, 0.0029430389404296875, 0.03875732421875, -0.02117919921875, 0.032806396484375, 0.035491943359375, 0.0158538818359375, 0.010711669921875, 0.0313720703125, -0.01523590087890625, -0.025421142578125, 0.0262908935546875, 0.0005574226379394531, -0.0242156982421875, -0.0183258056640625, -0.0214691162109375, 0.0010890960693359375, -0.02001953125, 0.038421630859375, 0.0006270408630371094, 0.00621795654296875, 0.00934600830078125, -0.04705810546875, -0.00667572021484375, -0.04052734375, 0.01015472412109375, -0.00525665283203125, 0.072998046875, 0.0192108154296875, -0.01971435546875, 0.03570556640625, -0.0186004638671875, 0.01898193359375, -0.00441741943359375, 0.049102783203125, 0.017181396484375, -0.07501220703125, 0.009613037109375, 0.052398681640625, -0.0024585723876953125, 0.0035228729248046875, 0.0176544189453125, -0.0091400146484375, -0.029388427734375, -0.024932861328125, 0.0214080810546875, -0.002872467041015625, -0.0228118896484375, 0.025787353515625, 0.0095062255859375, -0.01544952392578125, 0.047149658203125, -0.03338623046875, 0.04833984375, -0.00006777048110961914, 0.0145721435546875, 0.01297760009765625, -0.011474609375, 0.016387939453125, 0.00917816162109375, -0.01129913330078125, 0.01361846923828125, 0.00423431396484375, -0.0144195556640625, -0.0007524490356445312, -0.013214111328125, 0.0478515625, -0.041412353515625, -0.011444091796875, 0.0172882080078125, 0.0023708343505859375, -0.00460052490234375, 0.01270294189453125, -0.01355743408203125, -0.02166748046875, -0.00013816356658935547, 0.0080413818359375, -0.01483154296875, -0.020477294921875, -0.0043182373046875, -0.058929443359375, 0.032257080078125, 0.00949859619140625, 0.02838134765625, 0.016937255859375, -0.004566192626953125, -0.03570556640625, -0.0245819091796875, -0.015777587890625, 0.023223876953125, 0.0005984306335449219, 0.03564453125, -0.058258056640625, -0.01776123046875, 0.0023174285888671875, 0.060028076171875, -0.0015897750854492188, -0.01204681396484375, -0.01544952392578125, 0.0031757354736328125, 0.053466796875, 0.08990478515625, 0.058563232421875, -0.01384735107421875, -0.0218505859375, 0.006542205810546875, 0.01070404052734375, -0.0112762451171875, 0.030303955078125, -0.0104827880859375, -0.06353759765625, -0.0175628662109375, 0.0379638671875, 0.0309295654296875, 0.04327392578125, 0.050445556640625, 0.0034236907958984375, 0.01727294921875, 0.0262908935546875, -0.0267333984375, 0.0246124267578125, 0.022430419921875, 0.031829833984375, -0.06463623046875, -0.01123809814453125, -0.0269317626953125, 0.050872802734375, -0.0143585205078125, -0.039031982421875, -0.004428863525390625, 0.0018148422241210938, -0.0347900390625, -0.0296630859375, -0.025970458984375, 0.00957489013671875, -0.0033435821533203125, 0.0460205078125, 0.009063720703125, 0.0196380615234375, -0.038543701171875, -0.049102783203125, 0.00347900390625, 0.04205322265625, -0.013946533203125, -0.02593994140625, 0.0170745849609375, 0.00077056884765625, -0.01284027099609375, -0.03485107421875, -0.033233642578125, -0.03778076171875, 0.006465911865234375, -0.039276123046875, -0.0025463104248046875, 0.0170440673828125, 0.060699462890625, -0.00911712646484375, -0.019439697265625, -0.04315185546875, -0.03338623046875, -0.03289794921875, 0.011810302734375, 0.031341552734375, 0.032928466796875, 0.003322601318359375, 0.0343017578125, -0.0227203369140625, 0.0045013427734375, 0.01024627685546875, 0.03302001953125, 0.00489044189453125, -0.00937652587890625, -0.0283660888671875, -0.0517578125, 0.01004791259765625, 0.0374755859375, 0.0167388916015625, 0.048431396484375, 0.045196533203125, 0.029449462890625, -0.006328582763671875, 0.0119781494140625, 0.04730224609375, -0.011810302734375, -0.0289459228515625, -0.045257568359375, -0.00821685791015625, 0.00473785400390625, 0.002849578857421875, 0.03271484375, -0.0162200927734375, 0.0216522216796875, -0.050262451171875, 0.04913330078125, -0.00995635986328125, -0.0191497802734375, 0.049102783203125, 0.0008616447448730469, 0.0697021484375, -0.0019931793212890625, -0.03997802734375, -0.01080322265625, -0.0262603759765625, -0.043731689453125, 0.0129547119140625, 0.0328369140625, 0.0092010498046875, 0.005176544189453125, -0.018524169921875, -0.0207061767578125, -0.0012502670288085938, -0.003936767578125, 0.0282440185546875, -0.0196685791015625, -0.00498199462890625, -0.0133056640625, -0.0645751953125, -0.04254150390625, -0.04443359375, 0.031402587890625, 0.006145477294921875, 0.08038330078125, -0.0234222412109375, 0.007030487060546875, -0.01422882080078125, -0.0247802734375, 0.0164794921875, -0.021240234375, 0.0022716522216796875, -0.00820159912109375, -0.014251708984375, -0.0033206939697265625, 0.025390625, 0.043426513671875, 0.0107421875, -0.002002716064453125, 0.0273590087890625, -0.055328369140625, 0.009307861328125, 0.0088043212890625, 0.004451751708984375, -0.04327392578125, -0.06756591796875, -0.037322998046875, 0.019500732421875, -0.0214996337890625, -0.0218505859375, -0.032501220703125, -0.004505157470703125, -0.0045318603515625, -0.00908660888671875, 0.03741455078125, -0.00157928466796875, 0.0257568359375, 0.011505126953125, -0.0360107421875, -0.0081787109375, -0.0013227462768554688, -0.0158538818359375, 0.00978851318359375, 0.0082244873046875, -0.0175933837890625, 0.032928466796875, -0.0823974609375, 0.00682830810546875, 0.059356689453125, 0.055145263671875, -0.0167999267578125, 0.00737762451171875, 0.03179931640625, -0.01702880859375, 0.0009336471557617188, 0.0030803680419921875, -0.0290679931640625, -0.01250457763671875, 0.01143646240234375, 0.01387786865234375, 0.003742218017578125, -0.0264129638671875, -0.056121826171875, -0.035980224609375, 0.0220794677734375, 0.0232086181640625, -0.039276123046875, -0.0038318634033203125, 0.041595458984375, -0.003292083740234375, 0.015625, 0.0225067138671875, -0.0186614990234375, 0.01387786865234375, -0.0006623268127441406, -0.03582763671875, -0.0196075439453125, 0.04461669921875, -0.00749969482421875, -0.0186767578125, 0.002559661865234375, -0.0035190582275390625, -0.004486083984375, 0.0175628662109375, 0.01319122314453125, 0.061187744140625, 0.00347137451171875, -0.003902435302734375, -0.0080108642578125, 0.04937744140625, -0.03173828125, -0.07501220703125, 0.003330230712890625, 0.00026702880859375, 0.0149383544921875, 0.036865234375, -0.0224609375, -0.00047707557678222656, -0.047393798828125, -0.044647216796875, 0.045623779296875, 0.031005859375, -0.034576416015625, -0.054595947265625, -0.0118560791015625, 0.00035881996154785156, 0.0095367431640625, -0.0194091796875, -0.01407623291015625, -0.039886474609375, 0.0465087890625, -0.0061187744140625, 0.022308349609375, 0.034698486328125, -0.00566864013671875, -0.028167724609375, -0.0236968994140625, -0.03826904296875, -0.010772705078125, -0.0207366943359375, 0.007724761962890625, 0.0030651092529296875, 0.01617431640625, -0.02020263671875, -0.004314422607421875, 0.015228271484375, 0.0074615478515625, 0.0117950439453125, -0.07080078125, -0.0112152099609375, -0.032806396484375, 0.0283660888671875, -0.008056640625, 0.0034961700439453125, 0.0021533966064453125, -0.0230560302734375, -0.0572509765625, -0.0079345703125, -0.038818359375, 0.005870819091796875, -0.06884765625, 0.00019443035125732422, -0.0123443603515625, -0.0014715194702148438, -0.016754150390625, -0.03131103515625, -0.02728271484375, -0.0251922607421875, -0.03253173828125, 0.0006761550903320312, -0.005397796630859375, -0.0195159912109375, 0.1044921875, -0.05194091796875, 0.0015459060668945312, 0.046478271484375, 0.00743865966796875, 0.05780029296875, 0.049163818359375, 0.032623291015625, 0.0205535888671875, -0.044677734375, -0.0100250244140625, 0.0149688720703125, -0.0237884521484375, -0.01209259033203125, -0.023162841796875, -0.004474639892578125, -0.00585174560546875, -0.01049041748046875, -0.0011072158813476562, 0.05621337890625, -0.003108978271484375, -0.0119476318359375, 0.0185089111328125, -0.055999755859375, 0.0262451171875, -0.02130126953125, -0.00670623779296875, -0.00275421142578125, 0.047027587890625, 0.06488037109375, 0.0008139610290527344, -0.00043010711669921875, 0.0236358642578125, -0.0115814208984375, -0.0186309814453125, -0.0084075927734375, -0.056488037109375, 0.0166473388671875, -0.00948333740234375 ]
8e580ee2b1c9e035e2a75cbbf72ea40c061916be
Wordpress Stackexchange Q: get_posts not honoring post_status I have a custom post type 'license' with custom post statuses 'active,inactive,cancel,expire'. However when I run a get_posts query to get only posts with active status it returns all the posts irrespective of the status. $active_licenses = get_posts( array( 'post_type' => 'license', 'post_status' => 'active', 'posts_per_page' => -1, 'orderby' => 'ID', 'order' => 'DESC', ) ); I am unable to figure out what am I doing wrong. A: I would try use 'perm' => 'readable' in your query arguments to make sure WP_Query runs a permissions check.
Q: get_posts not honoring post_status I have a custom post type 'license' with custom post statuses 'active,inactive,cancel,expire'. However when I run a get_posts query to get only posts with active status it returns all the posts irrespective of the status. $active_licenses = get_posts( array( 'post_type' => 'license', 'post_status' => 'active', 'posts_per_page' => -1, 'orderby' => 'ID', 'order' => 'DESC', ) ); I am unable to figure out what am I doing wrong. A: I would try use 'perm' => 'readable' in your query arguments to make sure WP_Query runs a permissions check. A: You need to register the custom post status. Adding the following function (adapted to your custom status) to functions.php solved this problem for me: /** * Register custom post status: license */ function register_custom_post_status_license() { $custom_status = 'license'; $count_label = 'License <span class="count">(%s)</span>'; register_post_status( $custom_status, array( 'label' => _x( 'License', 'post' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( $count_label, $count_label ), ) ); } add_action( 'init', 'register_custom_post_status_license' );
wordpress
{ "language": "en", "length": 170, "provenance": "stackexchange_00019.jsonl.gz:444543", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142207" }
[ 0.09429931640625, 0.016693115234375, 0.0196990966796875, -0.0172119140625, 0.041595458984375, -0.045745849609375, 0.08135986328125, -0.0260467529296875, 0.04437255859375, 0.0164337158203125, -0.03594970703125, -0.0185089111328125, -0.0200653076171875, -0.0253143310546875, -0.029754638671875, -0.0258941650390625, 0.03961181640625, 0.00421142578125, 0.036102294921875, -0.00826263427734375, 0.00922393798828125, 0.007114410400390625, 0.01053619384765625, 0.036468505859375, 0.032928466796875, -0.054779052734375, 0.060333251953125, -0.0180511474609375, 0.028656005859375, -0.0164642333984375, 0.018768310546875, -0.005466461181640625, -0.0017843246459960938, 0.0201568603515625, 0.028594970703125, -0.004322052001953125, 0.0277557373046875, 0.0036163330078125, 0.017852783203125, 0.0294189453125, 0.0016994476318359375, -0.00001430511474609375, 0.044036865234375, -0.022674560546875, 0.002246856689453125, -0.0174102783203125, 0.009429931640625, -0.025146484375, 0.038787841796875, 0.02764892578125, 0.01110076904296875, -0.025970458984375, 0.0239410400390625, -0.0018215179443359375, -0.04248046875, -0.046875, 0.01145172119140625, -0.01015472412109375, 0.03631591796875, -0.0322265625, -0.037689208984375, -0.021881103515625, 0.0419921875, -0.011077880859375, -0.0022335052490234375, -0.00797271728515625, 0.05322265625, -0.0021209716796875, -0.08563232421875, -0.00878143310546875, 0.06011962890625, -0.036163330078125, 0.007076263427734375, -0.007579803466796875, -0.03240966796875, -0.0221405029296875, -0.0024890899658203125, -0.0443115234375, 0.0201263427734375, -0.00006031990051269531, 0.01654052734375, 0.01611328125, -0.0657958984375, 0.0341796875, -0.031158447265625, 0.03265380859375, -0.0129547119140625, -0.032196044921875, 0.0071868896484375, -0.007221221923828125, -0.001407623291015625, -0.055267333984375, 0.0265350341796875, 0.0273284912109375, -0.005611419677734375, -0.027069091796875, 0.032806396484375, 0.054473876953125, -0.0154266357421875, -0.01499176025390625, -0.0018520355224609375, -0.02899169921875, -0.00665283203125, -0.0195159912109375, 0.0233001708984375, 0.0516357421875, 0.003936767578125, 0.0181884765625, 0.0438232421875, 0.017547607421875, 0.02618408203125, 0.0223236083984375, 0.0106658935546875, 0.027313232421875, -0.05340576171875, -0.0142669677734375, -0.0247955322265625, -0.0181732177734375, -0.0235595703125, -0.01490020751953125, 0.01593017578125, 0.034759521484375, 0.026947021484375, -0.034881591796875, -0.0179443359375, -0.005340576171875, -0.0214691162109375, -0.0623779296875, -0.01519012451171875, 0.06304931640625, -0.0176849365234375, 0.0030231475830078125, 0.024169921875, -0.0018711090087890625, -0.01605224609375, -0.0284881591796875, -0.0243988037109375, -0.01067352294921875, -0.01206207275390625, 0.0167999267578125, -0.006504058837890625, -0.05938720703125, 0.01323699951171875, 0.0078277587890625, 0.03314208984375, 0.03863525390625, 0.0283203125, -0.007061004638671875, 0.01201629638671875, -0.062744140625, 0.0275421142578125, -0.00905609130859375, 0.007537841796875, -0.01519012451171875, 0.007740020751953125, -0.0310821533203125, -0.0011262893676757812, -0.02044677734375, 0.023193359375, -0.014129638671875, 0.078857421875, 0.006008148193359375, -0.0178070068359375, -0.02484130859375, -0.048583984375, -0.0289154052734375, -0.052703857421875, -0.01959228515625, 0.01184844970703125, 0.04205322265625, 0.033447265625, -0.035797119140625, -0.0279998779296875, -0.0030727386474609375, 0.0010576248168945312, 0.0053558349609375, 0.01519775390625, 0.005817413330078125, 0.049285888671875, -0.0232391357421875, -0.04913330078125, -0.0265350341796875, 0.07568359375, -0.034515380859375, -0.042236328125, -0.00572967529296875, 0.025054931640625, 0.0282135009765625, -0.016326904296875, 0.004787445068359375, 0.05963134765625, 0.03424072265625, -0.0231170654296875, 0.03350830078125, 0.01056671142578125, -0.044830322265625, -0.0172271728515625, -0.037506103515625, -0.004566192626953125, 0.015594482421875, 0.0292510986328125, 0.001522064208984375, -0.01399993896484375, -0.0163116455078125, -0.0447998046875, -0.0252838134765625, -0.01507568359375, 0.00942230224609375, -0.0158843994140625, 0.0164947509765625, 0.0220489501953125, 0.0175018310546875, -0.070556640625, 0.07562255859375, -0.0022373199462890625, -0.014068603515625, 0.0086822509765625, 0.005130767822265625, -0.0153656005859375, -0.0181732177734375, -0.00453948974609375, -0.040130615234375, -0.0267181396484375, 0.058807373046875, 0.0222320556640625, -0.0307159423828125, 0.0011692047119140625, -0.0173187255859375, 0.0183258056640625, -0.004001617431640625, 0.010284423828125, 0.031280517578125, 0.031463623046875, 0.03350830078125, -0.03289794921875, -0.005710601806640625, -0.001697540283203125, -0.053741455078125, 0.0130615234375, 0.051910400390625, 0.0284576416015625, 0.01100921630859375, 0.005840301513671875, 0.022125244140625, 0.052215576171875, -0.037017822265625, 0.0022144317626953125, 0.00806427001953125, 0.01180267333984375, 0.0631103515625, -0.021881103515625, 0.01064300537109375, 0.019317626953125, -0.037841796875, -0.0186767578125, 0.062286376953125, -0.01146697998046875, -0.0153656005859375, -0.002239227294921875, 0.007801055908203125, 0.006256103515625, -0.07427978515625, -0.0457763671875, -0.0222320556640625, -0.0008435249328613281, 0.0196380615234375, 0.014434814453125, 0.01947021484375, -0.033905029296875, 0.01290130615234375, 0.0108642578125, 0.004199981689453125, 0.01061248779296875, 0.0465087890625, -0.0300445556640625, 0.0052032470703125, -0.018798828125, -0.01074981689453125, -0.01245880126953125, 0.0186920166015625, -0.00789642333984375, -0.0244598388671875, -0.048583984375, -0.005588531494140625, 0.038299560546875, -0.0207366943359375, 0.0048370361328125, 0.0157623291015625, -0.007205963134765625, -0.031402587890625, 0.017425537109375, 0.018646240234375, -0.00801849365234375, 0.0108184814453125, 0.0261077880859375, -0.028594970703125, 0.043853759765625, -0.0645751953125, 0.04278564453125, -0.054656982421875, 0.0404052734375, 0.061614990234375, -0.0017375946044921875, -0.0013980865478515625, -0.00617218017578125, 0.0235748291015625, 0.01226806640625, 0.0037212371826171875, -0.0168304443359375, -0.018218994140625, -0.03228759765625, -0.0139312744140625, 0.023712158203125, 0.0794677734375, -0.017303466796875, -0.056243896484375, 0.007511138916015625, 0.0474853515625, -0.052886962890625, -0.06353759765625, 0.01253509521484375, -0.012725830078125, 0.03582763671875, -0.025543212890625, 0.01473236083984375, -0.0225372314453125, -0.0203094482421875, 0.00504302978515625, -0.0290374755859375, 0.015960693359375, -0.0229644775390625, -0.039276123046875, -0.067626953125, -0.01085662841796875, -0.00445556640625, 0.039703369140625, 0.0106201171875, 0.107666015625, 0.02593994140625, -0.074951171875, 0.01392364501953125, 0.01361083984375, -0.037872314453125, 0.046630859375, -0.024932861328125, 0.04180908203125, -0.003391265869140625, 0.0177001953125, -0.025054931640625, 0.0082550048828125, -0.01213836669921875, -0.0247039794921875, 0.0016803741455078125, 0.01165771484375, 0.03057861328125, -0.0308380126953125, -0.01617431640625, 0.049407958984375, 0.0308685302734375, -0.00682830810546875, -0.0230865478515625, -0.0120849609375, -0.0286865234375, 0.021728515625, 0.015869140625, 0.008575439453125, -0.01027679443359375, 0.0308074951171875, 0.028106689453125, 0.0352783203125, -0.00284576416015625, 0.004150390625, 0.03546142578125, 0.01201629638671875, 0.023529052734375, -0.020355224609375, -0.0035839080810546875, -0.00754547119140625, 0.034027099609375, 0.002964019775390625, 0.0212860107421875, -0.023834228515625, 0.025177001953125, -0.07025146484375, -0.059356689453125, 0.03338623046875, -0.03033447265625, 0.0101776123046875, -0.027740478515625, -0.026580810546875, -0.0047760009765625, 0.100830078125, -0.01529693603515625, -0.0218658447265625, 0.020782470703125, 0.0153350830078125, -0.018402099609375, -0.0087127685546875, -0.0164642333984375, -0.020050048828125, -0.0364990234375, 0.00351715087890625, -0.019317626953125, -0.0215301513671875, -0.0211181640625, -0.01715087890625, -0.039398193359375, -0.0264892578125, 0.044189453125, -0.06085205078125, 0.02703857421875, -0.009307861328125, 0.01146697998046875, -0.05377197265625, -0.0217742919921875, -0.03851318359375, -0.08465576171875, -0.00232696533203125, -0.003856658935546875, 0.0211334228515625, 0.005817413330078125, -0.0011072158813476562, -0.00830841064453125, 0.0306243896484375, 0.0025386810302734375, 0.021148681640625, -0.0228271484375, 0.0027065277099609375, 0.0008296966552734375, -0.0162811279296875, -0.030731201171875, -0.0145416259765625, -0.03216552734375, -0.03680419921875, -0.0003077983856201172, -0.024932861328125, -0.034637451171875, -0.0369873046875, -0.0268707275390625, -0.0006022453308105469, -0.06585693359375, 0.01155853271484375, 0.0163726806640625, 0.037322998046875, -0.03173828125, 0.0022678375244140625, -0.017913818359375, -0.0716552734375, 0.0638427734375, 0.00911712646484375, -0.00806427001953125, -0.0144500732421875, 0.08782958984375, 0.01248931884765625, -0.03460693359375, -0.04571533203125, -0.0149383544921875, 0.025299072265625, -0.04656982421875, 0.043365478515625, 0.045745849609375, -0.0160369873046875, 0.03448486328125, -0.006855010986328125, -0.03948974609375, 0.023345947265625, 0.04248046875, 0.0085906982421875, -0.00797271728515625, -0.0234222412109375, -0.04486083984375, 0.0421142578125, 0.0011653900146484375, 0.0030269622802734375, -0.020355224609375, 0.031463623046875, 0.0308380126953125, -0.0345458984375, 0.033599853515625, -0.006885528564453125, -0.01971435546875, 0.0128326416015625, -0.01538848876953125, 0.0029048919677734375, -0.00519561767578125, 0.00958251953125, -0.0225982666015625, -0.029693603515625, 0.023040771484375, -0.0165557861328125, 0.0284576416015625, -0.032196044921875, 0.040924072265625, 0.015899658203125, 0.0124053955078125, -0.0230712890625, -0.003513336181640625, 0.0234832763671875, -0.0211944580078125, -0.10186767578125, 0.0404052734375, 0.008026123046875, 0.0831298828125, 0.062225341796875, -0.0308837890625, 0.003444671630859375, 0.03741455078125, -0.00957489013671875, 0.00679779052734375, 0.0206451416015625, 0.033721923828125, -0.0177764892578125, 0.0187530517578125, 0.022247314453125, -0.00606536865234375, 0.00936126708984375, 0.06103515625, 0.0201568603515625, 0.0247039794921875, -0.0223388671875, 0.030426025390625, 0.0080718994140625, 0.046630859375, 0.026458740234375, -0.0104827880859375, -0.0167083740234375, 0.039154052734375, -0.03875732421875, -0.0196685791015625, 0.01348114013671875, 0.006443023681640625, 0.0199127197265625, 0.0325927734375, 0.0077667236328125, 0.011871337890625, -0.0133209228515625, -0.04681396484375, 0.040679931640625, 0.06610107421875, -0.0145111083984375, -0.04754638671875, -0.0280914306640625, 0.0192108154296875, 0.039398193359375, -0.04461669921875, 0.037506103515625, -0.048187255859375, 0.0304412841796875, 0.0048370361328125, -0.042694091796875, 0.01355743408203125, 0.0259552001953125, 0.0088653564453125, -0.037109375, -0.029083251953125, 0.00998687744140625, 0.0129241943359375, -0.0063629150390625, -0.00414276123046875, 0.0090179443359375, 0.008575439453125, 0.0226287841796875, -0.0531005859375, -0.01486968994140625, -0.041168212890625, -0.01445770263671875, 0.0958251953125, 0.045318603515625, 0.0021915435791015625, 0.00659942626953125, -0.038482666015625, -0.0290985107421875, -0.03741455078125, -0.0301513671875, -0.0419921875, -0.01079559326171875, 0.046234130859375, 0.03619384765625, 0.0031108856201171875, -0.06915283203125, -0.0237274169921875, -0.015716552734375, 0.037109375, 0.046417236328125, 0.01410675048828125, 0.07025146484375, -0.024993896484375, 0.06427001953125, 0.0251617431640625, 0.031280517578125, -0.04962158203125, -0.0209197998046875, -0.031768798828125, -0.055206298828125, -0.004070281982421875, 0.0263671875, -0.01558685302734375, 0.059600830078125, 0.055633544921875, 0.0092926025390625, 0.02764892578125, -0.005218505859375, 0.01201629638671875, -0.022705078125, -0.040252685546875, -0.0221099853515625, 0.0056610107421875, 0.01413726806640625, -0.046234130859375, 0.0052032470703125, 0.00052642822265625, 0.0173187255859375, 0.007045745849609375, -0.0428466796875, -0.0052490234375, 0.04510498046875, 0.0045318603515625, -0.0223846435546875, 0.01094818115234375, 0.005828857421875, 0.0097808837890625, -0.006610870361328125, 0.021697998046875, 0.0191497802734375, -0.01222991943359375, 0.0135345458984375, 0.021881103515625, 0.054290771484375, -0.019744873046875, -0.0175018310546875, 0.0170745849609375, -0.0279388427734375, 0.014984130859375, 0.029815673828125, 0.0482177734375, -0.08197021484375, 0.0257568359375, 0.01158905029296875, -0.0089874267578125, 0.0083160400390625, 0.0063018798828125, 0.003749847412109375, -0.037506103515625, 0.00618743896484375, -0.0211029052734375, -0.0159759521484375, -0.02044677734375, -0.02435302734375, 0.006107330322265625, -0.0171356201171875, 0.0239410400390625, -0.01296234130859375, -0.032012939453125, -0.002399444580078125, 0.01611328125, -0.0177764892578125, 0.0175018310546875, 0.0044708251953125, -0.0223541259765625, -0.0025730133056640625, -0.049774169921875, -0.006900787353515625, -0.049346923828125, -0.0309906005859375, 0.016754150390625, 0.0267181396484375, 0.01351165771484375, 0.056396484375, 0.0012712478637695312, -0.004367828369140625, 0.0401611328125, -0.061492919921875, -0.09295654296875, -0.055389404296875, 0.0014066696166992188, 0.056243896484375, -0.001964569091796875, 0.051544189453125, 0.027130126953125, -0.052154541015625, -0.02197265625, -0.04608154296875, 0.08294677734375, -0.05865478515625, 0.006816864013671875, 0.03857421875, 0.0202178955078125, -0.0199432373046875, 0.004398345947265625, 0.031707763671875, -0.0203094482421875, 0.021636962890625, -0.0013790130615234375, 0.0005249977111816406, -0.0226898193359375, -0.0161590576171875, -0.032806396484375, 0.052398681640625, 0.004550933837890625, 0.00492095947265625, 0.033935546875, 0.01335906982421875, -0.0301513671875, -0.00015223026275634766, -0.05206298828125, 0.03704833984375, -0.021881103515625, 0.01153564453125, -0.05596923828125, 0.0092926025390625, -0.018524169921875, -0.0182342529296875, 0.04364013671875, 0.0184478759765625, -0.08978271484375, -0.02996826171875, 0.003223419189453125, 0.01311492919921875, 0.0036945343017578125, 0.07403564453125, 0.01165008544921875, 0.1043701171875, 0.037689208984375, -0.0645751953125, 0.041229248046875, -0.040008544921875, -0.05096435546875, 0.028594970703125, 0.005794525146484375, 0.01172637939453125, -0.003704071044921875, -0.0265045166015625, -0.038055419921875, -0.0012140274047851562, 0.0255126953125, -0.0185089111328125, 0.0124053955078125, 0.01763916015625, 0.050079345703125, -0.019012451171875, -0.00460052490234375, -0.0188446044921875, 0.032012939453125, 0.009857177734375, 0.02935791015625, -0.0087432861328125, 0.0117950439453125, 0.04742431640625, -0.043853759765625, 0.0016078948974609375, 0.004924774169921875, -0.0222625732421875, 0.028564453125, 0.0258026123046875, 0.034637451171875, -0.02191162109375, 0.034027099609375, 0.0173492431640625, 0.036163330078125, -0.040008544921875, -0.041015625, 0.01172637939453125, 0.00379180908203125, -0.00103759765625, 0.005260467529296875, 0.014892578125, -0.01190948486328125, 0.0164642333984375, -0.07000732421875, 0.0008096694946289062, 0.03228759765625, 0.0258941650390625, -0.030914306640625, -0.05706787109375, -0.00867462158203125, -0.017547607421875, -0.0238037109375, -0.018280029296875, 0.01361083984375, 0.01427459716796875, 0.025054931640625, -0.001583099365234375, 0.00920867919921875, 0.0036983489990234375, 0.0075531005859375, 0.044342041015625, -0.0252685546875, -0.0006470680236816406, -0.0615234375, -0.095458984375, -0.01035308837890625, 0.057098388671875, 0.042083740234375, -0.0404052734375, 0.0173187255859375, 0.026580810546875, -0.01513671875, 0.01580810546875, 0.06744384765625, 0.0113067626953125, -0.044403076171875, -0.0262298583984375, -0.01194000244140625, 0.047393798828125, 0.01233673095703125, 0.039581298828125, -0.006618499755859375, 0.04193115234375, 0.0255126953125, 0.0165252685546875, 0.0224609375, 0.00007528066635131836, 0.0125885009765625, 0.0173797607421875, 0.001708984375, 0.034912109375, -0.05120849609375, -0.01459503173828125, -0.0269927978515625, 0.0015201568603515625, 0.0013704299926757812, 0.02880859375, 0.0182952880859375, 0.006622314453125, -0.020751953125, -0.010986328125, 0.01531219482421875, 0.0156402587890625, 0.0027713775634765625, 0.07110595703125, 0.017608642578125, 0.01959228515625, -0.033538818359375, -0.00855255126953125, 0.0173492431640625, 0.0011234283447265625, 0.00582122802734375, -0.03802490234375, 0.04656982421875, 0.00894927978515625, -0.0008034706115722656, 0.037689208984375, -0.0411376953125, 0.00750732421875, -0.0015993118286132812, -0.029388427734375, 0.00506591796875, -0.0008754730224609375, 0.01497650146484375, 0.03497314453125, 0.0246734619140625, -0.0241851806640625, 0.00835418701171875, -0.0023097991943359375, 0.0135650634765625, -0.019073486328125, -0.0013408660888671875, -0.0241546630859375, -0.0149383544921875, -0.01239776611328125, -0.0202178955078125, 0.01099395751953125, 0.0171966552734375, 0.0213165283203125, 0.037750244140625, 0.01525115966796875, -0.04498291015625, 0.035919189453125, -0.07012939453125, 0.0743408203125, 0.042022705078125, -0.01224517822265625, 0.023956298828125, -0.00370025634765625, -0.01505279541015625, 0.01465606689453125, 0.0059051513671875, -0.00803375244140625, 0.005535125732421875, 0.038421630859375, -0.0104827880859375, -0.019500732421875, 0.045440673828125, 0.0005946159362792969, 0.02490234375, -0.02655029296875, 0.02239990234375, 0.00013709068298339844, -0.03216552734375, -0.015411376953125, -0.01102447509765625, -0.0187530517578125, -0.006557464599609375, 0.002483367919921875, -0.043426513671875, 0.019989013671875, -0.01007843017578125, 0.00704193115234375, -0.017303466796875, -0.00980377197265625, -0.0032749176025390625, -0.040557861328125, -0.00460052490234375, -0.019927978515625, 0.01641845703125, 0.0161895751953125, 0.03033447265625, -0.0304412841796875, 0.0186920166015625, 0.0148468017578125, -0.00640869140625, 0.0396728515625, -0.01049041748046875, 0.023529052734375, -0.01514434814453125, -0.062744140625, 0.004497528076171875, 0.003833770751953125, 0.03466796875, 0.02569580078125, -0.014739990234375, 0.0194244384765625, -0.0182037353515625, -0.030426025390625, -0.051361083984375, 0.036041259765625, -0.1064453125, -0.018157958984375, 0.00585174560546875, 0.0142974853515625, 0.041168212890625, 0.0012941360473632812, 0.0164794921875, 0.08074951171875, 0.00583648681640625, -0.00403594970703125, -0.048126220703125, 0.01751708984375, 0.029571533203125, -0.00926971435546875, -0.007114410400390625, -0.044921875, -0.06378173828125, -0.0131378173828125, -0.01183319091796875, 0.04901123046875, 0.007503509521484375, 0.0247344970703125, -0.033294677734375, -0.0015659332275390625, -0.0239410400390625, -0.0333251953125, 0.03350830078125, -0.0263671875, 0.0228424072265625, 0.02203369140625, -0.055389404296875, -0.050201416015625, -0.016326904296875, 0.0180816650390625, 0.00688934326171875, -0.031158447265625, -0.031005859375, -0.04522705078125, 0.0136871337890625, 0.0228424072265625, 0.0124664306640625, 0.00020372867584228516, 0.0100555419921875, -0.0199432373046875, -0.01116943359375, -0.033416748046875, 0.0155487060546875, -0.05731201171875, -0.0227203369140625, -0.0022068023681640625, -0.012451171875, -0.02459716796875, -0.042633056640625, -0.05291748046875, -0.01358795166015625, -0.03900146484375, 0.01763916015625, -0.007450103759765625, -0.04522705078125, 0.008087158203125, -0.01140594482421875, -0.058380126953125, 0.0196533203125, 0.018768310546875, -0.0400390625, 0.046783447265625, 0.0032405853271484375, -0.00942230224609375, -0.00884246826171875, -0.026824951171875, 0.0228729248046875, -0.0061492919921875, 0.04132080078125, -0.0165557861328125, -0.01200103759765625, 0.025238037109375, 0.01007080078125, 0.015533447265625, -0.0018644332885742188, 0.026092529296875, 0.0157318115234375, 0.0054473876953125, 0.0032215118408203125, 0.0684814453125, 0.0110626220703125, 0.03338623046875, 0.003753662109375, -0.024932861328125, 0.035003662109375, -0.042877197265625, -0.017486572265625, 0.00951385498046875, -0.0682373046875, -0.03997802734375, -0.012451171875, -0.005298614501953125, -0.016937255859375, 0.0009393692016601562 ]
74c97304f5916e3e3621afdd6c83bb13c2bc0bc3
Wordpress Stackexchange Q: How to provide a local fallback for Font Awesome if CDN fails? I'm trying to develop a Wordpress theme and figure out how to provide a local fallback for Font Awesome if CDN fails or I develop my theme on a local server without internet connection. The solution I have in mind is something like this (pseudo code): if ( $CDN_IS_AVAILABLE ) { wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', false ); } else { wp_enqueue_style('font-awesome', get_template_directory_uri() . '/css/font-awesome/css/font-awesome.min.css', false, '4.0.3' ); } Thank you! A: A server-side check isn't bullet-proof, either. If your server is located in California, your check will use the California CDN's Data Center. If your user is located in China, they would likely be using a completely different Data Center. At least, that's how I think it works. Anyways, here's an improved jquery solution: http://jsfiddle.net/skibulk/fp1gqnyc/ <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script> (function($){ var $span = $('<span class="fa" style="display:none"></span>').appendTo('body'); if ($span.css('fontFamily') !== 'FontAwesome' ) { // Fallback Link $('head').append('<link href="/css/font-awesome.min.css" rel="stylesheet">'); } $span.remove(); })(jQuery); </script>
Q: How to provide a local fallback for Font Awesome if CDN fails? I'm trying to develop a Wordpress theme and figure out how to provide a local fallback for Font Awesome if CDN fails or I develop my theme on a local server without internet connection. The solution I have in mind is something like this (pseudo code): if ( $CDN_IS_AVAILABLE ) { wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css', false ); } else { wp_enqueue_style('font-awesome', get_template_directory_uri() . '/css/font-awesome/css/font-awesome.min.css', false, '4.0.3' ); } Thank you! A: A server-side check isn't bullet-proof, either. If your server is located in California, your check will use the California CDN's Data Center. If your user is located in China, they would likely be using a completely different Data Center. At least, that's how I think it works. Anyways, here's an improved jquery solution: http://jsfiddle.net/skibulk/fp1gqnyc/ <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script> (function($){ var $span = $('<span class="fa" style="display:none"></span>').appendTo('body'); if ($span.css('fontFamily') !== 'FontAwesome' ) { // Fallback Link $('head').append('<link href="/css/font-awesome.min.css" rel="stylesheet">'); } $span.remove(); })(jQuery); </script> A: The problem is that I'm pretty sure it's impossible to check if CSS is effectively added to a page via PHP: CSS is parsed by the browser, so client side, and has completely no effect on server side. Of course, in PHP it's possible to check if CDN is responsive or not... Option 1 Send a request and if it responds with HTTP status 200, use it. Something like: function font_awesome_css() { $url = 'http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css'; $cdn = wp_remote_get( $url ); if ( (int) wp_remote_retrieve_response_code( $cdn) !== 200 ) { $url = get_template_directory_uri() . '/css/font-awesome/css/font-awesome.min.css'; } wp_enqueue_style( 'font-awesome', $url, false ); } that results in 2 HTTP requests, one for the check, the second for embedded CSS: really bad. Option 2 function font_awesome_css() { $url = 'http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css'; $cdn = wp_remote_get( $url ); if ( (int) wp_remote_retrieve_response_code( $cdn ) === 200 ) { $css = wp_remote_retrieve_body( $cdn ); add_action( 'wp_head', function() use( $css ) { $absolute = "//netdna.bootstrapcdn.com/font-awesome/4.0.3/fonts/"; $css = str_replace( "../fonts/", $absolute, $css ); echo '<style type="text/css">' . $css . '</style>'; } ); } else { $url = get_template_directory_uri() . '/css/font-awesome/css/font-awesome.min.css'; wp_enqueue_style( 'font-awesome', $url, false ); } } This is even worse: * *It ruins the wp_enqueue_style workflow: if a plugin adds Font Awesome, it will be added 2 times. *Number of HTTP requests is the same, however normally the 2 requests run in parallel, so in this way the PHP generation of page slows down because it needs to wait for the first request response. *This also prevents the browser from caching the CSS, so if you use the same style in different pages, you force CDN request on every page visited. When using the normal workflow, the pages after first CSS are taken from cache. So, really, don't do this at home. What really matters is that using PHP you can check CDN request, but not verify CSS, so all your efforts end up in worse performance, instead of better. Sincerely, if yours is a public theme, I suggest you use only the local copy, providing users a way to choose a CDN: if ( ! function_exists( 'font_awesome_css' ) ) { function font_awesome_css() { $_url = get_template_directory_uri() . '/css/font-awesome/css/font-awesome.min.css'; $url = apply_filters( 'font_awesome_css_url', $_url ); wp_enqueue_style( 'font-awesome', $url, false ); } } So users can completely override the function using a child theme, and can also use the 'font_awesome css_url' filter to change the URL. Also consider that some high-end hosting providers automatically convert local assets to CDN ones, and there are plugins that allow CDN all the things; this is the reason a public theme should not use CDN at all. If the theme is for yourself, then make a choice. Consider that most famous CDNs have a very low % of down time (and bootstrapcdn is one of the most reliable, according to cdnperf.com). I'm pretty sure your hosting has a downtime % greater than bootstrapcdn, so people have more probability to not see your site at all, than see it with broken icons. The dirty way As said, PHP can't check CSS, because CSS rendering happens client side, but you can use client side check: JavaScript. First embed CSS using CDN: function font_awesome_css() { $url = '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css'; wp_enqueue_style( 'font-awesome', $url, false ); } After that, add some JavaScript to your footer: /* Normally the JS should be properly enqueued and the URL passed via wp_enqueue_script, but this is a proof of concept, more than real code. */ add_action( 'wp_footer', function() { $cssurl = get_template_directory_uri() . '/css/'; ?> <span id="facheck" data-cssuri="<?php echo $cssurl; ?>" class="fa" style="display:none"> </span> <script> jQuery(document).ready(function($) { var $check = $('#facheck'); if ( $check.css('fontFamily') !== 'FontAwesome' ) { // Font Awesome not loaded! // Remove current CSS link $('#font-awesome-css').remove; // Add the local version var local = '<link rel="stylesheet" type="text/css" href="' + $check.data('cssuri') + // This is the theme CSS folder URL 'font-awesome/css/font-awesome.min.css" />'; $('head').append( local ); } }); </script> <?php }); This code runs when the page is loaded and checks if the invisible span added to footer with class 'fa' has the font-family property set to 'FontAwesome'. This is set by Font Awesome, so if it isn't true, it means that CSS is not loaded. If it happens, the code uses JavaScript to append the local CSS to head. (To test this code you can embed via wp_enqueue_style a wrong CDN URL, and see what happens) So, in the rare case a CDN is not available, all the styles will be shown as expected (for some milliseconds users will see 'broken' CSS icons, because CSS is added after the page loads). Now, considering that CDNs are very reliable, is it worth doing this hack for the < 1% of people that will see broken icons? Answering this question is left to you.
wordpress
{ "language": "en", "length": 955, "provenance": "stackexchange_00019.jsonl.gz:444554", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142241" }
[ 0.0037326812744140625, -0.0019817352294921875, -0.018341064453125, -0.034912109375, 0.002796173095703125, -0.0184173583984375, -0.0160980224609375, -0.01415252685546875, 0.005123138427734375, 0.031097412109375, 0.0085296630859375, -0.00942230224609375, 0.0239410400390625, -0.03314208984375, -0.00545501708984375, -0.00101470947265625, 0.04644775390625, -0.011474609375, 0.036163330078125, 0.00580596923828125, -0.00949859619140625, 0.033477783203125, 0.0026912689208984375, 0.060211181640625, 0.0066070556640625, -0.0026874542236328125, 0.1517333984375, -0.03582763671875, 0.000051021575927734375, -0.04931640625, 0.024505615234375, -0.0172576904296875, 0.007114410400390625, 0.017181396484375, -0.00753021240234375, -0.055999755859375, -0.00516510009765625, 0.0027313232421875, -0.019073486328125, 0.04022216796875, -0.00019252300262451172, -0.01071929931640625, 0.0007596015930175781, 0.0465087890625, -0.006343841552734375, -0.06591796875, 0.03302001953125, -0.06207275390625, -0.00861358642578125, 0.0743408203125, -0.01049041748046875, -0.00937652587890625, -0.0243682861328125, 0.044464111328125, -0.0116119384765625, -0.044403076171875, -0.01355743408203125, 0.042724609375, 0.0450439453125, -0.0008473396301269531, -0.040374755859375, -0.0054779052734375, -0.0019130706787109375, -0.043548583984375, -0.00406646728515625, -0.00626373291015625, -0.0044403076171875, 0.01387786865234375, 0.0041351318359375, 0.00911712646484375, -0.003932952880859375, -0.01505279541015625, 0.0291900634765625, -0.01727294921875, 0.005283355712890625, -0.0174713134765625, -0.01425933837890625, -0.026275634765625, 0.025146484375, -0.01409912109375, 0.01464080810546875, 0.03076171875, -0.05517578125, -0.051788330078125, 0.048065185546875, -0.01494598388671875, -0.00644683837890625, -0.027618408203125, -0.039398193359375, -0.0286712646484375, -0.037322998046875, -0.049163818359375, -0.0130615234375, -0.005764007568359375, -0.032928466796875, -0.01367950439453125, 0.026611328125, 0.04443359375, -0.013153076171875, 0.018951416015625, -0.01023101806640625, -0.025787353515625, 0.030059814453125, -0.0450439453125, -0.009002685546875, 0.039306640625, -0.01152801513671875, 0.0145721435546875, 0.021759033203125, 0.017913818359375, -0.0137786865234375, -0.050567626953125, -0.0087890625, -0.0017337799072265625, -0.027374267578125, 0.06854248046875, 0.031646728515625, -0.0219268798828125, -0.020263671875, 0.04071044921875, 0.02716064453125, 0.0633544921875, -0.05718994140625, -0.01549530029296875, -0.0023975372314453125, -0.00029349327087402344, -0.0081634521484375, -0.0185089111328125, 0.03594970703125, 0.038818359375, -0.038238525390625, -0.0031795501708984375, 0.0335693359375, -0.0251617431640625, -0.01812744140625, -0.0264892578125, 0.019989013671875, -0.0021419525146484375, 0.02685546875, 0.005397796630859375, 0.026580810546875, -0.032073974609375, 0.003170013427734375, 0.03753662109375, -0.042938232421875, 0.00011986494064331055, 0.0251007080078125, 0.024200439453125, -0.04791259765625, -0.03863525390625, 0.02471923828125, -0.017181396484375, 0.0626220703125, 0.0143280029296875, -0.0226898193359375, -0.052886962890625, 0.060089111328125, -0.05291748046875, -0.019256591796875, -0.08392333984375, -0.0391845703125, 0.0003657341003417969, 0.031280517578125, -0.035552978515625, -0.00040912628173828125, -0.01947021484375, 0.00917816162109375, 0.00821685791015625, 0.0216522216796875, 0.028839111328125, -0.00910186767578125, 0.00661468505859375, 0.00855255126953125, -0.0034027099609375, -0.017059326171875, 0.005023956298828125, 0.00554656982421875, 0.0125579833984375, 0.049072265625, -0.02838134765625, -0.0189056396484375, -0.0185089111328125, 0.1016845703125, -0.043365478515625, -0.029266357421875, 0.005451202392578125, 0.003330230712890625, 0.03265380859375, 0.014892578125, 0.0036525726318359375, -0.0005803108215332031, -0.0017251968383789062, -0.037872314453125, -0.03143310546875, -0.0272979736328125, 0.01383209228515625, 0.027435302734375, 0.0263214111328125, -0.00803375244140625, 0.009918212890625, 0.0128021240234375, -0.0032711029052734375, 0.016632080078125, -0.01406097412109375, -0.049224853515625, 0.0009379386901855469, -0.0113525390625, 0.031524658203125, -0.005138397216796875, -0.0033817291259765625, 0.01045989990234375, -0.04827880859375, 0.0064544677734375, 0.026336669921875, -0.01139068603515625, -0.0325927734375, -0.032928466796875, 0.025909423828125, -0.0024967193603515625, 0.00556182861328125, 0.0213775634765625, -0.0167388916015625, 0.0280609130859375, 0.0170135498046875, -0.005344390869140625, -0.003780364990234375, -0.001842498779296875, -0.004055023193359375, -0.0235137939453125, 0.0227203369140625, -0.005252838134765625, 0.015869140625, -0.0012722015380859375, -0.010406494140625, -0.031280517578125, 0.00653839111328125, -0.0012731552124023438, -0.0302886962890625, -0.00495147705078125, 0.04583740234375, 0.0406494140625, -0.03509521484375, -0.00949859619140625, -0.025634765625, 0.04559326171875, -0.009124755859375, 0.00823974609375, -0.021270751953125, -0.02105712890625, 0.00634002685546875, -0.0257720947265625, 0.01207733154296875, 0.0282135009765625, -0.039642333984375, -0.041290283203125, 0.0653076171875, -0.01522064208984375, 0.03887939453125, -0.0182342529296875, -0.00714874267578125, 0.01355743408203125, 0.0282440185546875, -0.008270263671875, 0.00112152099609375, 0.0305328369140625, -0.052032470703125, -0.016387939453125, -0.03509521484375, -0.0219879150390625, -0.01560211181640625, 0.046875, -0.031890869140625, 0.0008101463317871094, 0.037689208984375, 0.01427459716796875, 0.01253509521484375, -0.0169219970703125, -0.00606536865234375, 0.01175689697265625, 0.0216217041015625, -0.005146026611328125, 0.032440185546875, 0.011383056640625, -0.01442718505859375, 0.004444122314453125, -0.03216552734375, 0.006008148193359375, 0.004314422607421875, 0.0252227783203125, 0.033477783203125, 0.053375244140625, -0.00707244873046875, 0.0010805130004882812, -0.0010251998901367188, -0.01019287109375, -0.0235748291015625, 0.05419921875, -0.001956939697265625, 0.00678253173828125, 0.0035552978515625, 0.0230560302734375, 0.041473388671875, 0.003826141357421875, -0.0002257823944091797, -0.00966644287109375, 0.007724761962890625, -0.01233673095703125, 0.0027484893798828125, -0.0142059326171875, -0.0188751220703125, -0.0011138916015625, 0.035675048828125, 0.041656494140625, 0.036651611328125, 0.006534576416015625, -0.044891357421875, -0.01290130615234375, 0.021636962890625, -0.0980224609375, -0.10247802734375, 0.023406982421875, 0.01308441162109375, 0.0667724609375, 0.0179443359375, 0.03021240234375, -0.0740966796875, 0.03515625, 0.01418304443359375, -0.0231781005859375, -0.0333251953125, -0.036468505859375, -0.06744384765625, -0.04852294921875, -0.034698486328125, -0.004917144775390625, -0.0195465087890625, 0.013031005859375, 0.0309295654296875, 0.00635528564453125, -0.0333251953125, 0.00858306884765625, 0.034393310546875, -0.01351165771484375, -0.004016876220703125, -0.0248260498046875, -0.0024433135986328125, 0.007762908935546875, -0.001377105712890625, 0.0249481201171875, -0.0090789794921875, 0.01220703125, -0.0310211181640625, -0.0272369384765625, -0.0374755859375, -0.018585205078125, 0.03668212890625, 0.0295867919921875, -0.026763916015625, 0.0194244384765625, -0.047637939453125, -0.04150390625, 0.004169464111328125, -0.046173095703125, 0.0723876953125, 0.041015625, -0.0343017578125, -0.0080413818359375, 0.051971435546875, 0.0330810546875, -0.0004734992980957031, 0.041412353515625, -0.0188751220703125, 0.08465576171875, 0.005046844482421875, 0.0233001708984375, -0.07830810546875, 0.06732177734375, -0.00890350341796875, -0.00396728515625, 0.03717041015625, 0.0102996826171875, 0.01139068603515625, -0.04437255859375, -0.024993896484375, -0.044403076171875, 0.031585693359375, -0.06903076171875, 0.02618408203125, -0.040496826171875, 0.000476837158203125, -0.03106689453125, 0.04718017578125, -0.0081787109375, 0.00682830810546875, -0.03900146484375, -0.00922393798828125, -0.0208587646484375, -0.035919189453125, -0.03179931640625, 0.0155487060546875, -0.10235595703125, -0.024383544921875, -0.0176239013671875, -0.059417724609375, 0.021942138671875, -0.085205078125, -0.03497314453125, -0.057159423828125, 0.032470703125, -0.05303955078125, -0.00884246826171875, 0.02154541015625, -0.0147857666015625, -0.023162841796875, -0.0193939208984375, -0.026031494140625, -0.052398681640625, 0.00482177734375, -0.03143310546875, 0.008453369140625, 0.00151824951171875, 0.026580810546875, -0.005992889404296875, 0.040252685546875, 0.018402099609375, 0.043426513671875, -0.0117645263671875, -0.0031719207763671875, 0.0090789794921875, -0.03900146484375, -0.0179595947265625, -0.03253173828125, 0.026153564453125, 0.0251312255859375, -0.1307373046875, 0.00601959228515625, 0.00605010986328125, 0.025787353515625, 0.0858154296875, -0.0748291015625, -0.04571533203125, -0.00888824462890625, 0.013671875, -0.0173492431640625, 0.026123046875, -0.03936767578125, -0.007472991943359375, -0.0416259765625, 0.01580810546875, 0.0277862548828125, -0.0162811279296875, -0.0024089813232421875, -0.00872802734375, 0.01084136962890625, -0.0389404296875, 0.03790283203125, 0.0310516357421875, 0.0399169921875, 0.0201568603515625, 0.0384521484375, 0.01308441162109375, -0.027679443359375, 0.07476806640625, 0.01338958740234375, 0.031005859375, 0.00982666015625, -0.045379638671875, 0.01364898681640625, -0.02008056640625, 0.012451171875, 0.049713134765625, -0.005664825439453125, 0.041412353515625, 0.01513671875, -0.0323486328125, 0.011505126953125, 0.03369140625, 0.0152435302734375, -0.03253173828125, -0.040924072265625, -0.0067138671875, 0.01467132568359375, -0.006938934326171875, 0.08795166015625, 0.011871337890625, 0.00859832763671875, 0.01666259765625, 0.027618408203125, 0.0197906494140625, 0.0117340087890625, 0.0053558349609375, -0.0071258544921875, 0.042388916015625, -0.0158233642578125, -0.001277923583984375, 0.00904083251953125, -0.00656890869140625, 0.045196533203125, 0.008331298828125, -0.0170745849609375, -0.028167724609375, 0.0008983612060546875, -0.00545501708984375, -0.003692626953125, -0.00908660888671875, 0.049285888671875, -0.038360595703125, -0.00531005859375, -0.003993988037109375, -0.049163818359375, -0.040863037109375, -0.041351318359375, -0.010711669921875, 0.01287078857421875, -0.028076171875, -0.0097808837890625, 0.0059661865234375, 0.0731201171875, -0.0430908203125, -0.0299072265625, 0.0057525634765625, 0.016082763671875, 0.0046234130859375, 0.0237579345703125, 0.00835418701171875, -0.010101318359375, -0.008575439453125, 0.0278472900390625, -0.016021728515625, -0.005950927734375, 0.0284423828125, 0.035064697265625, -0.020721435546875, -0.023773193359375, 0.01488494873046875, -0.0033016204833984375, -0.0249786376953125, 0.0298614501953125, -0.007389068603515625, -0.0523681640625, -0.0231170654296875, -0.0233154296875, 0.02435302734375, -0.0109710693359375, 0.0013790130615234375, -0.024688720703125, 0.00139617919921875, -0.0254058837890625, 0.038848876953125, -0.07257080078125, 0.0280914306640625, 0.0380859375, -0.007354736328125, -0.040252685546875, -0.016357421875, -0.026947021484375, 0.03326416015625, -0.0220947265625, -0.0247650146484375, 0.0012979507446289062, -0.03375244140625, -0.0073089599609375, 0.0102691650390625, 0.005218505859375, -0.047698974609375, 0.015869140625, 0.0303802490234375, 0.005031585693359375, -0.0184173583984375, 0.023162841796875, -0.0440673828125, -0.013031005859375, -0.0165863037109375, -0.05218505859375, -0.0299072265625, -0.0328369140625, 0.036346435546875, 0.0063018798828125, -0.0022678375244140625, -0.05120849609375, 0.0006346702575683594, 0.0211334228515625, 0.040130615234375, 0.006351470947265625, -0.020843505859375, 0.041656494140625, -0.0012445449829101562, 0.01432037353515625, -0.0042266845703125, 0.0272216796875, 0.0043182373046875, -0.0172882080078125, -0.00634765625, -0.07855224609375, 0.0027408599853515625, -0.026092529296875, 0.01461029052734375, 0.0589599609375, 0.0562744140625, 0.0233154296875, -0.0033740997314453125, -0.01384735107421875, -0.003631591796875, -0.007293701171875, 0.0594482421875, 0.01424407958984375, 0.01493072509765625, 0.03924560546875, 0.00020563602447509766, 0.012176513671875, -0.020538330078125, -0.0399169921875, 0.0264892578125, 0.0038909912109375, 0.0189971923828125, 0.02276611328125, -0.08856201171875, 0.08538818359375, 0.05224609375, 0.0079193115234375, 0.00276947021484375, -0.0220184326171875, -0.0262908935546875, -0.033935546875, -0.0005664825439453125, -0.05511474609375, -0.016387939453125, 0.0097503662109375, 0.0000680685043334961, 0.0024261474609375, 0.0207977294921875, -0.0077362060546875, 0.0162506103515625, -0.0032749176025390625, 0.048828125, -0.01543426513671875, -0.0006880760192871094, 0.019683837890625, -0.047271728515625, 0.009124755859375, -0.008941650390625, 0.0010881423950195312, -0.0161590576171875, 0.039825439453125, 0.0230712890625, -0.011322021484375, 0.02374267578125, 0.00968170166015625, 0.005786895751953125, 0.007236480712890625, 0.0294036865234375, -0.007167816162109375, -0.07830810546875, 0.00029540061950683594, 0.031036376953125, -0.004863739013671875, -0.01690673828125, 0.003932952880859375, 0.010162353515625, -0.035980224609375, -0.05426025390625, -0.0155029296875, -0.01107025146484375, -0.038055419921875, 0.01226043701171875, 0.00617218017578125, 0.00966644287109375, 0.00269317626953125, -0.005710601806640625, -0.007602691650390625, -0.0253753662109375, 0.01194000244140625, -0.00942230224609375, -0.0141143798828125, -0.0012645721435546875, 0.006053924560546875, 0.02947998046875, 0.015777587890625, 0.006824493408203125, -0.0294952392578125, -0.01349639892578125, 0.025909423828125, 0.07611083984375, 0.00727081298828125, -0.045013427734375, 0.029571533203125, 0.0027484893798828125, -0.0209503173828125, 0.006168365478515625, 0.0164642333984375, -0.055450439453125, -0.0411376953125, 0.0042877197265625, -0.042572021484375, -0.01123809814453125, -0.0224456787109375, -0.021636962890625, 0.09100341796875, -0.06207275390625, 0.0036487579345703125, 0.0299835205078125, 0.0458984375, 0.007396697998046875, 0.048797607421875, -0.043060302734375, 0.0307464599609375, 0.0163726806640625, 0.0247344970703125, -0.01175689697265625, 0.007320404052734375, 0.00168609619140625, -0.0088958740234375, 0.0012073516845703125, 0.006549835205078125, -0.033538818359375, -0.037689208984375, 0.006877899169921875, 0.060394287109375, 0.01776123046875, 0.0031375885009765625, -0.049530029296875, 0.006374359130859375, -0.011932373046875, -0.004730224609375, 0.037445068359375, -0.00907135009765625, -0.0955810546875, -0.0086822509765625, 0.023101806640625, 0.022064208984375, 0.01207733154296875, 0.0136566162109375, -0.0177154541015625, 0.0125579833984375, 0.01025390625, 0.02960205078125, 0.00582122802734375, 0.054534912109375, 0.0241546630859375, -0.0211029052734375, -0.0251312255859375, -0.0293426513671875, 0.031097412109375, -0.0255584716796875, -0.03143310546875, -0.0279388427734375, -0.0020046234130859375, 0.001560211181640625, -0.0219268798828125, -0.0237579345703125, 0.04058837890625, -0.0174407958984375, 0.01556396484375, -0.00609588623046875, 0.00670623779296875, -0.044952392578125, 0.0159912109375, 0.0278167724609375, 0.0299224853515625, -0.036224365234375, -0.02288818359375, 0.0108795166015625, 0.01392364501953125, -0.0077056884765625, -0.01271820068359375, 0.0213470458984375, -0.07977294921875, -0.026519775390625, -0.01467132568359375, -0.0074005126953125, 0.01348876953125, -0.01059722900390625, 0.00901031494140625, 0.0643310546875, -0.0090484619140625, 0.018585205078125, -0.0276336669921875, -0.044403076171875, 0.039031982421875, 0.059844970703125, 0.0234527587890625, 0.042510986328125, -0.004428863525390625, -0.023223876953125, -0.006866455078125, -0.0274505615234375, 0.0274200439453125, 0.00748443603515625, -0.0142822265625, 0.0504150390625, 0.022918701171875, 0.03497314453125, 0.006389617919921875, -0.0202484130859375, 0.04095458984375, 0.06903076171875, 0.017486572265625, -0.0248565673828125, 0.009490966796875, 0.011962890625, 0.01027679443359375, -0.041839599609375, 0.01152801513671875, -0.015716552734375, -0.0105438232421875, 0.00557708740234375, 0.00383758544921875, 0.028778076171875, -0.0014810562133789062, 0.0202178955078125, 0.019744873046875, 0.0017375946044921875, 0.006084442138671875, -0.0053863525390625, 0.004787445068359375, 0.00958251953125, -0.04345703125, -0.008636474609375, 0.0106353759765625, -0.00241851806640625, -0.002765655517578125, 0.0268707275390625, -0.0011587142944335938, 0.0154266357421875, -0.0017957687377929688, -0.054473876953125, 0.0300140380859375, 0.0178985595703125, 0.03546142578125, 0.042388916015625, -0.014251708984375, 0.0012416839599609375, 0.02911376953125, 0.0184783935546875, -0.00417327880859375, 0.03692626953125, -0.0090789794921875, 0.07720947265625, -0.05987548828125, 0.022674560546875, 0.06439208984375, 0.006076812744140625, 0.0283966064453125, 0.013397216796875, 0.03619384765625, -0.01065826416015625, 0.0181884765625, -0.024871826171875, -0.01013946533203125, 0.0223846435546875, 0.0031719207763671875, -0.0107421875, -0.00222015380859375, -0.0057830810546875, 0.0051727294921875, 0.027252197265625, 0.01482391357421875, -0.043853759765625, -0.04412841796875, -0.050628662109375, -0.0062255859375, 0.01303863525390625, 0.00010716915130615234, 0.0016345977783203125, 0.0166015625, 0.023895263671875, -0.00402069091796875, 0.048004150390625, -0.0043792724609375, 0.078857421875, 0.043212890625, -0.0445556640625, 0.033843994140625, 0.019561767578125, -0.00725555419921875, 0.031890869140625, -0.0041046142578125, 0.02294921875, -0.0020694732666015625, 0.0060272216796875, 0.0906982421875, -0.004405975341796875, 0.0052947998046875, -0.038970947265625, -0.050506591796875, 0.07025146484375, -0.006008148193359375, -0.0180206298828125, 0.0184478759765625, -0.023712158203125, -0.0092315673828125, -0.00960540771484375, 0.01560211181640625, 0.0044708251953125, -0.02752685546875, -0.043609619140625, 0.00901031494140625, 0.03326416015625, -0.01175689697265625, -0.066162109375, -0.0017385482788085938, -0.0200653076171875, 0.1153564453125, -0.0338134765625, 0.07720947265625, -0.025665283203125, -0.0190887451171875, -0.03497314453125, -0.02294921875, -0.0022449493408203125, 0.07098388671875, 0.017913818359375, -0.003536224365234375, 0.008636474609375, 0.0174560546875, -0.0009822845458984375, -0.027587890625, -0.00923919677734375, 0.040435791015625, -0.0811767578125, -0.023681640625, 0.0404052734375, -0.053466796875, -0.0216827392578125, -0.039398193359375, 0.0039215087890625, -0.0836181640625, -0.0202789306640625, -0.0147705078125, 0.00739288330078125, 0.0096282958984375, -0.03192138671875, -0.059356689453125, 0.050506591796875, -0.01540374755859375, -0.02386474609375, -0.00250244140625, -0.053375244140625, -0.039520263671875, 0.051849365234375, 0.004726409912109375, -0.01019287109375, -0.010345458984375, 0.05670166015625, 0.0211181640625, -0.0079803466796875, 0.019439697265625, -0.01471710205078125, -0.07696533203125, 0.007625579833984375, -0.0006380081176757812, 0.01412200927734375, -0.03369140625, 0.0080413818359375, 0.00010889768600463867, -0.0006270408630371094, -0.01519012451171875, -0.0018548965454101562, 0.0152587890625, 0.03009033203125, 0.03363037109375, -0.019317626953125, -0.022674560546875, -0.0202484130859375, 0.01561737060546875, -0.0042572021484375, 0.000518798828125, -0.0035305023193359375, -0.07177734375, -0.00916290283203125, -0.034423828125, 0.0139312744140625, 0.0234527587890625, -0.034393310546875, 0.046905517578125, -0.059478759765625, 0.006175994873046875, 0.020233154296875, -0.001422882080078125, 0.01244354248046875, 0.0019159317016601562, 0.01355743408203125, -0.038787841796875, -0.0007309913635253906, -0.007198333740234375, 0.06689453125, -0.007488250732421875, 0.06268310546875, -0.0147552490234375, 0.025238037109375, 0.0810546875, 0.05133056640625, 0.002231597900390625, 0.018829345703125, -0.015777587890625, 0.0247344970703125, 0.02105712890625, -0.0110931396484375, -0.041656494140625, -0.006061553955078125, 0.021026611328125, 0.01136016845703125, -0.00539398193359375, 0.02642822265625, 0.01312255859375, 0.01511383056640625, -0.02069091796875, 0.004932403564453125, -0.0292205810546875, 0.0328369140625, -0.0091400146484375, 0.01555633544921875, -0.0177459716796875, 0.01016998291015625, 0.026214599609375, 0.005649566650390625, -0.006137847900390625, -0.004497528076171875, -0.007427215576171875, -0.0535888671875, 0.060546875, 0.0032825469970703125, 0.0026187896728515625, 0.04254150390625 ]
8c9633e88ad8bfcdbd96d2d2a40ba301e461d4af
Wordpress Stackexchange Q: delete_option() and update_option() returning false I know that when delete_option() or update_option() fail to perform their respective database interactions, they return false. Does anyone know why they wouldn't be able to perform these actions? It's only for specific options. Most options will work, however, a few options just seem to "die". They'll work fine for a while, then just stop working. Any ideas? A: The delete_option() function will return false if the option does not exist. The update_option() function will return false if the option already has the same value as what you're trying to update it to. Both will also return false if the SQL query itself fails for whatever reason.
Q: delete_option() and update_option() returning false I know that when delete_option() or update_option() fail to perform their respective database interactions, they return false. Does anyone know why they wouldn't be able to perform these actions? It's only for specific options. Most options will work, however, a few options just seem to "die". They'll work fine for a while, then just stop working. Any ideas? A: The delete_option() function will return false if the option does not exist. The update_option() function will return false if the option already has the same value as what you're trying to update it to. Both will also return false if the SQL query itself fails for whatever reason. A: I had a similar issue with wp_update_option failing, but I knew that the data I was trying to update was different from what was already in place, so the "obvious" reason for failure was ruled out. It turned out that it was (is, at the time of writing this) a bug in WordPress itself, in the way caching is handled. Not super-sure this was the explanation, but disabling persistent caching (like memcached) solved the issue for me. The fix for that bug should ship in 5.3.1 anyway.
wordpress
{ "language": "en", "length": 201, "provenance": "stackexchange_00019.jsonl.gz:444591", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142343" }
[ 0.0406494140625, 0.0009918212890625, 0.005619049072265625, 0.0252838134765625, 0.00936126708984375, -0.03936767578125, 0.06854248046875, -0.0328369140625, 0.07110595703125, 0.04010009765625, -0.0504150390625, -0.06396484375, 0.017486572265625, -0.0130462646484375, -0.082275390625, -0.046783447265625, 0.0264892578125, 0.004650115966796875, 0.0166015625, -0.005847930908203125, -0.01419830322265625, 0.0282745361328125, -0.02166748046875, 0.05615234375, 0.036285400390625, -0.04095458984375, 0.0244140625, -0.00856781005859375, -0.003932952880859375, -0.0311279296875, 0.0174713134765625, 0.0259857177734375, 0.001567840576171875, 0.0343017578125, -0.01360321044921875, -0.046722412109375, 0.0252838134765625, -0.0112457275390625, -0.019256591796875, 0.05291748046875, 0.036224365234375, -0.0260467529296875, 0.0244903564453125, -0.0345458984375, 0.0021915435791015625, -0.0118255615234375, 0.040008544921875, -0.03387451171875, -0.0047760009765625, 0.01971435546875, 0.01168060302734375, 0.0085906982421875, 0.017364501953125, -0.01531219482421875, -0.0007300376892089844, -0.031219482421875, -0.033660888671875, 0.042816162109375, 0.0247955322265625, 0.0294647216796875, -0.02325439453125, 0.0103912353515625, 0.00931549072265625, -0.057861328125, 0.0179290771484375, -0.017242431640625, 0.005702972412109375, 0.029815673828125, -0.06695556640625, 0.01432037353515625, 0.045928955078125, -0.035064697265625, -0.01448822021484375, -0.01038360595703125, -0.0004718303680419922, -0.01422882080078125, 0.0270843505859375, -0.014617919921875, -0.01065826416015625, 0.031707763671875, 0.055816650390625, 0.01861572265625, -0.03546142578125, 0.0191192626953125, 0.0117034912109375, 0.0308074951171875, 0.008697509765625, -0.036163330078125, -0.038116455078125, -0.042144775390625, -0.0230865478515625, -0.091796875, -0.023284912109375, -0.0185546875, -0.022552490234375, -0.02642822265625, 0.025909423828125, 0.049713134765625, -0.009674072265625, 0.00682830810546875, 0.01084136962890625, -0.04119873046875, 0.0188751220703125, -0.02923583984375, -0.0002532005310058594, 0.007335662841796875, 0.0184173583984375, -0.040557861328125, -0.0025005340576171875, 0.013824462890625, -0.0243377685546875, 0.0255889892578125, -0.027679443359375, -0.053375244140625, 0.0178985595703125, -0.0014295578002929688, -0.07745361328125, 0.053009033203125, 0.021728515625, 0.0047607421875, -0.0022144317626953125, 0.0299072265625, -0.04449462890625, -0.03179931640625, 0.00563812255859375, -0.016082763671875, -0.012237548828125, 0.01067352294921875, 0.00820159912109375, 0.05462646484375, -0.04791259765625, -0.00583648681640625, 0.0484619140625, 0.003139495849609375, 0.0047607421875, -0.040557861328125, -0.0276031494140625, -0.0002727508544921875, -0.0023097991943359375, -0.00003135204315185547, 0.052032470703125, -0.0190582275390625, 0.0013742446899414062, 0.0440673828125, -0.0062103271484375, 0.0182342529296875, 0.0170745849609375, 0.00824737548828125, -0.0109100341796875, -0.036651611328125, -0.0172882080078125, 0.02606201171875, 0.0142669677734375, -0.019500732421875, 0.00641632080078125, -0.04913330078125, -0.0018739700317382812, -0.02801513671875, 0.0213470458984375, -0.0224609375, -0.00498199462890625, -0.016937255859375, 0.029510498046875, -0.01140594482421875, -0.03863525390625, 0.0206756591796875, -0.055816650390625, -0.01293182373046875, 0.02276611328125, 0.053924560546875, -0.01024627685546875, -0.01398468017578125, -0.0164794921875, -0.005527496337890625, -0.0218963623046875, 0.011474609375, 0.02691650390625, -0.028228759765625, 0.033599853515625, -0.0252532958984375, -0.0650634765625, -0.037689208984375, 0.02178955078125, -0.039886474609375, -0.03350830078125, 0.02001953125, 0.017059326171875, 0.0462646484375, 0.00550079345703125, 0.0159759521484375, 0.019073486328125, 0.01275634765625, 0.005950927734375, 0.01088714599609375, 0.0074462890625, -0.01354217529296875, -0.0465087890625, 0.001873016357421875, -0.02593994140625, -0.024139404296875, -0.0101470947265625, 0.0233612060546875, -0.016845703125, -0.01158905029296875, -0.09918212890625, 0.014068603515625, -0.04437255859375, 0.06231689453125, -0.0257720947265625, 0.050872802734375, 0.02325439453125, 0.020263671875, -0.08160400390625, 0.09600830078125, 0.03955078125, 0.004917144775390625, -0.02154541015625, 0.048675537109375, -0.0288543701171875, 0.054534912109375, -0.051544189453125, -0.045257568359375, -0.0291290283203125, -0.0111541748046875, 0.018402099609375, -0.0308990478515625, 0.01201629638671875, -0.01499176025390625, 0.043548583984375, -0.0142822265625, 0.047119140625, 0.0174102783203125, 0.047454833984375, 0.020904541015625, -0.04290771484375, -0.0277099609375, -0.043548583984375, -0.11480712890625, 0.003849029541015625, 0.09136962890625, 0.0165863037109375, 0.0220184326171875, -0.008636474609375, 0.0081024169921875, 0.035400390625, -0.0281829833984375, -0.0002605915069580078, -0.00835418701171875, 0.025726318359375, 0.0229034423828125, 0.01031494140625, -0.02288818359375, 0.026641845703125, -0.031280517578125, 0.004810333251953125, 0.02490234375, -0.0516357421875, 0.006591796875, 0.0090484619140625, -0.0340576171875, -0.00656890869140625, -0.05755615234375, 0.010345458984375, -0.02764892578125, 0.028900146484375, -0.0323486328125, -0.0099029541015625, -0.0079193115234375, -0.0071563720703125, 0.0173187255859375, 0.0193328857421875, -0.1043701171875, -0.005458831787109375, 0.050537109375, 0.030517578125, 0.0079345703125, -0.0139617919921875, -0.0241546630859375, 0.003993988037109375, 0.0220794677734375, -0.030487060546875, -0.0026416778564453125, 0.0020503997802734375, -0.015106201171875, 0.0197906494140625, -0.0006413459777832031, 0.0173187255859375, -0.040496826171875, 0.0294189453125, 0.00506591796875, 0.020263671875, 0.0246124267578125, -0.0113983154296875, 0.047393798828125, 0.0175933837890625, -0.02081298828125, 0.038665771484375, 0.00458526611328125, -0.0024394989013671875, -0.0027008056640625, 0.040496826171875, 0.05224609375, -0.0051727294921875, -0.0008778572082519531, 0.0193328857421875, 0.036590576171875, 0.0391845703125, -0.0146026611328125, -0.016845703125, 0.039215087890625, -0.053619384765625, 0.0188751220703125, 0.035003662109375, 0.041748046875, 0.0237579345703125, -0.0179290771484375, 0.0191650390625, 0.039642333984375, -0.022186279296875, -0.04949951171875, -0.00872802734375, 0.00641632080078125, 0.00740814208984375, 0.01119232177734375, 0.020904541015625, -0.018157958984375, 0.0028934478759765625, 0.01141357421875, 0.01444244384765625, -0.0200653076171875, -0.01187896728515625, -0.034820556640625, -0.0478515625, -0.0257568359375, -0.0007843971252441406, 0.0188446044921875, 0.01250457763671875, 0.09454345703125, 0.0080108642578125, -0.07855224609375, 0.017333984375, -0.056182861328125, -0.02630615234375, 0.068359375, 0.0748291015625, -0.011627197265625, -0.024658203125, 0.016571044921875, 0.005558013916015625, 0.049713134765625, -0.0660400390625, -0.033477783203125, -0.001766204833984375, 0.012451171875, 0.0325927734375, -0.018463134765625, -0.0211639404296875, 0.054962158203125, 0.035675048828125, -0.008087158203125, -0.03033447265625, 0.0138702392578125, -0.035430908203125, 0.04986572265625, 0.0238037109375, -0.0243377685546875, 0.004638671875, 0.027801513671875, 0.0028285980224609375, 0.036407470703125, -0.0062103271484375, 0.0023822784423828125, -0.0099029541015625, -0.01093292236328125, -0.0200347900390625, -0.00389862060546875, 0.0269012451171875, -0.03094482421875, 0.00311279296875, -0.0087127685546875, -0.0202484130859375, -0.048370361328125, 0.02197265625, -0.0714111328125, -0.023345947265625, 0.0166015625, -0.0206756591796875, -0.01074981689453125, -0.0213623046875, -0.00789642333984375, -0.0054931640625, 0.043731689453125, 0.00634002685546875, -0.04046630859375, -0.040008544921875, 0.0233917236328125, -0.031494140625, -0.08148193359375, 0.06756591796875, -0.01904296875, -0.0472412109375, 0.030914306640625, -0.0086212158203125, -0.0013151168823242188, -0.03851318359375, 0.057220458984375, -0.0295562744140625, -0.0299224853515625, 0.034698486328125, -0.0631103515625, 0.0322265625, -0.0102996826171875, 0.0262908935546875, -0.049652099609375, -0.004962921142578125, -0.05316162109375, -0.0213775634765625, 0.0020351409912109375, -0.0040283203125, 0.0031719207763671875, -0.016265869140625, 0.051483154296875, -0.038909912109375, 0.017791748046875, 0.0279083251953125, -0.0141143798828125, 0.029571533203125, -0.005733489990234375, -0.016571044921875, -0.0088348388671875, 0.016998291015625, -0.0269317626953125, -0.013763427734375, -0.06256103515625, -0.03338623046875, -0.048980712890625, -0.03472900390625, 0.027069091796875, -0.035797119140625, -0.0160675048828125, -0.00771331787109375, -0.005702972412109375, -0.044677734375, 0.00908660888671875, -0.037750244140625, -0.004611968994140625, -0.01078033447265625, -0.044189453125, 0.03924560546875, -0.05615234375, -0.0093841552734375, 0.0065765380859375, 0.07135009765625, 0.021087646484375, -0.0084075927734375, 0.01024627685546875, -0.01291656494140625, 0.0015840530395507812, -0.00018274784088134766, 0.03936767578125, 0.01251983642578125, 0.01007843017578125, 0.005756378173828125, -0.0166473388671875, 0.01221466064453125, -0.040802001953125, 0.07366943359375, -0.00921630859375, 0.0119476318359375, 0.0029048919677734375, -0.0175628662109375, 0.0003807544708251953, 0.044708251953125, -0.0110931396484375, 0.01119232177734375, 0.00261688232421875, 0.018768310546875, -0.0189666748046875, -0.01739501953125, -0.0374755859375, -0.024932861328125, -0.002899169921875, -0.0318603515625, 0.041473388671875, 0.00856781005859375, -0.005535125732421875, 0.00501251220703125, 0.019805908203125, 0.01158905029296875, -0.046478271484375, -0.01505279541015625, -0.050750732421875, 0.054656982421875, -0.0714111328125, -0.0010089874267578125, -0.012481689453125, -0.006816864013671875, 0.078857421875, 0.01087188720703125, -0.04443359375, 0.0200042724609375, -0.02392578125, 0.0029296875, 0.01154327392578125, 0.01389312744140625, -0.00774383544921875, -0.01100921630859375, 0.00014579296112060547, 0.01412200927734375, 0.025848388671875, 0.011322021484375, -0.0118560791015625, 0.0261688232421875, 0.0268096923828125, -0.01497650146484375, 0.01544189453125, 0.02740478515625, 0.0328369140625, -0.0079345703125, -0.0161285400390625, 0.0260772705078125, 0.027923583984375, 0.019378662109375, 0.0220489501953125, -0.020233154296875, 0.0135498046875, -0.00916290283203125, -0.002010345458984375, -0.01268768310546875, -0.0157928466796875, 0.03204345703125, 0.003635406494140625, -0.0202178955078125, 0.006404876708984375, 0.0017938613891601562, 0.0022735595703125, -0.00855255126953125, 0.04425048828125, 0.034942626953125, -0.0614013671875, 0.0007987022399902344, 0.0269927978515625, 0.0086669921875, -0.0257720947265625, -0.0247955322265625, 0.0007877349853515625, -0.0227508544921875, 0.0023632049560546875, 0.033050537109375, -0.028778076171875, 0.0029754638671875, 0.0015535354614257812, 0.005458831787109375, -0.0245361328125, -0.02862548828125, 0.0231781005859375, 0.004734039306640625, -0.00836181640625, -0.0249786376953125, 0.033660888671875, -0.0140838623046875, 0.019622802734375, -0.0093536376953125, -0.021697998046875, 0.037933349609375, -0.0079498291015625, 0.10003662109375, 0.051025390625, -0.043609619140625, -0.001007080078125, -0.037811279296875, -0.0037097930908203125, -0.0113677978515625, -0.054962158203125, -0.02630615234375, -0.00934600830078125, 0.022308349609375, 0.0265960693359375, 0.0081787109375, -0.0276641845703125, 0.01410675048828125, -0.001529693603515625, -0.007251739501953125, 0.02655029296875, -0.0020580291748046875, 0.04449462890625, 0.007160186767578125, 0.016845703125, 0.03411865234375, 0.04364013671875, -0.018341064453125, -0.02008056640625, 0.01279449462890625, 0.015716552734375, 0.0134735107421875, -0.0252838134765625, 0.046875, -0.0655517578125, 0.0033817291259765625, -0.005794525146484375, -0.010345458984375, -0.012847900390625, -0.0162811279296875, -0.010589599609375, 0.0589599609375, 0.01739501953125, -0.01230621337890625, 0.034088134765625, -0.06878662109375, -0.043670654296875, 0.03997802734375, 0.02459716796875, -0.007419586181640625, -0.0435791015625, -0.0232391357421875, 0.051239013671875, -0.03558349609375, 0.057586669921875, 0.051666259765625, -0.01026153564453125, 0.0153350830078125, 0.006900787353515625, -0.0118560791015625, 0.00809478759765625, 0.01421356201171875, -0.02288818359375, 0.006587982177734375, 0.024871826171875, -0.005451202392578125, -0.0032958984375, 0.005161285400390625, -0.0099945068359375, 0.041717529296875, 0.08013916015625, 0.10443115234375, -0.11651611328125, 0.026519775390625, 0.04205322265625, -0.0050506591796875, 0.0247039794921875, -0.00901031494140625, 0.01251220703125, -0.029144287109375, 0.033843994140625, -0.0013132095336914062, -0.03021240234375, -0.00909423828125, -0.027984619140625, -0.0197601318359375, -0.004093170166015625, -0.01934814453125, 0.023590087890625, -0.0164947509765625, 0.052947998046875, 0.02532958984375, 0.044189453125, 0.020599365234375, 0.0055999755859375, 0.0009984970092773438, -0.047332763671875, -0.06951904296875, -0.041717529296875, -0.036224365234375, -0.057769775390625, 0.025360107421875, -0.0001646280288696289, 0.030120849609375, 0.048614501953125, -0.02032470703125, 0.0077972412109375, 0.00907135009765625, -0.01529693603515625, -0.047271728515625, -0.04156494140625, 0.03375244140625, -0.001667022705078125, -0.052337646484375, 0.034332275390625, -0.030303955078125, -0.04327392578125, -0.01151275634765625, -0.0299530029296875, 0.07122802734375, -0.0255584716796875, -0.01245880126953125, 0.0227508544921875, -0.003345489501953125, -0.0229339599609375, -0.006465911865234375, -0.01332855224609375, -0.0628662109375, -0.0202789306640625, -0.01806640625, -0.034942626953125, 0.0162506103515625, -0.00568389892578125, -0.0218505859375, 0.09869384765625, -0.0214080810546875, -0.01152801513671875, 0.018890380859375, 0.049346923828125, -0.0246429443359375, 0.047271728515625, -0.046630859375, 0.0316162109375, 0.0115966796875, -0.0014190673828125, -0.0312347412109375, 0.01401519775390625, -0.033111572265625, -0.0173797607421875, -0.0247650146484375, -0.01210784912109375, 0.005748748779296875, 0.01593017578125, 0.062255859375, 0.041351318359375, 0.03070068359375, -0.0076141357421875, 0.00211334228515625, 0.01806640625, 0.078125, -0.0282135009765625, 0.0236663818359375, 0.01287841796875, 0.0156707763671875, 0.031951904296875, 0.0018177032470703125, 0.00716400146484375, 0.0012178421020507812, 0.0168609619140625, 0.029205322265625, -0.0214996337890625, -0.0122528076171875, -0.045013427734375, -0.006092071533203125, 0.006114959716796875, 0.0005650520324707031, -0.03729248046875, 0.0150909423828125, -0.025726318359375, 0.0418701171875, 0.0076751708984375, -0.0252838134765625, 0.00399017333984375, -0.01352691650390625, -0.0059356689453125, 0.004772186279296875, -0.0235443115234375, 0.0254974365234375, 0.006755828857421875, 0.050506591796875, 0.051055908203125, 0.00624847412109375, 0.0009288787841796875, 0.04266357421875, 0.0712890625, 0.0633544921875, -0.04986572265625, -0.0240325927734375, 0.01416778564453125, -0.0039005279541015625, -0.01678466796875, -0.012298583984375, -0.025634765625, -0.0029354095458984375, 0.03265380859375, -0.037445068359375, 0.006206512451171875, 0.021148681640625, 0.007022857666015625, -0.0012807846069335938, 0.0158233642578125, -0.0361328125, -0.001018524169921875, -0.0191802978515625, 0.0237579345703125, 0.0030384063720703125, 0.01049041748046875, -0.0198516845703125, 0.02874755859375, -0.01068878173828125, 0.0162200927734375, -0.0197601318359375, 0.07403564453125, -0.046630859375, 0.044708251953125, -0.0845947265625, -0.10516357421875, -0.01348876953125, 0.06170654296875, 0.0197296142578125, 0.03521728515625, 0.041961669921875, 0.040191650390625, -0.00356292724609375, 0.01053619384765625, 0.08612060546875, -0.01410675048828125, -0.041656494140625, -0.00251007080078125, -0.0178985595703125, 0.03497314453125, -0.0056610107421875, 0.009613037109375, 0.02410888671875, 0.01763916015625, -0.0002162456512451172, 0.0012340545654296875, 0.0002124309539794922, -0.006397247314453125, 0.03887939453125, -0.0021076202392578125, 0.03094482421875, 0.007297515869140625, 0.0260009765625, -0.004180908203125, -0.0088958740234375, 0.00868988037109375, -0.025238037109375, 0.004505157470703125, 0.0229034423828125, 0.010589599609375, -0.0089874267578125, -0.017181396484375, 0.00254058837890625, 0.029327392578125, -0.007732391357421875, 0.012786865234375, 0.039215087890625, -0.00334930419921875, 0.01364898681640625, 0.0083160400390625, 0.048919677734375, 0.01488494873046875, -0.01287841796875, 0.0291748046875, -0.01064300537109375, 0.005313873291015625, 0.0205230712890625, 0.035614013671875, -0.00988006591796875, -0.007171630859375, 0.0408935546875, -0.00646209716796875, 0.00611114501953125, -0.01346588134765625, -0.011138916015625, 0.005413055419921875, 0.033355712890625, -0.0196685791015625, -0.0032806396484375, -0.02020263671875, 0.031707763671875, 0.0019159317016601562, -0.00792694091796875, -0.004070281982421875, -0.00595855712890625, 0.053009033203125, 0.0080108642578125, 0.01043701171875, 0.03070068359375, 0.024658203125, 0.039337158203125, -0.003238677978515625, 0.007183074951171875, 0.01151275634765625, -0.04180908203125, 0.006084442138671875, 0.0146026611328125, -0.026214599609375, 0.03778076171875, -0.02288818359375, -0.0219268798828125, 0.0067138671875, 0.0218048095703125, -0.01678466796875, -0.00684356689453125, 0.0266876220703125, -0.009796142578125, -0.01873779296875, 0.01264190673828125, -0.0178680419921875, 0.0003840923309326172, -0.022186279296875, 0.0136871337890625, 0.015411376953125, -0.01439666748046875, -0.0010023117065429688, -0.0164031982421875, -0.03564453125, -0.0084686279296875, 0.0015239715576171875, -0.031402587890625, 0.0196380615234375, 0.024017333984375, 0.00007593631744384766, -0.0017681121826171875, -0.05889892578125, 0.0233612060546875, -0.01290130615234375, 0.0390625, -0.0484619140625, -0.0013332366943359375, 0.021575927734375, 0.05548095703125, -0.0379638671875, 0.0099334716796875, 0.0065765380859375, -0.0347900390625, 0.00925445556640625, 0.006961822509765625, 0.0027828216552734375, -0.0111236572265625, -0.0233917236328125, 0.03460693359375, 0.02679443359375, 0.06951904296875, -0.0016269683837890625, -0.02294921875, 0.0226898193359375, -0.005496978759765625, -0.01025390625, -0.053466796875, 0.01763916015625, -0.0670166015625, -0.0158843994140625, -0.0302734375, 0.0255584716796875, 0.03717041015625, -0.038787841796875, -0.08270263671875, 0.057281494140625, -0.023162841796875, -0.0229644775390625, 0.019195556640625, -0.034759521484375, -0.00946044921875, 0.004901885986328125, 0.0039215087890625, -0.003726959228515625, -0.04656982421875, 0.01251220703125, -0.017547607421875, 0.0474853515625, 0.006153106689453125, -0.0172119140625, -0.002079010009765625, -0.004375457763671875, -0.00951385498046875, 0.0019330978393554688, -0.01027679443359375, -0.007564544677734375, 0.0460205078125, 0.05731201171875, 0.01235198974609375, -0.0200958251953125, 0.0260772705078125, -0.060333251953125, 0.01280975341796875, -0.0260162353515625, -0.0228424072265625, -0.01910400390625, 0.037506103515625, 0.0305938720703125, 0.012664794921875, -0.0153656005859375, -0.064453125, -0.0296630859375, -0.006404876708984375, -0.02630615234375, 0.0333251953125, -0.09832763671875, -0.0108795166015625, 0.01178741455078125, -0.0229339599609375, -0.004604339599609375, 0.0080108642578125, -0.027252197265625, -0.005428314208984375, 0.025360107421875, -0.013671875, -0.02862548828125, -0.016937255859375, 0.034698486328125, -0.020782470703125, -0.01739501953125, 0.0036773681640625, 0.0162811279296875, 0.003810882568359375, 0.0215301513671875, -0.0260009765625, 0.0086517333984375, 0.00726318359375, 0.01080322265625, 0.0136566162109375, -0.004817962646484375, 0.027252197265625, 0.0256195068359375, 0.0011358261108398438, 0.0191192626953125, -0.00762939453125, 0.0108642578125, -0.0283203125, 0.073974609375, 0.01068115234375, 0.029541015625, -0.00969696044921875, 0.07647705078125, -0.0199127197265625, 0.056488037109375, 0.01096343994140625, -0.0236358642578125, 0.025482177734375, -0.0167999267578125, -0.005924224853515625, 0.01508331298828125, 0.0104827880859375, -0.0576171875, 0.06317138671875, 0.049224853515625, 0.014556884765625, 0.040069580078125 ]
1caa6b0a32e3d704a81886e97242dfc6e2a76d89
Wordpress Stackexchange Q: How can I manually upgrade translations? I've recently upgraded a Wordpress site to the latest WP version (3.9). I also upgraded the themes and plug-ins that needed it. Unfortunately, WP's automatic upgrade features are not compatible with the server this site is installed on, so I have to do it manually. What bothers me is that I still have a red "1" on the Dashboard menu, telling me there's an update available. When I consult the details, everything is empty, except for the "Translations" section, at the bottom of the page. How do I upgrade these manually? As I said, I can't just let WP do it automatically because it doesn't work. I've checked the "languages" folder in "wp-content" and made sure it only contains the files from the new WP archive. I don't know where else to look. Thanks in advance. A: quick-and-dirty hint to solve this problem: * *find the function list_translation_updates() in wp-admin/update-core.php $updates = wp_get_translation_updates(); if ( ! $updates ) <- locate the if ... } else { <- add this print_r ( $updates ); } *add the else-case and save the file *reload the dashboard page and you will get the desired information.
Q: How can I manually upgrade translations? I've recently upgraded a Wordpress site to the latest WP version (3.9). I also upgraded the themes and plug-ins that needed it. Unfortunately, WP's automatic upgrade features are not compatible with the server this site is installed on, so I have to do it manually. What bothers me is that I still have a red "1" on the Dashboard menu, telling me there's an update available. When I consult the details, everything is empty, except for the "Translations" section, at the bottom of the page. How do I upgrade these manually? As I said, I can't just let WP do it automatically because it doesn't work. I've checked the "languages" folder in "wp-content" and made sure it only contains the files from the new WP archive. I don't know where else to look. Thanks in advance. A: quick-and-dirty hint to solve this problem: * *find the function list_translation_updates() in wp-admin/update-core.php $updates = wp_get_translation_updates(); if ( ! $updates ) <- locate the if ... } else { <- add this print_r ( $updates ); } *add the else-case and save the file *reload the dashboard page and you will get the desired information. A: Similar to @wp_quick_and_dirty's solution, but without editing core files. Add this to your functions.php file: function translation_updates_list() { $translation_updates = wp_get_translation_updates(); if ( empty($translation_updates) ) { return; } echo "<h4>Available translations</h4><pre>"; echo esc_html( print_r($translation_updates, true) ); echo "</pre>"; } add_action('core_upgrade_preamble', 'translation_updates_list'); Based on this even fancier solution: https://gist.github.com/swissspidy/e2d1cde667fa4da4db66 A: Sooo, apparently the problem was simply that I had forgotten to also upload the new wp-content/languages folder that came with the new WP version. The official doc (at least in French) recommends not to upload the wp-content folder during the upgrade process (because it contains all the personal files), which is why I had neglected that step. Apparently, simply replacing the old languages folder with the new one is enough. WP now says that my translations are up to date. Problem solved. :)
wordpress
{ "language": "en", "length": 332, "provenance": "stackexchange_00019.jsonl.gz:444625", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142448" }
[ 0.0023708343505859375, -0.0219879150390625, -0.0009737014770507812, 0.0005259513854980469, -0.020050048828125, -0.008026123046875, 0.0210723876953125, -0.0153350830078125, 0.0273895263671875, 0.047088623046875, -0.033294677734375, -0.012542724609375, 0.008544921875, 0.0019378662109375, -0.060577392578125, -0.03167724609375, 0.066650390625, -0.04010009765625, 0.039154052734375, 0.007137298583984375, 0.0098724365234375, 0.044189453125, 0.053863525390625, 0.059295654296875, 0.006092071533203125, -0.0285186767578125, 0.04833984375, -0.018798828125, -0.0017766952514648438, -0.0234375, 0.015899658203125, 0.00684356689453125, -0.005870819091796875, 0.02197265625, -0.0118560791015625, -0.06243896484375, 0.015777587890625, -0.007213592529296875, -0.0283660888671875, 0.07269287109375, 0.013702392578125, -0.018890380859375, -0.0009350776672363281, -0.01316070556640625, 0.00244903564453125, -0.032318115234375, 0.02508544921875, -0.0472412109375, -0.0007319450378417969, 0.004364013671875, 0.0129241943359375, 0.0164947509765625, 0.0208282470703125, 0.0266571044921875, 0.0051422119140625, -0.005008697509765625, -0.043243408203125, 0.07562255859375, 0.0150299072265625, 0.0234375, -0.01898193359375, 0.027099609375, -0.00432586669921875, -0.0306396484375, -0.02423095703125, 0.0128021240234375, 0.07080078125, -0.004657745361328125, -0.045440673828125, -0.04925537109375, 0.033172607421875, 0.0030193328857421875, 0.00423431396484375, -0.033416748046875, 0.040252685546875, 0.0205078125, -0.031402587890625, -0.01702880859375, 0.01497650146484375, 0.0238800048828125, 0.04913330078125, 0.01471710205078125, 0.03924560546875, -0.00975799560546875, 0.0214691162109375, 0.01160430908203125, -0.005870819091796875, -0.0296783447265625, -0.03857421875, -0.0164031982421875, -0.019989013671875, -0.01270294189453125, -0.08319091796875, 0.0269622802734375, 0.0267181396484375, -0.027679443359375, 0.01511383056640625, 0.065185546875, -0.0435791015625, 0.01953125, -0.0190582275390625, -0.027618408203125, 0.04815673828125, -0.051239013671875, 0.004367828369140625, -0.0226898193359375, -0.01361083984375, -0.01454925537109375, 0.048431396484375, 0.0477294921875, -0.0045166015625, 0.08001708984375, -0.0179901123046875, -0.050506591796875, 0.0012722015380859375, 0.0606689453125, -0.01282501220703125, 0.0220489501953125, 0.00957489013671875, 0.0242767333984375, -0.0175933837890625, 0.0186767578125, -0.064453125, 0.00875091552734375, 0.00830841064453125, -0.0206756591796875, 0.01372528076171875, 0.040924072265625, -0.00445556640625, 0.0160980224609375, -0.038970947265625, 0.0027446746826171875, 0.034149169921875, 0.0185699462890625, -0.006343841552734375, -0.026092529296875, 0.01403045654296875, 0.0199432373046875, 0.021270751953125, 0.016021728515625, 0.0175628662109375, -0.046173095703125, -0.03240966796875, 0.028045654296875, 0.0139617919921875, -0.011993408203125, 0.0091705322265625, 0.037689208984375, 0.01174163818359375, -0.01335906982421875, 0.05401611328125, -0.035247802734375, 0.05535888671875, -0.00447845458984375, 0.007701873779296875, -0.03814697265625, 0.053466796875, -0.044830322265625, -0.0100250244140625, -0.045623779296875, -0.02587890625, -0.039093017578125, -0.0232086181640625, -0.001220703125, -0.023773193359375, 0.064208984375, 0.01519775390625, 0.01035308837890625, 0.02545166015625, 0.022857666015625, 0.0018510818481445312, 0.0011816024780273438, 0.05108642578125, -0.005481719970703125, -0.014923095703125, 0.0005345344543457031, -0.036529541015625, -0.001552581787109375, 0.037200927734375, 0.007076263427734375, 0.00003224611282348633, -0.00925445556640625, 0.03961181640625, 0.005229949951171875, -0.0263519287109375, -0.00824737548828125, -0.0005125999450683594, 0.0399169921875, 0.062744140625, 0.019287109375, -0.03662109375, -0.03411865234375, -0.0303802490234375, 0.031341552734375, -0.01250457763671875, -0.0027790069580078125, -0.0070953369140625, 0.03619384765625, -0.0201416015625, -0.028839111328125, 0.00026702880859375, 0.0012416839599609375, -0.0146331787109375, -0.0011358261108398438, -0.06658935546875, 0.0041656494140625, -0.0265045166015625, 0.0418701171875, 0.04449462890625, 0.0006270408630371094, 0.0024318695068359375, -0.00653839111328125, -0.01369476318359375, 0.0028133392333984375, -0.061279296875, -0.00457763671875, -0.025390625, 0.0196533203125, -0.0072021484375, 0.026611328125, 0.010498046875, -0.031646728515625, 0.01380157470703125, 0.02459716796875, 0.01317596435546875, 0.0114288330078125, -0.012054443359375, 0.0017824172973632812, 0.04766845703125, 0.00012195110321044922, 0.03179931640625, 0.007015228271484375, -0.01556396484375, -0.01374053955078125, -0.012664794921875, 0.015716552734375, -0.002536773681640625, -0.045989990234375, -0.0014200210571289062, 0.045074462890625, 0.036895751953125, -0.020538330078125, -0.00891876220703125, 0.004077911376953125, 0.0291748046875, -0.041839599609375, 0.000024020671844482422, 0.009796142578125, -0.018218994140625, 0.052520751953125, -0.0016345977783203125, 0.00962066650390625, -0.0086212158203125, -0.05804443359375, -0.0207366943359375, 0.04779052734375, -0.0099029541015625, -0.004352569580078125, -0.025054931640625, -0.004329681396484375, 0.0031375885009765625, -0.10198974609375, -0.04791259765625, -0.03253173828125, 0.044464111328125, -0.024627685546875, 0.0211639404296875, 0.015716552734375, -0.026947021484375, -0.015716552734375, 0.033416748046875, 0.0222320556640625, 0.013946533203125, 0.01186370849609375, -0.0814208984375, 0.01178741455078125, 0.0323486328125, 0.008087158203125, -0.0361328125, -0.0224761962890625, -0.0169525146484375, 0.04205322265625, 0.0031890869140625, -0.027587890625, -0.00994110107421875, -0.03594970703125, 0.0008254051208496094, -0.041839599609375, -0.0301055908203125, -0.0219879150390625, 0.032196044921875, 0.0014772415161132812, -0.032867431640625, 0.006420135498046875, 0.01212310791015625, -0.02081298828125, 0.06610107421875, -0.0311431884765625, 0.0161285400390625, -0.01116180419921875, 0.053192138671875, 0.047332763671875, 0.004573822021484375, -0.0207672119140625, 0.00719451904296875, -0.018310546875, 0.0207061767578125, -0.0016717910766601562, -0.016326904296875, 0.0159759521484375, -0.07708740234375, -0.0016813278198242188, 0.010711669921875, 0.00476837158203125, -0.03973388671875, -0.04840087890625, -0.0458984375, -0.02056884765625, -0.1431884765625, -0.0794677734375, -0.01934814453125, -0.0264892578125, -0.018585205078125, 0.0037689208984375, -0.01556396484375, 0.00017023086547851562, 0.0035266876220703125, 0.003986358642578125, 0.0149383544921875, 0.004650115966796875, -0.081298828125, -0.04180908203125, -0.0960693359375, -0.0273895263671875, -0.00884246826171875, 0.0243377685546875, 0.00856781005859375, -0.0162200927734375, -0.01441192626953125, -0.028656005859375, -0.0167083740234375, 0.06573486328125, 0.0033321380615234375, -0.0254364013671875, 0.025238037109375, -0.03662109375, 0.048858642578125, 0.0010385513305664062, 0.0221710205078125, 0.04962158203125, -0.037384033203125, -0.01190948486328125, -0.0014820098876953125, 0.028228759765625, 0.022796630859375, -0.046844482421875, -0.0096435546875, 0.030120849609375, -0.0126953125, -0.0172882080078125, -0.016448974609375, 0.005523681640625, -0.011138916015625, 0.0555419921875, -0.01523590087890625, -0.02850341796875, 0.012847900390625, 0.0316162109375, -0.01453399658203125, 0.0087738037109375, 0.0308685302734375, 0.01507568359375, -0.034576416015625, -0.0228424072265625, -0.057647705078125, -0.021697998046875, 0.018585205078125, -0.0197601318359375, 0.0289764404296875, 0.0017261505126953125, 0.01343536376953125, -0.00229644775390625, -0.00492095947265625, -0.0277099609375, -0.051422119140625, 0.04608154296875, -0.05743408203125, -0.005489349365234375, -0.0303497314453125, -0.027862548828125, -0.00458526611328125, 0.0882568359375, -0.00994873046875, -0.02288818359375, 0.01166534423828125, 0.036102294921875, -0.04107666015625, -0.02301025390625, -0.006183624267578125, -0.00438690185546875, -0.0172119140625, -0.0187225341796875, -0.0291595458984375, 0.0030460357666015625, -0.044769287109375, 0.046661376953125, -0.0099945068359375, -0.0170135498046875, 0.037628173828125, 0.02203369140625, -0.041595458984375, 0.0046844482421875, -0.04718017578125, -0.0237884521484375, -0.03741455078125, 0.037506103515625, -0.08001708984375, -0.005840301513671875, -0.0360107421875, 0.04022216796875, 0.01427459716796875, 0.0011501312255859375, -0.022216796875, 0.016632080078125, -0.0025615692138671875, 0.000247955322265625, -0.0099639892578125, 0.01666259765625, -0.0169677734375, 0.003551483154296875, -0.0045928955078125, -0.014312744140625, -0.005767822265625, -0.01678466796875, -0.038421630859375, 0.031524658203125, -0.022552490234375, 0.038116455078125, 0.005023956298828125, -0.0285797119140625, -0.0343017578125, -0.044281005859375, -0.027252197265625, 0.0163726806640625, -0.0290679931640625, 0.0168914794921875, -0.04327392578125, -0.055145263671875, 0.07281494140625, 0.0006165504455566406, -0.017822265625, 0.0059661865234375, 0.06329345703125, 0.0029048919677734375, -0.039031982421875, -0.06292724609375, -0.0065460205078125, 0.057830810546875, 0.051177978515625, 0.0017347335815429688, 0.03399658203125, -0.060028076171875, 0.05499267578125, 0.07183837890625, 0.01451873779296875, 0.018768310546875, -0.025054931640625, 0.032073974609375, -0.00925445556640625, 0.0005755424499511719, 0.042144775390625, -0.031646728515625, 0.058837890625, 0.00206756591796875, -0.047760009765625, 0.003620147705078125, 0.04034423828125, -0.03125, 0.0458984375, -0.01525115966796875, -0.05120849609375, 0.01192474365234375, 0.05059814453125, -0.037445068359375, -0.00830841064453125, 0.007724761962890625, -0.0242156982421875, -0.01255035400390625, 0.00835418701171875, -0.012939453125, -0.004581451416015625, 0.003322601318359375, 0.037689208984375, -0.0130462646484375, 0.007965087890625, -0.001865386962890625, -0.024200439453125, 0.040618896484375, -0.0255889892578125, -0.07012939453125, 0.01483154296875, -0.0108184814453125, 0.057098388671875, 0.060028076171875, 0.022491455078125, 0.035736083984375, 0.00124359130859375, -0.0174407958984375, -0.01519775390625, 0.0020599365234375, -0.0274810791015625, -0.044525146484375, -0.041259765625, -0.00591278076171875, -0.030242919921875, 0.002170562744140625, 0.04425048828125, -0.04071044921875, 0.033233642578125, -0.004497528076171875, -0.00963592529296875, 0.004146575927734375, -0.0008826255798339844, 0.00853729248046875, 0.04205322265625, 0.0203857421875, -0.0290985107421875, 0.051422119140625, -0.024139404296875, -0.01165771484375, 0.009765625, 0.03582763671875, -0.02392578125, -0.00850677490234375, 0.01314544677734375, -0.026885986328125, -0.016632080078125, 0.049835205078125, 0.04412841796875, -0.0295257568359375, -0.0281524658203125, 0.02667236328125, 0.03240966796875, -0.006587982177734375, -0.0187225341796875, 0.03277587890625, -0.05169677734375, -0.01409912109375, 0.04974365234375, -0.038604736328125, -0.00957489013671875, -0.00786590576171875, 0.0124359130859375, -0.01148223876953125, -0.019866943359375, -0.0162353515625, -0.00638580322265625, 0.00048351287841796875, -0.0038604736328125, 0.0104522705078125, 0.01611328125, -0.032989501953125, 0.00371551513671875, -0.01503753662109375, 0.0277099609375, 0.01357269287109375, 0.0099639892578125, -0.07061767578125, -0.027313232421875, -0.01209259033203125, -0.0294342041015625, -0.034332275390625, -0.051910400390625, -0.037872314453125, -0.056671142578125, 0.004665374755859375, -0.007007598876953125, 0.017791748046875, -0.01000213623046875, -0.00218963623046875, -0.032257080078125, 0.0312347412109375, 0.02362060546875, 0.040435791015625, 0.01471710205078125, 0.03704833984375, 0.019805908203125, 0.027008056640625, 0.03167724609375, 0.04534912109375, -0.0261383056640625, -0.034881591796875, 0.007747650146484375, 0.002960205078125, -0.01070404052734375, -0.0097198486328125, 0.0032329559326171875, -0.039093017578125, -0.0010042190551757812, -0.005489349365234375, 0.0007023811340332031, -0.01296234130859375, 0.0127105712890625, -0.0080718994140625, 0.013824462890625, -0.012176513671875, -0.009063720703125, 0.021575927734375, -0.0258941650390625, 0.0083160400390625, -0.0251312255859375, 0.017852783203125, 0.0162353515625, -0.03521728515625, -0.005199432373046875, 0.03118896484375, -0.026458740234375, 0.0474853515625, 0.052459716796875, -0.0014667510986328125, 0.04058837890625, 0.0258941650390625, 0.0086669921875, 0.00249481201171875, -0.0228271484375, 0.0279693603515625, 0.0204315185546875, 0.0181121826171875, -0.0262908935546875, 0.00814056396484375, -0.011260986328125, -0.0159912109375, 0.005817413330078125, 0.059783935546875, 0.056610107421875, -0.062347412109375, -0.0037136077880859375, 0.0107879638671875, -0.049835205078125, -0.00994110107421875, 0.0217132568359375, -0.0625, -0.08038330078125, 0.045562744140625, -0.09259033203125, -0.02783203125, -0.0024089813232421875, -0.0023784637451171875, 0.002010345458984375, 0.00867462158203125, 0.043487548828125, 0.01105499267578125, -0.01326751708984375, -0.034271240234375, 0.00901031494140625, -0.00240325927734375, 0.01236724853515625, -0.01953125, -0.006885528564453125, -0.04730224609375, -0.04351806640625, -0.020599365234375, -0.037506103515625, -0.01152801513671875, -0.0433349609375, 0.006458282470703125, 0.030120849609375, 0.0640869140625, -0.029510498046875, 0.0010023117065429688, 0.047149658203125, 0.02001953125, 0.01739501953125, -0.0194854736328125, 0.0177764892578125, 0.0325927734375, -0.0263214111328125, 0.0173797607421875, 0.008087158203125, -0.0308685302734375, -0.004970550537109375, -0.053253173828125, 0.054046630859375, -0.005340576171875, -0.004230499267578125, 0.042266845703125, -0.0207977294921875, -0.04486083984375, 0.027587890625, 0.01360321044921875, -0.05657958984375, -0.05877685546875, 0.0259857177734375, -0.07232666015625, -0.023406982421875, 0.0239715576171875, -0.05126953125, 0.09735107421875, 0.0218048095703125, -0.02313232421875, -0.0182952880859375, 0.05902099609375, -0.04681396484375, 0.0283355712890625, -0.01236724853515625, 0.0270538330078125, -0.0119476318359375, 0.004489898681640625, -0.054779052734375, -0.007236480712890625, -0.01849365234375, 0.04119873046875, -0.01317596435546875, -0.00450897216796875, 0.003452301025390625, 0.0028362274169921875, 0.0203094482421875, 0.02581787109375, 0.012664794921875, 0.015380859375, 0.00826263427734375, 0.03704833984375, 0.032440185546875, -0.02618408203125, 0.0467529296875, -0.05078125, -0.024871826171875, 0.00899505615234375, 0.00792694091796875, -0.0090179443359375, 0.0029659271240234375, 0.0185394287109375, -0.05157470703125, -0.0016527175903320312, 0.0261077880859375, -0.00457763671875, 0.044219970703125, 0.0018482208251953125, -0.006130218505859375, 0.0435791015625, 0.024261474609375, -0.004608154296875, 0.0213623046875, -0.014373779296875, -0.0028514862060546875, 0.011932373046875, 0.0129547119140625, -0.01788330078125, -0.01424407958984375, 0.007671356201171875, 0.00530242919921875, -0.01525115966796875, 0.04833984375, 0.02630615234375, 0.048736572265625, 0.0333251953125, 0.0210113525390625, -0.0080413818359375, 0.03460693359375, -0.030853271484375, -0.01032257080078125, -0.0035552978515625, -0.0294189453125, 0.009063720703125, -0.006893157958984375, 0.00994873046875, 0.031951904296875, -0.0089874267578125, -0.0140838623046875, -0.0164031982421875, -0.0084991455078125, -0.0046844482421875, -0.005229949951171875, 0.01953125, 0.03717041015625, -0.006084442138671875, -0.058929443359375, 0.07257080078125, 0.035400390625, 0.05072021484375, -0.061920166015625, 0.10418701171875, -0.036895751953125, 0.0007462501525878906, -0.0031147003173828125, 0.040679931640625, -0.0144805908203125, 0.002994537353515625, -0.024139404296875, -0.05670166015625, -0.016265869140625, 0.035797119140625, -0.01922607421875, -0.03369140625, 0.036895751953125, 0.0650634765625, -0.050506591796875, -0.039520263671875, 0.04156494140625, -0.00997161865234375, 0.0011701583862304688, -0.01500701904296875, 0.024017333984375, 0.034759521484375, 0.004550933837890625, -0.0165863037109375, 0.054534912109375, 0.025177001953125, -0.01776123046875, 0.0222930908203125, 0.0032100677490234375, -0.0242767333984375, 0.032440185546875, 0.032470703125, 0.060394287109375, 0.042755126953125, -0.02288818359375, -0.0143280029296875, 0.0025997161865234375, -0.0194549560546875, -0.00634002685546875, 0.01678466796875, -0.02069091796875, 0.0252532958984375, -0.021942138671875, 0.01474761962890625, 0.00391387939453125, -0.041656494140625, 0.0236358642578125, 0.022735595703125, 0.0114593505859375, 0.022003173828125, -0.006603240966796875, -0.0231170654296875, 0.0016050338745117188, 0.0426025390625, 0.01995849609375, 0.03704833984375, -0.00414276123046875, 0.033355712890625, -0.0408935546875, 0.009521484375, -0.0416259765625, -0.045013427734375, 0.023773193359375, 0.0037479400634765625, -0.0018157958984375, -0.00004661083221435547, -0.069580078125, 0.0499267578125, 0.01076507568359375, 0.017974853515625, 0.04241943359375, -0.0216064453125, 0.009613037109375, 0.00958251953125, 0.0020313262939453125, -0.043212890625, -0.08026123046875, -0.047149658203125, 0.005298614501953125, -0.0220489501953125, -0.02081298828125, -0.01262664794921875, 0.0114898681640625, -0.011260986328125, 0.0010471343994140625, 0.0170745849609375, 0.01413726806640625, -0.0038318634033203125, 0.02557373046875, -0.043914794921875, 0.0300140380859375, 0.0251007080078125, -0.01093292236328125, 0.01116943359375, 0.0077972412109375, 0.026611328125, 0.0024242401123046875, 0.01436614990234375, -0.039031982421875, -0.01284027099609375, -0.0041046142578125, -0.035614013671875, 0.0025081634521484375, -0.006504058837890625, -0.01195526123046875, 0.00409698486328125, 0.022308349609375, -0.01334381103515625, -0.01468658447265625, -0.002685546875, 0.0036602020263671875, 0.01088714599609375, -0.005859375, -0.04913330078125, 0.01042938232421875, 0.00666046142578125, -0.00972747802734375, -0.032562255859375, 0.025726318359375, -0.01348114013671875, 0.034423828125, -0.05950927734375, -0.0270538330078125, 0.012847900390625, 0.0242919921875, -0.019287109375, -0.005916595458984375, -0.0318603515625, -0.01088714599609375, -0.0253753662109375, -0.0143890380859375, 0.0006251335144042969, 0.01300811767578125, 0.00989532470703125, -0.01343536376953125, -0.01031494140625, 0.0304107666015625, -0.0009446144104003906, -0.01447296142578125, 0.0631103515625, -0.049957275390625, -0.0304718017578125, -0.08056640625, 0.010955810546875, -0.1331787109375, -0.006977081298828125, -0.01157379150390625, -0.000012099742889404297, 0.021026611328125, -0.03924560546875, -0.09228515625, 0.0252227783203125, -0.015350341796875, -0.040283203125, -0.04864501953125, -0.0166168212890625, -0.0290679931640625, 0.04034423828125, -0.01214599609375, -0.0196380615234375, -0.01200103759765625, 0.061767578125, 0.0219268798828125, 0.052398681640625, -0.005344390869140625, 0.0228729248046875, -0.0259857177734375, 0.028411865234375, 0.0217742919921875, 0.01403045654296875, -0.0003559589385986328, -0.021942138671875, 0.0179290771484375, 0.00334930419921875, -0.057861328125, -0.0272979736328125, 0.005645751953125, 0.042327880859375, -0.0004279613494873047, -0.03179931640625, -0.03558349609375, -0.039764404296875, 0.05804443359375, 0.0155029296875, 0.01192474365234375, 0.00872039794921875, 0.03045654296875, 0.043212890625, 0.0178985595703125, -0.000027060508728027344, -0.018798828125, -0.00027751922607421875, -0.030731201171875, -0.0263671875, -0.010223388671875, -0.024261474609375, 0.0237579345703125, -0.0233154296875, -0.0086669921875, -0.0004532337188720703, -0.0197296142578125, -0.0018138885498046875, -0.034820556640625, 0.10400390625, -0.040130615234375, 0.00766754150390625, 0.0140380859375, 0.0204925537109375, 0.0557861328125, 0.007801055908203125, -0.0063018798828125, 0.037445068359375, -0.0032501220703125, 0.0209197998046875, 0.0153656005859375, -0.0216827392578125, -0.005859375, 0.00850677490234375, 0.00046896934509277344, 0.0233917236328125, 0.016448974609375, 0.02911376953125, -0.04608154296875, 0.0609130859375, 0.0207672119140625, 0.01027679443359375, 0.00765228271484375, 0.028289794921875, -0.0035858154296875, 0.0238189697265625, -0.04840087890625, 0.0036525726318359375, -0.0345458984375, -0.03997802734375, 0.0159454345703125, -0.01209259033203125, 0.0008611679077148438, -0.0225830078125, 0.0018014907836914062, -0.0350341796875, -0.0112457275390625, 0.008758544921875 ]
71d9c619f63beb005accdc141dbb6be031521d4c
Wordpress Stackexchange Q: date_i18n() issue I'm trying to use date_i18n() to display a localised date in my theme. <?php echo date_i18n( 'F j, Y', strtotime( get_the_time( "Y-m-d" ) ) ); ?> However, this always returns the English version of the month, rather than the French version. I'm using wordpress as a network. My primary site has the default WPLANG (so english), and I'm setting the second site to french by setting the WPLANG to fr_FR in site-settings. Other translations on the page are working fine, so wordpress is aware that the language is different. I downloaded the necessary .mo and .po files for French, but it doesn't have months in there, so I assume there's somewhere else these are set/used. Any help would be appreciated as I've been stumped by this for hours. A: date_i18n() gets month from WP_Locale->get_month(). Which in turn fills months using baseline translation function __(), nothing fancy. Bottom line is — months should be translated in po/mo files, you just got incomplete translation.
Q: date_i18n() issue I'm trying to use date_i18n() to display a localised date in my theme. <?php echo date_i18n( 'F j, Y', strtotime( get_the_time( "Y-m-d" ) ) ); ?> However, this always returns the English version of the month, rather than the French version. I'm using wordpress as a network. My primary site has the default WPLANG (so english), and I'm setting the second site to french by setting the WPLANG to fr_FR in site-settings. Other translations on the page are working fine, so wordpress is aware that the language is different. I downloaded the necessary .mo and .po files for French, but it doesn't have months in there, so I assume there's somewhere else these are set/used. Any help would be appreciated as I've been stumped by this for hours. A: date_i18n() gets month from WP_Locale->get_month(). Which in turn fills months using baseline translation function __(), nothing fancy. Bottom line is — months should be translated in po/mo files, you just got incomplete translation.
wordpress
{ "language": "en", "length": 165, "provenance": "stackexchange_00019.jsonl.gz:444635", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142486" }
[ -0.045745849609375, -0.03662109375, -0.0296630859375, -0.023773193359375, -0.0265350341796875, -0.0102081298828125, -0.00762939453125, 0.029144287109375, -0.00704193115234375, 0.03985595703125, 0.004016876220703125, 0.01015472412109375, -0.0034694671630859375, -0.027374267578125, -0.0211181640625, -0.01471710205078125, 0.035888671875, -0.041107177734375, -0.00910186767578125, -0.0130462646484375, -0.01297760009765625, 0.0157470703125, 0.00524139404296875, -0.0004773139953613281, 0.0408935546875, -0.048553466796875, 0.0653076171875, -0.0299224853515625, 0.04583740234375, -0.016845703125, 0.0364990234375, -0.032318115234375, 0.0296173095703125, 0.0082855224609375, -0.007305145263671875, -0.0289154052734375, -0.0190582275390625, 0.01235198974609375, -0.0188446044921875, 0.0211181640625, 0.0209197998046875, -0.018218994140625, 0.0146942138671875, 0.020050048828125, -0.009063720703125, -0.053253173828125, 0.05169677734375, -0.019989013671875, -0.01419830322265625, 0.04412841796875, 0.0439453125, -0.0044708251953125, 0.045074462890625, 0.045806884765625, -0.01111602783203125, -0.0311737060546875, -0.032135009765625, 0.03375244140625, 0.037567138671875, -0.00913238525390625, -0.0299835205078125, -0.0100860595703125, 0.0221405029296875, -0.01390838623046875, -0.0280303955078125, 0.0291595458984375, 0.020721435546875, 0.00244903564453125, -0.025421142578125, -0.032257080078125, 0.0074615478515625, -0.03131103515625, 0.0019359588623046875, -0.054718017578125, 0.007007598876953125, 0.036468505859375, -0.0242767333984375, -0.00881195068359375, 0.0147857666015625, -0.011749267578125, 0.01107025146484375, 0.038330078125, -0.09033203125, 0.0179443359375, -0.0012989044189453125, 0.05279541015625, -0.019073486328125, -0.038116455078125, -0.06439208984375, -0.07342529296875, -0.04302978515625, -0.033203125, -0.108154296875, -0.0306854248046875, -0.0149688720703125, -0.0364990234375, 0.00775909423828125, 0.035552978515625, -0.023956298828125, -0.007694244384765625, -0.0279541015625, -0.0012531280517578125, -0.038665771484375, -0.0052947998046875, 0.031524658203125, 0.037139892578125, 0.0228118896484375, 0.017974853515625, 0.04473876953125, -0.0145416259765625, -0.01389312744140625, 0.0830078125, -0.0166015625, -0.0533447265625, -0.00977325439453125, 0.06903076171875, 0.0290985107421875, -0.01087188720703125, 0.02728271484375, -0.0303497314453125, 0.0223236083984375, 0.037139892578125, -0.0165863037109375, -0.030120849609375, 0.0183868408203125, 0.00554656982421875, -0.0222320556640625, 0.00213623046875, 0.033111572265625, -0.0160064697265625, -0.0161285400390625, 0.0042877197265625, 0.0130157470703125, 0.01082611083984375, -0.01374053955078125, -0.00521087646484375, 0.061187744140625, -0.037445068359375, 0.001384735107421875, 0.0139312744140625, 0.01092529296875, 0.004322052001953125, -0.00482177734375, -0.003509521484375, -0.060638427734375, -0.012298583984375, -0.0050048828125, 0.0364990234375, 0.0258941650390625, -0.0491943359375, 0.003185272216796875, -0.0236053466796875, 0.0158233642578125, 0.0227203369140625, -0.041961669921875, -0.01016998291015625, -0.004974365234375, -0.0216827392578125, 0.005916595458984375, -0.0400390625, -0.025970458984375, -0.01042938232421875, -0.0238189697265625, -0.038970947265625, -0.063720703125, -0.003215789794921875, 0.031280517578125, -0.003665924072265625, 0.00823211669921875, -0.02703857421875, -0.0196380615234375, 0.0248565673828125, 0.01410675048828125, 0.00026035308837890625, 0.0012426376342773438, 0.0179290771484375, -0.05340576171875, 0.0103607177734375, 0.018218994140625, 0.043731689453125, 0.04351806640625, -0.026763916015625, 0.01270294189453125, 0.048583984375, -0.0094146728515625, -0.04473876953125, 0.0109100341796875, -0.02581787109375, 0.011383056640625, 0.0171051025390625, 0.006870269775390625, 0.034332275390625, -0.043792724609375, 0.049346923828125, 0.019317626953125, -0.0098114013671875, -0.01401519775390625, 0.0258941650390625, 0.0009746551513671875, -0.0634765625, -0.00960540771484375, 0.0236968994140625, -0.00679779052734375, 0.0291290283203125, -0.02130126953125, 0.0288848876953125, -0.03045654296875, 0.034149169921875, -0.007152557373046875, 0.01488494873046875, 0.0228729248046875, -0.0151519775390625, -0.02777099609375, -0.022064208984375, -0.020538330078125, 0.0244140625, 0.00322723388671875, 0.03253173828125, 0.018707275390625, -0.020660400390625, 0.0538330078125, -0.03369140625, 0.050689697265625, 0.054412841796875, 0.025177001953125, -0.007503509521484375, 0.0028972625732421875, -0.00589752197265625, 0.06939697265625, 0.007541656494140625, 0.00904083251953125, 0.0061187744140625, -0.040283203125, -0.0172271728515625, -0.04388427734375, -0.01535797119140625, -0.01329803466796875, -0.033935546875, 0.01800537109375, 0.048248291015625, 0.040008544921875, 0.004730224609375, -0.0012350082397460938, -0.00988006591796875, 0.055999755859375, -0.010009765625, 0.0146636962890625, -0.00821685791015625, 0.0242462158203125, 0.01544189453125, -0.02490234375, -0.04693603515625, 0.0173797607421875, -0.10723876953125, -0.002101898193359375, 0.0362548828125, -0.0400390625, -0.06793212890625, 0.0164031982421875, 0.023101806640625, 0.01910400390625, -0.0338134765625, -0.03546142578125, 0.008575439453125, -0.0055084228515625, -0.042205810546875, -0.016265869140625, -0.0261383056640625, -0.0018873214721679688, -0.01543426513671875, 0.032806396484375, -0.04156494140625, 0.00238800048828125, -0.0113525390625, -0.0609130859375, 0.016021728515625, -0.007358551025390625, 0.03082275390625, -0.00917816162109375, -0.0134429931640625, 0.0110626220703125, 0.055755615234375, -0.003086090087890625, -0.00949859619140625, 0.01351165771484375, -0.017181396484375, -0.024871826171875, 0.01007080078125, -0.01824951171875, -0.0047607421875, 0.031494140625, -0.01418304443359375, -0.0482177734375, 0.01093292236328125, 0.0159454345703125, -0.038299560546875, 0.031982421875, -0.0013179779052734375, 0.01064300537109375, -0.045562744140625, 0.01568603515625, 0.0279998779296875, -0.00946044921875, -0.01415252685546875, -0.00534820556640625, -0.039276123046875, -0.0029582977294921875, 0.0092620849609375, -0.01129150390625, -0.0219879150390625, -0.054290771484375, 0.01593017578125, -0.0012159347534179688, 0.034088134765625, -0.049224853515625, -0.06304931640625, -0.019317626953125, -0.0283966064453125, -0.0977783203125, -0.06793212890625, -0.0302276611328125, -0.0350341796875, 0.015228271484375, 0.0182952880859375, -0.00855255126953125, -0.0138092041015625, 0.036285400390625, 0.018463134765625, 0.022369384765625, -0.0174713134765625, -0.0187225341796875, -0.0203857421875, -0.03759765625, -0.0345458984375, 0.0015859603881835938, 0.0037174224853515625, 0.013519287109375, -0.005970001220703125, -0.0092010498046875, -0.047515869140625, -0.0241851806640625, 0.11651611328125, -0.0045928955078125, -0.045654296875, -0.0164947509765625, 0.0035724639892578125, 0.038848876953125, -0.01397705078125, -0.0455322265625, 0.02166748046875, -0.00980377197265625, -0.0113525390625, -0.00820159912109375, 0.0127105712890625, 0.0230865478515625, -0.0261077880859375, -0.008697509765625, 0.0258026123046875, 0.01849365234375, -0.02752685546875, -0.046905517578125, 0.0012979507446289062, -0.041961669921875, 0.04345703125, 0.0163116455078125, -0.0225982666015625, 0.01212310791015625, 0.01715087890625, -0.01136016845703125, -0.01479339599609375, 0.032470703125, -0.032745361328125, 0.04193115234375, -0.0107574462890625, -0.015167236328125, -0.003986358642578125, 0.03826904296875, 0.00026226043701171875, 0.01538848876953125, 0.00954437255859375, 0.01015472412109375, -0.032745361328125, -0.006389617919921875, -0.07550048828125, -0.050933837890625, 0.0380859375, -0.031707763671875, 0.00212860107421875, -0.019561767578125, -0.0186920166015625, 0.005924224853515625, 0.07965087890625, -0.0219268798828125, -0.0259246826171875, -0.0241851806640625, 0.0287322998046875, -0.041351318359375, -0.0285797119140625, 0.009307861328125, -0.01480865478515625, -0.03521728515625, -0.00666046142578125, -0.0061798095703125, -0.010467529296875, -0.0244903564453125, 0.04498291015625, -0.0250396728515625, -0.027313232421875, 0.0197296142578125, 0.0484619140625, -0.036224365234375, 0.0184326171875, -0.040130615234375, 0.0146942138671875, -0.00598907470703125, 0.0159149169921875, -0.018585205078125, -0.01580810546875, -0.0251007080078125, 0.03515625, 0.037933349609375, -0.034637451171875, -0.0039825439453125, 0.0271453857421875, 0.052520751953125, 0.052947998046875, 0.0010862350463867188, -0.0328369140625, 0.0487060546875, 0.01544952392578125, 0.04229736328125, -0.01544189453125, -0.007381439208984375, 0.0345458984375, -0.03265380859375, 0.047088623046875, 0.0123291015625, 0.00948333740234375, 0.0421142578125, -0.044189453125, 0.0303955078125, 0.0167083740234375, -0.0240478515625, 0.028656005859375, -0.039276123046875, 0.031494140625, 0.0174560546875, -0.0037975311279296875, 0.06390380859375, 0.03662109375, 0.00551605224609375, -0.0162353515625, 0.056793212890625, 0.0169677734375, -0.060394287109375, 0.0154266357421875, 0.039886474609375, 0.0386962890625, 0.00322723388671875, 0.05767822265625, 0.0101318359375, -0.039306640625, 0.09979248046875, 0.028900146484375, -0.0203857421875, 0.01050567626953125, 0.0188140869140625, 0.03167724609375, 0.01064300537109375, -0.01290130615234375, -0.00909423828125, -0.00433349609375, 0.035797119140625, -0.0126495361328125, -0.0017442703247070312, 0.0110626220703125, 0.0208587646484375, -0.03216552734375, 0.0274505615234375, -0.0014696121215820312, -0.06524658203125, 0.03619384765625, -0.060150146484375, -0.036407470703125, -0.04852294921875, 0.01274871826171875, -0.0182952880859375, -0.0090789794921875, 0.0039215087890625, 0.03863525390625, 0.0209197998046875, 0.01006317138671875, 0.050079345703125, 0.01398468017578125, 0.0164337158203125, 0.01024627685546875, -0.0152435302734375, 0.02716064453125, 0.0196685791015625, -0.01259613037109375, 0.00751495361328125, 0.00417327880859375, 0.0225830078125, 0.029754638671875, -0.024993896484375, 0.0018434524536132812, 0.02484130859375, 0.0036754608154296875, 0.01678466796875, 0.0164031982421875, 0.012542724609375, -0.0264739990234375, -0.0113067626953125, 0.0007605552673339844, -0.0019178390502929688, 0.00832366943359375, 0.07373046875, 0.01175689697265625, 0.0283203125, -0.02587890625, 0.018524169921875, 0.01385498046875, 0.07818603515625, 0.026763916015625, -0.08575439453125, 0.00820159912109375, 0.062286376953125, -0.0221099853515625, 0.0023956298828125, -0.0119171142578125, 0.033966064453125, 0.003223419189453125, -0.044036865234375, 0.007625579833984375, 0.01023101806640625, 0.01369476318359375, -0.007373809814453125, -0.0031986236572265625, -0.0057373046875, -0.0265350341796875, 0.0044097900390625, 0.00319671630859375, -0.0086212158203125, -0.00966644287109375, 0.00931549072265625, 0.01319122314453125, 0.0075225830078125, 0.00960540771484375, 0.0008897781372070312, 0.00382232666015625, -0.039398193359375, -0.035400390625, -0.0101165771484375, -0.020721435546875, 0.001796722412109375, -0.03546142578125, -0.0007491111755371094, -0.00966644287109375, -0.007904052734375, 0.047210693359375, -0.0308837890625, 0.0443115234375, -0.0287933349609375, 0.01422882080078125, -0.03106689453125, 0.0105438232421875, 0.058258056640625, 0.032684326171875, -0.04486083984375, -0.0154876708984375, -0.0655517578125, -0.005035400390625, -0.048553466796875, -0.045654296875, -0.0220947265625, 0.0171661376953125, 0.0207061767578125, 0.055511474609375, -0.0272064208984375, -0.052886962890625, 0.054473876953125, -0.01123809814453125, -0.01396942138671875, 0.0736083984375, -0.0196075439453125, 0.06280517578125, 0.01154327392578125, 0.036102294921875, 0.0168914794921875, 0.039215087890625, -0.0084075927734375, -0.0222625732421875, 0.041900634765625, -0.004863739013671875, -0.039947509765625, -0.0240631103515625, -0.0234222412109375, -0.05987548828125, -0.013671875, -0.0209197998046875, 0.001407623291015625, -0.01092529296875, -0.0064849853515625, -0.02386474609375, 0.03363037109375, -0.02337646484375, 0.0088043212890625, -0.0078887939453125, -0.048431396484375, 0.00811767578125, -0.007965087890625, 0.01148223876953125, 0.022064208984375, -0.048980712890625, 0.00954437255859375, 0.0556640625, -0.036956787109375, 0.0299530029296875, 0.0254058837890625, 0.0285491943359375, 0.04736328125, -0.007965087890625, 0.037994384765625, 0.0147857666015625, 0.01395416259765625, -0.053985595703125, -0.0081939697265625, -0.0161895751953125, -0.020172119140625, 0.00897216796875, -0.033447265625, 0.0108642578125, 0.050323486328125, 0.08148193359375, 0.086669921875, -0.08526611328125, -0.00878143310546875, 0.01103973388671875, -0.04901123046875, 0.0311126708984375, -0.0026035308837890625, -0.02093505859375, -0.03955078125, 0.048187255859375, -0.045440673828125, -0.01235198974609375, 0.01499176025390625, -0.004730224609375, 0.0118560791015625, -0.004215240478515625, 0.04571533203125, 0.0144500732421875, -0.0251922607421875, -0.0099334716796875, 0.01067352294921875, 0.00841522216796875, -0.0173187255859375, -0.00542449951171875, 0.010986328125, -0.0195770263671875, -0.0699462890625, -0.009124755859375, -0.038604736328125, 0.003208160400390625, -0.0276641845703125, 0.037933349609375, 0.0200653076171875, 0.041961669921875, -0.003993988037109375, -0.01009368896484375, 0.0166778564453125, 0.0113525390625, 0.050048828125, -0.00725555419921875, -0.007656097412109375, 0.01776123046875, 0.0051727294921875, -0.0006356239318847656, 0.00795745849609375, -0.0110626220703125, 0.01513671875, -0.0299072265625, 0.005970001220703125, 0.012725830078125, -0.0236053466796875, 0.035491943359375, -0.041534423828125, -0.007038116455078125, -0.00922393798828125, 0.0281219482421875, -0.0447998046875, -0.004810333251953125, -0.001983642578125, 0.0035572052001953125, -0.01293182373046875, 0.0056610107421875, -0.0506591796875, 0.050445556640625, -0.0270538330078125, 0.0200347900390625, -0.007434844970703125, 0.0295562744140625, 0.015289306640625, 0.0241241455078125, -0.04010009765625, 0.056427001953125, 0.034637451171875, -0.00283050537109375, -0.03375244140625, -0.01016998291015625, -0.01141357421875, 0.0102081298828125, 0.032073974609375, -0.00757598876953125, 0.036407470703125, 0.01000213623046875, 0.09075927734375, 0.07208251953125, 0.0193939208984375, -0.038177490234375, -0.0275421142578125, -0.023712158203125, -0.003902435302734375, -0.0311126708984375, 0.006107330322265625, -0.0287322998046875, -0.035125732421875, -0.0057830810546875, 0.00791168212890625, -0.00559234619140625, 0.0136871337890625, -0.0244598388671875, -0.075439453125, 0.01396942138671875, 0.038299560546875, -0.0152435302734375, 0.01983642578125, 0.0169219970703125, 0.042510986328125, -0.044525146484375, -0.043975830078125, -0.0162353515625, 0.034515380859375, -0.0009822845458984375, -0.01568603515625, 0.01220703125, 0.01158905029296875, 0.0006723403930664062, -0.0506591796875, -0.033660888671875, -0.01715087890625, -0.007904052734375, -0.00951385498046875, 0.03472900390625, 0.04119873046875, -0.0204925537109375, -0.07745361328125, 0.058624267578125, 0.0289154052734375, 0.01297760009765625, -0.0081634521484375, 0.02410888671875, 0.0011739730834960938, 0.0080718994140625, -0.020660400390625, 0.01097869873046875, -0.056640625, -0.019012451171875, -0.0011072158813476562, -0.021209716796875, 0.0146942138671875, 0.038909912109375, 0.01222991943359375, 0.0190277099609375, -0.030731201171875, -0.035247802734375, -0.056396484375, 0.07122802734375, 0.0450439453125, 0.0570068359375, -0.049652099609375, 0.0958251953125, -0.0175933837890625, -0.016632080078125, 0.0254669189453125, -0.00208282470703125, 0.031646728515625, -0.055145263671875, 0.018829345703125, -0.03082275390625, 0.0253448486328125, 0.01436614990234375, 0.0316162109375, -0.0255279541015625, 0.03680419921875, 0.0219879150390625, -0.03936767578125, -0.0028476715087890625, 0.0279083251953125, -0.0096893310546875, -0.04693603515625, -0.0148162841796875, -0.002040863037109375, 0.0172271728515625, 0.00611114501953125, 0.0140838623046875, 0.056304931640625, 0.0017786026000976562, -0.033660888671875, 0.07354736328125, -0.0232696533203125, 0.0024318695068359375, 0.04461669921875, -0.05133056640625, 0.08270263671875, -0.02044677734375, -0.009033203125, 0.00597381591796875, -0.01369476318359375, -0.02569580078125, 0.0052032470703125, 0.023651123046875, 0.00594329833984375, 0.01403045654296875, -0.02557373046875, -0.0252685546875, 0.040496826171875, -0.00800323486328125, 0.00868988037109375, 0.01331329345703125, -0.01340484619140625, -0.027679443359375, -0.056884765625, -0.0294189453125, -0.0296783447265625, 0.03363037109375, 0.006336212158203125, -0.0023040771484375, 0.0154266357421875, 0.0377197265625, -0.035980224609375, 0.01471710205078125, -0.044189453125, -0.0400390625, 0.04888916015625, 0.01027679443359375, -0.0105438232421875, -0.0159912109375, -0.032470703125, -0.01393890380859375, 0.0413818359375, -0.038787841796875, -0.017486572265625, -0.00513458251953125, 0.01137542724609375, -0.0188751220703125, 0.050994873046875, -0.0275726318359375, -0.029449462890625, 0.01355743408203125, 0.0201873779296875, 0.014923095703125, 0.016387939453125, -0.00115203857421875, 0.0249176025390625, -0.0025920867919921875, -0.01496124267578125, 0.007450103759765625, -0.0227203369140625, -0.0137786865234375, 0.032196044921875, 0.018829345703125, 0.028228759765625, -0.03790283203125, -0.03466796875, 0.031646728515625, -0.01485443115234375, 0.00010818243026733398, -0.0261688232421875, 0.06622314453125, 0.0035724639892578125, -0.0086517333984375, -0.0231781005859375, -0.0609130859375, -0.0170745849609375, 0.03338623046875, -0.016357421875, 0.02557373046875, -0.010528564453125, -0.0224609375, -0.0062713623046875, 0.01323699951171875, 0.0178985595703125, 0.0113677978515625, 0.00516510009765625, -0.0196380615234375, -0.003143310546875, -0.01558685302734375, -0.004913330078125, -0.025482177734375, 0.01395416259765625, 0.00823211669921875, 0.033447265625, -0.0518798828125, -0.02752685546875, 0.0172119140625, 0.0323486328125, -0.01222991943359375, -0.0245819091796875, -0.01544189453125, 0.006671905517578125, -0.01116180419921875, -0.021148681640625, 0.0100860595703125, 0.04290771484375, -0.030670166015625, 0.0200042724609375, -0.035888671875, 0.0596923828125, -0.072021484375, -0.01318359375, 0.0247650146484375, 0.0015192031860351562, -0.016082763671875, -0.0843505859375, 0.01415252685546875, -0.10186767578125, -0.0004413127899169922, -0.0026702880859375, -0.031341552734375, -0.0258026123046875, -0.0576171875, -0.09967041015625, 0.059539794921875, -0.00457763671875, -0.033050537109375, -0.0144500732421875, 0.01413726806640625, -0.004100799560546875, 0.021453857421875, -0.0035648345947265625, -0.02130126953125, -0.014923095703125, -0.0126800537109375, 0.0257568359375, 0.021392822265625, 0.0161285400390625, 0.01517486572265625, -0.0330810546875, 0.01157379150390625, -0.0025043487548828125, -0.0018405914306640625, 0.01091766357421875, -0.0124359130859375, 0.0075531005859375, 0.0347900390625, -0.041046142578125, -0.07061767578125, -0.0200042724609375, -0.0093841552734375, -0.0070037841796875, -0.0217437744140625, -0.06622314453125, -0.0308837890625, 0.0775146484375, 0.0745849609375, 0.03466796875, -0.023468017578125, 0.030517578125, 0.005054473876953125, -0.0361328125, 0.0015230178833007812, 0.03106689453125, -0.03839111328125, -0.01568603515625, 0.0005421638488769531, 0.01038360595703125, 0.018157958984375, -0.01265716552734375, -0.007564544677734375, -0.0135955810546875, -0.0250396728515625, -0.034820556640625, -0.004894256591796875, -0.005615234375, 0.04425048828125, -0.03607177734375, 0.0008411407470703125, -0.024566650390625, 0.0293121337890625, 0.0112762451171875, -0.0299224853515625, 0.0243072509765625, 0.01526641845703125, 0.02215576171875, -0.0206756591796875, 0.043243408203125, -0.0091705322265625, 0.055206298828125, -0.019683837890625, 0.0084686279296875, 0.01001739501953125, -0.017181396484375, 0.030548095703125, 0.01482391357421875, 0.032684326171875, -0.001110076904296875, -0.0206451416015625, -0.0185546875, 0.050994873046875, -0.01068878173828125, 0.01496124267578125, -0.054962158203125, 0.012664794921875, -0.035980224609375, 0.006435394287109375, 0.0188446044921875, 0.00582122802734375, -0.0240020751953125, 0.0185699462890625, -0.01192474365234375, -0.07952880859375, -0.032135009765625, -0.0038604736328125 ]
3d209222ac30ce85b9d962997f00cc551f9afa98
Wordpress Stackexchange Q: Auto get_header and get_footer on every template? Is there a way to automatically run get_header() at the beginning of template and get_footer() at the end of it? Currently my code is too repetitive with those calls. I've been looking for a way to do this, but I can't find it in Google. A: @scribu proposes a method for reducing code repetition in WordPress templates which he calls theme wrappers, which achieves what you're looking for. The roots theme uses a slightly modified version of this method.
Q: Auto get_header and get_footer on every template? Is there a way to automatically run get_header() at the beginning of template and get_footer() at the end of it? Currently my code is too repetitive with those calls. I've been looking for a way to do this, but I can't find it in Google. A: @scribu proposes a method for reducing code repetition in WordPress templates which he calls theme wrappers, which achieves what you're looking for. The roots theme uses a slightly modified version of this method. A: Looking at wp-includes/template-loader.php … there seems to be a way: if ( $template = apply_filters( 'template_include', $template ) ) include( $template ); You could hook into that filter, handle the including in a callback function and return FALSE. Sample code, not tested: add_filter( 'template_include', function( $template ) { get_header(); include $template; get_footer(); return FALSE; });
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:444652", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142569" }
[ 0.01384735107421875, 0.03912353515625, -0.005695343017578125, -0.012481689453125, 0.00620269775390625, 0.0004394054412841797, -0.0089569091796875, -0.03741455078125, 0.0002663135528564453, 0.03228759765625, -0.0484619140625, 0.01715087890625, 0.04058837890625, -0.005588531494140625, 0.02337646484375, -0.01259613037109375, 0.04656982421875, -0.03875732421875, 0.03033447265625, -0.01515960693359375, 0.022247314453125, 0.01319122314453125, 0.04791259765625, 0.097412109375, 0.0184326171875, -0.061309814453125, 0.055816650390625, 0.01232147216796875, -0.00885009765625, -0.0249786376953125, 0.008026123046875, 0.0257568359375, -0.0065460205078125, 0.025726318359375, 0.0000699162483215332, -0.00533294677734375, 0.00261688232421875, 0.032257080078125, 0.0244140625, -0.0017232894897460938, 0.0275726318359375, -0.0097503662109375, -0.005161285400390625, 0.053192138671875, -0.02978515625, -0.0096588134765625, 0.0011529922485351562, -0.039703369140625, 0.016143798828125, 0.024871826171875, 0.014495849609375, -0.007110595703125, 0.01495361328125, -0.0028533935546875, -0.0202789306640625, -0.030181884765625, 0.01216888427734375, -0.052581787109375, 0.0269317626953125, -0.043853759765625, -0.034271240234375, -0.034881591796875, 0.055023193359375, -0.004283905029296875, -0.0304412841796875, -0.0006380081176757812, -0.01052093505859375, 0.0014448165893554688, -0.0084228515625, -0.034637451171875, 0.013702392578125, 0.0137939453125, 0.002696990966796875, 0.0211334228515625, 0.01215362548828125, -0.0701904296875, 0.024444580078125, -0.009429931640625, -0.003673553466796875, 0.0482177734375, -0.0172119140625, -0.0169677734375, -0.051910400390625, -0.03515625, 0.021392822265625, -0.0027008056640625, -0.0059051513671875, -0.000431060791015625, -0.0550537109375, -0.05615234375, -0.04669189453125, -0.0291900634765625, -0.0338134765625, -0.037628173828125, -0.041290283203125, -0.03436279296875, -0.00553131103515625, 0.05877685546875, -0.03607177734375, 0.0178985595703125, -0.024658203125, -0.00902557373046875, 0.037994384765625, -0.059234619140625, 0.00502777099609375, 0.045867919921875, -0.027587890625, 0.00855255126953125, 0.04302978515625, 0.0369873046875, 0.0266571044921875, 0.006038665771484375, 0.0167999267578125, -0.0306243896484375, -0.01128387451171875, 0.040924072265625, 0.00888824462890625, 0.007175445556640625, 0.0121307373046875, 0.0213623046875, 0.0234832763671875, 0.050567626953125, 0.0253448486328125, -0.0150604248046875, -0.0266876220703125, 0.007755279541015625, -0.00876617431640625, -0.08544921875, 0.041656494140625, 0.0121612548828125, -0.008819580078125, 0.0183258056640625, -0.0128326416015625, -0.01470947265625, -0.0194091796875, -0.0096893310546875, -0.0158538818359375, 0.019683837890625, 0.03125, 0.00043082237243652344, 0.0019273757934570312, -0.048309326171875, 0.00453948974609375, 0.0283203125, -0.01702880859375, -0.0223236083984375, 0.0255584716796875, 0.033111572265625, -0.0347900390625, -0.00678253173828125, -0.01163482666015625, 0.025482177734375, 0.017730712890625, -0.037353515625, 0.00974273681640625, -0.0290069580078125, -0.0699462890625, 0.01849365234375, 0.0210418701171875, 0.0264739990234375, -0.034820556640625, -0.0297088623046875, 0.0035152435302734375, -0.0531005859375, -0.08294677734375, 0.040191650390625, 0.0029773712158203125, -0.003780364990234375, 0.01392364501953125, 0.01477813720703125, 0.0175323486328125, 0.0027790069580078125, 0.0193939208984375, -0.01482391357421875, -0.00257110595703125, -0.01013946533203125, 0.0028018951416015625, 0.0251617431640625, 0.0095977783203125, -0.0182952880859375, -0.04345703125, -0.07073974609375, 0.0283050537109375, -0.035064697265625, -0.049957275390625, 0.034576416015625, 0.003025054931640625, 0.07122802734375, 0.01114654541015625, 0.01922607421875, 0.02471923828125, -0.005565643310546875, -0.0787353515625, 0.0787353515625, 0.001605987548828125, -0.0123748779296875, -0.0305328369140625, 0.013580322265625, -0.0122528076171875, -0.0516357421875, -0.0309906005859375, -0.0148468017578125, -0.00942230224609375, 0.017181396484375, 0.016082763671875, -0.0302581787109375, 0.006908416748046875, -0.0004062652587890625, 0.012908935546875, 0.03094482421875, -0.0036029815673828125, -0.007053375244140625, -0.005695343017578125, -0.0216064453125, -0.035736083984375, -0.0275421142578125, -0.020904541015625, 0.01141357421875, 0.0191650390625, 0.005001068115234375, 0.0167083740234375, -0.01253509521484375, 0.0060882568359375, 0.0092315673828125, 0.01210784912109375, -0.004901885986328125, -0.01528167724609375, -0.015899658203125, -0.0224761962890625, 0.02691650390625, -0.062225341796875, 0.0279541015625, -0.024993896484375, 0.00391387939453125, -0.034210205078125, 0.001979827880859375, -0.0275115966796875, -0.01195526123046875, -0.00455474853515625, 0.03057861328125, 0.023773193359375, 0.01080322265625, -0.020111083984375, -0.00787353515625, 0.056884765625, -0.03448486328125, -0.01050567626953125, 0.01123046875, 0.0283966064453125, 0.06439208984375, -0.0113983154296875, -0.0059967041015625, 0.005290985107421875, -0.05731201171875, 0.001285552978515625, 0.032470703125, -0.0230712890625, -0.035858154296875, -0.0030193328857421875, 0.0092926025390625, 0.00736236572265625, -0.036773681640625, -0.01056671142578125, -0.01190185546875, 0.0298004150390625, -0.009033203125, 0.014373779296875, 0.0029773712158203125, -0.056610107421875, 0.002513885498046875, 0.047271728515625, 0.042816162109375, -0.0003707408905029297, 0.062103271484375, 0.0006809234619140625, -0.0263519287109375, 0.0290985107421875, -0.021820068359375, -0.06915283203125, 0.00585174560546875, 0.0029315948486328125, 0.005435943603515625, -0.048492431640625, 0.002208709716796875, 0.00884246826171875, -0.056976318359375, -0.008056640625, 0.055633544921875, 0.024322509765625, 0.017425537109375, 0.0032253265380859375, 0.056640625, -0.03216552734375, 0.08599853515625, -0.029327392578125, -0.00554656982421875, 0.0011959075927734375, -0.011871337890625, -0.0041656494140625, 0.0035724639892578125, 0.00919342041015625, 0.037567138671875, 0.037689208984375, -0.035919189453125, -0.0126495361328125, 0.03179931640625, 0.00458526611328125, -0.029388427734375, -0.036651611328125, -0.002765655517578125, -0.03057861328125, 0.0204315185546875, 0.027679443359375, 0.136474609375, -0.025360107421875, -0.0638427734375, 0.005733489990234375, 0.050262451171875, -0.039031982421875, -0.100341796875, 0.02972412109375, -0.04241943359375, -0.0056610107421875, -0.02313232421875, -0.02789306640625, -0.01070404052734375, -0.013885498046875, -0.0034236907958984375, 0.0210113525390625, -0.0281829833984375, -0.060943603515625, -0.05999755859375, -0.07513427734375, -0.04339599609375, -0.01209259033203125, -0.00795745849609375, 0.00580596923828125, 0.0231170654296875, -0.022979736328125, -0.05126953125, -0.0218048095703125, -0.0005135536193847656, 0.004306793212890625, 0.024749755859375, 0.0264739990234375, -0.0105743408203125, 0.0030765533447265625, 0.0186004638671875, -0.1123046875, 0.00218963623046875, -0.0016994476318359375, -0.045562744140625, -0.0258331298828125, -0.058013916015625, -0.021331787109375, 0.059356689453125, 0.0172271728515625, -0.041046142578125, 0.03363037109375, -0.04754638671875, -0.039520263671875, 0.0024566650390625, -0.05731201171875, 0.033843994140625, 0.065185546875, -0.027923583984375, -0.004314422607421875, -0.006500244140625, 0.0016880035400390625, 0.005107879638671875, -0.0161895751953125, -0.04144287109375, 0.06524658203125, 0.0197296142578125, 0.0382080078125, -0.00528717041015625, -0.000568389892578125, -0.01493072509765625, 0.0311737060546875, 0.0019073486328125, 0.053558349609375, 0.028045654296875, 0.016845703125, -0.028778076171875, -0.040740966796875, 0.061126708984375, 0.005245208740234375, -0.00916290283203125, 0.00922393798828125, -0.0192718505859375, 0.038055419921875, 0.079345703125, -0.048492431640625, -0.004734039306640625, 0.02630615234375, 0.0193939208984375, -0.033172607421875, -0.017333984375, -0.0836181640625, -0.01209259033203125, -0.038360595703125, -0.0182037353515625, -0.0253143310546875, -0.017486572265625, -0.035675048828125, 0.013885498046875, -0.03509521484375, -0.0247344970703125, 0.0020599365234375, 0.036407470703125, -0.0318603515625, 0.005451202392578125, -0.045166015625, 0.0019330978393554688, 0.0221099853515625, -0.0232696533203125, -0.049530029296875, -0.00848388671875, -0.0222625732421875, 0.06817626953125, 0.047576904296875, -0.042572021484375, -0.00299072265625, 0.04510498046875, -0.0133514404296875, 0.030303955078125, 0.003143310546875, 0.03729248046875, 0.0175628662109375, -0.031524658203125, -0.004543304443359375, -0.029815673828125, -0.0146484375, -0.0264739990234375, -0.039306640625, 0.048797607421875, -0.0033321380615234375, 0.0262451171875, -0.00638580322265625, -0.01210784912109375, -0.019317626953125, -0.01146697998046875, 0.003314971923828125, 0.0145721435546875, 0.003650665283203125, 0.006015777587890625, -0.023651123046875, -0.0182037353515625, 0.0254669189453125, 0.04107666015625, -0.026092529296875, -0.00676727294921875, 0.060882568359375, 0.047210693359375, -0.027740478515625, 0.0235595703125, 0.047027587890625, 0.051513671875, -0.0262908935546875, 0.011505126953125, -0.005367279052734375, -0.06597900390625, 0.09759521484375, -0.01018524169921875, -0.01203155517578125, 0.023345947265625, 0.054229736328125, -0.0162811279296875, -0.038970947265625, 0.032928466796875, -0.0214691162109375, -0.0215606689453125, 0.039398193359375, 0.0020809173583984375, 0.0109405517578125, -0.04608154296875, -0.003040313720703125, 0.0020809173583984375, -0.00827789306640625, -0.0176849365234375, 0.0142974853515625, -0.013671875, 0.0367431640625, 0.0025806427001953125, 0.01617431640625, -0.0012426376342773438, -0.032470703125, 0.00106048583984375, 0.016998291015625, -0.0270233154296875, -0.00788116455078125, -0.023681640625, 0.043731689453125, -0.0217742919921875, 0.0174560546875, -0.02215576171875, -0.026153564453125, 0.0550537109375, 0.0025691986083984375, -0.035369873046875, 0.008758544921875, -0.0208282470703125, 0.04278564453125, -0.006450653076171875, -0.0089263916015625, 0.050048828125, -0.0108795166015625, -0.00015819072723388672, -0.0108489990234375, -0.0584716796875, -0.0018939971923828125, -0.04388427734375, -0.01025390625, 0.03729248046875, -0.038421630859375, 0.032745361328125, -0.0149383544921875, 0.0249176025390625, -0.01183319091796875, -0.01513671875, -0.006500244140625, -0.00789642333984375, 0.0047454833984375, 0.02459716796875, 0.0140533447265625, 0.0137786865234375, -0.020355224609375, 0.0274810791015625, -0.0226287841796875, 0.0045928955078125, 0.00661468505859375, 0.060821533203125, -0.007762908935546875, -0.018280029296875, 0.005336761474609375, -0.051055908203125, -0.018829345703125, 0.01085662841796875, 0.0230865478515625, -0.036163330078125, 0.0009102821350097656, 0.04217529296875, 0.00630950927734375, 0.0159454345703125, -0.025970458984375, 0.01366424560546875, -0.0175018310546875, 0.0190582275390625, -0.007808685302734375, -0.047821044921875, 0.022705078125, 0.0289459228515625, -0.03765869140625, -0.0147247314453125, -0.007755279541015625, -0.053253173828125, -0.037933349609375, -0.00438690185546875, -0.0032825469970703125, 0.037841796875, -0.01348114013671875, 0.022003173828125, -0.03118896484375, -0.009368896484375, -0.007411956787109375, 0.0106048583984375, 0.0477294921875, 0.0273590087890625, -0.046966552734375, 0.0014896392822265625, -0.072021484375, -0.01091766357421875, -0.110595703125, -0.0933837890625, -0.038116455078125, 0.021636962890625, 0.0175628662109375, 0.0268707275390625, -0.015289306640625, -0.0205841064453125, 0.026947021484375, 0.011077880859375, -0.006683349609375, 0.043548583984375, 0.0025234222412109375, 0.018829345703125, -0.005565643310546875, 0.00591278076171875, 0.007236480712890625, 0.01264190673828125, -0.00844573974609375, -0.019073486328125, 0.01312255859375, -0.03155517578125, -0.0256500244140625, -0.017333984375, -0.037322998046875, 0.01409912109375, 0.050048828125, -0.0021877288818359375, -0.0081939697265625, -0.02301025390625, -0.0014963150024414062, -0.0202484130859375, 0.060089111328125, -0.0103912353515625, -0.01361846923828125, -0.002162933349609375, 0.0132598876953125, 0.004222869873046875, 0.0006389617919921875, -0.060272216796875, 0.045379638671875, 0.0270233154296875, 0.028106689453125, -0.03448486328125, -0.01322174072265625, 0.040374755859375, 0.046112060546875, 0.0099945068359375, 0.03802490234375, 0.035552978515625, 0.026275634765625, 0.009490966796875, 0.052215576171875, 0.036773681640625, -0.0966796875, 0.0250701904296875, 0.00101470947265625, 0.000051081180572509766, 0.021270751953125, -0.0347900390625, 0.0087127685546875, 0.004299163818359375, 0.052642822265625, -0.021636962890625, 0.02099609375, 0.04559326171875, -0.0026397705078125, -0.004055023193359375, -0.021636962890625, -0.01727294921875, -0.059844970703125, 0.0631103515625, 0.01459503173828125, -0.00991058349609375, 0.001461029052734375, -0.01763916015625, -0.0292510986328125, 0.0014324188232421875, 0.0295257568359375, 0.007476806640625, 0.012725830078125, 0.0010700225830078125, -0.005859375, 0.01410675048828125, -0.0401611328125, 0.0236053466796875, -0.040283203125, -0.0045013427734375, -0.0122528076171875, 0.000911712646484375, 0.002162933349609375, 0.0217437744140625, 0.0268402099609375, -0.00019097328186035156, 0.002490997314453125, 0.017730712890625, -0.0064697265625, 0.01293182373046875, -0.01215362548828125, -0.01116943359375, -0.06170654296875, -0.04119873046875, 0.038299560546875, 0.02276611328125, -0.01526641845703125, 0.0382080078125, 0.0042877197265625, -0.060455322265625, -0.026611328125, -0.0457763671875, 0.0699462890625, -0.0239105224609375, -0.01172637939453125, 0.039947509765625, 0.0207366943359375, -0.051483154296875, 0.005313873291015625, 0.07049560546875, -0.045562744140625, 0.00200653076171875, 0.031646728515625, 0.01141357421875, -0.0361328125, 0.01314544677734375, -0.0239410400390625, 0.0665283203125, 0.058807373046875, -0.03900146484375, -0.02093505859375, 0.054443359375, -0.0269927978515625, 0.046234130859375, -0.03289794921875, 0.040802001953125, 0.03515625, 0.0257720947265625, -0.040130615234375, -0.0158843994140625, -0.01421356201171875, 0.037811279296875, 0.033233642578125, -0.005954742431640625, 0.0289306640625, -0.0033416748046875, 0.043212890625, 0.0594482421875, -0.01213836669921875, -0.0224456787109375, 0.0207366943359375, 0.06103515625, 0.045654296875, -0.062744140625, 0.033447265625, -0.06646728515625, 0.006229400634765625, 0.019805908203125, -0.016357421875, -0.0308990478515625, 0.0201416015625, -0.035430908203125, -0.065185546875, 0.005023956298828125, 0.03302001953125, -0.0186920166015625, 0.0256500244140625, 0.0467529296875, 0.03826904296875, 0.0029582977294921875, 0.022369384765625, -0.023834228515625, 0.05181884765625, -0.01389312744140625, 0.0063934326171875, -0.0019235610961914062, -0.005916595458984375, 0.0258331298828125, 0.0180511474609375, -0.0088958740234375, 0.04937744140625, 0.007053375244140625, 0.0175933837890625, 0.0151824951171875, 0.0697021484375, -0.0136566162109375, -0.0237274169921875, -0.005901336669921875, 0.017913818359375, -0.0014829635620117188, -0.0038738250732421875, 0.0141143798828125, -0.011566162109375, -0.0007748603820800781, -0.00402069091796875, 0.0183258056640625, -0.0243377685546875, -0.026885986328125, -0.0158233642578125, -0.01427459716796875, -0.0128021240234375, 0.0116119384765625, -0.00836181640625, 0.0029144287109375, 0.035247802734375, -0.0050048828125, -0.0179901123046875, 0.011962890625, 0.00411224365234375, 0.0096435546875, -0.00284576416015625, 0.043609619140625, 0.002777099609375, 0.007587432861328125, -0.03314208984375, 0.040069580078125, -0.0027256011962890625, 0.0460205078125, -0.0157928466796875, 0.00927734375, -0.01244354248046875, 0.01537322998046875, -0.02581787109375, 0.0006656646728515625, 0.027862548828125, 0.03265380859375, -0.038116455078125, -0.0291290283203125, 0.0031223297119140625, -0.042755126953125, 0.039520263671875, -0.04437255859375, -0.0245513916015625, -0.0240325927734375, -0.0296783447265625, -0.00675201416015625, -0.026458740234375, 0.0254974365234375, 0.01245880126953125, 0.0129241943359375, 0.005489349365234375, -0.02825927734375, -0.055389404296875, -0.04541015625, 0.0021686553955078125, 0.0263824462890625, -0.0501708984375, 0.004734039306640625, -0.0260162353515625, -0.058349609375, 0.0299835205078125, 0.044464111328125, -0.03173828125, 0.0208892822265625, -0.035552978515625, 0.020416259765625, -0.040679931640625, -0.0159912109375, 0.0278472900390625, -0.0007710456848144531, 0.0084381103515625, 0.014862060546875, -0.061248779296875, -0.04754638671875, -0.0440673828125, 0.053466796875, 0.0158538818359375, 0.043060302734375, 0.00350189208984375, 0.028778076171875, -0.0024700164794921875, 0.00222015380859375, -0.0111846923828125, 0.00975799560546875, -0.0031070709228515625, 0.0229949951171875, 0.00194549560546875, -0.0306243896484375, -0.08245849609375, 0.00032830238342285156, 0.05169677734375, -0.03497314453125, 0.06915283203125, -0.005931854248046875, -0.0024394989013671875, -0.08526611328125, 0.03411865234375, -0.00916290283203125, -0.054168701171875, -0.040863037109375, 0.01922607421875, 0.023773193359375, 0.0633544921875, -0.006313323974609375, 0.03912353515625, 0.0232086181640625, -0.0113372802734375, 0.01293182373046875, -0.01174163818359375, 0.032196044921875, 0.0232086181640625, -0.0176849365234375, 0.020904541015625, -0.00829315185546875, -0.032806396484375, 0.045135498046875, -0.0161895751953125, 0.01068878173828125, 0.0008416175842285156, -0.0102691650390625, 0.01824951171875, 0.0164794921875, 0.0494384765625, -0.0305938720703125, 0.012481689453125, 0.0094757080078125, 0.0131683349609375, 0.00151824951171875, -0.057708740234375, -0.0021839141845703125, -0.01033782958984375, -0.040863037109375, 0.0115203857421875, -0.02447509765625, -0.04779052734375, 0.0009331703186035156, -0.0204315185546875, 0.003063201904296875, -0.015838623046875, 0.00286102294921875, -0.03741455078125, 0.001461029052734375, 0.033447265625, -0.0260467529296875, -0.01409912109375, -0.0098724365234375, 0.00698089599609375, 0.00478363037109375, -0.0001138448715209961, -0.0247039794921875, 0.0245819091796875, 0.01153564453125, -0.008544921875, 0.01174163818359375, -0.001712799072265625, -0.00986480712890625, 0.006103515625, -0.0007162094116210938, 0.053863525390625, -0.01544189453125, -0.0141143798828125, 0.0132904052734375, -0.006175994873046875, 0.00872802734375, -0.071044921875, -0.01041412353515625, -0.047454833984375, 0.0182037353515625, -0.0230712890625, 0.005413055419921875, 0.0037860870361328125, -0.038421630859375, -0.06170654296875, 0.037811279296875, -0.0006747245788574219, -0.036468505859375, -0.07171630859375, 0.040008544921875, 0.00897216796875, -0.00605010986328125, -0.0248565673828125, 0.016204833984375, -0.0011625289916992188, 0.0240478515625, 0.0110626220703125, 0.0042266845703125, 0.035064697265625, 0.020660400390625, -0.041412353515625, 0.0224609375, 0.0023059844970703125, -0.0234222412109375, -0.006633758544921875, 0.005870819091796875, 0.004123687744140625, 0.027374267578125, -0.0290374755859375, 0.0011091232299804688, -0.0146026611328125, 0.0022068023681640625, -0.0165863037109375, 0.01178741455078125, -0.002849578857421875, -0.00023758411407470703, 0.05157470703125, 0.01503753662109375, 0.0048370361328125, -0.02392578125, 0.00542449951171875, 0.01479339599609375, -0.02569580078125, 0.0021381378173828125, 0.02618408203125, -0.0513916015625, -0.01398468017578125, 0.01322174072265625, -0.00566864013671875, -0.007198333740234375, -0.040435791015625, -0.035858154296875, -0.014007568359375, -0.0540771484375, 0.005649566650390625, -0.01042938232421875, -0.01873779296875, 0.03753662109375, -0.0193328857421875, -0.02752685546875, -0.01629638671875, 0.0263519287109375, -0.0161285400390625, -0.03466796875, 0.03778076171875, 0.0557861328125, -0.07720947265625, -0.0077362060546875, 0.0172271728515625, 0.0067291259765625, -0.0248565673828125, -0.0225677490234375, -0.0224456787109375, 0.04217529296875, 0.00909423828125, 0.058929443359375, -0.0180511474609375, 0.071533203125, 0.034515380859375, 0.051544189453125, -0.0031833648681640625, 0.07623291015625, 0.00855255126953125, 0.036468505859375, -0.0301361083984375, 0.0011425018310546875, -0.0147552490234375, -0.0258026123046875, -0.00641632080078125, 0.043731689453125, -0.05181884765625, -0.01526641845703125, 0.01369476318359375, -0.0098419189453125, -0.0036754608154296875, 0.004871368408203125 ]
c35e6958048625364ecf4b9cb8e2cb83d13bbca2
Wordpress Stackexchange Q: Enqueue script only if page has an oembed I have a script that adds some styles to OEmbedded content. At the moment its running on every page. I was wondering if anyone knew how to only enqueue the script if the page has an OEmbed on it. I have no code to show as google doesn't return anything on the topic A: Well the first thing to consider is that the wp_enqueue_scripts action hook fires before the filters on the page/post content are run. So I would add a function to the wp action hook and test the content for oembeds there. add_action( 'wp', 'your_oembed_test_function' ); function your_oembed_test_function(){ //earliest reliable hook to get $post variable global $post; //do your tests with $post content if( $oembed_exists_results ) wp_enqueue_script( $your_handle ); } Because WP fires before wp_enqueue_scripts you will be able to choose which scripts/styles you want to show based on which oembeds you find in the content.
Q: Enqueue script only if page has an oembed I have a script that adds some styles to OEmbedded content. At the moment its running on every page. I was wondering if anyone knew how to only enqueue the script if the page has an OEmbed on it. I have no code to show as google doesn't return anything on the topic A: Well the first thing to consider is that the wp_enqueue_scripts action hook fires before the filters on the page/post content are run. So I would add a function to the wp action hook and test the content for oembeds there. add_action( 'wp', 'your_oembed_test_function' ); function your_oembed_test_function(){ //earliest reliable hook to get $post variable global $post; //do your tests with $post content if( $oembed_exists_results ) wp_enqueue_script( $your_handle ); } Because WP fires before wp_enqueue_scripts you will be able to choose which scripts/styles you want to show based on which oembeds you find in the content.
wordpress
{ "language": "en", "length": 157, "provenance": "stackexchange_00019.jsonl.gz:444681", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142676" }
[ 0.00860595703125, 0.0178985595703125, -0.0186004638671875, -0.0020084381103515625, 0.01270294189453125, -0.039764404296875, 0.019927978515625, -0.021820068359375, -0.03546142578125, -0.015899658203125, -0.053314208984375, 0.054595947265625, -0.042022705078125, -0.012359619140625, 0.055511474609375, -0.05474853515625, 0.04620361328125, -0.04534912109375, 0.00667572021484375, -0.00833892822265625, -0.01287078857421875, 0.02056884765625, 0.0294342041015625, 0.0276947021484375, -0.0011587142944335938, -0.0806884765625, 0.10723876953125, 0.0149688720703125, 0.007068634033203125, -0.00756072998046875, 0.02166748046875, -0.0269927978515625, 0.01910400390625, 0.021453857421875, -0.02691650390625, 0.01050567626953125, -0.0036411285400390625, 0.011932373046875, 0.03497314453125, 0.01157379150390625, 0.0166015625, -0.01050567626953125, -0.012847900390625, 0.0215301513671875, -0.00988006591796875, -0.034149169921875, 0.00464630126953125, -0.049224853515625, -0.0004208087921142578, 0.00650787353515625, 0.007076263427734375, -0.0007762908935546875, 0.00911712646484375, 0.01458740234375, -0.0021610260009765625, 0.01506805419921875, -0.0245208740234375, 0.006378173828125, 0.0214080810546875, 0.0081939697265625, -0.0074462890625, 0.0126800537109375, 0.00853729248046875, -0.0269622802734375, -0.00571441650390625, -0.00905609130859375, 0.0049285888671875, 0.01023101806640625, -0.055267333984375, -0.01107025146484375, 0.039947509765625, -0.0261383056640625, -0.0214691162109375, 0.0022449493408203125, -0.06280517578125, 0.03277587890625, 0.0191192626953125, -0.0038204193115234375, 0.00435638427734375, -0.0103759765625, 0.006275177001953125, 0.00955963134765625, -0.0166473388671875, -0.00011390447616577148, -0.02398681640625, 0.0090179443359375, -0.0118255615234375, -0.01003265380859375, -0.0164947509765625, -0.0180206298828125, -0.02838134765625, 0.0143280029296875, -0.0176849365234375, -0.0190887451171875, -0.032073974609375, -0.0018320083618164062, 0.08843994140625, 0.08319091796875, 0.0264739990234375, 0.03399658203125, 0.0222015380859375, -0.082275390625, 0.06585693359375, -0.07293701171875, 0.0168609619140625, 0.036102294921875, 0.01044464111328125, -0.044952392578125, 0.0178985595703125, -0.0149688720703125, -0.01788330078125, 0.041046142578125, 0.01959228515625, 0.02288818359375, -0.019195556640625, -0.0268096923828125, -0.025146484375, 0.003082275390625, -0.028472900390625, 0.0011034011840820312, 0.0036163330078125, 0.02423095703125, 0.03021240234375, -0.05609130859375, -0.0009918212890625, -0.0086212158203125, -0.017486572265625, -0.04541015625, 0.0200042724609375, 0.05670166015625, -0.014404296875, -0.03759765625, 0.05657958984375, 0.033172607421875, -0.005397796630859375, -0.0390625, 0.058349609375, -0.0179290771484375, -0.01373291015625, 0.01473236083984375, -0.019989013671875, -0.03826904296875, -0.01155853271484375, -0.0292816162109375, -0.020355224609375, 0.027191162109375, 0.00826263427734375, 0.002033233642578125, -0.0193634033203125, -0.0390625, 0.01137542724609375, -0.028594970703125, 0.029510498046875, -0.019195556640625, 0.0026569366455078125, -0.041290283203125, 0.01092529296875, -0.01317596435546875, 0.006195068359375, -0.01654052734375, -0.038543701171875, 0.00962066650390625, 0.03619384765625, -0.0005488395690917969, 0.0045928955078125, -0.034576416015625, 0.01125335693359375, 0.0083770751953125, 0.0206298828125, 0.036712646484375, -0.02777099609375, -0.0550537109375, 0.034210205078125, 0.0029239654541015625, -0.0237274169921875, 0.047088623046875, 0.01021575927734375, 0.0182342529296875, 0.05621337890625, -0.007144927978515625, -0.0291900634765625, -0.0220947265625, 0.1199951171875, -0.058135986328125, -0.0538330078125, -0.0005750656127929688, 0.0394287109375, 0.0623779296875, -0.00952911376953125, 0.02862548828125, 0.0889892578125, 0.0004146099090576172, -0.0335693359375, -0.01290130615234375, 0.01953125, 0.003353118896484375, -0.00678253173828125, 0.00585174560546875, 0.0079193115234375, -0.0224456787109375, 0.0501708984375, -0.005352020263671875, 0.025482177734375, -0.01132965087890625, -0.0171661376953125, -0.0210113525390625, 0.0014276504516601562, 0.01386260986328125, -0.017730712890625, 0.0019102096557617188, -0.006313323974609375, -0.0258636474609375, 0.01140594482421875, -0.025909423828125, -0.01085662841796875, 0.029083251953125, -0.000392913818359375, 0.057586669921875, 0.000009655952453613281, 0.0239410400390625, 0.026123046875, -0.04376220703125, 0.0218505859375, 0.016998291015625, 0.01270294189453125, -0.0189056396484375, -0.00312042236328125, -0.007266998291015625, 0.00841522216796875, 0.01434326171875, -0.0170745849609375, 0.01220703125, 0.054473876953125, 0.054779052734375, -0.01255035400390625, 0.017059326171875, -0.035797119140625, -0.049468994140625, -0.01363372802734375, 0.034332275390625, 0.0474853515625, 0.02276611328125, 0.0223541259765625, 0.0418701171875, 0.045654296875, -0.044952392578125, 0.00803375244140625, 0.009429931640625, -0.003520965576171875, 0.01074981689453125, -0.0086212158203125, 0.01358795166015625, 0.041534423828125, -0.037841796875, 0.0051422119140625, 0.056915283203125, 0.0198211669921875, 0.041778564453125, -0.0516357421875, 0.034820556640625, -0.006908416748046875, 0.0191192626953125, -0.00624847412109375, -0.0010652542114257812, 0.05950927734375, -0.00872039794921875, 0.0323486328125, 0.01410675048828125, -0.014404296875, -0.0040435791015625, 0.027862548828125, -0.011322021484375, -0.004428863525390625, 0.0330810546875, 0.047393798828125, -0.00699615478515625, -0.046600341796875, -0.01488494873046875, 0.03228759765625, 0.0257720947265625, 0.0027408599853515625, 0.038421630859375, 0.006954193115234375, -0.0203704833984375, -0.010589599609375, -0.032684326171875, 0.01143646240234375, -0.0130462646484375, 0.0267333984375, 0.00566864013671875, 0.045654296875, 0.0068206787109375, -0.0018568038940429688, 0.0126953125, 0.00860595703125, -0.038055419921875, 0.00444793701171875, -0.045654296875, 0.055877685546875, -0.055023193359375, -0.020111083984375, 0.053070068359375, -0.01800537109375, 0.0252685546875, -0.0034198760986328125, 0.017669677734375, 0.0082550048828125, 0.0008234977722167969, -0.0026607513427734375, -0.0018100738525390625, -0.05352783203125, -0.006999969482421875, 0.03717041015625, 0.0494384765625, 0.0230560302734375, -0.028900146484375, 0.01204681396484375, 0.0325927734375, -0.07318115234375, -0.090087890625, 0.0247344970703125, -0.0205841064453125, 0.056732177734375, -0.0164031982421875, 0.00666046142578125, -0.04925537109375, 0.01494598388671875, 0.0115966796875, -0.0221099853515625, -0.0169830322265625, -0.0312347412109375, -0.036956787109375, -0.046356201171875, 0.0316162109375, 0.00948333740234375, 0.010223388671875, 0.01544952392578125, 0.0233154296875, 0.02630615234375, -0.02587890625, 0.0638427734375, 0.017181396484375, -0.029998779296875, 0.00965118408203125, 0.0283203125, -0.07080078125, -0.0628662109375, 0.015472412109375, -0.043609619140625, -0.0209197998046875, 0.0292510986328125, 0.0021190643310546875, -0.016357421875, -0.02435302734375, 0.022979736328125, 0.0268096923828125, -0.003570556640625, -0.0081024169921875, 0.03472900390625, -0.052398681640625, -0.029022216796875, 0.0087738037109375, -0.0255584716796875, 0.02783203125, 0.006740570068359375, -0.021942138671875, -0.007476806640625, 0.033172607421875, 0.036224365234375, -0.0246429443359375, 0.00440216064453125, -0.00217437744140625, 0.031280517578125, 0.0038013458251953125, 0.03875732421875, -0.0180816650390625, -0.006748199462890625, -0.032257080078125, 0.0261077880859375, -0.0143585205078125, 0.0162200927734375, -0.020721435546875, 0.017547607421875, -0.05560302734375, 0.0086212158203125, -0.0105133056640625, -0.04046630859375, 0.0604248046875, -0.0243072509765625, 0.010101318359375, 0.0049591064453125, 0.077392578125, -0.015625, -0.0246429443359375, 0.00994110107421875, 0.015533447265625, -0.038421630859375, -0.015838623046875, -0.01593017578125, -0.00856781005859375, -0.08544921875, 0.00853729248046875, -0.039825439453125, -0.0166015625, -0.0226593017578125, -0.01136016845703125, -0.049285888671875, -0.051605224609375, 0.038848876953125, -0.0780029296875, 0.00768280029296875, 0.035675048828125, -0.045074462890625, 0.0265350341796875, -0.041046142578125, -0.0496826171875, -0.0709228515625, -0.00601959228515625, -0.0217742919921875, 0.04791259765625, 0.009552001953125, 0.000553131103515625, -0.01219940185546875, 0.03204345703125, 0.01322174072265625, 0.036346435546875, 0.0286712646484375, 0.0017881393432617188, 0.0304412841796875, -0.0217742919921875, 0.0185089111328125, -0.04034423828125, -0.00933074951171875, 0.0037631988525390625, -0.0144805908203125, -0.0027713775634765625, -0.01323699951171875, -0.05670166015625, 0.0467529296875, -0.038360595703125, -0.03131103515625, -0.00493621826171875, 0.0306396484375, -0.0177459716796875, 0.025238037109375, -0.01297760009765625, -0.0015010833740234375, 0.00102996826171875, -0.0030384063720703125, 0.007328033447265625, -0.0027599334716796875, 0.0098876953125, 0.013336181640625, 0.03302001953125, -0.01861572265625, 0.034759521484375, 0.02880859375, 0.007415771484375, 0.0294952392578125, 0.04638671875, -0.0011816024780273438, -0.01100921630859375, 0.0267791748046875, 0.01303863525390625, 0.002758026123046875, -0.0069122314453125, 0.0771484375, 0.0234527587890625, 0.004367828369140625, -0.0022525787353515625, 0.0272369384765625, -0.03369140625, -0.00518798828125, -0.029327392578125, 0.01464080810546875, 0.006866455078125, 0.0022296905517578125, -0.01216888427734375, 0.016571044921875, -0.036956787109375, 0.012542724609375, -0.0256500244140625, -0.008758544921875, 0.050506591796875, 0.037506103515625, -0.00006532669067382812, -0.00008046627044677734, 0.0643310546875, 0.0230255126953125, 0.039459228515625, 0.032684326171875, -0.00034236907958984375, 0.053131103515625, 0.035247802734375, 0.02337646484375, -0.0107269287109375, -0.00020432472229003906, 0.00878143310546875, -0.0185546875, -0.0570068359375, -0.0218505859375, -0.0092010498046875, 0.039764404296875, 0.033294677734375, 0.037017822265625, 0.0439453125, 0.0343017578125, -0.01092529296875, -0.0144805908203125, 0.0304412841796875, 0.03192138671875, -0.037933349609375, 0.0022430419921875, -0.0167083740234375, -0.0142822265625, -0.007678985595703125, 0.0038738250732421875, -0.01509857177734375, 0.004306793212890625, -0.00606536865234375, 0.0248260498046875, -0.0086822509765625, 0.041412353515625, 0.0102996826171875, -0.01213836669921875, 0.0008077621459960938, 0.038909912109375, 0.00339508056640625, -0.0184783935546875, 0.005794525146484375, 0.04071044921875, 0.003131866455078125, -0.02313232421875, -0.01329803466796875, 0.0280914306640625, 0.0092010498046875, -0.04803466796875, 0.03240966796875, 0.02166748046875, -0.01067352294921875, -0.04571533203125, -0.0433349609375, 0.0191802978515625, 0.043243408203125, 0.008758544921875, -0.0164031982421875, 0.003215789794921875, -0.007785797119140625, 0.02294921875, -0.033782958984375, -0.00021898746490478516, -0.00598907470703125, -0.023406982421875, -0.01088714599609375, 0.01097869873046875, -0.061187744140625, -0.03265380859375, -0.0011339187622070312, -0.01134490966796875, 0.02410888671875, -0.003997802734375, 0.040283203125, 0.002666473388671875, -0.056854248046875, 0.0249786376953125, 0.003910064697265625, 0.0439453125, 0.0140380859375, -0.00994110107421875, -0.0257415771484375, -0.0247344970703125, -0.02032470703125, -0.023651123046875, -0.025665283203125, -0.0063323974609375, -0.00812530517578125, -0.0116424560546875, -0.01537322998046875, -0.0292816162109375, -0.0136871337890625, -0.037628173828125, 0.05841064453125, 0.0303497314453125, 0.035003662109375, -0.038299560546875, 0.09912109375, 0.029693603515625, 0.02471923828125, 0.00791168212890625, 0.07342529296875, 0.0200958251953125, -0.01947021484375, -0.03515625, -0.07293701171875, 0.04559326171875, 0.01557159423828125, 0.00682830810546875, 0.031036376953125, 0.0247802734375, 0.033111572265625, 0.034942626953125, 0.00007212162017822266, 0.01213836669921875, -0.017059326171875, -0.0013895034790039062, 0.0036869049072265625, -0.0104217529296875, 0.07843017578125, 0.0019073486328125, 0.061431884765625, -0.021636962890625, -0.003509521484375, -0.0032405853271484375, -0.0284271240234375, 0.0345458984375, 0.00829315185546875, -0.0546875, 0.06646728515625, 0.047088623046875, 0.005641937255859375, 0.0233612060546875, -0.0135040283203125, -0.0023937225341796875, -0.006778717041015625, 0.00057220458984375, -0.06268310546875, -0.0360107421875, -0.0098114013671875, -0.01611328125, 0.0196685791015625, 0.00493621826171875, 0.01282501220703125, 0.0011730194091796875, 0.0125274658203125, 0.037811279296875, -0.04205322265625, 0.015777587890625, -0.00879669189453125, -0.017669677734375, -0.011474609375, -0.028656005859375, 0.0369873046875, 0.024688720703125, 0.08135986328125, 0.04913330078125, 0.00391387939453125, 0.06671142578125, -0.0110626220703125, -0.0294952392578125, -0.053619384765625, -0.0043792724609375, 0.01175689697265625, 0.004180908203125, 0.05377197265625, -0.005031585693359375, 0.0203094482421875, -0.062255859375, -0.0046234130859375, -0.032196044921875, -0.0139923095703125, -0.044677734375, 0.00592041015625, -0.011688232421875, 0.038421630859375, 0.019744873046875, 0.01412200927734375, 0.02227783203125, 0.0262908935546875, 0.00232696533203125, -0.00400543212890625, -0.007457733154296875, 0.007785797119140625, -0.0435791015625, -0.031951904296875, 0.033843994140625, 0.0374755859375, -0.068359375, 0.0318603515625, -0.027008056640625, -0.022735595703125, 0.0008573532104492188, -0.033294677734375, 0.037353515625, -0.0843505859375, 0.0221710205078125, -0.006771087646484375, 0.028778076171875, 0.0435791015625, -0.0308074951171875, 0.025177001953125, -0.061309814453125, -0.057525634765625, -0.01016998291015625, -0.073974609375, -0.041168212890625, -0.0684814453125, -0.05126953125, 0.10040283203125, -0.0207672119140625, 0.01317596435546875, 0.0024356842041015625, 0.04315185546875, -0.0017766952514648438, 0.021209716796875, -0.0181732177734375, 0.10284423828125, 0.026397705078125, 0.041748046875, -0.0272979736328125, -0.01042938232421875, 0.042388916015625, 0.0341796875, 0.00382232666015625, -0.0009708404541015625, 0.01384735107421875, -0.01369476318359375, 0.01329803466796875, 0.07464599609375, 0.0228118896484375, -0.037384033203125, -0.00458526611328125, 0.009918212890625, -0.0312347412109375, -0.024932861328125, 0.0225677490234375, -0.0706787109375, -0.031341552734375, 0.01216888427734375, 0.011962890625, 0.034637451171875, -0.0251617431640625, -0.02197265625, -0.023101806640625, -0.00679779052734375, 0.0123748779296875, -0.002971649169921875, -0.0227813720703125, 0.049346923828125, 0.01261138916015625, -0.0238800048828125, -0.041412353515625, -0.0228424072265625, 0.0250396728515625, -0.0101165771484375, -0.01119232177734375, 0.024658203125, 0.0092315673828125, 0.029022216796875, 0.0037136077880859375, -0.0047760009765625, 0.0181732177734375, 0.00005525350570678711, 0.00640869140625, 0.04998779296875, 0.03564453125, 0.016998291015625, -0.03533935546875, -0.01275634765625, -0.005123138427734375, 0.00714874267578125, 0.0111236572265625, 0.01446533203125, 0.0136566162109375, -0.03271484375, -0.044189453125, -0.032196044921875, -0.030853271484375, 0.00405120849609375, 0.0259552001953125, 0.006732940673828125, -0.009765625, -0.00615692138671875, 0.01242828369140625, 0.021636962890625, -0.00909423828125, 0.056610107421875, -0.05023193359375, 0.01885986328125, 0.0192718505859375, 0.08953857421875, 0.0173797607421875, 0.060791015625, -0.0469970703125, -0.044708251953125, -0.0303192138671875, 0.04351806640625, -0.006565093994140625, 0.03271484375, -0.046630859375, -0.01439666748046875, 0.0011882781982421875, 0.047149658203125, 0.020782470703125, -0.006610870361328125, -0.0110321044921875, -0.0233612060546875, -0.0111083984375, 0.023681640625, 0.0462646484375, -0.0249481201171875, 0.031341552734375, -0.00762939453125, 0.001171112060546875, 0.035369873046875, -0.0211334228515625, -0.0153045654296875, 0.0035915374755859375, 0.061614990234375, -0.01300811767578125, 0.0025653839111328125, 0.01045989990234375, -0.04730224609375, 0.006954193115234375, 0.021575927734375, 0.05242919921875, 0.0186767578125, -0.02325439453125, -0.0229644775390625, -0.00643157958984375, 0.01200103759765625, 0.005523681640625, 0.0274658203125, -0.005462646484375, 0.03192138671875, 0.05755615234375, -0.0019664764404296875, 0.004730224609375, 0.0259857177734375, -0.00998687744140625, 0.007625579833984375, 0.053070068359375, 0.034393310546875, -0.006591796875, -0.024749755859375, -0.003108978271484375, 0.06732177734375, 0.01459503173828125, -0.0012521743774414062, -0.0229034423828125, 0.032257080078125, 0.0374755859375, -0.0226287841796875, 0.032562255859375, 0.00754547119140625, -0.0011615753173828125, -0.0121612548828125, 0.01611328125, -0.0170440673828125, -0.05145263671875, 0.0268402099609375, 0.01494598388671875, 0.038299560546875, -0.0103302001953125, -0.004360198974609375, 0.034759521484375, 0.047698974609375, 0.011138916015625, -0.039337158203125, -0.03204345703125, -0.017730712890625, 0.0165557861328125, -0.0181121826171875, -0.01824951171875, 0.0230712890625, 0.00969696044921875, 0.011077880859375, -0.06512451171875, -0.001033782958984375, -0.0117950439453125, 0.00037860870361328125, 0.034332275390625, 0.04571533203125, -0.0008020401000976562, 0.0288848876953125, -0.00577545166015625, 0.006008148193359375, 0.033355712890625, 0.01348114013671875, 0.016082763671875, -0.005687713623046875, -0.0140228271484375, 0.0394287109375, 0.0260467529296875, -0.0019311904907226562, 0.01708984375, 0.036407470703125, -0.04132080078125, -0.030853271484375, -0.02716064453125, -0.031829833984375, -0.048736572265625, 0.012359619140625, -0.0015115737915039062, -0.01194000244140625, -0.04119873046875, -0.00298309326171875, 0.01226806640625, 0.0287322998046875, 0.004833221435546875, -0.076171875, 0.06475830078125, -0.06304931640625, 0.042022705078125, -0.033355712890625, 0.04022216796875, -0.00927734375, -0.0184783935546875, -0.07550048828125, -0.021728515625, -0.017120361328125, 0.045074462890625, -0.0004069805145263672, 0.0234832763671875, 0.07135009765625, -0.028564453125, 0.0102996826171875, -0.01346588134765625, 0.0137481689453125, 0.05084228515625, -0.07513427734375, -0.0188446044921875, -0.004180908203125, 0.0094757080078125, 0.0012845993041992188, -0.0272979736328125, 0.025146484375, -0.047454833984375, -0.0168304443359375, 0.0036487579345703125, -0.00695037841796875, 0.01372528076171875, -0.0284423828125, -0.06634521484375, 0.0299530029296875, 0.000858306884765625, -0.034149169921875, -0.03369140625, 0.00940704345703125, 0.01873779296875, -0.05023193359375, -0.042266845703125, -0.00881195068359375, -0.036956787109375, 0.0038585662841796875, -0.00772857666015625, 0.00298309326171875, 0.04144287109375, -0.045074462890625, -0.050537109375, -0.03240966796875, -0.01082611083984375, -0.002712249755859375, -0.0067901611328125, -0.0006542205810546875, 0.0350341796875, 0.0567626953125, -0.0035572052001953125, 0.0088348388671875, 0.007537841796875, -0.03125, -0.0183868408203125, 0.04168701171875, -0.00643157958984375, 0.0167236328125, 0.0992431640625, 0.0125732421875, 0.0208282470703125, -0.0258941650390625, -0.0011005401611328125, 0.001445770263671875, -0.0467529296875, -0.00623321533203125, 0.0211029052734375, -0.0215911865234375, 0.00963592529296875, -0.02679443359375, -0.0005474090576171875, -0.0230865478515625, -0.057525634765625, -0.056549072265625, -0.025848388671875, -0.0275726318359375, 0.0535888671875, -0.01264190673828125, -0.025848388671875, 0.07708740234375, -0.0521240234375, -0.00753021240234375, 0.024444580078125, 0.0201873779296875, 0.03204345703125, -0.006805419921875, -0.0031757354736328125, 0.00171661376953125, -0.024169921875, 0.0192413330078125, 0.0035190582275390625, 0.01373291015625, -0.0179443359375, 0.00408172607421875, -0.005146026611328125, -0.002712249755859375, -0.0045318603515625, -0.0193023681640625, -0.00844573974609375, 0.0030117034912109375, -0.01461029052734375, 0.0281829833984375, -0.0653076171875, 0.02313232421875, -0.01410675048828125, -0.0091400146484375, -0.006320953369140625, 0.0263519287109375, 0.07794189453125, -0.0142364501953125, 0.0022907257080078125, 0.0052337646484375, -0.00841522216796875, -0.048553466796875, 0.046173095703125, -0.036285400390625, -0.002513885498046875, 0.0233917236328125 ]
78db0e5846969cb899055dd41ac8e438ae3353de
Wordpress Stackexchange Q: How to use mysql IN statement with wpdb update method? I am using wpdb update method and wish to update records where the id is not found within multiple ids. So if I wanted to update records where each had an id of 1 I would do for example: $wpdb->update( 'wp_my_tables', array( 'active' => 0 ), array( 'id' => 1 ), array( '%d' ), array( '%d' ) ); But how would I edit that so it does NOT update values where the ids are for example 1,2,3 ? A: Unfortunately update helper only handles such simple equals conditions: $wheres[] = "`$field` = {$form}"; For more complex queries you'll have to form SQL yourself and use wpdb->query() method to run it as arbitrary query.
Q: How to use mysql IN statement with wpdb update method? I am using wpdb update method and wish to update records where the id is not found within multiple ids. So if I wanted to update records where each had an id of 1 I would do for example: $wpdb->update( 'wp_my_tables', array( 'active' => 0 ), array( 'id' => 1 ), array( '%d' ), array( '%d' ) ); But how would I edit that so it does NOT update values where the ids are for example 1,2,3 ? A: Unfortunately update helper only handles such simple equals conditions: $wheres[] = "`$field` = {$form}"; For more complex queries you'll have to form SQL yourself and use wpdb->query() method to run it as arbitrary query.
wordpress
{ "language": "en", "length": 124, "provenance": "stackexchange_00019.jsonl.gz:444720", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142807" }
[ 0.038543701171875, 0.025787353515625, -0.015899658203125, 0.0036144256591796875, 0.05792236328125, -0.042205810546875, 0.06976318359375, -0.0214996337890625, 0.06182861328125, 0.031036376953125, -0.08258056640625, -0.02679443359375, 0.0156097412109375, 0.0034694671630859375, -0.057830810546875, -0.04327392578125, 0.016937255859375, -0.005706787109375, -0.00693511962890625, -0.01200103759765625, 0.005886077880859375, -0.0031642913818359375, -0.0248260498046875, 0.0284576416015625, 0.026275634765625, -0.0689697265625, 0.03253173828125, -0.00021982192993164062, 0.03485107421875, -0.01065826416015625, 0.01934814453125, 0.00978851318359375, 0.0184478759765625, -0.01059722900390625, 0.035308837890625, 0.0110626220703125, 0.047119140625, -0.03192138671875, 0.0015344619750976562, 0.047332763671875, 0.024871826171875, -0.0121917724609375, -0.005016326904296875, 0.025909423828125, -0.0034847259521484375, -0.060760498046875, 0.0533447265625, -0.02239990234375, 0.01580810546875, -0.005191802978515625, -0.022216796875, 0.034698486328125, -0.01331329345703125, 0.005092620849609375, -0.0013685226440429688, 0.0087890625, -0.02032470703125, 0.00955963134765625, 0.0309295654296875, 0.0201568603515625, -0.01213836669921875, -0.0045928955078125, 0.004116058349609375, -0.01168060302734375, -0.003627777099609375, 0.01458740234375, 0.049957275390625, 0.01122283935546875, -0.0134735107421875, -0.0153961181640625, 0.0020294189453125, -0.01131439208984375, -0.020233154296875, -0.007415771484375, -0.036285400390625, 0.002025604248046875, 0.058258056640625, 0.0022106170654296875, -0.0239410400390625, 0.0310821533203125, 0.0216064453125, -0.0142669677734375, -0.031646728515625, 0.0240478515625, -0.005992889404296875, 0.04644775390625, -0.01007080078125, -0.0242156982421875, -0.04302978515625, -0.01157379150390625, -0.0253143310546875, -0.045867919921875, -0.047271728515625, 0.0220947265625, 0.002285003662109375, -0.0018939971923828125, 0.019317626953125, 0.04241943359375, -0.0023059844970703125, 0.0051727294921875, 0.0119476318359375, -0.04327392578125, 0.005374908447265625, -0.021820068359375, -0.0007367134094238281, 0.042022705078125, 0.05126953125, 0.00965118408203125, 0.00006347894668579102, -0.0038890838623046875, -0.0014972686767578125, 0.019317626953125, -0.0012102127075195312, -0.0005640983581542969, -0.044677734375, -0.015350341796875, -0.053070068359375, -0.0126953125, -0.007549285888671875, -0.0187225341796875, -0.022613525390625, 0.0198822021484375, -0.0638427734375, -0.03594970703125, -0.00936126708984375, -0.0570068359375, -0.001018524169921875, 0.04705810546875, -0.044921875, 0.014068603515625, -0.0723876953125, 0.0285797119140625, 0.1435546875, 0.049224853515625, 0.032928466796875, -0.0275115966796875, 0.0053253173828125, 0.024200439453125, 0.0230712890625, -0.007289886474609375, 0.0014295578002929688, -0.03515625, -0.00327301025390625, 0.01123046875, 0.026458740234375, 0.00623321533203125, 0.01342010498046875, 0.006061553955078125, 0.00067901611328125, -0.0274810791015625, 0.01264190673828125, -0.01056671142578125, 0.010650634765625, 0.0254974365234375, 0.01318359375, -0.01428985595703125, 0.052032470703125, -0.04949951171875, 0.003326416015625, -0.034332275390625, 0.0016241073608398438, -0.0032062530517578125, 0.05682373046875, -0.0377197265625, -0.050048828125, 0.001605987548828125, -0.08819580078125, -0.0232696533203125, 0.04180908203125, 0.0288543701171875, 0.00939178466796875, -0.034759521484375, 0.07025146484375, 0.03057861328125, -0.0185089111328125, 0.03973388671875, -0.020111083984375, -0.00927734375, 0.0276031494140625, -0.0162811279296875, -0.00539398193359375, -0.017730712890625, 0.033782958984375, 0.0059814453125, -0.04315185546875, 0.0853271484375, -0.0223236083984375, 0.07763671875, 0.011993408203125, 0.01035308837890625, 0.01045989990234375, 0.019287109375, -0.0235748291015625, 0.034454345703125, 0.002391815185546875, -0.0374755859375, -0.0265350341796875, 0.0019626617431640625, -0.0221099853515625, -0.02789306640625, 0.00824737548828125, 0.00600433349609375, 0.0012798309326171875, 0.007061004638671875, -0.0164794921875, 0.00855255126953125, -0.0143280029296875, 0.0228271484375, -0.01474761962890625, 0.03717041015625, 0.018646240234375, 0.01290130615234375, -0.033355712890625, -0.01354217529296875, -0.034393310546875, -0.04693603515625, -0.00946044921875, 0.031890869140625, -0.00799560546875, 0.030975341796875, -0.0176239013671875, -0.041229248046875, -0.01253509521484375, 0.006191253662109375, 0.0178680419921875, -0.035125732421875, 0.006069183349609375, -0.0289764404296875, 0.048370361328125, -0.0101776123046875, 0.00847625732421875, 0.012451171875, 0.014617919921875, 0.0198516845703125, -0.035247802734375, -0.01129913330078125, -0.0204925537109375, -0.0601806640625, 0.00475311279296875, 0.060760498046875, 0.02301025390625, -0.025390625, -0.011688232421875, -0.0056915283203125, 0.0038852691650390625, -0.007396697998046875, 0.03076171875, -0.0224456787109375, -0.036773681640625, -0.0097503662109375, -0.016693115234375, -0.00833892822265625, 0.03173828125, -0.029205322265625, -0.027374267578125, 0.038177490234375, -0.004169464111328125, 0.039154052734375, 0.006298065185546875, -0.0168914794921875, -0.0297698974609375, -0.07891845703125, -0.00347900390625, -0.061920166015625, 0.058502197265625, -0.0153045654296875, 0.042388916015625, 0.030242919921875, -0.01239776611328125, 0.002593994140625, -0.00814056396484375, -0.0660400390625, 0.01959228515625, 0.040313720703125, -0.11895751953125, 0.0399169921875, 0.025360107421875, 0.0018815994262695312, -0.01171112060546875, 0.0032749176025390625, -0.022979736328125, 0.0016527175903320312, -0.023895263671875, -0.0247650146484375, -0.00037097930908203125, 0.00095367431640625, 0.01148223876953125, -0.030731201171875, -0.01139068603515625, -0.017669677734375, 0.025146484375, 0.042236328125, -0.021514892578125, 0.046478271484375, -0.0028076171875, -0.019195556640625, 0.03814697265625, -0.006862640380859375, 0.01995849609375, -0.0173492431640625, 0.0210723876953125, 0.04644775390625, -0.0221099853515625, 0.003253936767578125, 0.0011577606201171875, -0.0175933837890625, 0.01250457763671875, 0.01090240478515625, 0.00467681884765625, -0.0036373138427734375, -0.04510498046875, 0.032623291015625, 0.0249481201171875, 0.08636474609375, -0.004791259765625, -0.048614501953125, 0.0262298583984375, 0.033905029296875, -0.0584716796875, -0.12841796875, -0.01512908935546875, -0.032562255859375, -0.037750244140625, 0.0207672119140625, -0.0291595458984375, 0.01432037353515625, 0.0308990478515625, -0.0034351348876953125, -0.00879669189453125, 0.0019321441650390625, -0.0229034423828125, -0.0355224609375, -0.07763671875, -0.01013946533203125, 0.0041656494140625, 0.037689208984375, -0.0032939910888671875, 0.0176849365234375, -0.00887298583984375, -0.04888916015625, -0.00653076171875, -0.006023406982421875, -0.0181427001953125, 0.0200042724609375, 0.0285186767578125, -0.039215087890625, -0.038360595703125, 0.01000213623046875, 0.0221710205078125, 0.0029010772705078125, -0.0033893585205078125, 0.0027828216552734375, 0.0056915283203125, 0.0249481201171875, 0.0589599609375, -0.0594482421875, -0.031585693359375, 0.085693359375, 0.03521728515625, 0.0005555152893066406, 0.0187225341796875, -0.01953125, -0.011810302734375, -0.0128326416015625, 0.0249176025390625, -0.0169677734375, -0.0231781005859375, -0.010833740234375, 0.05108642578125, 0.0191497802734375, -0.0244598388671875, -0.022247314453125, 0.037872314453125, 0.0311126708984375, 0.068359375, -0.01256561279296875, 0.01702880859375, -0.0116424560546875, -0.0005769729614257812, -0.005603790283203125, 0.0092926025390625, -0.0233306884765625, 0.04095458984375, -0.0777587890625, 0.0295867919921875, 0.03143310546875, -0.0001163482666015625, 0.05352783203125, -0.0229949951171875, -0.019989013671875, -0.0275726318359375, 0.054046630859375, -0.0218048095703125, -0.045135498046875, -0.0295867919921875, 0.033416748046875, -0.025054931640625, -0.047027587890625, 0.0264434814453125, 0.0026264190673828125, 0.0199737548828125, -0.01500701904296875, -0.0267791748046875, -0.0059661865234375, -0.0001608133316040039, 0.0289154052734375, 0.0208740234375, -0.0175933837890625, 0.0279083251953125, -0.00934600830078125, -0.0182342529296875, 0.03240966796875, -0.035369873046875, 0.00103759765625, -0.0232086181640625, -0.0123443603515625, -0.086669921875, -0.007228851318359375, -0.007648468017578125, 0.047607421875, -0.00982666015625, 0.010955810546875, -0.0265045166015625, 0.023406982421875, -0.02978515625, 0.00038743019104003906, -0.009521484375, 0.050750732421875, -0.053375244140625, -0.0394287109375, -0.0104827880859375, -0.053619384765625, -0.01611328125, -0.04119873046875, 0.006328582763671875, 0.004669189453125, -0.0288848876953125, -0.00218963623046875, -0.0211639404296875, 0.01099395751953125, 0.0033168792724609375, -0.019439697265625, -0.0157012939453125, 0.051422119140625, -0.0428466796875, 0.0309600830078125, -0.03973388671875, -0.0248565673828125, 0.07293701171875, 0.00495147705078125, 0.006092071533203125, -0.00708770751953125, 0.0535888671875, -0.0038394927978515625, -0.04913330078125, -0.04779052734375, -0.036041259765625, 0.042816162109375, 0.01322174072265625, 0.0080718994140625, 0.01812744140625, -0.045135498046875, 0.053497314453125, 0.050628662109375, -0.0272674560546875, 0.0070343017578125, 0.0498046875, 0.01216888427734375, -0.03070068359375, 0.012115478515625, -0.035888671875, -0.0108184814453125, 0.02313232421875, -0.0050048828125, -0.0098114013671875, -0.01306915283203125, 0.040863037109375, 0.0131072998046875, -0.01454925537109375, -0.0457763671875, -0.038482666015625, 0.01358795166015625, -0.028839111328125, 0.029754638671875, 0.00043320655822753906, 0.005859375, 0.018798828125, -0.006069183349609375, -0.020050048828125, 0.030975341796875, 0.01506805419921875, -0.0028209686279296875, 0.029541015625, 0.001995086669921875, -0.023681640625, -0.0052947998046875, -0.007434844970703125, 0.068359375, -0.01436614990234375, -0.06500244140625, 0.03533935546875, -0.0248870849609375, 0.0025959014892578125, 0.04547119140625, 0.0305938720703125, 0.03912353515625, -0.02880859375, -0.0279998779296875, -0.0021820068359375, 0.005374908447265625, -0.03375244140625, -0.0268096923828125, 0.01364898681640625, 0.044891357421875, -0.0214691162109375, 0.01235198974609375, 0.039093017578125, 0.0673828125, -0.00608062744140625, -0.034027099609375, 0.070556640625, 0.034454345703125, 0.0272979736328125, 0.004791259765625, -0.00045490264892578125, 0.0310821533203125, -0.026031494140625, -0.032562255859375, -0.05133056640625, 0.003993988037109375, 0.0014982223510742188, 0.01202392578125, 0.01522064208984375, -0.00917816162109375, 0.04010009765625, 0.01248931884765625, 0.0226593017578125, 0.029327392578125, 0.027923583984375, -0.014739990234375, -0.0156402587890625, -0.003131866455078125, -0.0005030632019042969, -0.0214691162109375, 0.006317138671875, -0.022247314453125, -0.0286407470703125, 0.005001068115234375, -0.01381683349609375, -0.002017974853515625, -0.02984619140625, -0.034088134765625, 0.05523681640625, -0.0184173583984375, -0.06060791015625, 0.0650634765625, 0.018798828125, -0.03363037109375, -0.0101776123046875, 0.036407470703125, -0.028350830078125, 0.00942230224609375, -0.034637451171875, -0.0035343170166015625, 0.01018524169921875, 0.0008754730224609375, 0.0689697265625, 0.04315185546875, 0.00931549072265625, -0.015228271484375, -0.04168701171875, -0.024078369140625, -0.0157012939453125, -0.0413818359375, -0.0025348663330078125, -0.0050811767578125, -0.0030670166015625, 0.03179931640625, -0.0105438232421875, -0.032684326171875, 0.0186614990234375, -0.0171661376953125, -0.0294189453125, -0.01065826416015625, 0.00019407272338867188, 0.040924072265625, -0.007781982421875, 0.0167236328125, 0.01342010498046875, 0.01070404052734375, -0.02532958984375, -0.0036983489990234375, 0.0101165771484375, -0.022613525390625, 0.0029621124267578125, -0.0230255126953125, 0.019775390625, -0.042755126953125, -0.0272674560546875, -0.00743865966796875, 0.052001953125, -0.03399658203125, 0.007381439208984375, -0.03106689453125, 0.0065155029296875, -0.09613037109375, 0.0084381103515625, 0.0016269683837890625, -0.03826904296875, -0.041656494140625, 0.00215911865234375, 0.026702880859375, -0.0208587646484375, -0.0173492431640625, -0.034271240234375, 0.012420654296875, 0.0015163421630859375, 0.02630615234375, 0.0369873046875, -0.0045166015625, 0.0235748291015625, -0.02081298828125, 0.00020384788513183594, 0.010162353515625, -0.03741455078125, -0.001697540283203125, 0.053863525390625, 0.0704345703125, -0.01316070556640625, -0.0085296630859375, 0.046112060546875, -0.030242919921875, 0.0301971435546875, 0.046112060546875, 0.08941650390625, -0.06951904296875, 0.023101806640625, 0.0015659332275390625, -0.031890869140625, 0.0200653076171875, -0.00505828857421875, -0.0263519287109375, -0.035125732421875, -0.003246307373046875, 0.02069091796875, -0.02886962890625, -0.00603485107421875, 0.044097900390625, -0.00887298583984375, -0.04241943359375, -0.004116058349609375, 0.00553131103515625, -0.01186370849609375, 0.0168609619140625, 0.022003173828125, -0.005527496337890625, 0.0174102783203125, -0.005886077880859375, 0.034698486328125, -0.023040771484375, -0.052703857421875, 0.029632568359375, -0.00782012939453125, -0.0268402099609375, 0.017669677734375, 0.008758544921875, 0.03497314453125, 0.04510498046875, 0.01995849609375, -0.033782958984375, 0.02191162109375, -0.0047760009765625, -0.06170654296875, -0.0206451416015625, 0.005100250244140625, 0.049591064453125, -0.042938232421875, 0.03131103515625, -0.042449951171875, 0.007801055908203125, -0.003803253173828125, -0.040435791015625, 0.04449462890625, -0.045074462890625, 0.00827789306640625, 0.0185699462890625, 0.029876708984375, 0.00733184814453125, -0.010345458984375, -0.017730712890625, -0.04547119140625, -0.0167694091796875, -0.01300048828125, -0.044525146484375, 0.004497528076171875, 0.004474639892578125, -0.035430908203125, 0.07037353515625, 0.0306243896484375, -0.0182952880859375, 0.0261077880859375, 0.038055419921875, -0.039276123046875, 0.0182342529296875, -0.051910400390625, 0.013427734375, -0.0394287109375, 0.04302978515625, -0.0096282958984375, 0.0229949951171875, 0.012451171875, -0.032318115234375, 0.0246734619140625, 0.0021953582763671875, -0.0214996337890625, 0.002025604248046875, 0.039642333984375, 0.058746337890625, 0.01251220703125, 0.0204925537109375, -0.004772186279296875, -0.004398345947265625, 0.04888916015625, -0.01486968994140625, 0.031646728515625, -0.0094757080078125, -0.01140594482421875, -0.00640106201171875, 0.019317626953125, 0.033782958984375, 0.01372528076171875, 0.03155517578125, 0.043121337890625, -0.0223236083984375, -0.00827789306640625, -0.0288543701171875, 0.0085296630859375, 0.046539306640625, 0.029541015625, -0.034942626953125, -0.00563812255859375, -0.0362548828125, 0.038238525390625, -0.01245880126953125, 0.032989501953125, 0.045745849609375, 0.002521514892578125, 0.09130859375, 0.0215911865234375, 0.00469207763671875, -0.01468658447265625, 0.03485107421875, 0.054901123046875, 0.039703369140625, 0.031951904296875, -0.0275115966796875, -0.004009246826171875, 0.035736083984375, 0.0648193359375, -0.049224853515625, -0.0029811859130859375, 0.00765228271484375, 0.0156402587890625, 0.0010442733764648438, -0.027587890625, 0.010711669921875, 0.033203125, 0.05352783203125, 0.0003597736358642578, -0.00907135009765625, 0.02032470703125, -0.030487060546875, 0.005542755126953125, 0.02960205078125, 0.006435394287109375, 0.01406097412109375, -0.0322265625, 0.01373291015625, 0.032073974609375, 0.05035400390625, -0.0018186569213867188, 0.022308349609375, -0.004718780517578125, -0.007335662841796875, -0.0168914794921875, 0.0281219482421875, -0.024169921875, 0.02587890625, -0.0304718017578125, -0.03411865234375, -0.0118560791015625, 0.040496826171875, 0.01461029052734375, 0.021484375, 0.0193939208984375, 0.026763916015625, 0.014373779296875, 0.01171875, 0.025421142578125, -0.0137176513671875, -0.0450439453125, -0.029510498046875, 0.0176239013671875, 0.043426513671875, 0.034454345703125, -0.01015472412109375, 0.0845947265625, -0.003345489501953125, 0.026214599609375, 0.015625, 0.0182952880859375, 0.02880859375, 0.059906005859375, 0.01551055908203125, -0.0177459716796875, 0.06353759765625, -0.01409912109375, 0.0018758773803710938, 0.0012636184692382812, -0.025665283203125, -0.012481689453125, 0.032073974609375, 0.0007181167602539062, 0.020782470703125, -0.00583648681640625, 0.053558349609375, -0.0184326171875, -0.02032470703125, -0.020172119140625, -0.0423583984375, 0.05401611328125, -0.0027141571044921875, -0.00754547119140625, 0.00548553466796875, 0.021881103515625, -0.0011119842529296875, -0.0165557861328125, 0.0182647705078125, -0.00676727294921875, 0.003124237060546875, -0.0241241455078125, 0.0650634765625, -0.06634521484375, 0.00167083740234375, -0.004375457763671875, -0.0162353515625, 0.01548004150390625, 0.0016508102416992188, 0.009765625, 0.0179290771484375, 0.02783203125, -0.0019350051879882812, 0.01280975341796875, -0.041229248046875, 0.04376220703125, -0.001129150390625, -0.007049560546875, -0.0102691650390625, -0.03216552734375, -0.0020046234130859375, 0.0211181640625, 0.0195770263671875, 0.0802001953125, 0.032379150390625, 0.0311279296875, -0.0104827880859375, -0.003261566162109375, 0.0215606689453125, -0.03802490234375, 0.0540771484375, 0.026031494140625, -0.0233612060546875, -0.0081329345703125, -0.0184478759765625, -0.02362060546875, 0.004878997802734375, -0.01444244384765625, 0.00024509429931640625, 0.0084686279296875, -0.0194854736328125, 0.0096893310546875, 0.06451416015625, 0.055633544921875, 0.003002166748046875, 0.04083251953125, 0.0227813720703125, -0.0165252685546875, 0.01209259033203125, 0.01000213623046875, -0.0259246826171875, -0.0269775390625, 0.00968170166015625, 0.003204345703125, -0.01523590087890625, -0.0037059783935546875, -0.0426025390625, 0.0291290283203125, -0.016357421875, -0.017852783203125, -0.0614013671875, 0.03851318359375, -0.006649017333984375, 0.06158447265625, -0.068115234375, -0.0103912353515625, 0.01486968994140625, 0.051910400390625, -0.01050567626953125, -0.0306396484375, -0.00982666015625, 0.031402587890625, -0.0215911865234375, -0.00665283203125, -0.0037822723388671875, 0.002391815185546875, 0.00267791748046875, -0.0164031982421875, 0.00424957275390625, 0.022857666015625, 0.0182037353515625, -0.03472900390625, 0.0289459228515625, -0.0305023193359375, 0.0115966796875, -0.018951416015625, -0.00640106201171875, -0.054840087890625, 0.004764556884765625, 0.005329132080078125, 0.001220703125, 0.0196533203125, -0.041259765625, -0.11639404296875, 0.09466552734375, -0.046112060546875, -0.033538818359375, -0.0086517333984375, -0.0330810546875, 0.00264739990234375, 0.00791168212890625, -0.01261138916015625, -0.035369873046875, -0.0438232421875, 0.0217132568359375, -0.0037937164306640625, 0.011962890625, 0.002384185791015625, -0.0167083740234375, -0.09552001953125, -0.01087188720703125, -0.0174102783203125, 0.016937255859375, 0.0141143798828125, 0.00269317626953125, 0.039947509765625, 0.038238525390625, -0.029296875, 0.01983642578125, 0.005260467529296875, -0.025787353515625, -0.01120758056640625, -0.0293731689453125, -0.06719970703125, -0.01328277587890625, 0.07794189453125, 0.10345458984375, 0.0306396484375, -0.052520751953125, 0.03204345703125, -0.0128173828125, -0.044158935546875, 0.0158233642578125, 0.0081634521484375, -0.016815185546875, 0.00665283203125, 0.023651123046875, -0.003314971923828125, -0.0226898193359375, 0.029815673828125, -0.021575927734375, -0.00893402099609375, 0.01543426513671875, -0.0269317626953125, 0.01055145263671875, 0.0153350830078125, 0.02239990234375, -0.02838134765625, -0.0128936767578125, 0.0012454986572265625, 0.0025806427001953125, -0.005001068115234375, 0.00437164306640625, -0.0226287841796875, -0.007259368896484375, 0.0062255859375, 0.036285400390625, -0.005146026611328125, -0.0157470703125, -0.034698486328125, 0.00814056396484375, -0.048828125, 0.0266571044921875, 0.020111083984375, 0.037994384765625, -0.0293121337890625, 0.02001953125, 0.03448486328125, 0.0247039794921875, -0.01788330078125, 0.04412841796875, -0.026641845703125, 0.044769287109375, 0.0288238525390625, -0.006649017333984375, 0.0570068359375, 0.0006227493286132812, -0.0007638931274414062, 0.0187835693359375, 0.0309906005859375, -0.051177978515625, 0.0235595703125, 0.005558013916015625, 0.023834228515625, 0.01180267333984375 ]
4ac5ee8b748a93a6ac0bf19081821d959fac68a6
Wordpress Stackexchange Q: Exclude pages from WordPress search result page How can I exclude pages for logged-in members from WordPress search results? A: Add this to your child themes functions file using a code editor like Notepad++. You will need to change the page I.D's in the code to your own. Exclude Specific Pages From Search Results add_filter( 'pre_get_posts', 'exclude_pages_search_when_logged_in' ); function exclude_pages_search_when_logged_in($query) { if ( $query->is_search && is_user_logged_in() ) $query->set( 'post__not_in', array( 1, 2, 3, 4, 5 ) ); return $query; } Exclude All Pages From Search Results add_action('pre_get_posts','exclude_all_pages_search'); function exclude_all_pages_search($query) { if ( ! is_admin() && $query->is_main_query() && $query->is_search && is_user_logged_in() ) $query->set( 'post_type', 'post' ); } Source http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Exclude_Pages_from_Search_Results
Q: Exclude pages from WordPress search result page How can I exclude pages for logged-in members from WordPress search results? A: Add this to your child themes functions file using a code editor like Notepad++. You will need to change the page I.D's in the code to your own. Exclude Specific Pages From Search Results add_filter( 'pre_get_posts', 'exclude_pages_search_when_logged_in' ); function exclude_pages_search_when_logged_in($query) { if ( $query->is_search && is_user_logged_in() ) $query->set( 'post__not_in', array( 1, 2, 3, 4, 5 ) ); return $query; } Exclude All Pages From Search Results add_action('pre_get_posts','exclude_all_pages_search'); function exclude_all_pages_search($query) { if ( ! is_admin() && $query->is_main_query() && $query->is_search && is_user_logged_in() ) $query->set( 'post_type', 'post' ); } Source http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Exclude_Pages_from_Search_Results A: You can use this code on your theme functions.php. Note that I have not tested this. add_filter( 'pre_get_posts', 'SearchFilter' ); function SearchFilter( $query ) { if ( $query->is_search ) { $query->set( 'post__not_in', array( 2, 5, 12, 14, 20 ) ); } return $query; } I get the idea from WPBeginner. Terms of use while this was written: "(...) You are welcome to reference our snippets and hacks on your own blogs/sites as long as you give us full credit from that article. A: Add the following code to your theme’s functions.php file it's perfectly working on my client's site. //Exclude all except post from WordPress Search if (!is_admin()) { function wse_search_filter($query) { if ($query->is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','wse_search_filter'); }
wordpress
{ "language": "en", "length": 233, "provenance": "stackexchange_00019.jsonl.gz:444722", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/142811" }
[ 0.07635498046875, 0.002796173095703125, 0.0311126708984375, -0.005039215087890625, 0.0103302001953125, -0.04632568359375, 0.088134765625, -0.037689208984375, 0.021636962890625, 0.002788543701171875, -0.019805908203125, 0.0272369384765625, -0.05859375, -0.0158843994140625, 0.00353240966796875, -0.022186279296875, 0.0030040740966796875, 0.01361846923828125, 0.034271240234375, -0.0277557373046875, 0.0338134765625, -0.03826904296875, 0.036529541015625, 0.012542724609375, 0.043853759765625, -0.04876708984375, 0.05279541015625, 0.0047760009765625, 0.0311279296875, -0.0180511474609375, 0.0287017822265625, -0.033203125, -0.0031337738037109375, 0.0280609130859375, 0.00811767578125, 0.00121307373046875, -0.0301361083984375, 0.0294952392578125, 0.041015625, -0.0145721435546875, 0.00836944580078125, -0.01026153564453125, -0.066162109375, 0.00588226318359375, -0.054443359375, -0.034942626953125, 0.02728271484375, 0.0028781890869140625, 0.01430511474609375, -0.0233154296875, 0.006397247314453125, 0.01218414306640625, 0.028106689453125, -0.00029087066650390625, -0.024749755859375, 0.0027332305908203125, 0.01413726806640625, 0.0225067138671875, 0.04437255859375, -0.047027587890625, -0.044158935546875, -0.005626678466796875, 0.018218994140625, -0.0182037353515625, -0.03662109375, -0.0263214111328125, -0.01019287109375, 0.0121917724609375, -0.035675048828125, -0.0406494140625, 0.03875732421875, 0.006954193115234375, 0.0098114013671875, 0.0196533203125, -0.0400390625, -0.0309600830078125, 0.037841796875, 0.00989532470703125, 0.0022830963134765625, 0.0007166862487792969, -0.0061187744140625, -0.004955291748046875, -0.05126953125, -0.0214080810546875, 0.0153656005859375, 0.00811767578125, -0.0029544830322265625, 0.0037899017333984375, -0.00794219970703125, 0.014678955078125, -0.0174102783203125, 0.01038360595703125, -0.013916015625, 0.02398681640625, -0.01424407958984375, -0.0051727294921875, 0.0345458984375, 0.044403076171875, -0.0094146728515625, 0.00171661376953125, -0.017486572265625, -0.0350341796875, -0.001697540283203125, -0.022735595703125, 0.006748199462890625, 0.005496978759765625, -0.022369384765625, 0.03717041015625, 0.048736572265625, 0.050750732421875, 0.01140594482421875, -0.0225067138671875, -0.01338958740234375, -0.02935791015625, -0.03338623046875, 0.055938720703125, 0.00782012939453125, -0.0195465087890625, -0.00472259521484375, 0.0117340087890625, -0.0003743171691894531, 0.0008120536804199219, 0.0010747909545898438, -0.05682373046875, 0.01580810546875, -0.017822265625, -0.033477783203125, 0.0236968994140625, 0.04180908203125, 0.0338134765625, -0.041961669921875, -0.0097808837890625, 0.0635986328125, 0.00618743896484375, 0.009185791015625, -0.0361328125, 0.0017080307006835938, -0.0309295654296875, -0.010498046875, 0.028717041015625, 0.006603240966796875, -0.054534912109375, 0.0013027191162109375, -0.0024127960205078125, 0.0149993896484375, -0.017486572265625, 0.03326416015625, 0.050537109375, -0.005046844482421875, -0.02911376953125, 0.02020263671875, 0.047637939453125, 0.031646728515625, -0.002773284912109375, -0.032989501953125, 0.0011920928955078125, 0.0157470703125, -0.023681640625, -0.0186767578125, -0.00836181640625, 0.04229736328125, 0.009735107421875, 0.00954437255859375, 0.0237884521484375, 0.004955291748046875, -0.035888671875, -0.021392822265625, 0.0013551712036132812, 0.0164947509765625, 0.00331878662109375, 0.0289459228515625, -0.028167724609375, 0.04913330078125, -0.033172607421875, -0.034881591796875, -0.01477813720703125, -0.01155853271484375, 0.03973388671875, 0.0296173095703125, -0.0123748779296875, 0.004581451416015625, -0.0174713134765625, 0.05462646484375, 0.0076751708984375, -0.044891357421875, 0.05206298828125, 0.01238250732421875, 0.0193939208984375, -0.0253143310546875, -0.003253936767578125, 0.06256103515625, 0.060791015625, -0.029815673828125, 0.01360321044921875, -0.0126800537109375, -0.0222930908203125, 0.0028438568115234375, -0.00368499755859375, -0.018310546875, 0.035003662109375, 0.0445556640625, 0.00003612041473388672, -0.01168060302734375, -0.00531005859375, -0.059539794921875, -0.00396728515625, -0.0134124755859375, 0.0022125244140625, -0.0310211181640625, 0.00959014892578125, 0.03369140625, 0.0281982421875, -0.04339599609375, 0.0122528076171875, -0.007511138916015625, -0.0187225341796875, -0.007221221923828125, 0.028106689453125, 0.0243988037109375, 0.0084075927734375, 0.04107666015625, -0.0272216796875, 0.0222015380859375, -0.008514404296875, 0.09326171875, -0.023895263671875, -0.00635528564453125, -0.046356201171875, 0.060760498046875, -0.033050537109375, -0.0223541259765625, 0.0765380859375, 0.05694580078125, 0.10125732421875, -0.0222320556640625, 0.003620147705078125, -0.0183563232421875, 0.0182037353515625, -0.01023101806640625, 0.0117340087890625, 0.040252685546875, 0.047637939453125, -0.01372528076171875, -0.02801513671875, 0.05072021484375, -0.05474853515625, 0.0034122467041015625, -0.01364898681640625, 0.01079559326171875, 0.06768798828125, 0.006076812744140625, -0.0096588134765625, 0.01026153564453125, -0.0063018798828125, 0.006725311279296875, 0.02264404296875, 0.006710052490234375, 0.0041046142578125, 0.0003407001495361328, -0.0289764404296875, 0.0133209228515625, -0.042724609375, -0.0419921875, -0.006195068359375, -0.06024169921875, -0.011016845703125, -0.029449462890625, -0.0117340087890625, -0.015533447265625, -0.03289794921875, 0.051300048828125, 0.00630950927734375, -0.0107879638671875, 0.0304718017578125, 0.0411376953125, -0.00962066650390625, -0.0267486572265625, -0.0025234222412109375, -0.005008697509765625, 0.01030731201171875, 0.0100250244140625, 0.054718017578125, 0.051666259765625, 0.00057220458984375, -0.022674560546875, -0.038787841796875, 0.03076171875, 0.042205810546875, -0.003314971923828125, -0.01259613037109375, 0.00952911376953125, 0.0171966552734375, -0.01435089111328125, 0.009429931640625, 0.024505615234375, -0.027008056640625, 0.005825042724609375, -0.036041259765625, 0.038330078125, -0.0308074951171875, 0.06915283203125, 0.06732177734375, -0.007564544677734375, 0.00875091552734375, -0.013763427734375, -0.02093505859375, -0.04522705078125, 0.023162841796875, 0.003597259521484375, -0.0232391357421875, -0.00909423828125, 0.0682373046875, 0.0259552001953125, 0.01531982421875, 0.016265869140625, -0.0131378173828125, 0.01366424560546875, 0.01512908935546875, -0.043182373046875, -0.061614990234375, 0.007568359375, -0.051666259765625, 0.0002256631851196289, -0.001556396484375, -0.0162353515625, -0.00022661685943603516, 0.0257110595703125, -0.000008761882781982422, 0.0251007080078125, -0.0220794677734375, -0.064453125, -0.00939178466796875, -0.0270538330078125, 0.037445068359375, -0.0192718505859375, -0.016754150390625, 0.0080718994140625, 0.07904052734375, 0.015899658203125, -0.0645751953125, 0.004390716552734375, 0.050323486328125, -0.038055419921875, -0.0115203857421875, -0.056243896484375, 0.01837158203125, 0.019256591796875, -0.0048675537109375, 0.061004638671875, -0.009765625, 0.01910400390625, -0.0012378692626953125, -0.009552001953125, 0.01410675048828125, 0.0496826171875, -0.061798095703125, -0.027252197265625, 0.0219879150390625, 0.0178680419921875, -0.035064697265625, 0.0125579833984375, -0.032501220703125, -0.021881103515625, 0.03582763671875, 0.0211944580078125, -0.005054473876953125, -0.0003781318664550781, -0.0115814208984375, 0.042266845703125, 0.0166015625, -0.02069091796875, 0.006175994873046875, -0.0014057159423828125, 0.0325927734375, 0.042327880859375, 0.00951385498046875, 0.04595947265625, -0.03533935546875, 0.01441192626953125, 0.0137176513671875, 0.00792694091796875, 0.021148681640625, -0.03448486328125, -0.0046234130859375, -0.021820068359375, 0.042999267578125, 0.00765228271484375, 0.02728271484375, -0.0408935546875, -0.03125, -0.031494140625, 0.0753173828125, -0.04339599609375, -0.041656494140625, -0.0248565673828125, 0.01558685302734375, 0.026214599609375, -0.06298828125, 0.037750244140625, -0.03814697265625, -0.07891845703125, 0.0018281936645507812, -0.01105499267578125, -0.03253173828125, -0.013031005859375, -0.0185089111328125, -0.033203125, -0.03924560546875, 0.0087890625, 0.07086181640625, 0.002292633056640625, -0.0250701904296875, 0.00994873046875, -0.0286102294921875, 0.018096923828125, 0.031707763671875, -0.0546875, -0.0015811920166015625, -0.0162353515625, 0.041107177734375, 0.01514434814453125, 0.00708770751953125, -0.04339599609375, 0.0101470947265625, 0.027435302734375, -0.006900787353515625, 0.0167999267578125, -0.0279693603515625, 0.027496337890625, 0.060272216796875, 0.0017709732055664062, 0.0120391845703125, 0.029815673828125, 0.020233154296875, -0.0258636474609375, -0.01451873779296875, -0.059722900390625, -0.059417724609375, -0.00725555419921875, -0.052001953125, -0.0009102821350097656, -0.04876708984375, -0.001972198486328125, -0.003582000732421875, -0.00323486328125, -0.0017137527465820312, -0.03192138671875, 0.01386260986328125, 0.047454833984375, 0.079345703125, -0.04595947265625, -0.01025390625, 0.00418853759765625, 0.016357421875, -0.060302734375, -0.033660888671875, 0.0097503662109375, 0.019744873046875, -0.04522705078125, 0.0694580078125, 0.0019817352294921875, -0.026153564453125, 0.111328125, -0.038665771484375, -0.0256195068359375, -0.0150146484375, 0.037994384765625, -0.0109405517578125, -0.036712646484375, 0.00759124755859375, -0.040191650390625, 0.040924072265625, 0.0008878707885742188, 0.007343292236328125, -0.044586181640625, 0.01373291015625, 0.0477294921875, 0.00414276123046875, 0.017486572265625, -0.014373779296875, -0.0244903564453125, -0.01276397705078125, 0.034271240234375, 0.04052734375, 0.042266845703125, -0.016326904296875, 0.0298004150390625, 0.020294189453125, -0.0192718505859375, 0.01468658447265625, 0.02490234375, -0.03070068359375, 0.0195465087890625, -0.0095977783203125, -0.05322265625, -0.00417327880859375, -0.007598876953125, 0.0305023193359375, -0.0112152099609375, -0.04302978515625, 0.0248565673828125, -0.0169525146484375, 0.0061187744140625, 0.038787841796875, 0.0150146484375, 0.05157470703125, 0.01287078857421875, -0.023956298828125, -0.0183563232421875, 0.00469207763671875, -0.033050537109375, -0.058258056640625, -0.03228759765625, -0.0300140380859375, 0.0019464492797851562, 0.0037746429443359375, 0.0665283203125, -0.0312347412109375, 0.0562744140625, -0.02471923828125, -0.005191802978515625, -0.0259857177734375, 0.029510498046875, 0.0032405853271484375, 0.026458740234375, 0.0020885467529296875, 0.014495849609375, 0.03369140625, -0.0111846923828125, -0.0272369384765625, -0.00995635986328125, -0.032379150390625, -0.00739288330078125, 0.0080108642578125, 0.047271728515625, 0.0389404296875, 0.007293701171875, 0.040008544921875, 0.02703857421875, -0.03289794921875, -0.02294921875, -0.0272216796875, 0.00681304931640625, -0.0280609130859375, -0.00785064697265625, 0.00307464599609375, -0.0006623268127441406, -0.0188751220703125, 0.01514434814453125, -0.0718994140625, 0.0023937225341796875, 0.036102294921875, -0.0499267578125, -0.042755126953125, 0.0007414817810058594, -0.06683349609375, -0.01374053955078125, 0.00664520263671875, 0.00225830078125, -0.004306793212890625, -0.035064697265625, 0.036651611328125, -0.0137939453125, -0.0015821456909179688, 0.0109100341796875, 0.0204925537109375, 0.0083465576171875, 0.00450897216796875, -0.0088348388671875, -0.00438690185546875, -0.0526123046875, -0.0236053466796875, 0.0008873939514160156, -0.003509521484375, -0.037445068359375, -0.018463134765625, 0.022308349609375, 0.01036834716796875, -0.005779266357421875, -0.037139892578125, 0.007266998291015625, 0.01253509521484375, 0.0177154541015625, 0.019439697265625, -0.0302276611328125, 0.05499267578125, -0.006439208984375, 0.0384521484375, -0.007556915283203125, 0.03985595703125, 0.02001953125, -0.0107574462890625, 0.01045989990234375, -0.07391357421875, -0.0394287109375, 0.01374053955078125, -0.08099365234375, 0.048187255859375, 0.054901123046875, -0.002132415771484375, -0.02642822265625, 0.00618743896484375, 0.0048980712890625, -0.0279388427734375, 0.032623291015625, 0.02435302734375, -0.007427215576171875, 0.009857177734375, 0.016815185546875, 0.031463623046875, -0.023345947265625, -0.029144287109375, -0.006183624267578125, 0.026123046875, 0.005931854248046875, -0.02020263671875, -0.0254364013671875, 0.0377197265625, 0.0653076171875, 0.007694244384765625, 0.03900146484375, 0.016876220703125, 0.002147674560546875, 0.01111602783203125, -0.0131378173828125, 0.0035419464111328125, -0.006969451904296875, 0.06756591796875, 0.0003757476806640625, -0.020477294921875, 0.06451416015625, -0.036346435546875, 0.004573822021484375, 0.05828857421875, 0.0131683349609375, -0.10870361328125, 0.0002582073211669922, -0.01012420654296875, 0.00798797607421875, 0.012115478515625, 0.01262664794921875, 0.01139068603515625, -0.0023021697998046875, -0.002193450927734375, 0.00911712646484375, -0.01329803466796875, 0.0010938644409179688, -0.0030117034912109375, -0.0443115234375, -0.029388427734375, -0.0196685791015625, -0.00632476806640625, -0.027801513671875, 0.0207672119140625, 0.0041961669921875, -0.010406494140625, -0.0186920166015625, 0.0322265625, 0.010772705078125, -0.0224151611328125, -0.10650634765625, -0.012939453125, 0.0113067626953125, -0.048095703125, 0.0281829833984375, 0.00409698486328125, 0.043548583984375, 0.041168212890625, 0.00632476806640625, -0.0233612060546875, 0.0084686279296875, -0.0219879150390625, 0.0211639404296875, -0.005207061767578125, 0.0196380615234375, 0.037384033203125, -0.051605224609375, 0.00702667236328125, -0.01525115966796875, 0.0090484619140625, -0.01265716552734375, -0.0753173828125, 0.0556640625, -0.04083251953125, 0.003414154052734375, 0.0008401870727539062, 0.007904052734375, 0.006069183349609375, 0.005584716796875, 0.0284271240234375, -0.00963592529296875, -0.00019943714141845703, 0.00916290283203125, -0.01203155517578125, -0.002666473388671875, -0.0017042160034179688, -0.06915283203125, 0.032318115234375, -0.0283966064453125, 0.0555419921875, 0.0024814605712890625, 0.007251739501953125, 0.01027679443359375, 0.0013246536254882812, -0.04901123046875, 0.061279296875, 0.01519012451171875, 0.07586669921875, -0.0211639404296875, -0.012786865234375, 0.0380859375, 0.02728271484375, 0.03802490234375, 0.01322174072265625, -0.059539794921875, -0.047332763671875, 0.00734710693359375, 0.07232666015625, 0.037872314453125, 0.03857421875, 0.0218963623046875, 0.043426513671875, 0.0455322265625, -0.051239013671875, 0.0310211181640625, -0.036041259765625, 0.0028476715087890625, 0.0413818359375, 0.0010900497436523438, 0.00376129150390625, -0.0184173583984375, 0.0201873779296875, -0.020599365234375, -0.0157623291015625, -0.0108642578125, 0.04962158203125, 0.008209228515625, 0.03057861328125, 0.03424072265625, -0.059661865234375, -0.048126220703125, -0.0308837890625, 0.029449462890625, 0.0244598388671875, 0.075439453125, 0.0219573974609375, 0.0174102783203125, 0.0771484375, 0.0184783935546875, 0.0498046875, 0.032470703125, -0.0311737060546875, 0.031341552734375, 0.003696441650390625, 0.026153564453125, -0.046600341796875, 0.026519775390625, 0.027130126953125, 0.04180908203125, -0.032012939453125, -0.036834716796875, 0.004608154296875, 0.00238037109375, 0.0055999755859375, 0.0005407333374023438, -0.00817108154296875, 0.01201629638671875, 0.053985595703125, -0.0312042236328125, -0.0037994384765625, 0.006336212158203125, 0.01036834716796875, -0.035186767578125, -0.06640625, 0.0369873046875, 0.017333984375, -0.00006389617919921875, -0.029754638671875, -0.01515960693359375, 0.00807952880859375, 0.042633056640625, -0.0087890625, -0.01021575927734375, -0.009185791015625, -0.01812744140625, 0.0018024444580078125, -0.03436279296875, 0.034027099609375, -0.03643798828125, -0.0274505615234375, -0.0063018798828125, 0.03924560546875, 0.028961181640625, 0.0084991455078125, 0.004116058349609375, 0.008514404296875, -0.030303955078125, 0.011322021484375, 0.045806884765625, -0.0104217529296875, -0.02392578125, -0.020660400390625, 0.0308074951171875, 0.0467529296875, 0.0193023681640625, -0.0245208740234375, 0.033843994140625, 0.0234527587890625, 0.01373291015625, 0.01537322998046875, 0.01026153564453125, -0.0308380126953125, 0.00463104248046875, 0.0010204315185546875, 0.052825927734375, 0.02081298828125, -0.0679931640625, 0.0009360313415527344, -0.0377197265625, -0.054931640625, 0.0248565673828125, 0.0276336669921875, -0.017578125, 0.003173828125, 0.0853271484375, -0.00799560546875, -0.0032749176025390625, 0.00518798828125, 0.03912353515625, -0.0206756591796875, 0.016265869140625, 0.0237884521484375, -0.04345703125, -0.0037860870361328125, -0.01256561279296875, 0.002201080322265625, 0.0063934326171875, 0.072265625, 0.0067138671875, -0.0008826255798339844, 0.0064849853515625, 0.01454925537109375, -0.0223236083984375, -0.0171356201171875, 0.037567138671875, -0.057586669921875, -0.02398681640625, 0.016021728515625, -0.033172607421875, 0.0095062255859375, 0.0240936279296875, 0.00447845458984375, 0.03277587890625, -0.042022705078125, 0.0167388916015625, -0.011077880859375, -0.003307342529296875, -0.02215576171875, 0.0025463104248046875, -0.021331787109375, -0.0206451416015625, 0.042083740234375, 0.01141357421875, -0.0467529296875, 0.048797607421875, -0.004596710205078125, -0.01328277587890625, 0.0260467529296875, -0.043792724609375, 0.0235748291015625, 0.035308837890625, 0.002620697021484375, 0.046905517578125, -0.013153076171875, -0.0184783935546875, 0.0106353759765625, 0.0273590087890625, -0.060211181640625, 0.00429534912109375, 0.007724761962890625, -0.0198211669921875, -0.0145721435546875, 0.01352691650390625, -0.006183624267578125, -0.0031719207763671875, -0.038177490234375, -0.007022857666015625, -0.00402069091796875, -0.0171051025390625, -0.036773681640625, -0.0145263671875, -0.020355224609375, 0.00539398193359375, -0.0033111572265625, -0.0831298828125, -0.038482666015625, 0.0159454345703125, 0.0309600830078125, 0.01715087890625, -0.0914306640625, 0.055511474609375, -0.019683837890625, 0.03570556640625, -0.01085662841796875, -0.00720977783203125, -0.01213836669921875, 0.00583648681640625, -0.0083160400390625, 0.007129669189453125, -0.034637451171875, 0.0008339881896972656, 0.03179931640625, -0.0214691162109375, 0.045196533203125, 0.0208587646484375, -0.0362548828125, -0.0438232421875, -0.05328369140625, 0.0013399124145507812, -0.08905029296875, -0.032623291015625, 0.02496337890625, -0.0161590576171875, 0.0015420913696289062, -0.0300445556640625, -0.01548004150390625, -0.01242828369140625, 0.00485992431640625, 0.045074462890625, -0.0200347900390625, 0.020538330078125, -0.015960693359375, -0.08154296875, 0.04388427734375, 0.0095672607421875, -0.05010986328125, -0.072021484375, 0.0391845703125, 0.0060577392578125, -0.0325927734375, -0.0240631103515625, -0.016448974609375, -0.0134429931640625, 0.0241241455078125, 0.041351318359375, -0.007293701171875, 0.03399658203125, 0.034759521484375, -0.056671142578125, 0.035888671875, 0.0172576904296875, 0.0391845703125, -0.017669677734375, 0.0325927734375, 0.0255126953125, 0.045135498046875, -0.0168914794921875, 0.073486328125, -0.00677490234375, 0.01114654541015625, 0.0081024169921875, -0.004352569580078125, -0.037017822265625, -0.02337646484375, 0.0382080078125, 0.03082275390625, 0.019927978515625, -0.002536773681640625, -0.0260162353515625, -0.0236968994140625, 0.0223236083984375, -0.0080108642578125, 0.003368377685546875, -0.043975830078125, 0.0021514892578125, -0.01131439208984375, -0.005123138427734375, 0.0096282958984375, -0.014739990234375, -0.025360107421875, -0.010223388671875, 0.0126800537109375, 0.0121307373046875, -0.044769287109375, 0.05035400390625, -0.02716064453125, -0.02032470703125, -0.06304931640625, -0.0019741058349609375, -0.01340484619140625, -0.0521240234375, -0.029937744140625, 0.021209716796875, 0.006786346435546875, -0.0160064697265625, -0.0081329345703125, 0.03363037109375, -0.01214599609375, 0.01372528076171875, -0.0215911865234375, -0.03997802734375, 0.020172119140625, 0.01062774658203125, 0.01543426513671875, -0.02850341796875, 0.001529693603515625, 0.02545166015625, 0.045196533203125, 0.002216339111328125, 0.0439453125, -0.006458282470703125, 0.041229248046875, 0.033935546875, -0.0341796875, 0.057159423828125, -0.0240020751953125, -0.0045166015625, -0.0328369140625, -0.0006518363952636719, -0.060699462890625, 0.0264434814453125, -0.00969696044921875, -0.00464630126953125, 0.025146484375 ]
4610330e092182579a02de867752ccd8b86b0a74
Wordpress Stackexchange Q: Get category id from post id of a custom post type I want to get category id from post id of a custom type. I have the post id, but I can't get it's category id. I have used so many codes but it doesn't work, may be due to custom post type. $category = get_the_category( $post->ID ); Any suggestions? A: Are your custom post type supporting the standard category taxonomy? If the category used in your custom post type is a custom taxonomy and not the standard category taxonomy you should get_the_terms() instead of get_the_category(). $categories = get_the_terms($post->ID, "my-custom-taxonomy");
Q: Get category id from post id of a custom post type I want to get category id from post id of a custom type. I have the post id, but I can't get it's category id. I have used so many codes but it doesn't work, may be due to custom post type. $category = get_the_category( $post->ID ); Any suggestions? A: Are your custom post type supporting the standard category taxonomy? If the category used in your custom post type is a custom taxonomy and not the standard category taxonomy you should get_the_terms() instead of get_the_category(). $categories = get_the_terms($post->ID, "my-custom-taxonomy"); A: wp_get_post_categories can only get POST categories not a custom post's categories, try this instead: $category = get_the_terms( $post->ID, 'custom-taxonomy-here' ); foreach ( $category as $cat){ echo $cat->name; } Check this link A: this solution works for me: global $wpdb; // get all category id's based on post id $result = $wpdb->get_results( " select term_taxonomy_id from " . $wpdb->prefix . "term_relationships where object_id = '" . $post_id . "' " ); $cats_ids_array = []; foreach ( $result as $c ) { $cats_ids_array[] = $c->term_taxonomy_id; }
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:444837", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/143241" }
[ 0.035858154296875, 0.0032482147216796875, -0.0102691650390625, -0.0288238525390625, 0.0244140625, -0.021759033203125, 0.04071044921875, -0.00408172607421875, -0.025177001953125, 0.0150299072265625, -0.01922607421875, -0.004360198974609375, -0.0308837890625, -0.03369140625, 0.0010433197021484375, -0.058013916015625, 0.03680419921875, -0.012359619140625, 0.0379638671875, -0.0184478759765625, 0.012908935546875, -0.0025272369384765625, 0.049407958984375, 0.0338134765625, 0.03717041015625, -0.0203399658203125, 0.018524169921875, -0.025177001953125, 0.0221710205078125, -0.0170745849609375, 0.0291290283203125, -0.00447845458984375, -0.012176513671875, -0.007701873779296875, 0.0584716796875, 0.0080718994140625, 0.0089263916015625, 0.0101470947265625, 0.054718017578125, -0.00788116455078125, 0.02398681640625, -0.01277923583984375, 0.03369140625, -0.01557159423828125, 0.000667572021484375, -0.020660400390625, 0.00478363037109375, -0.058380126953125, 0.007236480712890625, -0.036712646484375, 0.027618408203125, 0.0008950233459472656, 0.052825927734375, -0.039642333984375, -0.0221405029296875, -0.00876617431640625, -0.0025730133056640625, -0.01470947265625, 0.058380126953125, -0.04119873046875, -0.053070068359375, -0.05657958984375, 0.05194091796875, -0.017059326171875, -0.001476287841796875, 0.020599365234375, 0.055450439453125, 0.0208587646484375, -0.01959228515625, -0.0174713134765625, 0.0160064697265625, -0.01385498046875, 0.01148223876953125, 0.00281524658203125, -0.019256591796875, -0.09130859375, 0.05914306640625, -0.038330078125, -0.0281524658203125, 0.029693603515625, -0.015777587890625, -0.02459716796875, -0.05670166015625, 0.01776123046875, -0.018096923828125, 0.033416748046875, -0.025848388671875, -0.0136566162109375, -0.0108795166015625, -0.033599853515625, -0.01409149169921875, -0.0253143310546875, -0.033203125, 0.032501220703125, -0.001873016357421875, -0.037109375, 0.0283966064453125, 0.05474853515625, -0.035614013671875, 0.0015192031860351562, -0.00629425048828125, -0.0338134765625, 0.01922607421875, -0.0396728515625, 0.0026798248291015625, -0.007266998291015625, -0.0007147789001464844, -0.006927490234375, 0.038238525390625, 0.042205810546875, -0.0186614990234375, 0.01088714599609375, 0.0099029541015625, -0.002002716064453125, -0.032745361328125, 0.024139404296875, -0.01922607421875, -0.008087158203125, -0.0164642333984375, 0.006099700927734375, 0.01233673095703125, 0.03863525390625, 0.0286102294921875, 0.006683349609375, 0.006916046142578125, 0.035003662109375, -0.00746917724609375, -0.0687255859375, 0.01366424560546875, -0.02850341796875, -0.070556640625, 0.02069091796875, 0.08343505859375, 0.04522705078125, 0.039398193359375, -0.01898193359375, -0.00916290283203125, -0.02227783203125, 0.006763458251953125, -0.01409149169921875, 0.018463134765625, 0.0001367330551147461, 0.02508544921875, -0.00687408447265625, -0.007648468017578125, 0.020294189453125, 0.005229949951171875, 0.01081085205078125, -0.00551605224609375, -0.043121337890625, 0.0193939208984375, -0.042633056640625, 0.03216552734375, 0.0218048095703125, 0.01261138916015625, -0.01503753662109375, 0.056488037109375, -0.0426025390625, -0.0183258056640625, -0.05462646484375, 0.04388427734375, 0.0127410888671875, 0.0011873245239257812, 0.0494384765625, 0.00372314453125, 0.00406646728515625, -0.03363037109375, -0.004322052001953125, 0.0226898193359375, 0.0291595458984375, 0.027984619140625, -0.001407623291015625, -0.00914764404296875, 0.006954193115234375, 0.00174713134765625, -0.01873779296875, -0.0174102783203125, -0.0458984375, 0.03961181640625, 0.0340576171875, -0.03448486328125, -0.038299560546875, -0.038482666015625, 0.0173187255859375, -0.028228759765625, 0.048736572265625, 0.01153564453125, 0.06854248046875, 0.0020847320556640625, 0.016204833984375, -0.0169525146484375, 0.0148468017578125, -0.07147216796875, -0.008209228515625, 0.01546478271484375, 0.012237548828125, -0.023834228515625, -0.00655364990234375, 0.004474639892578125, -0.0036869049072265625, -0.01540374755859375, -0.01207733154296875, -0.01450347900390625, 0.0284576416015625, -0.036590576171875, -0.0168609619140625, 0.0027484893798828125, 0.02215576171875, -0.0002930164337158203, 0.01160430908203125, 0.0219573974609375, -0.019866943359375, -0.00606536865234375, -0.05523681640625, -0.03363037109375, 0.0176849365234375, -0.024200439453125, -0.020599365234375, -0.0439453125, -0.01474761962890625, -0.05657958984375, 0.00971221923828125, -0.059173583984375, 0.03759765625, 0.0362548828125, 0.036102294921875, -0.0271453857421875, 0.0025463104248046875, 0.0401611328125, 0.0443115234375, -0.0621337890625, -0.0272064208984375, 0.036529541015625, 0.01213836669921875, -0.030609130859375, -0.0098419189453125, 0.03515625, -0.05828857421875, 0.01007843017578125, 0.05511474609375, 0.0265655517578125, -0.00173187255859375, -0.02838134765625, -0.01108551025390625, 0.03497314453125, -0.0260162353515625, 0.000457763671875, -0.01432037353515625, 0.0303497314453125, 0.044036865234375, 0.037109375, 0.00609588623046875, 0.02362060546875, 0.01873779296875, 0.027252197265625, 0.035247802734375, 0.006572723388671875, -0.009979248046875, 0.01029205322265625, -0.00263214111328125, 0.0084228515625, -0.037872314453125, -0.04254150390625, -0.00750732421875, 0.035797119140625, 0.0262908935546875, 0.05181884765625, 0.045196533203125, -0.027099609375, 0.0015687942504882812, -0.00034117698669433594, 0.018829345703125, -0.007183074951171875, 0.05096435546875, 0.0231475830078125, 0.0094451904296875, -0.040802001953125, -0.00901031494140625, 0.0085601806640625, 0.0218353271484375, 0.00005608797073364258, 0.04632568359375, 0.00373077392578125, -0.013885498046875, -0.016082763671875, -0.07000732421875, -0.00949859619140625, 0.019134521484375, -0.054351806640625, -0.01336669921875, 0.01495361328125, 0.04559326171875, -0.00917816162109375, -0.0081634521484375, -0.00580596923828125, 0.021240234375, 0.0178070068359375, -0.053253173828125, 0.0506591796875, -0.037200927734375, 0.037353515625, 0.072509765625, -0.0169677734375, 0.03118896484375, 0.0191802978515625, -0.0175018310546875, 0.03619384765625, 0.0162506103515625, 0.01403045654296875, -0.0055999755859375, -0.037200927734375, 0.019073486328125, 0.03204345703125, 0.08526611328125, -0.00597381591796875, -0.039398193359375, 0.0227508544921875, 0.051849365234375, -0.0218963623046875, -0.04931640625, 0.040924072265625, -0.008270263671875, -0.00481414794921875, -0.039276123046875, -0.003856658935546875, -0.01110076904296875, -0.050323486328125, -0.014678955078125, 0.03765869140625, -0.031036376953125, -0.074951171875, -0.040374755859375, -0.0941162109375, -0.051361083984375, -0.00638580322265625, 0.01175689697265625, 0.01934814453125, 0.0276336669921875, 0.0161895751953125, -0.036956787109375, 0.029693603515625, 0.026519775390625, -0.0239105224609375, 0.011260986328125, 0.002475738525390625, -0.0029544830322265625, 0.008941650390625, 0.01258087158203125, -0.025238037109375, 0.012176513671875, 0.0026454925537109375, -0.0270843505859375, -0.0255584716796875, 0.0278472900390625, 0.01407623291015625, 0.01546478271484375, 0.02484130859375, 0.042449951171875, 0.03680419921875, -0.01513671875, 0.00577545166015625, -0.031280517578125, -0.0193939208984375, 0.0290374755859375, 0.00945281982421875, -0.00292205810546875, -0.039337158203125, 0.0372314453125, -0.0155487060546875, 0.0090179443359375, -0.0361328125, -0.0423583984375, 0.07135009765625, 0.016448974609375, 0.031463623046875, 0.0272369384765625, -0.01434326171875, -0.042694091796875, 0.0267791748046875, -0.02349853515625, -0.005764007568359375, -0.023651123046875, 0.02056884765625, -0.0251312255859375, -0.07220458984375, 0.055145263671875, -0.0283203125, -0.0300140380859375, -0.01314544677734375, -0.028472900390625, 0.030914306640625, 0.105712890625, 0.00148773193359375, -0.01363372802734375, -0.02447509765625, 0.0024662017822265625, -0.005878448486328125, -0.03472900390625, -0.03863525390625, -0.02008056640625, -0.063720703125, -0.00481414794921875, -0.0018596649169921875, -0.02581787109375, -0.01107025146484375, 0.06640625, -0.043548583984375, -0.0209197998046875, 0.045623779296875, -0.052947998046875, 0.0227508544921875, 0.02197265625, 0.0181121826171875, -0.00008577108383178711, -0.03704833984375, -0.0201416015625, -0.0129852294921875, 0.0026378631591796875, -0.014373779296875, -0.00684356689453125, 0.0010080337524414062, 0.00836181640625, 0.00322723388671875, 0.01013946533203125, 0.021942138671875, 0.026214599609375, -0.0025386810302734375, 0.00531768798828125, -0.0345458984375, -0.007598876953125, -0.000736236572265625, -0.0276641845703125, -0.0167083740234375, -0.0175933837890625, -0.01593017578125, 0.04559326171875, -0.0273284912109375, 0.0057373046875, -0.02032470703125, -0.0207366943359375, -0.0499267578125, -0.0295867919921875, -0.030120849609375, -0.014129638671875, -0.0177459716796875, 0.0048828125, -0.037628173828125, -0.053802490234375, 0.06298828125, 0.038116455078125, 0.005138397216796875, -0.0140228271484375, 0.080810546875, 0.006671905517578125, -0.049285888671875, -0.035736083984375, 0.01025390625, 0.037384033203125, -0.0201263427734375, 0.043426513671875, 0.0095367431640625, -0.043609619140625, 0.0770263671875, 0.01117706298828125, -0.0183563232421875, -0.02313232421875, 0.0892333984375, -0.00882720947265625, -0.0028438568115234375, -0.0017337799072265625, -0.05999755859375, 0.026641845703125, 0.01641845703125, -0.0275421142578125, -0.0255889892578125, -0.0028934478759765625, 0.06207275390625, -0.03662109375, 0.05133056640625, -0.035888671875, -0.0269927978515625, 0.0267181396484375, -0.008392333984375, 0.00974273681640625, 0.0278778076171875, -0.007129669189453125, 0.0074005126953125, -0.030426025390625, 0.00914764404296875, -0.007747650146484375, 0.00559234619140625, -0.0021514892578125, 0.0216827392578125, 0.011138916015625, 0.003498077392578125, -0.01079559326171875, 0.00909423828125, -0.00524139404296875, -0.0228729248046875, -0.04437255859375, -0.0245819091796875, -0.00283050537109375, -0.008544921875, 0.035186767578125, -0.04150390625, 0.02191162109375, 0.038909912109375, -0.0061798095703125, 0.0187530517578125, -0.050872802734375, 0.00482177734375, -0.02166748046875, -0.0208740234375, 0.0095977783203125, -0.023651123046875, 0.0185394287109375, 0.0250244140625, -0.0012378692626953125, 0.017547607421875, -0.01371002197265625, 0.0380859375, 0.0092315673828125, 0.05072021484375, 0.01422119140625, -0.0280609130859375, -0.002399444580078125, -0.0045013427734375, -0.0245513916015625, -0.060638427734375, -0.0032367706298828125, -0.01119232177734375, 0.0511474609375, -0.0009374618530273438, -0.0362548828125, 0.050140380859375, -0.01739501953125, -0.006366729736328125, -0.00540924072265625, -0.00899505615234375, -0.01136016845703125, -0.01233673095703125, -0.003528594970703125, 0.00919342041015625, 0.0198822021484375, -0.02099609375, 0.0144500732421875, -0.037322998046875, 0.03497314453125, -0.0140533447265625, 0.007053375244140625, -0.004230499267578125, 0.00020599365234375, -0.056915283203125, -0.027923583984375, -0.01256561279296875, 0.024261474609375, 0.005268096923828125, -0.005401611328125, -0.0408935546875, 0.01334381103515625, 0.0033168792724609375, 0.0623779296875, -0.0198974609375, -0.051055908203125, 0.017333984375, -0.0122222900390625, 0.064453125, 0.021026611328125, -0.033050537109375, 0.0086669921875, -0.04522705078125, -0.0010728836059570312, -0.00823974609375, -0.07763671875, -0.0203094482421875, -0.032257080078125, 0.01226806640625, 0.01218414306640625, 0.004703521728515625, 0.01004791259765625, -0.025238037109375, 0.016510009765625, 0.0131988525390625, 0.010467529296875, -0.00997161865234375, 0.03131103515625, 0.02252197265625, 0.040069580078125, 0.0052337646484375, 0.0012311935424804688, -0.0171966552734375, -0.0273284912109375, -0.0246734619140625, -0.04315185546875, 0.0173797607421875, 0.014251708984375, 0.016632080078125, -0.0032634735107421875, 0.01055145263671875, 0.0135650634765625, 0.00948333740234375, -0.005924224853515625, -0.004184722900390625, -0.0159759521484375, -0.018157958984375, 0.0181732177734375, -0.0037517547607421875, 0.01149749755859375, -0.03369140625, 0.005401611328125, 0.0302276611328125, 0.02685546875, -0.00445556640625, -0.04547119140625, 0.0100250244140625, 0.031646728515625, -0.0151214599609375, 0.036956787109375, 0.049407958984375, 0.023101806640625, 0.03924560546875, 0.00194549560546875, 0.0279083251953125, -0.002460479736328125, 0.03790283203125, -0.010589599609375, -0.0433349609375, 0.041412353515625, 0.0149078369140625, -0.0299224853515625, 0.0188751220703125, -0.03277587890625, -0.01409149169921875, 0.00804901123046875, 0.048248291015625, -0.031402587890625, -0.0004322528839111328, 0.039215087890625, -0.0299530029296875, -0.0299530029296875, 0.018157958984375, -0.0099029541015625, -0.0176239013671875, -0.00363922119140625, -0.04364013671875, -0.034698486328125, -0.01438140869140625, -0.015716552734375, -0.015380859375, -0.01342010498046875, 0.045135498046875, 0.0256195068359375, -0.0086669921875, -0.00948333740234375, -0.004337310791015625, 0.00519561767578125, -0.0287933349609375, 0.00278472900390625, 0.01934814453125, -0.01126861572265625, -0.052398681640625, 0.0684814453125, -0.010406494140625, 0.0180511474609375, 0.044921875, -0.01235198974609375, 0.0245361328125, 0.031951904296875, 0.0115203857421875, 0.000016629695892333984, -0.0027790069580078125, -0.054779052734375, 0.043792724609375, -0.005779266357421875, 0.004299163818359375, 0.05828857421875, -0.03253173828125, 0.00704193115234375, 0.01055145263671875, 0.00894927978515625, -0.0195159912109375, -0.036376953125, 0.09112548828125, -0.05926513671875, 0.0023288726806640625, 0.0159149169921875, 0.055877685546875, 0.004398345947265625, -0.00466156005859375, 0.016143798828125, 0.01373291015625, 0.063720703125, -0.0017271041870117188, 0.057281494140625, -0.0081939697265625, 0.004238128662109375, -0.06268310546875, 0.033203125, 0.0208282470703125, 0.01148223876953125, 0.00027751922607421875, -0.00003820657730102539, -0.0092315673828125, -0.015228271484375, -0.044281005859375, 0.0236358642578125, -0.01528167724609375, 0.0249176025390625, -0.045684814453125, -0.00968170166015625, -0.01497650146484375, 0.0287628173828125, 0.097900390625, 0.01412200927734375, -0.024993896484375, -0.01213836669921875, 0.045074462890625, 0.045501708984375, -0.00310516357421875, 0.016143798828125, 0.0160369873046875, 0.01390838623046875, 0.051849365234375, -0.0103759765625, 0.04095458984375, 0.0011301040649414062, -0.005588531494140625, 0.0167999267578125, 0.0255584716796875, 0.033538818359375, 0.004547119140625, -0.0428466796875, -0.02850341796875, 0.00933074951171875, 0.0262908935546875, -0.0197906494140625, -0.0091705322265625, 0.0675048828125, 0.06365966796875, -0.04302978515625, 0.003299713134765625, -0.042205810546875, 0.0721435546875, 0.003082275390625, 0.027679443359375, 0.0019893646240234375, 0.011688232421875, 0.055999755859375, -0.00547027587890625, 0.0168609619140625, 0.022674560546875, -0.0150146484375, 0.06536865234375, 0.0231170654296875, 0.0162506103515625, -0.054962158203125, -0.004497528076171875, 0.0130462646484375, 0.07000732421875, -0.052398681640625, -0.0482177734375, 0.023040771484375, 0.011627197265625, 0.004573822021484375, 0.01045989990234375, 0.0192413330078125, 0.0399169921875, 0.07659912109375, -0.069091796875, 0.007076263427734375, 0.0283050537109375, 0.067626953125, -0.0005135536193847656, -0.02484130859375, -0.082763671875, -0.045806884765625, -0.07537841796875, 0.0125274658203125, 0.0228424072265625, 0.07147216796875, 0.040008544921875, 0.07342529296875, -0.0136871337890625, -0.0421142578125, 0.029815673828125, 0.022918701171875, 0.005001068115234375, -0.024566650390625, 0.015411376953125, -0.0377197265625, 0.00682830810546875, 0.01386260986328125, -0.00669097900390625, -0.013946533203125, 0.0260009765625, 0.028839111328125, -0.01338958740234375, -0.030975341796875, 0.037841796875, -0.00701141357421875, 0.00583648681640625, -0.037872314453125, 0.023773193359375, 0.0322265625, -0.0028820037841796875, 0.01953125, -0.0263519287109375, 0.08319091796875, 0.007465362548828125, 0.057861328125, 0.0067291259765625, -0.01371002197265625, 0.031097412109375, -0.006526947021484375, 0.063232421875, 0.02008056640625, -0.05712890625, -0.0121917724609375, -0.047515869140625, -0.022216796875, 0.03753662109375, 0.0386962890625, -0.0033512115478515625, 0.00543212890625, -0.006580352783203125, -0.0259246826171875, 0.011260986328125, 0.0235443115234375, 0.010711669921875, -0.0144195556640625, -0.0002377033233642578, -0.006671905517578125, -0.024505615234375, -0.0279541015625, 0.01198577880859375, 0.0292205810546875, 0.03131103515625, -0.0163726806640625, 0.0225982666015625, 0.020721435546875, -0.05615234375, 0.08331298828125, -0.12371826171875, -0.04632568359375, 0.051727294921875, -0.008087158203125, 0.00989532470703125, -0.002960205078125, -0.03515625, 0.034210205078125, 0.04168701171875, -0.01166534423828125, 0.004344940185546875, 0.00852203369140625, 0.0155181884765625, -0.0022678375244140625, 0.02374267578125, -0.0283050537109375, -0.00463104248046875, -0.03375244140625, -0.029083251953125, 0.038726806640625, 0.029571533203125, 0.00782012939453125, 0.006198883056640625, -0.0155487060546875, -0.00811767578125, 0.00658416748046875, 0.00823211669921875, 0.0107574462890625, 0.0408935546875, -0.046356201171875, -0.032867431640625, 0.039215087890625, -0.0035190582275390625, -0.00017130374908447266, 0.024688720703125, 0.028533935546875, 0.0260009765625, -0.038909912109375, 0.006175994873046875, 0.0189971923828125, 0.044342041015625, -0.0177459716796875, 0.0259857177734375, -0.006298065185546875, 0.00040984153747558594, 0.00917816162109375, -0.05694580078125, -0.038665771484375, -0.059417724609375, 0.01187896728515625, 0.037139892578125, -0.0130615234375, 0.01422882080078125, -0.039947509765625, -0.019622802734375, 0.0218505859375, -0.0111846923828125, -0.00013959407806396484, 0.01016998291015625, -0.045196533203125, 0.002666473388671875, -0.0242156982421875, -0.0265350341796875, 0.026397705078125, 0.03582763671875, -0.047027587890625, 0.015167236328125, -0.0111541748046875, -0.040130615234375, -0.004261016845703125, 0.04144287109375, 0.030548095703125, -0.056976318359375, -0.03009033203125, 0.06573486328125, 0.048492431640625, 0.09808349609375, 0.041473388671875, -0.01849365234375, 0.0015573501586914062, 0.0168609619140625, -0.0401611328125, -0.0218048095703125, 0.04937744140625, -0.042694091796875, -0.0482177734375, -0.039825439453125, 0.04229736328125, 0.04705810546875, -0.015167236328125, -0.02978515625, 0.0267486572265625, -0.0219879150390625, -0.02081298828125, -0.0399169921875, 0.0170135498046875, 0.0015535354614257812, -0.019256591796875, -0.01453399658203125, -0.0355224609375, -0.017364501953125, 0.0294189453125, 0.021759033203125, -0.006023406982421875, 0.047149658203125, -0.002178192138671875, -0.07073974609375, 0.005138397216796875, -0.0029735565185546875, 0.028656005859375, -0.01441192626953125, -0.0025806427001953125, -0.020172119140625, 0.01380157470703125, -0.06671142578125, -0.0557861328125, -0.0249176025390625, 0.057159423828125, 0.0026988983154296875, -0.04473876953125, -0.02325439453125, -0.025970458984375, 0.0044403076171875, 0.02001953125, 0.00559234619140625, -0.019439697265625, -0.03173828125, -0.0145721435546875, -0.0291290283203125, -0.01273345947265625, 0.0257720947265625, -0.059112548828125, 0.005619049072265625, 0.0106964111328125, -0.016021728515625, 0.0026607513427734375, -0.019927978515625, -0.0445556640625, -0.0010814666748046875, -0.03997802734375, -0.00396728515625, -0.0384521484375, 0.0731201171875, -0.01202392578125, -0.026824951171875, -0.02978515625, -0.027313232421875, -0.0258941650390625, -0.0219573974609375, -0.05029296875, -0.0037517547607421875, 0.020111083984375, 0.00693511962890625, 0.0046234130859375, 0.020599365234375, 0.0231475830078125, 0.0135345458984375, 0.01506805419921875, -0.00400543212890625, 0.032501220703125, -0.010528564453125, 0.0264739990234375, -0.00927734375, 0.0289459228515625, 0.0142974853515625, 0.0406494140625, 0.013092041015625, -0.00461578369140625, -0.01029205322265625, 0.07012939453125, -0.02215576171875, -0.035308837890625, -0.01088714599609375, -0.039093017578125, 0.00022840499877929688, 0.006656646728515625, 0.01552581787109375, -0.00485992431640625, 0.01151275634765625, 0.0182037353515625, -0.00247955322265625, 0.007556915283203125 ]
88dab2b6a6feae0b3b51c2b7f408a24db38e372e
Wordpress Stackexchange Q: Slash is being stripped in my post_name when using wp_insert_post I want a permalink with slashes : e.g. http://mysite.com/keyword1/keyword2/mypage.html I have put it in the param "post_name" in wp_insert_post but the slashes are stripped, so the result is http://mysite.com/keyword1keywordmypage-html (the dot is also replaced by -) the keyword1, keyword2 are arbitrary values extracted from the post's content how can i also add the .html without it being replaced A: You can use this plugin for .html extension https://wordpress.org/plugins/html-in-url/ And for slashes you should create page of 'keyword1' and 'keyword2' and make keyword2 as a parent page. then u will get the slash url keyword1/keyword2
Q: Slash is being stripped in my post_name when using wp_insert_post I want a permalink with slashes : e.g. http://mysite.com/keyword1/keyword2/mypage.html I have put it in the param "post_name" in wp_insert_post but the slashes are stripped, so the result is http://mysite.com/keyword1keywordmypage-html (the dot is also replaced by -) the keyword1, keyword2 are arbitrary values extracted from the post's content how can i also add the .html without it being replaced A: You can use this plugin for .html extension https://wordpress.org/plugins/html-in-url/ And for slashes you should create page of 'keyword1' and 'keyword2' and make keyword2 as a parent page. then u will get the slash url keyword1/keyword2
wordpress
{ "language": "en", "length": 105, "provenance": "stackexchange_00019.jsonl.gz:444934", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/143559" }
[ 0.05023193359375, 0.004680633544921875, 0.01403045654296875, 0.006969451904296875, -0.00457763671875, -0.01110076904296875, 0.05126953125, -0.053314208984375, -0.04180908203125, 0.03375244140625, 0.04937744140625, 0.035247802734375, -0.0036258697509765625, -0.0450439453125, 0.0303497314453125, 0.024078369140625, 0.004055023193359375, 0.00732421875, 0.008453369140625, -0.0308380126953125, 0.004154205322265625, -0.025238037109375, -0.000988006591796875, -0.0204315185546875, -0.01222991943359375, 0.01605224609375, 0.07257080078125, -0.03985595703125, -0.01096343994140625, -0.032745361328125, 0.00807952880859375, 0.00433349609375, 0.01548004150390625, 0.023773193359375, 0.003448486328125, 0.0152587890625, 0.011627197265625, 0.0123138427734375, 0.0294647216796875, 0.0130615234375, 0.034942626953125, -0.015289306640625, 0.0265960693359375, 0.030792236328125, -0.015380859375, -0.0225982666015625, 0.0369873046875, -0.019622802734375, 0.0167236328125, -0.005870819091796875, 0.00421905517578125, 0.01401519775390625, 0.00849151611328125, 0.0164947509765625, -0.00868988037109375, -0.0035228729248046875, -0.017303466796875, -0.0075225830078125, 0.0223236083984375, 0.0270538330078125, 0.00794219970703125, 0.00876617431640625, -0.00678253173828125, -0.02081298828125, -0.0049285888671875, -0.0013055801391601562, 0.04852294921875, 0.0189056396484375, -0.068603515625, -0.015594482421875, 0.043609619140625, -0.0291595458984375, 0.0035381317138671875, -0.030914306640625, -0.04461669921875, -0.0157928466796875, -0.002338409423828125, -0.050750732421875, 0.0181427001953125, -0.0156402587890625, 0.012725830078125, -0.038848876953125, -0.037200927734375, -0.036407470703125, 0.0166473388671875, -0.0233001708984375, 0.0027523040771484375, 0.0088043212890625, -0.0207672119140625, 0.0017213821411132812, -0.0290985107421875, -0.0026416778564453125, -0.0013628005981445312, -0.025543212890625, -0.0109710693359375, -0.021881103515625, 0.0242462158203125, 0.05743408203125, -0.0188140869140625, 0.0282440185546875, 0.008087158203125, -0.059814453125, 0.08026123046875, -0.054962158203125, 0.01494598388671875, 0.027435302734375, 0.0193634033203125, 0.0222625732421875, 0.06591796875, 0.00531005859375, -0.00078582763671875, 0.07763671875, 0.01678466796875, -0.004055023193359375, -0.05322265625, -0.0006208419799804688, -0.0007429122924804688, -0.03509521484375, -0.01422119140625, -0.0212554931640625, -0.034027099609375, 0.0211639404296875, -0.038543701171875, 0.002269744873046875, -0.012725830078125, -0.005863189697265625, 0.037109375, -0.0230865478515625, 0.0037174224853515625, 0.02825927734375, -0.00440216064453125, 0.003734588623046875, 0.0207672119140625, 0.0290069580078125, -0.00786590576171875, -0.0273590087890625, -0.00958251953125, -0.034088134765625, -0.0208892822265625, 0.03570556640625, -0.0247344970703125, -0.06903076171875, -0.0106353759765625, -0.0073394775390625, 0.05450439453125, 0.02813720703125, -0.0009222030639648438, 0.009857177734375, 0.038238525390625, -0.0055389404296875, 0.03302001953125, -0.06976318359375, 0.0582275390625, -0.010986328125, -0.069091796875, -0.060760498046875, -0.0306549072265625, -0.027557373046875, -0.0015497207641601562, -0.055145263671875, 0.0261077880859375, 0.001239776611328125, 0.0467529296875, -0.005229949951171875, -0.04071044921875, 0.00027298927307128906, -0.0743408203125, -0.0253753662109375, 0.0219268798828125, 0.03607177734375, -0.013458251953125, -0.00910186767578125, 0.00927734375, 0.0013484954833984375, -0.00927734375, -0.003765106201171875, -0.019622802734375, -0.030792236328125, 0.016845703125, 0.0677490234375, 0.01247406005859375, -0.01873779296875, -0.0022411346435546875, -0.00966644287109375, -0.0271759033203125, 0.053863525390625, 0.0201568603515625, 0.06744384765625, -0.018035888671875, 0.029815673828125, 0.01351165771484375, 0.032135009765625, 0.00502777099609375, 0.0169677734375, 0.01763916015625, -0.040985107421875, -0.005344390869140625, -0.01580810546875, 0.0012540817260742188, -0.0010919570922851562, 0.0017604827880859375, 0.0016336441040039062, 0.004489898681640625, 0.0284271240234375, 0.0191497802734375, -0.01165008544921875, -0.004520416259765625, 0.01290130615234375, -0.006374359130859375, 0.0301513671875, 0.01503753662109375, 0.004444122314453125, -0.00428009033203125, -0.07330322265625, -0.0036678314208984375, 0.0308990478515625, -0.0141754150390625, 0.0071258544921875, 0.0033740997314453125, 0.0239105224609375, 0.023284912109375, 0.0003559589385986328, 0.0146484375, -0.01273345947265625, 0.0413818359375, -0.0285491943359375, -0.00476837158203125, -0.04302978515625, -0.01812744140625, 0.0169677734375, -0.09039306640625, 0.03729248046875, 0.042633056640625, 0.07684326171875, -0.0008392333984375, 0.005947113037109375, 0.0031757354736328125, -0.037567138671875, 0.00626373291015625, 0.032745361328125, 0.03466796875, 0.058685302734375, -0.0236358642578125, -0.046173095703125, 0.00756072998046875, -0.08233642578125, -0.004390716552734375, -0.0244598388671875, 0.004978179931640625, 0.032684326171875, 0.03863525390625, -0.0030918121337890625, 0.0036716461181640625, -0.09283447265625, -0.0017042160034179688, 0.0258331298828125, -0.0100250244140625, -0.038482666015625, 0.0026531219482421875, 0.028839111328125, -0.007808685302734375, -0.01605224609375, -0.01444244384765625, -0.01263427734375, 0.0007958412170410156, 0.01079559326171875, 0.0217437744140625, 0.0193939208984375, 0.01119232177734375, 0.0005354881286621094, 0.0088653564453125, -0.037109375, -0.007045745849609375, 0.051361083984375, 0.05230712890625, -0.0281829833984375, -0.0206298828125, -0.0018444061279296875, -0.01302337646484375, 0.0175018310546875, -0.01373291015625, 0.033905029296875, 0.0196685791015625, -0.01488494873046875, -0.055633544921875, -0.0467529296875, 0.0232391357421875, 0.00658416748046875, 0.0172271728515625, -0.007808685302734375, 0.00949859619140625, 0.044586181640625, -0.0152130126953125, 0.061187744140625, 0.0029125213623046875, -0.006435394287109375, 0.006534576416015625, -0.02679443359375, 0.030792236328125, -0.021820068359375, 0.0168914794921875, 0.0421142578125, -0.0014019012451171875, -0.0149688720703125, -0.01319122314453125, -0.0096435546875, -0.0020275115966796875, 0.0030078887939453125, -0.036895751953125, -0.052337646484375, -0.0592041015625, -0.044097900390625, 0.0260009765625, 0.04443359375, -0.01515960693359375, -0.03179931640625, -0.0013704299926757812, 0.033905029296875, -0.08734130859375, -0.09710693359375, 0.0421142578125, -0.0232391357421875, -0.03436279296875, 0.0204010009765625, -0.0218658447265625, -0.0151824951171875, 0.040252685546875, -0.0253753662109375, -0.01611328125, -0.054229736328125, -0.0277252197265625, -0.07763671875, -0.047393798828125, -0.0074005126953125, 0.0161895751953125, 0.0021610260009765625, 0.01142120361328125, -0.0242919921875, 0.00968170166015625, -0.001316070556640625, 0.037933349609375, 0.0126190185546875, -0.01026153564453125, -0.0103759765625, -0.007625579833984375, -0.006923675537109375, -0.0274200439453125, 0.0012807846069335938, 0.07598876953125, 0.028411865234375, -0.04058837890625, 0.019500732421875, 0.00743865966796875, 0.01384735107421875, 0.022186279296875, -0.0220184326171875, -0.00795745849609375, 0.00939178466796875, -0.003360748291015625, -0.05560302734375, -0.01552581787109375, -0.047271728515625, -0.052276611328125, 0.0163421630859375, 0.0208740234375, 0.0205841064453125, -0.025390625, -0.0002987384796142578, 0.0235443115234375, 0.0146484375, 0.0750732421875, -0.03802490234375, -0.0308380126953125, -0.01073455810546875, 0.0028018951416015625, -0.057708740234375, -0.0010786056518554688, -0.042877197265625, 0.00441741943359375, -0.022369384765625, -0.009063720703125, -0.01148223876953125, -0.0138397216796875, -0.0217437744140625, -0.020355224609375, 0.034423828125, -0.046661376953125, -0.00469970703125, -0.0281829833984375, -0.022735595703125, -0.0223388671875, 0.051177978515625, -0.014251708984375, -0.0176849365234375, -0.007904052734375, 0.0131988525390625, -0.031280517578125, -0.08154296875, -0.0184783935546875, -0.0160369873046875, -0.019866943359375, -0.01788330078125, -0.021514892578125, -0.0178680419921875, -0.0022563934326171875, -0.0149078369140625, 0.001720428466796875, -0.0311279296875, 0.0367431640625, -0.0267181396484375, 0.007843017578125, 0.0249481201171875, 0.0102996826171875, 0.002773284912109375, -0.03631591796875, -0.00702667236328125, -0.030548095703125, -0.0082855224609375, 0.0168304443359375, 0.00836944580078125, 0.0129852294921875, -0.06793212890625, -0.0029697418212890625, 0.032745361328125, 0.00582122802734375, 0.0266265869140625, 0.00667572021484375, 0.0126190185546875, -0.02105712890625, 0.00286865234375, 0.017242431640625, -0.0139007568359375, 0.0223846435546875, -0.00765228271484375, -0.039459228515625, -0.029266357421875, -0.034423828125, -0.0438232421875, 0.0188751220703125, -0.038299560546875, -0.044525146484375, -0.022613525390625, 0.00009691715240478516, 0.041900634765625, 0.01629638671875, -0.0105133056640625, -0.04913330078125, -0.04949951171875, 0.053558349609375, -0.0291595458984375, 0.035400390625, -0.00750732421875, 0.0877685546875, -0.0010061264038085938, -0.0192108154296875, 0.00936126708984375, 0.02056884765625, 0.0221405029296875, -0.0150909423828125, 0.05029296875, 0.00872802734375, 0.00946807861328125, 0.00327301025390625, -0.0284576416015625, -0.0010137557983398438, -0.01971435546875, 0.0167236328125, 0.02496337890625, 0.0086822509765625, 0.002105712890625, 0.03375244140625, 0.023590087890625, 0.04962158203125, 0.0178680419921875, -0.0169525146484375, -0.01438140869140625, 0.0168304443359375, -0.006305694580078125, -0.010986328125, -0.0345458984375, -0.0274810791015625, 0.004383087158203125, 0.0007920265197753906, 0.039459228515625, 0.05389404296875, -0.00959014892578125, 0.024810791015625, -0.0094146728515625, -0.01026153564453125, -0.0026683807373046875, -0.005237579345703125, -0.0013113021850585938, 0.01361846923828125, -0.0015573501586914062, -0.0171966552734375, -0.0081329345703125, 0.00789642333984375, -0.00542449951171875, 0.014404296875, -0.0172576904296875, -0.052520751953125, 0.01540374755859375, 0.0180816650390625, -0.00435638427734375, 0.047698974609375, -0.004932403564453125, 0.0030231475830078125, 0.0168304443359375, 0.007152557373046875, 0.022491455078125, 0.01078033447265625, -0.009063720703125, -0.010467529296875, 0.0059814453125, -0.01611328125, 0.02490234375, 0.017120361328125, 0.019317626953125, 0.002880096435546875, -0.0257110595703125, -0.0031948089599609375, 0.005695343017578125, 0.048828125, 0.0208892822265625, -0.0399169921875, -0.00585174560546875, 0.0184326171875, 0.027984619140625, -0.028350830078125, 0.004337310791015625, 0.011016845703125, 0.049468994140625, -0.040069580078125, -0.04412841796875, 0.016357421875, -0.0382080078125, -0.0250091552734375, 0.0279388427734375, -0.0213775634765625, -0.04345703125, -0.037445068359375, 0.0011968612670898438, 0.0321044921875, -0.005855560302734375, -0.01409912109375, 0.019134521484375, -0.0289764404296875, 0.002674102783203125, 0.0587158203125, -0.038665771484375, -0.0172271728515625, -0.0114898681640625, 0.0254364013671875, -0.006877899169921875, -0.01026153564453125, 0.0090484619140625, -0.0007262229919433594, -0.0294647216796875, -0.010833740234375, 0.068603515625, 0.004791259765625, 0.045867919921875, -0.0322265625, -0.0246429443359375, 0.0186004638671875, -0.0038318634033203125, 0.035552978515625, 0.01141357421875, -0.04925537109375, -0.005817413330078125, -0.009063720703125, 0.002040863037109375, 0.050384521484375, 0.02044677734375, -0.03558349609375, -0.01739501953125, 0.0206756591796875, -0.0120697021484375, 0.00014591217041015625, -0.051177978515625, -0.0135040283203125, 0.0181427001953125, 0.0292205810546875, -0.03662109375, -0.037872314453125, 0.030975341796875, 0.012451171875, 0.017181396484375, 0.006561279296875, 0.008544921875, 0.03326416015625, -0.019317626953125, 0.0002446174621582031, -0.0968017578125, -0.0164947509765625, 0.0251617431640625, -0.030029296875, 0.034942626953125, -0.0201263427734375, 0.01715087890625, -0.007793426513671875, 0.0040130615234375, 0.00527191162109375, -0.0279693603515625, -0.039703369140625, -0.0137939453125, -0.0182952880859375, -0.01904296875, -0.0129852294921875, 0.03759765625, 0.003662109375, 0.034210205078125, 0.0286102294921875, -0.034088134765625, 0.04815673828125, -0.0236663818359375, -0.031158447265625, 0.016632080078125, 0.067626953125, 0.039825439453125, 0.08502197265625, 0.01555633544921875, 0.054290771484375, 0.038604736328125, 0.0102996826171875, 0.0111541748046875, 0.01010894775390625, 0.06036376953125, 0.01038360595703125, -0.0162811279296875, 0.03387451171875, -0.034454345703125, 0.0192413330078125, 0.04925537109375, 0.05902099609375, -0.051116943359375, 0.005313873291015625, 0.005855560302734375, -0.03326416015625, 0.03375244140625, 0.0217742919921875, -0.0104827880859375, -0.01503753662109375, -0.01201629638671875, -0.03485107421875, -0.0112762451171875, -0.00708770751953125, -0.006076812744140625, -0.01256561279296875, -0.052886962890625, 0.033660888671875, 0.00522613525390625, -0.03778076171875, 0.0119781494140625, 0.01080322265625, -0.02569580078125, -0.030548095703125, -0.025177001953125, 0.041046142578125, -0.034576416015625, -0.0772705078125, 0.00545501708984375, -0.049346923828125, 0.00183868408203125, 0.01125335693359375, 0.0201568603515625, 0.038238525390625, 0.04949951171875, 0.004261016845703125, -0.004161834716796875, 0.0189056396484375, -0.0177764892578125, 0.06695556640625, 0.0036773681640625, -0.00905609130859375, -0.0158538818359375, -0.0073699951171875, -0.0259857177734375, -0.0270233154296875, 0.01009368896484375, 0.0009908676147460938, 0.005702972412109375, 0.07489013671875, -0.03125, -0.032684326171875, 0.006229400634765625, -0.02862548828125, 0.0005383491516113281, -0.0215606689453125, -0.0171356201171875, -0.055419921875, -0.007568359375, -0.01727294921875, -0.01149749755859375, -0.0012845993041992188, -0.0220489501953125, -0.0950927734375, 0.1097412109375, 0.021484375, 0.06512451171875, 0.0142974853515625, 0.02093505859375, -0.0513916015625, -0.01107025146484375, -0.043670654296875, 0.05877685546875, 0.0188751220703125, 0.03155517578125, -0.0638427734375, -0.0178680419921875, -0.01000213623046875, 0.033050537109375, 0.04864501953125, 0.0124053955078125, -0.005825042724609375, -0.012115478515625, 0.032684326171875, 0.005298614501953125, -0.0313720703125, 0.0232391357421875, -0.00605010986328125, 0.0181427001953125, 0.0207977294921875, -0.0104522705078125, 0.0230560302734375, -0.0019140243530273438, -0.03643798828125, 0.0187225341796875, 0.0035266876220703125, -0.006946563720703125, -0.0076446533203125, -0.033294677734375, -0.00450897216796875, -0.0107421875, -0.0013074874877929688, -0.03863525390625, 0.00426483154296875, 0.0231475830078125, 0.0280303955078125, -0.040496826171875, -0.11376953125, -0.0085601806640625, 0.0195159912109375, 0.03070068359375, -0.0007357597351074219, 0.0217132568359375, 0.0121917724609375, 0.0078125, -0.0155181884765625, 0.0008792877197265625, 0.0007262229919433594, 0.00738525390625, 0.072021484375, 0.01812744140625, 0.0265960693359375, -0.04498291015625, -0.00514984130859375, 0.028045654296875, 0.0823974609375, -0.04962158203125, -0.034698486328125, 0.0012025833129882812, 0.00699615478515625, 0.00481414794921875, -0.0175323486328125, -0.0023174285888671875, -0.01348114013671875, 0.0030155181884765625, 0.02166748046875, -0.00490570068359375, 0.0038623809814453125, 0.0022144317626953125, 0.00885772705078125, 0.005260467529296875, -0.01433563232421875, 0.022125244140625, -0.044158935546875, 0.018402099609375, -0.00403594970703125, 0.032440185546875, 0.0399169921875, 0.03656005859375, 0.014617919921875, -0.019683837890625, -0.018585205078125, 0.06658935546875, 0.002105712890625, 0.0203704833984375, -0.01377105712890625, -0.0440673828125, 0.034942626953125, -0.00217437744140625, -0.00588226318359375, 0.032501220703125, 0.0284423828125, -0.02276611328125, -0.05499267578125, -0.0210113525390625, -0.038421630859375, -0.050506591796875, 0.021148681640625, -0.013092041015625, 0.01934814453125, 0.0045013427734375, -0.01296234130859375, -0.032012939453125, 0.0270538330078125, 0.0216217041015625, -0.0214996337890625, 0.04962158203125, -0.00452423095703125, -0.003192901611328125, 0.05194091796875, 0.005931854248046875, 0.048309326171875, 0.0328369140625, -0.0161285400390625, -0.00449371337890625, 0.00957489013671875, -0.060089111328125, 0.00946044921875, 0.048126220703125, -0.007091522216796875, -0.0005431175231933594, 0.017486572265625, -0.01171112060546875, 0.022491455078125, -0.0313720703125, 0.029815673828125, 0.055816650390625, -0.0010175704956054688, 0.0303497314453125, -0.0095977783203125, 0.0009136199951171875, 0.005535125732421875, 0.0205078125, -0.0091400146484375, 0.0743408203125, -0.044921875, 0.00598907470703125, 0.0175628662109375, 0.0184173583984375, -0.024566650390625, -0.005756378173828125, 0.027679443359375, -0.0095977783203125, 0.0081329345703125, -0.013885498046875, -0.034271240234375, 0.0221099853515625, 0.04278564453125, -0.011260986328125, 0.01221466064453125, -0.01267242431640625, 0.0146942138671875, -0.01317596435546875, 0.09600830078125, 0.00122833251953125, -0.036468505859375, -0.0528564453125, -0.008636474609375, 0.0313720703125, 0.04180908203125, -0.0151824951171875, 0.027862548828125, 0.025177001953125, -0.012481689453125, 0.049560546875, -0.04547119140625, 0.09375, 0.044281005859375, -0.0227508544921875, -0.00345611572265625, 0.0019168853759765625, -0.006755828857421875, -0.00447845458984375, 0.0186309814453125, -0.0283660888671875, 0.038238525390625, -0.06353759765625, -0.0177459716796875, -0.0228118896484375, 0.0445556640625, 0.0214385986328125, 0.018798828125, -0.07135009765625, 0.01593017578125, 0.0269012451171875, -0.0257415771484375, -0.02191162109375, -0.0120849609375, 0.003864288330078125, 0.034149169921875, -0.0267181396484375, -0.01275634765625, -0.07769775390625, -0.007160186767578125, 0.018524169921875, 0.0026912689208984375, -0.042877197265625, 0.01329803466796875, -0.0081024169921875, 0.049224853515625, -0.030731201171875, 0.00605010986328125, -0.0173797607421875, 0.040374755859375, -0.020843505859375, -0.061859130859375, -0.04071044921875, 0.0491943359375, -0.0672607421875, 0.023223876953125, 0.06597900390625, -0.0257568359375, -0.0269775390625, -0.01454925537109375, 0.00875091552734375, 0.030426025390625, -0.031494140625, -0.0177764892578125, -0.006275177001953125, 0.033660888671875, -0.034576416015625, -0.0694580078125, 0.0005011558532714844, -0.040985107421875, 0.018951416015625, 0.00067138671875, -0.00855255126953125, 0.0035419464111328125, -0.040802001953125, -0.03057861328125, 0.004161834716796875, 0.018646240234375, -0.03570556640625, 0.0017032623291015625, -0.0153656005859375, -0.039581298828125, 0.1180419921875, 0.0306549072265625, -0.025238037109375, -0.03253173828125, 0.0233917236328125, 0.01629638671875, 0.027069091796875, 0.0051422119140625, -0.01268768310546875, -0.0221710205078125, 0.0361328125, 0.043975830078125, 0.01690673828125, 0.0250091552734375, -0.00289154052734375, 0.0309295654296875, 0.0648193359375, -0.036590576171875, 0.022491455078125, -0.023284912109375, -0.03045654296875, -0.0272369384765625, -0.0589599609375, -0.052490234375, -0.0306243896484375, 0.10009765625, 0.05609130859375, 0.0148162841796875, -0.029510498046875, -0.033111572265625, -0.05224609375, -0.001537322998046875, 0.00441741943359375, 0.01500701904296875, -0.05841064453125, 0.022216796875, 0.03125, 0.0033359527587890625, -0.008209228515625, -0.026885986328125, -0.0205078125, -0.031768798828125, -0.0201263427734375, 0.02337646484375, -0.021575927734375, 0.0819091796875, 0.069091796875, -0.0653076171875, -0.0118865966796875, -0.01013946533203125, -0.01678466796875, 0.0164337158203125, -0.0614013671875, 0.0299224853515625, 0.038238525390625, -0.03857421875, -0.021514892578125, 0.0242156982421875, 0.042999267578125, -0.009307861328125, -0.0298919677734375, -0.00908660888671875, 0.01062774658203125, -0.01371002197265625, 0.0005345344543457031, -0.021209716796875, 0.049041748046875, -0.015533447265625, 0.107177734375, -0.01236724853515625, 0.0179595947265625, 0.0064544677734375, 0.02117919921875, -0.0452880859375, 0.00943756103515625, -0.0032367706298828125, -0.0269622802734375, -0.00629425048828125, -0.01111602783203125, -0.034210205078125, -0.0369873046875, 0.0162811279296875, -0.0009555816650390625, -0.00949859619140625, 0.024078369140625 ]
e79a0181054da0d0a1a49e14a8f38384fad9ca05
Wordpress Stackexchange Q: Get posts by meta value I would like to list all posts that have a key of cp_annonceur with the value professionnel. A: What you are asking for is a meta_query $args = array( 'meta_key' => 'custom-meta-key', 'meta_query' => array( array( 'key' => 'cp_annonceur', 'value' => 'professionnel', 'compare' => '=', ) ) ); $query = new WP_Query($args); All of the information you need is in the Codex.
Q: Get posts by meta value I would like to list all posts that have a key of cp_annonceur with the value professionnel. A: What you are asking for is a meta_query $args = array( 'meta_key' => 'custom-meta-key', 'meta_query' => array( array( 'key' => 'cp_annonceur', 'value' => 'professionnel', 'compare' => '=', ) ) ); $query = new WP_Query($args); All of the information you need is in the Codex. A: We can get the desired result with Meta query of the WordPress : // the meta_key 'diplay_on_homepage' with the meta_value 'true' $cc_args = array( 'posts_per_page' => -1, 'post_type' => 'post', 'meta_key' => 'cp_annonceur', 'meta_value' => 'professionnel' ); $cc_query = new WP_Query( $cc_args ); For more detailed guide regarding meta query follow this blog : http://www.codecanal.com/get-posts-meta-values/ A: You can easily grab the posts using WordPress's built-in function called get_posts You can find more details about get_posts here https://developer.wordpress.org/reference/functions/get_posts/ $posts = get_posts(array( 'numberposts' => -1, 'post_type' => 'post', 'meta_key' => 'cp_annonceur', 'meta_value' => 'professionnel' )); A: There are two ways to do that: * *Intercept the main query on pre_get_posts: add_action( 'pre_get_posts', function( $query ) { // only handle the main query if ( ! $query->is_main_query() ) return; $query->set( 'meta_key', 'cp_annonceur' ); $query->set( 'meta_value', 'professionnel' ); } ); *Add an additional query $second_loop = get_posts( array( 'meta_key' => 'cp_annonceur', 'meta_value' => 'professionnel', ) ); A more throughout example can be found in this answer. A: I used custom select (might be better performance) $posts = $wpdb->get_results("SELECT * FROM $wpdb->postmeta WHERE meta_key = 'cp_annonceur' AND meta_value = 'professionnel' LIMIT 1", ARRAY_A); Inspired from https://tommcfarlin.com/get-post-id-by-meta-value/ A: Try this, It's working for me global $wpdb; $meta_key = '_request_body'; $data = $wpdb->get_results($wpdb->prepare( "SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = %s", $meta_key) , ARRAY_N ); $result = []; foreach($data as $array){ $result[] = $array[0]; } print_r($result);
wordpress
{ "language": "en", "length": 299, "provenance": "stackexchange_00019.jsonl.gz:445095", "question_score": "47", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/144078" }
[ 0.006435394287109375, -0.0038433074951171875, 0.0147552490234375, 0.021820068359375, -0.01180267333984375, -0.02197265625, 0.027191162109375, -0.042236328125, 0.000568389892578125, 0.034820556640625, 0.00803375244140625, -0.017364501953125, -0.01025390625, -0.0278472900390625, -0.00815582275390625, -0.024017333984375, 0.05059814453125, -0.0120391845703125, 0.0260467529296875, 0.006473541259765625, 0.0196075439453125, 0.04010009765625, 0.0019702911376953125, -0.0217437744140625, 0.049530029296875, -0.0330810546875, 0.02008056640625, -0.0172576904296875, 0.031829833984375, -0.0017042160034179688, 0.023468017578125, -0.0245361328125, 0.006214141845703125, -0.0032863616943359375, 0.011566162109375, -0.019012451171875, 0.00620269775390625, 0.0047760009765625, 0.01497650146484375, -0.0023822784423828125, 0.01202392578125, -0.005146026611328125, -0.028533935546875, 0.032073974609375, -0.02459716796875, -0.0124969482421875, -0.022247314453125, -0.036773681640625, 0.02532958984375, -0.0108489990234375, -0.039093017578125, -0.00156402587890625, -0.033050537109375, 0.01287841796875, -0.0230560302734375, -0.0312042236328125, -0.004314422607421875, -0.04803466796875, 0.0276336669921875, 0.01513671875, -0.00789642333984375, -0.034881591796875, 0.0220947265625, -0.015869140625, -0.04656982421875, -0.007015228271484375, -0.01122283935546875, 0.00710296630859375, -0.024383544921875, -0.069091796875, 0.014434814453125, 0.018585205078125, 0.03240966796875, -0.035614013671875, -0.00876617431640625, -0.0411376953125, 0.002925872802734375, -0.055755615234375, 0.003833770751953125, -0.01172637939453125, 0.01009368896484375, -0.003978729248046875, -0.0281829833984375, 0.0276641845703125, -0.033905029296875, 0.0244140625, -0.010284423828125, -0.0249786376953125, -0.0171356201171875, -0.04315185546875, -0.0163726806640625, -0.041168212890625, -0.041595458984375, 0.000011801719665527344, -0.017364501953125, -0.033966064453125, -0.0051116943359375, 0.01837158203125, -0.0243072509765625, -0.0006842613220214844, -0.0229644775390625, -0.0213623046875, -0.00838470458984375, -0.02374267578125, -0.011932373046875, 0.0257568359375, -0.01021575927734375, 0.0299530029296875, 0.0266265869140625, 0.040771484375, 0.0100555419921875, -0.0032711029052734375, -0.03240966796875, -0.02362060546875, -0.006092071533203125, 0.0296783447265625, -0.038665771484375, -0.011810302734375, 0.00652313232421875, -0.02679443359375, 0.0193939208984375, 0.041351318359375, 0.0173187255859375, -0.0838623046875, 0.006328582763671875, -0.0193939208984375, -0.05633544921875, -0.0144500732421875, -0.06781005859375, 0.042755126953125, -0.0274658203125, 0.0105438232421875, 0.0662841796875, 0.02496337890625, -0.01195526123046875, -0.04248046875, 0.0221405029296875, -0.05023193359375, -0.00589752197265625, -0.0020198822021484375, -0.000858306884765625, -0.018463134765625, 0.0038051605224609375, 0.00391387939453125, -0.02899169921875, -0.0187225341796875, 0.00759124755859375, 0.035003662109375, -0.0156707763671875, 0.007137298583984375, -0.038970947265625, 0.02813720703125, 0.01078033447265625, 0.0008645057678222656, 0.0169677734375, 0.006359100341796875, 0.036712646484375, -0.022003173828125, -0.0135040283203125, -0.030517578125, -0.00855255126953125, 0.0088653564453125, 0.004116058349609375, -0.024688720703125, -0.03936767578125, -0.01120758056640625, 0.015380859375, -0.00386810302734375, 0.0235748291015625, 0.06060791015625, 0.02142333984375, -0.044921875, 0.0237579345703125, 0.0167694091796875, -0.01605224609375, 0.0212860107421875, -0.008636474609375, 0.0193328857421875, 0.025970458984375, 0.01934814453125, 0.005672454833984375, -0.0290069580078125, 0.06805419921875, 0.0124664306640625, -0.06317138671875, 0.00321197509765625, 0.0240325927734375, 0.05291748046875, 0.0126800537109375, 0.02130126953125, 0.0633544921875, -0.004230499267578125, 0.02362060546875, -0.0044403076171875, 0.005702972412109375, -0.0245819091796875, 0.00011473894119262695, 0.005558013916015625, 0.0036258697509765625, -0.041534423828125, 0.017181396484375, 0.0084686279296875, -0.0201263427734375, 0.0078125, -0.074951171875, -0.0176849365234375, -0.01457977294921875, 0.019744873046875, 0.00420379638671875, 0.01131439208984375, 0.01070404052734375, -0.03448486328125, -0.0139312744140625, 0.0086212158203125, -0.02880859375, -0.031463623046875, -0.016998291015625, 0.0045928955078125, -0.0248260498046875, -0.018798828125, -0.031585693359375, -0.05718994140625, -0.043609619140625, 0.0360107421875, 0.044769287109375, 0.005977630615234375, 0.002964019775390625, 0.0057373046875, 0.063232421875, 0.0220794677734375, -0.004364013671875, -0.03155517578125, -0.01548004150390625, -0.012420654296875, -0.04193115234375, 0.0021228790283203125, -0.00833892822265625, -0.0333251953125, 0.0111083984375, 0.037200927734375, 0.043701171875, 0.060211181640625, 0.021453857421875, 0.0171051025390625, 0.07977294921875, -0.0199432373046875, 0.017578125, -0.02130126953125, 0.032196044921875, 0.05731201171875, -0.0462646484375, 0.0225830078125, 0.034912109375, 0.0146636962890625, -0.0007677078247070312, 0.037811279296875, -0.01473236083984375, 0.051361083984375, -0.00955963134765625, 0.00762176513671875, -0.0264892578125, 0.005458831787109375, 0.02545166015625, -0.01666259765625, 0.0022029876708984375, 0.0435791015625, 0.0300140380859375, 0.041717529296875, -0.048309326171875, 0.0165863037109375, 0.01557159423828125, 0.054473876953125, 0.01448822021484375, 0.037384033203125, -0.0171966552734375, 0.05145263671875, -0.034271240234375, -0.0165557861328125, 0.033721923828125, 0.031219482421875, 0.00823974609375, 0.029693603515625, -0.042205810546875, -0.0015048980712890625, -0.0034198760986328125, -0.02142333984375, -0.01181793212890625, 0.025482177734375, -0.052978515625, -0.0310211181640625, 0.0117340087890625, 0.006076812744140625, -0.00684356689453125, -0.0413818359375, 0.0023517608642578125, -0.027191162109375, 0.0035724639892578125, -0.06500244140625, 0.035797119140625, -0.031402587890625, 0.0159149169921875, 0.06793212890625, 0.000058710575103759766, 0.0215911865234375, -0.00353240966796875, -0.020294189453125, -0.0212554931640625, 0.049652099609375, 0.01038360595703125, -0.060882568359375, 0.004688262939453125, -0.00943756103515625, 0.0165863037109375, 0.04522705078125, -0.01399993896484375, -0.03216552734375, -0.00445556640625, 0.0191497802734375, -0.11468505859375, -0.092529296875, 0.01181793212890625, -0.03253173828125, 0.01074981689453125, -0.0305328369140625, -0.0237579345703125, -0.005859375, -0.03448486328125, -0.0032634735107421875, -0.0001990795135498047, 0.01092529296875, -0.04730224609375, -0.018218994140625, -0.041351318359375, 0.0087738037109375, -0.0056304931640625, 0.008544921875, 0.0098419189453125, 0.06964111328125, 0.0167694091796875, -0.0193328857421875, 0.028289794921875, 0.0419921875, -0.0301971435546875, -0.0014047622680664062, 0.00473785400390625, 0.011505126953125, -0.0084686279296875, 0.0112457275390625, 0.053741455078125, 0.0252227783203125, -0.052581787109375, 0.0125274658203125, 0.03607177734375, -0.01027679443359375, 0.05511474609375, 0.01085662841796875, -0.058746337890625, 0.04815673828125, 0.054931640625, -0.0092010498046875, 0.01088714599609375, -0.0206146240234375, -0.017578125, 0.0179901123046875, 0.0184478759765625, -0.018585205078125, -0.00981903076171875, 0.00676727294921875, -0.0201873779296875, -0.0280609130859375, 0.044891357421875, -0.070556640625, 0.043670654296875, -0.00783538818359375, 0.0014972686767578125, -0.022247314453125, -0.0111846923828125, -0.05548095703125, 0.055206298828125, -0.007843017578125, -0.01172637939453125, 0.01837158203125, -0.03704833984375, -0.0014247894287109375, -0.050811767578125, 0.07269287109375, 0.001438140869140625, 0.03289794921875, -0.07647705078125, -0.044189453125, -0.0693359375, 0.08160400390625, 0.036834716796875, -0.031890869140625, 0.0016412734985351562, 0.002986907958984375, -0.038299560546875, 0.0243682861328125, -0.01074981689453125, 0.01035308837890625, -0.07086181640625, -0.002269744873046875, -0.00759124755859375, -0.03515625, -0.0156097412109375, 0.01174163818359375, -0.05499267578125, -0.03717041015625, 0.046051025390625, -0.036712646484375, 0.021148681640625, 0.0032901763916015625, 0.022552490234375, -0.03900146484375, -0.01467132568359375, -0.00482177734375, -0.054351806640625, -0.01444244384765625, 0.018829345703125, 0.048675537109375, 0.00765228271484375, -0.025604248046875, -0.01038360595703125, 0.036773681640625, -0.0147247314453125, 0.057769775390625, -0.01291656494140625, 0.0004832744598388672, 0.012237548828125, 0.02325439453125, 0.01629638671875, -0.005008697509765625, -0.00858306884765625, -0.020477294921875, -0.0066680908203125, 0.0033416748046875, -0.027587890625, -0.01788330078125, 0.005584716796875, -0.02447509765625, -0.047637939453125, -0.016754150390625, 0.01214599609375, -0.005031585693359375, -0.0133209228515625, 0.023101806640625, -0.01279449462890625, -0.01105499267578125, 0.0009021759033203125, 0.01617431640625, -0.03607177734375, 0.008880615234375, 0.06414794921875, 0.032196044921875, -0.00966644287109375, -0.05059814453125, 0.01294708251953125, 0.00603485107421875, -0.0245208740234375, 0.06536865234375, 0.014007568359375, 0.004085540771484375, 0.06732177734375, -0.0292816162109375, 0.007720947265625, 0.0019817352294921875, 0.070556640625, -0.00705718994140625, 0.00960540771484375, -0.0045928955078125, -0.03448486328125, 0.00612640380859375, 0.022735595703125, 0.0203857421875, -0.0302734375, 0.054443359375, 0.0022678375244140625, -0.0287322998046875, 0.02789306640625, 0.0254364013671875, 0.01256561279296875, 0.004741668701171875, 0.0172882080078125, -0.0141754150390625, 0.0213775634765625, -0.0203399658203125, -0.0447998046875, -0.01434326171875, -0.000797271728515625, 0.0116424560546875, 0.034759521484375, -0.0176544189453125, 0.023040771484375, 0.013427734375, -0.033447265625, -0.03143310546875, 0.01032257080078125, 0.030914306640625, -0.017791748046875, -0.052703857421875, -0.040008544921875, -0.0203399658203125, 0.04974365234375, 0.04248046875, 0.006580352783203125, 0.0797119140625, 0.068359375, -0.00917816162109375, -0.0543212890625, -0.0263519287109375, 0.0271453857421875, -0.0845947265625, 0.01751708984375, 0.0146942138671875, 0.0031681060791015625, -0.031341552734375, 0.1290283203125, -0.0240478515625, 0.06878662109375, -0.0234832763671875, 0.048583984375, 0.0272216796875, 0.050262451171875, 0.0257720947265625, -0.056732177734375, 0.0026874542236328125, 0.02166748046875, -0.030914306640625, -0.03997802734375, -0.0243377685546875, 0.0027370452880859375, 0.03802490234375, 0.0204010009765625, 0.0073394775390625, 0.0160064697265625, 0.007785797119140625, -0.02972412109375, -0.019561767578125, 0.00533294677734375, -0.014312744140625, 0.0008335113525390625, 0.03228759765625, 0.0009937286376953125, 0.0285491943359375, 0.014739990234375, -0.006072998046875, 0.00913238525390625, 0.03863525390625, -0.03436279296875, 0.0119171142578125, -0.0117034912109375, 0.011505126953125, -0.021209716796875, -0.004638671875, 0.01512908935546875, -0.056732177734375, -0.0275421142578125, -0.022064208984375, -0.0384521484375, 0.074951171875, -0.00457763671875, 0.03961181640625, -0.031585693359375, -0.01534271240234375, -0.01064300537109375, 0.0175323486328125, 0.043975830078125, 0.0175628662109375, -0.0013685226440429688, -0.042694091796875, -0.011444091796875, -0.0189666748046875, 0.0869140625, -0.0035877227783203125, 0.033935546875, -0.02069091796875, 0.004329681396484375, 0.054595947265625, -0.0036869049072265625, -0.0011005401611328125, 0.03814697265625, -0.0273590087890625, -0.048583984375, 0.0261688232421875, 0.01194000244140625, 0.036651611328125, -0.05255126953125, 0.056793212890625, -0.00771331787109375, -0.003414154052734375, -0.0211029052734375, -0.0160980224609375, 0.001506805419921875, -0.0528564453125, -0.0054779052734375, 0.0008192062377929688, -0.00868988037109375, -0.0016269683837890625, -0.003971099853515625, -0.005283355712890625, 0.0290679931640625, -0.0168914794921875, -0.0085601806640625, -0.008880615234375, 0.022369384765625, -0.02374267578125, 0.03094482421875, 0.03631591796875, -0.0234222412109375, -0.0140228271484375, -0.00543975830078125, -0.006633758544921875, 0.016510009765625, -0.01312255859375, 0.0146636962890625, 0.0246124267578125, -0.047637939453125, 0.007740020751953125, 0.021942138671875, 0.01198577880859375, 0.00786590576171875, -0.021148681640625, -0.00479888916015625, 0.0002846717834472656, -0.0241241455078125, 0.00482177734375, 0.01654052734375, 0.041595458984375, -0.0051727294921875, -0.001064300537109375, 0.01511383056640625, -0.00528717041015625, -0.0293731689453125, -0.01503753662109375, 0.014556884765625, -0.0372314453125, 0.0269622802734375, 0.02984619140625, 0.0142364501953125, -0.0214691162109375, -0.0001137852668762207, -0.032745361328125, -0.0252227783203125, 0.0093994140625, 0.0065155029296875, -0.020965576171875, -0.005725860595703125, 0.0201873779296875, 0.0048980712890625, -0.020782470703125, -0.0114288330078125, -0.018585205078125, -0.031768798828125, 0.0134429931640625, 0.04150390625, -0.0080413818359375, -0.05059814453125, -0.0063934326171875, -0.0168609619140625, -0.006343841552734375, -0.1239013671875, -0.039459228515625, -0.0264892578125, 0.002216339111328125, 0.0303192138671875, 0.02984619140625, 0.040191650390625, 0.035858154296875, 0.03155517578125, -0.0203399658203125, 0.005001068115234375, -0.0158233642578125, -0.027374267578125, -0.0295867919921875, -0.029144287109375, 0.030059814453125, 0.0104522705078125, 0.01557159423828125, 0.0178070068359375, -0.01611328125, 0.019317626953125, 0.01396942138671875, 0.011383056640625, -0.03411865234375, -0.0013742446899414062, 0.06146240234375, -0.006378173828125, -0.023773193359375, 0.036468505859375, 0.01502227783203125, -0.006237030029296875, 0.0038280487060546875, 0.03265380859375, -0.0211639404296875, -0.032958984375, 0.0292510986328125, -0.047088623046875, 0.05084228515625, -0.04522705078125, 0.023101806640625, 0.0264739990234375, 0.0135498046875, 0.0160064697265625, 0.006587982177734375, -0.0192108154296875, 0.08453369140625, -0.028106689453125, 0.0205230712890625, -0.1064453125, -0.0328369140625, -0.0121002197265625, 0.06707763671875, 0.060211181640625, 0.015228271484375, -0.064208984375, -0.040069580078125, 0.0125579833984375, 0.0263214111328125, -0.017852783203125, 0.06280517578125, -0.0016880035400390625, 0.09130859375, 0.046966552734375, -0.071533203125, 0.046142578125, -0.048675537109375, -0.025054931640625, 0.01364898681640625, 0.017425537109375, 0.02398681640625, -0.00007104873657226562, 0.016815185546875, -0.01041412353515625, 0.0007410049438476562, 0.0108184814453125, -0.032684326171875, 0.0194854736328125, 0.03985595703125, 0.0287933349609375, -0.025970458984375, -0.044677734375, -0.00676727294921875, 0.03155517578125, -0.005008697509765625, 0.01190948486328125, 0.0285797119140625, 0.017364501953125, 0.0556640625, 0.017578125, -0.00818634033203125, 0.032135009765625, 0.0208740234375, 0.015472412109375, 0.03167724609375, -0.005153656005859375, -0.0157470703125, 0.045318603515625, 0.02557373046875, 0.00479888916015625, -0.040740966796875, -0.04547119140625, 0.01091766357421875, -0.03289794921875, -0.01194000244140625, 0.0022716522216796875, -0.0206298828125, -0.01678466796875, 0.005390167236328125, -0.01488494873046875, -0.0131988525390625, 0.0087127685546875, 0.031646728515625, -0.0045318603515625, -0.047607421875, 0.0080108642578125, -0.0300750732421875, -0.03662109375, 0.01263427734375, 0.023712158203125, 0.046112060546875, 0.02783203125, 0.037445068359375, 0.0173187255859375, -0.01617431640625, -0.0143890380859375, 0.01522064208984375, 0.032928466796875, 0.00045490264892578125, -0.0184326171875, -0.00341796875, 0.0086517333984375, 0.0208892822265625, 0.07470703125, 0.036956787109375, 0.05352783203125, 0.0307769775390625, 0.0129852294921875, 0.03216552734375, 0.08203125, 0.0014982223510742188, 0.0121917724609375, -0.0253753662109375, 0.0233917236328125, -0.002666473388671875, -0.005702972412109375, -0.0110931396484375, 0.0594482421875, 0.001026153564453125, 0.036865234375, 0.00832366943359375, 0.0295562744140625, 0.0039215087890625, -0.006343841552734375, 0.00930023193359375, -0.01377105712890625, 0.0335693359375, -0.0302276611328125, 0.0252685546875, -0.05523681640625, -0.02496337890625, 0.005573272705078125, 0.0167999267578125, -0.0198822021484375, 0.047332763671875, 0.017852783203125, -0.007415771484375, -0.0003917217254638672, 0.033447265625, -0.00765228271484375, 0.040069580078125, 0.032135009765625, 0.0003504753112792969, -0.07330322265625, -0.0260467529296875, -0.0008807182312011719, 0.01308441162109375, 0.0080413818359375, 0.028961181640625, 0.03411865234375, 0.024688720703125, -0.0002923011779785156, -0.025909423828125, 0.0250244140625, 0.0012073516845703125, 0.0104827880859375, 0.01873779296875, 0.01171875, -0.0029048919677734375, 0.018524169921875, -0.0297698974609375, 0.060333251953125, -0.055419921875, -0.0445556640625, 0.017333984375, 0.0299835205078125, -0.03289794921875, -0.007137298583984375, -0.0357666015625, -0.034637451171875, -0.05194091796875, -0.03265380859375, 0.0340576171875, 0.05401611328125, 0.035980224609375, 0.00774383544921875, 0.005401611328125, -0.032562255859375, 0.0478515625, -0.0216522216796875, 0.07049560546875, 0.036773681640625, -0.01806640625, 0.06390380859375, -0.004543304443359375, -0.0291290283203125, 0.065185546875, -0.007358551025390625, -0.025146484375, 0.00887298583984375, 0.025482177734375, -0.0236358642578125, 0.01154327392578125, 0.04376220703125, 0.01457977294921875, 0.020904541015625, -0.02264404296875, -0.0176239013671875, -0.00036454200744628906, 0.01513671875, -0.026763916015625, -0.07598876953125, -0.0012226104736328125, -0.0002777576446533203, -0.050323486328125, -0.02288818359375, -0.014068603515625, -0.0291900634765625, 0.0180206298828125, 0.0131072998046875, -0.02606201171875, 0.00890350341796875, -0.006103515625, -0.042877197265625, -0.0035305023193359375, 0.01255035400390625, -0.007122039794921875, 0.0073394775390625, -0.036712646484375, 0.036041259765625, 0.005794525146484375, -0.01141357421875, 0.051177978515625, 0.0142822265625, 0.01557159423828125, -0.01983642578125, -0.01194000244140625, 0.038543701171875, 0.02880859375, 0.0645751953125, 0.01082611083984375, -0.0269317626953125, 0.00732421875, -0.003261566162109375, -0.03399658203125, -0.07635498046875, 0.037841796875, -0.108154296875, -0.00237274169921875, 0.00043129920959472656, 0.00980377197265625, 0.041778564453125, -0.0223388671875, -0.0933837890625, 0.06280517578125, -0.0230712890625, -0.039276123046875, -0.03643798828125, -0.01522064208984375, 0.0233154296875, -0.0092620849609375, -0.0251007080078125, 0.00640106201171875, -0.07037353515625, 0.0027008056640625, 0.0213775634765625, -0.0662841796875, 0.0302734375, 0.036590576171875, -0.1063232421875, 0.0177764892578125, -0.0020580291748046875, -0.024688720703125, -0.0252227783203125, 0.005344390869140625, -0.00047278404235839844, 0.004795074462890625, -0.051544189453125, -0.0257110595703125, 0.01206207275390625, 0.038330078125, 0.01416015625, -0.0009722709655761719, -0.0380859375, -0.005489349365234375, 0.06341552734375, 0.0085296630859375, 0.03277587890625, -0.03179931640625, 0.027008056640625, 0.0281829833984375, -0.00998687744140625, -0.0265045166015625, 0.01320648193359375, -0.0634765625, -0.042694091796875, -0.0020351409912109375, 0.01190948486328125, 0.00704193115234375, -0.0137939453125, 0.01398468017578125, -0.03436279296875, 0.005374908447265625, -0.0161590576171875, 0.0186614990234375, -0.028289794921875, 0.023590087890625, -0.004150390625, 0.032012939453125, -0.0080108642578125, 0.0222625732421875, 0.0274810791015625, 0.044464111328125, 0.0192718505859375, -0.0010843276977539062, 0.006237030029296875, -0.0046844482421875, 0.03729248046875, -0.02960205078125, 0.027557373046875, -0.0273284912109375, -0.029022216796875, 0.02044677734375, 0.035888671875, 0.0195465087890625, -0.0562744140625, 0.01454925537109375, 0.029449462890625, 0.0054473876953125, -0.0161285400390625, 0.027313232421875, -0.017364501953125, 0.0258941650390625, -0.001979827880859375, 0.003841400146484375, 0.05023193359375, -0.0166015625, -0.003978729248046875, -0.0002779960632324219, -0.0259552001953125, -0.0207061767578125, -0.0003027915954589844, 0.07281494140625, -0.0228424072265625, -0.00015532970428466797 ]
3f0f9dbc7df4baa1a1c717744ced0bcb0cb917d8
Wordpress Stackexchange Q: How can I modify the permalink via a filter? I would like to make a change to the URL's in my href attribute across my while site when the_permalink is called. For example: <h2><a href="<?php the_permalink()?>" Can I use my functions.php file to call my custom functon which deals with the search and replaces in the URL's function updateToPerfectURLs($content) { A: Ooops easier than I thought! function edit_the_permalink($html){ $html = updateToPerfectURLs($html); return $html; } add_filter('the_permalink', 'edit_the_permalink');
Q: How can I modify the permalink via a filter? I would like to make a change to the URL's in my href attribute across my while site when the_permalink is called. For example: <h2><a href="<?php the_permalink()?>" Can I use my functions.php file to call my custom functon which deals with the search and replaces in the URL's function updateToPerfectURLs($content) { A: Ooops easier than I thought! function edit_the_permalink($html){ $html = updateToPerfectURLs($html); return $html; } add_filter('the_permalink', 'edit_the_permalink');
wordpress
{ "language": "en", "length": 77, "provenance": "stackexchange_00019.jsonl.gz:445109", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/144125" }
[ 0.09033203125, 0.00803375244140625, 0.03656005859375, -0.0386962890625, 0.026397705078125, -0.027252197265625, 0.08746337890625, -0.033660888671875, -0.0118560791015625, 0.0243377685546875, 0.003917694091796875, -0.02423095703125, 0.00571441650390625, -0.05615234375, 0.010955810546875, -0.034637451171875, 0.0101470947265625, -0.002460479736328125, 0.029144287109375, -0.0246734619140625, 0.0159454345703125, -0.018402099609375, 0.0304412841796875, 0.0430908203125, 0.01561737060546875, -0.025115966796875, 0.0572509765625, -0.0276641845703125, 0.01025390625, -0.0187530517578125, 0.0084228515625, -0.005954742431640625, 0.00940704345703125, 0.0302581787109375, -0.01322174072265625, -0.0005517005920410156, 0.037017822265625, -0.007274627685546875, 0.02264404296875, 0.0251922607421875, 0.048828125, -0.0264739990234375, -0.0018625259399414062, 0.059112548828125, -0.0116424560546875, -0.035308837890625, 0.037200927734375, -0.068603515625, 0.0005040168762207031, -0.007266998291015625, 0.000186920166015625, 0.038177490234375, 0.0004661083221435547, -0.0241546630859375, 0.0007672309875488281, 0.00955963134765625, 0.00426483154296875, -0.005035400390625, 0.017547607421875, -0.0271148681640625, -0.03717041015625, 0.0183258056640625, 0.026458740234375, 0.0088043212890625, -0.0221710205078125, -0.0189971923828125, -0.0184326171875, 0.0212249755859375, -0.03497314453125, -0.02545166015625, 0.0284881591796875, -0.01386260986328125, -0.0163116455078125, -0.039459228515625, 0.006771087646484375, -0.00862884521484375, 0.002262115478515625, -0.03753662109375, -0.0138092041015625, 0.01406097412109375, 0.058868408203125, -0.01177215576171875, 0.00257110595703125, -0.0039520263671875, 0.00543212890625, -0.0092010498046875, 0.00896453857421875, -0.018035888671875, -0.0242462158203125, 0.010650634765625, -0.018310546875, 0.030303955078125, -0.026397705078125, 0.0017862319946289062, -0.007110595703125, -0.00689697265625, 0.0175933837890625, 0.005725860595703125, 0.0199737548828125, 0.00901031494140625, 0.039947509765625, -0.0660400390625, 0.054229736328125, -0.045562744140625, -0.036224365234375, 0.0073394775390625, 0.041473388671875, 0.09942626953125, 0.03717041015625, 0.0139007568359375, -0.00162506103515625, 0.03448486328125, -0.0292816162109375, -0.01387786865234375, -0.0352783203125, 0.0145263671875, -0.0538330078125, -0.01451873779296875, -0.010467529296875, 0.0002493858337402344, -0.005615234375, 0.013336181640625, 0.0189971923828125, -0.020660400390625, 0.0012025833129882812, -0.01401519775390625, -0.0174407958984375, -0.03924560546875, 0.00785064697265625, 0.0187225341796875, -0.0780029296875, -0.00021827220916748047, 0.0938720703125, 0.060760498046875, 0.04974365234375, -0.035980224609375, 0.033935546875, -0.0065765380859375, -0.0017061233520507812, 0.01505279541015625, 0.0097808837890625, -0.011993408203125, -0.01496124267578125, 0.00289154052734375, 0.046112060546875, 0.0244293212890625, 0.00640869140625, 0.011077880859375, 0.0187530517578125, 0.0004954338073730469, 0.007442474365234375, -0.03021240234375, 0.0287628173828125, -0.00669097900390625, 0.0038928985595703125, -0.052642822265625, 0.0189056396484375, -0.04351806640625, 0.0306854248046875, -0.0295867919921875, 0.006748199462890625, -0.01453399658203125, 0.0138397216796875, -0.01120758056640625, -0.0416259765625, 0.018524169921875, -0.034912109375, -0.01068115234375, 0.0017442703247070312, 0.006710052490234375, -0.020233154296875, -0.003032684326171875, -0.0404052734375, -0.009613037109375, 0.00244140625, 0.0131683349609375, -0.015411376953125, 0.05157470703125, -0.01031494140625, 0.054901123046875, 0.0308990478515625, -0.037445068359375, 0.038177490234375, 0.00408935546875, -0.04498291015625, 0.043060302734375, 0.0104217529296875, 0.05804443359375, -0.009735107421875, 0.01224517822265625, 0.03045654296875, 0.037628173828125, -0.0469970703125, 0.0261993408203125, -0.01145172119140625, -0.0292510986328125, -0.00766754150390625, -0.005619049072265625, -0.0233917236328125, 0.00629425048828125, 0.0091094970703125, -0.0015773773193359375, 0.0207977294921875, 0.025665283203125, -0.037933349609375, 0.033172607421875, -0.03729248046875, 0.025299072265625, 0.0189056396484375, 0.016082763671875, 0.01251220703125, 0.00495147705078125, -0.00445556640625, -0.056060791015625, -0.03900146484375, 0.006092071533203125, 0.030670166015625, -0.0057525634765625, -0.0171356201171875, 0.00522613525390625, -0.007167816162109375, -0.005474090576171875, -0.03656005859375, 0.0628662109375, 0.03875732421875, -0.050628662109375, 0.003505706787109375, -0.044464111328125, -0.0306854248046875, -0.00510406494140625, -0.0955810546875, 0.052001953125, 0.05255126953125, 0.041748046875, -0.0036907196044921875, 0.0016841888427734375, 0.01561737060546875, -0.083740234375, -0.000759124755859375, 0.048614501953125, 0.03515625, 0.0218963623046875, -0.007717132568359375, 0.0005340576171875, 0.056243896484375, 0.001617431640625, 0.02642822265625, -0.023284912109375, -0.000036597251892089844, 0.018218994140625, 0.00457000732421875, -0.0018463134765625, 0.02044677734375, -0.022857666015625, 0.007610321044921875, 0.017669677734375, 0.01104736328125, 0.0081634521484375, -0.0157470703125, 0.017181396484375, -0.01184844970703125, -0.0083465576171875, -0.0211334228515625, -0.00522613525390625, 0.0161590576171875, 0.007778167724609375, 0.00711822509765625, 0.0003838539123535156, -0.017669677734375, 0.01326751708984375, 0.0205230712890625, -0.027587890625, -0.0171661376953125, 0.03271484375, -0.001636505126953125, -0.00853729248046875, -0.00820159912109375, 0.0101318359375, -0.05267333984375, -0.001071929931640625, -0.0260772705078125, 0.007671356201171875, -0.0090179443359375, -0.00931549072265625, -0.0084991455078125, -0.03314208984375, -0.0009665489196777344, -0.02423095703125, 0.0227203369140625, -0.00988006591796875, 0.040679931640625, -0.0221710205078125, -0.0244598388671875, 0.00995635986328125, 0.01538848876953125, -0.052886962890625, 0.00769805908203125, -0.0400390625, 0.0394287109375, -0.03460693359375, 0.038299560546875, 0.06982421875, -0.0179443359375, 0.02630615234375, 0.00887298583984375, -0.01715087890625, 0.0008234977722167969, 0.01467132568359375, -0.005260467529296875, 0.0178070068359375, -0.06878662109375, -0.00041222572326660156, -0.00447845458984375, 0.0014638900756835938, -0.033172607421875, -0.050567626953125, -0.0300445556640625, -0.010284423828125, -0.08404541015625, -0.0206146240234375, 0.002544403076171875, -0.0268707275390625, -0.0253753662109375, 0.0419921875, -0.014617919921875, 0.00049591064453125, 0.042633056640625, -0.00711822509765625, 0.006336212158203125, -0.00664520263671875, -0.059783935546875, -0.0270538330078125, -0.0609130859375, 0.022735595703125, 0.000431060791015625, 0.007640838623046875, -0.0029697418212890625, -0.01123809814453125, -0.025390625, -0.0478515625, -0.0086822509765625, 0.01041412353515625, 0.00555419921875, -0.022369384765625, 0.01253509521484375, -0.0007214546203613281, -0.02838134765625, 0.000263214111328125, 0.08990478515625, 0.055877685546875, -0.07110595703125, 0.0261688232421875, -0.019134521484375, 0.0013790130615234375, 0.049041748046875, -0.024658203125, 0.00902557373046875, 0.03533935546875, 0.034515380859375, -0.0341796875, -0.0147705078125, -0.0253143310546875, -0.042327880859375, 0.028411865234375, 0.04736328125, -0.01293182373046875, -0.006839752197265625, 0.0050811767578125, 0.0117034912109375, 0.0014257431030273438, 0.032257080078125, -0.0206146240234375, 0.0022373199462890625, -0.00899505615234375, 0.00870513916015625, -0.036712646484375, 0.032318115234375, -0.0185394287109375, 0.003551483154296875, 0.016021728515625, 0.01366424560546875, 0.0019168853759765625, 0.0125885009765625, -0.039276123046875, -0.01529693603515625, 0.049530029296875, -0.037567138671875, -0.004238128662109375, -0.025115966796875, -0.0272674560546875, 0.007160186767578125, 0.07806396484375, -0.005207061767578125, -0.0239105224609375, -0.0285186767578125, 0.0024127960205078125, 0.0027008056640625, -0.0204620361328125, 0.005153656005859375, -0.0222930908203125, -0.088623046875, 0.00716400146484375, -0.0257720947265625, -0.01404571533203125, -0.0171356201171875, 0.02508544921875, -0.04217529296875, -0.04095458984375, 0.03387451171875, -0.0034027099609375, -0.02947998046875, 0.039764404296875, -0.057403564453125, 0.0127716064453125, -0.046417236328125, 0.009613037109375, -0.048828125, -0.003276824951171875, -0.00879669189453125, 0.03143310546875, 0.0285797119140625, -0.038421630859375, 0.00273895263671875, 0.050933837890625, 0.01983642578125, 0.038543701171875, 0.00795745849609375, -0.01416778564453125, 0.030029296875, -0.01708984375, 0.0142822265625, -0.0173187255859375, 0.0031185150146484375, -0.004673004150390625, -0.026641845703125, 0.027008056640625, -0.019683837890625, 0.01299285888671875, 0.01904296875, -0.033050537109375, -0.08758544921875, -0.01537322998046875, -0.0187225341796875, -0.010498046875, -0.0244903564453125, 0.0032520294189453125, 0.006298065185546875, -0.0858154296875, 0.0418701171875, -0.019927978515625, -0.020782470703125, -0.005340576171875, 0.06390380859375, 0.021820068359375, -0.01352691650390625, -0.003368377685546875, -0.0019016265869140625, 0.02783203125, -0.0285186767578125, 0.0164642333984375, 0.01430511474609375, -0.01092529296875, 0.017486572265625, -0.0268402099609375, 0.0101470947265625, 0.0004253387451171875, 0.0159912109375, 0.0262908935546875, 0.01424407958984375, 0.003955841064453125, 0.022552490234375, 0.00365447998046875, 0.0170745849609375, -0.041290283203125, 0.00975799560546875, -0.046051025390625, 0.01522064208984375, 0.0022182464599609375, 0.0263671875, -0.0288543701171875, -0.034271240234375, 0.02789306640625, -0.0033588409423828125, 0.04168701171875, 0.0096282958984375, -0.00814056396484375, 0.0209503173828125, 0.002887725830078125, 0.039703369140625, -0.0301513671875, 0.0103607177734375, -0.040283203125, 0.06915283203125, -0.04669189453125, 0.0239105224609375, -0.014129638671875, -0.00807952880859375, 0.0689697265625, 0.033966064453125, 0.01393890380859375, -0.0014553070068359375, -0.016754150390625, -0.044525146484375, -0.018463134765625, -0.0046539306640625, -0.004199981689453125, -0.00026679039001464844, 0.0023899078369140625, 0.0071258544921875, -0.01355743408203125, 0.002765655517578125, -0.0190582275390625, 0.0156402587890625, 0.023773193359375, -0.015899658203125, 0.01314544677734375, 0.039886474609375, 0.032196044921875, 0.0163116455078125, -0.0199737548828125, 0.0096435546875, 0.0310821533203125, -0.004673004150390625, -0.005115509033203125, 0.017974853515625, 0.0185699462890625, -0.0433349609375, 0.0506591796875, -0.0006856918334960938, -0.0277099609375, 0.016754150390625, 0.0418701171875, 0.00696563720703125, 0.03662109375, -0.0173492431640625, -0.01690673828125, -0.0137939453125, 0.0156707763671875, -0.0145721435546875, -0.04364013671875, -0.008056640625, 0.004444122314453125, 0.005619049072265625, -0.006984710693359375, -0.0123443603515625, -0.0274200439453125, -0.0294342041015625, 0.0035648345947265625, -0.0128326416015625, 0.0081329345703125, -0.006683349609375, -0.0271759033203125, 0.020477294921875, -0.0241241455078125, -0.01012420654296875, -0.021453857421875, 0.0025119781494140625, -0.039276123046875, -0.0017366409301757812, 0.0799560546875, 0.0193634033203125, 0.052764892578125, -0.0235748291015625, -0.046844482421875, 0.038238525390625, -0.0233917236328125, 0.057281494140625, -0.005199432373046875, -0.0989990234375, 0.006526947021484375, -0.04132080078125, 0.0221099853515625, -0.0531005859375, -0.03509521484375, -0.038177490234375, 0.0158538818359375, 0.0140838623046875, 0.00878143310546875, -0.0091705322265625, -0.00954437255859375, 0.0140838623046875, 0.019256591796875, -0.0022563934326171875, 0.033660888671875, -0.0040435791015625, 0.04864501953125, 0.003376007080078125, 0.0159912109375, 0.006046295166015625, 0.01165771484375, 0.003292083740234375, -0.0184326171875, -0.022216796875, 0.0023956298828125, -0.01425933837890625, 0.00931549072265625, -0.038055419921875, 0.029449462890625, 0.10528564453125, 0.003143310546875, 0.01190185546875, -0.036529541015625, -0.006740570068359375, -0.039703369140625, 0.00534820556640625, -0.0966796875, -0.0234832763671875, -0.041229248046875, -0.0074920654296875, 0.01093292236328125, 0.00940704345703125, -0.003337860107421875, 0.01251983642578125, 0.0016584396362304688, 0.01611328125, 0.00617218017578125, -0.031402587890625, 0.0229339599609375, 0.0655517578125, 0.037078857421875, 0.04986572265625, 0.0231781005859375, 0.0269775390625, 0.026702880859375, -0.0165252685546875, 0.0081939697265625, 0.046600341796875, 0.0670166015625, 0.0017442703247070312, 0.017333984375, 0.058563232421875, -0.007656097412109375, -0.006282806396484375, 0.038116455078125, 0.0526123046875, -0.06024169921875, -0.00858306884765625, 0.00463104248046875, 0.0166778564453125, 0.03277587890625, 0.047027587890625, -0.018463134765625, -0.0102386474609375, -0.0249481201171875, -0.049591064453125, -0.005619049072265625, -0.001628875732421875, 0.01092529296875, -0.0036716461181640625, -0.018707275390625, 0.024932861328125, 0.005397796630859375, -0.007648468017578125, -0.00917816162109375, -0.0011625289916992188, 0.01337432861328125, -0.0185699462890625, 0.005252838134765625, 0.01195526123046875, -0.0206451416015625, -0.00841522216796875, 0.060943603515625, 0.0010614395141601562, 0.01271820068359375, 0.00384521484375, -0.0227813720703125, 0.05078125, 0.0282745361328125, -0.00848388671875, 0.0050048828125, 0.00567626953125, -0.01007080078125, 0.0184173583984375, -0.00542449951171875, 0.0038127899169921875, 0.00525665283203125, -0.0079345703125, 0.0007252693176269531, -0.0194091796875, -0.001316070556640625, -0.013214111328125, -0.02252197265625, 0.11553955078125, -0.042327880859375, -0.036529541015625, 0.0180816650390625, -0.0152740478515625, -0.02398681640625, -0.007503509521484375, -0.010009765625, -0.043212890625, -0.03521728515625, -0.021636962890625, -0.061920166015625, 0.0161590576171875, -0.041168212890625, -0.07049560546875, 0.1268310546875, -0.00959014892578125, 0.047607421875, 0.0300140380859375, 0.047882080078125, -0.028594970703125, 0.020599365234375, -0.0268402099609375, 0.04644775390625, 0.025238037109375, 0.0268707275390625, -0.05718994140625, -0.016387939453125, 0.0056304931640625, 0.049713134765625, 0.00707244873046875, 0.0049285888671875, -0.052459716796875, -0.01361846923828125, 0.031036376953125, 0.050140380859375, 0.0323486328125, 0.021881103515625, -0.0115203857421875, 0.06475830078125, 0.031494140625, -0.0693359375, 0.00504302978515625, -0.006336212158203125, -0.0189971923828125, 0.02801513671875, 0.027191162109375, 0.044464111328125, 0.01337432861328125, 0.0002655982971191406, -0.036834716796875, 0.0038738250732421875, 0.05023193359375, -0.04583740234375, -0.01385498046875, 0.038787841796875, 0.0050048828125, -0.048248291015625, -0.03265380859375, -0.0219573974609375, 0.031951904296875, -0.001068115234375, 0.01483154296875, 0.01544189453125, 0.004772186279296875, 0.049072265625, -0.0121917724609375, -0.004730224609375, 0.017364501953125, 0.0115509033203125, 0.062744140625, 0.05126953125, 0.02081298828125, -0.0310821533203125, -0.0198516845703125, 0.04901123046875, 0.08673095703125, -0.041412353515625, -0.007579803466796875, 0.00907135009765625, 0.0032863616943359375, 0.001735687255859375, -0.020111083984375, 0.0252532958984375, -0.00580596923828125, -0.005832672119140625, 0.01654052734375, -0.01531219482421875, 0.045562744140625, 0.01074981689453125, 0.0322265625, 0.0042724609375, -0.011077880859375, 0.0101318359375, -0.038848876953125, -0.007343292236328125, -0.0015459060668945312, 0.046478271484375, 0.0443115234375, 0.0250396728515625, 0.000041425228118896484, -0.0161285400390625, -0.0007982254028320312, 0.032470703125, -0.06268310546875, 0.027862548828125, -0.025634765625, -0.06365966796875, -0.032928466796875, 0.04022216796875, 0.03558349609375, 0.0369873046875, 0.038177490234375, -0.03656005859375, -0.02276611328125, 0.01195526123046875, 0.01039886474609375, -0.04498291015625, 0.0166015625, -0.04522705078125, 0.041046142578125, 0.01068878173828125, 0.009063720703125, -0.0271759033203125, 0.01715087890625, 0.028350830078125, -0.01508331298828125, 0.0223846435546875, -0.0102081298828125, -0.03887939453125, 0.060333251953125, 0.00988006591796875, 0.0865478515625, 0.00693511962890625, -0.042144775390625, 0.0089111328125, -0.028656005859375, -0.0789794921875, 0.04681396484375, 0.065185546875, -0.00379180908203125, -0.022705078125, -0.019805908203125, -0.0006456375122070312, 0.00830078125, -0.0033397674560546875, -0.017578125, 0.0205841064453125, 0.03070068359375, -0.00164794921875, -0.01959228515625, -0.007366180419921875, 0.00948333740234375, 0.033599853515625, 0.00029778480529785156, 0.08978271484375, -0.03961181640625, 0.00785064697265625, 0.00811004638671875, 0.0059967041015625, -0.01015472412109375, -0.006366729736328125, 0.03265380859375, -0.02337646484375, 0.00841522216796875, 0.007068634033203125, -0.023101806640625, 0.034454345703125, 0.041473388671875, -0.03997802734375, 0.03717041015625, -0.0106201171875, -0.001972198486328125, -0.049163818359375, 0.056488037109375, -0.022857666015625, -0.046661376953125, -0.0262908935546875, 0.0036411285400390625, 0.0182037353515625, 0.0202789306640625, -0.0102081298828125, 0.032012939453125, -0.0170745849609375, 0.007564544677734375, 0.004230499267578125, -0.001407623291015625, 0.0277557373046875, 0.04351806640625, -0.0697021484375, 0.00986480712890625, -0.003589630126953125, -0.0299224853515625, 0.01324462890625, -0.00560760498046875, 0.0014333724975585938, -0.00769805908203125, -0.0306243896484375, -0.033660888671875, -0.041748046875, 0.00814056396484375, -0.022674560546875, 0.0188751220703125, -0.03912353515625, 0.029510498046875, 0.0126495361328125, 0.016021728515625, -0.027435302734375, -0.04351806640625, -0.00144195556640625, 0.006927490234375, -0.023040771484375, -0.05499267578125, -0.04302978515625, 0.011322021484375, 0.032928466796875, 0.0179443359375, -0.08673095703125, 0.032562255859375, -0.0171356201171875, 0.07049560546875, -0.042633056640625, -0.04876708984375, 0.007053375244140625, 0.02325439453125, -0.0219573974609375, -0.033538818359375, -0.05706787109375, 0.004283905029296875, -0.047515869140625, 0.0225067138671875, 0.06292724609375, -0.0257568359375, -0.02587890625, -0.0170745849609375, 0.007617950439453125, 0.038848876953125, -0.06689453125, -0.0213165283203125, 0.02667236328125, -0.00722503662109375, -0.0198211669921875, -0.04791259765625, 0.0113067626953125, -0.0340576171875, 0.0034637451171875, 0.0261688232421875, -0.0145263671875, 0.00653839111328125, -0.0281829833984375, -0.044586181640625, 0.044342041015625, 0.01317596435546875, -0.03021240234375, -0.0229949951171875, -0.0247955322265625, -0.0215606689453125, 0.04510498046875, 0.001056671142578125, -0.029693603515625, -0.06268310546875, 0.019866943359375, 0.0068511962890625, 0.0303802490234375, 0.0019073486328125, 0.026153564453125, 0.006053924560546875, 0.0426025390625, 0.0304718017578125, -0.00392913818359375, 0.0005812644958496094, -0.0146331787109375, 0.036376953125, 0.0301666259765625, -0.0157623291015625, -0.044158935546875, 0.000043392181396484375, -0.033782958984375, -0.00832366943359375, -0.062103271484375, -0.0499267578125, -0.04022216796875, 0.121826171875, 0.0157318115234375, 0.03741455078125, -0.0137481689453125, -0.0032711029052734375, -0.006664276123046875, 0.00023376941680908203, 0.01204681396484375, 0.01172637939453125, -0.032135009765625, -0.005649566650390625, 0.016998291015625, -0.00759124755859375, -0.0123748779296875, -0.0244903564453125, -0.0243072509765625, 0.00026607513427734375, -0.01340484619140625, 0.00751495361328125, 0.004161834716796875, 0.03070068359375, 0.084228515625, -0.05615234375, 0.0165863037109375, -0.006870269775390625, 0.001979827880859375, 0.045196533203125, -0.06036376953125, -0.0024318695068359375, 0.01837158203125, 0.0196075439453125, -0.01129913330078125, 0.04498291015625, 0.038848876953125, 0.052581787109375, -0.0277862548828125, -0.033416748046875, 0.027801513671875, 0.01357269287109375, 0.005023956298828125, -0.0496826171875, 0.049774169921875, 0.01555633544921875, 0.08837890625, -0.0270843505859375, 0.0278778076171875, -0.0084686279296875, 0.01739501953125, -0.0400390625, 0.01824951171875, -0.003387451171875, -0.01409149169921875, -0.006427764892578125, -0.007572174072265625, -0.0012989044189453125, -0.05511474609375, 0.013763427734375, -0.0743408203125, 0.0138397216796875, 0.027923583984375 ]
f40d96708e1642834f044330453d349ef158be55
Wordpress Stackexchange Q: pre_set_site_transient_update_plugins wont call on hosted webspace I am trying to use pre_set_site_transient_update_plugins to update my plugin from a GitHub repository. For that I am using this example. On my Dev-System (MAMP for Mac Version 2.2) everything is fine. It gets the latest Version and shows me the update notification. When I publish it to my Live System wich is a hosted webspace package. I don’t get the Update Notification. Even after waiting 12 hours or using ?force-check=1 What I already did was to create a simple Plugin that logs a string to the wordpress log when pre_set_site_transient_update_plugins is called. Again on my Dev-system it works, but not Live. So I think it has something to do with the PHP configuration. Does anyone has an idea which setting could prevent this filter from beeing executed? A: Sorry for my late answer, but I found the solution for my problem. My Code was fine, also my small Test-Plugin. The problem is with the caching of my hosting provider. They are caching the Database requests and it took some time for the updater to recognize that the plugin is updated.
Q: pre_set_site_transient_update_plugins wont call on hosted webspace I am trying to use pre_set_site_transient_update_plugins to update my plugin from a GitHub repository. For that I am using this example. On my Dev-System (MAMP for Mac Version 2.2) everything is fine. It gets the latest Version and shows me the update notification. When I publish it to my Live System wich is a hosted webspace package. I don’t get the Update Notification. Even after waiting 12 hours or using ?force-check=1 What I already did was to create a simple Plugin that logs a string to the wordpress log when pre_set_site_transient_update_plugins is called. Again on my Dev-system it works, but not Live. So I think it has something to do with the PHP configuration. Does anyone has an idea which setting could prevent this filter from beeing executed? A: Sorry for my late answer, but I found the solution for my problem. My Code was fine, also my small Test-Plugin. The problem is with the caching of my hosting provider. They are caching the Database requests and it took some time for the updater to recognize that the plugin is updated. A: You're using an old library and it looks like it relies on transient to check an/or update your plugins. This shouldn't be the case because transients are meant to store/cache temporary data. I recommend using a more robust and mature library which we use at our company: Plugin Update Checker, see https://github.com/YahnisElsts/plugin-update-checker It has also an option to force check if there are any updates. This library is really flexible, you could use this for .org, github, BitBucket, GitLab and your own server.
wordpress
{ "language": "en", "length": 272, "provenance": "stackexchange_00019.jsonl.gz:445145", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/144262" }
[ 0.042327880859375, 0.0012083053588867188, -0.004726409912109375, -0.035919189453125, 0.0114898681640625, -0.0296173095703125, 0.0253448486328125, -0.0121917724609375, 0.0078582763671875, 0.007183074951171875, -0.0092315673828125, -0.0168304443359375, -0.0164794921875, -0.03216552734375, -0.006175994873046875, -0.02777099609375, 0.0477294921875, -0.0193328857421875, 0.03070068359375, -0.00887298583984375, 0.001804351806640625, 0.0299835205078125, 0.0115203857421875, 0.0836181640625, 0.0004799365997314453, 0.0271148681640625, 0.06072998046875, 0.0101470947265625, 0.0090789794921875, -0.00948333740234375, 0.0176849365234375, -0.044586181640625, 0.0263519287109375, 0.04083251953125, -0.06744384765625, -0.018341064453125, 0.0190887451171875, -0.00510406494140625, -0.032257080078125, 0.05230712890625, 0.0196990966796875, -0.0102996826171875, 0.00965118408203125, 0.06329345703125, -0.01389312744140625, -0.022705078125, 0.005523681640625, -0.03955078125, 0.0008997917175292969, -0.03436279296875, 0.0032100677490234375, 0.0157012939453125, 0.031524658203125, -0.008636474609375, -0.006687164306640625, -0.007720947265625, -0.041107177734375, 0.043121337890625, 0.0256500244140625, 0.0214385986328125, -0.0005278587341308594, 0.0009212493896484375, -0.010711669921875, -0.03253173828125, -0.0236053466796875, -0.0148773193359375, 0.019195556640625, 0.00684356689453125, -0.0194854736328125, -0.0185546875, 0.010650634765625, 0.002574920654296875, 0.02923583984375, 0.00579071044921875, -0.035797119140625, -0.0208740234375, 0.04522705078125, 0.01457977294921875, 0.00859832763671875, -0.023468017578125, 0.05010986328125, 0.0041046142578125, 0.023712158203125, -0.0063018798828125, -0.0025482177734375, 0.021270751953125, -0.0002282857894897461, -0.02496337890625, -0.046112060546875, -0.0020847320556640625, -0.0274810791015625, -0.00543212890625, -0.07794189453125, 0.01678466796875, 0.031524658203125, -0.01184844970703125, 0.025909423828125, 0.05047607421875, -0.0299835205078125, -0.0246734619140625, -0.0018415451049804688, -0.03082275390625, 0.00276947021484375, -0.01514434814453125, -0.0286407470703125, -0.01348876953125, -0.00994873046875, 0.0616455078125, 0.042449951171875, 0.071044921875, 0.002590179443359375, -0.004978179931640625, 0.0184783935546875, -0.040374755859375, -0.00809478759765625, -0.041595458984375, -0.042205810546875, 0.0294342041015625, 0.022003173828125, -0.031707763671875, 0.025177001953125, 0.058563232421875, -0.0460205078125, -0.07537841796875, -0.00957489013671875, -0.048187255859375, -0.01904296875, 0.0016727447509765625, -0.05413818359375, -0.0131683349609375, -0.0304107666015625, 0.045654296875, 0.07037353515625, 0.033660888671875, 0.005519866943359375, -0.00887298583984375, 0.031524658203125, 0.029815673828125, -0.004634857177734375, -0.003734588623046875, -0.00789642333984375, 0.03314208984375, 0.035186767578125, -0.048309326171875, 0.0103912353515625, 0.0139312744140625, 0.022613525390625, 0.013641357421875, -0.00846099853515625, -0.0182037353515625, -0.006916046142578125, 0.003482818603515625, 0.029144287109375, -0.003940582275390625, 0.032562255859375, -0.04632568359375, 0.057861328125, -0.054656982421875, -0.0014677047729492188, -0.049041748046875, -0.0159912109375, -0.04144287109375, 0.000021576881408691406, -0.0158843994140625, -0.0355224609375, 0.051422119140625, -0.0038661956787109375, 0.000659942626953125, 0.033966064453125, 0.07098388671875, 0.035736083984375, 0.015960693359375, 0.05596923828125, 0.03692626953125, -0.00850677490234375, 0.0029010772705078125, -0.02191162109375, 0.03399658203125, 0.073486328125, -0.0701904296875, -0.06463623046875, -0.038726806640625, 0.11553955078125, -0.03143310546875, -0.034942626953125, 0.0005002021789550781, 0.00363922119140625, 0.029327392578125, 0.0174102783203125, 0.007228851318359375, 0.01056671142578125, 0.0211639404296875, -0.02740478515625, 0.034423828125, 0.0005221366882324219, -0.00201416015625, -0.0261383056640625, 0.0209197998046875, -0.0031642913818359375, -0.048858642578125, -0.039093017578125, -0.0338134765625, 0.04034423828125, -0.006702423095703125, -0.007122039794921875, 0.0007457733154296875, -0.0255126953125, 0.0305023193359375, 0.0693359375, 0.0214385986328125, -0.0302734375, -0.0011396408081054688, 0.0014848709106445312, -0.028076171875, -0.055633544921875, 0.0014858245849609375, -0.025604248046875, 0.033599853515625, 0.009979248046875, 0.039398193359375, 0.0067138671875, -0.004550933837890625, -0.002819061279296875, -0.051544189453125, -0.006320953369140625, 0.00872039794921875, -0.01078033447265625, 0.007476806640625, 0.0079345703125, -0.0084991455078125, 0.07421875, 0.01470947265625, -0.006855010986328125, -0.013275146484375, -0.043121337890625, 0.0002574920654296875, -0.04833984375, -0.056396484375, -0.00302886962890625, 0.064453125, 0.031768798828125, 0.031005859375, -0.0009813308715820312, -0.01120758056640625, 0.0369873046875, -0.015106201171875, 0.03076171875, -0.040679931640625, 0.027923583984375, 0.032470703125, -0.0027751922607421875, -0.041168212890625, 0.0226898193359375, -0.0780029296875, 0.03863525390625, 0.037353515625, 0.04315185546875, -0.016082763671875, 0.02557373046875, -0.03546142578125, 0.0157012939453125, -0.0496826171875, -0.074462890625, 0.01467132568359375, 0.0240020751953125, 0.005619049072265625, 0.03900146484375, 0.034637451171875, 0.012786865234375, -0.006439208984375, -0.0187835693359375, -0.062286376953125, -0.01136016845703125, 0.031768798828125, 0.0226287841796875, 0.002346038818359375, -0.02618408203125, 0.00997161865234375, -0.044158935546875, 0.01800537109375, -0.02716064453125, 0.004680633544921875, 0.0347900390625, -0.01416778564453125, 0.001873016357421875, 0.0035610198974609375, 0.022003173828125, -0.047515869140625, 0.0078582763671875, 0.0173797607421875, 0.037017822265625, 0.01898193359375, -0.015350341796875, 0.0362548828125, -0.01229095458984375, -0.0039825439453125, 0.01873779296875, -0.04083251953125, 0.033050537109375, -0.03387451171875, 0.047149658203125, 0.06201171875, -0.004436492919921875, 0.0017490386962890625, -0.011444091796875, 0.0113983154296875, -0.007160186767578125, 0.00969696044921875, -0.018524169921875, -0.0239715576171875, -0.047332763671875, -0.00832366943359375, 0.021148681640625, 0.03790283203125, -0.0218658447265625, -0.04510498046875, -0.01055908203125, 0.008392333984375, -0.0567626953125, -0.0416259765625, 0.0389404296875, -0.010040283203125, -0.0093994140625, -0.01390838623046875, -0.0113525390625, -0.020233154296875, 0.0024127960205078125, -0.00518035888671875, -0.01312255859375, -0.02630615234375, -0.032867431640625, -0.053192138671875, -0.057586669921875, 0.00310516357421875, 0.013671875, 0.01727294921875, 0.018157958984375, 0.053924560546875, -0.0033359527587890625, -0.06646728515625, -0.01143646240234375, 0.01552581787109375, -0.0211029052734375, 0.01318359375, 0.00951385498046875, 0.0177459716796875, -0.00433349609375, 0.0095672607421875, 0.00788116455078125, 0.036468505859375, -0.040252685546875, -0.01079559326171875, 0.016326904296875, -0.01031494140625, 0.0335693359375, -0.03485107421875, -0.0289764404296875, 0.002498626708984375, 0.0002548694610595703, -0.0537109375, 0.0310516357421875, -0.01496124267578125, -0.0017919540405273438, 0.0298614501953125, 0.0009608268737792969, -0.0281982421875, -0.0178070068359375, 0.0111083984375, -0.03704833984375, -0.03338623046875, 0.050994873046875, -0.0430908203125, -0.006557464599609375, -0.0251922607421875, -0.062408447265625, -0.0178070068359375, 0.03900146484375, -0.0024280548095703125, 0.019805908203125, 0.01137542724609375, 0.001983642578125, -0.023101806640625, 0.0538330078125, -0.0452880859375, -0.0013532638549804688, 0.02423095703125, -0.01465606689453125, 0.01092529296875, -0.036651611328125, -0.01312255859375, -0.035888671875, 0.033935546875, -0.00795745849609375, -0.0182342529296875, -0.005039215087890625, -0.00035953521728515625, -0.012664794921875, 0.0021209716796875, -0.003749847412109375, -0.0088653564453125, -0.0235443115234375, -0.00479888916015625, 0.0050048828125, -0.02886962890625, 0.00823974609375, -0.03662109375, -0.0016183853149414062, -0.0269012451171875, 0.036773681640625, -0.03778076171875, 0.0223236083984375, -0.048065185546875, 0.03533935546875, -0.08843994140625, -0.0070953369140625, -0.020355224609375, -0.051361083984375, 0.0013685226440429688, -0.031982421875, 0.0225067138671875, 0.019622802734375, -0.0249481201171875, -0.01430511474609375, 0.01197052001953125, 0.0116424560546875, 0.05718994140625, 0.0099639892578125, -0.003925323486328125, 0.02191162109375, 0.0234832763671875, 0.050445556640625, -0.014434814453125, 0.031280517578125, 0.0391845703125, -0.043365478515625, -0.00638580322265625, -0.037384033203125, -0.0386962890625, 0.0217742919921875, -0.0794677734375, -0.0222625732421875, -0.01690673828125, -0.02020263671875, -0.004497528076171875, -0.02227783203125, -0.007843017578125, -0.012420654296875, -0.01387786865234375, 0.03515625, -0.0312347412109375, 0.01552581787109375, 0.004039764404296875, 0.06976318359375, 0.0071258544921875, -0.01459503173828125, -0.0016965866088867188, 0.031585693359375, 0.0325927734375, 0.0135040283203125, -0.01849365234375, -0.0223388671875, -0.0394287109375, 0.0216522216796875, 0.021759033203125, 0.0253143310546875, -0.0270233154296875, -0.01561737060546875, 0.01538848876953125, -0.0261383056640625, 0.024658203125, 0.03460693359375, 0.01253509521484375, 0.006008148193359375, -0.0435791015625, 0.0102081298828125, -0.0292510986328125, 0.0175018310546875, -0.0186004638671875, 0.0443115234375, -0.02630615234375, -0.06854248046875, 0.0325927734375, -0.061279296875, 0.03375244140625, -0.0010585784912109375, 0.0005030632019042969, 0.071533203125, 0.016082763671875, -0.0167236328125, -0.032928466796875, 0.00927734375, -0.033782958984375, 0.004978179931640625, -0.0011272430419921875, -0.0256195068359375, -0.036956787109375, -0.01445770263671875, 0.0545654296875, -0.01422119140625, -0.037506103515625, -0.025238037109375, -0.035614013671875, 0.0078887939453125, 0.017120361328125, 0.01357269287109375, -0.0129241943359375, 0.0106964111328125, -0.0263671875, 0.002758026123046875, 0.02667236328125, -0.00518035888671875, -0.02117919921875, 0.008941650390625, 0.0036106109619140625, -0.008575439453125, -0.00537872314453125, 0.037811279296875, 0.01751708984375, -0.0057373046875, -0.014251708984375, 0.04278564453125, 0.02203369140625, 0.0033473968505859375, 0.0178985595703125, -0.003391265869140625, 0.03460693359375, -0.06671142578125, -0.0008330345153808594, -0.04296875, 0.00931549072265625, 0.006931304931640625, 0.04974365234375, 0.0011262893676757812, -0.026702880859375, 0.02728271484375, -0.0278167724609375, -0.0257720947265625, 0.0161590576171875, -0.002521514892578125, -0.0233917236328125, -0.033905029296875, -0.0031681060791015625, 0.0215606689453125, 0.004421234130859375, 0.01372528076171875, 0.01203155517578125, 0.03643798828125, 0.048309326171875, -0.0248870849609375, 0.003215789794921875, -0.011810302734375, 0.0078125, 0.0033016204833984375, -0.054840087890625, -0.053955078125, 0.00624847412109375, 0.039947509765625, -0.0288543701171875, -0.0189666748046875, 0.036224365234375, -0.004802703857421875, 0.038818359375, -0.0682373046875, -0.0033321380615234375, -0.020111083984375, -0.002620697021484375, 0.0540771484375, 0.02197265625, -0.053314208984375, 0.001644134521484375, -0.06256103515625, -0.01358795166015625, -0.0087890625, -0.02777099609375, -0.03643798828125, 0.0007538795471191406, 0.031280517578125, 0.048004150390625, -0.025543212890625, -0.0595703125, -0.0203704833984375, -0.00470733642578125, 0.026580810546875, 0.07293701171875, 0.023284912109375, 0.0206451416015625, 0.006504058837890625, 0.05029296875, 0.0435791015625, 0.004207611083984375, -0.040283203125, -0.0401611328125, 0.0266876220703125, -0.01068878173828125, -0.0254364013671875, -0.026397705078125, 0.0219268798828125, -0.031707763671875, -0.0011663436889648438, -0.0131988525390625, 0.0127105712890625, -0.0195159912109375, 0.005023956298828125, -0.02105712890625, 0.044921875, -0.031005859375, 0.0009121894836425781, 0.032958984375, -0.03900146484375, -0.00919342041015625, 0.006862640380859375, 0.0221405029296875, -0.0195465087890625, -0.019378662109375, -0.00848388671875, 0.0263214111328125, -0.041046142578125, 0.057037353515625, 0.06646728515625, -0.01406097412109375, 0.023651123046875, 0.01467132568359375, 0.006122589111328125, 0.0167694091796875, -0.0006084442138671875, 0.006053924560546875, -0.033966064453125, 0.06475830078125, 0.0154876708984375, -0.03692626953125, 0.057159423828125, -0.0462646484375, 0.015106201171875, 0.036834716796875, 0.047821044921875, -0.041015625, -0.006694793701171875, -0.0055084228515625, -0.051300048828125, -0.003917694091796875, -0.0026531219482421875, -0.0196075439453125, -0.03533935546875, 0.018585205078125, -0.0135040283203125, 0.0014810562133789062, 0.0263824462890625, 0.00843048095703125, -0.0297088623046875, -0.03076171875, -0.006256103515625, 0.019866943359375, 0.005695343017578125, 0.010772705078125, 0.0024394989013671875, -0.0125579833984375, -0.003116607666015625, -0.0018053054809570312, 0.0167694091796875, -0.04254150390625, -0.058868408203125, -0.0020599365234375, -0.004619598388671875, -0.047882080078125, 0.0028629302978515625, 0.02508544921875, 0.0159454345703125, 0.004467010498046875, 0.0156707763671875, -0.042144775390625, 0.00366973876953125, -0.0491943359375, 0.0545654296875, -0.02825927734375, -0.00745391845703125, 0.03460693359375, -0.04937744140625, -0.01055145263671875, -0.0011005401611328125, 0.016357421875, -0.01727294921875, -0.003108978271484375, 0.06781005859375, -0.0338134765625, -0.014404296875, 0.020782470703125, 0.031585693359375, -0.011810302734375, 0.00424957275390625, -0.03717041015625, -0.04266357421875, -0.002956390380859375, 0.001140594482421875, -0.0209808349609375, 0.01087188720703125, 0.010650634765625, -0.044189453125, 0.09039306640625, 0.0243682861328125, 0.0025482177734375, 0.0017986297607421875, 0.048858642578125, -0.05499267578125, 0.0040283203125, -0.05694580078125, 0.0272674560546875, -0.022491455078125, 0.05126953125, -0.057647705078125, 0.00853729248046875, -0.009918212890625, -0.0007109642028808594, 0.029205322265625, 0.023284912109375, -0.07568359375, -0.0230560302734375, 0.00933837890625, 0.0298309326171875, 0.0191192626953125, 0.06964111328125, -0.00995635986328125, 0.036712646484375, 0.0157470703125, -0.020965576171875, 0.028533935546875, -0.0037288665771484375, -0.05682373046875, 0.0178070068359375, 0.00850677490234375, 0.0004508495330810547, -0.0157623291015625, 0.06573486328125, -0.016082763671875, -0.01476287841796875, 0.01317596435546875, 0.007434844970703125, 0.0036830902099609375, 0.01715087890625, 0.01983642578125, 0.050048828125, -0.0222320556640625, 0.0033893585205078125, 0.036163330078125, 0.012969970703125, -0.01052093505859375, 0.0113677978515625, 0.0120391845703125, -0.0247344970703125, -0.017730712890625, -0.02008056640625, 0.0112152099609375, -0.0181427001953125, 0.031768798828125, -0.0009703636169433594, 0.0355224609375, -0.0240631103515625, -0.0033283233642578125, 0.01171875, 0.026092529296875, -0.0091552734375, -0.04364013671875, 0.0198516845703125, 0.0037975311279296875, 0.0054931640625, -0.01404571533203125, 0.00728607177734375, -0.019775390625, 0.00907135009765625, 0.01268768310546875, -0.022552490234375, -0.01416778564453125, 0.0178985595703125, 0.01678466796875, 0.05780029296875, -0.0162506103515625, -0.0321044921875, -0.00484466552734375, 0.00926971435546875, -0.013580322265625, 0.0318603515625, -0.023712158203125, 0.0643310546875, -0.054901123046875, -0.00653076171875, -0.0230712890625, 0.01047515869140625, -0.022247314453125, 0.03851318359375, -0.0209808349609375, -0.03570556640625, 0.037841796875, 0.03900146484375, 0.0198974609375, -0.018798828125, 0.04815673828125, 0.0233306884765625, -0.06878662109375, -0.00785064697265625, 0.066162109375, -0.01256561279296875, -0.023681640625, -0.019775390625, -0.03704833984375, 0.01389312744140625, -0.0195770263671875, 0.0005459785461425781, -0.024139404296875, 0.044219970703125, -0.06536865234375, 0.045989990234375, -0.0247344970703125, -0.045684814453125, 0.0638427734375, -0.021697998046875, 0.09307861328125, -0.032867431640625, 0.06976318359375, 0.0228424072265625, -0.0274658203125, -0.0002961158752441406, -0.0305023193359375, 0.0170745849609375, 0.0640869140625, -0.0136871337890625, 0.00960540771484375, 0.01549530029296875, 0.0124664306640625, -0.0024051666259765625, -0.00955963134765625, -0.005889892578125, 0.0335693359375, -0.00823211669921875, -0.0263671875, -0.0221710205078125, -0.0254364013671875, 0.045166015625, 0.01213836669921875, 0.1312255859375, -0.04901123046875, 0.0143280029296875, 0.01255035400390625, -0.002521514892578125, -0.0045166015625, 0.024566650390625, -0.0245513916015625, -0.0215911865234375, -0.015838623046875, 0.006683349609375, -0.054840087890625, 0.005924224853515625, 0.0254058837890625, -0.0032863616943359375, 0.021759033203125, -0.04034423828125, 0.024566650390625, 0.0065460205078125, 0.004505157470703125, -0.0252227783203125, -0.047637939453125, -0.01392364501953125, 0.0164337158203125, 0.0082855224609375, 0.025848388671875, -0.0286407470703125, 0.0192413330078125, 0.0384521484375, 0.011566162109375, 0.0017185211181640625, 0.01119232177734375, 0.007358551025390625, 0.026519775390625, 0.012969970703125, -0.03582763671875, -0.0198974609375, -0.025177001953125, -0.01261138916015625, 0.007770538330078125, 0.0467529296875, -0.028167724609375, 0.03924560546875, 0.0146026611328125, -0.01776123046875, 0.0019741058349609375, -0.04144287109375, -0.0143585205078125, 0.0157928466796875, 0.011688232421875, -0.00811004638671875, -0.02130126953125, -0.03253173828125, -0.074951171875, 0.0037994384765625, 0.0159912109375, -0.038238525390625, -0.0171356201171875, -0.0361328125, 0.037750244140625, 0.026641845703125, -0.00807952880859375, -0.044677734375, 0.042724609375, -0.04290771484375, 0.037139892578125, -0.01715087890625, -0.03790283203125, 0.0021343231201171875, 0.016845703125, 0.01552581787109375, -0.029205322265625, -0.034027099609375, 0.0384521484375, -0.014617919921875, -0.0018529891967773438, 0.0204620361328125, -0.0006837844848632812, -0.02783203125, -0.005977630615234375, -0.0004143714904785156, 0.051055908203125, -0.0301055908203125, -0.01788330078125, 0.04638671875, -0.049591064453125, -0.0174560546875, -0.0234375, 0.0250701904296875, -0.09014892578125, -0.0255584716796875, -0.0732421875, 0.02227783203125, -0.0037174224853515625, -0.053680419921875, -0.05859375, 0.048492431640625, -0.0165863037109375, -0.016876220703125, -0.066162109375, -0.00728607177734375, 0.0001888275146484375, 0.042999267578125, -0.0226898193359375, -0.0086517333984375, -0.050872802734375, 0.042083740234375, 0.0161590576171875, 0.02874755859375, -0.00710296630859375, -0.01445770263671875, -0.02105712890625, 0.031402587890625, 0.042266845703125, 0.0275726318359375, -0.061492919921875, -0.00634002685546875, 0.027801513671875, 0.032562255859375, -0.0058135986328125, 0.0233154296875, 0.07928466796875, 0.01340484619140625, -0.0234375, -0.054443359375, -0.018890380859375, 0.0027484893798828125, 0.11724853515625, 0.0513916015625, 0.0279541015625, -0.0550537109375, -0.007366180419921875, -0.01424407958984375, -0.044708251953125, -0.041900634765625, 0.0216522216796875, -0.0689697265625, -0.0137176513671875, -0.013275146484375, 0.0111846923828125, -0.04107666015625, -0.0191192626953125, -0.00341033935546875, -0.017303466796875, 0.01122283935546875, 0.00783538818359375, 0.0506591796875, -0.016937255859375, 0.0214385986328125, -0.010986328125, -0.01227569580078125, 0.0241851806640625, 0.00667572021484375, 0.00238037109375, 0.0677490234375, 0.018890380859375, 0.01413726806640625, -0.0168914794921875, -0.01027679443359375, 0.0347900390625, 0.044281005859375, 0.00881195068359375, -0.036407470703125, 0.003955841064453125, 0.0031604766845703125, -0.01312255859375, -0.00846099853515625, 0.0167388916015625, -0.0017156600952148438, -0.0302886962890625, 0.07879638671875, 0.0260772705078125, -0.02215576171875, -0.0218505859375, 0.05810546875, -0.01483917236328125, -0.0301513671875, -0.0183258056640625, -0.0263824462890625, 0.007244110107421875, -0.012939453125, -0.0195770263671875, -0.004680633544921875, -0.01611328125, -0.06689453125, -0.035491943359375, 0.0028743743896484375 ]
984d1de92c73be6f8c1bc2448476f0888893b08f
Wordpress Stackexchange Q: How to delete a transient on post/page publish? I have a transient set for a custom query. It expires in 30 days. But I also need it to expire once a new post/page is published. So that the new published post/page is available in that custom query. How to delete a transient on post/page publish? How I set the transient: // Get any existing copy of our transient data if ( false === ( $query = get_transient('d_results') ) ) { // It wasn't there, so regenerate the data and save the transient $randargs = array("post_type"=>"", "orderby"=>"", "order"=>"", "posts_per_page"=>-1); $query = new WP_Query($randargs); set_transient( 'd_results', $query, DAY_IN_SECONDS * 30); } A: I am considering it for publication of a new post. Add the below code in your active theme's functions.php file. function wpse_delete_query_transient( $post ) { // Deletes the transient when a new post is published delete_transient( 'd_results' ); } add_action( 'new_to_publish', 'wpse_delete_query_transient' ); This will delete the transient every time a new post is published. if you want to delete the transients on differrent post status transitions, you may like to look into the codex
Q: How to delete a transient on post/page publish? I have a transient set for a custom query. It expires in 30 days. But I also need it to expire once a new post/page is published. So that the new published post/page is available in that custom query. How to delete a transient on post/page publish? How I set the transient: // Get any existing copy of our transient data if ( false === ( $query = get_transient('d_results') ) ) { // It wasn't there, so regenerate the data and save the transient $randargs = array("post_type"=>"", "orderby"=>"", "order"=>"", "posts_per_page"=>-1); $query = new WP_Query($randargs); set_transient( 'd_results', $query, DAY_IN_SECONDS * 30); } A: I am considering it for publication of a new post. Add the below code in your active theme's functions.php file. function wpse_delete_query_transient( $post ) { // Deletes the transient when a new post is published delete_transient( 'd_results' ); } add_action( 'new_to_publish', 'wpse_delete_query_transient' ); This will delete the transient every time a new post is published. if you want to delete the transients on differrent post status transitions, you may like to look into the codex
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:445190", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/144411" }
[ 0.03656005859375, 0.027923583984375, -0.04364013671875, -0.01413726806640625, 0.05157470703125, -0.06243896484375, 0.07049560546875, -0.0008721351623535156, 0.0262603759765625, -0.0005049705505371094, -0.016326904296875, -0.046142578125, 0.0145721435546875, -0.0457763671875, -0.0006084442138671875, -0.02166748046875, 0.042938232421875, -0.026031494140625, 0.05169677734375, 0.0016498565673828125, -0.004291534423828125, 0.0254364013671875, 0.07415771484375, 0.0003612041473388672, -0.0047454833984375, 0.0188751220703125, 0.11407470703125, -0.01959228515625, -0.0000069141387939453125, -0.049102783203125, 0.0160369873046875, 0.0044403076171875, 0.0276031494140625, 0.03424072265625, -0.0296783447265625, 0.07110595703125, 0.0113677978515625, 0.0146636962890625, 0.006877899169921875, 0.020050048828125, 0.007747650146484375, -0.0005688667297363281, -0.037353515625, -0.0011806488037109375, -0.029449462890625, -0.0235443115234375, -0.01021575927734375, -0.0279998779296875, 0.018035888671875, 0.044342041015625, 0.01165008544921875, -0.029632568359375, 0.0102386474609375, -0.0208740234375, -0.0268402099609375, -0.039306640625, -0.0248870849609375, -0.0276031494140625, 0.026031494140625, 0.036956787109375, 0.01617431640625, -0.011749267578125, 0.0212554931640625, -0.0294952392578125, -0.0048370361328125, -0.0036029815673828125, 0.02667236328125, 0.01198577880859375, 0.00927734375, -0.0157318115234375, -0.00597381591796875, -0.0002732276916503906, -0.03216552734375, -0.004730224609375, -0.0236358642578125, 0.01190948486328125, 0.021636962890625, -0.009246826171875, -0.0181427001953125, 0.03424072265625, 0.037384033203125, -0.01551055908203125, -0.046295166015625, 0.01898193359375, 0.0157470703125, 0.03912353515625, 0.00568389892578125, -0.0228424072265625, -0.04656982421875, -0.0220184326171875, -0.031646728515625, -0.053863525390625, -0.048858642578125, -0.001861572265625, 0.0035152435302734375, -0.032958984375, 0.0010290145874023438, 0.06341552734375, -0.00719451904296875, 0.0131072998046875, -0.02813720703125, -0.029083251953125, -0.0027675628662109375, -0.04376220703125, 0.0245361328125, 0.0225372314453125, -0.0151824951171875, -0.048797607421875, 0.04473876953125, 0.01361846923828125, 0.0021686553955078125, 0.0243988037109375, 0.00965118408203125, 0.00424957275390625, -0.01226806640625, -0.01306915283203125, -0.0399169921875, 0.01343536376953125, -0.01532745361328125, -0.0021820068359375, 0.01139068603515625, 0.0107269287109375, -0.008056640625, -0.04754638671875, 0.013397216796875, -0.0182952880859375, -0.0297698974609375, 0.004619598388671875, -0.01557159423828125, -0.0186004638671875, -0.037506103515625, 0.03094482421875, 0.0791015625, 0.0287017822265625, 0.0200653076171875, -0.01116180419921875, 0.01861572265625, -0.01485443115234375, 0.03436279296875, -0.005054473876953125, 0.005718231201171875, -0.03363037109375, 0.0148773193359375, 0.035552978515625, 0.007659912109375, 0.060272216796875, 0.027435302734375, -0.0299835205078125, 0.00043892860412597656, -0.0321044921875, -0.045318603515625, -0.01300811767578125, 0.0443115234375, -0.0149383544921875, -0.032623291015625, -0.039703369140625, 0.037750244140625, -0.04510498046875, -0.0263519287109375, -0.07037353515625, 0.0197296142578125, 0.0010061264038085938, -0.0038661956787109375, 0.01520538330078125, 0.0217742919921875, -0.01763916015625, -0.001239776611328125, 0.00997161865234375, 0.01708984375, 0.06939697265625, -0.01214599609375, -0.057830810546875, 0.0005297660827636719, -0.0037746429443359375, -0.0338134765625, 0.0251617431640625, -0.0215911865234375, 0.01251220703125, 0.06396484375, -0.051361083984375, -0.04443359375, -0.04296875, 0.0804443359375, -0.0204620361328125, -0.04931640625, 0.0179443359375, 0.0205841064453125, 0.0438232421875, -0.004390716552734375, 0.0244903564453125, 0.031158447265625, 0.0247039794921875, -0.0140228271484375, 0.039459228515625, 0.0450439453125, -0.035125732421875, -0.0615234375, -0.040313720703125, 0.01345062255859375, -0.0297088623046875, -0.000042319297790527344, 0.03216552734375, -0.00467681884765625, 0.031890869140625, -0.03411865234375, 0.04962158203125, -0.021240234375, 0.03875732421875, -0.027313232421875, -0.0063018798828125, 0.031463623046875, -0.0219573974609375, -0.01305389404296875, -0.00048732757568359375, -0.033599853515625, -0.01192474365234375, -0.00559234619140625, -0.0178070068359375, 0.01137542724609375, -0.0411376953125, 0.013885498046875, -0.010650634765625, -0.0097503662109375, -0.0140838623046875, 0.08721923828125, -0.034271240234375, 0.01392364501953125, -0.04534912109375, 0.09051513671875, -0.036041259765625, 0.0003132820129394531, 0.03704833984375, 0.007175445556640625, -0.006885528564453125, -0.02093505859375, 0.018829345703125, -0.0020847320556640625, -0.063232421875, -0.0157623291015625, 0.04925537109375, 0.03192138671875, 0.027587890625, -0.01224517822265625, -0.0023975372314453125, 0.04473876953125, -0.04779052734375, -0.01102447509765625, 0.0012264251708984375, 0.026275634765625, 0.04241943359375, -0.037750244140625, -0.0204315185546875, 0.01837158203125, -0.044281005859375, 0.0390625, 0.02227783203125, 0.0254974365234375, 0.00738525390625, 0.0171661376953125, -0.01226806640625, 0.007755279541015625, 0.0020694732666015625, -0.0269927978515625, 0.0265655517578125, 0.0567626953125, -0.006458282470703125, 0.040374755859375, 0.025787353515625, 0.01031494140625, 0.0013666152954101562, -0.00955963134765625, -0.07537841796875, 0.0002999305725097656, -0.021759033203125, -0.016326904296875, -0.031494140625, -0.0243682861328125, 0.0239105224609375, 0.004070281982421875, -0.0280303955078125, -0.01395416259765625, 0.0731201171875, 0.047698974609375, -0.026611328125, -0.037994384765625, 0.00522613525390625, 0.00611114501953125, -0.06097412109375, 0.021881103515625, -0.0269927978515625, -0.0005373954772949219, 0.0210723876953125, -0.033660888671875, 0.048797607421875, 0.0298919677734375, -0.03277587890625, -0.031768798828125, -0.045562744140625, 0.042327880859375, -0.041778564453125, 0.042724609375, 0.0830078125, -0.0034084320068359375, 0.036834716796875, -0.00975799560546875, 0.037933349609375, -0.001720428466796875, -0.0120086669921875, -0.020172119140625, 0.00013446807861328125, -0.053680419921875, -0.01316070556640625, 0.0229644775390625, 0.0279541015625, 0.002086639404296875, -0.0278778076171875, -0.0020656585693359375, 0.01947021484375, -0.0853271484375, -0.06878662109375, 0.0233917236328125, -0.024383544921875, -0.0159454345703125, 0.009002685546875, -0.01074981689453125, -0.00640869140625, 0.0101470947265625, -0.0084686279296875, -0.0251617431640625, 0.0110321044921875, 0.001659393310546875, 0.0015201568603515625, -0.0036869049072265625, -0.001873016357421875, -0.001190185546875, -0.0023517608642578125, -0.0018587112426757812, 0.084716796875, 0.01285552978515625, -0.07293701171875, -0.020751953125, 0.0009675025939941406, -0.040069580078125, -0.0021228790283203125, -0.00148773193359375, 0.039459228515625, 0.0194854736328125, -0.003662109375, -0.0164947509765625, 0.058441162109375, -0.0293731689453125, -0.005504608154296875, -0.0258941650390625, 0.012786865234375, 0.0626220703125, -0.07220458984375, -0.023284912109375, 0.043212890625, 0.032012939453125, -0.0164642333984375, -0.0219573974609375, -0.0098876953125, -0.050506591796875, -0.02423095703125, 0.01445770263671875, 0.0011243820190429688, -0.0039043426513671875, -0.0053253173828125, -0.03948974609375, -0.01214599609375, 0.046234130859375, -0.03009033203125, -0.0036029815673828125, -0.0238037109375, -0.04998779296875, -0.0128631591796875, 0.0246734619140625, -0.0255889892578125, 0.038482666015625, 0.0265960693359375, -0.0132904052734375, 0.01380157470703125, -0.02777099609375, 0.0174102783203125, -0.04638671875, 0.03851318359375, -0.020721435546875, -0.0175323486328125, -0.006504058837890625, -0.020111083984375, 0.0174407958984375, 0.07080078125, -0.02099609375, -0.0228424072265625, -0.04620361328125, -0.00732421875, -0.0269775390625, -0.014068603515625, 0.01739501953125, 0.0089263916015625, -0.0457763671875, 0.0156707763671875, -0.0033931732177734375, -0.0040283203125, -0.0445556640625, 0.0248260498046875, -0.036376953125, -0.02825927734375, 0.031829833984375, -0.03857421875, 0.0239715576171875, -0.00815582275390625, -0.01134490966796875, -0.0184173583984375, -0.022430419921875, -0.0413818359375, -0.031494140625, -0.0079803466796875, -0.0274810791015625, 0.0207672119140625, 0.0479736328125, -0.052215576171875, 0.0138397216796875, 0.0208892822265625, 0.0310211181640625, 0.01727294921875, -0.0016107559204101562, -0.03643798828125, 0.0264739990234375, 0.03045654296875, 0.0161895751953125, 0.00567626953125, 0.019195556640625, -0.0105438232421875, -0.04217529296875, -0.01084136962890625, -0.044830322265625, 0.027984619140625, -0.01538848876953125, -0.032958984375, -0.041717529296875, -0.01568603515625, 0.01125335693359375, 0.040557861328125, -0.035186767578125, 0.028289794921875, -0.032257080078125, -0.018768310546875, 0.057952880859375, 0.018890380859375, -0.002254486083984375, -0.00623321533203125, 0.058502197265625, 0.00791168212890625, -0.027374267578125, -0.0015850067138671875, 0.0055694580078125, 0.009857177734375, 0.026031494140625, 0.004566192626953125, -0.01247406005859375, -0.00982666015625, 0.0039825439453125, -0.0077362060546875, -0.043731689453125, -0.046630859375, 0.0732421875, -0.01239013671875, -0.0252532958984375, 0.02069091796875, -0.0716552734375, 0.080810546875, 0.00701141357421875, -0.0177459716796875, -0.004306793212890625, 0.0025157928466796875, 0.03759765625, -0.0193939208984375, 0.021209716796875, -0.0270233154296875, -0.066162109375, 0.021209716796875, -0.025146484375, -0.0022869110107421875, 0.01119232177734375, -0.0013093948364257812, 0.02288818359375, 0.01120758056640625, -0.030517578125, -0.01068115234375, 0.020172119140625, 0.02728271484375, 0.0167999267578125, 0.001712799072265625, -0.01568603515625, -0.041839599609375, 0.00484466552734375, -0.023590087890625, -0.04962158203125, -0.08685302734375, 0.005863189697265625, -0.00017845630645751953, 0.045166015625, 0.0594482421875, -0.01129150390625, -0.0016651153564453125, 0.055694580078125, -0.005214691162109375, -0.01043701171875, 0.0033130645751953125, 0.033294677734375, -0.034698486328125, -0.00409698486328125, 0.0091552734375, -0.01561737060546875, 0.0080718994140625, 0.0399169921875, -0.0297698974609375, 0.035675048828125, -0.0058441162109375, 0.0621337890625, 0.031829833984375, -0.0032825469970703125, 0.006015777587890625, 0.03765869140625, 0.0166473388671875, -0.050567626953125, -0.02783203125, -0.04815673828125, 0.0125579833984375, 0.038330078125, 0.022979736328125, -0.0204010009765625, -0.04547119140625, 0.025360107421875, 0.00458526611328125, -0.0187530517578125, -0.003082275390625, 0.007965087890625, -0.001312255859375, -0.01824951171875, -0.0106353759765625, 0.005908966064453125, 0.02593994140625, -0.007259368896484375, 0.01044464111328125, -0.036468505859375, 0.053497314453125, -0.006084442138671875, 0.048431396484375, -0.028717041015625, -0.04058837890625, -0.0330810546875, -0.056915283203125, -0.005886077880859375, -0.0238800048828125, 0.0411376953125, -0.02288818359375, -0.0256195068359375, 0.001312255859375, -0.023040771484375, 0.0250701904296875, -0.04669189453125, 0.01483917236328125, -0.024932861328125, -0.0050811767578125, 0.05780029296875, 0.038055419921875, 0.0007634162902832031, -0.0279083251953125, -0.032623291015625, -0.038818359375, 0.016387939453125, -0.01195526123046875, -0.007076263427734375, -0.00322723388671875, 0.043548583984375, 0.0199127197265625, -0.00128173828125, -0.056365966796875, -0.03717041015625, 0.0048065185546875, 0.03961181640625, 0.05279541015625, -0.002826690673828125, 0.03778076171875, 0.0024356842041015625, 0.041107177734375, 0.025146484375, 0.0222625732421875, 0.000484466552734375, -0.04168701171875, 0.0285491943359375, -0.0036220550537109375, -0.042633056640625, -0.0301361083984375, -0.04449462890625, -0.01715087890625, 0.05389404296875, -0.0228271484375, 0.047821044921875, -0.0259857177734375, -0.0026702880859375, -0.01678466796875, -0.0041961669921875, -0.056976318359375, 0.035919189453125, -0.0002474784851074219, -0.03326416015625, 0.0102691650390625, -0.0035686492919921875, 0.02490234375, -0.0101776123046875, -0.040130615234375, 0.01114654541015625, 0.03857421875, -0.01727294921875, 0.0162200927734375, 0.033294677734375, 0.0019474029541015625, 0.032470703125, -0.006244659423828125, 0.0218353271484375, 0.0175628662109375, -0.005062103271484375, 0.009552001953125, -0.0194244384765625, 0.038238525390625, -0.0009593963623046875, -0.0248870849609375, 0.0206451416015625, -0.0389404296875, -0.04144287109375, 0.0137939453125, 0.006580352783203125, -0.018310546875, -0.0063934326171875, -0.00812530517578125, 0.00103759765625, 0.01126861572265625, 0.0157012939453125, 0.0126953125, 0.0011463165283203125, -0.0072479248046875, -0.004215240478515625, -0.01445770263671875, 0.0003771781921386719, -0.0029392242431640625, 0.0003616809844970703, -0.00669097900390625, 0.0024700164794921875, -0.0074310302734375, -0.031890869140625, 0.004425048828125, 0.044219970703125, -0.016082763671875, -0.0269012451171875, -0.0032634735107421875, 0.0249481201171875, -0.012969970703125, -0.06787109375, 0.0179595947265625, -0.0192718505859375, -0.01258087158203125, 0.05902099609375, 0.001499176025390625, 0.0214996337890625, 0.017669677734375, 0.01366424560546875, 0.01294708251953125, -0.0269317626953125, 0.01352691650390625, -0.031646728515625, -0.04534912109375, 0.0191650390625, 0.04443359375, -0.06915283203125, 0.0430908203125, -0.00638580322265625, -0.038238525390625, -0.01094818115234375, -0.04339599609375, 0.064208984375, -0.039794921875, 0.0006251335144042969, 0.0283660888671875, 0.00832366943359375, -0.01410675048828125, -0.035675048828125, 0.0007023811340332031, -0.021453857421875, 0.003875732421875, -0.042236328125, -0.020416259765625, 0.006664276123046875, -0.058258056640625, -0.0621337890625, 0.08331298828125, -0.0080108642578125, 0.041351318359375, 0.048797607421875, 0.00296783447265625, -0.056549072265625, -0.033111572265625, -0.043212890625, 0.0787353515625, -0.0136260986328125, 0.059112548828125, -0.049713134765625, 0.0002218484878540039, 0.0161285400390625, 0.017181396484375, 0.1116943359375, 0.0226593017578125, -0.0272674560546875, -0.012115478515625, 0.06005859375, -0.0170135498046875, -0.044403076171875, 0.07049560546875, 0.0021724700927734375, 0.03076171875, 0.0296173095703125, -0.0643310546875, 0.032470703125, -0.031494140625, 0.0009198188781738281, 0.0223236083984375, 0.0068359375, 0.0146942138671875, -0.0107879638671875, 0.001911163330078125, -0.024078369140625, -0.0002541542053222656, 0.01213836669921875, 0.0291900634765625, 0.030242919921875, -0.018280029296875, -0.00811004638671875, -0.0016651153564453125, -0.057037353515625, 0.02105712890625, 0.01194000244140625, 0.00835418701171875, -0.00748443603515625, 0.04449462890625, 0.017303466796875, 0.0034008026123046875, 0.00717926025390625, 0.01275634765625, -0.010498046875, 0.0092010498046875, 0.056884765625, 0.033935546875, 0.033721923828125, -0.01537322998046875, -0.004192352294921875, 0.006175994873046875, 0.061370849609375, -0.028839111328125, -0.047515869140625, 0.022491455078125, -0.0009908676147460938, -0.00904083251953125, 0.0140533447265625, -0.004055023193359375, -0.01250457763671875, 0.0137786865234375, 0.0216217041015625, 0.0259552001953125, -0.00159454345703125, -0.000012278556823730469, 0.003894805908203125, 0.04345703125, -0.04949951171875, 0.03497314453125, -0.014190673828125, -0.017791748046875, 0.02362060546875, 0.054229736328125, 0.015838623046875, 0.044586181640625, -0.00852203369140625, -0.029144287109375, -0.014617919921875, 0.020965576171875, 0.009613037109375, -0.00042247772216796875, -0.03436279296875, -0.045623779296875, 0.0276031494140625, 0.0338134765625, -0.01551055908203125, -0.01520538330078125, 0.00710296630859375, 0.017486572265625, -0.0408935546875, -0.029998779296875, -0.000518798828125, -0.0287933349609375, 0.018218994140625, -0.02301025390625, -0.029022216796875, -0.0204010009765625, -0.03228759765625, -0.012176513671875, 0.01039886474609375, -0.01020050048828125, -0.04022216796875, 0.00978851318359375, -0.0159149169921875, -0.0657958984375, 0.07330322265625, -0.01004791259765625, 0.098876953125, -0.0138702392578125, -0.005710601806640625, 0.001621246337890625, -0.05596923828125, 0.03546142578125, -0.007171630859375, 0.0118865966796875, 0.036895751953125, 0.0225067138671875, -0.0004837512969970703, -0.0181121826171875, 0.01342010498046875, 0.004058837890625, -0.0055389404296875, 0.0028667449951171875, 0.0089569091796875, -0.019073486328125, -0.042083740234375, -0.025360107421875, 0.01178741455078125, 0.031219482421875, -0.046783447265625, 0.07342529296875, -0.0270843505859375, -0.0005211830139160156, 0.0020122528076171875, 0.03533935546875, -0.004138946533203125, -0.0026149749755859375, 0.03924560546875, 0.0102386474609375, 0.00711822509765625, -0.0179443359375, -0.00447845458984375, -0.0125274658203125, 0.045166015625, -0.018096923828125, -0.0028400421142578125, -0.0295562744140625, 0.033843994140625, -0.01047515869140625, -0.0245819091796875, -0.0185394287109375, 0.03057861328125, 0.039154052734375, -0.007022857666015625, 0.031005859375, -0.00759124755859375, -0.0230255126953125, 0.038909912109375, 0.04833984375, -0.0191497802734375, 0.055816650390625, -0.039825439453125, 0.09039306640625, 0.03369140625, 0.035675048828125, -0.01508331298828125, -0.0193328857421875, -0.025634765625, -0.0162811279296875, 0.0018949508666992188, 0.0045928955078125, 0.004791259765625, 0.0263824462890625, -0.0225830078125, -0.05364990234375, -0.00414276123046875, -0.02972412109375, -0.0269317626953125, -0.03466796875, 0.014892578125, 0.006519317626953125, 0.02581787109375, -0.0291900634765625, 0.00960540771484375, -0.023590087890625, -0.00795745849609375, 0.0004718303680419922, -0.06341552734375, -0.041412353515625, 0.01531982421875, 0.03729248046875, 0.0241851806640625, -0.046905517578125, 0.0255889892578125, -0.01456451416015625, 0.003192901611328125, 0.042144775390625, -0.033599853515625, -0.0034942626953125, 0.0188140869140625, -0.00789642333984375, -0.026092529296875, -0.04766845703125, 0.0145111083984375, -0.032379150390625, -0.05450439453125, -0.01739501953125, 0.03692626953125, -0.0281829833984375, -0.041839599609375, -0.04534912109375, -0.005908966064453125, -0.0265045166015625, -0.0205078125, 0.0171966552734375, 0.003528594970703125, -0.022552490234375, -0.052520751953125, -0.0014095306396484375, -0.03173828125, 0.003978729248046875, -0.007648468017578125, 0.01506805419921875, 0.0017566680908203125, -0.029266357421875, -0.0472412109375, 0.04913330078125, -0.004253387451171875, -0.022247314453125, -0.00222015380859375, 0.0010662078857421875, -0.0049896240234375, 0.0273895263671875, 0.0169677734375, -0.0328369140625, -0.0302734375, -0.014984130859375, 0.0006852149963378906, 0.0992431640625, -0.03106689453125, 0.026092529296875, -0.004558563232421875, 0.01458740234375, -0.017333984375, 0.015350341796875, -0.06854248046875, 0.033966064453125, 0.00377655029296875, 0.036468505859375, 0.0155029296875, -0.0030651092529296875, 0.03997802734375, -0.030670166015625, -0.03289794921875, 0.03204345703125, -0.0005574226379394531, 0.04638671875, 0.10064697265625, 0.058624267578125, 0.0254669189453125, -0.06256103515625, 0.01309967041015625, -0.00010758638381958008, -0.037628173828125, -0.017578125, 0.020782470703125, -0.05914306640625, -0.0249786376953125, -0.0003552436828613281, 0.0290679931640625, -0.0189666748046875, -0.052520751953125, -0.017059326171875, -0.053985595703125, -0.07574462890625, 0.01526641845703125, -0.019073486328125, 0.01247406005859375, -0.0745849609375, 0.0246124267578125, -0.00106048583984375, -0.03515625, 0.01137542724609375, -0.047088623046875, 0.0282135009765625, 0.009063720703125, 0.029052734375, -0.007663726806640625, -0.0012159347534179688, 0.03369140625, -0.006317138671875, -0.0017452239990234375, 0.006374359130859375, 0.0036869049072265625, 0.004642486572265625, -0.005649566650390625, -0.018768310546875, 0.006938934326171875, 0.004856109619140625, -0.027618408203125, 0.0202484130859375, 0.00901031494140625, 0.08087158203125, 0.00977325439453125, 0.033538818359375, -0.0168609619140625, -0.014984130859375, 0.0165252685546875, -0.042724609375, 0.00395965576171875, 0.005840301513671875, -0.026397705078125, -0.003459930419921875, -0.018341064453125, -0.051483154296875, -0.00980377197265625, -0.00406646728515625 ]
c60694e03229b64162a3a3a1c8b34762b844188b
Wordpress Stackexchange Q: What hook is executed just after wp_query has been executed? What hook is executed just after wp_query has been executed? before template is rendered? I want to change the page title but it depends on what has been queried. I have put it in template_redirect but not sure if it is the right hook A: Yep you're right template_redirect is fired right after wp which performs the query. A very useful plugin you might want to look at is: https://wordpress.org/plugins/query-monitor/ This can help you to see what's loaded on a particular page during development, in addition to what hook is used
Q: What hook is executed just after wp_query has been executed? What hook is executed just after wp_query has been executed? before template is rendered? I want to change the page title but it depends on what has been queried. I have put it in template_redirect but not sure if it is the right hook A: Yep you're right template_redirect is fired right after wp which performs the query. A very useful plugin you might want to look at is: https://wordpress.org/plugins/query-monitor/ This can help you to see what's loaded on a particular page during development, in addition to what hook is used A: There are a few actions that can technically be used (including template_redirect), but a more appropriate action seems to be the_post; It passes the post object by reference making alterations easy: function my_action( $post_obj ) { $post_obj->post_title = "New Title" } add_action( 'the_post', 'my_action' ); If you only need to change the title, you could also take a look at the the_title filter.
wordpress
{ "language": "en", "length": 166, "provenance": "stackexchange_00019.jsonl.gz:445194", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/144425" }
[ 0.0023193359375, 0.01003265380859375, -0.006923675537109375, 0.010528564453125, 0.00664520263671875, -0.025238037109375, 0.0288543701171875, -0.0283203125, -0.0010509490966796875, 0.0249786376953125, -0.01262664794921875, 0.02734375, 0.020599365234375, -0.0217742919921875, 0.024322509765625, -0.0044403076171875, 0.035003662109375, -0.06036376953125, -0.01210784912109375, -0.01511383056640625, 0.01519012451171875, 0.01849365234375, 0.01389312744140625, 0.0220184326171875, 0.016815185546875, -0.06353759765625, 0.07550048828125, -0.02667236328125, 0.0269622802734375, -0.0239715576171875, 0.0172119140625, -0.0012865066528320312, 0.035369873046875, -0.0007500648498535156, -0.00205230712890625, 0.034515380859375, 0.0179595947265625, -0.0005359649658203125, -0.00934600830078125, 0.041534423828125, 0.029144287109375, -0.018218994140625, -0.015777587890625, 0.0003478527069091797, -0.005023956298828125, -0.038482666015625, 0.039398193359375, -0.0272216796875, 0.0218963623046875, 0.00001329183578491211, 0.0123291015625, 0.0182037353515625, 0.0260772705078125, 0.033843994140625, -0.01268768310546875, 0.017669677734375, -0.025634765625, 0.0205230712890625, 0.00579833984375, 0.0268707275390625, 0.0100555419921875, 0.01373291015625, -0.011138916015625, -0.019622802734375, 0.0090484619140625, 0.0037994384765625, 0.027740478515625, 0.0250701904296875, -0.03955078125, -0.017181396484375, 0.007755279541015625, -0.0214691162109375, -0.04376220703125, 0.0139617919921875, -0.03289794921875, -0.00444793701171875, 0.046875, -0.026275634765625, -0.007537841796875, 0.0408935546875, 0.04107666015625, -0.0193023681640625, 0.00608062744140625, 0.0030651092529296875, 0.0288543701171875, 0.027679443359375, -0.0066375732421875, -0.016143798828125, -0.026214599609375, -0.0287322998046875, -0.037078857421875, 0.03717041015625, -0.01058197021484375, -0.054840087890625, -0.04949951171875, -0.02264404296875, -0.0022144317626953125, 0.0443115234375, -0.0240936279296875, 0.005481719970703125, -0.0445556640625, 0.0031890869140625, -0.037841796875, -0.0199737548828125, -0.0008783340454101562, 0.0252685546875, 0.018646240234375, -0.004787445068359375, 0.00479888916015625, 0.0222930908203125, -0.00791168212890625, -0.0004901885986328125, -0.044677734375, 0.0048065185546875, -0.05224609375, 0.01343536376953125, -0.053619384765625, -0.033599853515625, -0.0114898681640625, 0.006916046142578125, -0.0103607177734375, -0.0142059326171875, 0.06689453125, -0.0299072265625, 0.01038360595703125, -0.0023784637451171875, -0.030120849609375, -0.046844482421875, -0.033599853515625, 0.01268768310546875, 0.0159454345703125, 0.0077667236328125, 0.01117706298828125, 0.06036376953125, -0.003292083740234375, -0.016815185546875, 0.034820556640625, 0.012176513671875, 0.01355743408203125, -0.01491546630859375, 0.0040740966796875, -0.01971435546875, -0.005084991455078125, 0.00347137451171875, 0.04925537109375, 0.01551055908203125, 0.012298583984375, 0.0198516845703125, 0.0191802978515625, -0.02337646484375, 0.037628173828125, 0.0023345947265625, 0.0116729736328125, 0.0095977783203125, 0.0116729736328125, -0.022003173828125, -0.001201629638671875, -0.01445770263671875, 0.018463134765625, -0.004009246826171875, -0.0112152099609375, -0.006504058837890625, 0.006389617919921875, -0.0224151611328125, -0.039825439453125, 0.0030765533447265625, -0.0253143310546875, -0.001903533935546875, 0.01361846923828125, 0.01419830322265625, 0.046112060546875, -0.009307861328125, 0.000934600830078125, -0.021697998046875, -0.016357421875, -0.01419830322265625, -0.01097869873046875, -0.01271820068359375, 0.03741455078125, -0.03125, -0.03277587890625, -0.0225677490234375, 0.031707763671875, -0.0186309814453125, -0.0540771484375, 0.06011962890625, 0.02252197265625, 0.076416015625, -0.0271453857421875, 0.021240234375, 0.02545166015625, 0.0638427734375, -0.06671142578125, 0.0809326171875, -0.0020885467529296875, -0.0224151611328125, -0.00885772705078125, 0.005523681640625, -0.0022869110107421875, -0.047882080078125, 0.0136260986328125, 0.04559326171875, -0.0347900390625, 0.031219482421875, -0.08843994140625, 0.014434814453125, -0.033905029296875, 0.03302001953125, 0.035980224609375, 0.0146942138671875, -0.003814697265625, -0.01427459716796875, 0.00412750244140625, -0.0148162841796875, -0.055999755859375, -0.007366180419921875, -0.034515380859375, 0.002410888671875, 0.01007843017578125, -0.0005106925964355469, 0.031982421875, -0.0411376953125, 0.01806640625, -0.0019664764404296875, 0.05718994140625, 0.0003955364227294922, -0.0189208984375, -0.022125244140625, 0.03497314453125, 0.01300048828125, -0.048980712890625, 0.0249481201171875, -0.00144195556640625, 0.047027587890625, -0.0269927978515625, -0.00045871734619140625, -0.03143310546875, -0.029449462890625, 0.003688812255859375, 0.040069580078125, 0.01007080078125, 0.0384521484375, -0.027191162109375, -0.00897979736328125, 0.014251708984375, -0.0384521484375, 0.0019474029541015625, 0.00759124755859375, 0.049713134765625, 0.08160400390625, -0.005950927734375, -0.01500701904296875, -0.0008602142333984375, -0.0231170654296875, 0.0188140869140625, 0.00872039794921875, -0.0188751220703125, -0.0223236083984375, -0.0207672119140625, -0.006954193115234375, 0.009307861328125, -0.0294036865234375, -0.02435302734375, -0.006618499755859375, 0.0122222900390625, -0.036895751953125, -0.020660400390625, -0.026580810546875, -0.022308349609375, -0.01006317138671875, 0.038787841796875, -0.02862548828125, 0.00400543212890625, 0.027679443359375, -0.0021152496337890625, 0.0140533447265625, 0.0014162063598632812, -0.017333984375, -0.0237274169921875, 0.0014514923095703125, -0.0286407470703125, 0.0225830078125, -0.04986572265625, -0.0287933349609375, -0.032745361328125, -0.0264739990234375, -0.001514434814453125, -0.01113128662109375, 0.0259552001953125, 0.016387939453125, 0.0204620361328125, 0.0228729248046875, -0.038787841796875, 0.08184814453125, -0.039794921875, -0.01715087890625, 0.0203704833984375, -0.0196533203125, 0.015380859375, 0.0002161264419555664, 0.0579833984375, 0.07366943359375, 0.001434326171875, 0.0164794921875, 0.007144927978515625, -0.0148468017578125, 0.0467529296875, -0.0311279296875, -0.031463623046875, 0.0076751708984375, -0.05279541015625, 0.017974853515625, 0.026031494140625, 0.07135009765625, -0.02447509765625, -0.06500244140625, 0.006534576416015625, 0.01483154296875, -0.054351806640625, -0.07177734375, -0.031829833984375, -0.01273345947265625, 0.019622802734375, -0.0191650390625, 0.0229339599609375, -0.0002332925796508789, -0.0276031494140625, 0.00862884521484375, 0.0027446746826171875, -0.043121337890625, -0.07373046875, -0.063232421875, -0.054534912109375, 0.042938232421875, -0.0022602081298828125, 0.0032501220703125, 0.005771636962890625, 0.0594482421875, -0.0045013427734375, -0.054534912109375, -0.0003097057342529297, -0.0223846435546875, -0.038177490234375, 0.000016033649444580078, -0.01387786865234375, -0.032440185546875, 0.0285186767578125, 0.0027027130126953125, -0.01318359375, 0.0014514923095703125, 0.02728271484375, -0.025482177734375, 0.008056640625, -0.0211029052734375, 0.00806427001953125, 0.00794219970703125, -0.016265869140625, -0.018951416015625, 0.007598876953125, -0.04327392578125, -0.025604248046875, -0.034271240234375, -0.072265625, 0.01172637939453125, 0.0672607421875, 0.006633758544921875, -0.01264190673828125, -0.029998779296875, 0.0440673828125, 0.0294952392578125, -0.00035834312438964844, 0.01239013671875, 0.01416778564453125, 0.00009685754776000977, 0.02313232421875, -0.03814697265625, 0.0199432373046875, 0.01293182373046875, -0.01209259033203125, 0.005462646484375, 0.047882080078125, 0.0062103271484375, 0.02032470703125, -0.05029296875, -0.01059722900390625, 0.020477294921875, -0.01053619384765625, 0.036346435546875, -0.0211944580078125, -0.0308990478515625, -0.003360748291015625, 0.06280517578125, -0.0195159912109375, -0.00614166259765625, 0.00495147705078125, 0.002574920654296875, -0.0077972412109375, -0.004634857177734375, -0.0458984375, -0.01251220703125, -0.1259765625, 0.006610870361328125, -0.01336669921875, -0.01049041748046875, -0.058624267578125, 0.0638427734375, -0.09326171875, -0.0406494140625, 0.025848388671875, -0.023468017578125, -0.01119232177734375, 0.034454345703125, -0.056884765625, 0.034210205078125, -0.030548095703125, -0.0312042236328125, -0.078369140625, -0.0027790069580078125, -0.0134429931640625, 0.05438232421875, 0.02972412109375, -0.038360595703125, -0.03533935546875, 0.01666259765625, -0.00231170654296875, 0.01739501953125, -0.0011491775512695312, 0.006317138671875, 0.0009965896606445312, 0.01238250732421875, -0.01171875, -0.00569915771484375, 0.0064239501953125, 0.00437164306640625, -0.0172271728515625, 0.0188446044921875, -0.0438232421875, -0.005706787109375, -0.0043182373046875, -0.027008056640625, -0.049560546875, -0.030181884765625, 0.024200439453125, 0.009124755859375, 0.0233306884765625, -0.0135955810546875, -0.03082275390625, -0.02862548828125, 0.054351806640625, -0.015350341796875, -0.0028400421142578125, -0.0201416015625, 0.0738525390625, 0.0306549072265625, -0.0242919921875, 0.05035400390625, -0.04595947265625, 0.027618408203125, -0.0015535354614257812, 0.0243377685546875, -0.0017671585083007812, -0.04022216796875, 0.0718994140625, 0.01178741455078125, 0.007801055908203125, -0.01751708984375, 0.0595703125, -0.0001996755599975586, -0.018798828125, 0.0250091552734375, -0.018951416015625, -0.021484375, 0.028228759765625, -0.01068878173828125, -0.013336181640625, 0.0178985595703125, 0.014190673828125, -0.039825439453125, 0.045013427734375, 0.004657745361328125, 0.01425933837890625, -0.0158538818359375, 0.11724853515625, -0.003276824951171875, 0.0275115966796875, -0.0015201568603515625, -0.034637451171875, 0.0061798095703125, 0.004489898681640625, 0.0159759521484375, -0.010772705078125, -0.0179595947265625, 0.0247802734375, -0.0159454345703125, -0.020751953125, 0.0149993896484375, -0.003528594970703125, 0.03436279296875, -0.011566162109375, -0.034027099609375, -0.018341064453125, -0.022674560546875, -0.007022857666015625, 0.0026416778564453125, 0.0157470703125, 0.047393798828125, 0.0211029052734375, 0.007411956787109375, -0.0201873779296875, 0.0064544677734375, -0.000942230224609375, -0.042816162109375, -0.012939453125, 0.002605438232421875, -0.010894775390625, 0.0556640625, 0.0242919921875, 0.02032470703125, 0.0293731689453125, -0.033905029296875, 0.0199127197265625, -0.0089569091796875, -0.00567626953125, 0.0215911865234375, 0.03265380859375, 0.0147247314453125, -0.03045654296875, 0.01165008544921875, -0.04345703125, 0.016510009765625, -0.0008249282836914062, 0.01959228515625, -0.005977630615234375, -0.03399658203125, 0.0301513671875, -0.01177978515625, -0.0170440673828125, 0.0682373046875, 0.040771484375, -0.0290374755859375, -0.043975830078125, -0.0257720947265625, 0.04119873046875, 0.004489898681640625, -0.02044677734375, 0.022491455078125, -0.038818359375, 0.035430908203125, -0.0160064697265625, 0.0157012939453125, -0.005023956298828125, -0.01459503173828125, -0.0173797607421875, -0.0025234222412109375, -0.01018524169921875, 0.0173492431640625, -0.01995849609375, -0.006938934326171875, -0.0142974853515625, 0.021484375, -0.0193634033203125, 0.03143310546875, -0.048126220703125, 0.0014772415161132812, -0.0151824951171875, -0.0025691986083984375, 0.0428466796875, 0.0254058837890625, -0.0780029296875, 0.0010862350463867188, -0.04107666015625, 0.007511138916015625, -0.0177459716796875, -0.043212890625, -0.0163421630859375, -0.0224609375, 0.0202789306640625, 0.0247802734375, 0.0118865966796875, -0.02740478515625, -0.0013599395751953125, -0.003406524658203125, 0.0141143798828125, -0.006134033203125, -0.0154876708984375, 0.0809326171875, -0.0299224853515625, 0.040283203125, -0.0150909423828125, 0.004863739013671875, -0.024078369140625, -0.0015974044799804688, -0.0029430389404296875, -0.00817108154296875, -0.0172271728515625, -0.00862884521484375, 0.0009350776672363281, 0.01543426513671875, 0.058197021484375, -0.0012950897216796875, 0.0311126708984375, 0.016845703125, 0.01529693603515625, 0.00791168212890625, -0.022247314453125, 0.00281524658203125, -0.0233612060546875, 0.1138916015625, -0.01213836669921875, -0.01549530029296875, 0.0006375312805175781, -0.00875091552734375, 0.00928497314453125, -0.003429412841796875, -0.01247406005859375, 0.0205078125, -0.04156494140625, 0.036376953125, 0.06884765625, -0.0237884521484375, 0.03399658203125, 0.0233001708984375, -0.0053863525390625, 0.0350341796875, 0.00555419921875, -0.03741455078125, -0.01910400390625, 0.0203857421875, -0.0193634033203125, -0.00687408447265625, 0.0090179443359375, -0.021881103515625, -0.001781463623046875, 0.05584716796875, 0.0465087890625, -0.0831298828125, 0.0002409219741821289, 0.007274627685546875, 0.018524169921875, 0.0149383544921875, -0.003925323486328125, -0.0063323974609375, -0.0280303955078125, 0.0169677734375, 0.03399658203125, -0.00691986083984375, 0.0233612060546875, 0.031646728515625, -0.0235137939453125, 0.0010652542114257812, 0.0509033203125, 0.02313232421875, -0.036956787109375, 0.031494140625, 0.01192474365234375, 0.0248565673828125, -0.03717041015625, 0.004718780517578125, 0.048675537109375, -0.00572967529296875, -0.0258941650390625, 0.07904052734375, -0.0126800537109375, 0.009552001953125, -0.00836181640625, 0.041412353515625, -0.00556182861328125, 0.0423583984375, 0.001316070556640625, -0.0066986083984375, 0.03802490234375, -0.053802490234375, -0.0950927734375, -0.0242156982421875, 0.0096282958984375, 0.0201263427734375, -0.045654296875, 0.0467529296875, -0.0452880859375, -0.01110076904296875, -0.01407623291015625, 0.0128021240234375, 0.04290771484375, -0.0031452178955078125, -0.021270751953125, 0.0226898193359375, 0.030731201171875, -0.0006122589111328125, 0.00481414794921875, 0.0239715576171875, -0.008575439453125, 0.0233154296875, -0.0012798309326171875, -0.00785064697265625, -0.03778076171875, -0.02337646484375, -0.0821533203125, 0.1226806640625, 0.006679534912109375, 0.03656005859375, 0.0278167724609375, 0.029876708984375, -0.055419921875, -0.00797271728515625, -0.04541015625, 0.0748291015625, 0.017791748046875, 0.0869140625, -0.060577392578125, -0.017333984375, 0.061126708984375, 0.04180908203125, 0.0212249755859375, -0.004398345947265625, 0.00030994415283203125, 0.0022869110107421875, 0.060546875, 0.03033447265625, -0.004711151123046875, 0.0096893310546875, -0.0242462158203125, 0.026519775390625, -0.0007686614990234375, -0.0335693359375, 0.033416748046875, -0.035400390625, -0.058990478515625, -0.0130462646484375, 0.0169830322265625, 0.015777587890625, 0.0045928955078125, 0.0253753662109375, -0.041412353515625, 0.00897216796875, 0.0338134765625, 0.009552001953125, -0.003444671630859375, 0.0216522216796875, 0.023040771484375, -0.060272216796875, 0.0026111602783203125, -0.043609619140625, 0.04766845703125, 0.00933074951171875, 0.0126190185546875, -0.0008873939514160156, 0.0098419189453125, 0.03125, -0.006381988525390625, 0.0002396106719970703, 0.05303955078125, -0.0287322998046875, 0.07586669921875, 0.00446319580078125, 0.0193023681640625, -0.047637939453125, -0.004367828369140625, 0.0250091552734375, 0.0885009765625, -0.044891357421875, 0.0011796951293945312, 0.01105499267578125, 0.01187896728515625, -0.0297393798828125, -0.01474761962890625, -0.027069091796875, 0.0221099853515625, 0.055267333984375, 0.00807952880859375, -0.01727294921875, 0.0110015869140625, -0.001270294189453125, -0.00798797607421875, -0.0135040283203125, 0.03387451171875, -0.004894256591796875, -0.00911712646484375, -0.00588226318359375, 0.016693115234375, 0.05267333984375, -0.011627197265625, 0.04620361328125, -0.03765869140625, -0.007793426513671875, -0.04376220703125, 0.032196044921875, -0.028900146484375, 0.06512451171875, -0.0576171875, -0.0237274169921875, -0.018280029296875, 0.0498046875, 0.07354736328125, 0.035552978515625, 0.042633056640625, 0.0141754150390625, 0.0078582763671875, 0.0187835693359375, -0.00970458984375, -0.01171875, 0.035797119140625, 0.004459381103515625, 0.04833984375, 0.0182952880859375, -0.01186370849609375, -0.032318115234375, 0.045745849609375, 0.0384521484375, -0.0288848876953125, 0.032318115234375, -0.00128936767578125, -0.037200927734375, 0.048248291015625, -0.024200439453125, 0.08319091796875, -0.010772705078125, -0.0601806640625, 0.003032684326171875, -0.00023186206817626953, -0.07763671875, 0.0235748291015625, 0.047821044921875, -0.040740966796875, 0.0074005126953125, -0.01497650146484375, 0.0079345703125, 0.01184844970703125, -0.0301513671875, 0.0166473388671875, 0.00830078125, -0.0019207000732421875, 0.009490966796875, -0.0517578125, 0.0011892318725585938, -0.003002166748046875, 0.007843017578125, -0.0170440673828125, 0.0277862548828125, 0.00705718994140625, 0.00930023193359375, -0.00926971435546875, -0.0201263427734375, 0.0121917724609375, -0.0243072509765625, 0.057769775390625, -0.01020050048828125, -0.0208740234375, -0.0130157470703125, -0.043121337890625, 0.007476806640625, 0.02679443359375, -0.0084991455078125, 0.0294342041015625, -0.05108642578125, 0.02203369140625, -0.0050506591796875, 0.01355743408203125, -0.021575927734375, 0.0010395050048828125, 0.0213470458984375, 0.005580902099609375, 0.0265045166015625, -0.004627227783203125, -0.02001953125, 0.017669677734375, -0.042266845703125, -0.02392578125, -0.001155853271484375, -0.039337158203125, -0.0078277587890625, 0.0263519287109375, -0.04376220703125, 0.029632568359375, 0.0194549560546875, -0.006740570068359375, -0.00302886962890625, 0.03387451171875, -0.04742431640625, 0.0136260986328125, 0.0033416748046875, -0.048187255859375, -0.072021484375, 0.01629638671875, -0.0052947998046875, 0.0103912353515625, -0.068115234375, 0.02874755859375, -0.037200927734375, -0.0396728515625, -0.03131103515625, -0.01092529296875, -0.0192413330078125, 0.020477294921875, -0.0116119384765625, -0.05999755859375, -0.058837890625, -0.021575927734375, 0.0233612060546875, -0.00020396709442138672, -0.0408935546875, -0.00514984130859375, -0.0169677734375, 0.0110931396484375, -0.006374359130859375, -0.0228729248046875, 0.0207061767578125, 0.0237274169921875, -0.03436279296875, 0.0126495361328125, -0.018402099609375, -0.031890869140625, -0.0038928985595703125, -0.007648468017578125, 0.03948974609375, -0.005313873291015625, -0.03656005859375, -0.0328369140625, -0.0280914306640625, 0.0330810546875, -0.0309906005859375, -0.01515960693359375, 0.0367431640625, 0.006130218505859375, -0.0037364959716796875, -0.051116943359375, -0.025238037109375, 0.0074615478515625, 0.0355224609375, 0.031219482421875, -0.01849365234375, 0.006256103515625, -0.038726806640625, -0.049713134765625, 0.051849365234375, 0.01061248779296875, -0.0224761962890625, -0.0325927734375, 0.0562744140625, 0.029205322265625, -0.04376220703125, -0.025848388671875, 0.01043701171875, -0.0198974609375, -0.034271240234375, 0.01263427734375, -0.00489044189453125, 0.046295166015625, -0.02545166015625, -0.035858154296875, -0.005672454833984375, -0.00981903076171875, 0.0098724365234375, -0.02154541015625, -0.0185394287109375, 0.0355224609375, 0.013397216796875, -0.04315185546875, 0.03155517578125, 0.043670654296875, 0.0303955078125, -0.037200927734375, 0.01345062255859375, 0.0066070556640625, 0.027435302734375, 0.08404541015625, 0.05352783203125, 0.0181427001953125, -0.055084228515625, -0.01499176025390625, -0.008087158203125, -0.014251708984375, -0.0025768280029296875, 0.0226898193359375, -0.072509765625, -0.01413726806640625, 0.043975830078125, -0.036895751953125, -0.026611328125, -0.0026912689208984375, -0.06195068359375, -0.0026073455810546875, -0.049957275390625, 0.00566864013671875, -0.025634765625, -0.032501220703125, 0.0836181640625, -0.035064697265625, -0.0176849365234375, 0.023773193359375, 0.03704833984375, 0.006130218505859375, -0.009368896484375, 0.071533203125, 0.050506591796875, -0.0435791015625, -0.0168304443359375, 0.038421630859375, -0.0221405029296875, -0.01491546630859375, -0.037078857421875, -0.00949859619140625, 0.0274505615234375, -0.01096343994140625, 0.0181121826171875, 0.006622314453125, 0.05206298828125, 0.001102447509765625, 0.08935546875, -0.006649017333984375, 0.065673828125, -0.0144195556640625, 0.046630859375, -0.00970458984375, 0.0011396408081054688, 0.00528717041015625, 0.01544189453125, 0.004467010498046875, 0.0282135009765625, 0.010955810546875, -0.035125732421875, 0.031768798828125, 0.0283660888671875, 0.0160980224609375, 0.0125732421875 ]
488064a9db2ebe45197d97df76958efa550607b5
Wordpress Stackexchange Q: Documentation for IDE's I'm using IntelliJ but this question could apply to PhpStorm, Visual Studio, etc... Is there a good way to make the IDE aware of the Javascript functions that WordPress provides? Are there any Javascript stubs available like these Google Maps stubs? I'd like to have auto-completion available, parameter info, etc... A: One possible solution is to make the WordPress source code available to the IDE by adding it's path to the project. IntelliJ reads the Javascript functions available. This is not a pretty solution though (I'd like someone to be able to load the project on their machine and have this work).
Q: Documentation for IDE's I'm using IntelliJ but this question could apply to PhpStorm, Visual Studio, etc... Is there a good way to make the IDE aware of the Javascript functions that WordPress provides? Are there any Javascript stubs available like these Google Maps stubs? I'd like to have auto-completion available, parameter info, etc... A: One possible solution is to make the WordPress source code available to the IDE by adding it's path to the project. IntelliJ reads the Javascript functions available. This is not a pretty solution though (I'd like someone to be able to load the project on their machine and have this work).
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:445236", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/144551" }
[ 0.0230865478515625, -0.00916290283203125, -0.004405975341796875, 0.004871368408203125, -0.02825927734375, -0.00690460205078125, 0.0231781005859375, -0.0196990966796875, 0.0127716064453125, -0.006801605224609375, -0.06658935546875, 0.01318359375, -0.031402587890625, -0.019287109375, 0.0028553009033203125, -0.04388427734375, 0.03778076171875, -0.0211334228515625, 0.0103302001953125, -0.0163726806640625, -0.01055145263671875, 0.01560211181640625, 0.0160369873046875, 0.034759521484375, 0.010284423828125, -0.00981903076171875, 0.0241851806640625, -0.0121002197265625, 0.0014276504516601562, -0.00710296630859375, 0.01666259765625, -0.0002529621124267578, 0.021484375, 0.0304107666015625, -0.033477783203125, 0.0293121337890625, 0.0246124267578125, 0.011016845703125, 0.033447265625, 0.011932373046875, 0.0196075439453125, -0.00551605224609375, 0.018310546875, 0.00968170166015625, -0.0240478515625, -0.0196685791015625, 0.01548004150390625, -0.0189208984375, 0.0034275054931640625, -0.0115814208984375, -0.00823211669921875, 0.0085296630859375, 0.015472412109375, -0.047637939453125, 0.0014705657958984375, -0.00426483154296875, -0.0246124267578125, 0.01169586181640625, 0.020965576171875, 0.0421142578125, -0.0029201507568359375, -0.01279449462890625, -0.0011663436889648438, -0.035797119140625, -0.0172119140625, -0.01197052001953125, -0.076416015625, 0.020843505859375, -0.004779815673828125, -0.0088653564453125, 0.01397705078125, -0.037567138671875, -0.005649566650390625, 0.0117340087890625, 0.0018663406372070312, -0.0338134765625, 0.019073486328125, -0.00782012939453125, 0.0038471221923828125, 0.032196044921875, 0.022064208984375, -0.01316070556640625, -0.0117034912109375, 0.00627899169921875, -0.00989532470703125, 0.00007253885269165039, 0.002227783203125, -0.01132965087890625, -0.066650390625, -0.038360595703125, -0.02874755859375, -0.07464599609375, -0.10894775390625, 0.0296478271484375, 0.032684326171875, -0.022430419921875, 0.00595855712890625, 0.008270263671875, 0.002346038818359375, 0.0225372314453125, 0.0242767333984375, -0.043426513671875, 0.0399169921875, -0.0237579345703125, -0.0221710205078125, 0.047637939453125, 0.00021839141845703125, 0.057281494140625, 0.0083770751953125, 0.031036376953125, 0.010833740234375, -0.09149169921875, 0.017669677734375, -0.01483917236328125, 0.016265869140625, 0.0008540153503417969, -0.01026153564453125, 0.042572021484375, 0.004261016845703125, 0.0210723876953125, -0.00998687744140625, 0.01071929931640625, -0.00008147954940795898, 0.0124969482421875, 0.0276641845703125, 0.00975799560546875, -0.0238037109375, 0.016082763671875, 0.029327392578125, -0.04815673828125, -0.006664276123046875, 0.0262298583984375, 0.00991058349609375, 0.039520263671875, 0.005367279052734375, 0.0174713134765625, 0.0170440673828125, 0.0014352798461914062, 0.01221466064453125, -0.0025272369384765625, -0.01306915283203125, -0.006221771240234375, 0.05133056640625, -0.017486572265625, 0.05755615234375, -0.0198516845703125, 0.0173797607421875, 0.0269317626953125, 0.0151824951171875, 0.0211029052734375, 0.0171051025390625, 0.01044464111328125, 0.034454345703125, 0.01424407958984375, 0.00004190206527709961, -0.01031494140625, 0.018218994140625, -0.0210723876953125, 0.007476806640625, -0.007801055908203125, 0.0155792236328125, -0.00919342041015625, 0.0217437744140625, -0.0171661376953125, -0.03973388671875, 0.00199127197265625, -0.034698486328125, -0.00252532958984375, 0.023529052734375, 0.0040130615234375, -0.032257080078125, -0.006954193115234375, 0.0323486328125, 0.0033092498779296875, -0.01352691650390625, 0.0192413330078125, -0.039031982421875, 0.0050506591796875, 0.0323486328125, 0.00835418701171875, 0.014739990234375, -0.0008254051208496094, 0.057403564453125, 0.012725830078125, -0.037689208984375, 0.016357421875, 0.00186920166015625, 0.06085205078125, 0.0369873046875, 0.0171661376953125, 0.01264190673828125, -0.0262298583984375, -0.0186920166015625, 0.057464599609375, -0.03167724609375, -0.06298828125, 0.00955963134765625, 0.0134124755859375, -0.035888671875, 0.00811767578125, 0.00047278404235839844, 0.0264739990234375, 0.005031585693359375, -0.011566162109375, -0.0090484619140625, 0.02789306640625, -0.0027179718017578125, 0.03485107421875, 0.06494140625, 0.0225372314453125, -0.02569580078125, 0.0101165771484375, -0.015777587890625, -0.00366973876953125, -0.06915283203125, -0.0038204193115234375, -0.054046630859375, 0.030120849609375, -0.01474761962890625, 0.0537109375, -0.0311431884765625, -0.0295867919921875, -0.0167694091796875, -0.023162841796875, -0.055999755859375, 0.0277099609375, -0.021881103515625, 0.03515625, -0.046783447265625, 0.04998779296875, 0.0297393798828125, -0.0200958251953125, -0.021148681640625, 0.04425048828125, 0.00006985664367675781, -0.036163330078125, -0.05322265625, -0.06915283203125, 0.042449951171875, 0.037353515625, 0.0282135009765625, 0.02972412109375, 0.005840301513671875, 0.0256195068359375, 0.0657958984375, 0.01910400390625, 0.0244140625, -0.0084686279296875, -0.0221099853515625, 0.0165863037109375, 0.00960540771484375, 0.002506256103515625, 0.002460479736328125, -0.035247802734375, -0.033721923828125, 0.03961181640625, -0.0032825469970703125, -0.004070281982421875, 0.0186920166015625, -0.01544952392578125, 0.0057373046875, -0.0281829833984375, -0.0296173095703125, -0.013427734375, 0.07110595703125, 0.006134033203125, 0.07763671875, 0.07318115234375, -0.01433563232421875, -0.0013990402221679688, -0.002956390380859375, 0.03289794921875, 0.0081787109375, 0.054107666015625, 0.048736572265625, -0.0145721435546875, 0.0177154541015625, -0.050872802734375, -0.0196533203125, 0.0350341796875, -0.0198822021484375, -0.0095977783203125, -0.00901031494140625, -0.00469207763671875, 0.001186370849609375, -0.0309906005859375, 0.0244293212890625, -0.001102447509765625, -0.007801055908203125, 0.045562744140625, 0.045928955078125, 0.049591064453125, 0.016143798828125, 0.0181884765625, -0.003505706787109375, 0.0157470703125, 0.0982666015625, -0.018280029296875, 0.01389312744140625, 0.002193450927734375, 0.0714111328125, 0.050323486328125, -0.01654052734375, 0.00992584228515625, -0.00531768798828125, 0.039031982421875, 0.03668212890625, -0.015533447265625, -0.017242431640625, -0.00872039794921875, -0.0313720703125, -0.0316162109375, 0.004482269287109375, -0.00009500980377197266, -0.03277587890625, -0.04693603515625, -0.0296173095703125, -0.0217742919921875, -0.1212158203125, -0.075439453125, 0.036468505859375, -0.052276611328125, 0.01398468017578125, 0.0137939453125, -0.0191192626953125, -0.0300140380859375, 0.041473388671875, 0.01351165771484375, -0.041046142578125, -0.0184783935546875, -0.057220458984375, -0.0867919921875, -0.07293701171875, -0.01195526123046875, -0.0245208740234375, 0.007144927978515625, 0.02197265625, -0.0233612060546875, 0.0195159912109375, -0.00678253173828125, 0.0439453125, 0.049652099609375, -0.01541900634765625, -0.00995635986328125, 0.01303863525390625, -0.047149658203125, 0.033355712890625, -0.005947113037109375, 0.007389068603515625, 0.007568359375, 0.0123291015625, -0.0204010009765625, 0.008880615234375, -0.0029659271240234375, 0.007488250732421875, 0.0041351318359375, -0.0172271728515625, -0.000957489013671875, 0.0038585662841796875, -0.0374755859375, 0.0255584716796875, 0.0340576171875, 0.0033397674560546875, -0.069580078125, -0.005706787109375, -0.050811767578125, -0.02374267578125, -0.0236968994140625, 0.0538330078125, 0.03143310546875, -0.005855560302734375, 0.003757476806640625, 0.06744384765625, -0.0026378631591796875, 0.03973388671875, -0.0443115234375, 0.0667724609375, -0.0161285400390625, -0.003208160400390625, 0.01229095458984375, 0.0196380615234375, 0.01071929931640625, -0.021453857421875, -0.0394287109375, 0.037139892578125, -0.005950927734375, -0.046051025390625, 0.019439697265625, 0.0189666748046875, 0.0171661376953125, -0.0013551712036132812, 0.01239776611328125, 0.0217742919921875, 0.0017156600952148438, 0.0452880859375, 0.002285003662109375, -0.07244873046875, 0.022430419921875, -0.11907958984375, 0.0167694091796875, -0.0171051025390625, -0.01274871826171875, -0.00036215782165527344, -0.0194854736328125, -0.019775390625, 0.04052734375, -0.0218353271484375, -0.0126495361328125, 0.01314544677734375, -0.003265380859375, 0.022247314453125, -0.01198577880859375, 0.02294921875, -0.04229736328125, 0.0079803466796875, -0.033721923828125, -0.050140380859375, -0.0033111572265625, -0.0374755859375, 0.06890869140625, 0.0230865478515625, 0.0087432861328125, 0.01983642578125, 0.060394287109375, -0.01148223876953125, 0.0150299072265625, 0.02618408203125, 0.047515869140625, -0.035797119140625, -0.02410888671875, 0.0202178955078125, -0.05340576171875, -0.01374053955078125, 0.00936126708984375, -0.034637451171875, 0.020355224609375, 0.002201080322265625, -0.007232666015625, 0.033843994140625, -0.039154052734375, 0.01477813720703125, -0.0235748291015625, -0.010711669921875, 0.01433563232421875, -0.0193328857421875, 0.00677490234375, -0.01314544677734375, -0.0125274658203125, 0.08782958984375, 0.0298309326171875, -0.003986358642578125, -0.0235137939453125, 0.045806884765625, 0.0006041526794433594, -0.052154541015625, 0.042694091796875, 0.04913330078125, 0.0439453125, -0.0014963150024414062, 0.0286102294921875, 0.01025390625, -0.028076171875, 0.06494140625, 0.005046844482421875, -0.0179443359375, 0.0014362335205078125, 0.0194244384765625, 0.005947113037109375, -0.0116119384765625, 0.004680633544921875, -0.0023956298828125, 0.0218963623046875, 0.01181793212890625, -0.02777099609375, 0.045654296875, -0.0087432861328125, -0.0275421142578125, -0.02984619140625, 0.028045654296875, -0.0031414031982421875, -0.0306854248046875, 0.0100250244140625, -0.03131103515625, 0.06890869140625, 0.01044464111328125, 0.00392913818359375, 0.047576904296875, 0.046112060546875, -0.01300048828125, 0.0640869140625, 0.032440185546875, 0.0113983154296875, 0.0205078125, 0.062469482421875, -0.016448974609375, 0.021453857421875, -0.027130126953125, 0.10321044921875, 0.01030731201171875, -0.06109619140625, 0.0126190185546875, -0.030059814453125, -0.008514404296875, 0.01229095458984375, -0.03558349609375, 0.006198883056640625, 0.0802001953125, -0.0265045166015625, -0.004840850830078125, 0.0307159423828125, 0.00017380714416503906, -0.03485107421875, -0.0322265625, -0.01983642578125, -0.0081329345703125, 0.03076171875, 0.01227569580078125, -0.0005011558532714844, 0.010955810546875, -0.0173187255859375, 0.01525115966796875, -0.00244140625, 0.0134124755859375, 0.0127716064453125, -0.0171356201171875, 0.00923919677734375, -0.0212860107421875, 0.02130126953125, -0.021759033203125, -0.0056915283203125, -0.004375457763671875, -0.02288818359375, 0.0144500732421875, 0.0123138427734375, 0.01898193359375, 0.034820556640625, -0.0246734619140625, -0.05389404296875, -0.027587890625, 0.03564453125, -0.00859832763671875, -0.044921875, -0.016998291015625, 0.052734375, 0.00022029876708984375, 0.048492431640625, 0.0298614501953125, 0.0302276611328125, 0.03643798828125, -0.034454345703125, -0.01041412353515625, 0.0185699462890625, 0.026214599609375, 0.01235198974609375, 0.0202178955078125, -0.09954833984375, -0.034393310546875, -0.0185546875, 0.03216552734375, 0.04522705078125, -0.0266876220703125, -0.0008215904235839844, -0.023162841796875, 0.0270233154296875, -0.04400634765625, 0.012237548828125, 0.0222930908203125, 0.0150299072265625, -0.0278778076171875, -0.037994384765625, -0.052032470703125, -0.04913330078125, -0.034637451171875, 0.0013065338134765625, -0.052276611328125, 0.0258941650390625, 0.00275421142578125, 0.0301666259765625, -0.00881195068359375, 0.01971435546875, -0.032745361328125, 0.0228424072265625, 0.007091522216796875, 0.07501220703125, -0.0010967254638671875, 0.03741455078125, -0.0172119140625, 0.07049560546875, -0.0110321044921875, -0.0019083023071289062, -0.0487060546875, -0.0209197998046875, -0.00902557373046875, -0.01751708984375, -0.00027871131896972656, 0.0141448974609375, -0.05242919921875, -0.0232086181640625, 0.0406494140625, -0.0027008056640625, 0.004192352294921875, 0.00925445556640625, 0.003673553466796875, -0.0219268798828125, 0.01045989990234375, 0.004119873046875, 0.0016622543334960938, -0.0282440185546875, -0.01239013671875, 0.0025539398193359375, 0.005527496337890625, -0.0193634033203125, 0.0218505859375, 0.002819061279296875, 0.0019292831420898438, -0.0006003379821777344, -0.037750244140625, 0.00739288330078125, 0.0386962890625, 0.026153564453125, 0.044219970703125, 0.0181427001953125, 0.02239990234375, 0.016021728515625, 0.0125274658203125, -0.04742431640625, 0.00354766845703125, 0.01727294921875, 0.00659942626953125, -0.01290130615234375, 0.00331878662109375, -0.01451873779296875, 0.0028514862060546875, 0.0047760009765625, 0.037384033203125, -0.022796630859375, 0.005702972412109375, 0.01050567626953125, -0.018585205078125, -0.00873565673828125, -0.0088348388671875, 0.0196990966796875, -0.015533447265625, -0.0025920867919921875, 0.03875732421875, -0.02642822265625, -0.0046539306640625, -0.005062103271484375, -0.0002887248992919922, -0.011199951171875, 0.024749755859375, 0.01381683349609375, -0.0943603515625, 0.059295654296875, 0.042572021484375, 0.026214599609375, -0.0244293212890625, -0.012054443359375, 0.0283355712890625, -0.0440673828125, -0.0673828125, 0.0131072998046875, -0.0099945068359375, -0.010986328125, 0.00760650634765625, 0.011260986328125, 0.008026123046875, 0.053680419921875, -0.0305023193359375, 0.0198516845703125, 0.0130615234375, 0.035858154296875, 0.037933349609375, -0.0154876708984375, 0.0233612060546875, 0.0300445556640625, -0.0227508544921875, 0.007625579833984375, 0.004730224609375, -0.0037288665771484375, -0.0205535888671875, 0.0066680908203125, 0.07684326171875, 0.01316070556640625, -0.0390625, 0.06317138671875, 0.0235137939453125, -0.0555419921875, -0.0156402587890625, -0.023529052734375, -0.056610107421875, 0.021209716796875, -0.0201416015625, 0.0245208740234375, 0.01708984375, -0.016387939453125, -0.024993896484375, 0.031707763671875, 0.047027587890625, -0.0198822021484375, 0.01058197021484375, 0.028076171875, -0.041778564453125, 0.0094757080078125, -0.001071929931640625, 0.036163330078125, 0.0188140869140625, 0.00007051229476928711, -0.00812530517578125, -0.0093536376953125, -0.0081024169921875, 0.02703857421875, 0.055419921875, 0.01593017578125, 0.004100799560546875, 0.0013990402221679688, 0.032928466796875, -0.00038051605224609375, -0.03668212890625, 0.030364990234375, 0.0191192626953125, 0.0289306640625, 0.040985107421875, -0.03179931640625, 0.054290771484375, -0.07183837890625, 0.01678466796875, 0.0186309814453125, 0.004970550537109375, -0.016021728515625, -0.0158538818359375, -0.003711700439453125, -0.035125732421875, 0.01165008544921875, 0.0106201171875, 0.055389404296875, -0.0235748291015625, 0.0589599609375, 0.027679443359375, -0.019866943359375, -0.054718017578125, -0.00933837890625, 0.02899169921875, 0.006519317626953125, -0.007511138916015625, 0.06451416015625, 0.0333251953125, -0.0261077880859375, -0.01522064208984375, 0.0214080810546875, -0.00528717041015625, -0.03424072265625, 0.033294677734375, 0.028472900390625, 0.046630859375, -0.005161285400390625, 0.0283203125, 0.0194549560546875, 0.03887939453125, -0.0293426513671875, -0.0007052421569824219, 0.005512237548828125, -0.0015497207641601562, 0.0029144287109375, -0.041015625, 0.00925445556640625, 0.03857421875, 0.0136871337890625, -0.0032806396484375, -0.01364898681640625, 0.0013284683227539062, -0.00656890869140625, -0.00885009765625, 0.002788543701171875, 0.041412353515625, -0.007175445556640625, -0.039825439453125, 0.00794219970703125, 0.010589599609375, 0.022552490234375, 0.00856781005859375, 0.053985595703125, 0.0279998779296875, 0.0003173351287841797, -0.01004791259765625, 0.00431060791015625, -0.033721923828125, 0.0280914306640625, -0.0438232421875, -0.0184478759765625, -0.012359619140625, 0.040252685546875, 0.0008473396301269531, 0.0009245872497558594, 0.024322509765625, 0.035614013671875, -0.04644775390625, -0.01800537109375, 0.038909912109375, -0.025634765625, 0.01070404052734375, -0.03546142578125, 0.04150390625, 0.018951416015625, 0.00867462158203125, -0.027923583984375, 0.00411224365234375, 0.06298828125, -0.03521728515625, 0.04388427734375, -0.01053619384765625, -0.00421142578125, 0.07928466796875, -0.038787841796875, 0.0479736328125, -0.020233154296875, 0.00971221923828125, 0.0202484130859375, -0.026397705078125, -0.0170745849609375, 0.00807952880859375, 0.025115966796875, -0.018951416015625, 0.037322998046875, 0.00467681884765625, 0.0164794921875, -0.0240478515625, -0.00579833984375, 0.004138946533203125, -0.06390380859375, 0.02325439453125, -0.02239990234375, -0.052276611328125, -0.037689208984375, -0.02398681640625, 0.0484619140625, 0.0037097930908203125, 0.038970947265625, 0.0031108856201171875, 0.02679443359375, -0.043212890625, 0.003955841064453125, -0.01904296875, -0.007183074951171875, -0.036773681640625, 0.01326751708984375, -0.0052337646484375, -0.0012054443359375, -0.0701904296875, 0.028533935546875, 0.01149749755859375, -0.00640869140625, 0.06488037109375, -0.03277587890625, 0.00666046142578125, -0.032257080078125, 0.01287841796875, -0.017333984375, -0.031280517578125, -0.00983428955078125, -0.0020809173583984375, 0.02972412109375, 0.035858154296875, 0.0147705078125, 0.0053863525390625, 0.021575927734375, -0.02886962890625, -0.007305145263671875, -0.002716064453125, 0.003337860107421875, 0.0225372314453125, 0.0083465576171875, -0.0196533203125, -0.02825927734375, -0.03173828125, 0.011566162109375, -0.01522064208984375, 0.0029296875, -0.01338958740234375, -0.0457763671875, 0.0012865066528320312, 0.04974365234375, 0.0170135498046875, -0.043670654296875, 0.021484375, 0.0283050537109375, -0.0207366943359375, 0.0265350341796875, -0.015228271484375, -0.0180816650390625, -0.01389312744140625, -0.012115478515625, 0.0159912109375, -0.01476287841796875, -0.009033203125, -0.051055908203125, -0.024078369140625, 0.030792236328125, -0.035125732421875, 0.028106689453125, -0.040771484375, -0.007091522216796875, 0.0273895263671875, -0.0006799697875976562, 0.060638427734375, -0.0277557373046875, -0.0151824951171875, -0.043731689453125, -0.020782470703125, -0.006618499755859375, 0.048004150390625, -0.0006861686706542969, 0.043914794921875, 0.04119873046875, -0.044952392578125, 0.00010144710540771484, 0.066650390625, 0.047515869140625, 0.11627197265625, 0.041656494140625, -0.01800537109375, 0.031768798828125, 0.00762939453125, -0.0255584716796875, -0.0282745361328125, 0.00604248046875, 0.00475311279296875, -0.00518035888671875, -0.0021724700927734375, -0.00240325927734375, 0.0042266845703125, -0.06317138671875, -0.1663818359375, 0.0232086181640625, -0.0196075439453125, -0.07525634765625, -0.006900787353515625, -0.01200103759765625, -0.0158233642578125, 0.00865936279296875, -0.009429931640625, -0.00939178466796875, -0.00910186767578125, 0.0261688232421875, -0.01033782958984375, 0.0447998046875, 0.0037746429443359375, -0.0255584716796875, -0.03131103515625, 0.0220489501953125, 0.0199737548828125, 0.00513458251953125, -0.017181396484375, -0.0216522216796875, 0.013153076171875, 0.0236358642578125, -0.040008544921875, -0.06591796875, 0.0191650390625, 0.0379638671875, -0.0140380859375, -0.033111572265625, -0.051788330078125, -0.003726959228515625, 0.11053466796875, 0.07415771484375, 0.024200439453125, -0.0706787109375, 0.05767822265625, 0.0266571044921875, -0.03521728515625, 0.007221221923828125, 0.006649017333984375, -0.0222015380859375, -0.01153564453125, -0.004367828369140625, 0.00795745849609375, -0.0066986083984375, -0.01348876953125, -0.0224761962890625, -0.014923095703125, -0.0031223297119140625, -0.009002685546875, -0.0005097389221191406, -0.017852783203125, 0.08740234375, -0.037353515625, 0.01216888427734375, 0.037872314453125, -0.0107421875, 0.05950927734375, 0.083984375, -0.00946044921875, 0.0024852752685546875, 0.0030612945556640625, 0.0272064208984375, 0.0010423660278320312, 0.00597381591796875, -0.01494598388671875, 0.00884246826171875, -0.004940032958984375, 0.01064300537109375, 0.023529052734375, 0.030242919921875, -0.0101165771484375, -0.003162384033203125, 0.013092041015625, -0.01690673828125, -0.03619384765625, 0.048126220703125, 0.01812744140625, 0.01788330078125, -0.031494140625, 0.01910400390625, 0.02490234375, -0.04730224609375, 0.006275177001953125, 0.0164642333984375, -0.00481414794921875, -0.020233154296875, 0.033355712890625, 0.0511474609375, -0.004650115966796875, 0.0139007568359375 ]
cd3c710df9fe069a23467ee17ebc9dd7565e636d
Wordpress Stackexchange Q: wp-cli import theme sample data i am trying to create an automated process of installing a wordpress site from scrach (no db, no user, no files, no settings) to the point were the site is up and it has it's own custom theme with the sample data imported so i have 2 questions 1) wp-cli can help me do all this except importing the sample data xml that comes with the themes ... can anyone help me with a solution for this? 2) does anyone know of any attempt to automate the installation process of a wp site? thanks, Rares A: I just filed to a PR to the WPTest.io "theme test data". In short it's the following series of commands. You just have to replace * *The remote request provider. In the example it's curl, but you could use wget or others as well *The remote request target. In the example it's the wptest.io XML/WRX file. Code: #!/bin/sh # @TODO automate things like changing folders, chmod/permission, etc. curl -O https://raw.githubusercontent.com/manovotny/wptest/master/wptest.xml wp import wptest.xml --authors=create rm wptest.xml where wptest.xml is the filename and of course you should run it from within the target folder.
Q: wp-cli import theme sample data i am trying to create an automated process of installing a wordpress site from scrach (no db, no user, no files, no settings) to the point were the site is up and it has it's own custom theme with the sample data imported so i have 2 questions 1) wp-cli can help me do all this except importing the sample data xml that comes with the themes ... can anyone help me with a solution for this? 2) does anyone know of any attempt to automate the installation process of a wp site? thanks, Rares A: I just filed to a PR to the WPTest.io "theme test data". In short it's the following series of commands. You just have to replace * *The remote request provider. In the example it's curl, but you could use wget or others as well *The remote request target. In the example it's the wptest.io XML/WRX file. Code: #!/bin/sh # @TODO automate things like changing folders, chmod/permission, etc. curl -O https://raw.githubusercontent.com/manovotny/wptest/master/wptest.xml wp import wptest.xml --authors=create rm wptest.xml where wptest.xml is the filename and of course you should run it from within the target folder.
wordpress
{ "language": "en", "length": 195, "provenance": "stackexchange_00019.jsonl.gz:445257", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/144611" }
[ -0.0011053085327148438, -0.0208587646484375, -0.01226806640625, -0.031402587890625, -0.0141448974609375, -0.0293731689453125, -0.01103973388671875, 0.006561279296875, 0.0002529621124267578, -0.0155792236328125, -0.0185394287109375, 0.011932373046875, -0.0384521484375, -0.03900146484375, 0.0115966796875, -0.0380859375, 0.0097808837890625, -0.0233154296875, -0.0005102157592773438, -0.00624847412109375, -0.005107879638671875, -0.00830841064453125, 0.036163330078125, -0.01064300537109375, 0.0012521743774414062, 0.059051513671875, 0.05377197265625, 0.013031005859375, -0.0218353271484375, -0.0016269683837890625, 0.0176849365234375, -0.038848876953125, 0.017242431640625, 0.018798828125, -0.013336181640625, 0.0396728515625, -0.007495880126953125, 0.01300048828125, -0.00986480712890625, 0.01910400390625, -0.0101318359375, 0.01168060302734375, 0.00835418701171875, 0.01465606689453125, -0.0216064453125, -0.0296630859375, 0.0026264190673828125, -0.025146484375, 0.0305328369140625, 0.006427764892578125, -0.0110321044921875, 0.02606201171875, 0.00360870361328125, -0.006267547607421875, -0.0186614990234375, -0.006984710693359375, -0.0190582275390625, 0.034637451171875, 0.03009033203125, -0.0281524658203125, -0.044830322265625, -0.0036792755126953125, 0.03314208984375, 0.0176849365234375, 0.01476287841796875, -0.025421142578125, -0.01953125, 0.0333251953125, -0.0103912353515625, 0.0182952880859375, 0.0231475830078125, -0.022430419921875, -0.00812530517578125, 0.015228271484375, -0.04583740234375, -0.045318603515625, 0.041839599609375, -0.03985595703125, -0.006679534912109375, 0.02227783203125, 0.0214080810546875, -0.03143310546875, 0.0112457275390625, -0.038848876953125, 0.02850341796875, -0.01036834716796875, 0.004299163818359375, 0.00334930419921875, -0.0228424072265625, -0.0335693359375, -0.0294952392578125, 0.037445068359375, -0.057525634765625, -0.0187225341796875, -0.0283966064453125, -0.026336669921875, -0.0144805908203125, -0.0031795501708984375, 0.0028247833251953125, 0.034423828125, 0.039947509765625, -0.047454833984375, 0.0694580078125, -0.038818359375, 0.008819580078125, 0.05657958984375, -0.017059326171875, -0.004425048828125, 0.0257415771484375, 0.007415771484375, 0.01343536376953125, -0.01044464111328125, -0.0207061767578125, -0.027496337890625, -0.01358795166015625, 0.041839599609375, -0.01482391357421875, 0.00006312131881713867, 0.007007598876953125, 0.02752685546875, -0.01444244384765625, 0.004383087158203125, 0.0007529258728027344, -0.00553131103515625, 0.0025234222412109375, 0.0174102783203125, 0.0278167724609375, -0.039337158203125, -0.06805419921875, 0.042877197265625, -0.024383544921875, 0.0270233154296875, 0.053680419921875, 0.005283355712890625, -0.022186279296875, -0.0322265625, 0.03857421875, 0.0300140380859375, 0.0134735107421875, 0.0166168212890625, -0.00237274169921875, -0.02960205078125, -0.0130767822265625, 0.0140533447265625, 0.055328369140625, 0.02984619140625, 0.0161895751953125, -0.00024771690368652344, 0.0125579833984375, -0.0031757354736328125, -0.0011243820190429688, 0.0174560546875, 0.0077362060546875, -0.0199127197265625, 0.0238494873046875, -0.060882568359375, -0.01488494873046875, -0.03009033203125, 0.06390380859375, -0.0182342529296875, -0.0252838134765625, -0.005481719970703125, 0.034698486328125, 0.0159759521484375, -0.0150909423828125, 0.01018524169921875, 0.03021240234375, 0.0016326904296875, 0.0246734619140625, 0.062103271484375, -0.031524658203125, -0.03265380859375, 0.09393310546875, 0.0254364013671875, -0.0226593017578125, 0.050872802734375, 0.0635986328125, -0.020263671875, 0.0172119140625, 0.02813720703125, -0.007770538330078125, -0.011138916015625, 0.07794189453125, -0.04833984375, -0.05419921875, 0.0193328857421875, -0.003131866455078125, 0.07879638671875, 0.067626953125, 0.0250701904296875, -0.02606201171875, -0.04620361328125, -0.0019435882568359375, -0.0166015625, 0.005748748779296875, -0.00995635986328125, -0.0270843505859375, 0.005207061767578125, -0.006404876708984375, 0.0165252685546875, -0.03448486328125, -0.00740814208984375, 0.0220489501953125, 0.0103302001953125, 0.007045745849609375, 0.016021728515625, -0.0164031982421875, 0.0292816162109375, -0.03741455078125, -0.02691650390625, 0.0286407470703125, -0.028289794921875, 0.0236358642578125, -0.0830078125, -0.039337158203125, 0.01654052734375, -0.0277862548828125, 0.0535888671875, -0.01715087890625, 0.04290771484375, -0.03125, -0.04296875, -0.0245513916015625, -0.01263427734375, -0.001708984375, 0.0241851806640625, -0.014678955078125, 0.01328277587890625, 0.03106689453125, 0.01049041748046875, 0.0716552734375, -0.00360107421875, 0.0291748046875, 0.07696533203125, -0.0009918212890625, -0.01432037353515625, -0.0088653564453125, -0.060272216796875, 0.023529052734375, 0.0380859375, 0.0199127197265625, 0.026397705078125, -0.00775909423828125, 0.00933074951171875, 0.08428955078125, 0.032684326171875, 0.025238037109375, -0.0137786865234375, -0.0009589195251464844, 0.0148468017578125, -0.04034423828125, 0.005435943603515625, 0.0296173095703125, -0.054534912109375, -0.0166015625, 0.049224853515625, -0.043426513671875, -0.0236663818359375, -0.0127410888671875, -0.003307342529296875, 0.006610870361328125, -0.043426513671875, -0.01453399658203125, -0.0265350341796875, 0.07196044921875, -0.0013589859008789062, 0.075927734375, 0.042449951171875, -0.0174560546875, -0.0139923095703125, -0.0013027191162109375, 0.0134735107421875, 0.01114654541015625, 0.01348114013671875, -0.00760650634765625, 0.018585205078125, -0.031585693359375, -0.0102081298828125, 0.0209503173828125, 0.0193634033203125, 0.005767822265625, 0.04998779296875, 0.02667236328125, -0.0079345703125, -0.0027008056640625, -0.06390380859375, 0.0141754150390625, 0.029815673828125, -0.022705078125, -0.0113983154296875, 0.0015125274658203125, 0.024658203125, -0.01092529296875, 0.021270751953125, 0.00103759765625, -0.009735107421875, 0.0557861328125, -0.031707763671875, 0.045379638671875, -0.00901031494140625, 0.04119873046875, 0.06085205078125, 0.005706787109375, 0.0104827880859375, 0.0009741783142089844, -0.04248046875, -0.00896453857421875, 0.00023293495178222656, -0.025360107421875, -0.02838134765625, -0.0712890625, -0.0035991668701171875, 0.0259246826171875, 0.045074462890625, -0.001708984375, -0.0333251953125, -0.03546142578125, 0.0254058837890625, -0.06964111328125, -0.09100341796875, 0.047088623046875, -0.0438232421875, -0.006130218505859375, -0.006320953369140625, -0.03485107421875, -0.015869140625, -0.0014657974243164062, -0.004642486572265625, 0.00200653076171875, -0.0428466796875, -0.0255126953125, -0.08587646484375, -0.061920166015625, -0.0609130859375, 0.006252288818359375, -0.0168914794921875, 0.009246826171875, 0.02947998046875, -0.022003173828125, -0.04632568359375, -0.01708984375, 0.047637939453125, 0.0290985107421875, -0.01035308837890625, 0.0256195068359375, -0.044189453125, 0.042449951171875, -0.01611328125, 0.0379638671875, 0.04022216796875, -0.0227813720703125, -0.006984710693359375, -0.00496673583984375, -0.04595947265625, -0.012939453125, 0.0340576171875, 0.00771331787109375, -0.03948974609375, 0.00981903076171875, -0.07574462890625, -0.01375579833984375, 0.0208587646484375, -0.01261138916015625, 0.034149169921875, 0.0034008026123046875, -0.0469970703125, 0.037017822265625, 0.00788116455078125, -0.0194549560546875, 0.004955291748046875, 0.032135009765625, 0.00852203369140625, 0.002471923828125, -0.035003662109375, -0.05084228515625, -0.022186279296875, 0.0128936767578125, -0.030914306640625, -0.005443572998046875, 0.0162811279296875, -0.00592803955078125, 0.0019311904907226562, -0.009521484375, -0.0012798309326171875, -0.03448486328125, 0.036407470703125, 0.024658203125, 0.027618408203125, 0.006565093994140625, -0.03289794921875, 0.0234375, 0.0721435546875, -0.053680419921875, -0.035736083984375, 0.022796630859375, 0.035736083984375, -0.060760498046875, -0.00185394287109375, -0.02569580078125, -0.004241943359375, -0.08135986328125, -0.01873779296875, -0.0152587890625, -0.04571533203125, 0.0223541259765625, -0.0709228515625, -0.032196044921875, -0.08209228515625, 0.0305328369140625, 0.005359649658203125, 0.013214111328125, 0.00257110595703125, -0.0001342296600341797, -0.0093994140625, -0.0220947265625, -0.00868988037109375, -0.076904296875, -0.006618499755859375, -0.0035877227783203125, 0.04412841796875, -0.0269012451171875, 0.051483154296875, -0.05023193359375, 0.024383544921875, -0.010009765625, 0.0227813720703125, -0.0022735595703125, 0.0005521774291992188, 0.01180267333984375, -0.01064300537109375, 0.00667572021484375, -0.0180206298828125, -0.01065826416015625, -0.019256591796875, -0.039031982421875, 0.014434814453125, 0.009033203125, 0.04412841796875, 0.0247650146484375, -0.020111083984375, 0.0100555419921875, 0.00122833251953125, 0.0196533203125, 0.0625, -0.0021419525146484375, 0.0133056640625, -0.026123046875, -0.007659912109375, 0.0289459228515625, -0.039886474609375, 0.00492095947265625, 0.01397705078125, 0.073486328125, 0.0116119384765625, -0.0009851455688476562, -0.053558349609375, -0.00789642333984375, 0.01629638671875, 0.032806396484375, 0.0297393798828125, 0.03350830078125, -0.005245208740234375, 0.006175994873046875, 0.0212554931640625, 0.014404296875, 0.03240966796875, -0.0023937225341796875, 0.0277099609375, 0.0102386474609375, -0.01375579833984375, 0.032989501953125, -0.039520263671875, 0.007022857666015625, -0.001712799072265625, -0.023040771484375, 0.0162200927734375, 0.0374755859375, -0.030426025390625, 0.020416259765625, -0.015716552734375, -0.0030460357666015625, 0.01329803466796875, -0.018096923828125, -0.020751953125, -0.0131683349609375, 0.0036411285400390625, -0.036346435546875, -0.043853759765625, -0.0068511962890625, 0.0191192626953125, 0.04376220703125, 0.0029811859130859375, 0.0021076202392578125, 0.07086181640625, -0.0184326171875, -0.023284912109375, -0.00934600830078125, 0.0372314453125, -0.004802703857421875, -0.0125732421875, -0.04547119140625, -0.0121917724609375, 0.01486968994140625, 0.023193359375, 0.003986358642578125, 0.04071044921875, 0.02215576171875, -0.00109100341796875, 0.0007686614990234375, -0.006866455078125, -0.0196990966796875, -0.0472412109375, -0.047882080078125, -0.004581451416015625, -0.0330810546875, 0.0311279296875, -0.042388916015625, -0.07037353515625, 0.00502777099609375, 0.019561767578125, 0.044769287109375, 0.025787353515625, 0.023284912109375, -0.00792694091796875, 0.017730712890625, 0.023345947265625, -0.0189056396484375, 0.0167694091796875, -0.044525146484375, -0.0037784576416015625, 0.07012939453125, 0.056182861328125, -0.0306396484375, -0.053314208984375, -0.0059661865234375, -0.011444091796875, 0.0205078125, -0.021240234375, -0.0253448486328125, 0.0231170654296875, -0.004589080810546875, 0.0259246826171875, 0.03564453125, 0.0033130645751953125, -0.0190277099609375, 0.041168212890625, -0.0102996826171875, -0.0166473388671875, 0.08135986328125, -0.0521240234375, -0.0199737548828125, 0.014068603515625, 0.0238037109375, -0.0152740478515625, -0.0438232421875, -0.0005712509155273438, -0.003139495849609375, -0.0033473968505859375, -0.003421783447265625, 0.05242919921875, -0.007396697998046875, -0.033599853515625, -0.024322509765625, 0.031951904296875, -0.047698974609375, -0.0094451904296875, 0.045074462890625, 0.0007653236389160156, 0.0130462646484375, 0.002056121826171875, -0.0307464599609375, -0.035400390625, -0.005611419677734375, -0.01499176025390625, -0.042572021484375, -0.0017833709716796875, 0.01318359375, 0.0025177001953125, -0.006221771240234375, -0.0031681060791015625, -0.0011472702026367188, 0.0254974365234375, -0.0076141357421875, -0.0157623291015625, 0.01491546630859375, 0.0389404296875, -0.038909912109375, 0.0185699462890625, 0.0148468017578125, 0.0285491943359375, -0.0100860595703125, -0.0110931396484375, -0.0113983154296875, -0.02301025390625, -0.00921630859375, -0.03472900390625, 0.0208740234375, 0.05548095703125, 0.07208251953125, -0.00640106201171875, 0.005832672119140625, -0.01157379150390625, -0.01175689697265625, -0.01319122314453125, 0.054229736328125, -0.00290679931640625, 0.00852203369140625, 0.050537109375, -0.031982421875, -0.0154876708984375, 0.033294677734375, -0.01290130615234375, 0.00004792213439941406, 0.004009246826171875, -0.0105438232421875, 0.032684326171875, -0.0360107421875, 0.042572021484375, 0.116943359375, 0.0111083984375, 0.04901123046875, 0.031280517578125, -0.0039520263671875, 0.0316162109375, 0.028533935546875, -0.0290374755859375, -0.050048828125, 0.01393890380859375, -0.008453369140625, -0.021270751953125, -0.0081329345703125, -0.03204345703125, 0.0016317367553710938, 0.0141448974609375, 0.047454833984375, -0.0067291259765625, -0.01409912109375, 0.00301361083984375, -0.052001953125, -0.040740966796875, -0.003429412841796875, -0.041015625, -0.0565185546875, -0.001705169677734375, 0.015716552734375, -0.017974853515625, -0.0214996337890625, 0.0308685302734375, -0.01312255859375, -0.01690673828125, 0.00579071044921875, 0.01245880126953125, -0.0014133453369140625, 0.01617431640625, 0.007320404052734375, -0.00000667572021484375, -0.004688262939453125, 0.0290374755859375, -0.033294677734375, -0.00893402099609375, -0.040496826171875, -0.0131072998046875, -0.021881103515625, -0.0245819091796875, 0.004276275634765625, 0.06597900390625, 0.051055908203125, 0.0364990234375, 0.02740478515625, -0.0249786376953125, 0.01003265380859375, 0.0455322265625, -0.014404296875, -0.018646240234375, 0.0167388916015625, 0.033203125, -0.020538330078125, 0.02923583984375, -0.017364501953125, -0.0214691162109375, -0.00785064697265625, 0.0184326171875, 0.064208984375, 0.008026123046875, -0.02984619140625, 0.044158935546875, 0.004062652587890625, -0.00821685791015625, 0.0080413818359375, 0.053680419921875, -0.04998779296875, -0.0377197265625, 0.04022216796875, -0.01366424560546875, -0.029815673828125, 0.0137786865234375, -0.026580810546875, 0.119384765625, -0.018524169921875, 0.0009860992431640625, 0.044677734375, 0.05133056640625, -0.044158935546875, 0.0305938720703125, -0.00013935565948486328, 0.0245361328125, 0.011444091796875, -0.025665283203125, 0.002288818359375, -0.0027332305908203125, 0.0009746551513671875, 0.02276611328125, -0.0003612041473388672, -0.01088714599609375, 0.004791259765625, 0.01169586181640625, 0.06817626953125, 0.0146026611328125, -0.0012998580932617188, 0.0233612060546875, -0.0304718017578125, 0.05462646484375, 0.0207977294921875, -0.08184814453125, 0.0094146728515625, 0.0226898193359375, -0.044219970703125, 0.0005474090576171875, 0.01486968994140625, 0.0140533447265625, 0.004344940185546875, 0.023956298828125, -0.053680419921875, 0.00682830810546875, 0.03753662109375, 0.01201629638671875, 0.01629638671875, -0.03887939453125, -0.002483367919921875, -0.033599853515625, 0.006221771240234375, -0.023162841796875, 0.0258941650390625, 0.0049591064453125, 0.049163818359375, -0.0033416748046875, 0.017120361328125, 0.058441162109375, -0.00037860870361328125, 0.017852783203125, 0.053436279296875, -0.03887939453125, -0.00121307373046875, 0.024139404296875, 0.033935546875, 0.0233154296875, 0.041107177734375, 0.001895904541015625, -0.01100921630859375, -0.02130126953125, -0.03509521484375, 0.0157318115234375, -0.01039886474609375, -0.0243072509765625, 0.023529052734375, 0.0080108642578125, -0.01448822021484375, -0.00624847412109375, 0.0180816650390625, -0.0136566162109375, 0.0093994140625, -0.0002772808074951172, 0.016265869140625, 0.03436279296875, 0.0240631103515625, -0.00968170166015625, 0.050506591796875, -0.01397705078125, 0.02349853515625, 0.01125335693359375, -0.037872314453125, 0.02374267578125, -0.091552734375, 0.0207061767578125, -0.01154327392578125, 0.015472412109375, 0.054290771484375, -0.0015506744384765625, 0.0011949539184570312, 0.002628326416015625, 0.039031982421875, 0.0159912109375, -0.0148773193359375, 0.0301055908203125, 0.04241943359375, 0.0245819091796875, -0.03802490234375, -0.00888824462890625, 0.04266357421875, -0.0296478271484375, -0.06658935546875, -0.0189971923828125, -0.02008056640625, 0.0238800048828125, 0.00514984130859375, 0.009185791015625, 0.038604736328125, 0.0009431838989257812, -0.055908203125, 0.039154052734375, -0.02471923828125, -0.011871337890625, 0.04180908203125, -0.0220947265625, 0.023406982421875, -0.025970458984375, -0.055145263671875, 0.0007753372192382812, -0.040618896484375, 0.01465606689453125, 0.01519012451171875, 0.020599365234375, -0.0004925727844238281, 0.0237884521484375, 0.0221099853515625, -0.0087738037109375, 0.0232086181640625, 0.0017843246459960938, -0.0158538818359375, 0.019683837890625, 0.035186767578125, -0.0001653432846069336, -0.0297088623046875, -0.0401611328125, -0.04315185546875, 0.06854248046875, -0.0004742145538330078, 0.06488037109375, -0.040069580078125, 0.03192138671875, -0.0038013458251953125, -0.0158538818359375, -0.0024242401123046875, -0.01416015625, 0.015380859375, 0.01149749755859375, 0.0162353515625, -0.0257568359375, -0.04205322265625, 0.005199432373046875, 0.0246429443359375, -0.00923919677734375, -0.0118865966796875, -0.00946807861328125, 0.03546142578125, 0.027435302734375, 0.033294677734375, -0.031005859375, -0.07720947265625, -0.07159423828125, 0.00672149658203125, 0.01424407958984375, 0.029998779296875, -0.0191802978515625, 0.0229339599609375, 0.026275634765625, 0.0200958251953125, 0.0035877227783203125, 0.026947021484375, 0.01983642578125, 0.0262603759765625, -0.031890869140625, -0.023040771484375, 0.0206146240234375, -0.0278778076171875, 0.00746917724609375, 0.0120697021484375, 0.0478515625, 0.0272216796875, -0.02471923828125, 0.009429931640625, 0.06671142578125, 0.048583984375, -0.007747650146484375, 0.0288543701171875, 0.0249786376953125, -0.03228759765625, 0.0162353515625, -0.0301971435546875, -0.01218414306640625, -0.0513916015625, 0.016845703125, 0.03564453125, -0.04412841796875, 0.03179931640625, -0.04180908203125, 0.00646209716796875, 0.015472412109375, -0.0227508544921875, 0.0174713134765625, 0.005603790283203125, -0.03240966796875, 0.0079345703125, -0.01259613037109375, -0.012664794921875, -0.0196990966796875, -0.0281982421875, -0.0264129638671875, -0.0697021484375, -0.05841064453125, 0.07440185546875, -0.043792724609375, -0.021697998046875, 0.001926422119140625, 0.00010830163955688477, -0.006542205810546875, -0.02581787109375, -0.01308441162109375, 0.022552490234375, 0.0218048095703125, -0.026580810546875, -0.0173797607421875, 0.01641845703125, -0.0020236968994140625, -0.0909423828125, 0.0030727386474609375, -0.053955078125, 0.01519012451171875, -0.04541015625, 0.01983642578125, 0.0111083984375, -0.047332763671875, -0.08758544921875, 0.017913818359375, -0.0207366943359375, -0.0278472900390625, -0.007244110107421875, -0.00739288330078125, -0.00017702579498291016, -0.0049896240234375, -0.005626678466796875, -0.0343017578125, -0.024017333984375, 0.039520263671875, -0.0185546875, 0.032623291015625, -0.02276611328125, -0.00647735595703125, -0.01088714599609375, 0.016021728515625, 0.0226593017578125, -0.021453857421875, 0.0106201171875, -0.021514892578125, 0.0260467529296875, 0.037078857421875, -0.0304718017578125, -0.016815185546875, -0.0177001953125, -0.03533935546875, -0.02203369140625, 0.008880615234375, -0.020355224609375, 0.031280517578125, 0.0771484375, 0.0924072265625, 0.0185546875, -0.059417724609375, -0.023529052734375, 0.0084228515625, 0.03363037109375, -0.02685546875, 0.004688262939453125, -0.080078125, -0.0447998046875, 0.0150299072265625, -0.03082275390625, 0.03363037109375, 0.005290985107421875, -0.0343017578125, 0.0204315185546875, -0.0294036865234375, -0.0391845703125, -0.053009033203125, -0.0220794677734375, 0.114990234375, -0.06854248046875, -0.008941650390625, 0.010162353515625, 0.0243377685546875, 0.052001953125, -0.054656982421875, -0.01131439208984375, 0.026824951171875, -0.0230255126953125, 0.01503753662109375, -0.00379180908203125, 0.0254669189453125, -0.041778564453125, 0.002101898193359375, 0.018768310546875, -0.0283966064453125, -0.01373291015625, -0.042877197265625, 0.0009441375732421875, -0.03045654296875, -0.053314208984375, 0.051727294921875, -0.01227569580078125, -0.037200927734375, -0.0435791015625, 0.054412841796875, -0.03131103515625, -0.02337646484375, 0.00699615478515625, 0.010101318359375, 0.01629638671875, -0.01422882080078125, 0.0204010009765625, -0.0135040283203125, 0.003643035888671875, 0.02099609375, -0.0247802734375, 0.01214599609375 ]
7dd2fd28b01e8669951d0a55d9a2825fa5de88f8
Wordpress Stackexchange Q: Get post id by attachment id? I have attachment id, but can't find way to get post id by this attachment id. I can loop all posts and find it, but maybe exists easy way get it. Does anyone know a similar function? A: get_post_ancestors can give you the ID of the object an attachment is associated with: $attachment_id = 42; $parent = get_post_ancestors( $attachment_id ); echo $parent[0]; // $parent will be an array
Q: Get post id by attachment id? I have attachment id, but can't find way to get post id by this attachment id. I can loop all posts and find it, but maybe exists easy way get it. Does anyone know a similar function? A: get_post_ancestors can give you the ID of the object an attachment is associated with: $attachment_id = 42; $parent = get_post_ancestors( $attachment_id ); echo $parent[0]; // $parent will be an array
wordpress
{ "language": "en", "length": 75, "provenance": "stackexchange_00019.jsonl.gz:445258", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/144614" }
[ 0.031341552734375, -0.0006327629089355469, 0.006107330322265625, 0.00696563720703125, -0.00603485107421875, -0.0079345703125, 0.0207366943359375, -0.053985595703125, 0.0193328857421875, 0.039031982421875, -0.024566650390625, -0.0020999908447265625, -0.00730133056640625, -0.00861358642578125, -0.050323486328125, -0.01837158203125, 0.06121826171875, -0.0227813720703125, 0.058441162109375, 0.0194549560546875, -0.004787445068359375, 0.05255126953125, 0.06488037109375, 0.0031375885009765625, 0.031829833984375, 0.022186279296875, 0.050323486328125, -0.0087432861328125, 0.0200653076171875, -0.004734039306640625, 0.0265045166015625, -0.036865234375, 0.00208282470703125, -0.03997802734375, 0.06494140625, -0.0003345012664794922, 0.0023345947265625, 0.000888824462890625, 0.017059326171875, 0.0118560791015625, 0.01372528076171875, 0.00185394287109375, -0.008819580078125, 0.004730224609375, -0.03558349609375, -0.026397705078125, -0.00194549560546875, -0.0258026123046875, 0.04217529296875, -0.0018529891967773438, 0.01126861572265625, 0.034942626953125, 0.0151214599609375, 0.0035800933837890625, -0.0145263671875, -0.00015497207641601562, 0.0128936767578125, 0.019683837890625, 0.042266845703125, -0.058502197265625, -0.056182861328125, -0.0121002197265625, 0.042510986328125, 0.002338409423828125, 0.0294952392578125, -0.00021255016326904297, 0.04827880859375, 0.022796630859375, -0.03668212890625, 0.0298919677734375, 0.03643798828125, -0.01522064208984375, 0.00104522705078125, -0.02862548828125, -0.0133514404296875, -0.034576416015625, 0.017303466796875, -0.05181884765625, -0.02593994140625, 0.017181396484375, -0.0258636474609375, -0.006832122802734375, -0.0714111328125, 0.035980224609375, -0.020965576171875, 0.06793212890625, -0.0211181640625, -0.04339599609375, -0.03192138671875, -0.022674560546875, -0.021392822265625, -0.04913330078125, -0.006114959716796875, 0.010040283203125, -0.033172607421875, -0.025177001953125, 0.04620361328125, 0.038116455078125, -0.0184326171875, -0.006015777587890625, -0.005184173583984375, -0.05352783203125, 0.01357269287109375, -0.01727294921875, -0.0088043212890625, -0.0091094970703125, 0.029205322265625, 0.0018634796142578125, 0.018280029296875, 0.02117919921875, -0.04302978515625, 0.051513671875, 0.0192718505859375, 0.0328369140625, -0.0216064453125, -0.00925445556640625, -0.0218048095703125, 0.028228759765625, -0.023406982421875, 0.02508544921875, -0.005214691162109375, -0.0011262893676757812, 0.0027561187744140625, 0.041351318359375, -0.007106781005859375, 0.00696563720703125, -0.0238800048828125, -0.0201873779296875, 0.038604736328125, -0.00724029541015625, -0.0357666015625, 0.0037555694580078125, 0.037445068359375, 0.01204681396484375, 0.01432037353515625, -0.00403594970703125, -0.02685546875, 0.002719879150390625, 0.012237548828125, -0.009765625, 0.029327392578125, -0.03228759765625, 0.0069427490234375, 0.0307769775390625, -0.0242462158203125, 0.03594970703125, 0.01983642578125, 0.012908935546875, -0.02374267578125, -0.066162109375, 0.0007653236389160156, -0.0352783203125, 0.026641845703125, 0.0050811767578125, -0.0016317367553710938, -0.030792236328125, 0.0287322998046875, -0.0296478271484375, -0.00102996826171875, -0.054443359375, 0.0310211181640625, 0.0027027130126953125, 0.0146331787109375, 0.0207061767578125, -0.0287017822265625, 0.0100250244140625, -0.029998779296875, -0.0212249755859375, 0.02496337890625, 0.057159423828125, 0.0340576171875, -0.0236663818359375, -0.0235595703125, -0.00782012939453125, -0.01378631591796875, -0.01070404052734375, -0.009857177734375, -0.04815673828125, 0.025360107421875, 0.05364990234375, 0.0024318695068359375, -0.0244903564453125, -0.04388427734375, 0.031982421875, -0.0196990966796875, 0.0567626953125, 0.0041046142578125, 0.031982421875, -0.0009427070617675781, 0.0024814605712890625, -0.00010454654693603516, 0.0269622802734375, -0.058502197265625, 0.026123046875, -0.01401519775390625, 0.0105743408203125, -0.0106201171875, 0.01605224609375, -0.00293731689453125, -0.031982421875, -0.01552581787109375, -0.005252838134765625, 0.00821685791015625, 0.031982421875, -0.007476806640625, 0.0013532638549804688, -0.0030040740966796875, 0.0154266357421875, -0.005340576171875, 0.0301666259765625, 0.019378662109375, 0.01560211181640625, -0.02410888671875, -0.045806884765625, -0.0163421630859375, 0.0304412841796875, 0.007282257080078125, -0.01444244384765625, -0.036346435546875, 0.004169464111328125, -0.08209228515625, 0.0236358642578125, -0.085693359375, 0.0186309814453125, 0.034271240234375, 0.022125244140625, -0.01800537109375, -0.0029506683349609375, 0.031585693359375, 0.032012939453125, -0.05120849609375, -0.00542449951171875, 0.0010709762573242188, -0.0175323486328125, -0.0374755859375, -0.0240936279296875, -0.037078857421875, -0.0970458984375, 0.0164642333984375, 0.08575439453125, 0.030731201171875, 0.035675048828125, -0.00183868408203125, -0.00676727294921875, 0.07464599609375, -0.01800537109375, 0.00957489013671875, -0.005374908447265625, 0.0164031982421875, 0.053985595703125, -0.010009765625, 0.0211639404296875, 0.018798828125, 0.0027408599853515625, 0.01035308837890625, 0.040496826171875, -0.0009918212890625, 0.00949859619140625, -0.040740966796875, 0.04742431640625, -0.0177001953125, -0.0128021240234375, 0.005474090576171875, -0.0231475830078125, 0.02423095703125, 0.027679443359375, 0.054046630859375, 0.042724609375, -0.032501220703125, 0.01116943359375, 0.003421783447265625, 0.0306243896484375, 0.01096343994140625, 0.035400390625, 0.0020618438720703125, 0.005767822265625, -0.00136566162109375, -0.031585693359375, 0.017242431640625, 0.01070404052734375, 0.00124359130859375, 0.045623779296875, 0.00262451171875, -0.0166473388671875, -0.025177001953125, -0.02020263671875, 0.0180206298828125, 0.0234375, -0.04766845703125, -0.0186309814453125, -0.01129150390625, 0.08050537109375, -0.00026702880859375, 0.0193634033203125, 0.01190948486328125, 0.022918701171875, -0.018524169921875, -0.062744140625, 0.060150146484375, -0.052398681640625, 0.0236663818359375, 0.06329345703125, -0.01129150390625, 0.02789306640625, -0.0028209686279296875, 0.004467010498046875, 0.0092620849609375, 0.0017147064208984375, 0.0122222900390625, -0.0211944580078125, -0.002330780029296875, 0.032928466796875, 0.0037860870361328125, 0.0889892578125, -0.0648193359375, -0.07720947265625, -0.0126495361328125, 0.0032596588134765625, -0.0955810546875, -0.08990478515625, 0.023956298828125, -0.0802001953125, -0.0089874267578125, -0.0293426513671875, -0.04510498046875, -0.00370025634765625, 0.0087738037109375, -0.00708770751953125, 0.00337982177734375, -0.00887298583984375, -0.057708740234375, -0.0367431640625, -0.0684814453125, -0.032012939453125, -0.016387939453125, 0.01419830322265625, 0.01313018798828125, -0.00225067138671875, -0.005802154541015625, -0.0247039794921875, 0.0094146728515625, 0.024444580078125, -0.0003407001495361328, -0.00614166259765625, -0.007659912109375, 0.00646209716796875, -0.02960205078125, 0.0103759765625, -0.00933074951171875, -0.00417327880859375, -0.00785064697265625, -0.016082763671875, -0.01361083984375, 0.0182037353515625, 0.043731689453125, -0.01377105712890625, -0.004627227783203125, 0.0283966064453125, 0.03497314453125, -0.022003173828125, -0.0162200927734375, -0.02337646484375, -0.046875, 0.01285552978515625, 0.0125274658203125, 0.016021728515625, -0.017486572265625, 0.0094757080078125, 0.00635528564453125, -0.0237579345703125, -0.0115814208984375, -0.033172607421875, 0.040496826171875, 0.01558685302734375, 0.037567138671875, 0.0128173828125, 0.013397216796875, -0.031280517578125, -0.01044464111328125, -0.0130157470703125, -0.0129547119140625, -0.0185089111328125, 0.0027866363525390625, -0.00640869140625, -0.0640869140625, 0.038818359375, -0.0222320556640625, 0.00916290283203125, -0.027374267578125, -0.02349853515625, 0.01470184326171875, 0.102783203125, -0.00988006591796875, -0.01363372802734375, -0.02728271484375, 0.01044464111328125, -0.0239410400390625, -0.06402587890625, -0.0054931640625, -0.01139068603515625, -0.0103302001953125, -0.00562286376953125, -0.00722503662109375, -0.0165252685546875, -0.0214385986328125, 0.0576171875, -0.004810333251953125, 0.00328826904296875, 0.026824951171875, -0.00797271728515625, 0.009613037109375, 0.02703857421875, -0.009857177734375, 0.05206298828125, -0.0406494140625, -0.006954193115234375, -0.076904296875, -0.0173797607421875, -0.0031280517578125, 0.051116943359375, -0.006526947021484375, -0.00308990478515625, -0.017425537109375, 0.040130615234375, 0.00545501708984375, 0.04400634765625, -0.0165863037109375, 0.01007080078125, -0.046844482421875, -0.038055419921875, -0.0032672882080078125, -0.040985107421875, -0.0104217529296875, -0.042633056640625, -0.04345703125, -0.036285400390625, -0.03570556640625, -0.0007100105285644531, -0.01044464111328125, -0.013702392578125, -0.042816162109375, -0.03753662109375, -0.0223388671875, 0.039642333984375, -0.00505828857421875, -0.006931304931640625, -0.06671142578125, -0.0751953125, 0.048370361328125, 0.0237274169921875, -0.0022125244140625, -0.0032405853271484375, 0.062347412109375, 0.0081634521484375, -0.028167724609375, -0.040435791015625, 0.0099029541015625, 0.028228759765625, -0.02398681640625, 0.053955078125, 0.030975341796875, -0.01348114013671875, 0.053619384765625, -0.00690460205078125, -0.005573272705078125, -0.01058197021484375, 0.040069580078125, -0.006870269775390625, -0.024688720703125, 0.02886962890625, -0.0215911865234375, 0.031829833984375, -0.01285552978515625, -0.026092529296875, -0.030731201171875, -0.01922607421875, 0.055694580078125, -0.0258941650390625, 0.07513427734375, -0.034027099609375, -0.056732177734375, 0.033294677734375, -0.055511474609375, 0.006378173828125, 0.01611328125, -0.0103912353515625, 0.02069091796875, -0.004322052001953125, -0.00251007080078125, -0.00811004638671875, 0.01861572265625, 0.0102386474609375, 0.0355224609375, -0.01068878173828125, -0.005489349365234375, -0.0389404296875, -0.01103973388671875, 0.019012451171875, 0.007610321044921875, -0.0196380615234375, 0.00991058349609375, -0.0171661376953125, -0.0015230178833007812, 0.01043701171875, -0.04827880859375, 0.0224609375, 0.04248046875, -0.0218505859375, 0.0008101463317871094, -0.06640625, 0.006927490234375, -0.052398681640625, 0.0059356689453125, 0.004299163818359375, -0.01425933837890625, 0.0250244140625, 0.01165771484375, -0.01561737060546875, 0.007232666015625, -0.01160430908203125, 0.0198974609375, -0.0003533363342285156, 0.052825927734375, 0.02301025390625, -0.03204345703125, 0.004024505615234375, 0.023895263671875, -0.008087158203125, -0.06640625, 0.0423583984375, 0.03546142578125, 0.0902099609375, -0.003459930419921875, -0.07611083984375, 0.020355224609375, -0.0877685546875, -0.0096893310546875, 0.0207366943359375, 0.0165252685546875, -0.020599365234375, 0.0011997222900390625, 0.036651611328125, 0.004894256591796875, 0.02362060546875, -0.0010881423950195312, -0.00870513916015625, -0.020111083984375, -0.01322174072265625, -0.0022907257080078125, -0.041259765625, -0.0001863241195678711, 0.0226287841796875, -0.034027099609375, -0.0171966552734375, -0.03192138671875, 0.02130126953125, -0.004894256591796875, -0.005523681640625, -0.036224365234375, 0.044281005859375, 0.009002685546875, 0.060089111328125, -0.02496337890625, -0.042022705078125, -0.0241546630859375, -0.015472412109375, 0.07379150390625, 0.034423828125, -0.0165557861328125, -0.004169464111328125, -0.041351318359375, -0.00867462158203125, 0.0088348388671875, -0.0202178955078125, -0.042877197265625, 0.00701141357421875, -0.0227508544921875, 0.0216064453125, 0.0035076141357421875, 0.0606689453125, 0.015228271484375, 0.032684326171875, -0.0400390625, 0.0458984375, 0.006702423095703125, 0.061309814453125, -0.0037784576416015625, 0.0389404296875, 0.0246734619140625, 0.034515380859375, -0.027923583984375, -0.0249176025390625, 0.0038242340087890625, -0.0174713134765625, 0.0178375244140625, 0.0284576416015625, 0.015838623046875, -0.0848388671875, -0.05859375, -0.0022735595703125, 0.00638580322265625, -0.0245361328125, -0.012542724609375, -0.0143280029296875, 0.0298309326171875, -0.0088958740234375, -0.0006580352783203125, 0.0006995201110839844, -0.048492431640625, -0.03240966796875, 0.01506805419921875, 0.048828125, -0.018310546875, -0.034820556640625, -0.023834228515625, 0.04229736328125, -0.007579803466796875, 0.034698486328125, 0.0692138671875, 0.01337432861328125, 0.040313720703125, 0.0221710205078125, 0.0248260498046875, 0.002605438232421875, 0.06109619140625, -0.026702880859375, -0.054779052734375, 0.0830078125, 0.0433349609375, -0.0469970703125, 0.051666259765625, -0.05657958984375, 0.0030536651611328125, -0.08563232421875, 0.0036773681640625, 0.049468994140625, 0.0240631103515625, -0.00955963134765625, -0.0261993408203125, 0.031402587890625, -0.0030879974365234375, 0.011444091796875, -0.0117340087890625, 0.04022216796875, -0.0032901763916015625, -0.01023101806640625, 0.00183868408203125, -0.034881591796875, 0.005825042724609375, -0.03839111328125, 0.017578125, -0.0017757415771484375, 0.01288604736328125, -0.003810882568359375, -0.000048041343688964844, 0.00494384765625, -0.05438232421875, -0.0008082389831542969, 0.0020904541015625, 0.00926971435546875, -0.06494140625, 0.0268096923828125, -0.045196533203125, 0.050537109375, 0.0005540847778320312, -0.0122528076171875, 0.0308380126953125, 0.01708984375, 0.0015802383422851562, -0.021820068359375, -0.00250244140625, -0.04248046875, 0.0019054412841796875, -0.019439697265625, -0.01184844970703125, 0.045074462890625, -0.037139892578125, 0.0167083740234375, -0.017303466796875, 0.01088714599609375, -0.01137542724609375, -0.0263214111328125, 0.0528564453125, -0.059600830078125, 0.011260986328125, 0.0287322998046875, 0.051666259765625, -0.012359619140625, 0.00888824462890625, 0.0135040283203125, -0.0136871337890625, 0.0145721435546875, 0.0130157470703125, -0.007411956787109375, -0.029998779296875, -0.0083160400390625, -0.0579833984375, 0.036102294921875, -0.0070648193359375, 0.0282135009765625, -0.006313323974609375, 0.00452423095703125, 0.005615234375, -0.018310546875, -0.037750244140625, 0.01358795166015625, 0.0178375244140625, 0.0140228271484375, -0.026458740234375, -0.002513885498046875, -0.01392364501953125, 0.01454925537109375, 0.09075927734375, 0.01331329345703125, -0.03692626953125, -0.025787353515625, 0.0516357421875, 0.057220458984375, 0.0167999267578125, 0.033905029296875, 0.032012939453125, 0.00542449951171875, 0.057342529296875, 0.00131988525390625, 0.048828125, -0.0345458984375, 0.0260467529296875, 0.03375244140625, 0.0160064697265625, 0.0226898193359375, 0.01055908203125, 0.0195159912109375, -0.0300140380859375, 0.004962921142578125, 0.045745849609375, -0.0467529296875, -0.0111083984375, 0.02899169921875, 0.051605224609375, -0.049163818359375, -0.023681640625, -0.0218658447265625, 0.05059814453125, 0.03228759765625, 0.0133209228515625, 0.00522613525390625, 0.01389312744140625, 0.0034809112548828125, 0.0254974365234375, 0.01593017578125, 0.0396728515625, -0.0287322998046875, 0.0248260498046875, -0.0102386474609375, 0.003917694091796875, -0.07940673828125, -0.055816650390625, 0.056549072265625, 0.051513671875, -0.0151519775390625, -0.0115509033203125, 0.03466796875, 0.0080718994140625, -0.006927490234375, -0.01007843017578125, 0.008453369140625, -0.01474761962890625, 0.0206146240234375, -0.03515625, -0.00682830810546875, 0.01132965087890625, 0.0677490234375, 0.0031566619873046875, 0.0011949539184570312, -0.08331298828125, -0.03173828125, -0.01690673828125, -0.024505615234375, 0.01036834716796875, 0.003742218017578125, 0.02923583984375, -0.0029430389404296875, 0.0175933837890625, 0.004917144775390625, 0.0233306884765625, 0.0022907257080078125, 0.00536346435546875, -0.0191802978515625, 0.0181121826171875, -0.0098876953125, -0.0012331008911132812, 0.0119171142578125, 0.01922607421875, 0.033294677734375, 0.048919677734375, -0.0028438568115234375, -0.04986572265625, -0.011505126953125, -0.00388336181640625, -0.04278564453125, 0.03656005859375, -0.052886962890625, 0.0193634033203125, 0.01259613037109375, -0.006259918212890625, -0.01157379150390625, -0.040771484375, 0.07867431640625, 0.0168304443359375, 0.0478515625, 0.01263427734375, 0.00992584228515625, 0.02032470703125, 0.01459503173828125, 0.023712158203125, 0.047119140625, -0.0709228515625, -0.01009368896484375, -0.0279693603515625, -0.027618408203125, 0.015289306640625, 0.0247955322265625, -0.0289764404296875, 0.025726318359375, -0.0244293212890625, -0.0177459716796875, -0.0025691986083984375, 0.0067901611328125, 0.019683837890625, 0.0018215179443359375, -0.003826141357421875, -0.01024627685546875, -0.053802490234375, -0.0297698974609375, 0.0017833709716796875, 0.0008726119995117188, 0.00681304931640625, -0.0071258544921875, 0.036346435546875, 0.00652313232421875, -0.01047515869140625, 0.047882080078125, -0.07208251953125, -0.0157318115234375, 0.0237884521484375, -0.028167724609375, 0.007129669189453125, 0.00228118896484375, -0.05584716796875, 0.03985595703125, 0.01108551025390625, 0.00685882568359375, 0.0300140380859375, -0.014129638671875, 0.02197265625, 0.0060272216796875, 0.01123046875, -0.0012083053588867188, -0.013763427734375, -0.01531219482421875, -0.01204681396484375, 0.03814697265625, 0.03839111328125, -0.009002685546875, 0.00905609130859375, 0.0209808349609375, -0.01287078857421875, 0.02838134765625, -0.00019443035125732422, 0.053131103515625, 0.0318603515625, -0.0345458984375, -0.0281982421875, 0.006931304931640625, -0.00951385498046875, 0.0304718017578125, -0.00444793701171875, 0.05059814453125, 0.015838623046875, -0.01525115966796875, -0.01238250732421875, 0.030975341796875, 0.05841064453125, 0.0261993408203125, 0.0233154296875, -0.02105712890625, -0.0167236328125, -0.004756927490234375, -0.05126953125, -0.0005006790161132812, -0.042449951171875, 0.01556396484375, 0.0308074951171875, 0.003223419189453125, 0.0452880859375, 0.0347900390625, -0.01495361328125, 0.00424957275390625, 0.01171875, -0.036041259765625, 0.0299224853515625, 0.01378631591796875, -0.00788116455078125, -0.01666259765625, 0.028045654296875, -0.011688232421875, 0.01233673095703125, -0.034393310546875, -0.0281982421875, -0.031768798828125, 0.03662109375, -0.0276947021484375, 0.04144287109375, 0.0269775390625, -0.045257568359375, -0.006397247314453125, 0.067138671875, 0.044281005859375, 0.10491943359375, 0.032958984375, -0.035430908203125, -0.0264739990234375, 0.0107421875, 0.0009341239929199219, -0.01401519775390625, 0.035736083984375, -0.07904052734375, -0.045501708984375, -0.08636474609375, 0.031280517578125, 0.0262451171875, -0.035675048828125, -0.045928955078125, 0.04290771484375, -0.043853759765625, -0.017822265625, -0.07501220703125, 0.043487548828125, 0.02593994140625, -0.033447265625, -0.0166778564453125, -0.022674560546875, -0.0182342529296875, 0.01580810546875, 0.0066070556640625, -0.02069091796875, 0.0282440185546875, 0.00182342529296875, -0.04107666015625, 0.01239013671875, 0.005702972412109375, -0.0034942626953125, 0.00299072265625, 0.007526397705078125, 0.0266876220703125, 0.045867919921875, -0.0325927734375, 0.032867431640625, -0.005634307861328125, 0.00994110107421875, -0.01275634765625, -0.00998687744140625, -0.0190887451171875, 0.02301025390625, 0.043731689453125, 0.062744140625, 0.01427459716796875, -0.051971435546875, 0.0080718994140625, -0.00489044189453125, -0.08599853515625, -0.004383087158203125, 0.048431396484375, -0.050323486328125, 0.004108428955078125, -0.0036373138427734375, -0.01142120361328125, -0.006244659423828125, -0.01678466796875, -0.02752685546875, -0.0189666748046875, -0.0288238525390625, -0.0254364013671875, 0.0117950439453125, -0.0214080810546875, 0.0240478515625, -0.025787353515625, -0.009307861328125, 0.009735107421875, 0.008026123046875, 0.0060882568359375, 0.033477783203125, 0.056365966796875, -0.01690673828125, 0.003143310546875, 0.004093170166015625, 0.04620361328125, -0.0020427703857421875, 0.0190582275390625, -0.046295166015625, -0.0233917236328125, 0.00457763671875, 0.0014696121215820312, -0.005313873291015625, -0.005161285400390625, 0.0089874267578125, 0.00689697265625, 0.035980224609375, 0.007091522216796875, 0.04693603515625, 0.00368499755859375, 0.039947509765625, -0.051605224609375, -0.003948211669921875, -0.022430419921875, -0.043212890625, 0.00004953145980834961, 0.0010595321655273438, 0.0167694091796875, -0.04205322265625, 0.03265380859375, 0.0272216796875, 0.01103973388671875, 0.0311279296875 ]
eb9a2822d4889a9fe9613caec1620bf8b252f40d
Wordpress Stackexchange Q: What is the best practice to check for pretty permalinks? I develop a plugin and therefore I add new RSS feeds. One feed might look like http://local.wordpress.dev/?post_type=custom-post-type&custom-taxonomy=tax-1&feed=custom-feed This works pretty good. But if pretty permalinks are enabled also this url works which will be redirect to the same feed http://local.wordpress.dev/custom-taxonomy/tax-1/feed/custom-feed. So far so good. My plugin will list all available feeds for the user. My question what is the best practice to check if pretty permalinks are active and which url version should be displayed? My idea is to look at $wp_rewrite which permalink_structure is set and decide which version to show. Is there a better way to do it? A: The Using Permalinks page on WordPress.org tells you how to check for the permalink structure: if ( get_option('permalink_structure') ) { echo 'permalinks enabled'; } The result will be an empty string if permalinks are default, otherwise you will get the permalink pattern though you should not have to worry much about the permalink details if you use Core functions to generate your links.
Q: What is the best practice to check for pretty permalinks? I develop a plugin and therefore I add new RSS feeds. One feed might look like http://local.wordpress.dev/?post_type=custom-post-type&custom-taxonomy=tax-1&feed=custom-feed This works pretty good. But if pretty permalinks are enabled also this url works which will be redirect to the same feed http://local.wordpress.dev/custom-taxonomy/tax-1/feed/custom-feed. So far so good. My plugin will list all available feeds for the user. My question what is the best practice to check if pretty permalinks are active and which url version should be displayed? My idea is to look at $wp_rewrite which permalink_structure is set and decide which version to show. Is there a better way to do it? A: The Using Permalinks page on WordPress.org tells you how to check for the permalink structure: if ( get_option('permalink_structure') ) { echo 'permalinks enabled'; } The result will be an empty string if permalinks are default, otherwise you will get the permalink pattern though you should not have to worry much about the permalink details if you use Core functions to generate your links.
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:445317", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/144822" }
[ 0.0810546875, 0.007625579833984375, 0.0278167724609375, -0.00945281982421875, 0.0092620849609375, -0.0214080810546875, 0.046417236328125, -0.061431884765625, -0.008819580078125, -0.00655364990234375, -0.016754150390625, 0.017791748046875, -0.048492431640625, -0.03265380859375, 0.0225830078125, -0.031463623046875, 0.046051025390625, -0.0311431884765625, 0.0229339599609375, 0.0007047653198242188, -0.01445770263671875, 0.0277099609375, 0.036865234375, 0.03662109375, 0.048309326171875, -0.055267333984375, 0.061920166015625, -0.05902099609375, 0.0548095703125, -0.0225067138671875, 0.036956787109375, -0.0234832763671875, -0.01335906982421875, 0.01561737060546875, 0.0633544921875, 0.0113372802734375, 0.01245880126953125, 0.018096923828125, 0.0343017578125, 0.01306915283203125, 0.0095672607421875, 0.00045800209045410156, 0.032135009765625, -0.0160369873046875, 0.01995849609375, -0.01415252685546875, 0.0030231475830078125, -0.06768798828125, 0.004459381103515625, 0.0264434814453125, 0.00298309326171875, -0.01338958740234375, -0.000614166259765625, 0.02508544921875, -0.0220947265625, -0.031829833984375, 0.0053253173828125, -0.05999755859375, 0.032745361328125, 0.0215911865234375, -0.0083160400390625, -0.03216552734375, 0.025970458984375, -0.0226287841796875, -0.01336669921875, -0.01194000244140625, -0.02386474609375, 0.04522705078125, -0.00658416748046875, -0.00952911376953125, 0.00787353515625, -0.01538848876953125, -0.01421356201171875, -0.0171051025390625, -0.0340576171875, -0.01155853271484375, 0.0009365081787109375, -0.037811279296875, -0.0010480880737304688, 0.0086212158203125, -0.0030975341796875, 0.0185089111328125, -0.031982421875, -0.0303802490234375, 0.035919189453125, 0.01140594482421875, -0.00635528564453125, -0.0240325927734375, -0.020233154296875, -0.0293426513671875, -0.021575927734375, -0.01161956787109375, -0.0155487060546875, -0.01837158203125, -0.0157928466796875, -0.04095458984375, 0.04754638671875, 0.051666259765625, 0.0021762847900390625, 0.0022220611572265625, 0.003543853759765625, -0.04931640625, 0.01439666748046875, -0.041046142578125, 0.01000213623046875, 0.042938232421875, 0.01357269287109375, 0.041534423828125, 0.06988525390625, 0.0208282470703125, 0.0194091796875, 0.0565185546875, 0.0012388229370117188, -0.01262664794921875, -0.0015544891357421875, 0.00453948974609375, -0.045318603515625, 0.032989501953125, -0.00994110107421875, 0.0231475830078125, -0.006046295166015625, 0.05255126953125, -0.0031795501708984375, -0.041534423828125, -0.01971435546875, -0.01535797119140625, -0.0042572021484375, -0.0400390625, -0.03179931640625, 0.051544189453125, -0.0143585205078125, -0.0026988983154296875, 0.024078369140625, 0.026611328125, -0.016357421875, -0.0325927734375, 0.0728759765625, -0.007061004638671875, -0.007114410400390625, -0.0034770965576171875, 0.00406646728515625, -0.0009465217590332031, 0.00470733642578125, -0.033172607421875, 0.001033782958984375, 0.048370361328125, 0.024932861328125, -0.0091094970703125, -0.016571044921875, -0.017059326171875, -0.022796630859375, -0.0360107421875, 0.0455322265625, -0.0200347900390625, -0.0279388427734375, -0.0460205078125, 0.0112762451171875, -0.036285400390625, 0.004817962646484375, -0.050689697265625, 0.00679779052734375, -0.01416015625, 0.023529052734375, -0.067138671875, -0.07513427734375, 0.01180267333984375, -0.0732421875, -0.0113067626953125, 0.03125, 0.01335906982421875, 0.027862548828125, -0.010284423828125, 0.008575439453125, -0.016510009765625, -0.003536224365234375, -0.0029087066650390625, 0.0163421630859375, 0.020751953125, 0.009185791015625, 0.047515869140625, 0.004764556884765625, -0.0291290283203125, 0.07281494140625, -0.0341796875, -0.08673095703125, 0.058746337890625, 0.0018033981323242188, 0.0811767578125, 0.0176849365234375, 0.0022487640380859375, 0.05462646484375, 0.0089263916015625, -0.0208740234375, -0.002170562744140625, -0.0017108917236328125, -0.00836944580078125, -0.0170135498046875, -0.00351715087890625, -0.01422882080078125, 0.003078460693359375, -0.00655364990234375, 0.0343017578125, -0.00963592529296875, 0.01427459716796875, -0.058349609375, 0.050018310546875, -0.034759521484375, 0.0477294921875, 0.007167816162109375, 0.0282745361328125, 0.00820159912109375, 0.01177978515625, -0.030517578125, -0.0233612060546875, 0.0023136138916015625, 0.03143310546875, 0.0048980712890625, -0.01230621337890625, -0.0309295654296875, -0.0277557373046875, -0.004016876220703125, -0.033447265625, -0.02398681640625, 0.0655517578125, 0.00026726722717285156, 0.002044677734375, -0.01837158203125, 0.0013380050659179688, -0.0289764404296875, 0.0460205078125, -0.046539306640625, -0.0072021484375, 0.01849365234375, 0.020721435546875, -0.018646240234375, 0.01557159423828125, -0.0017900466918945312, -0.04931640625, -0.0018129348754882812, 0.043487548828125, 0.03521728515625, 0.044769287109375, 0.002521514892578125, -0.01221466064453125, 0.057708740234375, -0.038330078125, 0.0111541748046875, -0.0151824951171875, 0.01544952392578125, 0.07183837890625, -0.037750244140625, 0.033294677734375, -0.0006756782531738281, -0.0003609657287597656, -0.0246429443359375, 0.0509033203125, -0.028656005859375, -0.0030040740966796875, -0.004306793212890625, 0.006031036376953125, 0.0062408447265625, 0.0254669189453125, 0.00835418701171875, -0.01523590087890625, 0.04168701171875, 0.0256195068359375, 0.04931640625, 0.0504150390625, 0.006893157958984375, 0.0016946792602539062, -0.01012420654296875, -0.02227783203125, -0.00860595703125, 0.0228118896484375, 0.08099365234375, -0.015899658203125, -0.0088348388671875, -0.034881591796875, 0.01035308837890625, 0.019683837890625, -0.03289794921875, 0.0246734619140625, -0.0286407470703125, -0.0163116455078125, -0.0194244384765625, -0.0133819580078125, -0.0167694091796875, -0.0270843505859375, 0.044769287109375, 0.019073486328125, 0.0626220703125, -0.020355224609375, -0.029876708984375, 0.031402587890625, 0.0044403076171875, -0.04437255859375, 0.01180267333984375, -0.04833984375, 0.05242919921875, -0.0174713134765625, 0.01483917236328125, 0.077880859375, 0.017852783203125, 0.00379180908203125, -0.011932373046875, 0.0177154541015625, -0.01061248779296875, -0.006008148193359375, -0.032196044921875, -0.0192718505859375, -0.075439453125, -0.043670654296875, 0.0011816024780273438, 0.03057861328125, -0.0188751220703125, -0.0506591796875, -0.004581451416015625, 0.01029205322265625, -0.038909912109375, -0.01068115234375, -0.01511383056640625, -0.01087188720703125, -0.002666473388671875, 0.01149749755859375, 0.01097869873046875, -0.0081634521484375, 0.00035643577575683594, -0.0069122314453125, -0.0177459716796875, -0.06402587890625, -0.0765380859375, -0.10870361328125, -0.07940673828125, 0.020355224609375, 0.0092315673828125, -0.0015726089477539062, 0.01263427734375, 0.0027370452880859375, 0.0125885009765625, -0.0128631591796875, 0.0341796875, -0.01039886474609375, -0.0189361572265625, -0.0231170654296875, -0.010833740234375, 0.00681304931640625, -0.00168609619140625, -0.0097198486328125, 0.08782958984375, 0.0428466796875, -0.050201416015625, 0.0222625732421875, -0.005283355712890625, -0.0212249755859375, 0.029937744140625, 0.0105438232421875, 0.00891876220703125, 0.0262298583984375, 0.060760498046875, -0.02227783203125, -0.0212860107421875, -0.015716552734375, -0.03472900390625, 0.05999755859375, 0.0171051025390625, -0.007251739501953125, 0.02459716796875, 0.00426483154296875, -0.010345458984375, 0.02117919921875, 0.0341796875, -0.039154052734375, 0.036224365234375, -0.0130767822265625, -0.03472900390625, -0.035858154296875, 0.03045654296875, -0.0245361328125, 0.0193023681640625, -0.0034427642822265625, -0.01849365234375, -0.03582763671875, 0.01446533203125, -0.060150146484375, -0.0018796920776367188, 0.0216522216796875, -0.0802001953125, -0.01305389404296875, -0.0306854248046875, 0.0097503662109375, -0.02276611328125, 0.0217132568359375, 0.016754150390625, -0.0225830078125, -0.0341796875, -0.0099029541015625, 0.0213775634765625, -0.01306915283203125, -0.0016689300537109375, -0.012420654296875, -0.10992431640625, 0.0023899078369140625, -0.01287078857421875, -0.053680419921875, -0.00395965576171875, -0.059417724609375, -0.0716552734375, -0.05401611328125, 0.0257720947265625, -0.00920867919921875, -0.018829345703125, 0.025146484375, -0.03204345703125, -0.0007128715515136719, -0.02978515625, -0.0088043212890625, -0.0887451171875, -0.006694793701171875, -0.0182952880859375, 0.0380859375, 0.01457977294921875, -0.046875, 0.004199981689453125, 0.04150390625, -0.01690673828125, 0.0256805419921875, 0.0021648406982421875, 0.0189971923828125, 0.00966644287109375, 0.005008697509765625, 0.010467529296875, -0.01361846923828125, 0.012603759765625, 0.0269775390625, -0.050537109375, 0.0021877288818359375, -0.01149749755859375, 0.005474090576171875, 0.0458984375, -0.05120849609375, -0.060699462890625, -0.01334381103515625, -0.038482666015625, -0.004062652587890625, -0.015045166015625, -0.0162200927734375, -0.003330230712890625, -0.0733642578125, 0.0343017578125, -0.038360595703125, 0.0117645263671875, -0.0014619827270507812, 0.09661865234375, 0.0135955810546875, 0.00421905517578125, -0.006107330322265625, -0.0022945404052734375, 0.034637451171875, 0.01312255859375, 0.01493072509765625, 0.0163421630859375, -0.026641845703125, 0.004058837890625, 0.0050811767578125, -0.0201263427734375, -0.0163726806640625, 0.01212310791015625, 0.0295562744140625, 0.0222625732421875, -0.0298919677734375, 0.014984130859375, 0.051849365234375, 0.0297393798828125, -0.01430511474609375, -0.01073455810546875, -0.0171966552734375, 0.051300048828125, -0.0169677734375, 0.0174713134765625, -0.034210205078125, -0.0135345458984375, 0.0196685791015625, 0.04150390625, 0.0389404296875, 0.0126190185546875, -0.018951416015625, 0.01161956787109375, -0.0235748291015625, 0.0231475830078125, 0.0148773193359375, 0.04876708984375, -0.0035762786865234375, 0.051025390625, 0.023162841796875, 0.01068115234375, -0.0318603515625, -0.00707244873046875, 0.0027675628662109375, -0.0198516845703125, -0.024749755859375, -0.0158843994140625, -0.0138397216796875, 0.0090789794921875, 0.02288818359375, 0.042877197265625, 0.070068359375, -0.004756927490234375, -0.01000213623046875, -0.0185699462890625, -0.047088623046875, 0.01322174072265625, -0.059417724609375, -0.0362548828125, -0.0232696533203125, -0.0110015869140625, -0.003643035888671875, 0.056549072265625, -0.017730712890625, 0.04083251953125, -0.0014972686767578125, 0.00948333740234375, 0.0137176513671875, 0.000008106231689453125, 0.017791748046875, 0.01556396484375, -0.0245361328125, -0.01284027099609375, 0.01480865478515625, -0.0401611328125, -0.05926513671875, 0.02410888671875, 0.06365966796875, -0.04571533203125, -0.00933837890625, 0.0141754150390625, 0.0160369873046875, -0.0236968994140625, 0.036407470703125, 0.0215911865234375, -0.01027679443359375, -0.043426513671875, 0.0019512176513671875, 0.038330078125, 0.01739501953125, -0.0205535888671875, 0.008514404296875, -0.030975341796875, -0.00687408447265625, 0.0343017578125, -0.041015625, 0.017486572265625, 0.0076904296875, -0.0137939453125, -0.044525146484375, -0.0012731552124023438, -0.007511138916015625, 0.03363037109375, -0.041595458984375, -0.026885986328125, 0.040008544921875, 0.00014662742614746094, 0.03887939453125, -0.0295867919921875, -0.024383544921875, -0.0021457672119140625, -0.0139312744140625, 0.035003662109375, 0.0137481689453125, -0.121826171875, 0.0163116455078125, -0.0330810546875, 0.037200927734375, -0.025543212890625, -0.0225067138671875, -0.0233917236328125, 0.0022869110107421875, -0.001567840576171875, 0.0023403167724609375, -0.006542205810546875, -0.000946044921875, -0.0101470947265625, 0.037017822265625, 0.0093841552734375, 0.033843994140625, -0.011627197265625, 0.031280517578125, 0.006717681884765625, 0.0567626953125, 0.00693511962890625, -0.0100555419921875, -0.04443359375, -0.036224365234375, 0.006778717041015625, -0.025054931640625, -0.04547119140625, -0.019744873046875, -0.0100555419921875, 0.033294677734375, 0.069580078125, -0.00843048095703125, 0.02880859375, 0.004749298095703125, 0.02203369140625, -0.01445770263671875, -0.030303955078125, -0.0171356201171875, -0.018157958984375, 0.0712890625, 0.0171966552734375, 0.03582763671875, -0.0010528564453125, -0.0364990234375, -0.0107574462890625, 0.025726318359375, -0.0080718994140625, 0.00433349609375, -0.055755615234375, 0.047088623046875, 0.046966552734375, 0.0179290771484375, 0.06298828125, 0.0012798309326171875, 0.01508331298828125, 0.041259765625, -0.0225677490234375, 0.03466796875, 0.025390625, 0.06890869140625, 0.00246429443359375, 0.0286102294921875, 0.07080078125, 0.0015096664428710938, -0.0123748779296875, 0.035125732421875, 0.0177001953125, -0.0443115234375, -0.01126861572265625, -0.0042266845703125, -0.007266998291015625, 0.00891876220703125, -0.0180816650390625, -0.00324249267578125, -0.0115966796875, 0.0413818359375, -0.0247344970703125, -0.0440673828125, -0.0089111328125, -0.01255035400390625, 0.003215789794921875, -0.0008883476257324219, 0.034515380859375, -0.01253509521484375, -0.0208282470703125, -0.06451416015625, 0.0200347900390625, -0.053680419921875, 0.039947509765625, -0.001766204833984375, -0.03033447265625, -0.032379150390625, 0.00823974609375, -0.008880615234375, -0.04803466796875, -0.0172271728515625, 0.01535797119140625, -0.006305694580078125, 0.023284912109375, 0.041534423828125, -0.0186309814453125, -0.00142669677734375, 0.01263427734375, -0.03582763671875, -0.0087127685546875, -0.02093505859375, 0.00908660888671875, 0.0135498046875, -0.0300445556640625, 0.01580810546875, -0.0171356201171875, -0.0263214111328125, -0.01465606689453125, -0.036407470703125, 0.07598876953125, -0.057281494140625, 0.0072021484375, 0.0041046142578125, 0.02923583984375, 0.0249786376953125, -0.0204010009765625, 0.0242767333984375, -0.06158447265625, -0.02972412109375, -0.01061248779296875, -0.02191162109375, -0.01380157470703125, -0.0364990234375, -0.04229736328125, 0.09112548828125, -0.0262603759765625, 0.032562255859375, 0.041534423828125, 0.037811279296875, -0.0142059326171875, 0.01267242431640625, -0.035125732421875, 0.0396728515625, 0.01342010498046875, 0.034912109375, -0.0287322998046875, 0.002109527587890625, 0.018798828125, 0.0181884765625, 0.053314208984375, 0.0253753662109375, -0.050811767578125, -0.0036373138427734375, 0.0291595458984375, 0.022918701171875, -0.0178985595703125, 0.026824951171875, -0.0182647705078125, 0.049835205078125, 0.017242431640625, -0.038604736328125, 0.0208892822265625, 0.0006465911865234375, -0.056060791015625, 0.0169677734375, 0.0242462158203125, 0.038818359375, -0.00467681884765625, -0.00954437255859375, -0.01471710205078125, 0.0006270408630371094, 0.037384033203125, -0.025146484375, -0.0017385482788085938, -0.00722503662109375, 0.022216796875, -0.09271240234375, -0.02435302734375, -0.0242462158203125, 0.032745361328125, 0.0147705078125, 0.01465606689453125, 0.0302734375, 0.002094268798828125, 0.036407470703125, 0.0028743743896484375, 0.0164642333984375, -0.00010013580322265625, 0.004566192626953125, 0.03863525390625, 0.04156494140625, 0.006397247314453125, -0.0206298828125, -0.057098388671875, 0.047821044921875, 0.05755615234375, -0.00982666015625, -0.049652099609375, 0.0176544189453125, 0.03033447265625, 0.01580810546875, 0.0188140869140625, 0.0225067138671875, -0.0024967193603515625, 0.07330322265625, -0.07806396484375, -0.023834228515625, 0.042694091796875, 0.03558349609375, -0.01088714599609375, -0.047149658203125, -0.002727508544921875, -0.038543701171875, -0.007427215576171875, -0.014251708984375, 0.0014333724975585938, 0.051513671875, 0.0200347900390625, 0.00965118408203125, -0.058074951171875, -0.0189056396484375, -0.004970550537109375, 0.01427459716796875, -0.002376556396484375, 0.00687408447265625, -0.0289306640625, -0.027618408203125, 0.0270538330078125, 0.050537109375, 0.0308380126953125, -0.033355712890625, -0.01081085205078125, -0.0372314453125, -0.0027256011962890625, 0.003490447998046875, 0.0165863037109375, -0.0134429931640625, -0.00821685791015625, -0.037017822265625, 0.0106201171875, 0.0188751220703125, -0.005191802978515625, 0.01453399658203125, -0.0118865966796875, 0.03143310546875, -0.003414154052734375, 0.0239715576171875, 0.008880615234375, 0.007293701171875, 0.02301025390625, -0.0027217864990234375, 0.00411224365234375, 0.035919189453125, -0.044219970703125, -0.0220947265625, -0.0367431640625, -0.021697998046875, 0.034912109375, 0.053466796875, 0.02978515625, -0.0245513916015625, -0.0260162353515625, 0.02178955078125, 0.034088134765625, -0.042510986328125, -0.0069732666015625, 0.0372314453125, 0.017852783203125, 0.00901031494140625, 0.002376556396484375, 0.028594970703125, 0.017852783203125, -0.0030689239501953125, 0.0012731552124023438, 0.10919189453125, -0.041595458984375, -0.01556396484375, -0.01751708984375, -0.0108184814453125, -0.006114959716796875, -0.02130126953125, 0.023162841796875, -0.011260986328125, -0.007472991943359375, 0.01186370849609375, -0.046142578125, -0.00814056396484375, 0.031829833984375, -0.021942138671875, 0.0019779205322265625, -0.0494384765625, 0.034759521484375, 0.003963470458984375, 0.046234130859375, -0.057220458984375, -0.09710693359375, -0.059661865234375, 0.011505126953125, -0.0280914306640625, -0.00403594970703125, 0.0110626220703125, 0.0293731689453125, 0.0212860107421875, -0.0009813308715820312, -0.0013093948364257812, -0.0187225341796875, 0.0189208984375, 0.041748046875, 0.004863739013671875, 0.02825927734375, -0.00025081634521484375, -0.02728271484375, 0.03167724609375, -0.0082855224609375, -0.01611328125, 0.01502227783203125, -0.0123443603515625, 0.037506103515625, -0.01629638671875, 0.0260162353515625, -0.0290069580078125, -0.0012178421020507812, 0.002368927001953125, 0.0259552001953125, 0.021087646484375, -0.004474639892578125, -0.01476287841796875, -0.02325439453125, -0.000052034854888916016, 0.0036754608154296875, -0.0014476776123046875, -0.0088958740234375, 0.01302337646484375, 0.00931549072265625, 0.0301971435546875, -0.03131103515625, -0.026947021484375, 0.02325439453125, -0.0751953125, 0.043701171875, -0.058624267578125, 0.00821685791015625, 0.0007791519165039062, 0.029754638671875, -0.0037689208984375, 0.00272369384765625, -0.0067138671875, 0.00867462158203125, 0.007205963134765625, 0.0226593017578125, 0.0277099609375, -0.042022705078125, -0.0163421630859375, -0.005451202392578125, 0.03106689453125, 0.0302734375, 0.06475830078125, 0.0018224716186523438, 0.01727294921875, 0.004764556884765625, -0.0269927978515625, -0.034576416015625, 0.0115203857421875, -0.0275421142578125, -0.0006089210510253906, -0.06671142578125, 0.00083160400390625, 0.001636505126953125, -0.05133056640625, -0.0538330078125, 0.10638427734375, -0.0379638671875, -0.004161834716796875, -0.0419921875, -0.01514434814453125, 0.00981903076171875, 0.00615692138671875, -0.0159149169921875, -0.00792694091796875, -0.0465087890625, 0.0189971923828125, 0.01207733154296875, 0.033782958984375, 0.0146331787109375, -0.00042748451232910156, -0.006282806396484375, 0.0248565673828125, 0.01074981689453125, 0.0212554931640625, 0.01262664794921875, -0.02105712890625, 0.0360107421875, 0.0196685791015625, -0.048583984375, 0.003765106201171875, -0.006927490234375, 0.028717041015625, -0.00727081298828125, -0.063720703125, -0.0251007080078125, -0.02093505859375, 0.100341796875, 0.0261688232421875, 0.0123138427734375, -0.03179931640625, -0.0008034706115722656, -0.006778717041015625, -0.035247802734375, 0.0068206787109375, 0.02960205078125, -0.048248291015625, -0.004058837890625, -0.0008664131164550781, 0.0169677734375, -0.033447265625, -0.032318115234375, -0.03289794921875, -0.00876617431640625, -0.0197601318359375, 0.01788330078125, -0.005706787109375, 0.0239105224609375, 0.0167236328125, -0.0258636474609375, -0.01507568359375, -0.0140838623046875, -0.00531005859375, -0.016937255859375, -0.02484130859375, 0.0445556640625, 0.0304412841796875, -0.01389312744140625, 0.00528717041015625, 0.0445556640625, 0.02984619140625, 0.005077362060546875, -0.040802001953125, 0.01538848876953125, -0.0015974044799804688, -0.01508331298828125, -0.0219879150390625, -0.005901336669921875, 0.0283660888671875, -0.0258636474609375, 0.053497314453125, 0.000012695789337158203, 0.041351318359375, 0.0087432861328125, 0.031219482421875, -0.03118896484375, 0.005710601806640625, -0.00402069091796875, -0.03240966796875, -0.0098114013671875, -0.0185546875, -0.0183563232421875, -0.07049560546875, 0.024871826171875, -0.0760498046875, 0.010955810546875, 0.027740478515625 ]
ad5b9621895d0986b6fd6c3c10d0174bac49e43a
Wordpress Stackexchange Q: How do I remove specific styles from the parent theme css using the child theme css? There are some styles in my parent theme that I would simply remove from the stylesheet if I was not using a child theme. Obviously, I do not want to remove them from the parent css, but is there a way to effectively "remove" the styles using my child theme? A: The only way to "remove" styles from the parent theme is to override them in your child theme's css. For example if you have the following declaration in your parent theme: .someclass{ width: 200px; float: left; } You can override the width and float by declaring the following in your child theme: .someclass{ width: auto; float: none; }
Q: How do I remove specific styles from the parent theme css using the child theme css? There are some styles in my parent theme that I would simply remove from the stylesheet if I was not using a child theme. Obviously, I do not want to remove them from the parent css, but is there a way to effectively "remove" the styles using my child theme? A: The only way to "remove" styles from the parent theme is to override them in your child theme's css. For example if you have the following declaration in your parent theme: .someclass{ width: 200px; float: left; } You can override the width and float by declaring the following in your child theme: .someclass{ width: auto; float: none; } A: I know this is old but I've been thinking about it lately. I have the same issue, if I find myself very extensively modifying the parent stylesheet, it can get to the point where I am loading an enormous number of styles, simply to override them in the child theme. When I am dealing with this kind of project, it is usually the case that I'm doing much more modification to the CSS than to the php. I want to use a child theme for the php structure and html but the css is effectively my own. For that kind of project, instead of enqueuing the parent css, I copy it into the child theme stylesheet and then modify it, so that the only parts of the parent css that I retain are the ones I've specifically chosen to reuse. You don't have to use a parent theme's css at all. You can custom write all the css, if you like, and only use the php templates from your parent. The php is much more likely to have security issues than the css, which is just a formatting system, so you can rely on a tested and updated set of php /html and just format it yourself. A: Effectively, yes. Unless I am misunderstanding your question, this is just basic CSS specificity. I assume you are wanting to use most of the CSS from the parent theme, but only some of it is not wanted, since the CSS isn't, by default, loaded from the parent theme. All the normal rules of overriding or increasing specificity apply. The simplest (but most brute force) method is to just create rules that use !important to override the rules you don't want. Otherwise you should just rely on the rule cascade and specificity to properly target the things you want and set the styles you want. There is nothing built into wordpress to filter, cut, delete or remove bits of CSS from a parent theme, if that's what you are asking. A: I don't think there is a way, only workarounds. Edit: Explanation: By creating a child theme you are, by definition, loading the CSS of the parent theme. Therefore I don't see a way you could exclude some parts of that CSS. The only effective way would be to override it. The most straightforward way would be to use the selectors and rules you want to override, and set them to new or default values. Since child theme CSS is lower up in the "cascade" of styles than the parent CSS, there shouldn't be a need for "!important" statements and such.
wordpress
{ "language": "en", "length": 565, "provenance": "stackexchange_00019.jsonl.gz:445378", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145015" }
[ -0.01444244384765625, 0.0157928466796875, -0.038909912109375, 0.031768798828125, 0.00151824951171875, -0.032958984375, 0.0296783447265625, -0.026397705078125, -0.036956787109375, 0.03753662109375, 0.00749969482421875, 0.020599365234375, -0.01837158203125, -0.034210205078125, 0.004619598388671875, -0.02008056640625, 0.0380859375, -0.0221099853515625, 0.01763916015625, 0.00994110107421875, -0.015594482421875, 0.031158447265625, 0.03851318359375, 0.05487060546875, 0.054779052734375, -0.03851318359375, 0.0225677490234375, -0.0278167724609375, 0.030303955078125, -0.02301025390625, 0.0232391357421875, -0.004398345947265625, -0.0014543533325195312, 0.040985107421875, -0.019439697265625, -0.054107666015625, -0.007778167724609375, 0.00775909423828125, 0.004161834716796875, 0.0143585205078125, 0.019927978515625, -0.0076141357421875, -0.035736083984375, 0.03753662109375, -0.03546142578125, -0.03497314453125, 0.0018587112426757812, -0.029541015625, -0.0279541015625, -0.02825927734375, 0.03985595703125, -0.02392578125, 0.06768798828125, -0.040679931640625, -0.018646240234375, 0.005146026611328125, -0.028472900390625, 0.040191650390625, 0.03143310546875, -0.020904541015625, -0.024078369140625, -0.0005674362182617188, 0.01898193359375, -0.0030956268310546875, 0.0303192138671875, -0.004764556884765625, -0.0018053054809570312, 0.0133514404296875, -0.0323486328125, 0.05316162109375, 0.049468994140625, -0.033599853515625, 0.0004279613494873047, -0.027374267578125, -0.0254669189453125, 0.001094818115234375, -0.0021114349365234375, -0.0173492431640625, 0.0285186767578125, -0.0167236328125, 0.0006055831909179688, 0.00460052490234375, -0.039215087890625, -0.041656494140625, 0.047821044921875, 0.006008148193359375, -0.0172271728515625, -0.0123291015625, -0.038238525390625, -0.0193328857421875, -0.035369873046875, -0.036956787109375, -0.03924560546875, -0.00786590576171875, 0.005001068115234375, -0.01096343994140625, 0.04931640625, 0.051239013671875, 0.0053863525390625, 0.00943756103515625, -0.00978851318359375, -0.040771484375, 0.017059326171875, -0.0306854248046875, -0.01444244384765625, 0.0235748291015625, -0.0159759521484375, 0.021331787109375, 0.035308837890625, 0.0506591796875, 0.0288543701171875, 0.003368377685546875, -0.0165557861328125, 0.011566162109375, -0.041168212890625, 0.0254058837890625, -0.0254974365234375, -0.01218414306640625, -0.034820556640625, 0.014312744140625, 0.0224761962890625, 0.0145111083984375, -0.0251007080078125, 0.0189056396484375, -0.00446319580078125, -0.01329803466796875, -0.02996826171875, 0.00730133056640625, 0.053466796875, -0.00799560546875, -0.054840087890625, 0.0032291412353515625, 0.06500244140625, 0.042755126953125, 0.053009033203125, -0.0149383544921875, 0.04644775390625, -0.0024356842041015625, 0.004734039306640625, 0.0015869140625, 0.044281005859375, -0.0323486328125, -0.0177459716796875, 0.032379150390625, -0.007678985595703125, 0.00879669189453125, 0.01418304443359375, 0.0274810791015625, -0.00269317626953125, -0.042510986328125, 0.04302978515625, -0.060394287109375, 0.0469970703125, 0.008575439453125, -0.001194000244140625, -0.01152801513671875, 0.06298828125, -0.0267181396484375, -0.042236328125, -0.05938720703125, -0.0160980224609375, 0.0026397705078125, 0.040374755859375, 0.00933837890625, -0.010498046875, 0.0059661865234375, -0.021759033203125, 0.0005192756652832031, 0.0183563232421875, -0.041900634765625, 0.026702880859375, -0.0751953125, 0.006374359130859375, 0.00664520263671875, -0.0016841888427734375, 0.0750732421875, -0.008148193359375, -0.0188751220703125, 0.0057220458984375, 0.0292510986328125, -0.0040283203125, -0.033477783203125, -0.009674072265625, 0.012298583984375, -0.007770538330078125, -0.0404052734375, 0.0135498046875, -0.0007915496826171875, 0.0021038055419921875, 0.02557373046875, 0.00659942626953125, 0.006893157958984375, -0.00634002685546875, -0.0284881591796875, 0.03680419921875, 0.0037441253662109375, -0.0258331298828125, -0.0107879638671875, 0.00917816162109375, -0.01168060302734375, 0.01338958740234375, -0.00278472900390625, 0.02642822265625, -0.0099029541015625, -0.0277557373046875, 0.0247650146484375, -0.0309906005859375, 0.038818359375, -0.041961669921875, 0.01580810546875, 0.01493072509765625, -0.027313232421875, -0.013641357421875, -0.0182037353515625, -0.00693511962890625, -0.0088043212890625, 0.027374267578125, 0.0450439453125, 0.0155181884765625, -0.0157623291015625, 0.047119140625, 0.0027408599853515625, 0.039581298828125, 0.031158447265625, 0.020050048828125, 0.0107269287109375, -0.0343017578125, -0.006610870361328125, -0.0028553009033203125, 0.0196380615234375, -0.052093505859375, 0.03460693359375, 0.0033359527587890625, 0.0379638671875, -0.00751495361328125, 0.008880615234375, 0.0019779205322265625, -0.01947021484375, -0.00806427001953125, 0.01263427734375, 0.0287933349609375, 0.01557159423828125, -0.0251007080078125, -0.02203369140625, 0.051849365234375, -0.0043792724609375, 0.002536773681640625, -0.0160064697265625, 0.01473236083984375, -0.01561737060546875, 0.0258636474609375, -0.042022705078125, 0.04425048828125, -0.0484619140625, 0.01605224609375, 0.0261077880859375, -0.01580810546875, -0.032684326171875, -0.01168060302734375, 0.0162811279296875, 0.0225677490234375, -0.0032825469970703125, -0.027679443359375, 0.0160675048828125, 0.029998779296875, -0.0269622802734375, -0.010498046875, -0.020294189453125, -0.0096893310546875, 0.00531005859375, 0.0274810791015625, -0.05902099609375, 0.00885009765625, 0.043182373046875, -0.0015087127685546875, -0.00745391845703125, -0.016387939453125, -0.01995849609375, -0.0034961700439453125, 0.0171661376953125, -0.0046234130859375, 0.01276397705078125, 0.01209259033203125, -0.00209808349609375, -0.007965087890625, -0.035919189453125, 0.03466796875, 0.039215087890625, 0.002780914306640625, 0.029541015625, 0.0236968994140625, 0.0653076171875, -0.00002491474151611328, 0.0372314453125, 0.01959228515625, 0.01898193359375, -0.0247802734375, 0.02349853515625, 0.00605010986328125, 0.00197601318359375, 0.00826263427734375, 0.04559326171875, -0.00749969482421875, 0.0136260986328125, 0.0189971923828125, -0.0199432373046875, 0.013153076171875, -0.00006335973739624023, -0.001232147216796875, 0.00508880615234375, -0.049224853515625, 0.0157470703125, 0.0277252197265625, 0.025299072265625, 0.01006317138671875, -0.0226898193359375, 0.006084442138671875, 0.0404052734375, -0.0180816650390625, 0.0011262893676757812, 0.0103759765625, -0.0256500244140625, -0.048583984375, 0.00637054443359375, -0.03839111328125, 0.010833740234375, 0.0115966796875, -0.0089111328125, 0.051483154296875, -0.07080078125, -0.026123046875, -0.049285888671875, -0.0743408203125, -0.007312774658203125, 0.02471923828125, 0.01126861572265625, -0.0031948089599609375, 0.09375, 0.01047515869140625, -0.03680419921875, -0.0179443359375, 0.0225372314453125, 0.00127410888671875, -0.00353240966796875, 0.0183258056640625, -0.006969451904296875, -0.029449462890625, 0.034515380859375, -0.016510009765625, -0.011322021484375, -0.0196685791015625, -0.0260772705078125, -0.03582763671875, 0.0248565673828125, -0.027984619140625, 0.0180511474609375, 0.05718994140625, -0.0136260986328125, -0.0189361572265625, -0.049407958984375, -0.09637451171875, 0.005046844482421875, -0.07470703125, 0.050872802734375, 0.04364013671875, 0.006748199462890625, -0.0166473388671875, 0.04266357421875, 0.045166015625, -0.005977630615234375, 0.0211181640625, -0.034423828125, 0.06732177734375, 0.0236968994140625, 0.060272216796875, -0.049530029296875, 0.0077972412109375, -0.0281982421875, 0.024383544921875, -0.002887725830078125, 0.0062255859375, -0.016387939453125, 0.01052093505859375, -0.035858154296875, -0.036651611328125, 0.029632568359375, -0.016754150390625, 0.026397705078125, 0.004924774169921875, -0.01104736328125, 0.0284576416015625, 0.09564208984375, -0.042633056640625, -0.032928466796875, -0.0006780624389648438, 0.029266357421875, -0.02374267578125, -0.0303497314453125, -0.01311492919921875, -0.01366424560546875, -0.1170654296875, -0.005031585693359375, -0.004734039306640625, -0.043121337890625, -0.006557464599609375, 0.0010662078857421875, -0.083984375, -0.0521240234375, 0.0170135498046875, 0.0439453125, -0.02520751953125, -0.004688262939453125, -0.0400390625, 0.0012063980102539062, 0.006221771240234375, -0.00930023193359375, -0.031097412109375, -0.0115966796875, -0.04718017578125, 0.0576171875, 0.02044677734375, 0.03851318359375, 0.00909423828125, 0.050567626953125, 0.0057373046875, 0.0004661083221435547, 0.00647735595703125, 0.0019989013671875, -0.0197601318359375, 0.0194549560546875, -0.00962066650390625, -0.019775390625, -0.004852294921875, -0.0105133056640625, -0.034820556640625, 0.03460693359375, -0.002300262451171875, 0.0152740478515625, 0.033660888671875, -0.01416015625, -0.0167388916015625, -0.0280303955078125, -0.035003662109375, -0.0115509033203125, -0.0279388427734375, 0.00368499755859375, -0.0221405029296875, -0.022674560546875, 0.0159912109375, 0.0445556640625, -0.0015420913696289062, -0.0009760856628417969, 0.04443359375, 0.0228271484375, -0.043701171875, -0.0199737548828125, -0.007312774658203125, 0.0251007080078125, 0.0294952392578125, 0.01401519775390625, -0.0263519287109375, -0.029876708984375, 0.054290771484375, 0.005649566650390625, -0.02325439453125, -0.0034809112548828125, 0.095703125, -0.00821685791015625, -0.049713134765625, 0.048248291015625, -0.0304718017578125, -0.01280975341796875, -0.00864410400390625, -0.004840850830078125, -0.002544403076171875, 0.025482177734375, 0.0179595947265625, 0.0377197265625, -0.048553466796875, -0.041351318359375, -0.00519561767578125, 0.001201629638671875, -0.009765625, 0.0256500244140625, 0.04681396484375, -0.01119232177734375, 0.0037593841552734375, -0.01451873779296875, 0.024169921875, -0.06158447265625, 0.0128631591796875, -0.0865478515625, 0.0132904052734375, -0.0225982666015625, -0.039459228515625, -0.007579803466796875, -0.006092071533203125, 0.033966064453125, 0.0019741058349609375, -0.0297698974609375, -0.01739501953125, 0.0010766983032226562, 0.04962158203125, -0.006282806396484375, -0.0093231201171875, 0.035858154296875, -0.013427734375, -0.00774383544921875, -0.0238037109375, -0.0236358642578125, -0.0290069580078125, -0.04498291015625, 0.00046563148498535156, -0.01197052001953125, -0.0178985595703125, 0.06561279296875, -0.05987548828125, -0.01062774658203125, -0.0021991729736328125, -0.0020694732666015625, -0.03631591796875, -0.04656982421875, 0.01399993896484375, 0.01514434814453125, -0.0008687973022460938, 0.052337646484375, -0.046600341796875, 0.0838623046875, -0.032073974609375, -0.052734375, 0.0217742919921875, 0.0723876953125, -0.017059326171875, 0.00617218017578125, 0.006465911865234375, 0.0019397735595703125, -0.0226898193359375, -0.01076507568359375, -0.040985107421875, -0.0180511474609375, -0.01502227783203125, -0.01873779296875, 0.003620147705078125, 0.0270538330078125, -0.01102447509765625, -0.01439666748046875, -0.042144775390625, -0.01349639892578125, 0.034454345703125, -0.045989990234375, 0.01169586181640625, 0.00396728515625, -0.04400634765625, -0.0019817352294921875, 0.004360198974609375, -0.10089111328125, -0.06549072265625, 0.006282806396484375, 0.00783538818359375, 0.0031909942626953125, -0.01274871826171875, 0.025970458984375, -0.044952392578125, 0.0028553009033203125, -0.03887939453125, -0.002658843994140625, 0.06451416015625, 0.03399658203125, -0.0274505615234375, 0.01126861572265625, -0.062408447265625, -0.025238037109375, -0.080810546875, -0.050872802734375, -0.053466796875, 0.0036869049072265625, -0.0391845703125, -0.006046295166015625, -0.0157012939453125, 0.0057830810546875, -0.023223876953125, 0.0293121337890625, 0.016510009765625, -0.0273590087890625, -0.03399658203125, 0.08770751953125, -0.0229034423828125, 0.0197906494140625, 0.00988006591796875, 0.0367431640625, -0.006961822509765625, -0.01345062255859375, 0.0121307373046875, 0.0004582405090332031, -0.0345458984375, -0.0072784423828125, -0.040802001953125, -0.0099029541015625, 0.0687255859375, -0.0194091796875, 0.021331787109375, -0.028167724609375, 0.0001354217529296875, -0.039764404296875, 0.046875, -0.0845947265625, -0.00269317626953125, -0.03021240234375, 0.0196990966796875, 0.018218994140625, -0.01324462890625, -0.01806640625, 0.0094451904296875, 0.0059051513671875, 0.01313018798828125, -0.0011425018310546875, -0.017913818359375, 0.03289794921875, 0.01244354248046875, -0.030853271484375, 0.03125, 0.0059051513671875, 0.0187835693359375, 0.040802001953125, -0.0046234130859375, -0.012359619140625, -0.0047149658203125, 0.0153961181640625, 0.004436492919921875, 0.0131378173828125, 0.01226043701171875, -0.00923919677734375, -0.01617431640625, 0.04241943359375, 0.044952392578125, -0.06390380859375, -0.0109100341796875, -0.0297393798828125, -0.0032558441162109375, 0.052886962890625, 0.00043392181396484375, 0.0008525848388671875, -0.00327301025390625, -0.0305023193359375, 0.0310211181640625, -0.027313232421875, -0.005558013916015625, 0.01024627685546875, -0.007457733154296875, -0.0052642822265625, 0.01261138916015625, 0.00635528564453125, -0.04864501953125, 0.0006303787231445312, 0.0457763671875, -0.0263214111328125, 0.0026397705078125, 0.0024738311767578125, -0.004138946533203125, -0.0487060546875, -0.0455322265625, -0.0206298828125, -0.0275726318359375, -0.0174560546875, 0.004116058349609375, -0.022796630859375, -0.00920867919921875, 0.03369140625, -0.046112060546875, 0.0278167724609375, -0.00884246826171875, -0.022186279296875, -0.054046630859375, -0.0198974609375, 0.024627685546875, -0.05084228515625, -0.058319091796875, 0.027435302734375, -0.0782470703125, -0.0292510986328125, 0.004184722900390625, 0.0257568359375, 0.047576904296875, -0.0406494140625, -0.0171966552734375, 0.0219268798828125, 0.007720947265625, 0.006847381591796875, -0.026092529296875, 0.019287109375, -0.046661376953125, 0.002471923828125, -0.0114898681640625, 0.0211029052734375, 0.0191192626953125, -0.024566650390625, -0.066162109375, 0.07293701171875, -0.0223388671875, 0.042327880859375, 0.0212249755859375, 0.026702880859375, -0.01398468017578125, -0.005397796630859375, -0.0109710693359375, 0.038848876953125, 0.06256103515625, -0.0159912109375, 0.0057525634765625, -0.0167694091796875, 0.0047454833984375, 0.022796630859375, 0.037872314453125, -0.01189422607421875, -0.009063720703125, -0.005390167236328125, 0.0980224609375, 0.050567626953125, 0.027862548828125, 0.01476287841796875, -0.023040771484375, -0.0126800537109375, -0.0186920166015625, -0.0298919677734375, 0.0273284912109375, -0.035888671875, -0.0235595703125, -0.007213592529296875, 0.01497650146484375, 0.0146484375, 0.028717041015625, 0.0218505859375, -0.03924560546875, 0.025299072265625, 0.040771484375, -0.01001739501953125, 0.0513916015625, 0.003002166748046875, 0.035003662109375, -0.06683349609375, -0.01556396484375, -0.00897979736328125, 0.048797607421875, -0.0115814208984375, 0.0015420913696289062, -0.032684326171875, 0.00659942626953125, -0.0157012939453125, -0.0198516845703125, -0.00797271728515625, 0.05133056640625, -0.05450439453125, -0.00531768798828125, 0.01244354248046875, 0.0220184326171875, 0.005336761474609375, 0.031951904296875, -0.0282440185546875, -0.01331329345703125, -0.0254974365234375, -0.00992584228515625, 0.0234375, -0.0004184246063232422, -0.0188446044921875, -0.0263671875, -0.01332855224609375, -0.08282470703125, -0.03759765625, 0.007720947265625, -0.01337432861328125, 0.0167999267578125, 0.0181121826171875, 0.0203399658203125, 0.053863525390625, -0.036834716796875, -0.01220703125, -0.012451171875, -0.050445556640625, 0.018890380859375, 0.0028228759765625, 0.03192138671875, -0.001148223876953125, 0.0413818359375, 0.0042572021484375, -0.04632568359375, -0.00811004638671875, 0.0174102783203125, 0.0323486328125, -0.00035500526428222656, 0.07232666015625, -0.0008854866027832031, 0.01126861572265625, 0.0001596212387084961, -0.01221466064453125, 0.0295257568359375, 0.003391265869140625, -0.06927490234375, -0.0297088623046875, -0.031951904296875, -0.034637451171875, 0.01291656494140625, -0.0307464599609375, 0.0011205673217773438, 0.0126953125, -0.0128021240234375, -0.01071929931640625, -0.0111083984375, 0.0543212890625, 0.0092315673828125, 0.0208740234375, 0.006473541259765625, -0.00968170166015625, 0.00017976760864257812, 0.013702392578125, -0.01442718505859375, 0.03814697265625, -0.0411376953125, -0.021087646484375, -0.0029659271240234375, 0.04400634765625, 0.0175933837890625, 0.0232391357421875, -0.0146331787109375, 0.055633544921875, 0.0261688232421875, -0.029022216796875, -0.0195770263671875, 0.0180511474609375, 0.02642822265625, -0.022216796875, -0.00882720947265625, 0.00957489013671875, -0.03619384765625, -0.0301666259765625, -0.012603759765625, 0.042266845703125, 0.005115509033203125, 0.049346923828125, -0.0264892578125, 0.0272369384765625, -0.01485443115234375, 0.0162506103515625, -0.0108795166015625, -0.019500732421875, 0.039520263671875, 0.006198883056640625, 0.0005140304565429688, -0.01387786865234375, -0.093017578125, 0.03326416015625, 0.028656005859375, 0.0025882720947265625, 0.0556640625, -0.0011072158813476562, -0.0015964508056640625, -0.039825439453125, -0.01242828369140625, -0.0196075439453125, 0.0101318359375, -0.004543304443359375, -0.0128173828125, 0.027252197265625, -0.0111541748046875, -0.020172119140625, -0.006618499755859375, 0.045166015625, -0.0286102294921875, 0.04437255859375, 0.00998687744140625, 0.06982421875, 0.0220184326171875, 0.00811767578125, -0.1021728515625, 0.0305328369140625, 0.0017633438110351562, 0.00400543212890625, 0.006862640380859375, 0.10467529296875, 0.046630859375, -0.042144775390625, 0.04608154296875, 0.046630859375, 0.056732177734375, -0.0095062255859375, 0.009033203125, 0.0303497314453125, -0.0069580078125, 0.0008783340454101562, 0.0013971328735351562, -0.01317596435546875, -0.038299560546875, -0.00972747802734375, 0.0219573974609375, -0.0297698974609375, -0.0277557373046875, -0.044677734375, 0.004764556884765625, 0.05047607421875, 0.0291748046875, -0.07452392578125, 0.034027099609375, -0.002277374267578125, 0.0270233154296875, 0.0274810791015625, 0.007415771484375, -0.0179595947265625, -0.019866943359375, -0.02203369140625, -0.04736328125, -0.05291748046875, 0.064453125, -0.0546875, 0.01267242431640625, -0.00302886962890625, -0.016082763671875, 0.061004638671875, 0.0183258056640625, 0.029815673828125, 0.06951904296875, -0.003780364990234375, -0.033203125, 0.01129150390625, 0.00830078125, 0.007419586181640625, -0.038238525390625, 0.00658416748046875, -0.035552978515625, -0.002117156982421875, -0.013641357421875, -0.00982666015625, 0.002605438232421875, -0.0304412841796875, -0.05731201171875, 0.042755126953125, -0.003063201904296875, -0.041534423828125, -0.0003561973571777344, 0.038787841796875, -0.0078887939453125, -0.012939453125, 0.002288818359375, 0.0208892822265625, 0.036346435546875, 0.01032257080078125, 0.031158447265625, 0.043304443359375, -0.02386474609375, 0.04376220703125, -0.061431884765625, 0.05169677734375, 0.023284912109375, 0.040771484375, -0.05255126953125, 0.032318115234375, 0.0020961761474609375, 0.0222015380859375, -0.01428985595703125, 0.05377197265625, 0.03948974609375, -0.004230499267578125, -0.007633209228515625, -0.006755828857421875, -0.0130462646484375, -0.02484130859375, 0.0345458984375, 0.0386962890625, 0.0007462501525878906, 0.0185699462890625, -0.03631591796875, -0.010040283203125, 0.00555419921875, -0.0010023117065429688, 0.01332855224609375, -0.0677490234375, -0.0096893310546875, 0.0238494873046875, -0.010772705078125, 0.0274810791015625, -0.0416259765625, -0.0306549072265625, -0.007190704345703125, -0.01080322265625, 0.023956298828125, -0.060760498046875, 0.01515960693359375, 0.025299072265625, -0.0034465789794921875, 0.06207275390625, -0.0151519775390625, 0.00176239013671875, 0.057830810546875, 0.0728759765625, 0.045257568359375, 0.051727294921875, -0.05322265625, 0.0292510986328125, 0.01076507568359375, 0.033416748046875, -0.0601806640625, -0.0230865478515625, -0.035186767578125, -0.00711822509765625, 0.01471710205078125, -0.01189422607421875, -0.01171112060546875, 0.0171356201171875, 0.00969696044921875, 0.037628173828125, -0.00249481201171875, 0.035614013671875, -0.0209197998046875, 0.045867919921875, -0.0045928955078125, -0.015655517578125, 0.00789642333984375, -0.010223388671875, -0.004695892333984375, -0.01751708984375, -0.00016891956329345703, -0.0858154296875, 0.06610107421875, 0.003940582275390625, 0.008880615234375, 0.04388427734375 ]
0a9c856ea739e6e56c36a7ed3e8243dfbc36a713
Wordpress Stackexchange Q: Allow anonymous user to access Themes Customizer I created a theme and use Themes Customizer. Is there any way I can give anonymous users access to the themes customizer without the ability to save it? It will be very convenient in terms of user experience if users are able to know what kind of theme customization we offer and how they can change it. Thank you A: Try using this solution to give access to users to a specific page without them having to register an account. http://codex.wordpress.org/Function_Reference/wp_signon Let me know if it does not work or you need further help.
Q: Allow anonymous user to access Themes Customizer I created a theme and use Themes Customizer. Is there any way I can give anonymous users access to the themes customizer without the ability to save it? It will be very convenient in terms of user experience if users are able to know what kind of theme customization we offer and how they can change it. Thank you A: Try using this solution to give access to users to a specific page without them having to register an account. http://codex.wordpress.org/Function_Reference/wp_signon Let me know if it does not work or you need further help. A: Its bit tricky how implementation to let anonymous user to log into your themes customizer. here is step by step i use : * *first is to create user with demo role (demo role is not available on WordPress, so you will need to write code like bellow to add demo role) function jeg_demo_role () { add_role( 'demo', 'Demo', array( 'read' => true, 'edit_theme_options' => true, 'edit_posts' => false, 'delete_posts' => false )); } add_action('init', 'jeg_demo_role'); *now you will need to create template that will log user automatically and redirect them to theme customizer. /** Template Name: Demo - Theme Customizer */ $creds = array( 'user_login' => 'demo', 'user_password' => 'demo' ); $user = wp_signon( $creds, false ); if ( is_wp_error( $user ) ) { echo $user->get_error_message(); } else { $customizerurl = get_admin_url() . 'customize.php'; wp_redirect( $customizerurl ); } exit; *don't forget your customizer, and disable save option on customizer function jeg_is_demo_user() { if(is_user_logged_in()) { $current_user = wp_get_current_user(); if($current_user->roles[0] === 'demo') { return true; } } return false; } /** disable save on demo */ function jeg_customize_save() { if(jeg_is_demo_user()) { exit; } } add_action('customize_save', 'jeg_customize_save'); *Then you will only need to create page with those template, and when your user head to those url, they will automatically redirected into other page.
wordpress
{ "language": "en", "length": 314, "provenance": "stackexchange_00019.jsonl.gz:445397", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145092" }
[ 0.029571533203125, -0.00004357099533081055, 0.01461029052734375, -0.033294677734375, 0.017425537109375, -0.002719879150390625, 0.0017061233520507812, -0.031463623046875, -0.03082275390625, 0.0081024169921875, -0.005863189697265625, -0.0110931396484375, -0.028656005859375, -0.035308837890625, 0.0169525146484375, -0.057037353515625, 0.0195465087890625, 0.032745361328125, 0.0521240234375, -0.0178985595703125, -0.0010213851928710938, -0.01328277587890625, 0.05328369140625, 0.040496826171875, 0.052398681640625, 0.025299072265625, 0.050872802734375, 0.00012445449829101562, 0.03375244140625, 0.0127105712890625, 0.048797607421875, -0.08197021484375, -0.0005664825439453125, 0.0282440185546875, 0.0232391357421875, 0.02337646484375, -0.007312774658203125, 0.0241851806640625, 0.04583740234375, -0.018341064453125, 0.036346435546875, -0.0142974853515625, -0.02996826171875, 0.037506103515625, -0.02264404296875, -0.04095458984375, 0.0374755859375, -0.034393310546875, 0.006183624267578125, 0.03326416015625, 0.004673004150390625, 0.025238037109375, 0.007411956787109375, -0.018463134765625, -0.01476287841796875, -0.050445556640625, 0.0095977783203125, -0.0273590087890625, 0.05010986328125, -0.0297088623046875, -0.048248291015625, -0.053863525390625, 0.04681396484375, -0.01312255859375, 0.01474761962890625, -0.01751708984375, -0.0391845703125, 0.032806396484375, -0.0159912109375, 0.01470947265625, 0.0183868408203125, -0.022247314453125, 0.02203369140625, -0.0054473876953125, -0.01306915283203125, -0.023651123046875, -0.0180511474609375, -0.020538330078125, 0.040863037109375, 0.00785064697265625, -0.01525115966796875, -0.049163818359375, -0.02099609375, -0.0297698974609375, -0.003665924072265625, -0.00662994384765625, -0.00850677490234375, 0.004322052001953125, 0.01983642578125, 0.005779266357421875, 0.0003292560577392578, 0.00005549192428588867, -0.00670623779296875, 0.06982421875, 0.00594329833984375, -0.00543975830078125, 0.013458251953125, 0.04156494140625, -0.0005631446838378906, 0.01561737060546875, 0.01641845703125, -0.0460205078125, 0.0290374755859375, -0.037322998046875, -0.02410888671875, 0.04388427734375, 0.0313720703125, 0.0096435546875, -0.01904296875, 0.0197296142578125, -0.003459930419921875, -0.040069580078125, 0.04541015625, -0.0158538818359375, 0.006389617919921875, -0.01155853271484375, 0.005123138427734375, 0.051849365234375, 0.01220703125, 0.0213165283203125, -0.00656890869140625, 0.007213592529296875, 0.015869140625, -0.016937255859375, -0.0008306503295898438, -0.0110931396484375, -0.03558349609375, -0.00664520263671875, 0.031707763671875, 0.0245208740234375, -0.041290283203125, -0.00052642822265625, 0.053192138671875, 0.038177490234375, 0.025299072265625, -0.029998779296875, 0.009918212890625, 0.01470184326171875, 0.01364898681640625, -0.004169464111328125, 0.03485107421875, -0.0181427001953125, -0.01293182373046875, 0.007175445556640625, 0.0077056884765625, 0.020843505859375, 0.006282806396484375, 0.0144500732421875, 0.0270538330078125, -0.043701171875, 0.016754150390625, -0.0273590087890625, -0.0172576904296875, 0.027313232421875, 0.058074951171875, -0.00951385498046875, 0.041412353515625, -0.0210723876953125, 0.031463623046875, -0.00759124755859375, 0.0170135498046875, -0.0124664306640625, -0.004291534423828125, 0.048095703125, 0.0174560546875, 0.015960693359375, 0.033905029296875, 0.015838623046875, 0.021453857421875, 0.007537841796875, 0.0270843505859375, -0.0321044921875, 0.0266571044921875, 0.0254669189453125, 0.0108184814453125, 0.030303955078125, -0.00412750244140625, 0.040863037109375, 0.0242919921875, 0.0013761520385742188, 0.018341064453125, -0.0242156982421875, 0.06231689453125, 0.00010478496551513672, -0.037750244140625, 0.03997802734375, -0.0193634033203125, 0.0238037109375, 0.03009033203125, -0.00917816162109375, 0.007671356201171875, 0.0076446533203125, -0.0161285400390625, -0.002170562744140625, 0.01104736328125, -0.016998291015625, -0.01491546630859375, -0.0026874542236328125, -0.0183868408203125, 0.0031681060791015625, 0.01180267333984375, -0.040283203125, 0.0238189697265625, -0.034576416015625, -0.0182952880859375, -0.0305328369140625, -0.005764007568359375, 0.01294708251953125, -0.0085296630859375, 0.00034618377685546875, 0.00548553466796875, -0.0196380615234375, -0.01065826416015625, -0.019775390625, -0.02734375, -0.00415802001953125, -0.031463623046875, 0.061553955078125, 0.021484375, 0.0153656005859375, 0.0596923828125, -0.05963134765625, 0.06512451171875, -0.00540924072265625, 0.0311737060546875, -0.014739990234375, -0.016082763671875, -0.02984619140625, 0.0142974853515625, -0.011962890625, -0.0068817138671875, 0.051422119140625, 0.01061248779296875, 0.01401519775390625, -0.00302886962890625, 0.0059051513671875, -0.006046295166015625, -0.074951171875, 0.01221466064453125, 0.0419921875, 0.0301513671875, 0.021484375, -0.0188751220703125, -0.0439453125, 0.0638427734375, -0.0037097930908203125, 0.0190887451171875, -0.03558349609375, 0.0188140869140625, 0.0227508544921875, 0.054443359375, -0.025238037109375, 0.0075531005859375, -0.018585205078125, 0.02362060546875, -0.0015573501586914062, -0.0181121826171875, 0.006092071533203125, 0.0018949508666992188, 0.01355743408203125, -0.00827789306640625, 0.006561279296875, 0.02606201171875, -0.02484130859375, 0.0187530517578125, -0.00385284423828125, 0.01837158203125, 0.00833892822265625, -0.0247955322265625, -0.004001617431640625, 0.019500732421875, -0.00408172607421875, 0.0022792816162109375, 0.04766845703125, 0.026458740234375, 0.02105712890625, -0.007068634033203125, -0.0325927734375, 0.005306243896484375, 0.032501220703125, -0.01216888427734375, -0.01230621337890625, -0.0572509765625, -0.005916595458984375, 0.031890869140625, -0.027252197265625, -0.018768310546875, 0.0227508544921875, -0.02691650390625, -0.009490966796875, 0.0020313262939453125, 0.048187255859375, -0.019256591796875, 0.036468505859375, -0.01062774658203125, 0.000021338462829589844, -0.04962158203125, -0.061798095703125, 0.04278564453125, -0.038238525390625, 0.029571533203125, 0.09100341796875, 0.0123748779296875, 0.02691650390625, 0.0238037109375, -0.00007975101470947266, 0.03546142578125, 0.0239715576171875, 0.031280517578125, -0.0213775634765625, -0.022491455078125, 0.004669189453125, 0.0036602020263671875, -0.00441741943359375, -0.006404876708984375, -0.0220794677734375, -0.00885772705078125, -0.0099029541015625, -0.0006375312805175781, -0.019256591796875, 0.0299072265625, -0.047271728515625, -0.029693603515625, -0.048980712890625, -0.038177490234375, 0.0175018310546875, -0.040008544921875, -0.022216796875, 0.01325225830078125, -0.045257568359375, -0.01096343994140625, -0.0816650390625, -0.055419921875, -0.08673095703125, 0.01073455810546875, -0.02020263671875, -0.0042266845703125, 0.047454833984375, -0.0022735595703125, -0.00763702392578125, 0.0004818439483642578, -0.005184173583984375, -0.0032100677490234375, -0.0338134765625, 0.0005955696105957031, 0.006153106689453125, -0.00612640380859375, -0.0031757354736328125, -0.00824737548828125, 0.01605224609375, -0.00876617431640625, -0.01495361328125, 0.00873565673828125, -0.0047607421875, -0.00867462158203125, 0.081298828125, 0.0047454833984375, -0.009490966796875, 0.0278472900390625, -0.05181884765625, 0.00164794921875, 0.00824737548828125, -0.0264434814453125, -0.006099700927734375, 0.0249176025390625, -0.033294677734375, -0.01422882080078125, -0.0055999755859375, 0.032562255859375, 0.0188446044921875, -0.0206146240234375, -0.01325225830078125, 0.051239013671875, 0.020721435546875, 0.04876708984375, -0.005779266357421875, -0.01020050048828125, -0.03704833984375, 0.0557861328125, -0.005321502685546875, 0.018218994140625, -0.0019969940185546875, -0.02044677734375, -0.04718017578125, -0.037353515625, 0.038726806640625, -0.00955963134765625, 0.05804443359375, -0.036285400390625, -0.0227203369140625, -0.021636962890625, 0.0958251953125, -0.02593994140625, -0.005321502685546875, 0.0015630722045898438, 0.0022563934326171875, -0.052734375, 0.0087432861328125, -0.075439453125, 0.00473785400390625, -0.058380126953125, -0.00522613525390625, -0.04119873046875, -0.0118560791015625, -0.005054473876953125, -0.04571533203125, -0.01532745361328125, -0.056365966796875, 0.0170135498046875, 0.0090789794921875, 0.0268707275390625, -0.0258026123046875, -0.0018911361694335938, -0.0205078125, 0.0028781890869140625, -0.024322509765625, -0.09698486328125, -0.017333984375, -0.0189666748046875, 0.0733642578125, -0.01506805419921875, 0.04656982421875, -0.0189666748046875, 0.052093505859375, -0.003986358642578125, 0.0132598876953125, -0.01139068603515625, 0.0133819580078125, -0.0005950927734375, -0.016815185546875, -0.0233154296875, -0.022491455078125, 0.040496826171875, 0.024139404296875, -0.05743408203125, 0.0161590576171875, -0.04815673828125, -0.00807952880859375, 0.0167083740234375, -0.057830810546875, -0.06146240234375, 0.01055145263671875, -0.00511932373046875, 0.00830841064453125, -0.016082763671875, 0.006206512451171875, 0.00429534912109375, -0.050811767578125, 0.052093505859375, 0.002628326416015625, 0.026580810546875, -0.0171051025390625, 0.08258056640625, 0.01020050048828125, -0.021484375, 0.02191162109375, -0.00829315185546875, 0.036041259765625, -0.0080413818359375, 0.0239410400390625, 0.010711669921875, -0.038330078125, 0.04327392578125, 0.0082855224609375, -0.029296875, 0.01032257080078125, 0.045196533203125, -0.02630615234375, -0.049346923828125, 0.0322265625, -0.054779052734375, 0.026153564453125, 0.037139892578125, 0.016571044921875, -0.01050567626953125, -0.00894927978515625, -0.0029468536376953125, -0.00745391845703125, -0.00809478759765625, 0.00289154052734375, -0.0206451416015625, 0.0111236572265625, -0.02325439453125, 0.01331329345703125, -0.00868988037109375, 0.005367279052734375, -0.03387451171875, -0.036651611328125, -0.005157470703125, -0.0258941650390625, -0.021484375, -0.01247406005859375, 0.0153045654296875, -0.0171356201171875, 0.00223541259765625, -0.0021495819091796875, -0.013702392578125, 0.06011962890625, -0.014617919921875, -0.08184814453125, -0.0018911361694335938, -0.0035991668701171875, 0.06988525390625, 0.055694580078125, -0.0134429931640625, 0.0271453857421875, -0.013092041015625, 0.01145172119140625, 0.01360321044921875, -0.02935791015625, -0.010772705078125, -0.0241851806640625, 0.03631591796875, 0.01398468017578125, -0.015960693359375, 0.00055694580078125, 0.040374755859375, 0.012054443359375, 0.00701904296875, 0.006496429443359375, -0.01113128662109375, 0.044921875, -0.030426025390625, 0.01273345947265625, 0.05133056640625, -0.01137542724609375, -0.046234130859375, 0.061431884765625, 0.00795745849609375, 0.0294189453125, 0.002197265625, 0.00966644287109375, 0.02044677734375, -0.0195770263671875, 0.02056884765625, -0.0533447265625, -0.027801513671875, 0.0022182464599609375, -0.00495147705078125, -0.019195556640625, -0.01544952392578125, -0.00799560546875, 0.0017795562744140625, 0.00978851318359375, 0.019989013671875, -0.0227508544921875, -0.022064208984375, -0.054779052734375, 0.0567626953125, -0.06201171875, -0.0252838134765625, -0.0178985595703125, -0.007259368896484375, 0.0207672119140625, 0.0218658447265625, -0.06884765625, -0.050933837890625, -0.0026950836181640625, -0.0028247833251953125, 0.046783447265625, 0.00641632080078125, 0.025054931640625, -0.055816650390625, 0.006816864013671875, -0.01904296875, -0.0168609619140625, 0.08135986328125, 0.0228271484375, -0.0159912109375, 0.0034084320068359375, -0.023529052734375, 0.0026416778564453125, -0.028533935546875, -0.065673828125, -0.01788330078125, -0.00848388671875, 0.033294677734375, 0.02490234375, 0.0051116943359375, -0.0261077880859375, -0.0286102294921875, 0.018829345703125, 0.0171356201171875, 0.05499267578125, -0.0333251953125, 0.0360107421875, 0.0252227783203125, 0.0161590576171875, -0.005428314208984375, 0.0124969482421875, 0.0254669189453125, -0.0284576416015625, -0.0096893310546875, 0.005275726318359375, -0.001316070556640625, -0.016021728515625, 0.01611328125, 0.0151824951171875, 0.0648193359375, -0.0007882118225097656, -0.0077667236328125, -0.0296783447265625, 0.00196075439453125, -0.022674560546875, 0.0562744140625, -0.0261383056640625, -0.04345703125, 0.0140838623046875, -0.03515625, 0.0014438629150390625, 0.004486083984375, -0.025299072265625, 0.0242156982421875, -0.00827789306640625, 0.01155853271484375, 0.031982421875, -0.06829833984375, 0.056243896484375, 0.054901123046875, -0.009490966796875, 0.032257080078125, -0.0007429122924804688, -0.007251739501953125, 0.033203125, 0.0194091796875, -0.09722900390625, 0.0281982421875, 0.0123443603515625, 0.01094818115234375, -0.005855560302734375, -0.01419830322265625, 0.01080322265625, 0.040283203125, 0.08966064453125, 0.11407470703125, -0.128173828125, 0.0172576904296875, 0.0283050537109375, -0.0006699562072753906, 0.03875732421875, 0.01401519775390625, 0.005481719970703125, -0.0150604248046875, 0.05224609375, -0.052154541015625, 0.01432037353515625, 0.0195770263671875, -0.03643798828125, 0.01163482666015625, -0.00901031494140625, 0.0245819091796875, -0.010498046875, -0.01502227783203125, -0.01432037353515625, 0.01027679443359375, 0.01242828369140625, -0.038330078125, -0.032379150390625, 0.00933074951171875, -0.043212890625, -0.060760498046875, 0.01461029052734375, -0.01282501220703125, 0.037445068359375, 0.00545501708984375, -0.0308380126953125, 0.02642822265625, 0.032196044921875, -0.02838134765625, 0.01251220703125, -0.00481414794921875, 0.0207366943359375, 0.06951904296875, -0.02557373046875, -0.00470733642578125, 0.035614013671875, -0.02978515625, -0.004779815673828125, 0.0238037109375, -0.022979736328125, -0.0179290771484375, 0.02386474609375, 0.092041015625, -0.03741455078125, -0.01442718505859375, 0.036468505859375, 0.035614013671875, -0.0234832763671875, 0.0100860595703125, 0.0094757080078125, -0.0311279296875, 0.0091400146484375, -0.0004878044128417969, -0.0084991455078125, 0.007022857666015625, 0.0262603759765625, -0.040863037109375, 0.087890625, -0.0195465087890625, 0.0242156982421875, 0.02557373046875, 0.032257080078125, -0.001834869384765625, 0.0181732177734375, 0.002101898193359375, 0.046844482421875, -0.0200653076171875, 0.0230865478515625, 0.0029392242431640625, 0.0143890380859375, 0.017181396484375, 0.020416259765625, 0.0655517578125, 0.015899658203125, -0.01364898681640625, -0.0191650390625, 0.01247406005859375, -0.008209228515625, -0.03985595703125, 0.052093505859375, 0.01708984375, -0.0136871337890625, 0.0498046875, 0.0015974044799804688, 0.03192138671875, 0.00632476806640625, 0.007732391357421875, 0.0169219970703125, -0.01226043701171875, -0.040069580078125, -0.002193450927734375, 0.037322998046875, -0.1112060546875, 0.01873779296875, 0.070068359375, 0.0159759521484375, -0.0440673828125, 0.017059326171875, -0.00424957275390625, -0.01531982421875, 0.0181121826171875, -0.0372314453125, 0.033782958984375, 0.0186920166015625, -0.01259613037109375, -0.0180511474609375, 0.01279449462890625, -0.042938232421875, -0.0391845703125, -0.0224151611328125, 0.027374267578125, -0.043182373046875, 0.036590576171875, 0.00913238525390625, 0.03076171875, -0.044952392578125, -0.004940032958984375, 0.003879547119140625, 0.044464111328125, -0.04144287109375, -0.0275421142578125, 0.007274627685546875, 0.0160675048828125, 0.0187530517578125, 0.00867462158203125, 0.06591796875, 0.042572021484375, 0.041778564453125, -0.05755615234375, 0.031982421875, 0.06610107421875, 0.021209716796875, -0.01348876953125, 0.00447845458984375, -0.068359375, 0.0233154296875, 0.01178741455078125, -0.05615234375, 0.005245208740234375, -0.014984130859375, 0.03509521484375, -0.03338623046875, 0.029083251953125, 0.01338958740234375, -0.018585205078125, 0.02679443359375, 0.0157318115234375, 0.0200042724609375, -0.01001739501953125, -0.0005669593811035156, 0.013519287109375, 0.018951416015625, -0.019927978515625, -0.0114593505859375, -0.00775909423828125, 0.0295867919921875, 0.0203857421875, -0.0222015380859375, -0.01085662841796875, -0.012298583984375, 0.03564453125, -0.037689208984375, 0.050445556640625, 0.033233642578125, -0.0084686279296875, -0.0113525390625, -0.023529052734375, 0.0892333984375, 0.0211029052734375, 0.03814697265625, -0.0027980804443359375, -0.0308685302734375, 0.013397216796875, -0.0413818359375, 0.0738525390625, 0.0216522216796875, -0.060516357421875, 0.001071929931640625, -0.0460205078125, -0.04888916015625, 0.0165252685546875, 0.0282135009765625, -0.022308349609375, 0.0301666259765625, 0.0296783447265625, -0.0007867813110351562, 0.0162811279296875, 0.007312774658203125, -0.00799560546875, 0.01323699951171875, 0.03375244140625, 0.01311492919921875, -0.11712646484375, -0.065185546875, -0.050384521484375, 0.044036865234375, -0.026153564453125, 0.0792236328125, -0.007511138916015625, 0.0189208984375, -0.0032978057861328125, 0.041961669921875, -0.04339599609375, -0.0161285400390625, 0.058135986328125, 0.0009398460388183594, -0.0033206939697265625, -0.006717681884765625, -0.042877197265625, 0.048492431640625, -0.004947662353515625, -0.00991058349609375, 0.017791748046875, -0.0051422119140625, 0.00716400146484375, 0.00212860107421875, -0.008819580078125, -0.03387451171875, -0.059661865234375, -0.00870513916015625, 0.05438232421875, -0.036773681640625, -0.030914306640625, -0.041259765625, 0.00708770751953125, -0.052093505859375, -0.03271484375, -0.0103302001953125, -0.01468658447265625, -0.0307159423828125, 0.0140380859375, -0.02001953125, 0.0011911392211914062, -0.01030731201171875, -0.0259246826171875, 0.013763427734375, -0.00641632080078125, 0.005435943603515625, 0.0037517547607421875, -0.0033664703369140625, 0.034210205078125, 0.033294677734375, 0.057830810546875, -0.00852203369140625, 0.00824737548828125, 0.0230255126953125, 0.0017709732055664062, -0.0007605552673339844, -0.03070068359375, -0.03240966796875, -0.053009033203125, 0.01763916015625, 0.032989501953125, -0.022857666015625, 0.00662994384765625, -0.0615234375, 0.0163726806640625, 0.035186767578125, -0.017852783203125, -0.051239013671875, 0.01511383056640625, -0.031982421875, 0.055908203125, -0.034881591796875, 0.029571533203125, -0.000021696090698242188, 0.0004658699035644531, 0.001010894775390625, 0.003070831298828125, -0.00286102294921875, 0.044403076171875, 0.04766845703125, 0.0184326171875, 0.044219970703125, -0.0024318695068359375, -0.006038665771484375, 0.049072265625, -0.018157958984375, 0.096923828125, -0.06890869140625, -0.012451171875, 0.008209228515625, 0.00498199462890625, -0.0242767333984375, -0.0192718505859375, 0.0081329345703125, 0.0014142990112304688, -0.010833740234375, -0.031646728515625, -0.0323486328125, -0.037445068359375, -0.06610107421875, -0.0745849609375, 0.01959228515625, -0.00835418701171875, -0.042236328125, -0.03192138671875, 0.0190582275390625, -0.0006313323974609375, -0.034515380859375, -0.0236663818359375, 0.007541656494140625, -0.0102386474609375, 0.01593017578125, 0.003662109375, 0.023040771484375, 0.004238128662109375, 0.032501220703125, -0.049896240234375, 0.00682830810546875, -0.012969970703125, -0.01093292236328125, 0.0152587890625, 0.00611114501953125, 0.004657745361328125, 0.0321044921875, -0.03533935546875, -0.025421142578125, -0.036163330078125, 0.009735107421875, -0.008575439453125, -0.0161285400390625, 0.0089874267578125, 0.00605010986328125, 0.0125274658203125, 0.053466796875, -0.00415802001953125, -0.035491943359375, -0.0124053955078125, -0.00980377197265625, -0.02783203125, -0.0092010498046875, 0.044769287109375, -0.0992431640625, -0.014404296875, 0.03717041015625, -0.0014190673828125, 0.006580352783203125, 0.0006732940673828125, -0.020111083984375, -0.0140838623046875, -0.00257110595703125, -0.0081939697265625, -0.0576171875, 0.0011463165283203125, -0.009063720703125, -0.0031108856201171875, 0.002826690673828125, -0.013916015625, 0.01355743408203125, -0.022369384765625, -0.0038089752197265625, -0.0119476318359375, 0.004299163818359375, -0.0592041015625, 0.015869140625, -0.0182952880859375, 0.0748291015625, -0.06304931640625, -0.0158233642578125, -0.0121307373046875, 0.03399658203125, 0.01511383056640625, 0.0478515625, -0.042327880859375, 0.054229736328125, 0.0225372314453125, 0.005619049072265625, -0.02935791015625, -0.007534027099609375, -0.0246734619140625, 0.0229339599609375, -0.007701873779296875, 0.00821685791015625, 0.0262908935546875, -0.0218505859375, 0.0130462646484375, -0.032684326171875, 0.048065185546875, -0.0027370452880859375, 0.00495147705078125, -0.00797271728515625, -0.0207061767578125, 0.0037384033203125 ]
0348c9c86be2dc9d521c4a14076c68e54aa17ec7
Wordpress Stackexchange Q: How can I determine what php files are being called by a given WP page? I'd like to debug some WordPress functionality, but to do so I need to know where to find the php file that is executing on a given page. How can I set up something that will tell me what php files (or functions, objects) are being called to generate a given page? I'm using a ridiculous amount of plugins, and I have a complicated theme structure, so it's not really practical to insert debug messages into every single php file I have, like the answer to this question suggests. A: There's a native PHP function get_included_files() for that. Simply attach it to an action on the hook from where you want to know it. The first one is muplugins_loaded and the last accessible on is shutdown. add_action( 'muplugins_loaded', function() { $files = get_included_files(); foreach ( $files as $f ) echo $f.'<br>'; // or... var_dump( $files ); }
Q: How can I determine what php files are being called by a given WP page? I'd like to debug some WordPress functionality, but to do so I need to know where to find the php file that is executing on a given page. How can I set up something that will tell me what php files (or functions, objects) are being called to generate a given page? I'm using a ridiculous amount of plugins, and I have a complicated theme structure, so it's not really practical to insert debug messages into every single php file I have, like the answer to this question suggests. A: There's a native PHP function get_included_files() for that. Simply attach it to an action on the hook from where you want to know it. The first one is muplugins_loaded and the last accessible on is shutdown. add_action( 'muplugins_loaded', function() { $files = get_included_files(); foreach ( $files as $f ) echo $f.'<br>'; // or... var_dump( $files ); } A: I am not sure there is a generic answer to this question but my advice would be to: * *Enable debugging *Learn to drive grep *Run debug_backtrace() for a more detailed history of what has occurred up to some point in a page load or function call-- var_dump(debug_backtrace());
wordpress
{ "language": "en", "length": 212, "provenance": "stackexchange_00019.jsonl.gz:445403", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145115" }
[ 0.046630859375, 0.0140533447265625, -0.033599853515625, -0.047515869140625, 0.00647735595703125, -0.01316070556640625, -0.0019521713256835938, 0.00278472900390625, -0.027618408203125, -0.00615692138671875, -0.026397705078125, 0.019317626953125, -0.030487060546875, -0.0194244384765625, 0.027740478515625, -0.042633056640625, 0.037139892578125, 0.01346588134765625, 0.068115234375, 0.0196533203125, -0.0157318115234375, 0.0389404296875, 0.05230712890625, 0.040618896484375, -0.00445556640625, -0.029510498046875, 0.06573486328125, -0.015228271484375, 0.01419830322265625, -0.0263671875, 0.003162384033203125, 0.004024505615234375, 0.004138946533203125, 0.0665283203125, -0.048553466796875, 0.0170440673828125, -0.00930023193359375, 0.0239410400390625, 0.029815673828125, 0.0127105712890625, 0.03875732421875, -0.0191650390625, 0.049346923828125, 0.013580322265625, 0.005825042724609375, -0.042144775390625, 0.06207275390625, -0.039154052734375, -0.00848388671875, 0.009246826171875, -0.0043182373046875, -0.000047326087951660156, -0.0041046142578125, 0.017822265625, -0.01007843017578125, -0.023040771484375, -0.017608642578125, 0.0628662109375, 0.0186767578125, -0.0215301513671875, -0.044219970703125, 0.014801025390625, 0.016693115234375, -0.00925445556640625, -0.03143310546875, -0.0018396377563476562, -0.0236358642578125, 0.0165863037109375, -0.006328582763671875, -0.048492431640625, -0.00467681884765625, -0.00665283203125, 0.0012722015380859375, 0.0034313201904296875, 0.00556182861328125, -0.030853271484375, 0.0225067138671875, -0.007415771484375, -0.004123687744140625, 0.0291900634765625, 0.03875732421875, -0.037689208984375, -0.046722412109375, 0.0653076171875, -0.035369873046875, 0.062469482421875, 0.005916595458984375, -0.032989501953125, -0.045806884765625, -0.00508880615234375, -0.051727294921875, 0.028961181640625, -0.0304107666015625, -0.008026123046875, -0.036895751953125, 0.0219268798828125, 0.020233154296875, 0.0280609130859375, -0.00971221923828125, -0.0162353515625, -0.00141143798828125, -0.032745361328125, -0.00884246826171875, -0.0130462646484375, 0.01470947265625, 0.08245849609375, -0.01390838623046875, -0.004077911376953125, 0.02545166015625, 0.01220703125, 0.040008544921875, -0.00799560546875, -0.000013947486877441406, -0.055145263671875, 0.01157379150390625, 0.0285186767578125, -0.00849151611328125, 0.026702880859375, 0.0217742919921875, 0.003414154052734375, 0.0253448486328125, 0.0223541259765625, 0.012115478515625, -0.0240631103515625, 0.0019369125366210938, -0.01457977294921875, -0.046417236328125, -0.0118255615234375, 0.0081634521484375, 0.0347900390625, -0.0194854736328125, -0.000530242919921875, 0.0165557861328125, -0.01172637939453125, -0.01522064208984375, -0.01922607421875, 0.0157012939453125, 0.0267181396484375, -0.00827789306640625, 0.00665283203125, 0.001140594482421875, -0.045257568359375, -0.021453857421875, -0.0082550048828125, -0.0201568603515625, -0.03173828125, 0.0093994140625, 0.044189453125, -0.0092926025390625, -0.0008459091186523438, 0.002162933349609375, 0.0129241943359375, 0.001239776611328125, 0.0188140869140625, 0.042999267578125, -0.0008654594421386719, 0.034912109375, -0.0177154541015625, 0.00646209716796875, 0.0024471282958984375, -0.0231475830078125, -0.0128326416015625, -0.0028285980224609375, -0.05950927734375, -0.060638427734375, 0.0054931640625, -0.0037708282470703125, -0.002422332763671875, 0.018035888671875, -0.014129638671875, 0.008544921875, 0.0031070709228515625, 0.03375244140625, 0.0011157989501953125, 0.0059814453125, 0.016265869140625, -0.02081298828125, 0.02593994140625, 0.035369873046875, 0.03277587890625, 0.00371551513671875, -0.01462554931640625, 0.0738525390625, -0.025299072265625, -0.0521240234375, 0.044921875, 0.000579833984375, 0.05364990234375, 0.00688934326171875, 0.00257110595703125, 0.024139404296875, 0.0242919921875, -0.0088348388671875, 0.0240325927734375, 0.0037441253662109375, 0.00018393993377685547, -0.053741455078125, 0.016326904296875, -0.0293426513671875, -0.0221099853515625, 0.004993438720703125, 0.004253387451171875, -0.0026264190673828125, -0.0035610198974609375, -0.08978271484375, -0.005817413330078125, -0.0394287109375, 0.052703857421875, 0.0093231201171875, -0.0025081634521484375, 0.0163116455078125, 0.020416259765625, -0.0146331787109375, -0.040924072265625, -0.03094482421875, 0.06695556640625, -0.0274810791015625, 0.0221405029296875, -0.001972198486328125, 0.0131378173828125, -0.0025691986083984375, -0.007568359375, -0.0288238525390625, -0.02801513671875, 0.0308685302734375, 0.010833740234375, -0.0206451416015625, -0.0085601806640625, 0.041717529296875, 0.01105499267578125, 0.01947021484375, 0.017791748046875, -0.02001953125, 0.0225372314453125, 0.00028061866760253906, -0.033905029296875, -0.0133056640625, -0.101318359375, 0.03399658203125, 0.048980712890625, 0.04083251953125, 0.042633056640625, 0.0163116455078125, -0.0016994476318359375, 0.038299560546875, -0.05841064453125, 0.009490966796875, -0.026458740234375, 0.047576904296875, 0.0760498046875, -0.031982421875, -0.0026683807373046875, 0.0215301513671875, -0.016387939453125, 0.007598876953125, 0.03436279296875, 0.0015764236450195312, -0.02593994140625, -0.0169677734375, 0.018341064453125, 0.01406097412109375, -0.01448822021484375, -0.0439453125, 0.00795745849609375, 0.04010009765625, -0.007328033447265625, 0.0252532958984375, 0.0259552001953125, -0.0008134841918945312, 0.005157470703125, -0.00399017333984375, -0.048309326171875, -0.0204925537109375, 0.0333251953125, 0.02447509765625, -0.0089874267578125, -0.028076171875, 0.00279998779296875, -0.0367431640625, 0.0098876953125, -0.037109375, -0.00055694580078125, -0.018341064453125, -0.01123046875, -0.0271759033203125, -0.0382080078125, 0.0193939208984375, -0.01197052001953125, 0.007381439208984375, 0.02099609375, 0.0158843994140625, 0.061126708984375, 0.0019273757934570312, 0.035858154296875, 0.0305633544921875, 0.01184844970703125, 0.06329345703125, -0.0121917724609375, 0.034210205078125, -0.004817962646484375, 0.021484375, 0.05499267578125, -0.00380706787109375, -0.0075531005859375, -0.003208160400390625, 0.0016717910766601562, 0.014923095703125, -0.025482177734375, -0.036376953125, -0.01380157470703125, -0.04962158203125, -0.02423095703125, -0.006015777587890625, 0.04632568359375, -0.041961669921875, -0.060821533203125, -0.017669677734375, -0.0151824951171875, -0.0965576171875, -0.082763671875, -0.0384521484375, -0.058441162109375, 0.01016998291015625, -0.01496124267578125, -0.0253143310546875, -0.001605987548828125, 0.00807952880859375, 0.01187896728515625, -0.028045654296875, -0.01456451416015625, -0.041107177734375, -0.043182373046875, -0.0455322265625, 0.033843994140625, 0.0029735565185546875, 0.008056640625, -0.003559112548828125, 0.0660400390625, -0.004367828369140625, -0.045684814453125, -0.03173828125, 0.006988525390625, -0.012908935546875, -0.03997802734375, 0.00762176513671875, -0.012664794921875, -0.007343292236328125, 0.0166473388671875, -0.026763916015625, 0.0016736984252929688, 0.0029659271240234375, -0.0219268798828125, 0.01043701171875, -0.025299072265625, 0.001251220703125, 0.029815673828125, -0.01134490966796875, -0.06561279296875, -0.030609130859375, -0.095458984375, -0.006317138671875, 0.01296234130859375, -0.0301971435546875, -0.0200347900390625, 0.01432037353515625, -0.0291290283203125, 0.0032138824462890625, -0.03375244140625, 0.05169677734375, 0.006420135498046875, 0.004184722900390625, -0.006988525390625, 0.04449462890625, 0.01554107666015625, 0.05218505859375, -0.0292816162109375, 0.046173095703125, -0.0088653564453125, -0.009185791015625, 0.001987457275390625, 0.0108795166015625, 0.0022869110107421875, -0.0208587646484375, -0.045135498046875, 0.033966064453125, 0.01898193359375, -0.028656005859375, 0.015228271484375, -0.0047760009765625, -0.002574920654296875, -0.015411376953125, 0.018585205078125, -0.00620269775390625, -0.020965576171875, -0.0045928955078125, 0.01531982421875, -0.043487548828125, -0.013641357421875, -0.0298919677734375, -0.0117950439453125, -0.082763671875, 0.00933837890625, -0.012420654296875, -0.0391845703125, -0.0132293701171875, 0.01050567626953125, -0.05914306640625, -0.03875732421875, 0.01461029052734375, -0.0245513916015625, 0.0172271728515625, -0.0101318359375, 0.0025768280029296875, -0.02294921875, -0.0101318359375, -0.0423583984375, -0.10882568359375, -0.007366180419921875, -0.092529296875, 0.0894775390625, 0.04827880859375, -0.0460205078125, -0.008331298828125, 0.03851318359375, 0.0175018310546875, 0.011444091796875, 0.036895751953125, -0.00876617431640625, 0.034271240234375, 0.040069580078125, 0.0523681640625, -0.007503509521484375, 0.001842498779296875, 0.0117950439453125, -0.0243682861328125, 0.054962158203125, 0.00768280029296875, 0.002471923828125, 0.035308837890625, -0.035797119140625, -0.00992584228515625, -0.01044464111328125, -0.017974853515625, 0.0027141571044921875, 0.0059051513671875, -0.01995849609375, -0.0050811767578125, -0.0139007568359375, 0.037384033203125, -0.01134490966796875, -0.0111846923828125, 0.008087158203125, 0.0628662109375, 0.02325439453125, -0.0222625732421875, -0.0263214111328125, -0.00888824462890625, 0.01384735107421875, -0.00226593017578125, 0.036834716796875, 0.0166473388671875, -0.004077911376953125, 0.03326416015625, -0.00614166259765625, 0.0209197998046875, -0.025421142578125, 0.052215576171875, -0.005870819091796875, -0.022125244140625, 0.0221405029296875, -0.005542755126953125, -0.0071258544921875, 0.01556396484375, -0.035186767578125, 0.0204315185546875, 0.0246429443359375, 0.0234527587890625, -0.0657958984375, 0.045196533203125, -0.0033092498779296875, -0.023956298828125, -0.006351470947265625, -0.01099395751953125, 0.07366943359375, 0.031280517578125, -0.00921630859375, 0.060577392578125, 0.061065673828125, -0.004138946533203125, 0.056976318359375, 0.093505859375, -0.0013027191162109375, 0.04339599609375, 0.0567626953125, -0.003940582275390625, -0.035430908203125, 0.0010280609130859375, -0.0170440673828125, -0.007740020751953125, -0.074951171875, 0.01485443115234375, 0.0126953125, -0.0034332275390625, 0.0216064453125, -0.0215606689453125, 0.03594970703125, 0.0156707763671875, -0.03668212890625, 0.016204833984375, -0.004344940185546875, -0.027008056640625, -0.03143310546875, 0.0028095245361328125, -0.0240020751953125, -0.0113067626953125, 0.029937744140625, 0.018798828125, -0.0521240234375, 0.04669189453125, 0.0043182373046875, 0.0007729530334472656, -0.00321197509765625, 0.02520751953125, 0.023040771484375, -0.0159759521484375, 0.01415252685546875, -0.017364501953125, 0.0253753662109375, -0.026336669921875, -0.00894927978515625, 0.01512908935546875, 0.040679931640625, -0.043426513671875, -0.026763916015625, 0.01800537109375, -0.01361083984375, -0.0025005340576171875, 0.0131988525390625, 0.021453857421875, 0.004367828369140625, -0.01554107666015625, -0.0254364013671875, 0.0198974609375, 0.0013914108276367188, -0.004009246826171875, 0.04296875, 0.02685546875, 0.027313232421875, 0.0179595947265625, -0.0709228515625, 0.025390625, 0.056304931640625, -0.038299560546875, -0.01351165771484375, 0.0278472900390625, -0.0784912109375, -0.02008056640625, -0.026123046875, -0.0284271240234375, 0.032440185546875, -0.0266265869140625, 0.030029296875, -0.0030193328857421875, -0.0169219970703125, 0.04876708984375, 0.0246429443359375, 0.050537109375, 0.026763916015625, -0.06884765625, -0.006839752197265625, -0.044586181640625, -0.00527191162109375, 0.029815673828125, -0.0081634521484375, -0.0229644775390625, -0.02398681640625, -0.0219573974609375, 0.008087158203125, 0.0023021697998046875, 0.045135498046875, 0.026123046875, 0.035186767578125, -0.040069580078125, 0.036102294921875, -0.006305694580078125, 0.0782470703125, -0.0272064208984375, 0.0299835205078125, 0.013885498046875, 0.041259765625, -0.0300445556640625, -0.011749267578125, 0.007465362548828125, 0.0197906494140625, -0.003631591796875, -0.0120849609375, 0.0183258056640625, -0.0284576416015625, 0.057403564453125, -0.01137542724609375, -0.024261474609375, -0.0027179718017578125, 0.0133514404296875, -0.01009368896484375, 0.022796630859375, 0.0079345703125, -0.0298004150390625, -0.00951385498046875, -0.0369873046875, -0.0195465087890625, -0.0128631591796875, -0.0155181884765625, 0.0279541015625, -0.00324249267578125, 0.006229400634765625, 0.046112060546875, -0.033294677734375, 0.086669921875, 0.09466552734375, 0.01471710205078125, 0.047576904296875, 0.032073974609375, 0.007579803466796875, -0.004138946533203125, 0.051605224609375, 0.0311431884765625, -0.042266845703125, 0.079345703125, 0.03656005859375, -0.01690673828125, 0.0399169921875, -0.027862548828125, 0.02044677734375, 0.014739990234375, 0.034210205078125, -0.0298614501953125, 0.019073486328125, -0.005542755126953125, 0.0007610321044921875, 0.0576171875, -0.0286407470703125, -0.0214080810546875, -0.07421875, 0.0848388671875, -0.0006170272827148438, -0.007534027099609375, 0.033447265625, -0.02587890625, 0.004703521728515625, -0.0215606689453125, 0.03369140625, 0.016693115234375, -0.00640869140625, 0.016204833984375, 0.00809478759765625, 0.030364990234375, -0.048309326171875, -0.00001728534698486328, 0.01224517822265625, -0.0054473876953125, -0.028961181640625, 0.0369873046875, -0.01593017578125, 0.033935546875, -0.01146697998046875, 0.0146331787109375, 0.0357666015625, 0.05938720703125, -0.0148468017578125, -0.0073089599609375, 0.05224609375, -0.025360107421875, -0.0699462890625, -0.019073486328125, 0.0276336669921875, 0.027801513671875, -0.05291748046875, 0.0295257568359375, -0.04522705078125, -0.00997161865234375, -0.005573272705078125, 0.0291748046875, 0.07861328125, -0.0283966064453125, -0.0256500244140625, 0.035980224609375, 0.0079498291015625, -0.01430511474609375, -0.0176239013671875, 0.017608642578125, -0.053375244140625, -0.0030117034912109375, 0.0036640167236328125, -0.011016845703125, -0.002498626708984375, -0.00472259521484375, -0.046142578125, 0.036376953125, -0.005443572998046875, 0.0009603500366210938, 0.01641845703125, 0.0099639892578125, -0.030059814453125, -0.0186309814453125, -0.05517578125, 0.066650390625, 0.01532745361328125, 0.0889892578125, -0.051361083984375, -0.0248870849609375, 0.0538330078125, 0.052154541015625, 0.0106048583984375, -0.00226593017578125, 0.019195556640625, 0.014129638671875, 0.043792724609375, 0.01519775390625, -0.014617919921875, 0.0109710693359375, 0.014495849609375, 0.01016998291015625, 0.0278167724609375, -0.0289459228515625, 0.0306396484375, -0.033782958984375, 0.020782470703125, 0.02667236328125, -0.005847930908203125, -0.034820556640625, -0.0208282470703125, -0.01502227783203125, -0.0259552001953125, -0.0029277801513671875, -0.007587432861328125, 0.00887298583984375, 0.0286102294921875, 0.036865234375, 0.063232421875, -0.041015625, -0.035614013671875, -0.015777587890625, 0.05914306640625, -0.0005536079406738281, -0.01433563232421875, 0.0107879638671875, 0.007656097412109375, 0.00910186767578125, -0.034820556640625, -0.031768798828125, 0.0045318603515625, 0.00469970703125, 0.051116943359375, 0.0288848876953125, 0.0276031494140625, -0.007755279541015625, 0.01235198974609375, -0.0024738311767578125, 0.04522705078125, -0.0308990478515625, -0.02581787109375, 0.00617218017578125, 0.0093994140625, 0.01172637939453125, 0.01126861572265625, 0.046600341796875, 0.00827789306640625, 0.024932861328125, -0.0010213851928710938, -0.05126953125, -0.007232666015625, 0.0249481201171875, 0.01220703125, -0.0019273757934570312, 0.0394287109375, -0.06732177734375, -0.0160675048828125, 0.02996826171875, 0.0025806427001953125, 0.018341064453125, -0.02606201171875, 0.058197021484375, -0.0305328369140625, 0.014404296875, -0.016357421875, 0.032012939453125, -0.05035400390625, 0.0333251953125, -0.04339599609375, -0.03564453125, -0.03460693359375, 0.04913330078125, 0.044952392578125, 0.0251007080078125, 0.0386962890625, -0.00919342041015625, -0.043548583984375, 0.0250701904296875, 0.049072265625, -0.0177764892578125, -0.03631591796875, -0.04254150390625, -0.03997802734375, 0.009521484375, -0.0166473388671875, 0.0187530517578125, -0.02056884765625, 0.0248565673828125, -0.050567626953125, 0.00899505615234375, -0.011444091796875, -0.023681640625, 0.048583984375, -0.0218353271484375, 0.022125244140625, -0.0218353271484375, -0.044525146484375, 0.00943756103515625, -0.019500732421875, -0.042877197265625, 0.010406494140625, 0.03961181640625, -0.004528045654296875, 0.01016998291015625, 0.032135009765625, 0.014434814453125, 0.01251983642578125, -0.01027679443359375, 0.0035762786865234375, -0.006999969482421875, 0.04376220703125, 0.01236724853515625, -0.03619384765625, -0.03961181640625, -0.018096923828125, 0.05718994140625, 0.02313232421875, 0.061065673828125, -0.034912109375, 0.042755126953125, -0.0010690689086914062, -0.0018415451049804688, -0.0200958251953125, -0.005863189697265625, 0.0200042724609375, -0.0178070068359375, -0.0112762451171875, -0.007350921630859375, -0.06463623046875, 0.0203399658203125, 0.0225372314453125, 0.0113525390625, 0.01922607421875, -0.0096893310546875, 0.019073486328125, 0.01312255859375, 0.032440185546875, -0.01488494873046875, -0.034088134765625, 0.0131683349609375, 0.0100555419921875, 0.004608154296875, 0.01398468017578125, 0.0159454345703125, -0.036468505859375, 0.0221099853515625, -0.015716552734375, 0.014678955078125, 0.04534912109375, 0.0285186767578125, 0.033294677734375, -0.0289459228515625, -0.057708740234375, -0.01480865478515625, -0.0238189697265625, 0.02569580078125, -0.0170440673828125, 0.08990478515625, -0.0083770751953125, -0.0090789794921875, -0.0175628662109375, 0.0228424072265625, 0.05450439453125, -0.01031494140625, 0.0406494140625, -0.01253509521484375, 0.01178741455078125, 0.037261962890625, -0.0361328125, -0.0182037353515625, -0.01898193359375, 0.00428009033203125, 0.038421630859375, 0.00635528564453125, 0.00811004638671875, -0.003509521484375, -0.014068603515625, 0.025543212890625, 0.005889892578125, -0.056182861328125, 0.035736083984375, -0.0285797119140625, -0.00708770751953125, -0.018157958984375, 0.04736328125, -0.00991058349609375, 0.0274200439453125, -0.039276123046875, -0.0182342529296875, -0.00839996337890625, 0.040130615234375, 0.00885772705078125, 0.051513671875, 0.06439208984375, -0.039794921875, -0.0233154296875, 0.048583984375, 0.0325927734375, 0.0849609375, -0.0191650390625, -0.03192138671875, -0.0005764961242675781, 0.0242462158203125, -0.0029506683349609375, -0.042022705078125, -0.004199981689453125, -0.0245513916015625, 0.01983642578125, 0.01471710205078125, -0.0031757354736328125, 0.00909423828125, -0.0352783203125, -0.09478759765625, 0.051971435546875, -0.01187896728515625, -0.0372314453125, -0.07818603515625, 0.0208740234375, 0.016265869140625, -0.032318115234375, -0.043243408203125, -0.0030536651611328125, -0.0268402099609375, 0.039520263671875, 0.0127105712890625, -0.01018524169921875, 0.050201416015625, -0.0119781494140625, -0.03387451171875, 0.00582122802734375, 0.01129913330078125, -0.005580902099609375, -0.01849365234375, 0.01401519775390625, 0.0280914306640625, 0.06109619140625, 0.0125732421875, 0.0130462646484375, 0.0171966552734375, -0.03448486328125, 0.01131439208984375, -0.02691650390625, -0.056243896484375, -0.01190948486328125, 0.07061767578125, 0.07086181640625, 0.0294342041015625, -0.0443115234375, 0.0013332366943359375, 0.007129669189453125, -0.00858306884765625, 0.0261383056640625, 0.0158538818359375, -0.045623779296875, -0.0009889602661132812, 0.022064208984375, -0.010528564453125, -0.035430908203125, 0.0167388916015625, -0.041229248046875, -0.002109527587890625, -0.0035419464111328125, -0.0009832382202148438, 0.0199737548828125, -0.059326171875, 0.047576904296875, -0.0246429443359375, 0.005809783935546875, 0.00814056396484375, 0.0396728515625, 0.016265869140625, 0.00922393798828125, 0.01187896728515625, 0.049896240234375, -0.0305938720703125, 0.0272369384765625, 0.0213165283203125, 0.030242919921875, -0.03741455078125, -0.0034008026123046875, -0.0037174224853515625, 0.01605224609375, -0.01113128662109375, 0.0147705078125, 0.00870513916015625, 0.0357666015625, -0.00655364990234375, 0.056732177734375, -0.0009036064147949219, 0.0189361572265625, -0.011474609375, 0.04931640625, 0.0118408203125, -0.02630615234375, 0.037261962890625, -0.043487548828125, -0.0034122467041015625, 0.0264739990234375, -0.024169921875, -0.041473388671875, 0.01568603515625, 0.031341552734375, 0.00809478759765625, 0.00986480712890625 ]
0f9d7aa2e5f5641a669b61cd42ad79a0fe60847a
Wordpress Stackexchange Q: Attributing a version number to a child theme's main stylesheet In header.php, I like to attribute a version number to the stylesheet so that the browser gets forced to refresh it. But when working with a child theme, its stylesheet is not explicitely called, rather WordPress automatically seeks it. So how or where to attribute a version number to the child theme's stylesheet? A: You can update the version in the child themes style sheet itself... /* Theme Name: Twenty Fourteen Child Theme URI: http://example.com/twenty-fourteen-child/ Description: Twenty Fourteen Child Theme Author: John Doe Author URI: http://example.com Template: twentyfourteen Version: 1.1.2 <---- Update here */
Q: Attributing a version number to a child theme's main stylesheet In header.php, I like to attribute a version number to the stylesheet so that the browser gets forced to refresh it. But when working with a child theme, its stylesheet is not explicitely called, rather WordPress automatically seeks it. So how or where to attribute a version number to the child theme's stylesheet? A: You can update the version in the child themes style sheet itself... /* Theme Name: Twenty Fourteen Child Theme URI: http://example.com/twenty-fourteen-child/ Description: Twenty Fourteen Child Theme Author: John Doe Author URI: http://example.com Template: twentyfourteen Version: 1.1.2 <---- Update here */ A: The current top answer is theme dependent, as it requires the theme developer to have made that child theme version number into a variable and then appended it to the child style.css when enqueuing it. I've seen this on some themes, but not many. The following works on any theme that registers the child styles in functions.php - won't work with the old @import rule, which I haven't seen much any more. In functions.php of the child theme, you should have something similar to this: // enqueue the child theme stylesheet function wp_schools_enqueue_scripts() { wp_register_style( 'childstyle', get_stylesheet_directory_uri() . '/style.css' ); wp_enqueue_style( 'childstyle' ); } add_action( 'wp_enqueue_scripts', 'wp_schools_enqueue_scripts', 11); If you change it to the following, it will append a timestamp as a version number each time the file is saved, allowing each change of the stylesheet to bust through local cache: // enqueue the child theme stylesheet function wp_schools_enqueue_scripts() { wp_register_style( 'childstyle', get_stylesheet_directory_uri() . '/style.css', array(), filemtime( get_stylesheet_directory() . '/style.css' ) ); wp_enqueue_style( 'childstyle' ); } add_action( 'wp_enqueue_scripts', 'wp_schools_enqueue_scripts', 11); Hope this helps someone. I use this on every site that I actively manage. A: I think the best way to do this is to leave the child theme stylesheet (style.css) empty with only the necessary comments (like theme name, description etc, so can wordpress recognize your theme) and then make another css file in your-theme-name-folder/css/main.css After that on function.php you can have a new "version" every time you change your file : function my_scripts_and_styles(){ $cache_buster = date("YmdHi", filemtime( get_stylesheet_directory() . '/css/main.css')); wp_enqueue_style( 'main', get_stylesheet_directory_uri() . '/css/main.css', array(), $cache_buster, 'all' ); } add_action( 'wp_enqueue_scripts', 'my_scripts_and_styles', 1); The logic: Every time you save the file the modified time of the file is being changed. The new time is being passed to date function to convert the time(filemtime returns an integer representing the time) to date format to make it a string in the format you desire. In our example the time is being formatted with accuracy of minutes. You can change it to track even second ie "YmdHis".After that the new modified time of the file is being passed as a new version to wp_enqueue_style. Reference : http://www.php.net/filemtime http://php.net/manual/en/function.date.php A: What you need to do is de-register the main style by handle and then re-register with your version number. In this case the handle is style-css. You can determine the handle that you need to use by looking at the rendered stylesheet link: <link rel='stylesheet' id='style-css-css' href='http://site-url/wp-content/themes/child-theme/style.css?ver=4.6.1' type='text/css' media='all' /> Here the id is style-css-css which means our handle is style-css Put this in the function.php of your child-theme: function wpse_145141_change_style_version(){ // First de-register the main stylesheet wp_deregister_style( 'style-css' ); // Then add it again, using your custom version number wp_register_style( 'style-css', get_stylesheet_uri(), array(), "VERSION_NUMBER" ); //finally enqueue it again wp_enqueue_style( 'style-css'); } add_action( 'wp_enqueue_scripts', 'wpse_145141_change_style_version'); A: Instead of using the default style.css I typically use wp_enqueue_style in the child theme's functions.php or another included php file. So, you'd still have the style.css in the child theme with all the child theme details but then you can have a separate css file in the child theme for the actual child theme styling (I usually put this in an assets/css directory within the child theme). This would also allow you to set the CSS version with the 4th parameter. For example: function theme_name_child_scripts() { wp_enqueue_style( 'style-name', get_stylesheet_directory_uri() . '/assets/css/child-style.css', array(), '1.0.0', 'screen'); } add_action( 'wp_enqueue_scripts', 'theme_name_child_scripts' ); You can add a priority to the action if it's not loading in the correct order or work with the dependency parameter in wp_enqueue_style above: add_action( 'wp_enqueue_scripts', 'theme_name_child_scripts', 20 ); A: Use filemtime to version by file change. Deregister and enque style. * *Look in the source (ctrl + U) and find child's css id without "-css". Here it's voyager-default <link rel='stylesheet' id='voyager-default-css' href='/wp-content/themes/voyager-child-theme/style.css?1606484598' type='text/css' media='all' /> *Use this code (source) but replace 'style' by the found string (here 'voyager-default') Child theme's functions.php function add_timestamp_to_childtheme_stylesheet() { wp_dequeue_style( 'style' ); wp_deregister_style( 'style' ); wp_enqueue_style('style', get_stylesheet_uri().'?'.filemtime(get_stylesheet_directory().'/style.css'), array(), null); } add_action( 'wp_print_styles', 'add_timestamp_to_childtheme_stylesheet' ); A: I believe that if you use the Wordpress theme editor to edit your child theme's stylesheet that it automatically appends a new version number each time you save the file.
wordpress
{ "language": "en", "length": 803, "provenance": "stackexchange_00019.jsonl.gz:445409", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145141" }
[ -0.0226287841796875, -0.0304718017578125, -0.052734375, -0.046630859375, -0.01328277587890625, -0.00847625732421875, -0.007781982421875, 0.04168701171875, -0.005084991455078125, -0.0015745162963867188, -0.0092315673828125, -0.014678955078125, -0.03778076171875, -0.03466796875, -0.01123046875, -0.0416259765625, 0.047576904296875, -0.03192138671875, 0.0123748779296875, 0.002483367919921875, -0.0305938720703125, 0.034881591796875, 0.03753662109375, 0.05078125, 0.047454833984375, -0.039703369140625, 0.038177490234375, -0.0204010009765625, 0.0243988037109375, -0.032806396484375, 0.020355224609375, 0.0147552490234375, 0.033050537109375, 0.00470733642578125, -0.0178680419921875, -0.0265045166015625, 0.0122222900390625, -0.01020050048828125, -0.0296173095703125, 0.045501708984375, 0.02117919921875, -0.01107025146484375, 0.073486328125, -0.0089263916015625, 0.00196075439453125, -0.0142822265625, 0.03546142578125, -0.0292816162109375, -0.00534820556640625, 0.0078887939453125, 0.0217132568359375, 0.0259552001953125, 0.039642333984375, 0.00036787986755371094, -0.01334381103515625, -0.0103607177734375, -0.01155853271484375, 0.0423583984375, 0.02386474609375, -0.037994384765625, -0.048248291015625, -0.0006971359252929688, 0.026885986328125, 0.00676727294921875, 0.0191192626953125, -0.01238250732421875, 0.03033447265625, 0.00853729248046875, -0.04254150390625, -0.006412506103515625, 0.039947509765625, -0.00873565673828125, -0.0025882720947265625, -0.028900146484375, 0.0223388671875, -0.00534820556640625, -0.01160430908203125, -0.0233154296875, 0.0092620849609375, 0.01459503173828125, 0.0479736328125, -0.03863525390625, -0.01026153564453125, -0.036346435546875, 0.058349609375, 0.0216064453125, 0.01052093505859375, -0.0216522216796875, -0.0631103515625, -0.01336669921875, -0.040771484375, -0.005947113037109375, -0.04449462890625, -0.038604736328125, -0.015594482421875, -0.006763458251953125, 0.0276641845703125, 0.06884765625, -0.0322265625, 0.0140533447265625, -0.045989990234375, -0.0062408447265625, -0.0170745849609375, -0.0416259765625, -0.00994110107421875, 0.0460205078125, 0.035003662109375, 0.0041046142578125, -0.004314422607421875, 0.00678253173828125, 0.0008649826049804688, 0.0277099609375, -0.0078277587890625, -0.007335662841796875, -0.028717041015625, -0.002796173095703125, -0.03619384765625, 0.00803375244140625, 0.004001617431640625, 0.00463104248046875, -0.00572967529296875, 0.02972412109375, -0.01204681396484375, -0.02960205078125, 0.0029888153076171875, -0.01403045654296875, -0.01401519775390625, -0.0257568359375, 0.0136566162109375, -0.01540374755859375, -0.038330078125, 0.01486968994140625, 0.054534912109375, 0.01100921630859375, 0.0013647079467773438, -0.005893707275390625, 0.0275421142578125, -0.006977081298828125, -0.0147705078125, 0.0238494873046875, -0.04217529296875, -0.0276031494140625, 0.031402587890625, -0.043304443359375, -0.0028743743896484375, -0.005237579345703125, 0.007274627685546875, 0.045745849609375, 0.01248931884765625, -0.02056884765625, 0.055023193359375, -0.0271453857421875, 0.01422119140625, 0.011260986328125, -0.0007185935974121094, -0.04083251953125, 0.004878997802734375, -0.0284271240234375, 0.0401611328125, -0.02691650390625, -0.0266571044921875, -0.0145111083984375, 0.039398193359375, 0.0091400146484375, -0.01337432861328125, 0.02825927734375, 0.006580352783203125, -0.002895355224609375, 0.01047515869140625, -0.04547119140625, 0.006649017333984375, -0.04608154296875, -0.0298614501953125, -0.00023472309112548828, 0.01253509521484375, 0.0482177734375, -0.022186279296875, -0.006603240966796875, 0.045379638671875, 0.0135955810546875, -0.0062408447265625, -0.0137481689453125, 0.0556640625, 0.0036163330078125, -0.01413726806640625, -0.021209716796875, -0.0146942138671875, -0.0091094970703125, 0.0390625, 0.005756378173828125, -0.0283355712890625, -0.005619049072265625, -0.0394287109375, -0.0040130615234375, 0.007114410400390625, 0.0147705078125, -0.0303802490234375, 0.00756072998046875, -0.0109405517578125, -0.006084442138671875, -0.0421142578125, -0.0015869140625, -0.0194244384765625, -0.001445770263671875, -0.032012939453125, -0.023590087890625, -0.0130157470703125, 0.0229949951171875, 0.027679443359375, 0.049560546875, -0.0108642578125, 0.0005021095275878906, -0.0031490325927734375, -0.032623291015625, -0.01041412353515625, 0.0213165283203125, 0.0002932548522949219, 0.0279541015625, 0.004421234130859375, 0.0100250244140625, 0.0222625732421875, 0.0013437271118164062, 0.0233917236328125, 0.029296875, 0.018310546875, -0.01038360595703125, -0.0179901123046875, -0.0046539306640625, 0.0200042724609375, 0.0180206298828125, -0.015228271484375, 0.0158538818359375, 0.01165771484375, 0.02215576171875, -0.03790283203125, -0.019134521484375, -0.04425048828125, -0.06646728515625, 0.01218414306640625, 0.055145263671875, 0.029815673828125, 0.0211334228515625, 0.01032257080078125, 0.014556884765625, 0.057098388671875, 0.003749847412109375, 0.015045166015625, -0.01183319091796875, -0.003147125244140625, 0.020233154296875, 0.0220489501953125, -0.0088348388671875, 0.0025234222412109375, -0.0570068359375, 0.004711151123046875, 0.03167724609375, 0.01012420654296875, -0.0091400146484375, -0.006053924560546875, -0.00628662109375, 0.0266876220703125, 0.007091522216796875, -0.06561279296875, 0.032989501953125, 0.044921875, -0.0123443603515625, 0.032745361328125, 0.01491546630859375, -0.01336669921875, -0.01558685302734375, 0.0092010498046875, -0.01108551025390625, 0.01372528076171875, 0.03302001953125, -0.0272979736328125, 0.00722503662109375, -0.003173828125, 0.0009441375732421875, -0.004276275634765625, 0.005657196044921875, -0.00917816162109375, -0.005779266357421875, -0.0085296630859375, -0.0021343231201171875, -0.00484466552734375, -0.026336669921875, 0.030120849609375, 0.032806396484375, -0.01678466796875, 0.0095977783203125, 0.0295867919921875, 0.02716064453125, -0.0057373046875, -0.004848480224609375, 0.0036602020263671875, 0.007335662841796875, 0.032470703125, 0.00641632080078125, 0.028350830078125, -0.0225982666015625, -0.011627197265625, 0.03466796875, -0.0362548828125, 0.0142974853515625, 0.024566650390625, -0.0177764892578125, 0.032440185546875, 0.02001953125, 0.016326904296875, 0.01499176025390625, -0.040740966796875, -0.0028705596923828125, 0.038238525390625, 0.03765869140625, 0.01357269287109375, -0.0253753662109375, 0.00809478759765625, 0.028717041015625, -0.07110595703125, -0.0941162109375, 0.0124664306640625, -0.038421630859375, -0.0059051513671875, -0.0214996337890625, -0.023468017578125, -0.01727294921875, -0.0229339599609375, -0.006153106689453125, 0.009857177734375, -0.0303802490234375, -0.060455322265625, -0.08319091796875, -0.09326171875, -0.046051025390625, -0.007411956787109375, 0.01158905029296875, -0.00839996337890625, 0.0102081298828125, -0.030517578125, -0.0274505615234375, -0.0254669189453125, 0.042388916015625, 0.0205078125, -0.033233642578125, 0.0190582275390625, -0.0372314453125, -0.023101806640625, 0.0178070068359375, 0.0030765533447265625, 0.01358795166015625, -0.0264129638671875, -0.0136871337890625, -0.047760009765625, -0.032684326171875, -0.029205322265625, 0.05670166015625, 0.048065185546875, -0.003475189208984375, 0.048492431640625, -0.04345703125, -0.0634765625, 0.004764556884765625, -0.062469482421875, 0.028350830078125, 0.043731689453125, -0.0008387565612792969, -0.0266571044921875, 0.022735595703125, 0.0073394775390625, -0.021240234375, 0.047454833984375, -0.0307159423828125, 0.05072021484375, -0.0142364501953125, -0.015869140625, -0.05889892578125, 0.028472900390625, -0.0017938613891601562, 0.04034423828125, 0.0145111083984375, 0.03131103515625, -0.0145416259765625, 0.024322509765625, -0.055633544921875, -0.053497314453125, 0.0277862548828125, -0.047821044921875, 0.04443359375, -0.07940673828125, -0.027099609375, -0.0537109375, 0.09130859375, -0.04315185546875, -0.03582763671875, -0.001224517822265625, 0.0294189453125, -0.03753662109375, -0.01715087890625, -0.00836181640625, -0.018646240234375, -0.06951904296875, 0.012847900390625, 0.01910400390625, -0.024627685546875, -0.0252685546875, 0.04248046875, -0.060211181640625, -0.0237579345703125, 0.03973388671875, 0.00982666015625, -0.036773681640625, 0.060577392578125, -0.046722412109375, 0.0355224609375, -0.024932861328125, 0.00363922119140625, -0.07135009765625, -0.0181884765625, -0.025299072265625, 0.0743408203125, 0.038482666015625, -0.0458984375, 0.0022335052490234375, 0.067138671875, 0.0166778564453125, 0.035308837890625, -0.01302337646484375, -0.0167236328125, -0.01480865478515625, 0.0126953125, 0.0168304443359375, -0.01076507568359375, -0.01861572265625, -0.008819580078125, -0.049407958984375, -0.016082763671875, -0.01165008544921875, -0.02667236328125, 0.051177978515625, -0.04193115234375, -0.03973388671875, -0.03607177734375, 0.01788330078125, 0.02264404296875, 0.01212310791015625, 0.002422332763671875, -0.0494384765625, -0.031463623046875, 0.05645751953125, 0.0231170654296875, -0.011505126953125, -0.007236480712890625, 0.04083251953125, 0.01097869873046875, -0.05389404296875, -0.028594970703125, -0.0330810546875, 0.033905029296875, 0.00396728515625, 0.0070648193359375, -0.0031032562255859375, -0.0278778076171875, 0.04498291015625, 0.0163726806640625, -0.007045745849609375, 0.0308685302734375, 0.018402099609375, 0.001995086669921875, -0.04693603515625, 0.0340576171875, 0.01294708251953125, -0.031768798828125, -0.0081634521484375, -0.036102294921875, 0.0187225341796875, 0.0027828216552734375, 0.004444122314453125, 0.0006885528564453125, 0.008209228515625, -0.03289794921875, -0.0270538330078125, 0.0124053955078125, -0.031646728515625, 0.0254058837890625, 0.03167724609375, -0.01085662841796875, 0.006748199462890625, -0.0207672119140625, -0.00025010108947753906, -0.026336669921875, 0.031524658203125, -0.0089569091796875, 0.0278472900390625, -0.00458526611328125, -0.001354217529296875, -0.03857421875, -0.0153045654296875, 0.06109619140625, 0.01331329345703125, -0.02056884765625, -0.006656646728515625, -0.004650115966796875, 0.032470703125, 0.0017175674438476562, 0.01148223876953125, 0.022674560546875, -0.0232696533203125, -0.01641845703125, -0.03802490234375, -0.01213836669921875, -0.02606201171875, -0.048126220703125, 0.0035076141357421875, 0.01140594482421875, -0.03955078125, 0.01445770263671875, -0.0296783447265625, 0.0198516845703125, -0.025665283203125, -0.003543853759765625, 0.0145111083984375, 0.001468658447265625, -0.01276397705078125, 0.0176544189453125, 0.0099945068359375, 0.05584716796875, -0.08197021484375, 0.041961669921875, -0.000031054019927978516, 0.01194000244140625, 0.0096435546875, 0.043487548828125, -0.03497314453125, -0.0177459716796875, 0.028350830078125, -0.04925537109375, 0.00354766845703125, -0.038665771484375, -0.045318603515625, 0.0002503395080566406, 0.01479339599609375, 0.0082855224609375, 0.00885009765625, 0.017364501953125, -0.012786865234375, -0.05389404296875, -0.048309326171875, -0.0194549560546875, 0.01319122314453125, -0.0306396484375, 0.01105499267578125, -0.01422882080078125, -0.036712646484375, -0.01244354248046875, -0.004108428955078125, -0.04388427734375, -0.026885986328125, -0.01123046875, -0.0107421875, 0.0263671875, -0.0382080078125, 0.04949951171875, -0.0249481201171875, -0.025299072265625, -0.0024871826171875, 0.00444793701171875, 0.071533203125, 0.0621337890625, -0.038604736328125, -0.01070404052734375, -0.04815673828125, -0.0036163330078125, -0.02911376953125, -0.0675048828125, -0.024169921875, 0.00609588623046875, -0.007232666015625, 0.01654052734375, -0.0093231201171875, 0.005916595458984375, -0.030731201171875, 0.04107666015625, 0.023345947265625, 0.06097412109375, -0.007022857666015625, 0.05230712890625, -0.0166778564453125, 0.01117706298828125, 0.0162200927734375, 0.03875732421875, 0.0035190582275390625, -0.00994110107421875, 0.0130462646484375, 0.051116943359375, 0.00519561767578125, -0.032806396484375, 0.041259765625, -0.060516357421875, 0.054840087890625, -0.015869140625, 0.035491943359375, -0.044708251953125, -0.0009860992431640625, -0.0206451416015625, 0.044830322265625, -0.0703125, -0.0164337158203125, 0.02557373046875, -0.0236968994140625, -0.041046142578125, 0.01079559326171875, -0.0012989044189453125, 0.0036945343017578125, 0.0036144256591796875, -0.01065826416015625, 0.01194000244140625, -0.060577392578125, 0.055572509765625, 0.07830810546875, -0.00804901123046875, 0.06396484375, -0.0167694091796875, 0.0188140869140625, 0.0732421875, 0.00955963134765625, -0.01555633544921875, -0.00614166259765625, 0.054534912109375, 0.01470184326171875, -0.01053619384765625, 0.03955078125, -0.0245361328125, -0.00478363037109375, 0.0215606689453125, 0.041900634765625, -0.0093536376953125, -0.00774383544921875, -0.006175994873046875, -0.025390625, 0.03057861328125, -0.004199981689453125, -0.02264404296875, -0.03619384765625, 0.046234130859375, -0.0175628662109375, -0.007465362548828125, 0.0268096923828125, -0.00414276123046875, -0.01439666748046875, -0.03546142578125, -0.0019102096557617188, -0.006252288818359375, -0.00623321533203125, -0.018157958984375, 0.015289306640625, -0.0433349609375, -0.03448486328125, -0.007183074951171875, 0.032073974609375, -0.043487548828125, -0.056121826171875, 0.0004820823669433594, -0.007045745849609375, -0.003627777099609375, -0.0005741119384765625, 0.037445068359375, 0.0003883838653564453, 0.04241943359375, -0.003681182861328125, 0.005649566650390625, 0.018310546875, 0.027099609375, 0.025543212890625, 0.00028896331787109375, 0.0240631103515625, -0.0738525390625, -0.01006317138671875, -0.00891876220703125, -0.05584716796875, -0.016571044921875, -0.010284423828125, 0.019500732421875, 0.0845947265625, -0.0181732177734375, -0.0277862548828125, 0.055145263671875, 0.0213470458984375, -0.033416748046875, 0.006092071533203125, 0.021575927734375, -0.0634765625, -0.0309906005859375, 0.01371002197265625, -0.0162506103515625, -0.0009098052978515625, 0.002269744873046875, -0.05181884765625, 0.09136962890625, -0.032623291015625, 0.0203399658203125, 0.024017333984375, 0.033050537109375, -0.03961181640625, -0.0055084228515625, -0.01047515869140625, 0.060821533203125, 0.055633544921875, -0.0186614990234375, -0.03155517578125, -0.015716552734375, -0.0251617431640625, 0.0357666015625, 0.046478271484375, 0.00983428955078125, -0.032196044921875, 0.002750396728515625, 0.09674072265625, 0.045654296875, 0.0302734375, 0.038299560546875, 0.007480621337890625, -0.024749755859375, -0.0008792877197265625, 0.0269012451171875, 0.04266357421875, -0.046783447265625, -0.032684326171875, 0.01409912109375, 0.0272064208984375, 0.01361846923828125, 0.0157928466796875, 0.0628662109375, -0.0606689453125, 0.0158233642578125, 0.04754638671875, 0.015167236328125, 0.0167236328125, -0.0031147003173828125, 0.007671356201171875, 0.0211639404296875, -0.0146636962890625, 0.003971099853515625, 0.03448486328125, 0.01025390625, 0.00043392181396484375, -0.028350830078125, -0.005889892578125, -0.0023479461669921875, 0.0275421142578125, -0.005809783935546875, 0.0787353515625, -0.0295867919921875, 0.0206451416015625, 0.0170440673828125, 0.047393798828125, 0.005634307861328125, 0.038421630859375, -0.031890869140625, 0.004772186279296875, -0.035614013671875, -0.006622314453125, 0.0128326416015625, -0.0086669921875, -0.0201568603515625, -0.03863525390625, -0.01125335693359375, -0.0733642578125, -0.05181884765625, -0.0086822509765625, -0.008026123046875, 0.027862548828125, 0.0103607177734375, 0.03082275390625, 0.0828857421875, -0.057159423828125, -0.0289459228515625, -0.0214691162109375, -0.007579803466796875, -0.02301025390625, 0.022491455078125, 0.0193634033203125, 0.0169525146484375, -0.0182342529296875, -0.009918212890625, -0.05181884765625, 0.0369873046875, 0.059814453125, 0.0364990234375, 0.004177093505859375, 0.062225341796875, -0.002498626708984375, 0.0155487060546875, 0.0005011558532714844, -0.035888671875, 0.0430908203125, 0.032073974609375, -0.08770751953125, -0.0223388671875, 0.003673553466796875, -0.028961181640625, 0.0287017822265625, -0.028594970703125, 0.03350830078125, 0.01065826416015625, -0.006450653076171875, -0.01457977294921875, -0.004909515380859375, 0.04620361328125, -0.0093994140625, 0.022003173828125, -0.00028824806213378906, -0.0171661376953125, -0.0197906494140625, -0.01020050048828125, -0.003002166748046875, 0.01335906982421875, -0.01346588134765625, 0.006526947021484375, 0.0261383056640625, -0.0311431884765625, -0.00907135009765625, 0.015899658203125, -0.03472900390625, 0.037841796875, -0.0302276611328125, 0.0172882080078125, 0.0158233642578125, -0.03668212890625, -0.0004153251647949219, 0.0404052734375, 0.027679443359375, 0.0189056396484375, -0.03875732421875, -0.00640869140625, -0.036468505859375, 0.00984954833984375, 0.01151275634765625, 0.08453369140625, -0.007198333740234375, 0.0190887451171875, -0.016510009765625, 0.04815673828125, -0.05682373046875, -0.045196533203125, 0.06378173828125, -0.0350341796875, -0.0059661865234375, 0.00931549072265625, -0.106201171875, 0.0139923095703125, 0.017822265625, 0.006809234619140625, 0.032135009765625, -0.00896453857421875, 0.0126800537109375, -0.02032470703125, -0.0291290283203125, -0.027099609375, -0.042266845703125, 0.00263214111328125, 0.0190887451171875, -0.0175323486328125, -0.00809478759765625, -0.02685546875, -0.00528717041015625, 0.032318115234375, -0.0206451416015625, 0.0258331298828125, 0.033050537109375, -0.0034923553466796875, 0.0175018310546875, 0.01336669921875, -0.032989501953125, 0.046875, -0.00384521484375, 0.0374755859375, -0.0006532669067382812, 0.070068359375, 0.03466796875, -0.0284423828125, 0.048858642578125, 0.056396484375, 0.05755615234375, -0.0227508544921875, 0.02178955078125, 0.05609130859375, -0.008697509765625, 0.037506103515625, -0.041229248046875, -0.0090789794921875, -0.062469482421875, 0.00959014892578125, 0.01904296875, -0.0223541259765625, 0.0113525390625, 0.01319122314453125, 0.0273895263671875, 0.042388916015625, -0.004756927490234375, -0.031890869140625, 0.01641845703125, -0.015106201171875, 0.05938720703125, -0.0033512115478515625, -0.0031871795654296875, 0.00104522705078125, -0.0008234977722167969, -0.0355224609375, -0.024932861328125, -0.045257568359375, 0.029022216796875, -0.0232086181640625, 0.004894256591796875, 0.0201263427734375, 0.00940704345703125, 0.07147216796875, 0.0038604736328125, 0.0011301040649414062, 0.06390380859375, -0.049102783203125, -0.0202178955078125, 0.0667724609375, -0.050140380859375, -0.0257415771484375, -0.07257080078125, 0.01470947265625, -0.11138916015625, -0.004192352294921875, -0.04107666015625, 0.0014896392822265625, 0.00225830078125, -0.04193115234375, -0.06988525390625, 0.06396484375, -0.0248870849609375, -0.04559326171875, -0.0240631103515625, -0.0102386474609375, -0.0274658203125, 0.039031982421875, 0.007686614990234375, -0.0225982666015625, -0.005046844482421875, 0.046966552734375, 0.004058837890625, 0.039276123046875, -0.005649566650390625, 0.021026611328125, -0.059478759765625, 0.0245208740234375, 0.0048065185546875, 0.00879669189453125, -0.00743865966796875, -0.00908660888671875, 0.017059326171875, 0.0107421875, -0.042633056640625, 0.031158447265625, 0.0249481201171875, 0.0164642333984375, -0.0110626220703125, 0.0101165771484375, -0.03936767578125, -0.03106689453125, 0.048980712890625, 0.0276947021484375, 0.01016998291015625, 0.0186309814453125, -0.020965576171875, -0.0135955810546875, -0.037750244140625, 0.00612640380859375, 0.022705078125, -0.039642333984375, 0.01277923583984375, 0.00598907470703125, -0.025177001953125, 0.00614166259765625, -0.00876617431640625, -0.040740966796875, 0.0019350051879882812, -0.03314208984375, -0.01322174072265625, -0.0270538330078125, -0.0264739990234375, 0.042755126953125, -0.0183563232421875, 0.0243988037109375, 0.00742340087890625, 0.018798828125, 0.042877197265625, 0.06072998046875, 0.028961181640625, 0.05615234375, -0.0594482421875, 0.00606536865234375, 0.0198211669921875, -0.00399017333984375, -0.0301513671875, -0.00982666015625, 0.0006890296936035156, -0.0085296630859375, -0.01366424560546875, -0.0233306884765625, 0.005496978759765625, 0.021881103515625, -0.03302001953125, 0.0745849609375, -0.00507354736328125, 0.018096923828125, -0.0207672119140625, 0.0297393798828125, -0.0251312255859375, 0.006252288818359375, -0.021484375, -0.00479888916015625, 0.0216217041015625, -0.01396942138671875, 0.059356689453125, -0.038360595703125, 0.051239013671875, -0.02630615234375, -0.0017518997192382812, 0.035003662109375 ]
9a54ab4ae9ab23c52d2140570c1adda049a69e6c
Wordpress Stackexchange Q: Get list of years when posts have been published I want to create a list of posts from a Custom Post Type and add some filters the user can click to filter the list. I added filters for all the categories by using the get_terms() function. Now I want to add filters by year, so I need a way to retrieve a list of all the years in which at least one post has been published... I just need something like: $years = get_all_years_with_posts(); // returns array( 2011, 2013, 2014 ) I know I can grab all the posts, check their year, and build the list myself, but is not there any other approach? A: You could use this function to get all the post years in a array, which you could use to loop with. $terms_year = array( 'post_type' => array('YOUR_CPT'), ); $years = array(); $query_year = new WP_Query( $terms_year ); if ( $query_year->have_posts() ) : while ( $query_year->have_posts() ) : $query_year->the_post(); $year = get_the_date('Y'); if(!in_array($year, $years)){ $years[] = $year; } endwhile; wp_reset_postdata(); endif; // Echo the years out wherever you want echo '<pre>'; print_r($years); echo '</pre>';
Q: Get list of years when posts have been published I want to create a list of posts from a Custom Post Type and add some filters the user can click to filter the list. I added filters for all the categories by using the get_terms() function. Now I want to add filters by year, so I need a way to retrieve a list of all the years in which at least one post has been published... I just need something like: $years = get_all_years_with_posts(); // returns array( 2011, 2013, 2014 ) I know I can grab all the posts, check their year, and build the list myself, but is not there any other approach? A: You could use this function to get all the post years in a array, which you could use to loop with. $terms_year = array( 'post_type' => array('YOUR_CPT'), ); $years = array(); $query_year = new WP_Query( $terms_year ); if ( $query_year->have_posts() ) : while ( $query_year->have_posts() ) : $query_year->the_post(); $year = get_the_date('Y'); if(!in_array($year, $years)){ $years[] = $year; } endwhile; wp_reset_postdata(); endif; // Echo the years out wherever you want echo '<pre>'; print_r($years); echo '</pre>'; A: You could use a WP function and a shortcode this way : add_shortcode( 'archives', '_get_archived_posts' ); function _get_archived_posts( $atts ) { $a = shortcode_atts( array( 'type' => 'yearly', 'limit' => '', 'format' => '', 'before' => '', 'after' => '', 'show_post_count' => false, 'echo' => 0, 'order' => 'DESC' ), $atts, 'filter_archives_sc' ); return wp_get_archives($a); } Source A: Your question is pretty old, but I just wanted to add a real solution to your question. Here's a function that will return an array of years you have posts published in. You can put this function in functions.php or in a plugin or whatever you want. function get_posts_years_array() { global $wpdb; $result = array(); $years = $wpdb->get_results( $wpdb->prepare( "SELECT YEAR(post_date) FROM {$wpdb->posts} WHERE post_status = 'publish' GROUP BY YEAR(post_date) DESC" ), ARRAY_N ); if ( is_array( $years ) && count( $years ) > 0 ) { foreach ( $years as $year ) { $result[] = $year[0]; } } return $result; } You'll need to modify it slightly for custom post types... just add AND wp_posts.post_type = 'my_cpt' somewhere in there. A: // Get all years posts publish; function get_posts_years_array($post_type = 'post') { global $wpdb; $result = array(); $query_prepare = $wpdb->prepare("SELECT YEAR(post_date) FROM ($wpdb->posts) WHERE post_status = 'publish' AND post_type = %s GROUP BY YEAR(post_date) DESC", $post_type); $years = $wpdb->get_results($query_prepare); if ( is_array( $years ) && count( $years ) > 0 ) { foreach ( $years as $year ) { $result[] = json_decode(json_encode($year), true); } } return $result; }
wordpress
{ "language": "en", "length": 437, "provenance": "stackexchange_00019.jsonl.gz:445413", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145148" }
[ 0.0687255859375, -0.008392333984375, -0.004573822021484375, -0.04400634765625, 0.028839111328125, -0.04193115234375, 0.06329345703125, 0.01074981689453125, 0.06939697265625, -0.001842498779296875, -0.04705810546875, -0.01534271240234375, -0.048919677734375, -0.01343536376953125, -0.0295257568359375, -0.033538818359375, 0.047821044921875, -0.030120849609375, 0.0189971923828125, -0.01190948486328125, -0.0009751319885253906, 0.0110931396484375, 0.041900634765625, 0.031982421875, 0.0241546630859375, 0.01206207275390625, 0.0716552734375, -0.02789306640625, 0.034637451171875, -0.022369384765625, 0.0249481201171875, -0.02349853515625, -0.003543853759765625, 0.02935791015625, 0.01467132568359375, 0.08099365234375, -0.018280029296875, 0.0281524658203125, 0.0273590087890625, 0.021087646484375, 0.0150146484375, -0.01059722900390625, 0.01019287109375, 0.0103912353515625, -0.01678466796875, -0.015411376953125, 0.001644134521484375, -0.03558349609375, 0.0308837890625, -0.01186370849609375, 0.0147705078125, 0.0252227783203125, 0.02032470703125, -0.01158905029296875, -0.01064300537109375, 0.0350341796875, 0.028167724609375, -0.00907135009765625, 0.04351806640625, -0.0212554931640625, -0.06060791015625, -0.0209808349609375, 0.043426513671875, -0.015533447265625, -0.039154052734375, 0.005588531494140625, 0.02911376953125, -0.004116058349609375, -0.047271728515625, -0.04742431640625, 0.052520751953125, -0.00858306884765625, -0.0152130126953125, -0.0167999267578125, 0.039581298828125, 0.0185699462890625, -0.03619384765625, -0.0114288330078125, 0.019622802734375, 0.038299560546875, -0.00791168212890625, -0.033660888671875, -0.050323486328125, -0.0046844482421875, -0.001651763916015625, 0.00006449222564697266, -0.01385498046875, 0.0029277801513671875, -0.03375244140625, -0.0246429443359375, -0.0246734619140625, -0.0543212890625, -0.0233917236328125, -0.006267547607421875, -0.01250457763671875, -0.0294189453125, 0.0380859375, 0.083251953125, -0.03790283203125, -0.014007568359375, -0.03387451171875, -0.01641845703125, -0.038848876953125, -0.035858154296875, 0.014862060546875, 0.0406494140625, 0.0000743865966796875, 0.06524658203125, 0.052093505859375, 0.0246124267578125, 0.01422119140625, -0.0061187744140625, -0.032440185546875, -0.0219573974609375, -0.0110626220703125, 0.033782958984375, -0.018707275390625, -0.0158233642578125, -0.01824951171875, 0.00762939453125, 0.0279541015625, 0.048553466796875, -0.01285552978515625, -0.028533935546875, -0.01568603515625, -0.00594329833984375, -0.0230255126953125, -0.0307159423828125, 0.053009033203125, 0.03338623046875, -0.029510498046875, 0.011077880859375, 0.051300048828125, -0.025421142578125, -0.007434844970703125, -0.0311279296875, 0.01373291015625, -0.01806640625, -0.042633056640625, 0.037872314453125, -0.00858306884765625, -0.0194549560546875, 0.01218414306640625, -0.0215911865234375, 0.00589752197265625, -0.01148223876953125, 0.01727294921875, 0.034912109375, -0.00664520263671875, -0.0172119140625, 0.00763702392578125, 0.027435302734375, 0.0499267578125, 0.0037784576416015625, -0.00905609130859375, -0.037322998046875, 0.0228118896484375, -0.03558349609375, 0.006275177001953125, -0.048980712890625, 0.04901123046875, 0.01253509521484375, -0.024688720703125, -0.01326751708984375, -0.042388916015625, -0.0176849365234375, -0.03741455078125, -0.00997161865234375, 0.021209716796875, 0.01120758056640625, 0.020416259765625, -0.0192108154296875, 0.03143310546875, 0.004116058349609375, -0.013580322265625, 0.007419586181640625, -0.020050048828125, -0.0321044921875, 0.03839111328125, 0.006656646728515625, -0.019073486328125, -0.02569580078125, -0.00933074951171875, 0.01519775390625, -0.0546875, 0.0087432861328125, -0.0024127960205078125, 0.0163116455078125, 0.044342041015625, 0.00501251220703125, 0.0311126708984375, 0.0117950439453125, -0.055023193359375, 0.015838623046875, -0.015777587890625, -0.0013189315795898438, -0.0293731689453125, -0.005321502685546875, -0.0289764404296875, 0.042724609375, 0.01702880859375, -0.0226287841796875, -0.0035800933837890625, 0.0185089111328125, -0.08197021484375, 0.00676727294921875, -0.03656005859375, 0.006137847900390625, -0.00006473064422607422, 0.0016641616821289062, 0.0372314453125, 0.031982421875, -0.0479736328125, -0.0011959075927734375, -0.037078857421875, 0.026947021484375, 0.0021648406982421875, -0.0233154296875, 0.00991058349609375, -0.01202392578125, 0.040985107421875, 0.00036263465881347656, 0.010650634765625, 0.035430908203125, 0.10455322265625, -0.048583984375, -0.005832672119140625, -0.050567626953125, 0.04669189453125, 0.0053558349609375, -0.08563232421875, 0.04547119140625, 0.048248291015625, 0.04498291015625, -0.0017375946044921875, -0.015899658203125, 0.006130218505859375, -0.076904296875, 0.007049560546875, 0.06390380859375, 0.03436279296875, 0.027862548828125, 0.006504058837890625, 0.005687713623046875, 0.03765869140625, -0.062255859375, -0.0131683349609375, 0.00048422813415527344, 0.02386474609375, 0.0823974609375, 0.004726409912109375, 0.0298919677734375, 0.01348114013671875, 0.060272216796875, 0.0176239013671875, 0.027252197265625, 0.00968170166015625, 0.03155517578125, 0.00934600830078125, -0.0338134765625, 0.005603790283203125, -0.03631591796875, -0.0406494140625, -0.01015472412109375, 0.041961669921875, 0.0025615692138671875, 0.0347900390625, 0.037078857421875, -0.01348114013671875, -0.006229400634765625, -0.0044097900390625, -0.029541015625, 0.00543975830078125, 0.03692626953125, -0.057525634765625, -0.0207366943359375, -0.0305023193359375, 0.01531982421875, 0.02203369140625, -0.008819580078125, 0.01605224609375, 0.03546142578125, 0.032623291015625, -0.0014810562133789062, 0.00591278076171875, -0.0279541015625, 0.0150146484375, 0.03399658203125, 0.0218353271484375, 0.024200439453125, 0.02691650390625, 0.04205322265625, -0.0176849365234375, 0.048583984375, 0.0193634033203125, 0.001995086669921875, -0.029541015625, -0.0574951171875, 0.03424072265625, -0.03125, 0.0056304931640625, 0.07177734375, 0.054107666015625, -0.0122222900390625, -0.0018377304077148438, 0.0034809112548828125, -0.007343292236328125, 0.005367279052734375, -0.0256500244140625, -0.00968170166015625, -0.06707763671875, -0.0027637481689453125, 0.02752685546875, 0.050567626953125, 0.010894775390625, -0.0184173583984375, 0.006511688232421875, 0.02154541015625, -0.054534912109375, -0.041595458984375, 0.003757476806640625, -0.06976318359375, 0.01453399658203125, -0.024200439453125, -0.02825927734375, 0.00274658203125, -0.0017566680908203125, 0.0149688720703125, 0.054412841796875, -0.00803375244140625, -0.03204345703125, -0.0251007080078125, -0.0758056640625, -0.02685546875, 0.01275634765625, 0.020263671875, -0.0126953125, 0.1163330078125, 0.016937255859375, -0.0728759765625, -0.032073974609375, 0.05645751953125, -0.039581298828125, -0.0093994140625, 0.0012769699096679688, 0.0218658447265625, 0.007717132568359375, 0.0067138671875, -0.0016012191772460938, 0.0260772705078125, -0.0308837890625, -0.017486572265625, 0.01128387451171875, 0.00678253173828125, 0.038726806640625, 0.0247955322265625, -0.0158233642578125, 0.0220947265625, 0.06304931640625, -0.0225372314453125, 0.0198974609375, 0.027496337890625, -0.001155853271484375, 0.00901031494140625, -0.022491455078125, -0.0282135009765625, -0.0015916824340820312, 0.01157379150390625, -0.0328369140625, -0.0237884521484375, 0.0088348388671875, -0.05865478515625, 0.021942138671875, 0.0201873779296875, 0.02264404296875, 0.01364898681640625, 0.01556396484375, -0.01318359375, 0.00217437744140625, 0.012420654296875, 0.03021240234375, 0.0281524658203125, -0.0169830322265625, -0.02679443359375, -0.08489990234375, 0.041107177734375, -0.041778564453125, 0.0004341602325439453, -0.04638671875, -0.0296173095703125, 0.014373779296875, 0.11309814453125, -0.038909912109375, -0.016876220703125, -0.05908203125, -0.01512908935546875, 0.0026149749755859375, -0.0345458984375, -0.00107574462890625, -0.011016845703125, -0.0728759765625, 0.03692626953125, -0.0242462158203125, -0.0031299591064453125, -0.03424072265625, -0.0013399124145507812, -0.048095703125, -0.045074462890625, 0.0248870849609375, -0.0030498504638671875, 0.027496337890625, -0.00817108154296875, -0.01013946533203125, 0.0010633468627929688, -0.0142059326171875, -0.024627685546875, -0.01251220703125, -0.020294189453125, 0.02215576171875, 0.00519561767578125, -0.007335662841796875, -0.01198577880859375, 0.0026092529296875, 0.028533935546875, 0.02899169921875, 0.00662994384765625, -0.0027923583984375, -0.0039520263671875, -0.00955963134765625, -0.0015964508056640625, 0.002895355224609375, -0.024932861328125, -0.0275726318359375, -0.04437255859375, 0.0293426513671875, 0.03057861328125, -0.042938232421875, 0.0027027130126953125, -0.06396484375, 0.024810791015625, -0.0164794921875, -0.00914764404296875, 0.0011167526245117188, 0.00682830810546875, -0.023834228515625, 0.00313568115234375, 0.00836944580078125, -0.01580810546875, 0.039031982421875, 0.03594970703125, -0.007198333740234375, 0.006015777587890625, 0.052703857421875, 0.0011196136474609375, -0.045074462890625, -0.08837890625, 0.00571441650390625, 0.041229248046875, -0.051483154296875, 0.0265960693359375, 0.01910400390625, -0.036468505859375, 0.064697265625, -0.0224456787109375, -0.0108642578125, -0.02545166015625, 0.054840087890625, 0.0257415771484375, 0.027679443359375, -0.016082763671875, -0.00240325927734375, 0.036407470703125, 0.0281829833984375, -0.00539398193359375, -0.0078125, 0.031829833984375, 0.0457763671875, -0.018798828125, 0.0093841552734375, -0.036529541015625, -0.03472900390625, 0.01031494140625, -0.031097412109375, 0.038665771484375, 0.00295257568359375, 0.0080108642578125, 0.01450347900390625, 0.01059722900390625, 0.0236358642578125, -0.0200347900390625, 0.03424072265625, -0.0167999267578125, 0.037139892578125, 0.00493621826171875, 0.00023102760314941406, -0.04180908203125, 0.00994873046875, -0.032318115234375, -0.022308349609375, -0.062744140625, 0.0081634521484375, -0.0088958740234375, 0.0150146484375, 0.04083251953125, -0.054351806640625, 0.043182373046875, 0.1146240234375, -0.006072998046875, 0.0213470458984375, -0.0477294921875, 0.06707763671875, -0.04083251953125, -0.0026302337646484375, 0.006366729736328125, -0.007747650146484375, 0.0080108642578125, 0.05523681640625, -0.0234527587890625, 0.031951904296875, -0.0242156982421875, 0.045013427734375, 0.03167724609375, 0.021881103515625, 0.01464080810546875, -0.00695037841796875, -0.003597259521484375, -0.0009317398071289062, -0.01236724853515625, -0.042083740234375, 0.00579071044921875, 0.0031490325927734375, 0.0230560302734375, 0.0189208984375, -0.01947021484375, 0.041015625, 0.0074310302734375, -0.01235198974609375, 0.02423095703125, 0.0197601318359375, 0.001956939697265625, -0.0267791748046875, -0.030548095703125, 0.02655029296875, 0.0123291015625, -0.003940582275390625, 0.00896453857421875, -0.0235595703125, -0.01079559326171875, -0.0433349609375, -0.017333984375, -0.0240478515625, 0.00030732154846191406, -0.0218048095703125, -0.025177001953125, -0.0199432373046875, 0.02008056640625, -0.0022220611572265625, -0.022186279296875, -0.01953125, 0.045745849609375, -0.0206451416015625, 0.03363037109375, -0.02716064453125, -0.02423095703125, 0.0160369873046875, -0.00423431396484375, 0.10211181640625, 0.06353759765625, -0.01093292236328125, -0.01396942138671875, -0.039947509765625, -0.031280517578125, 0.022552490234375, -0.00005364418029785156, -0.03131103515625, -0.0048675537109375, 0.01325225830078125, 0.018218994140625, -0.0191497802734375, -0.024017333984375, 0.002899169921875, 0.01418304443359375, 0.0154571533203125, 0.052276611328125, 0.0270538330078125, 0.054779052734375, -0.0144195556640625, 0.055389404296875, 0.01491546630859375, 0.0036563873291015625, -0.06256103515625, -0.0159912109375, -0.0032863616943359375, -0.08807373046875, -0.00337982177734375, 0.005168914794921875, -0.0175933837890625, 0.01611328125, -0.009368896484375, 0.00844573974609375, 0.0137481689453125, -0.0203094482421875, 0.0086212158203125, -0.0243988037109375, 0.0169830322265625, -0.0272979736328125, -0.0027103424072265625, 0.04473876953125, -0.006023406982421875, 0.0017938613891601562, -0.00006288290023803711, -0.03411865234375, 0.0258636474609375, 0.0146942138671875, 0.03466796875, -0.03436279296875, -0.02105712890625, 0.017547607421875, 0.0193634033203125, 0.005702972412109375, 0.031951904296875, 0.01436614990234375, 0.03521728515625, 0.0017499923706054688, -0.0478515625, 0.0367431640625, -0.00608062744140625, 0.07269287109375, -0.0169525146484375, -0.007389068603515625, 0.064697265625, -0.043212890625, -0.034332275390625, -0.005950927734375, -0.0012416839599609375, -0.00852203369140625, -0.005924224853515625, 0.004474639892578125, 0.0201416015625, 0.02587890625, -0.0207061767578125, -0.00827789306640625, -0.007747650146484375, 0.048309326171875, -0.033477783203125, -0.032012939453125, 0.0079498291015625, 0.001735687255859375, 0.0108184814453125, -0.022216796875, 0.035614013671875, -0.004863739013671875, -0.034027099609375, 0.0035190582275390625, 0.00839996337890625, -0.008209228515625, -0.011505126953125, 0.0119781494140625, -0.0232696533203125, -0.0074462890625, -0.0679931640625, -0.01059722900390625, -0.049560546875, -0.004192352294921875, 0.024749755859375, -0.01526641845703125, -0.0251007080078125, 0.04754638671875, -0.035125732421875, 0.029754638671875, 0.0261993408203125, -0.04888916015625, -0.03924560546875, -0.01206207275390625, 0.00907135009765625, 0.033416748046875, -0.03363037109375, 0.03118896484375, -0.027374267578125, -0.01020050048828125, 0.005313873291015625, -0.01114654541015625, 0.0226898193359375, -0.033935546875, -0.01464080810546875, 0.0232696533203125, 0.01151275634765625, -0.007007598876953125, -0.006511688232421875, -0.00827789306640625, -0.041839599609375, 0.0069580078125, -0.010498046875, -0.0160675048828125, 0.0035190582275390625, 0.0011053085327148438, -0.0474853515625, 0.06463623046875, -0.047943115234375, 0.0130767822265625, 0.0267181396484375, 0.01203155517578125, -0.021209716796875, -0.01297760009765625, -0.062347412109375, 0.051055908203125, 0.03509521484375, 0.034515380859375, -0.09124755859375, -0.028289794921875, -0.0225982666015625, 0.04779052734375, 0.07244873046875, 0.0132598876953125, -0.047119140625, -0.032562255859375, 0.039581298828125, 0.045257568359375, -0.0021572113037109375, 0.031829833984375, 0.015228271484375, 0.037078857421875, 0.05401611328125, -0.0150604248046875, 0.031646728515625, -0.0083770751953125, -0.01291656494140625, 0.042327880859375, -0.011932373046875, -0.027801513671875, -0.01702880859375, -0.0207366943359375, -0.0521240234375, -0.01495361328125, 0.00415802001953125, 0.037567138671875, 0.0391845703125, 0.029937744140625, 0.060577392578125, -0.0039005279541015625, 0.02069091796875, -0.0166168212890625, 0.0626220703125, 0.0033168792724609375, 0.0133209228515625, 0.029754638671875, 0.009429931640625, 0.0150604248046875, 0.01219940185546875, 0.0119171142578125, 0.02667236328125, 0.0037326812744140625, 0.040130615234375, 0.005939483642578125, 0.007495880126953125, -0.0628662109375, -0.01213836669921875, 0.053131103515625, 0.05426025390625, -0.032501220703125, -0.055938720703125, 0.0243072509765625, 0.01904296875, -0.0033702850341796875, 0.0277557373046875, 0.0095062255859375, -0.004497528076171875, 0.066650390625, -0.033721923828125, -0.01277923583984375, 0.00965118408203125, 0.0294189453125, 0.0009899139404296875, -0.0269317626953125, 0.0038547515869140625, -0.0219268798828125, -0.058074951171875, 0.004009246826171875, 0.0204620361328125, 0.055267333984375, 0.0277099609375, 0.047882080078125, 0.003368377685546875, -0.0297393798828125, 0.03228759765625, -0.0180511474609375, 0.040435791015625, -0.05194091796875, 0.032501220703125, -0.0006575584411621094, -0.0042724609375, 0.007457733154296875, 0.0286865234375, -0.004608154296875, 0.05908203125, 0.017608642578125, -0.060821533203125, -0.0121917724609375, 0.059600830078125, -0.037109375, -0.048065185546875, -0.0246124267578125, -0.0100250244140625, 0.0172271728515625, 0.007640838623046875, 0.02392578125, 0.049560546875, -0.005283355712890625, -0.02984619140625, 0.042144775390625, -0.00936126708984375, -0.0258636474609375, 0.04046630859375, -0.0173187255859375, 0.07147216796875, -0.0160675048828125, -0.06854248046875, -0.01447296142578125, -0.06536865234375, -0.053131103515625, 0.037353515625, 0.026641845703125, 0.0070343017578125, -0.0014190673828125, -0.01482391357421875, -0.0301971435546875, 0.016204833984375, 0.00555419921875, 0.0107574462890625, 0.008697509765625, -0.01166534423828125, -0.01070404052734375, -0.0283966064453125, -0.003955841064453125, -0.018707275390625, 0.01100921630859375, 0.0343017578125, 0.026580810546875, 0.021209716796875, 0.0338134765625, -0.00244903564453125, 0.01873779296875, -0.029449462890625, -0.004604339599609375, 0.0343017578125, -0.0155487060546875, 0.0223846435546875, -0.00897979736328125, -0.02001953125, 0.006748199462890625, 0.03924560546875, -0.037139892578125, -0.01139068603515625, -0.00504302978515625, 0.0174713134765625, -0.018798828125, 0.040802001953125, -0.020263671875, 0.0142059326171875, 0.0094146728515625, -0.0255584716796875, 0.033721923828125, 0.008331298828125, 0.0372314453125, 0.01953125, 0.0146942138671875, -0.04736328125, 0.050140380859375, -0.039825439453125, 0.04742431640625, 0.031219482421875, 0.031585693359375, 0.00916290283203125, -0.019927978515625, -0.013519287109375, 0.00997161865234375, 0.0269317626953125, -0.021636962890625, 0.005313873291015625, 0.041900634765625, -0.0019817352294921875, 0.006317138671875, 0.046356201171875, -0.009674072265625, 0.005107879638671875, -0.004032135009765625, -0.0054473876953125, -0.01247406005859375, -0.00998687744140625, -0.0293731689453125, -0.054046630859375, -0.0022525787353515625, 0.01148223876953125, -0.0103302001953125, -0.06512451171875, -0.045623779296875, -0.0296630859375, 0.0149688720703125, 0.01421356201171875, -0.040008544921875, 0.01971435546875, -0.005451202392578125, 0.00504302978515625, -0.0192718505859375, -0.003894805908203125, 0.0033130645751953125, 0.00811767578125, -0.0099945068359375, 0.0246429443359375, -0.028045654296875, -0.0196533203125, 0.0174102783203125, 0.004802703857421875, 0.0099334716796875, -0.0196685791015625, -0.03466796875, 0.0250701904296875, -0.000278472900390625, 0.056549072265625, 0.0128936767578125, 0.01483154296875, 0.022003173828125, 0.006855010986328125, -0.045501708984375, -0.10235595703125, 0.04119873046875, -0.0693359375, -0.03216552734375, 0.00006026029586791992, 0.009796142578125, 0.04315185546875, -0.021240234375, -0.09991455078125, 0.0545654296875, -0.03521728515625, -0.035919189453125, -0.05413818359375, 0.00067138671875, 0.004978179931640625, 0.03448486328125, 0.0031585693359375, -0.036590576171875, -0.0399169921875, 0.013458251953125, -0.01226043701171875, 0.023406982421875, 0.007671356201171875, 0.0033588409423828125, -0.07940673828125, -0.01107025146484375, -0.0272216796875, -0.0194244384765625, 0.0259552001953125, 0.0014867782592773438, 0.0301971435546875, 0.01352691650390625, -0.039306640625, 0.00394439697265625, -0.015655517578125, -0.00327301025390625, 0.00007355213165283203, -0.059600830078125, -0.028228759765625, -0.0260009765625, 0.043548583984375, 0.006870269775390625, 0.021087646484375, -0.0237274169921875, 0.0217437744140625, 0.0426025390625, -0.040618896484375, -0.0009312629699707031, 0.02886962890625, -0.029571533203125, -0.0196685791015625, -0.03045654296875, -0.0176239013671875, -0.020263671875, -0.01031494140625, -0.032135009765625, -0.01497650146484375, -0.02423095703125, -0.005035400390625, 0.0012712478637695312, 0.04351806640625, 0.0000680088996887207, -0.0266571044921875, -0.0357666015625, 0.005092620849609375, -0.0239410400390625, -0.03338623046875, 0.0167694091796875, 0.0035839080810546875, 0.01220703125, 0.02215576171875, -0.01617431640625, 0.04119873046875, -0.038238525390625, 0.03741455078125, 0.00864410400390625, 0.01184844970703125, 0.002338409423828125, -0.00927734375, -0.0244293212890625, -0.002124786376953125, 0.05963134765625, -0.0171966552734375, 0.05908203125, 0.00955963134765625, 0.05841064453125, -0.0025424957275390625, 0.03839111328125, -0.023834228515625, -0.030609130859375, -0.01305389404296875, -0.040008544921875, 0.0112762451171875, -0.023895263671875, -0.0261688232421875, -0.00518798828125, -0.0181121826171875, 0.007068634033203125, -0.04278564453125, -0.002105712890625 ]
4659b0faad7a3527bd3e26a111d2c327f0a8f309
Wordpress Stackexchange Q: Is it possible to export WordPress from command line? Is it possible to export WordPress from command line? I don't mean use mysqldump to export the database, but create the xml file used to easily import to another WordPress installation. A: Check out http://wp-cli.org/. It's fantastic and I've used the export capability multiple times. More information on wp-cli. WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser. You will most likely have to install wp-cli. You can find instructions on wp-cli.org. There are also alternative installation instructions here: https://github.com/wp-cli/wp-cli/wiki/Alternative-Install-Methods To export your posts using wp-cli, you can use the command. wp export There are many options to limit the export by date, post type, category, author, etc. Most details can be found on this page: http://wp-cli.org/commands/export/ I don't know of any other way to export an xml file from the command line.
Q: Is it possible to export WordPress from command line? Is it possible to export WordPress from command line? I don't mean use mysqldump to export the database, but create the xml file used to easily import to another WordPress installation. A: Check out http://wp-cli.org/. It's fantastic and I've used the export capability multiple times. More information on wp-cli. WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser. You will most likely have to install wp-cli. You can find instructions on wp-cli.org. There are also alternative installation instructions here: https://github.com/wp-cli/wp-cli/wiki/Alternative-Install-Methods To export your posts using wp-cli, you can use the command. wp export There are many options to limit the export by date, post type, category, author, etc. Most details can be found on this page: http://wp-cli.org/commands/export/ I don't know of any other way to export an xml file from the command line. A: export wp export --dir=/var/www/site.com/htdocs/backup --user=admin --post_type=post --start_date=2021-05-07 --end_date=2021-05-08 --allow-root import wp import example.wordpress.2021-05-08.000.xml --authors=create --allow-root If you are not root, discard --allow-root Change example.wordpress.2021-05-08.000.xml to your filename You need to change the information according to your usage. Directory name, filename, etc.
wordpress
{ "language": "en", "length": 203, "provenance": "stackexchange_00019.jsonl.gz:445417", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145158" }
[ 0.0032062530517578125, -0.021514892578125, 0.0095367431640625, 0.0234832763671875, -0.0260772705078125, -0.0306243896484375, 0.051422119140625, -0.028533935546875, -0.0161590576171875, 0.01242828369140625, -0.0014009475708007812, -0.01560211181640625, -0.034210205078125, -0.0251007080078125, -0.01312255859375, -0.05535888671875, 0.0241851806640625, -0.006977081298828125, 0.006359100341796875, -0.00548553466796875, 0.0372314453125, 0.0167694091796875, -0.0158538818359375, 0.045928955078125, 0.0199737548828125, 0.0225982666015625, 0.06549072265625, 0.001552581787109375, 0.01446533203125, 0.0052337646484375, 0.0235595703125, -0.05108642578125, 0.01206207275390625, 0.0216217041015625, -0.00962066650390625, 0.006076812744140625, -0.038482666015625, 0.0309600830078125, 0.0036792755126953125, -0.0021800994873046875, -0.019866943359375, 0.023773193359375, 0.058990478515625, 0.0255584716796875, -0.0119171142578125, 0.01042938232421875, -0.052978515625, -0.0428466796875, 0.00470733642578125, 0.0124969482421875, -0.0035610198974609375, 0.00844573974609375, 0.0089263916015625, 0.00969696044921875, -0.0045928955078125, 0.0030345916748046875, 0.0035114288330078125, 0.03424072265625, 0.05010986328125, -0.033966064453125, -0.0595703125, -0.025115966796875, 0.026763916015625, 0.0006003379821777344, 0.01580810546875, -0.015869140625, 0.0002467632293701172, 0.02203369140625, -0.05963134765625, 0.0085296630859375, 0.048248291015625, -0.036590576171875, 0.016754150390625, -0.020660400390625, 0.0206756591796875, 0.003040313720703125, 0.0004925727844238281, 0.0024566650390625, 0.0149688720703125, 0.003810882568359375, 0.036651611328125, 0.031158447265625, -0.0009593963623046875, -0.046661376953125, 0.0384521484375, -0.005359649658203125, 0.0006079673767089844, -0.0209503173828125, 0.004322052001953125, -0.01873779296875, -0.01012420654296875, 0.03717041015625, -0.0445556640625, 0.02239990234375, -0.021148681640625, -0.01108551025390625, -0.0276031494140625, -0.066650390625, 0.020172119140625, 0.0297393798828125, 0.029541015625, -0.03509521484375, 0.057159423828125, -0.003299713134765625, -0.0184326171875, 0.0445556640625, 0.0263214111328125, 0.027191162109375, -0.00004017353057861328, 0.0159149169921875, -0.0272674560546875, -0.026153564453125, 0.01300811767578125, -0.0004901885986328125, 0.005603790283203125, 0.01715087890625, -0.0006442070007324219, 0.0384521484375, -0.0167236328125, 0.042938232421875, -0.020660400390625, 0.02325439453125, -0.0587158203125, 0.017364501953125, -0.0005259513854980469, -0.0111541748046875, 0.0355224609375, 0.014190673828125, -0.0355224609375, 0.044036865234375, 0.0139312744140625, -0.00933837890625, -0.0142364501953125, 0.0183868408203125, -0.0259857177734375, -0.009735107421875, 0.0225067138671875, -0.0223541259765625, 0.010986328125, 0.01483917236328125, -0.003265380859375, -0.04345703125, 0.003192901611328125, -0.0024127960205078125, 0.0308074951171875, 0.01486968994140625, 0.00592041015625, 0.0121002197265625, 0.01087188720703125, -0.0145721435546875, -0.0016641616821289062, -0.004795074462890625, -0.0021305084228515625, 0.007709503173828125, 0.0565185546875, -0.06707763671875, 0.0289154052734375, -0.04888916015625, 0.07708740234375, -0.0369873046875, -0.039764404296875, 0.004360198974609375, 0.061187744140625, 0.018096923828125, 0.0229644775390625, 0.0098724365234375, -0.0220794677734375, -0.0007085800170898438, 0.0095977783203125, -0.00274658203125, -0.0240631103515625, -0.004703521728515625, 0.04730224609375, -0.03582763671875, -0.025299072265625, 0.004344940185546875, -0.0079345703125, -0.07525634765625, 0.053314208984375, 0.043701171875, -0.0034275054931640625, 0.01163482666015625, 0.0275726318359375, 0.007495880126953125, -0.03546142578125, 0.01049041748046875, 0.00836181640625, 0.056884765625, 0.0330810546875, 0.02984619140625, -0.002109527587890625, -0.0255279541015625, -0.02508544921875, 0.006656646728515625, -0.036102294921875, -0.01047515869140625, -0.0248260498046875, 0.0014696121215820312, -0.029083251953125, 0.0254364013671875, -0.004207611083984375, 0.003971099853515625, 0.0002849102020263672, 0.004947662353515625, -0.055023193359375, 0.0176849365234375, -0.0264434814453125, 0.0279083251953125, -0.004329681396484375, -0.01255035400390625, 0.01010894775390625, 0.00440216064453125, 0.014678955078125, -0.07745361328125, -0.046051025390625, 0.02886962890625, -0.0029315948486328125, 0.041046142578125, -0.022125244140625, 0.021392822265625, -0.0193328857421875, -0.019927978515625, -0.015655517578125, 0.04266357421875, -0.0196380615234375, 0.006103515625, -0.0155029296875, 0.004344940185546875, -0.0198974609375, -0.0081024169921875, 0.042236328125, 0.0280303955078125, 0.01885986328125, 0.0562744140625, -0.003704071044921875, -0.0311431884765625, -0.0176544189453125, -0.068603515625, 0.0300445556640625, 0.05047607421875, 0.0239410400390625, 0.048675537109375, -0.01055145263671875, 0.0130462646484375, 0.09710693359375, 0.0258941650390625, 0.02435302734375, -0.0208740234375, -0.0036373138427734375, 0.0101318359375, -0.019500732421875, -0.0296630859375, 0.01910400390625, -0.0531005859375, -0.0078582763671875, 0.03936767578125, -0.01374053955078125, -0.0167083740234375, -0.014617919921875, 0.002773284912109375, 0.0103759765625, -0.012359619140625, -0.0196685791015625, -0.006855010986328125, -0.02008056640625, 0.01409149169921875, 0.0150909423828125, 0.01404571533203125, 0.0041351318359375, -0.007568359375, 0.0200042724609375, -0.0135498046875, 0.0246429443359375, 0.038330078125, -0.00489044189453125, 0.0858154296875, -0.0176849365234375, -0.03521728515625, 0.0278167724609375, 0.058135986328125, -0.007129669189453125, 0.006313323974609375, 0.03436279296875, -0.01293182373046875, 0.0013399124145507812, -0.035980224609375, 0.0556640625, 0.0162506103515625, -0.048370361328125, 0.013580322265625, 0.0225067138671875, 0.03582763671875, 0.01910400390625, -0.00749969482421875, 0.00484466552734375, 0.01983642578125, 0.0848388671875, 0.01172637939453125, -0.004520416259765625, 0.0217132568359375, 0.07720947265625, 0.040283203125, 0.0005784034729003906, 0.0124359130859375, -0.01023101806640625, 0.043121337890625, 0.0278778076171875, -0.0202178955078125, -0.038818359375, -0.01244354248046875, -0.057830810546875, -0.0616455078125, 0.007274627685546875, 0.038665771484375, -0.0220947265625, -0.046844482421875, -0.0182342529296875, -0.01202392578125, -0.0811767578125, -0.0831298828125, -0.0197296142578125, -0.055389404296875, -0.0079803466796875, 0.0002930164337158203, -0.024688720703125, -0.00014674663543701172, 0.0227508544921875, 0.0096893310546875, 0.07568359375, -0.06402587890625, -0.0269622802734375, -0.0611572265625, -0.0738525390625, -0.07135009765625, 0.0189971923828125, -0.0130462646484375, 0.0034542083740234375, 0.060302734375, 0.0091705322265625, -0.05694580078125, -0.0185089111328125, 0.072021484375, -0.00746917724609375, -0.01019287109375, 0.003742218017578125, -0.025146484375, 0.0006341934204101562, -0.00171661376953125, 0.0811767578125, 0.0116729736328125, -0.0144500732421875, -0.0040740966796875, 0.0029201507568359375, -0.03826904296875, -0.01983642578125, -0.0266876220703125, -0.0055389404296875, -0.0258941650390625, -0.0357666015625, -0.06719970703125, 0.00942230224609375, -0.00782012939453125, -0.0112762451171875, -0.00133514404296875, 0.01959228515625, -0.0205535888671875, -0.0283660888671875, 0.0023670196533203125, 0.0146026611328125, 0.0169830322265625, 0.0044708251953125, 0.01221466064453125, 0.0184783935546875, -0.0181121826171875, -0.0187835693359375, -0.02679443359375, 0.035430908203125, -0.01055908203125, -0.004108428955078125, 0.0229949951171875, -0.0204925537109375, -0.0235748291015625, -0.00409698486328125, -0.0257568359375, -0.048065185546875, 0.046417236328125, -0.0273895263671875, -0.0211639404296875, -0.0125885009765625, -0.0282745361328125, 0.02471923828125, 0.08074951171875, 0.0106353759765625, -0.042236328125, 0.0265350341796875, 0.0269622802734375, -0.00771331787109375, -0.0163116455078125, 0.00934600830078125, -0.035003662109375, -0.058929443359375, 0.0267333984375, 0.00030541419982910156, -0.020477294921875, 0.01065826416015625, -0.07232666015625, -0.01230621337890625, -0.06439208984375, 0.02740478515625, 0.0160369873046875, 0.032318115234375, -0.024078369140625, 0.031768798828125, -0.037811279296875, -0.01009368896484375, -0.0013532638549804688, -0.09014892578125, -0.00753021240234375, -0.045318603515625, 0.054718017578125, -0.012420654296875, 0.04559326171875, -0.04302978515625, 0.0293121337890625, -0.0193939208984375, 0.056640625, -0.0230560302734375, 0.014617919921875, -0.0004563331604003906, -0.0181427001953125, -0.00466156005859375, -0.0175628662109375, -0.039337158203125, -0.0433349609375, 0.0026035308837890625, 0.018341064453125, 0.0082855224609375, 0.007537841796875, 0.01483154296875, 0.005054473876953125, -0.04180908203125, -0.0218658447265625, 0.0021228790283203125, 0.0023193359375, -0.0159759521484375, -0.0002238750457763672, -0.03240966796875, -0.0195770263671875, 0.0221099853515625, -0.00611114501953125, -0.022064208984375, 0.0179290771484375, 0.058685302734375, -0.000514984130859375, -0.01009368896484375, -0.06390380859375, 0.00513458251953125, 0.016845703125, -0.003383636474609375, 0.06640625, 0.0242462158203125, 0.014801025390625, 0.04443359375, -0.01206207275390625, -0.017578125, -0.0308990478515625, 0.0303192138671875, 0.000514984130859375, -0.0121917724609375, -0.004802703857421875, -0.012176513671875, 0.04400634765625, 0.0019359588623046875, 0.00698089599609375, -0.018524169921875, 0.00545501708984375, 0.048095703125, 0.0268096923828125, -0.042755126953125, -0.060150146484375, -0.030975341796875, 0.00885009765625, -0.0718994140625, 0.0194244384765625, 0.0335693359375, -0.018402099609375, 0.0170135498046875, -0.003620147705078125, 0.001422882080078125, 0.0201873779296875, 0.0301513671875, 0.00853729248046875, 0.01788330078125, 0.040771484375, -0.01214599609375, -0.02252197265625, -0.012664794921875, 0.027130126953125, 0.024566650390625, -0.047271728515625, -0.0007472038269042969, -0.005542755126953125, 0.03131103515625, -0.016632080078125, -0.01336669921875, 0.021148681640625, 0.0025615692138671875, -0.04071044921875, -0.034881591796875, -0.031890869140625, -0.034820556640625, -0.06573486328125, -0.009979248046875, -0.02032470703125, 0.0036144256591796875, 0.040191650390625, 0.0233917236328125, -0.035980224609375, 0.036834716796875, -0.00954437255859375, 0.01165008544921875, 0.025665283203125, 0.03448486328125, 0.019805908203125, -0.055999755859375, 0.0267333984375, -0.0212249755859375, 0.01222991943359375, -0.01398468017578125, 0.044403076171875, 0.0231475830078125, 0.0284881591796875, 0.04833984375, -0.0081024169921875, -0.0018672943115234375, -0.036285400390625, 0.0019588470458984375, 0.01123809814453125, -0.0009531974792480469, -0.01837158203125, 0.000011861324310302734, -0.02587890625, -0.0181121826171875, -0.0256500244140625, 0.0101776123046875, 0.01309967041015625, -0.0206146240234375, -0.02044677734375, 0.01160430908203125, -0.0248565673828125, -0.0304412841796875, -0.0081787109375, -0.0164947509765625, 0.0015239715576171875, -0.00786590576171875, 0.0126800537109375, -0.01413726806640625, -0.0186309814453125, -0.052032470703125, 0.07061767578125, 0.006771087646484375, -0.0137176513671875, -0.0223541259765625, -0.0029926300048828125, -0.013702392578125, -0.0264739990234375, 0.09185791015625, 0.02001953125, -0.0174713134765625, 0.0125885009765625, -0.04583740234375, -0.02105712890625, 0.006748199462890625, -0.01421356201171875, -0.062408447265625, -0.005718231201171875, 0.0238189697265625, -0.01451873779296875, 0.017242431640625, -0.003753662109375, -0.00830841064453125, 0.044921875, 0.0231781005859375, -0.0188446044921875, 0.015899658203125, 0.052520751953125, -0.0296173095703125, 0.044464111328125, 0.0055999755859375, 0.029388427734375, -0.0096435546875, -0.016693115234375, 0.009735107421875, 0.0215606689453125, -0.0019102096557617188, -0.02581787109375, 0.0811767578125, -0.029571533203125, 0.0003204345703125, -0.01071929931640625, -0.01678466796875, -0.0016527175903320312, 0.006500244140625, -0.0160369873046875, 0.0156402587890625, 0.0104217529296875, -0.0166015625, 0.0010890960693359375, -0.033111572265625, 0.0282440185546875, 0.01195526123046875, 0.0196075439453125, 0.00914764404296875, -0.0330810546875, 0.003631591796875, 0.02435302734375, -0.044891357421875, 0.05731201171875, 0.06683349609375, -0.0221710205078125, 0.0191497802734375, 0.0276336669921875, -0.005237579345703125, -0.000370025634765625, -0.003597259521484375, 0.003978729248046875, 0.025970458984375, 0.0272216796875, -0.0225830078125, -0.0158843994140625, -0.0149383544921875, -0.037689208984375, 0.04052734375, 0.034454345703125, 0.05523681640625, -0.037445068359375, 0.01258087158203125, 0.01324462890625, -0.042572021484375, 0.0219879150390625, 0.0021877288818359375, -0.01068115234375, -0.039215087890625, 0.043365478515625, 0.0192718505859375, 0.00021898746490478516, 0.013031005859375, 0.007450103759765625, -0.0218963623046875, -0.006153106689453125, 0.01593017578125, 0.0285797119140625, -0.04052734375, 0.025543212890625, 0.05377197265625, 0.005283355712890625, -0.0089111328125, 0.0310516357421875, -0.042022705078125, 0.0223236083984375, -0.0164947509765625, 0.030426025390625, -0.03466796875, 0.006908416748046875, 0.0016508102416992188, 0.0028781890869140625, 0.0665283203125, 0.038116455078125, 0.0163421630859375, -0.01904296875, 0.001209259033203125, 0.0245819091796875, -0.0182647705078125, -0.0124969482421875, 0.0236663818359375, 0.02288818359375, -0.059661865234375, 0.0138397216796875, -0.0347900390625, -0.01436614990234375, -0.02728271484375, 0.005657196044921875, 0.0865478515625, -0.01031494140625, -0.0286102294921875, 0.037994384765625, -0.003894805908203125, -0.0290069580078125, -0.0078887939453125, 0.05584716796875, -0.06817626953125, -0.03985595703125, 0.0082855224609375, -0.024505615234375, -0.049102783203125, -0.011199951171875, -0.0248565673828125, 0.08038330078125, -0.0235595703125, -0.014251708984375, 0.0078277587890625, 0.044342041015625, 0.0106048583984375, 0.04302978515625, 0.00007069110870361328, 0.0318603515625, 0.044342041015625, 0.0018301010131835938, -0.01226806640625, -0.03436279296875, 0.01336669921875, 0.07940673828125, -0.00024306774139404297, -0.003818511962890625, -0.01043701171875, 0.0129547119140625, 0.04730224609375, 0.004817962646484375, 0.006084442138671875, 0.044677734375, 0.0157623291015625, 0.0243682861328125, 0.05572509765625, -0.0601806640625, 0.0313720703125, -0.0340576171875, 0.0369873046875, 0.01471710205078125, 0.005825042724609375, 0.003993988037109375, -0.00907135009765625, -0.0016918182373046875, -0.0005359649658203125, 0.0004603862762451172, -0.0213775634765625, 0.026275634765625, 0.004444122314453125, -0.01525115966796875, -0.00608062744140625, -0.028106689453125, 0.014495849609375, -0.028106689453125, 0.0200653076171875, -0.000965118408203125, 0.015777587890625, 0.014373779296875, 0.01175689697265625, 0.04827880859375, -0.012786865234375, 0.0074920654296875, -0.0045928955078125, 0.004001617431640625, 0.029754638671875, 0.0257110595703125, 0.04681396484375, -0.004444122314453125, 0.0250091552734375, 0.0117340087890625, 0.032012939453125, -0.03472900390625, -0.028564453125, 0.004482269287109375, 0.03228759765625, 0.00588226318359375, -0.007160186767578125, -0.001861572265625, 0.008880615234375, 0.07427978515625, -0.04241943359375, 0.0265350341796875, 0.03961181640625, -0.0156707763671875, 0.002227783203125, 0.0487060546875, -0.027313232421875, 0.0188446044921875, 0.01081085205078125, -0.019195556640625, -0.00450897216796875, 0.053924560546875, 0.0178680419921875, 0.03302001953125, -0.059814453125, -0.0207366943359375, -0.00673675537109375, 0.01763916015625, 0.020416259765625, 0.002780914306640625, -0.00040602684020996094, -0.01514434814453125, 0.00835418701171875, 0.0247650146484375, -0.002735137939453125, 0.02880859375, 0.0672607421875, 0.076416015625, -0.0338134765625, -0.02508544921875, 0.047210693359375, -0.015625, -0.02618408203125, -0.0214691162109375, 0.034027099609375, 0.04656982421875, 0.0082855224609375, -0.0230560302734375, 0.05963134765625, 0.0293731689453125, -0.06414794921875, 0.08026123046875, -0.0321044921875, 0.0263824462890625, 0.052490234375, -0.0227813720703125, 0.02874755859375, -0.0224761962890625, -0.03179931640625, -0.032257080078125, 0.0301666259765625, 0.040679931640625, -0.035125732421875, 0.00894927978515625, -0.00894927978515625, 0.045135498046875, 0.028045654296875, -0.01296234130859375, 0.022705078125, 0.005847930908203125, -0.006961822509765625, -0.00934600830078125, 0.0267791748046875, -0.004787445068359375, -0.0679931640625, -0.038909912109375, -0.08538818359375, 0.07110595703125, 0.0513916015625, 0.055938720703125, -0.0030727386474609375, 0.071044921875, -0.0228729248046875, -0.005382537841796875, -0.0037555694580078125, -0.0275421142578125, 0.005405426025390625, 0.0142059326171875, 0.0087738037109375, -0.0169219970703125, -0.04345703125, 0.01000213623046875, 0.0201416015625, -0.02008056640625, -0.0065460205078125, -0.0172882080078125, 0.0266571044921875, 0.009796142578125, 0.0177764892578125, -0.02227783203125, -0.037200927734375, -0.0240936279296875, 0.0008835792541503906, 0.01995849609375, 0.028228759765625, 0.003528594970703125, 0.021026611328125, 0.043975830078125, -0.0007181167602539062, 0.0234375, -0.00859832763671875, 0.029541015625, 0.029754638671875, 0.01184844970703125, -0.035797119140625, 0.01142120361328125, -0.0256500244140625, -0.00528717041015625, 0.005847930908203125, 0.058074951171875, -0.00737762451171875, -0.0350341796875, -0.035430908203125, -0.007343292236328125, 0.0266265869140625, -0.0165863037109375, 0.0246734619140625, -0.039215087890625, 0.006633758544921875, 0.00897216796875, -0.052337646484375, -0.019561767578125, -0.04742431640625, -0.0158538818359375, 0.036163330078125, -0.055999755859375, -0.0169677734375, -0.06512451171875, -0.0264739990234375, 0.0113983154296875, 0.00972747802734375, 0.0191802978515625, 0.00890350341796875, -0.0224151611328125, -0.0921630859375, 0.02752685546875, 0.00115203857421875, -0.033355712890625, -0.02862548828125, -0.0038433074951171875, -0.0870361328125, -0.042816162109375, 0.1058349609375, -0.033172607421875, 0.0309600830078125, 0.024993896484375, -0.0205230712890625, 0.028656005859375, 0.01282501220703125, -0.004573822021484375, 0.06927490234375, 0.02142333984375, -0.004268646240234375, 0.013946533203125, -0.0120849609375, -0.033599853515625, -0.051605224609375, 0.01383209228515625, -0.05548095703125, -0.029571533203125, -0.052764892578125, 0.03961181640625, 0.0197906494140625, -0.043304443359375, -0.10552978515625, -0.0005745887756347656, -0.0269775390625, -0.031585693359375, -0.022674560546875, 0.0168914794921875, -0.0008945465087890625, -0.027587890625, -0.011993408203125, -0.004276275634765625, -0.000522613525390625, 0.0252227783203125, -0.0159759521484375, 0.0286712646484375, -0.042022705078125, -0.01544189453125, -0.016632080078125, 0.025238037109375, 0.033416748046875, -0.01702880859375, -0.019256591796875, 0.0185394287109375, 0.01313018798828125, 0.07049560546875, 0.004192352294921875, 0.0252838134765625, 0.0015859603881835938, -0.037872314453125, -0.00994110107421875, 0.0413818359375, -0.040985107421875, 0.0140533447265625, 0.0386962890625, 0.09979248046875, 0.02398681640625, -0.03955078125, -0.03564453125, -0.0211639404296875, 0.01486968994140625, -0.033355712890625, 0.0082244873046875, -0.08990478515625, -0.031097412109375, 0.0235443115234375, 0.00936126708984375, 0.0491943359375, 0.0028324127197265625, 0.00792694091796875, -0.01502227783203125, 0.023040771484375, -0.017303466796875, -0.0765380859375, -0.0239105224609375, 0.037445068359375, -0.0202178955078125, 0.0201416015625, 0.0021839141845703125, 0.0157623291015625, 0.0297698974609375, 0.05145263671875, -0.041290283203125, 0.01140594482421875, -0.004058837890625, 0.021209716796875, -0.0189361572265625, 0.036834716796875, -0.0226898193359375, 0.027618408203125, -0.00017714500427246094, 0.0229949951171875, -0.002960205078125, 0.0187835693359375, 0.0024261474609375, -0.004261016845703125, 0.00510406494140625, 0.025787353515625, -0.0255126953125, -0.030059814453125, -0.053985595703125, 0.0565185546875, -0.0687255859375, 0.0148468017578125, -0.03668212890625, 0.01328277587890625, 0.005519866943359375, 0.0011281967163085938, 0.01556396484375, -0.033538818359375, 0.0211334228515625, 0.032867431640625, 0.0026111602783203125, 0.0229034423828125 ]
4ba3b220a60bb934348f662addce999e3c999d72
Wordpress Stackexchange Q: How to setup LDAP authentication with WP multisite I would like to set up my WP multisite install so that it will authenticate with our LDAP server. I had this working using the WPMU LDAP authentication plugin, but it no longer appears to be working with WP 3.9.1 and MySQL 5.3. Other plugins I've tried seem to call for the plugin to be configured on every site, and I would prefer for something to work over the entire network. Can anyone explain how to go about setting up my WP multisite installation running WP 3.9.1 to authenticate over LDAP? A: This is a recently updated plugin that should allow you to authenticate via LDAP: http://wordpress.org/plugins/auth0/ It supports LDAP SSO as well as a bunch of other authentication methods. It says it supports multiple WordPress instances, so I assume that means multisite as well. Hope this helps!
Q: How to setup LDAP authentication with WP multisite I would like to set up my WP multisite install so that it will authenticate with our LDAP server. I had this working using the WPMU LDAP authentication plugin, but it no longer appears to be working with WP 3.9.1 and MySQL 5.3. Other plugins I've tried seem to call for the plugin to be configured on every site, and I would prefer for something to work over the entire network. Can anyone explain how to go about setting up my WP multisite installation running WP 3.9.1 to authenticate over LDAP? A: This is a recently updated plugin that should allow you to authenticate via LDAP: http://wordpress.org/plugins/auth0/ It supports LDAP SSO as well as a bunch of other authentication methods. It says it supports multiple WordPress instances, so I assume that means multisite as well. Hope this helps!
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:445420", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145169" }
[ 0.03814697265625, -0.0127410888671875, 0.002269744873046875, -0.01430511474609375, -0.0105743408203125, -0.02850341796875, 0.043243408203125, -0.0122833251953125, -0.01154327392578125, 0.0255584716796875, 0.00392913818359375, 0.0243377685546875, -0.0228118896484375, -0.0166168212890625, 0.009490966796875, -0.01263427734375, 0.0207977294921875, -0.0116119384765625, 0.01506805419921875, -0.0279693603515625, 0.0019073486328125, -0.006458282470703125, 0.0117950439453125, 0.0269012451171875, 0.0245208740234375, -0.034820556640625, 0.0838623046875, -0.0264739990234375, 0.055145263671875, 0.0020503997802734375, 0.02874755859375, -0.0386962890625, 0.01611328125, 0.019134521484375, -0.0308685302734375, -0.006465911865234375, -0.042633056640625, 0.0213470458984375, -0.00846099853515625, 0.037933349609375, 0.0156707763671875, -0.0213775634765625, 0.03961181640625, -0.0026035308837890625, 0.0125579833984375, -0.039764404296875, 0.0311279296875, -0.060455322265625, -0.00955963134765625, -0.001850128173828125, -0.0254364013671875, -0.012359619140625, 0.0011272430419921875, -0.05841064453125, 0.0030078887939453125, -0.01120758056640625, -0.0090179443359375, -0.0019130706787109375, 0.03240966796875, 0.02838134765625, -0.0215301513671875, -0.010833740234375, 0.006671905517578125, -0.0390625, 0.021484375, 0.0144500732421875, -0.0516357421875, 0.0132293701171875, 0.00693511962890625, 0.03466796875, 0.0017681121826171875, -0.04132080078125, 0.0202484130859375, -0.0155487060546875, 0.0309906005859375, -0.01971435546875, -0.00826263427734375, 0.00366973876953125, 0.0308990478515625, -0.0183868408203125, 0.0144805908203125, -0.036407470703125, -0.0190887451171875, -0.035369873046875, 0.0362548828125, 0.0161285400390625, 0.0125732421875, -0.009185791015625, -0.01251220703125, 0.01190948486328125, -0.0218505859375, 0.01345062255859375, 0.0078887939453125, 0.0017366409301757812, -0.023101806640625, -0.01418304443359375, 0.03533935546875, 0.08514404296875, -0.036468505859375, -0.005893707275390625, -0.01290130615234375, -0.024627685546875, -0.0291748046875, -0.03076171875, -0.0207061767578125, 0.0180511474609375, 0.03289794921875, 0.007480621337890625, -0.02850341796875, 0.0167999267578125, -0.0318603515625, -0.040252685546875, -0.01605224609375, -0.0282135009765625, 0.0070037841796875, 0.0074615478515625, -0.041412353515625, 0.01497650146484375, -0.0009555816650390625, -0.014404296875, -0.027618408203125, 0.0020503997802734375, -0.034027099609375, 0.05206298828125, 0.0301971435546875, 0.039398193359375, 0.0188751220703125, -0.008514404296875, -0.0196380615234375, 0.00366973876953125, -0.0362548828125, 0.02685546875, 0.043975830078125, 0.004467010498046875, -0.01094818115234375, -0.00039076805114746094, 0.032379150390625, 0.057586669921875, 0.0143890380859375, -0.01363372802734375, 0.005443572998046875, -0.007251739501953125, -0.0137786865234375, -0.0147247314453125, 0.0008969306945800781, -0.0006957054138183594, 0.0240020751953125, 0.0260772705078125, -0.005168914794921875, -0.016021728515625, 0.0019664764404296875, -0.00391387939453125, -0.02838134765625, 0.015228271484375, 0.07373046875, -0.017822265625, 0.0286712646484375, -0.016571044921875, 0.049041748046875, 0.0038738250732421875, -0.034088134765625, -0.0181427001953125, 0.0213775634765625, -0.005096435546875, -0.007205963134765625, 0.0258941650390625, -0.0012845993041992188, -0.003574371337890625, 0.0257110595703125, -0.01419830322265625, -0.00466156005859375, -0.046051025390625, 0.0173492431640625, 0.0283050537109375, 0.007965087890625, 0.048858642578125, -0.021240234375, 0.041839599609375, 0.07379150390625, -0.0243988037109375, -0.0037975311279296875, -0.0137481689453125, 0.129150390625, -0.013458251953125, -0.0218963623046875, -0.0115509033203125, 0.0227203369140625, 0.056915283203125, 0.0027618408203125, 0.0335693359375, 0.00013339519500732422, 0.0138702392578125, -0.0469970703125, 0.00848388671875, 0.0083770751953125, -0.01422882080078125, 0.0077056884765625, 0.01102447509765625, 0.0017824172973632812, -0.01410675048828125, -0.0181732177734375, -0.011810302734375, 0.026153564453125, 0.02935791015625, 0.055267333984375, -0.01043701171875, 0.016754150390625, -0.00495147705078125, 0.038543701171875, -0.00696563720703125, -0.01079559326171875, -0.0209197998046875, 0.03021240234375, -0.07568359375, -0.0550537109375, 0.007312774658203125, -0.019500732421875, 0.023956298828125, -0.0019292831420898438, 0.01056671142578125, -0.01294708251953125, -0.0232696533203125, 0.00792694091796875, 0.00186920166015625, 0.037445068359375, -0.016143798828125, -0.0191192626953125, -0.02520751953125, 0.04022216796875, 0.00640106201171875, -0.00939178466796875, 0.035003662109375, -0.0191802978515625, 0.04498291015625, -0.020660400390625, -0.028778076171875, -0.00482177734375, -0.0035572052001953125, 0.0234222412109375, 0.0115509033203125, 0.032623291015625, -0.0151519775390625, -0.030181884765625, -0.004093170166015625, -0.02911376953125, -0.06146240234375, 0.003765106201171875, -0.0006489753723144531, 0.0037250518798828125, 0.034912109375, 0.01544189453125, -0.0037212371826171875, 0.00138092041015625, -0.0269012451171875, -0.0250244140625, 0.03167724609375, 0.01215362548828125, -0.0237274169921875, 0.008148193359375, 0.0011138916015625, 0.011932373046875, -0.02020263671875, -0.0465087890625, 0.0185394287109375, -0.0067901611328125, -0.01190948486328125, 0.0122833251953125, 0.006885528564453125, -0.009002685546875, -0.01049041748046875, 0.02423095703125, -0.019287109375, 0.0080718994140625, 0.0149383544921875, 0.028228759765625, 0.022705078125, -0.0188140869140625, -0.0201416015625, 0.025604248046875, 0.0147247314453125, -0.039459228515625, 0.01485443115234375, -0.043548583984375, -0.014495849609375, -0.01378631591796875, -0.05206298828125, 0.007305145263671875, -0.00812530517578125, -0.0153656005859375, -0.054779052734375, -0.002918243408203125, 0.0170745849609375, -0.0311737060546875, 0.0361328125, -0.0250701904296875, -0.041046142578125, -0.020477294921875, -0.0458984375, 0.056060791015625, -0.061065673828125, -0.016845703125, 0.05889892578125, -0.0202484130859375, 0.01515960693359375, -0.0272674560546875, 0.025360107421875, -0.040618896484375, 0.0328369140625, 0.0007839202880859375, -0.061920166015625, 0.01482391357421875, 0.0171661376953125, 0.005035400390625, 0.00920867919921875, 0.0017690658569335938, -0.03607177734375, 0.0010528564453125, -0.007038116455078125, -0.08544921875, -0.09735107421875, 0.00670623779296875, -0.07489013671875, 0.0187530517578125, -0.0052337646484375, -0.040771484375, -0.0232696533203125, 0.05560302734375, 0.00865936279296875, 0.0309906005859375, -0.0092315673828125, -0.0230560302734375, -0.0213775634765625, -0.0582275390625, -0.0750732421875, 0.0005517005920410156, 0.0005979537963867188, 0.0143585205078125, 0.0161590576171875, 0.016510009765625, 0.0026702880859375, 0.03887939453125, 0.0085906982421875, -0.0205535888671875, -0.02569580078125, -0.04168701171875, -0.001621246337890625, 0.0008707046508789062, -0.0111541748046875, 0.0158233642578125, -0.0018701553344726562, 0.0238800048828125, -0.00724029541015625, 0.0286865234375, -0.001346588134765625, 0.0269775390625, -0.06683349609375, -0.04205322265625, -0.0104217529296875, -0.051361083984375, -0.06512451171875, 0.08660888671875, -0.049530029296875, -0.0035457611083984375, -0.0106658935546875, 0.004146575927734375, -0.029754638671875, -0.001789093017578125, -0.0404052734375, 0.002986907958984375, -0.004543304443359375, -0.0084075927734375, -0.04095458984375, 0.0745849609375, 0.005329132080078125, 0.008331298828125, -0.0085601806640625, 0.021881103515625, -0.037445068359375, -0.00951385498046875, -0.0216217041015625, -0.032073974609375, -0.041290283203125, 0.0126800537109375, -0.02081298828125, -0.044464111328125, 0.07183837890625, -0.0019102096557617188, -0.00020253658294677734, -0.049072265625, -0.047149658203125, -0.0188751220703125, 0.09185791015625, -0.01336669921875, -0.035186767578125, -0.0225982666015625, 0.0199737548828125, -0.025054931640625, -0.05133056640625, 0.0235595703125, -0.0144195556640625, -0.047760009765625, -0.01221466064453125, -0.014068603515625, -0.03521728515625, 0.03497314453125, -0.0709228515625, 0.00551605224609375, -0.054779052734375, 0.0302276611328125, -0.03692626953125, -0.01030731201171875, 0.004383087158203125, -0.01027679443359375, -0.060699462890625, -0.01343536376953125, -0.01290130615234375, -0.0614013671875, -0.02703857421875, -0.040008544921875, 0.08538818359375, 0.0333251953125, -0.024078369140625, 0.00695037841796875, 0.070068359375, -0.016204833984375, 0.004650115966796875, 0.00809478759765625, 0.0117645263671875, -0.00708770751953125, 0.0159912109375, 0.00789642333984375, -0.006519317626953125, -0.0200958251953125, -0.023712158203125, -0.045806884765625, -0.0447998046875, -0.00656890869140625, -0.0244598388671875, 0.032196044921875, -0.03448486328125, -0.026092529296875, -0.03759765625, 0.00971221923828125, 0.01104736328125, -0.01580810546875, 0.034454345703125, -0.042999267578125, -0.004611968994140625, 0.038238525390625, 0.045135498046875, -0.0034351348876953125, -0.013916015625, 0.0345458984375, 0.0124053955078125, -0.043914794921875, -0.036590576171875, -0.0222015380859375, -0.006500244140625, -0.0213775634765625, 0.04412841796875, -0.002559661865234375, 0.011810302734375, 0.043975830078125, -0.0406494140625, 0.01375579833984375, 0.00344085693359375, 0.00247955322265625, 0.031463623046875, -0.0014247894287109375, -0.00016546249389648438, 0.033935546875, -0.025726318359375, 0.01453399658203125, 0.0224456787109375, -0.007213592529296875, 0.0548095703125, -0.0032482147216796875, 0.0012769699096679688, -0.066162109375, -0.0125885009765625, -0.057342529296875, 0.03118896484375, -0.09228515625, 0.00698089599609375, -0.002349853515625, -0.005512237548828125, 0.00971221923828125, -0.00484466552734375, 0.01123046875, -0.0020084381103515625, 0.01531982421875, -0.0012798309326171875, 0.0135498046875, 0.02862548828125, -0.0052947998046875, 0.00042319297790527344, -0.03375244140625, 0.12286376953125, -0.02996826171875, -0.07879638671875, 0.0543212890625, -0.043121337890625, 0.04791259765625, 0.0718994140625, -0.024078369140625, 0.0279083251953125, 0.0131988525390625, -0.04144287109375, 0.0092926025390625, -0.0236358642578125, -0.03973388671875, -0.04779052734375, -0.043487548828125, -0.018646240234375, -0.0132293701171875, 0.01226806640625, 0.0139007568359375, -0.07073974609375, 0.03253173828125, 0.01152801513671875, 0.0280609130859375, 0.0450439453125, 0.005947113037109375, 0.01092529296875, 0.000021278858184814453, -0.039154052734375, 0.0080413818359375, -0.01166534423828125, -0.03521728515625, -0.0123291015625, 0.03662109375, 0.0665283203125, 0.01404571533203125, -0.01119232177734375, -0.01477813720703125, -0.035491943359375, 0.0011053085327148438, 0.05072021484375, -0.01216888427734375, -0.08331298828125, 0.005489349365234375, 0.03875732421875, 0.0292510986328125, -0.06951904296875, 0.001430511474609375, 0.0004620552062988281, -0.019134521484375, -0.007904052734375, 0.0062713623046875, -0.020721435546875, -0.00923919677734375, 0.003326416015625, -0.02801513671875, -0.024261474609375, -0.0210723876953125, -0.02752685546875, -0.006748199462890625, -0.0020599365234375, -0.0219573974609375, -0.01361083984375, -0.005950927734375, 0.0233917236328125, -0.02886962890625, 0.0015878677368164062, -0.03350830078125, 0.00809478759765625, 0.01355743408203125, -0.00777435302734375, -0.04412841796875, 0.0062103271484375, -0.009521484375, 0.005512237548828125, 0.02618408203125, -0.0097808837890625, -0.0272369384765625, -0.0179443359375, 0.01236724853515625, 0.0151519775390625, 0.0028629302978515625, -0.033050537109375, -0.01236724853515625, 0.00821685791015625, 0.0183563232421875, 0.00405120849609375, -0.005290985107421875, 0.056365966796875, -0.006290435791015625, 0.05560302734375, 0.02020263671875, 0.050933837890625, 0.0028896331787109375, -0.033782958984375, -0.0024852752685546875, -0.07501220703125, -0.0279083251953125, -0.0030307769775390625, -0.0208740234375, 0.04571533203125, 0.02667236328125, 0.00801849365234375, -0.0021038055419921875, 0.009674072265625, -0.0005612373352050781, -0.01641845703125, 0.00045371055603027344, 0.0165252685546875, 0.004032135009765625, 0.006435394287109375, -0.0287933349609375, 0.0640869140625, -0.0239105224609375, -0.00839996337890625, 0.041900634765625, -0.05377197265625, 0.032958984375, 0.057098388671875, -0.027435302734375, 0.032196044921875, 0.055023193359375, 0.0224761962890625, 0.04400634765625, 0.0138702392578125, 0.01119232177734375, -0.0037212371826171875, -0.0227813720703125, -0.0117034912109375, -0.0208587646484375, 0.01837158203125, -0.007602691650390625, 0.012115478515625, 0.014923095703125, -0.006603240966796875, 0.00832366943359375, -0.00978851318359375, 0.0264739990234375, -0.0220947265625, 0.01898193359375, 0.0138397216796875, -0.0172119140625, 0.010528564453125, 0.018768310546875, -0.0216217041015625, -0.024871826171875, 0.053466796875, -0.0328369140625, 0.004734039306640625, 0.04351806640625, 0.003017425537109375, -0.013336181640625, -0.0225982666015625, 0.00698089599609375, 0.033294677734375, 0.01218414306640625, 0.050537109375, -0.00836181640625, 0.081298828125, 0.018157958984375, -0.01800537109375, 0.00396728515625, -0.0673828125, -0.05645751953125, -0.053802490234375, -0.03131103515625, -0.052032470703125, 0.0268096923828125, 0.0077362060546875, 0.043975830078125, 0.0384521484375, 0.0195770263671875, -0.011383056640625, 0.0003306865692138672, 0.029876708984375, 0.0011529922485351562, -0.01122283935546875, 0.032928466796875, 0.03375244140625, -0.047149658203125, 0.0338134765625, -0.01410675048828125, 0.007152557373046875, -0.01276397705078125, -0.01340484619140625, 0.054473876953125, -0.00872802734375, -0.0041351318359375, 0.05535888671875, 0.034881591796875, -0.0277252197265625, 0.0006923675537109375, 0.0509033203125, -0.0970458984375, -0.0877685546875, 0.038421630859375, -0.045867919921875, -0.00785064697265625, 0.020904541015625, -0.0183868408203125, 0.0455322265625, 0.0240325927734375, -0.0255279541015625, -0.01131439208984375, 0.03131103515625, -0.0210113525390625, 0.03485107421875, -0.017333984375, 0.014556884765625, -0.0235748291015625, 0.006839752197265625, -0.00572967529296875, 0.01486968994140625, -0.00458526611328125, 0.01120758056640625, 0.015625, 0.01248931884765625, -0.05743408203125, -0.01220703125, -0.0016326904296875, 0.0124969482421875, 0.00838470458984375, 0.051971435546875, -0.0287628173828125, 0.00009191036224365234, 0.0139617919921875, -0.051300048828125, 0.00768280029296875, -0.004863739013671875, -0.0235595703125, 0.006343841552734375, -0.01224517822265625, -0.042205810546875, 0.0263671875, 0.0019168853759765625, -0.07000732421875, 0.034912109375, 0.031524658203125, 0.006443023681640625, 0.0225830078125, -0.0163421630859375, -0.0303955078125, 0.04052734375, 0.054168701171875, -0.0098114013671875, 0.028045654296875, -0.0271453857421875, -0.0038356781005859375, 0.026336669921875, 0.01474761962890625, -0.0411376953125, 0.01247406005859375, -0.00333404541015625, 0.0280609130859375, -0.0198974609375, -0.015594482421875, 0.01355743408203125, 0.019866943359375, 0.0010242462158203125, 0.0226593017578125, 0.03668212890625, -0.005893707275390625, -0.01104736328125, -0.03448486328125, 0.003978729248046875, 0.016510009765625, 0.03643798828125, 0.0081787109375, 0.049346923828125, 0.055419921875, 0.05816650390625, -0.044891357421875, -0.0027523040771484375, 0.0013761520385742188, 0.033172607421875, -0.01079559326171875, -0.022064208984375, -0.00539398193359375, -0.01416778564453125, -0.0065460205078125, -0.004337310791015625, 0.0254669189453125, 0.0350341796875, -0.0179290771484375, 0.06976318359375, -0.039154052734375, -0.007808685302734375, 0.001781463623046875, 0.0338134765625, -0.02264404296875, -0.02801513671875, 0.00543975830078125, -0.0693359375, -0.01947021484375, 0.018463134765625, -0.00293731689453125, -0.002727508544921875, 0.028411865234375, 0.033935546875, -0.031005859375, -0.0230560302734375, 0.016387939453125, -0.027069091796875, 0.0019044876098632812, -0.0268707275390625, 0.0233306884765625, 0.013916015625, -0.001468658447265625, -0.00897216796875, 0.03997802734375, 0.03863525390625, -0.01302337646484375, 0.029541015625, 0.001476287841796875, -0.00887298583984375, 0.01457977294921875, -0.01355743408203125, 0.0223388671875, -0.0024051666259765625, -0.10675048828125, -0.05169677734375, -0.01247406005859375, 0.0139007568359375, 0.0217437744140625, 0.03857421875, 0.0170440673828125, -0.0189971923828125, -0.0046539306640625, -0.0001220703125, 0.016998291015625, 0.0034847259521484375, -0.0234375, 0.0176544189453125, 0.046234130859375, -0.00838470458984375, -0.04644775390625, -0.01806640625, 0.0030384063720703125, 0.0308990478515625, -0.033721923828125, 0.0926513671875, -0.042510986328125, -0.0029506683349609375, 0.00949859619140625, 0.00832366943359375, -0.0080413818359375, -0.018218994140625, 0.01031494140625, -0.0192108154296875, 0.002353668212890625, 0.0020236968994140625, -0.0120391845703125, 0.03887939453125, -0.0025787353515625, -0.00807952880859375, 0.02471923828125, -0.03759765625, 0.018798828125, 0.024169921875, 0.058441162109375, -0.035308837890625, -0.060943603515625, -0.10235595703125, -0.01502227783203125, 0.034942626953125, 0.0227813720703125, -0.0308380126953125, 0.03729248046875, -0.0092926025390625, -0.006099700927734375, -0.004108428955078125, -0.00986480712890625, -0.0273590087890625, 0.0200958251953125, -0.005573272705078125, -0.0360107421875, -0.00342559814453125, -0.0170440673828125, -0.01096343994140625, 0.0037708282470703125, 0.014312744140625, -0.00832366943359375, 0.004871368408203125, 0.00010728836059570312, 0.059844970703125, 0.035430908203125, -0.020782470703125, 0.021148681640625, 0.0584716796875, -0.0266265869140625, -0.01444244384765625, -0.05389404296875, -0.065673828125, -0.08599853515625, 0.0283660888671875, 0.031524658203125, -0.04034423828125, -0.0211334228515625, -0.1043701171875, 0.0330810546875, 0.055084228515625, -0.0013856887817382812, -0.041351318359375, 0.031524658203125, -0.0504150390625, 0.0350341796875, 0.036163330078125, -0.027618408203125, 0.0129241943359375, 0.061614990234375, -0.0115203857421875, 0.013946533203125, -0.032440185546875, -0.0418701171875, -0.031005859375, -0.00214385986328125, -0.0024871826171875, 0.0138397216796875, 0.01100921630859375, -0.0162811279296875, -0.02880859375, 0.0185089111328125, -0.00034236907958984375, -0.0188446044921875, -0.0120391845703125, 0.0030498504638671875, -0.0165863037109375, -0.02734375, 0.0021877288818359375, -0.046234130859375, -0.0101470947265625, 0.0151519775390625, -0.01220703125, -0.00011819601058959961, -0.05499267578125, -0.09832763671875, 0.1007080078125, -0.0185089111328125, -0.032135009765625, -0.09002685546875, 0.0033721923828125, 0.046539306640625, -0.0489501953125, -0.056610107421875, 0.0277252197265625, -0.07293701171875, 0.0202178955078125, 0.0246124267578125, 0.04986572265625, -0.0091552734375, 0.04632568359375, -0.0205841064453125, 0.02239990234375, -0.0086517333984375, 0.006313323974609375, -0.00977325439453125, -0.0256805419921875, 0.0330810546875, 0.0286865234375, -0.0101165771484375, -0.01287078857421875, 0.034393310546875, -0.0026340484619140625, -0.014434814453125, 0.0174560546875, -0.00047087669372558594, -0.0048065185546875, 0.034912109375, 0.052459716796875, 0.003894805908203125, -0.0254364013671875, 0.00041174888610839844, -0.013641357421875, -0.0070037841796875, -0.009979248046875, 0.00962066650390625, -0.034027099609375, -0.0106964111328125, -0.0015249252319335938, 0.0260162353515625, 0.0102996826171875, 0.0107421875, 0.025299072265625, -0.03240966796875, 0.033538818359375, -0.02880859375, -0.0033245086669921875, 0.0307769775390625, 0.048797607421875, -0.043731689453125, -0.01453399658203125, -0.024993896484375, 0.002925872802734375, 0.00260162353515625, -0.06463623046875, 0.0018825531005859375, 0.04583740234375, -0.07611083984375, 0.0074920654296875, -0.00023567676544189453, 0.00812530517578125, -0.0489501953125, 0.001308441162109375, -0.0174560546875, 0.005859375, -0.0023651123046875, 0.02777099609375, -0.006134033203125, -0.0010976791381835938, 0.006900787353515625, -0.0018415451049804688, -0.0188751220703125, -0.047454833984375, -0.06207275390625, 0.0611572265625, 0.0011320114135742188, -0.01470184326171875, 0.0130462646484375, 0.004852294921875, 0.0205841064453125, 0.026947021484375, 0.0173797607421875, -0.03240966796875, 0.04156494140625, 0.011016845703125, 0.015533447265625, 0.0166778564453125 ]
c0cb2cb56a748135c0f0c89e519cf2525c9b88d9
Wordpress Stackexchange Q: Why is the $old_instance needed for the widget update function? In the PHPdoc of the function WP_Widget::update() located under wp-includes/widgets.php it says the following: /** * ... * This function should check that $new_instance is set correctly. * The newly calculated value of $instance should be returned. * If "false" is returned, the instance won't be saved/updated. * ... */ It is unclear to me why the $old_instance is needed when updating the values and how can it be used to validate that the $new_instance is set correctly. A: As the comment says, you should validate the values of the new instance. What happens if one of these values is invalid? You can either set a predefined default value or use the value from the old instance, because that must be valid. So a very simple update code could look like this: function update( $new_instance, $old_instance ) { return array_merge( $old_instance, $new_instance ); } There is no better way to get this information, so WordPress just passes it along in case you need it. But you are free to ignore it completely.
Q: Why is the $old_instance needed for the widget update function? In the PHPdoc of the function WP_Widget::update() located under wp-includes/widgets.php it says the following: /** * ... * This function should check that $new_instance is set correctly. * The newly calculated value of $instance should be returned. * If "false" is returned, the instance won't be saved/updated. * ... */ It is unclear to me why the $old_instance is needed when updating the values and how can it be used to validate that the $new_instance is set correctly. A: As the comment says, you should validate the values of the new instance. What happens if one of these values is invalid? You can either set a predefined default value or use the value from the old instance, because that must be valid. So a very simple update code could look like this: function update( $new_instance, $old_instance ) { return array_merge( $old_instance, $new_instance ); } There is no better way to get this information, so WordPress just passes it along in case you need it. But you are free to ignore it completely.
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:445432", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145199" }
[ 0.0791015625, -0.0173492431640625, 0.0192413330078125, -0.055938720703125, -0.0010957717895507812, -0.026702880859375, 0.0128326416015625, -0.017059326171875, 0.0188751220703125, 0.019927978515625, -0.04693603515625, -0.0296783447265625, -0.0176849365234375, -0.0184478759765625, -0.0196380615234375, -0.050384521484375, 0.059417724609375, -0.037078857421875, 0.0185699462890625, 0.01233673095703125, 0.0005292892456054688, 0.05450439453125, -0.0128173828125, 0.06524658203125, 0.0186920166015625, -0.032623291015625, 0.04425048828125, -0.002086639404296875, -0.0001761913299560547, -0.004886627197265625, 0.0245819091796875, -0.003070831298828125, 0.01012420654296875, 0.0450439453125, -0.037689208984375, -0.038818359375, 0.019287109375, -0.00986480712890625, -0.00919342041015625, 0.03466796875, 0.0263519287109375, -0.018951416015625, 0.0018205642700195312, 0.0076141357421875, -0.028564453125, -0.01253509521484375, 0.027313232421875, 0.003673553466796875, 0.006694793701171875, 0.0175323486328125, 0.0231475830078125, -0.034149169921875, 0.0214691162109375, -0.003032684326171875, 0.0031719207763671875, 0.0308990478515625, -0.0009021759033203125, -0.00812530517578125, 0.0197906494140625, 0.0218963623046875, -0.0230712890625, -0.005413055419921875, 0.012054443359375, -0.039276123046875, -0.028594970703125, -0.019927978515625, 0.0226898193359375, 0.0019102096557617188, -0.054351806640625, -0.047698974609375, 0.0487060546875, -0.0047149658203125, -0.01904296875, 0.0216217041015625, 0.042449951171875, -0.01397705078125, 0.0165557861328125, 0.0204010009765625, 0.0030879974365234375, 0.09063720703125, 0.044647216796875, 0.0294647216796875, -0.016448974609375, -0.0055389404296875, 0.03765869140625, 0.0279998779296875, -0.001972198486328125, -0.033172607421875, -0.051025390625, -0.03717041015625, -0.0242156982421875, -0.056549072265625, -0.031707763671875, -0.044586181640625, 0.00605010986328125, -0.058837890625, -0.0165863037109375, 0.04248046875, -0.051055908203125, 0.03564453125, -0.01131439208984375, -0.020263671875, 0.062164306640625, -0.0457763671875, 0.00511932373046875, -0.0002846717834472656, -0.005161285400390625, -0.039031982421875, 0.0239105224609375, 0.020782470703125, -0.0055084228515625, 0.037872314453125, -0.032623291015625, -0.0526123046875, -0.0057373046875, 0.029541015625, -0.049285888671875, 0.02484130859375, 0.016815185546875, 0.0141754150390625, 0.0191192626953125, 0.038818359375, 0.00777435302734375, -0.00907135009765625, 0.0215606689453125, 0.01546478271484375, -0.0224456787109375, -0.025177001953125, 0.00418853759765625, -0.01678466796875, -0.04913330078125, 0.004360198974609375, 0.038482666015625, 0.0200347900390625, 0.020477294921875, -0.01210784912109375, 0.025421142578125, 0.05194091796875, -0.0106353759765625, 0.035797119140625, -0.0189056396484375, -0.05548095703125, -0.019622802734375, -0.00504302978515625, 0.0272979736328125, 0.009613037109375, 0.01012420654296875, 0.031768798828125, 0.0173797607421875, -0.0289154052734375, 0.05816650390625, -0.048614501953125, 0.0136871337890625, 0.01552581787109375, 0.0089874267578125, -0.002887725830078125, 0.03924560546875, -0.03350830078125, -0.0278778076171875, -0.01947021484375, -0.0132904052734375, -0.0274658203125, 0.01345062255859375, -0.005718231201171875, -0.024993896484375, 0.041290283203125, -0.0036449432373046875, 0.005306243896484375, 0.028656005859375, 0.025421142578125, -0.0003235340118408203, -0.0295562744140625, 0.01245880126953125, 0.049774169921875, 0.003414154052734375, 0.05413818359375, 0.003948211669921875, 0.00026226043701171875, 0.01230621337890625, -0.001056671142578125, -0.0305328369140625, -0.042510986328125, 0.0303802490234375, -0.0231781005859375, -0.035400390625, -0.021759033203125, -0.0038928985595703125, 0.0340576171875, 0.043060302734375, 0.0200042724609375, 0.006771087646484375, -0.04644775390625, -0.05218505859375, 0.024566650390625, -0.0115509033203125, 0.05389404296875, -0.0215606689453125, 0.056732177734375, -0.01837158203125, -0.0638427734375, 0.032135009765625, -0.0033588409423828125, 0.01336669921875, -0.07879638671875, -0.09515380859375, -0.002899169921875, -0.0377197265625, 0.061676025390625, -0.01322174072265625, 0.03729248046875, 0.004573822021484375, 0.00946044921875, -0.037139892578125, 0.025421142578125, 0.0092315673828125, -0.0264129638671875, -0.031585693359375, 0.047393798828125, -0.022369384765625, 0.014617919921875, -0.052276611328125, -0.0357666015625, -0.04949951171875, -0.01215362548828125, -0.0031261444091796875, -0.019500732421875, -0.01174163818359375, -0.01221466064453125, -0.0194854736328125, 0.00817108154296875, 0.0030670166015625, 0.0243072509765625, -0.007633209228515625, -0.017578125, -0.047210693359375, -0.0103302001953125, -0.0294342041015625, -0.0457763671875, -0.00809478759765625, 0.054412841796875, 0.027557373046875, -0.01715087890625, -0.016845703125, -0.0033206939697265625, -0.005748748779296875, -0.06927490234375, 0.0009517669677734375, 0.006267547607421875, -0.0123443603515625, 0.025543212890625, 0.004489898681640625, -0.00356292724609375, 0.016571044921875, -0.038909912109375, -0.0282135009765625, 0.040283203125, -0.026763916015625, 0.0172576904296875, -0.0254974365234375, -0.006824493408203125, -0.0086669921875, -0.046051025390625, 0.0080413818359375, -0.0328369140625, 0.0211639404296875, 0.0022869110107421875, 0.03778076171875, 0.013946533203125, 0.01061248779296875, -0.00687408447265625, -0.007720947265625, -0.062347412109375, 0.004730224609375, 0.006023406982421875, -0.041900634765625, 0.00588226318359375, -0.01041412353515625, 0.017425537109375, -0.0203857421875, -0.017364501953125, -0.01390838623046875, 0.00539398193359375, 0.009185791015625, -0.013885498046875, 0.01230621337890625, 0.0093536376953125, 0.0307769775390625, -0.012115478515625, 0.06512451171875, -0.0299835205078125, 0.01099395751953125, -0.01174163818359375, -0.038604736328125, 0.06982421875, 0.032928466796875, -0.07916259765625, -0.0160980224609375, 0.035552978515625, -0.0222015380859375, -0.005779266357421875, 0.017120361328125, 0.023529052734375, 0.0021495819091796875, -0.033477783203125, 0.0151214599609375, -0.006603240966796875, 0.0384521484375, 0.033203125, 0.012054443359375, 0.01336669921875, -0.057403564453125, 0.0035800933837890625, 0.0274810791015625, 0.04498291015625, -0.004833221435546875, -0.046630859375, -0.016204833984375, 0.0300445556640625, -0.06781005859375, -0.041351318359375, -0.012939453125, -0.0103912353515625, -0.018157958984375, -0.00021660327911376953, -0.0065460205078125, 0.0166168212890625, 0.00295257568359375, -0.002956390380859375, 0.0225067138671875, -0.03143310546875, -0.07635498046875, -0.058807373046875, -0.0804443359375, 0.0036411285400390625, -0.0024280548095703125, 0.0122222900390625, -0.0032405853271484375, 0.0297088623046875, -0.0236663818359375, -0.049346923828125, -0.022979736328125, 0.0195770263671875, 0.01280975341796875, 0.01047515869140625, 0.01082611083984375, -0.0343017578125, -0.0196533203125, -0.00460052490234375, 0.01837158203125, -0.007175445556640625, -0.008697509765625, -0.0105438232421875, 0.00360107421875, 0.0074310302734375, 0.0294342041015625, 0.00801849365234375, -0.003753662109375, 0.0003743171691894531, 0.01568603515625, -0.03277587890625, -0.0028743743896484375, -0.0010890960693359375, -0.0280303955078125, -0.019744873046875, -0.0201568603515625, -0.0027008056640625, 0.0277099609375, -0.01371002197265625, -0.06744384765625, -0.01441192626953125, 0.00872039794921875, -0.0247802734375, 0.03314208984375, -0.027008056640625, -0.0767822265625, 0.0179901123046875, 0.037750244140625, -0.013824462890625, -0.009918212890625, 0.00603485107421875, -0.01000213623046875, -0.0004227161407470703, -0.0038604736328125, -0.032073974609375, -0.0316162109375, 0.0313720703125, -0.026336669921875, 0.005218505859375, -0.034393310546875, 0.004039764404296875, -0.014556884765625, 0.042327880859375, -0.029144287109375, -0.01458740234375, -0.02276611328125, 0.006237030029296875, -0.03521728515625, -0.0372314453125, -0.00984954833984375, 0.0110931396484375, -0.017578125, 0.01161956787109375, 0.01381683349609375, 0.0036983489990234375, -0.035614013671875, 0.07659912109375, -0.0258941650390625, -0.00020945072174072266, 0.0400390625, -0.031646728515625, 0.015716552734375, 0.041839599609375, 0.0198974609375, -0.004405975341796875, -0.0115814208984375, -0.0291595458984375, -0.06793212890625, 0.0150299072265625, -0.066650390625, 0.040985107421875, 0.01413726806640625, -0.004299163818359375, -0.0445556640625, -0.00646209716796875, -0.00881195068359375, -0.04766845703125, 0.0078277587890625, 0.017425537109375, -0.0223541259765625, 0.00913238525390625, -0.02392578125, -0.019775390625, 0.024505615234375, -0.03912353515625, -0.08935546875, -0.0587158203125, -0.03961181640625, 0.0185394287109375, 0.0010499954223632812, -0.038726806640625, -0.0428466796875, -0.04107666015625, 0.006671905517578125, 0.043914794921875, -0.0102081298828125, 0.04022216796875, -0.052154541015625, -0.055145263671875, 0.0161895751953125, -0.01261138916015625, -0.0276336669921875, 0.0099029541015625, 0.031982421875, 0.03302001953125, -0.0173797607421875, 0.002216339111328125, -0.0179901123046875, 0.01971435546875, 0.08251953125, 0.0022068023681640625, 0.0067901611328125, -0.007495880126953125, -0.035369873046875, 0.039764404296875, -0.0011911392211914062, 0.01071929931640625, 0.041595458984375, 0.0203704833984375, -0.00858306884765625, -0.005908966064453125, 0.001949310302734375, -0.02923583984375, 0.0377197265625, -0.01068878173828125, -0.007740020751953125, 0.01439666748046875, -0.0018301010131835938, -0.03338623046875, 0.01546478271484375, 0.01158905029296875, -0.02880859375, 0.016815185546875, 0.006252288818359375, 0.0067138671875, 0.0033817291259765625, 0.004337310791015625, -0.0221099853515625, -0.02203369140625, 0.0140380859375, 0.0005245208740234375, 0.006744384765625, -0.034698486328125, 0.0245513916015625, 0.006977081298828125, -0.0072174072265625, 0.0011157989501953125, 0.0118255615234375, 0.0193023681640625, -0.020172119140625, -0.04180908203125, 0.007534027099609375, 0.0171661376953125, -0.021728515625, 0.0540771484375, 0.0382080078125, 0.043182373046875, 0.0020656585693359375, -0.037872314453125, -0.042694091796875, 0.022369384765625, -0.0080413818359375, -0.05621337890625, -0.042144775390625, 0.039398193359375, -0.037384033203125, 0.0200653076171875, -0.03411865234375, 0.038330078125, -0.044708251953125, -0.0264129638671875, 0.0611572265625, 0.04827880859375, 0.0164642333984375, 0.0209503173828125, -0.01148223876953125, 0.0014352798461914062, -0.0128173828125, -0.039520263671875, -0.041351318359375, -0.0445556640625, 0.0269775390625, 0.0182647705078125, -0.0283355712890625, 0.00004416704177856445, 0.03179931640625, 0.0423583984375, 0.017822265625, 0.045440673828125, 0.0289764404296875, -0.0180816650390625, -0.0017690658569335938, 0.02337646484375, 0.0489501953125, -0.040924072265625, -0.00909423828125, 0.000301361083984375, -0.044464111328125, 0.0311737060546875, -0.053741455078125, 0.0309295654296875, -0.026397705078125, -0.0283203125, -0.019561767578125, -0.0260467529296875, -0.01438140869140625, 0.003490447998046875, -0.007724761962890625, -0.00815582275390625, -0.038238525390625, 0.0260009765625, -0.0240631103515625, 0.04547119140625, -0.0406494140625, -0.01168060302734375, -0.0181884765625, 0.0197906494140625, 0.017333984375, 0.01088714599609375, -0.054168701171875, -0.011016845703125, -0.040008544921875, -0.011077880859375, -0.0149993896484375, -0.037078857421875, -0.04217529296875, -0.0005335807800292969, -0.0012950897216796875, 0.0253448486328125, 0.01476287841796875, -0.00940704345703125, -0.020355224609375, -0.01509857177734375, 0.0076751708984375, 0.00794219970703125, -0.005573272705078125, 0.07232666015625, 0.0034618377685546875, 0.062255859375, 0.0169525146484375, 0.01430511474609375, -0.0494384765625, -0.006221771240234375, 0.0210418701171875, 0.0306854248046875, 0.007244110107421875, -0.023223876953125, 0.0020732879638671875, -0.0977783203125, 0.007442474365234375, -0.0283203125, 0.0297698974609375, -0.032867431640625, 0.0009965896606445312, -0.025299072265625, 0.0201416015625, -0.08184814453125, -0.01471710205078125, 0.0284576416015625, -0.041534423828125, -0.0284881591796875, 0.0105743408203125, 0.0142669677734375, 0.031036376953125, -0.0281219482421875, -0.002147674560546875, 0.0121307373046875, -0.043914794921875, 0.048583984375, 0.047393798828125, -0.0235137939453125, 0.038604736328125, -0.0248260498046875, 0.0013141632080078125, 0.0738525390625, -0.0380859375, -0.031524658203125, 0.0214385986328125, 0.04510498046875, -0.0032444000244140625, 0.028167724609375, 0.047607421875, 0.002643585205078125, 0.021575927734375, -0.01465606689453125, 0.06658935546875, -0.0238189697265625, 0.0293121337890625, 0.0369873046875, -0.01247406005859375, 0.015777587890625, 0.038787841796875, -0.0390625, -0.0614013671875, 0.03131103515625, -0.0662841796875, 0.003543853759765625, 0.019195556640625, -0.0097503662109375, -0.0191650390625, -0.005390167236328125, 0.00664520263671875, 0.02996826171875, -0.004444122314453125, 0.05206298828125, -0.0127716064453125, 0.056427001953125, 0.04608154296875, 0.0172271728515625, -0.00304412841796875, -0.0679931640625, -0.0784912109375, -0.080322265625, -0.01739501953125, -0.0914306640625, -0.0269317626953125, -0.0278167724609375, 0.1142578125, 0.039459228515625, 0.0080718994140625, 0.00029087066650390625, 0.00725555419921875, 0.07452392578125, -0.04730224609375, -0.0191497802734375, 0.0305328369140625, 0.0215301513671875, -0.049530029296875, 0.03082275390625, -0.035308837890625, -0.01337432861328125, 0.01302337646484375, 0.0066680908203125, 0.010284423828125, -0.00931549072265625, -0.010772705078125, 0.0183868408203125, 0.01454925537109375, 0.0212554931640625, -0.004970550537109375, 0.0198211669921875, -0.08013916015625, -0.053924560546875, -0.0142364501953125, -0.07232666015625, -0.0088653564453125, -0.018341064453125, -0.048065185546875, 0.1060791015625, 0.0660400390625, 0.0164337158203125, 0.00658416748046875, 0.036590576171875, -0.04473876953125, 0.0238037109375, -0.0280609130859375, 0.0164794921875, -0.0006241798400878906, 0.00026106834411621094, -0.028594970703125, -0.00418853759765625, -0.017913818359375, -0.0008168220520019531, 0.00417327880859375, 0.0018558502197265625, -0.00787353515625, -0.007175445556640625, -0.009033203125, 0.0164337158203125, -0.018096923828125, 0.02886962890625, 0.01140594482421875, -0.00780487060546875, 0.038970947265625, 0.030303955078125, 0.05584716796875, -0.0323486328125, -0.0189361572265625, 0.0177459716796875, 0.01204681396484375, 0.01513671875, -0.004608154296875, 0.0227203369140625, 0.0028667449951171875, -0.00540924072265625, -0.0004925727844238281, 0.0180511474609375, 0.00904083251953125, 0.0238189697265625, 0.0006690025329589844, 0.0212860107421875, 0.03851318359375, -0.027008056640625, 0.03228759765625, -0.0214996337890625, 0.007232666015625, 0.06005859375, 0.014190673828125, 0.0298919677734375, 0.039825439453125, 0.0082550048828125, 0.0230255126953125, 0.031463623046875, 0.033660888671875, 0.054962158203125, 0.05096435546875, 0.023834228515625, 0.017974853515625, 0.0163726806640625, 0.041656494140625, -0.0281829833984375, 0.004581451416015625, 0.015899658203125, 0.003742218017578125, -0.00994873046875, -0.0146331787109375, 0.03521728515625, -0.0227203369140625, -0.01506805419921875, -0.0168609619140625, -0.0146942138671875, 0.039703369140625, -0.00786590576171875, 0.0007357597351074219, 0.00960540771484375, -0.0012388229370117188, -0.009674072265625, -0.040252685546875, 0.01277923583984375, 0.00963592529296875, 0.043609619140625, -0.006084442138671875, 0.056304931640625, -0.010040283203125, -0.0198516845703125, -0.0307464599609375, 0.0286102294921875, 0.0178680419921875, 0.0214385986328125, -0.035400390625, -0.007633209228515625, 0.0347900390625, 0.02752685546875, 0.0160369873046875, 0.0104217529296875, 0.03985595703125, 0.03155517578125, -0.04095458984375, 0.0143585205078125, 0.07379150390625, -0.007110595703125, 0.0247650146484375, -0.037139892578125, 0.00318145751953125, -0.0157470703125, -0.0212249755859375, -0.02679443359375, 0.0087127685546875, 0.022308349609375, -0.024261474609375, 0.015472412109375, 0.0007624626159667969, -0.048828125, 0.05560302734375, 0.010009765625, 0.09027099609375, 0.0167236328125, -0.015960693359375, -0.005901336669921875, 0.0172271728515625, -0.00409698486328125, -0.0181427001953125, 0.0264129638671875, 0.00923919677734375, 0.00103759765625, -0.016754150390625, 0.0022907257080078125, -0.00766754150390625, 0.005138397216796875, -0.006683349609375, 0.00519561767578125, 0.032989501953125, -0.0016984939575195312, 0.0036182403564453125, -0.0005993843078613281, 0.0231781005859375, 0.031097412109375, 0.0212860107421875, 0.0262298583984375, -0.005458831787109375, 0.0196685791015625, -0.006923675537109375, -0.01418304443359375, -0.00901031494140625, -0.0146636962890625, 0.0024585723876953125, -0.02166748046875, 0.01097869873046875, 0.0096588134765625, -0.062744140625, 0.0203857421875, 0.0018796920776367188, -0.01690673828125, 0.04522705078125, -0.024658203125, 0.01358795166015625, -0.00406646728515625, 0.0130157470703125, -0.0249786376953125, -0.003963470458984375, 0.04278564453125, 0.00719451904296875, 0.0008816719055175781, 0.005146026611328125, 0.029144287109375, -0.006679534912109375, 0.02484130859375, -0.0181732177734375, 0.004791259765625, 0.0174102783203125, 0.01335906982421875, 0.0264892578125, -0.0003409385681152344, 0.004558563232421875, -0.00827789306640625, -0.0308380126953125, 0.0290374755859375, -0.0309295654296875, 0.04437255859375, -0.0233306884765625, 0.0007066726684570312, 0.0193023681640625, 0.0131988525390625, -0.01111602783203125, -0.06976318359375, -0.02001953125, 0.0712890625, -0.0235443115234375, 0.02081298828125, -0.034027099609375, -0.021331787109375, -0.059478759765625, -0.01412200927734375, 0.0151519775390625, -0.032257080078125, -0.039459228515625, -0.023773193359375, 0.0301055908203125, 0.028594970703125, 0.022491455078125, -0.09503173828125, 0.06341552734375, -0.02374267578125, 0.03338623046875, -0.00975799560546875, -0.0203704833984375, 0.01078033447265625, 0.0572509765625, -0.00662994384765625, -0.007472991943359375, -0.028564453125, 0.00494384765625, -0.01910400390625, 0.005947113037109375, 0.0164337158203125, -0.0174560546875, 0.0101776123046875, -0.0083770751953125, 0.0224456787109375, 0.0266265869140625, 0.0017309188842773438, -0.036041259765625, 0.0161590576171875, -0.0171051025390625, -0.00015866756439208984, 0.00513458251953125, 0.0211639404296875, -0.045745849609375, -0.021697998046875, -0.0019464492797851562, -0.03546142578125, -0.0253448486328125, -0.05596923828125, -0.11053466796875, 0.00432586669921875, 0.001491546630859375, -0.03851318359375, -0.016326904296875, -0.0213623046875, -0.0322265625, 0.04876708984375, 0.0007653236389160156, -0.0328369140625, 0.005016326904296875, 0.04827880859375, 0.0159454345703125, 0.007640838623046875, 0.05316162109375, -0.0170135498046875, -0.09332275390625, -0.03570556640625, -0.05584716796875, 0.05633544921875, -0.01197052001953125, -0.04046630859375, 0.03704833984375, 0.040496826171875, -0.0160980224609375, -0.0435791015625, 0.03875732421875, -0.0047607421875, -0.0191802978515625, -0.036163330078125, -0.058319091796875, -0.0195465087890625, 0.09906005859375, 0.060699462890625, 0.034881591796875, -0.0316162109375, -0.01238250732421875, 0.0012941360473632812, -0.029449462890625, 0.00125885009765625, 0.0254364013671875, -0.050628662109375, 0.005794525146484375, 0.009185791015625, 0.0126953125, 0.0203399658203125, -0.0246734619140625, -0.0006561279296875, -0.01224517822265625, 0.0218963623046875, -0.005817413330078125, -0.0219879150390625, -0.032440185546875, 0.020050048828125, -0.006671905517578125, 0.0277862548828125, 0.00482177734375, 0.0177154541015625, 0.0257110595703125, 0.06732177734375, -0.007549285888671875, 0.034637451171875, -0.05206298828125, -0.002376556396484375, -0.0123291015625, 0.02069091796875, -0.0308837890625, -0.0014505386352539062, -0.03619384765625, 0.011505126953125, 0.0235595703125, 0.004512786865234375, -0.0489501953125, 0.04144287109375, 0.03594970703125, 0.0166473388671875, -0.0279083251953125, 0.07763671875, -0.039825439453125, 0.05657958984375, 0.0282745361328125, -0.0167236328125, 0.048980712890625, 0.0311126708984375, 0.029052734375, 0.004547119140625, 0.0589599609375, -0.00994110107421875, 0.01320648193359375, -0.00669097900390625, -0.0017414093017578125, 0.0095062255859375 ]
bf0b93d9f8147529ef55f560b4198942e34fb5bd
Wordpress Stackexchange Q: Category Search functionality on category metabox (wordpress admin) I have lots of categories on my blog site. When I add new post and select category, I need to scroll down to find the category. Is it possible to add a search category functionality in category metabox? Click here to view the image of the functionality that I want. I would appreciate your help. Thank you so much. A: There is a plugin for that here, but I have issues with it. I use it to search for product categories, of which I have over 6,200. I would guesstimate that it fails to find the category(ies) I'm searching for about 30% of the time. Also, it isn't verified to be completely successful with the current WordPress version. A better alternative for you might be to use one of the taxonomy filter plugins. They filter the category list as you type. The one I'm currently using, and having success with, is here. Good luck to you in finding what you're looking for.
Q: Category Search functionality on category metabox (wordpress admin) I have lots of categories on my blog site. When I add new post and select category, I need to scroll down to find the category. Is it possible to add a search category functionality in category metabox? Click here to view the image of the functionality that I want. I would appreciate your help. Thank you so much. A: There is a plugin for that here, but I have issues with it. I use it to search for product categories, of which I have over 6,200. I would guesstimate that it fails to find the category(ies) I'm searching for about 30% of the time. Also, it isn't verified to be completely successful with the current WordPress version. A better alternative for you might be to use one of the taxonomy filter plugins. They filter the category list as you type. The one I'm currently using, and having success with, is here. Good luck to you in finding what you're looking for.
wordpress
{ "language": "en", "length": 171, "provenance": "stackexchange_00019.jsonl.gz:445433", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145203" }
[ 0.039154052734375, -0.0033512115478515625, 0.006984710693359375, -0.00005823373794555664, 0.0161590576171875, -0.0207061767578125, 0.05767822265625, -0.040374755859375, 0.029449462890625, 0.02947998046875, -0.050689697265625, -0.0281219482421875, 0.0134124755859375, -0.00934600830078125, -0.04638671875, -0.039215087890625, 0.0211334228515625, -0.00624847412109375, 0.034942626953125, -0.013397216796875, 0.0128631591796875, -0.006374359130859375, 0.030792236328125, 0.01270294189453125, -0.0093841552734375, 0.00012505054473876953, 0.048583984375, -0.0210418701171875, 0.01244354248046875, -0.01387786865234375, 0.00757598876953125, -0.01190948486328125, 0.00798797607421875, -0.01271820068359375, 0.0531005859375, 0.032745361328125, 0.013946533203125, 0.0222930908203125, 0.036163330078125, -0.0017566680908203125, 0.039031982421875, -0.030517578125, -0.0007219314575195312, 0.041046142578125, 0.01416015625, -0.050079345703125, 0.02789306640625, -0.08465576171875, 0.016998291015625, -0.058807373046875, 0.0215911865234375, 0.026123046875, 0.0535888671875, -0.11083984375, -0.0228271484375, -0.0080718994140625, -0.010345458984375, 0.041778564453125, 0.0394287109375, -0.02667236328125, -0.039825439453125, -0.01355743408203125, 0.01172637939453125, -0.0021839141845703125, -0.0224761962890625, -0.0020198822021484375, 0.00873565673828125, 0.004749298095703125, -0.0391845703125, -0.02593994140625, 0.0430908203125, -0.0173492431640625, -0.0005145072937011719, 0.00881195068359375, -0.00592803955078125, -0.050933837890625, 0.0276031494140625, -0.0290374755859375, 0.010528564453125, 0.036407470703125, -0.005889892578125, -0.00415802001953125, 0.0094146728515625, -0.043853759765625, 0.0251617431640625, -0.00395965576171875, -0.0191192626953125, -0.008148193359375, -0.0302886962890625, -0.0537109375, -0.022613525390625, -0.0755615234375, -0.0521240234375, 0.010162353515625, 0.0030765533447265625, -0.032257080078125, -0.0159759521484375, 0.007762908935546875, -0.0188140869140625, 0.0007009506225585938, 0.000255584716796875, -0.02728271484375, -0.00433349609375, -0.0244903564453125, 0.0017156600952148438, -0.01544189453125, -0.038238525390625, 0.01690673828125, 0.07440185546875, 0.08538818359375, 0.0035953521728515625, 0.0289306640625, 0.0032138824462890625, -0.0047454833984375, -0.01418304443359375, 0.03643798828125, -0.0091705322265625, 0.0225677490234375, -0.01039886474609375, 0.028533935546875, 0.028717041015625, 0.0576171875, 0.02191162109375, -0.025726318359375, -0.01308441162109375, 0.0015878677368164062, -0.01177215576171875, -0.06048583984375, 0.0151519775390625, -0.0511474609375, -0.03656005859375, 0.0538330078125, 0.0430908203125, 0.0247650146484375, -0.01229095458984375, 0.00836944580078125, 0.0350341796875, 0.0027332305908203125, 0.014617919921875, -0.01534271240234375, 0.029510498046875, 0.00856781005859375, 0.0214385986328125, -0.003498077392578125, 0.032012939453125, -0.01485443115234375, 0.00484466552734375, 0.0328369140625, 0.04620361328125, 0.0181884765625, 0.01235198974609375, -0.006801605224609375, 0.059600830078125, -0.0026988983154296875, -0.04791259765625, -0.01255035400390625, 0.03668212890625, -0.0341796875, -0.059356689453125, -0.055999755859375, 0.025634765625, 0.00867462158203125, 0.021697998046875, 0.0022640228271484375, -0.0189361572265625, -0.0196380615234375, -0.02911376953125, -0.00794219970703125, 0.0035076141357421875, -0.014404296875, -0.0233154296875, 0.026153564453125, -0.003765106201171875, -0.0280609130859375, -0.01373291015625, -0.016632080078125, 0.01033782958984375, 0.057037353515625, 0.003711700439453125, 0.0467529296875, 0.0268096923828125, -0.033721923828125, 0.06982421875, -0.01401519775390625, -0.043212890625, 0.063720703125, 0.0083160400390625, 0.07025146484375, -0.01226806640625, 0.0172119140625, 0.03436279296875, 0.035247802734375, -0.059051513671875, 0.0045623779296875, -0.00524139404296875, -0.004146575927734375, 0.01538848876953125, 0.00836944580078125, 0.01280975341796875, -0.0088043212890625, 0.0058135986328125, -0.006931304931640625, -0.005462646484375, 0.0084228515625, -0.0234527587890625, -0.004344940185546875, -0.00811767578125, 0.01861572265625, 0.00494384765625, 0.0229949951171875, -0.00795745849609375, -0.0205230712890625, 0.020050048828125, -0.061065673828125, -0.0160064697265625, 0.0176849365234375, -0.01529693603515625, -0.0012197494506835938, 0.004085540771484375, -0.0017032623291015625, -0.01007080078125, 0.014190673828125, -0.0067596435546875, 0.0197906494140625, 0.0458984375, 0.041961669921875, -0.031890869140625, -0.00560760498046875, 0.018768310546875, 0.061767578125, -0.1004638671875, -0.004680633544921875, 0.0248260498046875, 0.0208740234375, -0.0232696533203125, 0.002803802490234375, 0.02410888671875, -0.035125732421875, 0.000972747802734375, 0.03759765625, 0.0248565673828125, 0.0240936279296875, -0.0023441314697265625, 0.015289306640625, 0.0290069580078125, -0.07342529296875, -0.0218048095703125, 0.0211639404296875, -0.01788330078125, 0.0179901123046875, 0.005847930908203125, 0.005794525146484375, 0.0306854248046875, 0.0171661376953125, 0.0231781005859375, 0.01617431640625, 0.0011644363403320312, 0.0007190704345703125, -0.011474609375, -0.01180267333984375, 0.01523590087890625, -0.0298919677734375, -0.053314208984375, 0.0084686279296875, 0.0513916015625, 0.004116058349609375, 0.0311431884765625, 0.0170440673828125, -0.031768798828125, 0.0143280029296875, 0.0173492431640625, -0.005970001220703125, 0.0027904510498046875, 0.051177978515625, 0.00799560546875, 0.0223541259765625, -0.0357666015625, -0.01306915283203125, 0.020599365234375, 0.0277099609375, -0.00980377197265625, 0.06243896484375, -0.01180267333984375, -0.0155487060546875, -0.05059814453125, -0.05029296875, -0.0077667236328125, 0.02069091796875, -0.034332275390625, 0.00905609130859375, 0.03436279296875, 0.01454925537109375, -0.01360321044921875, 0.0025081634521484375, -0.03912353515625, 0.00675201416015625, 0.0194854736328125, -0.02978515625, 0.04266357421875, -0.02587890625, 0.059814453125, 0.05596923828125, -0.047332763671875, 0.0572509765625, 0.00142669677734375, 0.00876617431640625, -0.0264739990234375, 0.031463623046875, 0.0017747879028320312, -0.00983428955078125, -0.051513671875, 0.00614166259765625, 0.0386962890625, -0.015960693359375, 0.03582763671875, -0.00298309326171875, 0.00293731689453125, 0.005710601806640625, -0.060882568359375, -0.060150146484375, -0.024322509765625, -0.060302734375, -0.0037479400634765625, 0.0244598388671875, -0.041046142578125, -0.0018358230590820312, 0.061126708984375, 0.01190185546875, 0.026458740234375, -0.0311431884765625, -0.037811279296875, -0.040283203125, -0.06414794921875, -0.037445068359375, 0.011627197265625, -0.01479339599609375, -0.0006198883056640625, 0.07867431640625, 0.002780914306640625, -0.07861328125, -0.0201263427734375, 0.054534912109375, -0.004001617431640625, 0.02264404296875, 0.03314208984375, -0.050323486328125, 0.007236480712890625, -0.0134124755859375, 0.014862060546875, 0.0275726318359375, -0.019805908203125, 0.0111236572265625, -0.016693115234375, 0.015716552734375, 0.00746917724609375, -0.0002551078796386719, 0.01151275634765625, 0.0384521484375, 0.0211639404296875, -0.01971435546875, 0.042633056640625, -0.0011348724365234375, 0.00269317626953125, -0.06219482421875, -0.02252197265625, -0.01427459716796875, -0.018646240234375, -0.0185546875, 0.0103759765625, 0.0146331787109375, 0.0132904052734375, -0.032623291015625, 0.00597381591796875, -0.0046234130859375, 0.0009055137634277344, -0.01358795166015625, -0.0189971923828125, -0.050384521484375, 0.044158935546875, -0.0161285400390625, 0.00007128715515136719, -0.011566162109375, 0.0250244140625, -0.02117919921875, -0.0472412109375, 0.05145263671875, 0.0084228515625, 0.007274627685546875, -0.023345947265625, -0.036102294921875, 0.004497528076171875, 0.0875244140625, -0.0462646484375, -0.0168609619140625, 0.007534027099609375, 0.00696563720703125, -0.004306793212890625, -0.0157623291015625, -0.04718017578125, -0.0259246826171875, -0.10089111328125, 0.0096893310546875, 0.01247406005859375, -0.061981201171875, -0.007068634033203125, 0.0281524658203125, -0.06103515625, -0.032196044921875, 0.041534423828125, -0.052734375, 0.0301055908203125, -0.00421142578125, 0.034637451171875, -0.043731689453125, -0.0180816650390625, -0.0257720947265625, -0.053985595703125, -0.0139312744140625, -0.00101470947265625, 0.0341796875, -0.00457000732421875, -0.00323486328125, -0.02142333984375, 0.03643798828125, 0.01251983642578125, 0.00337982177734375, 0.023773193359375, 0.0087890625, 0.036712646484375, -0.01373291015625, 0.0020389556884765625, -0.03167724609375, -0.0164947509765625, -0.01290130615234375, 0.025115966796875, 0.04486083984375, -0.0259552001953125, -0.010986328125, -0.02142333984375, -0.000044345855712890625, -0.0261688232421875, -0.05535888671875, -0.04119873046875, 0.00045108795166015625, -0.036407470703125, 0.0202789306640625, -0.04962158203125, -0.0292510986328125, 0.01378631591796875, -0.0023746490478515625, -0.006404876708984375, 0.00630950927734375, 0.0594482421875, 0.016082763671875, -0.018707275390625, -0.039581298828125, -0.004169464111328125, 0.0286712646484375, 0.0105438232421875, 0.0193328857421875, -0.0219268798828125, -0.039886474609375, 0.07257080078125, -0.003246307373046875, 0.0201873779296875, -0.0435791015625, 0.049468994140625, -0.0112457275390625, -0.0141143798828125, 0.018218994140625, -0.019927978515625, 0.0301971435546875, 0.0153045654296875, 0.0029850006103515625, -0.032989501953125, -0.015533447265625, 0.044342041015625, 0.014801025390625, 0.0004439353942871094, -0.0305938720703125, -0.0076141357421875, -0.00984954833984375, -0.042633056640625, 0.0633544921875, 0.05047607421875, -0.030059814453125, 0.0212860107421875, 0.023040771484375, -0.024322509765625, -0.03546142578125, -0.0130462646484375, -0.0237579345703125, -0.001041412353515625, -0.0290985107421875, -0.03802490234375, -0.01335906982421875, 0.001964569091796875, -0.006778717041015625, -0.00952911376953125, -0.04180908203125, -0.01412200927734375, 0.01070404052734375, 0.0257568359375, 0.047637939453125, -0.0219879150390625, 0.01551055908203125, 0.021087646484375, 0.0086212158203125, 0.0040130615234375, -0.03350830078125, 0.0136566162109375, -0.03570556640625, 0.0286712646484375, 0.0084686279296875, 0.003993988037109375, 0.03564453125, 0.07037353515625, -0.054168701171875, 0.0728759765625, 0.004581451416015625, -0.0032062530517578125, -0.0030956268310546875, 0.00844573974609375, 0.0266876220703125, -0.03155517578125, 0.0202789306640625, -0.043243408203125, 0.014892578125, -0.006916046142578125, -0.003284454345703125, 0.0021114349365234375, -0.005794525146484375, -0.0276031494140625, -0.015838623046875, 0.04766845703125, 0.0123748779296875, -0.0177459716796875, -0.035064697265625, -0.025634765625, 0.0044097900390625, -0.00824737548828125, -0.040985107421875, -0.019012451171875, 0.0175018310546875, -0.00189971923828125, -0.01342010498046875, -0.0251617431640625, 0.013458251953125, -0.0140533447265625, 0.01104736328125, -0.01033782958984375, -0.024627685546875, -0.06951904296875, -0.00623321533203125, 0.01552581787109375, -0.0282135009765625, -0.0404052734375, -0.0006990432739257812, -0.023223876953125, 0.0117645263671875, -0.01207733154296875, 0.055145263671875, -0.0081024169921875, -0.0228271484375, 0.0223236083984375, 0.0188446044921875, 0.006649017333984375, -0.0217132568359375, -0.049102783203125, -0.02020263671875, -0.0362548828125, -0.01873779296875, -0.039276123046875, -0.041351318359375, -0.0216522216796875, 0.004169464111328125, 0.0469970703125, 0.040435791015625, 0.01276397705078125, -0.056396484375, -0.00910186767578125, -0.043975830078125, 0.01666259765625, -0.01010894775390625, -0.02362060546875, 0.006542205810546875, 0.01251220703125, 0.0215911865234375, -0.0177001953125, -0.0163421630859375, 0.0105133056640625, -0.0188140869140625, -0.008575439453125, -0.048431396484375, -0.0163421630859375, 0.0150146484375, -0.06854248046875, 0.036468505859375, 0.07025146484375, 0.0018138885498046875, -0.0118255615234375, -0.0029888153076171875, 0.006229400634765625, -0.0134124755859375, 0.002079010009765625, 0.0042266845703125, -0.0131378173828125, 0.0171966552734375, -0.0180206298828125, 0.03857421875, -0.00650787353515625, -0.025543212890625, 0.04620361328125, -0.023162841796875, 0.04681396484375, 0.023773193359375, -0.06256103515625, 0.04595947265625, 0.01514434814453125, 0.034576416015625, 0.023193359375, -0.020660400390625, 0.02032470703125, -0.0452880859375, 0.0017004013061523438, -0.00426483154296875, 0.016082763671875, 0.048370361328125, -0.004306793212890625, -0.022125244140625, 0.035247802734375, -0.033477783203125, -0.03204345703125, 0.0225372314453125, 0.008880615234375, -0.034881591796875, -0.0088043212890625, 0.0067291259765625, 0.001529693603515625, -0.0237274169921875, 0.0176239013671875, -0.03228759765625, -0.0086517333984375, 0.001491546630859375, -0.048431396484375, -0.044158935546875, -0.00479888916015625, 0.003925323486328125, -0.01114654541015625, 0.00908660888671875, -0.01800537109375, 0.0195159912109375, -0.038482666015625, 0.0241241455078125, 0.0170135498046875, 0.0207672119140625, -0.0221099853515625, -0.01387786865234375, 0.027099609375, -0.03656005859375, -0.062164306640625, 0.0249176025390625, 0.00030422210693359375, 0.007099151611328125, 0.007678985595703125, -0.02197265625, 0.029815673828125, 0.039581298828125, -0.00473785400390625, 0.0003032684326171875, 0.004985809326171875, -0.036102294921875, 0.0055999755859375, 0.010101318359375, -0.00928497314453125, 0.004878997802734375, 0.00640106201171875, -0.0089874267578125, -0.020751953125, 0.0188446044921875, -0.01474761962890625, -0.057708740234375, 0.04144287109375, -0.01160430908203125, -0.013275146484375, 0.021514892578125, 0.019927978515625, -0.0067901611328125, 0.02215576171875, -0.0012521743774414062, 0.00013053417205810547, 0.0254974365234375, 0.015777587890625, 0.00733184814453125, 0.0419921875, 0.048675537109375, -0.016357421875, -0.006679534912109375, -0.0191192626953125, -0.017303466796875, 0.00005424022674560547, 0.0119171142578125, 0.012054443359375, 0.00313568115234375, -0.01447296142578125, 0.044189453125, -0.004375457763671875, 0.0445556640625, -0.033905029296875, -0.01258087158203125, 0.0153045654296875, 0.04974365234375, 0.03509521484375, -0.00350189208984375, -0.0218505859375, -0.0330810546875, 0.0187225341796875, 0.07818603515625, 0.0233001708984375, -0.005756378173828125, -0.002246856689453125, 0.0177001953125, 0.03753662109375, -0.0269622802734375, 0.0268707275390625, -0.005298614501953125, -0.0296478271484375, 0.0043182373046875, -0.0015783309936523438, 0.00617218017578125, -0.006439208984375, 0.0205535888671875, 0.029998779296875, -0.0283050537109375, -0.016387939453125, -0.043182373046875, 0.0024261474609375, 0.03570556640625, 0.0364990234375, -0.0787353515625, -0.01885986328125, -0.026123046875, 0.05987548828125, 0.0108489990234375, 0.061767578125, 0.0295867919921875, 0.0247650146484375, 0.07757568359375, -0.03741455078125, 0.03240966796875, -0.0034503936767578125, -0.0379638671875, 0.0567626953125, -0.00487518310546875, 0.0229949951171875, -0.050140380859375, -0.00226593017578125, 0.0225372314453125, 0.057373046875, -0.037384033203125, -0.09112548828125, 0.006988525390625, 0.0211334228515625, 0.0379638671875, 0.04302978515625, 0.0291900634765625, 0.01468658447265625, 0.093994140625, -0.04437255859375, -0.0018405914306640625, 0.0090484619140625, 0.025238037109375, -0.0008459091186523438, 0.0287322998046875, -0.03179931640625, -0.0235595703125, -0.030853271484375, 0.04046630859375, 0.0035228729248046875, 0.042694091796875, -0.0055999755859375, 0.05609130859375, -0.051239013671875, -0.01496124267578125, -0.010498046875, 0.020294189453125, 0.00705718994140625, 0.0028400421142578125, -0.0223846435546875, -0.026336669921875, 0.0145263671875, 0.0311279296875, 0.0244598388671875, 0.0347900390625, 0.05743408203125, 0.0498046875, 0.007541656494140625, -0.005615234375, 0.0309600830078125, -0.0167388916015625, -0.004791259765625, -0.05584716796875, 0.06524658203125, 0.06414794921875, 0.044891357421875, -0.0254669189453125, 0.01910400390625, 0.0826416015625, -0.007022857666015625, -0.015655517578125, 0.01448822021484375, -0.057647705078125, 0.0238189697265625, -0.00865936279296875, 0.050079345703125, 0.01438140869140625, -0.102783203125, -0.0272064208984375, -0.0266876220703125, -0.062744140625, 0.056243896484375, 0.05419921875, -0.0204925537109375, -0.00582122802734375, 0.0017824172973632812, -0.042510986328125, 0.014801025390625, 0.0086212158203125, -0.00002676248550415039, 0.0031032562255859375, 0.0007529258728027344, -0.0142059326171875, -0.0144805908203125, -0.007648468017578125, 0.0386962890625, 0.0284576416015625, -0.0184783935546875, 0.05816650390625, -0.005741119384765625, -0.01617431640625, -0.04852294921875, -0.007244110107421875, -0.039337158203125, -0.054962158203125, 0.059844970703125, -0.01177978515625, -0.041900634765625, 0.0011701583862304688, -0.007205963134765625, 0.0014333724975585938, 0.05975341796875, -0.040618896484375, 0.0008516311645507812, -0.003917694091796875, 0.01140594482421875, -0.054443359375, -0.005306243896484375, -0.030029296875, 0.008514404296875, -0.02734375, -0.04608154296875, 0.03900146484375, 0.0071258544921875, 0.0079345703125, -0.01183319091796875, 0.004047393798828125, -0.0017595291137695312, -0.0267486572265625, 0.048858642578125, -0.024810791015625, 0.03662109375, -0.024627685546875, 0.01506805419921875, 0.01861572265625, -0.0184783935546875, 0.0218505859375, -0.0019073486328125, 0.00916290283203125, 0.02764892578125, -0.06610107421875, -0.009857177734375, 0.03662109375, 0.037994384765625, -0.017120361328125, 0.02032470703125, 0.005680084228515625, -0.00940704345703125, -0.01480865478515625, 0.005847930908203125, -0.027069091796875, -0.02197265625, -0.00861358642578125, -0.0003635883331298828, 0.005222320556640625, -0.03369140625, -0.0199737548828125, -0.01203155517578125, 0.055267333984375, 0.015289306640625, -0.04547119140625, 0.04034423828125, -0.0161285400390625, 0.0005216598510742188, 0.026702880859375, -0.032806396484375, 0.024993896484375, 0.048004150390625, -0.043975830078125, 0.017181396484375, -0.0112457275390625, -0.042694091796875, -0.016357421875, 0.0216522216796875, 0.024383544921875, -0.033935546875, 0.006435394287109375, 0.0341796875, 0.02777099609375, 0.07354736328125, 0.04229736328125, 0.0157623291015625, 0.0139007568359375, 0.031402587890625, -0.059906005859375, -0.034271240234375, 0.016998291015625, 0.04266357421875, -0.024169921875, 0.0010547637939453125, 0.00897216796875, 0.033172607421875, -0.020050048828125, -0.0831298828125, 0.0260467529296875, -0.004268646240234375, -0.052032470703125, -0.0682373046875, 0.01067352294921875, -0.00801849365234375, 0.047760009765625, -0.01068115234375, -0.00695037841796875, -0.046722412109375, 0.0277252197265625, 0.0345458984375, -0.02752685546875, 0.050384521484375, -0.0020904541015625, -0.07550048828125, 0.01233673095703125, 0.01183319091796875, 0.00728607177734375, -0.01934814453125, 0.00667572021484375, -0.0041961669921875, 0.041229248046875, -0.0333251953125, -0.0843505859375, -0.0018568038940429688, -0.00031113624572753906, 0.0232086181640625, -0.04937744140625, -0.055450439453125, -0.06451416015625, 0.03802490234375, -0.01071929931640625, 0.01422119140625, 0.01206207275390625, -0.01506805419921875, -0.04840087890625, -0.00548553466796875, -0.02813720703125, -0.00661468505859375, -0.055908203125, -0.0009217262268066406, 0.00937652587890625, -0.00235748291015625, 0.0241851806640625, -0.0249786376953125, -0.013336181640625, -0.0022830963134765625, 0.0225982666015625, 0.0212249755859375, -0.0733642578125, 0.040924072265625, 0.0015726089477539062, -0.036376953125, -0.059783935546875, 0.01268768310546875, -0.0231781005859375, -0.0540771484375, -0.022308349609375, -0.019195556640625, -0.0104522705078125, 0.0242462158203125, 0.01092529296875, 0.015899658203125, 0.01105499267578125, 0.0233306884765625, 0.0111083984375, -0.01558685302734375, 0.035858154296875, 0.00983428955078125, 0.035919189453125, -0.0509033203125, 0.06854248046875, 0.0289306640625, 0.07763671875, 0.016693115234375, -0.0031948089599609375, -0.0251007080078125, 0.0711669921875, 0.00885009765625, -0.041412353515625, 0.03704833984375, -0.046539306640625, 0.003643035888671875, -0.01003265380859375, 0.01056671142578125, -0.016754150390625, 0.018646240234375, -0.01580810546875, -0.0192718505859375, 0.028076171875 ]
543c5209b3cfedef8446b90b54ccfd47dd1b6024
Wordpress Stackexchange Q: Redeclare a function in a child theme I want to redeclare a function that I inherited from the parent theme. When I do it in functions.php, I get a fatal error that redeclaration is not possible. I did a workaround: creating a modified function name and copying all the template files, index.php etc. into the child theme's directory and rewriting the function calls. So now the new function is called. This works but ignores any updates that the parent theme would have. Is there a better solution to this? A: Redeclaring a function in a child theme only works when the parent themes' function is wrapped in a if( !function_exists( 'function_name' )): condition. Then you can simply just copy the complete function to the child theme and do whatever modifications you need to do. If the parent themes' functions aren't wrapped in that if conditional statement, and if no filters or hooks are supplied in the function, it will be best to copy the function to your child theme, rename that function, do your modifications and then update your template files accordingly to reflect the new function.
Q: Redeclare a function in a child theme I want to redeclare a function that I inherited from the parent theme. When I do it in functions.php, I get a fatal error that redeclaration is not possible. I did a workaround: creating a modified function name and copying all the template files, index.php etc. into the child theme's directory and rewriting the function calls. So now the new function is called. This works but ignores any updates that the parent theme would have. Is there a better solution to this? A: Redeclaring a function in a child theme only works when the parent themes' function is wrapped in a if( !function_exists( 'function_name' )): condition. Then you can simply just copy the complete function to the child theme and do whatever modifications you need to do. If the parent themes' functions aren't wrapped in that if conditional statement, and if no filters or hooks are supplied in the function, it will be best to copy the function to your child theme, rename that function, do your modifications and then update your template files accordingly to reflect the new function. A: You can first remove the function with remove_filter( 'hook', 'function_name' ); and then add the function again with the new name and same hook. For Example function remove_content_filter() { remove_filter( 'the_content', 'function_name' ); } add_action( 'after_setup_theme', 'remove_content_filter' ); function new_function_name( $output ) { //some code here return $output; } add_filter( 'the_content', 'new_function_name' );
wordpress
{ "language": "en", "length": 242, "provenance": "stackexchange_00019.jsonl.gz:445492", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145422" }
[ 0.0523681640625, 0.02130126953125, -0.0167694091796875, -0.06768798828125, 0.0272979736328125, -0.004596710205078125, -0.0230255126953125, -0.032684326171875, -0.025360107421875, 0.03253173828125, -0.0347900390625, 0.0038890838623046875, -0.01345062255859375, -0.00872039794921875, -0.04296875, -0.0511474609375, 0.039703369140625, -0.05657958984375, 0.00469970703125, -0.036163330078125, 0.010040283203125, 0.01206207275390625, 0.042572021484375, 0.104736328125, 0.0210418701171875, -0.07000732421875, 0.05279541015625, -0.039581298828125, 0.0194244384765625, -0.0306549072265625, 0.02252197265625, 0.032012939453125, -0.00804901123046875, 0.05462646484375, -0.03814697265625, -0.0364990234375, 0.0279541015625, 0.0089111328125, 0.009521484375, 0.0377197265625, 0.01514434814453125, -0.016082763671875, -0.031280517578125, -0.00241851806640625, -0.026275634765625, -0.0509033203125, 0.03857421875, 0.0034503936767578125, -0.038543701171875, 0.031280517578125, 0.0543212890625, -0.0179901123046875, 0.055908203125, 0.01250457763671875, 0.0019588470458984375, 0.0225830078125, -0.056396484375, 0.06378173828125, 0.01181793212890625, 0.036041259765625, -0.01050567626953125, 0.034393310546875, -0.0157470703125, -0.0167236328125, 0.03466796875, -0.0000705718994140625, -0.01389312744140625, 0.0216217041015625, -0.06048583984375, 0.022430419921875, 0.031005859375, -0.0460205078125, 0.00894927978515625, -0.014312744140625, 0.0222930908203125, -0.0287322998046875, 0.016357421875, 0.003925323486328125, 0.007404327392578125, 0.020172119140625, 0.00952911376953125, -0.01556396484375, -0.01384735107421875, -0.01303863525390625, 0.0131988525390625, 0.0090484619140625, -0.00807952880859375, -0.011566162109375, -0.034210205078125, -0.013580322265625, -0.030548095703125, -0.043975830078125, -0.02801513671875, 0.0199737548828125, 0.015655517578125, 0.0038776397705078125, 0.04327392578125, 0.05731201171875, 0.0020999908447265625, 0.02783203125, 0.007144927978515625, -0.050201416015625, 0.031829833984375, -0.04913330078125, 0.01395416259765625, 0.059906005859375, 0.00804901123046875, -0.00522613525390625, 0.0017194747924804688, 0.018341064453125, 0.0197296142578125, -0.0196685791015625, -0.01141357421875, -0.045013427734375, -0.01727294921875, 0.0655517578125, -0.0103759765625, -0.0085296630859375, 0.01280975341796875, 0.0264434814453125, 0.0015773773193359375, 0.01293182373046875, 0.010711669921875, 0.00168609619140625, -0.0135955810546875, -0.02734375, -0.03411865234375, -0.01438140869140625, 0.06280517578125, 0.005710601806640625, -0.040802001953125, -0.0094451904296875, 0.06622314453125, 0.0277557373046875, 0.02032470703125, -0.01806640625, 0.082763671875, 0.0101470947265625, 0.017486572265625, -0.018218994140625, 0.06597900390625, -0.0289459228515625, -0.060699462890625, 0.04248046875, 0.005893707275390625, 0.0374755859375, 0.0106353759765625, -0.00963592529296875, -0.00021564960479736328, -0.0611572265625, 0.0237579345703125, -0.05987548828125, 0.056121826171875, -0.0197601318359375, -0.028472900390625, -0.02880859375, -0.006237030029296875, -0.015380859375, -0.016204833984375, -0.01541900634765625, 0.0238037109375, -0.0075225830078125, -0.01026153564453125, 0.0196533203125, -0.033447265625, 0.0108184814453125, 0.003528594970703125, -0.008148193359375, 0.0136566162109375, -0.00897979736328125, 0.051544189453125, -0.042510986328125, -0.051055908203125, 0.01216888427734375, 0.019500732421875, 0.0323486328125, 0.0139923095703125, -0.01039886474609375, 0.0099945068359375, 0.0484619140625, 0.00597381591796875, -0.0251312255859375, 0.0301055908203125, -0.0158538818359375, -0.048980712890625, 0.00563812255859375, 0.004108428955078125, 0.038116455078125, 0.03173828125, 0.0136566162109375, 0.0038852691650390625, -0.00673675537109375, -0.0176239013671875, 0.017913818359375, -0.0176849365234375, -0.03314208984375, -0.01114654541015625, 0.0026912689208984375, -0.034637451171875, 0.02557373046875, 0.019805908203125, 0.0125274658203125, -0.002899169921875, -0.013885498046875, -0.051605224609375, 0.006618499755859375, -0.024505615234375, 0.035430908203125, 0.036712646484375, 0.03973388671875, -0.01178741455078125, -0.013885498046875, -0.023406982421875, 0.00722503662109375, -0.01434326171875, 0.007354736328125, -0.016632080078125, 0.0230560302734375, 0.0036754608154296875, 0.038665771484375, 0.0269775390625, -0.0087432861328125, -0.0008335113525390625, -0.008880615234375, 0.006931304931640625, -0.01457977294921875, -0.03955078125, -0.0215911865234375, -0.06304931640625, 0.0035858154296875, -0.0595703125, 0.07476806640625, 0.03375244140625, 0.07421875, -0.00508880615234375, -0.0134124755859375, -0.037384033203125, -0.03631591796875, -0.00585174560546875, 0.04022216796875, 0.02581787109375, 0.043792724609375, 0.0007181167602539062, 0.032073974609375, 0.0556640625, -0.029510498046875, -0.0086517333984375, 0.0081634521484375, 0.015899658203125, 0.0273590087890625, 0.020263671875, 0.00067138671875, 0.0238189697265625, -0.035552978515625, 0.020538330078125, 0.04144287109375, 0.0114898681640625, 0.005664825439453125, -0.01032257080078125, -0.01218414306640625, 0.0038776397705078125, -0.042938232421875, -0.049407958984375, 0.00196075439453125, 0.005649566650390625, -0.01043701171875, -0.010650634765625, -0.01456451416015625, -0.0294189453125, 0.00702667236328125, 0.04779052734375, 0.0066375732421875, -0.01169586181640625, 0.0252838134765625, -0.010345458984375, 0.04278564453125, -0.0247344970703125, 0.00432586669921875, -0.00878143310546875, 0.02947998046875, 0.008392333984375, 0.043975830078125, -0.044097900390625, -0.01922607421875, -0.0191497802734375, -0.005573272705078125, -0.0012273788452148438, 0.05078125, 0.03204345703125, 0.0204010009765625, 0.01514434814453125, 0.05426025390625, 0.019317626953125, 0.03155517578125, 0.0237884521484375, 0.00366973876953125, 0.0159912109375, -0.01580810546875, 0.015655517578125, 0.0048980712890625, 0.036773681640625, 0.053009033203125, 0.01479339599609375, -0.002941131591796875, 0.00362396240234375, 0.03271484375, 0.0433349609375, 0.0044708251953125, -0.00026702880859375, -0.01482391357421875, -0.01140594482421875, -0.028778076171875, 0.03759765625, 0.061309814453125, 0.0100555419921875, -0.0188140869140625, -0.0007781982421875, 0.044921875, -0.0198974609375, -0.0231781005859375, -0.07366943359375, -0.033843994140625, -0.01306915283203125, -0.0030155181884765625, -0.0069427490234375, 0.0269317626953125, -0.007843017578125, 0.0278167724609375, 0.046722412109375, -0.04730224609375, -0.0533447265625, -0.059173583984375, -0.095458984375, -0.03631591796875, 0.00800323486328125, 0.003307342529296875, -0.004852294921875, 0.04986572265625, -0.0026874542236328125, -0.0379638671875, 0.01428985595703125, 0.042724609375, 0.00534820556640625, 0.01082611083984375, 0.030731201171875, -0.036712646484375, 0.015899658203125, 0.0071563720703125, 0.008209228515625, 0.026641845703125, -0.035308837890625, -0.0211029052734375, 0.0001819133758544922, 0.006191253662109375, 0.007259368896484375, 0.077392578125, -0.0014972686767578125, -0.008636474609375, 0.039398193359375, -0.043548583984375, -0.059478759765625, 0.025482177734375, -0.05426025390625, 0.052520751953125, 0.0302276611328125, -0.0167694091796875, 0.0101776123046875, 0.01922607421875, 0.031524658203125, 0.0115203857421875, 0.0186004638671875, -0.0032291412353515625, 0.03887939453125, 0.0011377334594726562, 0.0205535888671875, -0.0428466796875, 0.0626220703125, 0.0017185211181640625, -0.0182037353515625, 0.0118408203125, 0.026031494140625, 0.001918792724609375, -0.00732421875, -0.044342041015625, -0.04443359375, 0.025482177734375, -0.039520263671875, -0.0034885406494140625, -0.02294921875, -0.006259918212890625, 0.006053924560546875, 0.06256103515625, 0.01806640625, -0.0189056396484375, -0.006317138671875, -0.0051422119140625, -0.0543212890625, 0.004505157470703125, -0.049468994140625, 0.0166473388671875, -0.0263671875, -0.020355224609375, -0.0020732879638671875, -0.02398681640625, -0.01715087890625, 0.04510498046875, -0.0205230712890625, 0.00351715087890625, 0.01465606689453125, 0.0114288330078125, -0.0005636215209960938, 0.004878997802734375, -0.00885009765625, 0.0069122314453125, 0.0194549560546875, -0.026611328125, -0.043975830078125, 0.004055023193359375, -0.08953857421875, 0.051605224609375, 0.051300048828125, 0.0031642913818359375, 0.006805419921875, 0.04345703125, 0.0328369140625, 0.0645751953125, -0.0298614501953125, -0.0237884521484375, 0.01479339599609375, -0.0089263916015625, 0.005035400390625, -0.01149749755859375, -0.01221466064453125, 0.0011911392211914062, -0.0294647216796875, 0.0277252197265625, -0.00363922119140625, -0.0090179443359375, 0.0271148681640625, -0.034332275390625, -0.031829833984375, -0.0031185150146484375, -0.025115966796875, -0.0026397705078125, 0.0137786865234375, -0.043792724609375, -0.001613616943359375, -0.0443115234375, 0.0361328125, -0.0231781005859375, -0.035888671875, 0.01534271240234375, 0.06744384765625, 0.00982666015625, -0.009033203125, -0.034637451171875, -0.009735107421875, 0.0023212432861328125, 0.0211639404296875, -0.039215087890625, -0.07281494140625, -0.01898193359375, 0.01186370849609375, -0.0248565673828125, 0.029541015625, -0.0006690025329589844, 0.034637451171875, -0.0048065185546875, -0.024749755859375, 0.02349853515625, 0.016571044921875, -0.006702423095703125, 0.0261383056640625, 0.00818634033203125, -0.0252532958984375, 0.025238037109375, 0.02471923828125, 0.006130218505859375, -0.034759521484375, -0.03302001953125, -0.01154327392578125, 0.0009322166442871094, -0.01419830322265625, 0.0132598876953125, 0.01436614990234375, 0.0016889572143554688, -0.0031871795654296875, -0.0104522705078125, 0.0290069580078125, 0.0250701904296875, 0.071044921875, -0.0457763671875, 0.058685302734375, 0.0176239013671875, -0.00301361083984375, -0.01416015625, 0.0028533935546875, 0.00168609619140625, 0.0190582275390625, -0.0240478515625, -0.00213623046875, 0.0130462646484375, -0.01242828369140625, -0.035858154296875, -0.02410888671875, -0.01509857177734375, 0.0122222900390625, -0.0189666748046875, 0.01091766357421875, -0.005733489990234375, 0.0014753341674804688, -0.0024967193603515625, 0.0165252685546875, 0.0171356201171875, -0.0272216796875, 0.028900146484375, -0.033203125, 0.038818359375, -0.0151824951171875, -0.015625, -0.003955841064453125, -0.0335693359375, 0.020660400390625, 0.01454925537109375, -0.0180511474609375, 0.047637939453125, -0.01392364501953125, 0.042449951171875, -0.0301666259765625, -0.0217132568359375, 0.046417236328125, 0.039337158203125, 0.01483154296875, 0.01300048828125, -0.0231170654296875, 0.01271820068359375, -0.01403045654296875, 0.0195465087890625, 0.038116455078125, -0.0035114288330078125, 0.0080413818359375, -0.0294342041015625, -0.0008826255798339844, 0.02642822265625, -0.0267486572265625, 0.036468505859375, -0.044586181640625, -0.011474609375, 0.045318603515625, -0.044158935546875, 0.00811004638671875, 0.004322052001953125, -0.06097412109375, 0.00061798095703125, 0.0070648193359375, -0.006282806396484375, -0.055938720703125, -0.00959014892578125, -0.0228729248046875, 0.051971435546875, -0.01453399658203125, -0.01396942138671875, -0.0290374755859375, 0.023223876953125, 0.0172882080078125, -0.0160369873046875, 0.114501953125, 0.041595458984375, -0.0491943359375, -0.01380157470703125, -0.033599853515625, -0.0251007080078125, -0.0872802734375, -0.04644775390625, -0.06854248046875, 0.03131103515625, -0.02374267578125, 0.032440185546875, -0.0115966796875, -0.00841522216796875, 0.007175445556640625, 0.0081939697265625, -0.01436614990234375, 0.0177764892578125, -0.0013380050659179688, 0.017364501953125, 0.02728271484375, 0.027862548828125, 0.01343536376953125, 0.0021800994873046875, -0.0026950836181640625, -0.0391845703125, -0.0029201507568359375, 0.00981903076171875, 0.004756927490234375, -0.024505615234375, 0.029693603515625, -0.016387939453125, 0.067138671875, -0.002834320068359375, 0.036590576171875, -0.0517578125, -0.0172271728515625, -0.0294952392578125, 0.0304412841796875, -0.054931640625, 0.0423583984375, -0.035125732421875, -0.03717041015625, 0.002368927001953125, 0.0181732177734375, 0.009002685546875, 0.0033168792724609375, -0.004375457763671875, 0.00659942626953125, 0.028656005859375, -0.0926513671875, 0.056304931640625, 0.01447296142578125, 0.00324249267578125, 0.02099609375, -0.04766845703125, 0.016357421875, 0.02294921875, 0.0181427001953125, 0.01525115966796875, -0.0116729736328125, 0.0262603759765625, -0.01470947265625, -0.02081298828125, -0.0166015625, -0.039031982421875, -0.0265045166015625, 0.043304443359375, 0.052093505859375, -0.059417724609375, -0.01294708251953125, 0.01444244384765625, 0.00809478759765625, -0.0121002197265625, -0.01302337646484375, 0.01947021484375, 0.00705718994140625, 0.0035457611083984375, 0.020721435546875, -0.017730712890625, 0.01430511474609375, 0.00574493408203125, -0.0191802978515625, -0.04559326171875, 0.0258941650390625, 0.0347900390625, 0.007450103759765625, 0.062164306640625, 0.01421356201171875, 0.0445556640625, -0.0281829833984375, 0.0330810546875, 0.00804901123046875, -0.01045989990234375, -0.03753662109375, 0.04071044921875, 0.01061248779296875, -0.0009179115295410156, -0.0185699462890625, 0.0054168701171875, 0.01070404052734375, 0.07928466796875, -0.042266845703125, 0.040313720703125, 0.058837890625, -0.01947021484375, 0.0146942138671875, -0.05487060546875, 0.003231048583984375, -0.0183258056640625, -0.031280517578125, 0.005710601806640625, 0.0087738037109375, -0.051971435546875, -0.01174163818359375, -0.011322021484375, 0.0266265869140625, -0.005886077880859375, -0.0193023681640625, 0.055633544921875, 0.031036376953125, -0.035675048828125, 0.0167236328125, 0.025787353515625, -0.07037353515625, -0.05841064453125, 0.021270751953125, -0.03662109375, -0.018463134765625, -0.0035839080810546875, -0.0677490234375, 0.1324462890625, 0.059295654296875, 0.0248870849609375, -0.001453399658203125, 0.06365966796875, -0.06182861328125, 0.035003662109375, 0.0006670951843261719, 0.0438232421875, 0.053466796875, 0.00946044921875, 0.007633209228515625, -0.00759124755859375, 0.01007080078125, 0.032257080078125, -0.013214111328125, -0.0116424560546875, 0.00937652587890625, 0.01212310791015625, 0.026885986328125, 0.01397705078125, -0.0012416839599609375, 0.025482177734375, -0.03857421875, -0.0311279296875, -0.01230621337890625, 0.00176239013671875, 0.020111083984375, -0.0211639404296875, -0.052032470703125, -0.008453369140625, 0.0096435546875, -0.0151824951171875, -0.028900146484375, -0.055999755859375, -0.011383056640625, -0.016937255859375, -0.006137847900390625, 0.0018892288208007812, -0.0219573974609375, 0.0016040802001953125, -0.0112762451171875, -0.0188140869140625, -0.01143646240234375, -0.0130462646484375, 0.0276031494140625, 0.00409698486328125, 0.0259857177734375, -0.038726806640625, 0.00511932373046875, 0.005283355712890625, -0.0084075927734375, -0.0111083984375, 0.06591796875, -0.0538330078125, 0.04339599609375, 0.03533935546875, 0.0323486328125, 0.00809478759765625, 0.03143310546875, 0.00885772705078125, 0.0283050537109375, -0.039215087890625, -0.0216827392578125, 0.0053558349609375, 0.0018777847290039062, -0.0016222000122070312, 0.004039764404296875, 0.03192138671875, 0.04052734375, 0.046875, 0.00012350082397460938, -0.01393890380859375, -0.0025177001953125, 0.039276123046875, 0.005359649658203125, -0.0116729736328125, 0.00600433349609375, -0.02215576171875, -0.01026153564453125, -0.0279388427734375, 0.0159454345703125, 0.0264434814453125, -0.0082550048828125, 0.05401611328125, -0.003047943115234375, -0.0006861686706542969, -0.020599365234375, 0.00940704345703125, 0.003337860107421875, 0.016693115234375, -0.04901123046875, -0.0189056396484375, 0.034149169921875, 0.05865478515625, -0.002758026123046875, -0.00872039794921875, -0.0021991729736328125, 0.0030918121337890625, -0.035308837890625, -0.00981903076171875, 0.01385498046875, -0.02703857421875, 0.054962158203125, -0.00994873046875, 0.00891876220703125, -0.027679443359375, -0.02642822265625, -0.0352783203125, 0.0277099609375, 0.0190277099609375, 0.0301666259765625, 0.0143890380859375, 0.0144195556640625, -0.006778717041015625, 0.047515869140625, -0.0082244873046875, 0.0684814453125, 0.038055419921875, -0.06494140625, -0.001117706298828125, -0.01242828369140625, -0.040252685546875, 0.02484130859375, 0.040435791015625, -0.034515380859375, 0.0229644775390625, 0.0308380126953125, -0.01214599609375, 0.001819610595703125, 0.01523590087890625, -0.004535675048828125, 0.00411224365234375, 0.02764892578125, 0.028717041015625, -0.0419921875, -0.0263671875, -0.023956298828125, 0.0345458984375, 0.0266876220703125, 0.07611083984375, -0.0240478515625, 0.031585693359375, 0.01006317138671875, 0.015777587890625, -0.0223541259765625, -0.01488494873046875, 0.038482666015625, -0.0357666015625, 0.0008754730224609375, 0.0019254684448242188, -0.080078125, 0.0210723876953125, 0.0139312744140625, 0.01326751708984375, 0.028656005859375, 0.004749298095703125, 0.01230621337890625, -0.0025844573974609375, 0.01641845703125, 0.01386260986328125, -0.00360107421875, 0.0577392578125, 0.0233917236328125, 0.0202178955078125, 0.049407958984375, -0.00803375244140625, -0.01654052734375, 0.0374755859375, -0.03594970703125, 0.00983428955078125, -0.00213623046875, 0.008056640625, 0.029937744140625, 0.0212860107421875, -0.04302978515625, -0.01497650146484375, -0.023651123046875, 0.0091400146484375, -0.017547607421875, 0.050750732421875, -0.006160736083984375, -0.03961181640625, -0.00965118408203125, 0.01078033447265625, -0.005092620849609375, -0.049468994140625, -0.0166168212890625, 0.05078125, -0.05718994140625, 0.01027679443359375, -0.018707275390625, -0.038970947265625, -0.0401611328125, 0.0162353515625, 0.011322021484375, 0.0036029815673828125, -0.030059814453125, 0.009307861328125, 0.01525115966796875, 0.060821533203125, 0.04205322265625, -0.1005859375, 0.04595947265625, 0.0058135986328125, 0.0506591796875, 0.01265716552734375, -0.015777587890625, 0.01139068603515625, 0.037017822265625, -0.00045037269592285156, -0.00812530517578125, -0.0185089111328125, 0.00952911376953125, 0.002010345458984375, 0.0650634765625, 0.08367919921875, -0.040496826171875, 0.001293182373046875, 0.040924072265625, 0.043487548828125, 0.0904541015625, -0.017333984375, -0.0347900390625, 0.0202484130859375, -0.026519775390625, -0.0032863616943359375, 0.00983428955078125, 0.039642333984375, -0.071533203125, -0.050048828125, -0.0190582275390625, -0.02777099609375, -0.0010709762573242188, -0.05157470703125, -0.06494140625, 0.02838134765625, 0.0008416175842285156, -0.04205322265625, -0.00875091552734375, -0.0013303756713867188, -0.0199432373046875, 0.005428314208984375, 0.00958251953125, -0.0160980224609375, 0.0184478759765625, 0.06732177734375, 0.00466156005859375, 0.01096343994140625, 0.01290130615234375, 0.0005521774291992188, -0.005916595458984375, 0.025299072265625, 0.0257415771484375, -0.0034351348876953125, -0.0018014907836914062, -0.0362548828125, 0.04925537109375, 0.046539306640625, -0.005176544189453125, 0.0145111083984375, 0.01702880859375, -0.029266357421875, -0.0250091552734375, 0.003139495849609375, 0.006526947021484375, -0.0021190643310546875, 0.05157470703125, 0.0304107666015625, 0.0081787109375, -0.0242767333984375, -0.048065185546875, -0.033660888671875, -0.01458740234375, 0.0227508544921875, 0.022735595703125, -0.0665283203125, 0.0322265625, 0.03997802734375, -0.0088348388671875, 0.030914306640625, -0.034423828125, -0.0312042236328125, -0.00548553466796875, -0.0276031494140625, 0.00412750244140625, -0.06414794921875, -0.032196044921875, 0.08184814453125, -0.046722412109375, -0.0268096923828125, 0.043212890625, 0.016357421875, 0.01132965087890625, 0.03826904296875, 0.027618408203125, 0.0201263427734375, -0.024932861328125, -0.020172119140625, 0.03094482421875, 0.026611328125, 0.0233154296875, -0.057861328125, -0.00925445556640625, 0.01229095458984375, 0.0118865966796875, 0.00811004638671875, -0.03570556640625, 0.063720703125, 0.0022869110107421875, 0.060546875, -0.03302001953125, 0.08123779296875, -0.0268096923828125, 0.0107269287109375, -0.0267486572265625, 0.042755126953125, 0.00684356689453125, 0.01343536376953125, 0.0170745849609375, -0.0006399154663085938, 0.02496337890625, -0.0186004638671875, 0.037261962890625, -0.016876220703125, -0.005397796630859375, 0.0181427001953125 ]
40859730151e886f91be1142b2383646288afabf
Wordpress Stackexchange Q: WordPress it's cleaning a custom query_var to avoid sql injections? I am using get_query_var function to get a custom query_var. This query_var will be used later in to query arguments to retrieve posts with: $the_query = new WP_Query( $args ); My question is, is it safe if I use get_query_var such as is provided or do I need clean this variable to avoid sql injections? I've read this post, but it is not entirely clear and also it is old. A: In a perfect world, you don't need sanitize your querys because the WordPress ORM avoids sql injections going to the database, but is extremely recommended to clean your input data, particularly if is input data provided by a visitor. For example, you can use something like this: $name = sanitize_text_field( $_POST['name'] ); // WP_Query arguments $args = array ( 'name' => $name, ); // The Query $query = new WP_Query( $args ); There are a lot of filter functions that can sanitize: * *sanitize_email() *sanitize_file_name() *sanitize_html_class() *sanitize_key() *sanitize_meta() *sanitize_mime_type() *sanitize_option() *sanitize_sql_orderby() *sanitize_text_field() *sanitize_title() *sanitize_title_for_query() *sanitize_title_with_dashes() *sanitize_user() For more information read: https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data
Q: WordPress it's cleaning a custom query_var to avoid sql injections? I am using get_query_var function to get a custom query_var. This query_var will be used later in to query arguments to retrieve posts with: $the_query = new WP_Query( $args ); My question is, is it safe if I use get_query_var such as is provided or do I need clean this variable to avoid sql injections? I've read this post, but it is not entirely clear and also it is old. A: In a perfect world, you don't need sanitize your querys because the WordPress ORM avoids sql injections going to the database, but is extremely recommended to clean your input data, particularly if is input data provided by a visitor. For example, you can use something like this: $name = sanitize_text_field( $_POST['name'] ); // WP_Query arguments $args = array ( 'name' => $name, ); // The Query $query = new WP_Query( $args ); There are a lot of filter functions that can sanitize: * *sanitize_email() *sanitize_file_name() *sanitize_html_class() *sanitize_key() *sanitize_meta() *sanitize_mime_type() *sanitize_option() *sanitize_sql_orderby() *sanitize_text_field() *sanitize_title() *sanitize_title_for_query() *sanitize_title_with_dashes() *sanitize_user() For more information read: https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:445563", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145622" }
[ 0.0836181640625, 0.034423828125, 0.0032711029052734375, -0.09844970703125, 0.05029296875, -0.0164031982421875, 0.006267547607421875, -0.004974365234375, -0.0306854248046875, 0.061737060546875, 0.007389068603515625, -0.0037097930908203125, 0.0191192626953125, -0.0299835205078125, -0.0206298828125, -0.037384033203125, 0.00787353515625, -0.0181427001953125, -0.016845703125, -0.0225982666015625, 0.0124359130859375, -0.019287109375, 0.0227508544921875, -0.039581298828125, 0.00104522705078125, -0.03265380859375, 0.10455322265625, -0.009124755859375, 0.009063720703125, -0.0123291015625, 0.0163726806640625, -0.0244140625, 0.0007762908935546875, 0.041778564453125, -0.0203094482421875, 0.0394287109375, 0.050048828125, 0.0085296630859375, 0.035308837890625, 0.00992584228515625, 0.023956298828125, -0.0306243896484375, 0.007537841796875, 0.00774383544921875, -0.0160369873046875, -0.003826141357421875, 0.037689208984375, 0.005031585693359375, 0.0112152099609375, 0.001094818115234375, 0.00984954833984375, 0.0062408447265625, 0.042205810546875, -0.02362060546875, -0.01511383056640625, -0.0021209716796875, -0.0210113525390625, -0.047698974609375, -0.008453369140625, 0.0577392578125, 0.0310211181640625, 0.0138702392578125, -0.01491546630859375, -0.0098724365234375, 0.002620697021484375, 0.009918212890625, 0.01085662841796875, 0.00994873046875, -0.0443115234375, -0.000006973743438720703, 0.03497314453125, -0.0239715576171875, 0.00811004638671875, -0.01959228515625, -0.0026378631591796875, -0.0152587890625, -0.01788330078125, -0.03253173828125, 0.0309906005859375, 0.01158905029296875, -0.0157012939453125, -0.0374755859375, -0.06524658203125, 0.0205078125, -0.0020275115966796875, 0.033172607421875, -0.0118865966796875, -0.0124969482421875, 0.022613525390625, -0.021484375, 0.0015773773193359375, -0.035552978515625, 0.03302001953125, 0.0113983154296875, -0.01178741455078125, -0.032562255859375, 0.0135345458984375, 0.0384521484375, -0.0021820068359375, 0.022308349609375, 0.015411376953125, -0.040374755859375, 0.04052734375, -0.028594970703125, 0.00731658935546875, 0.0278778076171875, 0.016082763671875, 0.033416748046875, 0.02813720703125, 0.0193023681640625, 0.0035915374755859375, -0.0018033981323242188, -0.034454345703125, -0.03167724609375, -0.04046630859375, 0.060150146484375, -0.008270263671875, -0.04974365234375, 0.00609588623046875, -0.02606201171875, 0.005931854248046875, -0.006744384765625, -0.00930023193359375, -0.00948333740234375, 0.0004963874816894531, -0.04571533203125, -0.02935791015625, 0.0274505615234375, -0.0555419921875, 0.07080078125, -0.02252197265625, -0.01812744140625, 0.031524658203125, 0.0390625, -0.004680633544921875, -0.049163818359375, 0.01055908203125, -0.0254364013671875, 0.0171356201171875, 0.0022449493408203125, 0.00826263427734375, -0.0249481201171875, 0.01377105712890625, 0.011474609375, 0.0153961181640625, 0.0161285400390625, 0.0175018310546875, -0.0021209716796875, 0.0088958740234375, -0.0221405029296875, -0.0271148681640625, -0.0164031982421875, 0.04144287109375, -0.01256561279296875, -0.072265625, 0.0047149658203125, -0.043701171875, -0.002490997314453125, -0.02734375, -0.0189971923828125, 0.0034389495849609375, 0.0011167526245117188, 0.0239105224609375, 0.0195465087890625, 0.0052032470703125, -0.0213165283203125, -0.0283203125, -0.01385498046875, 0.0084228515625, 0.01427459716796875, 0.01274871826171875, 0.0030536651611328125, -0.0193023681640625, -0.0168914794921875, -0.003936767578125, -0.00621795654296875, -0.0258331298828125, 0.059539794921875, 0.0232086181640625, -0.028167724609375, -0.01253509521484375, -0.04754638671875, 0.06488037109375, -0.0243682861328125, -0.0411376953125, 0.0277862548828125, 0.0052947998046875, 0.042724609375, 0.0167694091796875, 0.0140228271484375, 0.05963134765625, 0.0172576904296875, -0.0537109375, 0.024200439453125, 0.01528167724609375, -0.032623291015625, 0.03253173828125, -0.03411865234375, 0.021881103515625, 0.006275177001953125, 0.01117706298828125, -0.009918212890625, -0.008453369140625, -0.02081298828125, -0.08465576171875, -0.01442718505859375, -0.0226593017578125, 0.033294677734375, -0.012542724609375, 0.04437255859375, 0.0303497314453125, 0.0085601806640625, -0.063232421875, 0.0604248046875, 0.00870513916015625, -0.0003612041473388672, 0.013458251953125, 0.050048828125, 0.0011949539184570312, 0.0171356201171875, 0.00004863739013671875, -0.0477294921875, 0.00013244152069091797, 0.025970458984375, 0.0217742919921875, -0.033721923828125, 0.016204833984375, -0.00667572021484375, 0.051483154296875, -0.006855010986328125, 0.056060791015625, 0.0051116943359375, 0.08184814453125, 0.065673828125, -0.023773193359375, -0.03271484375, -0.02728271484375, -0.0753173828125, -0.0147552490234375, 0.073486328125, 0.0323486328125, 0.0258636474609375, -0.0191192626953125, -0.0250701904296875, 0.018768310546875, -0.07586669921875, -0.002323150634765625, 0.0025768280029296875, 0.01288604736328125, 0.046539306640625, -0.008148193359375, -0.0031948089599609375, 0.0127410888671875, -0.0775146484375, -0.0025272369384765625, 0.031494140625, -0.0202484130859375, -0.01398468017578125, -0.00891876220703125, 0.023956298828125, -0.0144195556640625, -0.032958984375, 0.0186920166015625, -0.0269775390625, 0.01294708251953125, -0.011505126953125, 0.01169586181640625, 0.00638580322265625, 0.003398895263671875, -0.0154266357421875, 0.00843048095703125, -0.04693603515625, -0.006755828857421875, -0.01313018798828125, -0.0267791748046875, -0.0223388671875, -0.0200042724609375, 0.0247955322265625, 0.003742218017578125, -0.0204620361328125, 0.0026340484619140625, 0.0224151611328125, -0.004795074462890625, -0.0059814453125, -0.01129913330078125, -0.006282806396484375, 0.022125244140625, 0.033050537109375, 0.019866943359375, -0.005863189697265625, 0.0249786376953125, 0.0194549560546875, -0.029327392578125, 0.05816650390625, -0.0074615478515625, -0.03619384765625, 0.01531219482421875, -0.00044417381286621094, 0.0120697021484375, -0.01212310791015625, 0.03619384765625, 0.0660400390625, -0.00653839111328125, 0.0128326416015625, 0.0142974853515625, -0.017791748046875, 0.013214111328125, 0.01107025146484375, -0.00804901123046875, -0.0239105224609375, -0.0699462890625, -0.05096435546875, 0.01580810546875, 0.031951904296875, -0.0246429443359375, -0.046783447265625, -0.015716552734375, 0.0165557861328125, -0.068359375, -0.055328369140625, 0.0029201507568359375, -0.005641937255859375, -0.0194091796875, -0.0110015869140625, 0.008880615234375, 0.0234375, -0.042510986328125, -0.0117950439453125, 0.014068603515625, -0.01189422607421875, -0.07470703125, -0.02618408203125, -0.06011962890625, 0.03466796875, -0.007205963134765625, 0.006748199462890625, -0.0033817291259765625, 0.05487060546875, 0.01043701171875, -0.034881591796875, 0.01432037353515625, -0.0149688720703125, 0.00044536590576171875, 0.0204315185546875, -0.005069732666015625, -0.03143310546875, 0.0186004638671875, -0.0170135498046875, 0.01514434814453125, 0.0159759521484375, 0.004791259765625, 0.00042724609375, 0.03155517578125, 0.01024627685546875, 0.04327392578125, 0.02557373046875, -0.054168701171875, 0.023345947265625, 0.052703857421875, -0.03448486328125, 0.0029468536376953125, 0.006862640380859375, -0.006908416748046875, -0.0037441253662109375, -0.01175689697265625, -0.00620269775390625, -0.01324462890625, 0.0232391357421875, 0.0701904296875, 0.04058837890625, -0.005542755126953125, -0.00016760826110839844, 0.006313323974609375, 0.03680419921875, 0.07696533203125, -0.0226593017578125, 0.007244110107421875, -0.03509521484375, -0.0012226104736328125, 0.0034122467041015625, -0.0278472900390625, 0.0132598876953125, -0.018463134765625, 0.006710052490234375, -0.0107879638671875, 0.0487060546875, 0.019287109375, 0.049346923828125, -0.0271759033203125, -0.036285400390625, -0.0183868408203125, 0.07586669921875, 0.009063720703125, -0.007503509521484375, 0.002132415771484375, 0.0180511474609375, -0.07464599609375, -0.00862884521484375, -0.049652099609375, 0.0097198486328125, -0.0809326171875, -0.0245513916015625, -0.024017333984375, -0.05853271484375, 0.007648468017578125, -0.0438232421875, -0.03729248046875, -0.04315185546875, 0.019287109375, -0.017669677734375, 0.00991058349609375, 0.01422882080078125, -0.01666259765625, -0.010589599609375, -0.01690673828125, -0.019195556640625, -0.11993408203125, -0.0307769775390625, 0.01197052001953125, 0.0982666015625, 0.006679534912109375, -0.03521728515625, -0.0160369873046875, 0.0665283203125, 0.00008124113082885742, -0.0120391845703125, -0.0004818439483642578, 0.003520965576171875, -0.0145263671875, 0.0210113525390625, 0.0015230178833007812, -0.01210784912109375, 0.005710601806640625, -0.01019287109375, -0.0291595458984375, -0.051300048828125, -0.0294342041015625, -0.027923583984375, -0.0019683837890625, -0.0294189453125, -0.0232086181640625, -0.0153656005859375, -0.0020580291748046875, 0.00257110595703125, -0.0004565715789794922, -0.0138702392578125, -0.0014095306396484375, -0.0202484130859375, 0.09619140625, -0.017974853515625, -0.0036106109619140625, -0.0276641845703125, 0.08782958984375, 0.008270263671875, -0.038055419921875, -0.0098419189453125, -0.06585693359375, 0.016387939453125, 0.0030040740966796875, 0.0281982421875, -0.0018024444580078125, -0.024139404296875, 0.0288543701171875, -0.0009775161743164062, 0.00969696044921875, -0.04925537109375, 0.0592041015625, -0.0190582275390625, 0.0026798248291015625, 0.00815582275390625, -0.035858154296875, 0.03082275390625, 0.060333251953125, 0.0104217529296875, -0.0335693359375, 0.024658203125, 0.00002574920654296875, -0.02960205078125, 0.014892578125, 0.016845703125, -0.0229949951171875, 0.0201873779296875, -0.0283660888671875, 0.0106658935546875, -0.012908935546875, 0.007274627685546875, -0.0218505859375, -0.00962066650390625, 0.02728271484375, -0.007488250732421875, 0.02130126953125, -0.0386962890625, 0.036224365234375, 0.0040130615234375, 0.001552581787109375, -0.010528564453125, -0.0017290115356445312, 0.050079345703125, -0.0218963623046875, -0.019622802734375, -0.023406982421875, -0.00827789306640625, 0.0022983551025390625, 0.0362548828125, 0.0278167724609375, 0.017608642578125, 0.01378631591796875, 0.0179595947265625, -0.00888824462890625, -0.003604888916015625, 0.022491455078125, -0.008026123046875, 0.0198516845703125, -0.0009503364562988281, -0.0107879638671875, 0.005504608154296875, 0.04766845703125, -0.0284576416015625, 0.0268096923828125, -0.0160064697265625, -0.01274871826171875, -0.01403045654296875, 0.01329803466796875, 0.0220489501953125, -0.01107025146484375, -0.001201629638671875, -0.003864288330078125, 0.00995635986328125, -0.015655517578125, -0.031982421875, 0.00656890869140625, 0.0029163360595703125, -0.02392578125, 0.02001953125, 0.0213623046875, 0.0107421875, -0.0199432373046875, 0.0193023681640625, -0.006504058837890625, -0.0218963623046875, -0.04583740234375, -0.06866455078125, 0.007038116455078125, 0.007396697998046875, -0.007904052734375, 0.0201263427734375, -0.028961181640625, 0.039154052734375, -0.0032329559326171875, 0.038848876953125, -0.02703857421875, -0.044464111328125, 0.07501220703125, -0.0362548828125, -0.040802001953125, 0.0141754150390625, 0.06402587890625, -0.042724609375, -0.0250396728515625, 0.05059814453125, -0.0008578300476074219, 0.06402587890625, -0.07421875, -0.00553131103515625, 0.01198577880859375, 0.00632476806640625, 0.0219268798828125, 0.003421783447265625, 0.01102447509765625, -0.01418304443359375, -0.0546875, -0.019256591796875, -0.0016384124755859375, -0.01380157470703125, -0.01299285888671875, -0.0093994140625, -0.0175628662109375, 0.0462646484375, -0.0151519775390625, -0.0012197494506835938, -0.0081634521484375, -0.0284881591796875, -0.04156494140625, 0.040802001953125, -0.039337158203125, 0.0372314453125, -0.0007114410400390625, 0.01543426513671875, -0.0155029296875, -0.007640838623046875, 0.01113128662109375, 0.0088958740234375, -0.01849365234375, -0.01554107666015625, 0.0034809112548828125, -0.0057373046875, 0.03668212890625, 0.01904296875, 0.0380859375, -0.00018715858459472656, 0.07666015625, -0.0145111083984375, 0.007293701171875, 0.0004603862762451172, -0.037200927734375, -0.04364013671875, 0.0291290283203125, 0.037750244140625, -0.01190948486328125, -0.0038928985595703125, 0.0087432861328125, -0.0029430389404296875, -0.011688232421875, 0.005588531494140625, -0.0253448486328125, -0.00628662109375, -0.0186004638671875, 0.037994384765625, 0.0535888671875, -0.013702392578125, 0.021514892578125, 0.01551055908203125, -0.007305145263671875, -0.0019273757934570312, -0.0266265869140625, -0.01383209228515625, 0.026092529296875, 0.0247802734375, -0.0214080810546875, 0.0047760009765625, 0.01079559326171875, 0.001903533935546875, 0.0212860107421875, 0.0860595703125, 0.10546875, -0.0860595703125, 0.00572967529296875, 0.036102294921875, -0.0255889892578125, -0.01386260986328125, -0.012054443359375, 0.021331787109375, 0.0004291534423828125, 0.0118255615234375, -0.0213165283203125, -0.0201416015625, 0.0078277587890625, -0.027740478515625, 0.002841949462890625, -0.0218353271484375, 0.06781005859375, -0.0027370452880859375, -0.004856109619140625, -0.0150299072265625, -0.00408935546875, -0.022674560546875, 0.0037841796875, 0.0214080810546875, -0.0204010009765625, -0.015899658203125, -0.058624267578125, -0.0283966064453125, -0.0177154541015625, -0.02752685546875, -0.0416259765625, -0.002223968505859375, 0.051910400390625, 0.041473388671875, -0.004848480224609375, -0.051177978515625, 0.0189361572265625, 0.0008249282836914062, -0.01146697998046875, -0.041748046875, -0.01256561279296875, 0.02960205078125, -0.041717529296875, 0.0193634033203125, -0.0171966552734375, -0.00811004638671875, -0.011383056640625, -0.0029449462890625, 0.050445556640625, 0.0181884765625, -0.023529052734375, 0.034393310546875, 0.008514404296875, -0.0181427001953125, -0.0251617431640625, 0.01158905029296875, -0.06591796875, -0.049285888671875, -0.0105743408203125, -0.05194091796875, -0.0193328857421875, -0.018768310546875, -0.0849609375, 0.077392578125, 0.0185089111328125, 0.062103271484375, 0.0186614990234375, -0.0009217262268066406, -0.037261962890625, -0.04010009765625, -0.004291534423828125, 0.08453369140625, 0.01316070556640625, 0.037109375, -0.04815673828125, -0.0201568603515625, 0.018402099609375, 0.0509033203125, 0.026763916015625, 0.0002237558364868164, -0.00875091552734375, -0.021331787109375, 0.034423828125, 0.039459228515625, -0.00042247772216796875, 0.0019121170043945312, 0.0233154296875, 0.07916259765625, 0.0782470703125, -0.04119873046875, 0.03265380859375, -0.01806640625, 0.004207611083984375, 0.04571533203125, 0.0039005279541015625, 0.0032558441162109375, -0.0128936767578125, -0.01329803466796875, -0.0433349609375, 0.006801605224609375, 0.0217132568359375, 0.00005167722702026367, 0.004161834716796875, 0.0245819091796875, 0.02435302734375, -0.0675048828125, -0.0284881591796875, -0.0282440185546875, 0.03948974609375, 0.00194549560546875, 0.0382080078125, 0.07952880859375, 0.021240234375, 0.0799560546875, 0.004055023193359375, 0.027191162109375, -0.01776123046875, 0.0240631103515625, 0.0614013671875, 0.001338958740234375, 0.01415252685546875, -0.059234619140625, -0.034637451171875, 0.05718994140625, 0.08831787109375, -0.0435791015625, -0.01374053955078125, 0.00020503997802734375, 0.006023406982421875, -0.004604339599609375, -0.0170135498046875, 0.0016613006591796875, 0.051422119140625, 0.06072998046875, -0.04547119140625, 0.0267181396484375, 0.046844482421875, -0.0012035369873046875, -0.0167694091796875, 0.013031005859375, -0.021697998046875, 0.033905029296875, -0.025238037109375, -0.02166748046875, 0.0141143798828125, 0.04034423828125, 0.0311737060546875, 0.0021610260009765625, 0.0195159912109375, -0.021514892578125, -0.0257110595703125, 0.02801513671875, 0.00563812255859375, 0.029205322265625, -0.0270538330078125, -0.01446533203125, 0.0253143310546875, 0.0259857177734375, 0.032684326171875, 0.01318359375, 0.0406494140625, 0.004360198974609375, -0.03094482421875, 0.0091552734375, 0.0200042724609375, -0.0231475830078125, 0.001041412353515625, -0.011260986328125, 0.00969696044921875, -0.0144195556640625, -0.01094818115234375, -0.0079498291015625, 0.04638671875, -0.0221099853515625, 0.0270233154296875, 0.01190948486328125, 0.005008697509765625, -0.013702392578125, 0.01497650146484375, -0.019927978515625, 0.0264434814453125, 0.0281524658203125, -0.0291290283203125, -0.0099334716796875, -0.00865936279296875, -0.0195770263671875, 0.0132293701171875, 0.0222625732421875, 0.004791259765625, 0.0030765533447265625, 0.046295166015625, -0.037933349609375, -0.006748199462890625, 0.0460205078125, 0.0133209228515625, -0.04254150390625, 0.00559234619140625, -0.01305389404296875, -0.03411865234375, -0.00919342041015625, 0.030975341796875, 0.0221099853515625, -0.034637451171875, 0.0190277099609375, 0.0004639625549316406, -0.0015506744384765625, -0.024566650390625, 0.0269622802734375, -0.06256103515625, -0.004459381103515625, 0.0296783447265625, -0.0235443115234375, -0.019287109375, 0.003833770751953125, -0.0064697265625, 0.001186370849609375, 0.038726806640625, -0.044525146484375, 0.00780487060546875, -0.01531219482421875, 0.0202178955078125, -0.031951904296875, 0.0229339599609375, -0.0194549560546875, -0.01177978515625, -0.0247344970703125, 0.0020427703857421875, 0.041595458984375, 0.050628662109375, -0.0189361572265625, 0.03179931640625, -0.0031280517578125, 0.00600433349609375, 0.0311737060546875, -0.043060302734375, 0.061248779296875, 0.04248046875, -0.04608154296875, 0.0283355712890625, -0.011627197265625, -0.0257720947265625, 0.0223541259765625, 0.01751708984375, -0.035247802734375, 0.006916046142578125, -0.024322509765625, -0.060577392578125, -0.0014219284057617188, 0.041412353515625, 0.06536865234375, 0.0149993896484375, -0.046417236328125, -0.030029296875, -0.0657958984375, -0.0235443115234375, -0.016815185546875, -0.0028705596923828125, -0.0394287109375, 0.01004791259765625, -0.024658203125, -0.046356201171875, -0.0306243896484375, -0.0007314682006835938, 0.01428985595703125, -0.008941650390625, -0.03643798828125, 0.0298309326171875, -0.04327392578125, 0.00800323486328125, -0.0189971923828125, 0.002712249755859375, -0.020477294921875, -0.0151519775390625, -0.025543212890625, -0.039947509765625, -0.038116455078125, 0.052459716796875, -0.016448974609375, 0.007320404052734375, 0.01560211181640625, -0.00592803955078125, -0.0153656005859375, 0.0355224609375, 0.016082763671875, 0.056060791015625, -0.0156707763671875, -0.004886627197265625, 0.033294677734375, 0.0203094482421875, -0.057952880859375, -0.09454345703125, 0.00525665283203125, -0.06573486328125, 0.04736328125, 0.003284454345703125, 0.0020904541015625, 0.019989013671875, -0.02545166015625, -0.07904052734375, 0.06866455078125, -0.01690673828125, -0.0282440185546875, 0.0007977485656738281, 0.0233917236328125, 0.006999969482421875, -0.0116729736328125, 0.006744384765625, -0.0219268798828125, -0.022613525390625, -0.0246429443359375, 0.01236724853515625, -0.0003216266632080078, 0.035003662109375, 0.00914764404296875, -0.07342529296875, -0.0029582977294921875, -0.024932861328125, -0.00612640380859375, -0.0207977294921875, 0.008148193359375, 0.02105712890625, 0.036834716796875, -0.0010557174682617188, 0.03631591796875, 0.01189422607421875, -0.021575927734375, -0.0292205810546875, 0.0196990966796875, -0.03466796875, -0.000057697296142578125, 0.06890869140625, 0.0887451171875, 0.022003173828125, -0.0452880859375, -0.04681396484375, -0.03424072265625, 0.058502197265625, -0.0200653076171875, -0.0091094970703125, -0.06072998046875, -0.0163116455078125, 0.0219879150390625, -0.0021572113037109375, 0.0008544921875, 0.0200653076171875, 0.00420379638671875, -0.0159454345703125, 0.00882720947265625, -0.028289794921875, -0.0016183853149414062, -0.059661865234375, 0.0709228515625, -0.05328369140625, -0.0484619140625, 0.019439697265625, 0.05755615234375, -0.01076507568359375, -0.01207733154296875, 0.0006237030029296875, 0.006336212158203125, 0.00841522216796875, -0.002170562744140625, 0.0119171142578125, 0.01739501953125, -0.0027828216552734375, -0.0113525390625, -0.0214691162109375, 0.0223846435546875, 0.0002028942108154297, 0.0266571044921875, -0.0081787109375, 0.04022216796875, 0.033294677734375, 0.023895263671875, -0.0186920166015625, -0.0010766983032226562, 0.007183074951171875, 0.018402099609375, 0.04022216796875, -0.0229644775390625, 0.08416748046875, -0.048004150390625, -0.0013637542724609375, -0.0305633544921875, 0.011871337890625, -0.04498291015625, 0.016082763671875, -0.00557708740234375, -0.00969696044921875, 0.028961181640625 ]
04fdfadeb06aa3b5d249b6fabace0d53717918f9
Wordpress Stackexchange Q: How are terms connected with posts in database? In a multi-site environment, I have a special need to get post terms (on a custom taxonomy) without the expensive operation of "switching blogs". I thought I might write my own query to get terms for a given post on a given blog. I'm looking through the three tables: wp_3_terms wp_3_term_relationships wp_3_term_taxonomy Yet I cannot see where there is a connection to post_id in any of these. So the question: How do terms link with a given post in the database? If I can know that, I can do the rest. A: The posts are related to taxonomies (taxonomy/tag) in the wp_3_term_relationships table, where the object_id column is the post's id, and the term_taxonomy_id is the taxonomy/tag id. Depending on what you want to accomplish, the solution might be to create the same taxonomies at each blog. This way the tax_query should work as normal.
Q: How are terms connected with posts in database? In a multi-site environment, I have a special need to get post terms (on a custom taxonomy) without the expensive operation of "switching blogs". I thought I might write my own query to get terms for a given post on a given blog. I'm looking through the three tables: wp_3_terms wp_3_term_relationships wp_3_term_taxonomy Yet I cannot see where there is a connection to post_id in any of these. So the question: How do terms link with a given post in the database? If I can know that, I can do the rest. A: The posts are related to taxonomies (taxonomy/tag) in the wp_3_term_relationships table, where the object_id column is the post's id, and the term_taxonomy_id is the taxonomy/tag id. Depending on what you want to accomplish, the solution might be to create the same taxonomies at each blog. This way the tax_query should work as normal.
wordpress
{ "language": "en", "length": 154, "provenance": "stackexchange_00019.jsonl.gz:445574", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145655" }
[ 0.060333251953125, 0.001537322998046875, 0.01209259033203125, -0.0189056396484375, 0.0243072509765625, -0.032806396484375, 0.051055908203125, -0.016387939453125, 0.03033447265625, 0.0228424072265625, -0.05609130859375, -0.006587982177734375, -0.009246826171875, -0.007045745849609375, -0.0298614501953125, -0.04083251953125, 0.032623291015625, -0.01062774658203125, 0.043243408203125, 0.0178070068359375, 0.01183319091796875, 0.04266357421875, 0.0300445556640625, -0.0294342041015625, 0.04730224609375, 0.0014619827270507812, 0.05303955078125, -0.0262451171875, 0.0584716796875, 0.007549285888671875, 0.044952392578125, -0.070068359375, 0.04071044921875, 0.0006823539733886719, -0.04315185546875, -0.060699462890625, -0.0108642578125, -0.01031494140625, -0.02960205078125, 0.03662109375, 0.0323486328125, -0.0189208984375, 0.0191802978515625, 0.0406494140625, -0.01236724853515625, -0.040924072265625, 0.0296783447265625, -0.0287322998046875, 0.0155181884765625, -0.01337432861328125, 0.0197601318359375, 0.019866943359375, 0.032196044921875, -0.01552581787109375, -0.0175933837890625, 0.0015964508056640625, 0.020965576171875, -0.058929443359375, 0.0229644775390625, -0.0203094482421875, -0.009979248046875, -0.02801513671875, 0.038330078125, 0.002330780029296875, -0.0193939208984375, 0.021728515625, 0.05767822265625, 0.010040283203125, -0.03167724609375, -0.04559326171875, -0.005878448486328125, -0.0183258056640625, 0.006137847900390625, 0.007076263427734375, 0.0015621185302734375, -0.052520751953125, 0.041290283203125, -0.015655517578125, -0.00778961181640625, 0.03228759765625, -0.0005688667297363281, 0.004932403564453125, -0.01065826416015625, 0.023712158203125, -0.0255126953125, 0.01416015625, -0.019927978515625, -0.004878997802734375, -0.0261077880859375, -0.051483154296875, -0.01554107666015625, -0.036285400390625, -0.07647705078125, -0.005435943603515625, -0.005401611328125, -0.042022705078125, 0.0250244140625, 0.059356689453125, -0.0231475830078125, 0.0105743408203125, -0.034515380859375, -0.025299072265625, 0.007404327392578125, -0.032440185546875, 0.037994384765625, 0.046234130859375, -0.0033473968505859375, 0.01544189453125, 0.0643310546875, 0.0020389556884765625, 0.01131439208984375, 0.058441162109375, -0.004383087158203125, 0.0131072998046875, -0.042449951171875, -0.022491455078125, -0.031982421875, -0.00487518310546875, -0.0190887451171875, -0.0170440673828125, -0.0203094482421875, 0.00909423828125, -0.03790283203125, 0.0175018310546875, 0.01554107666015625, 0.004199981689453125, 0.00623321533203125, 0.0142822265625, -0.04119873046875, 0.029510498046875, -0.0226287841796875, 0.0274810791015625, 0.0611572265625, 0.01213836669921875, -0.020904541015625, -0.017242431640625, 0.01776123046875, 0.0008096694946289062, -0.0210113525390625, 0.004486083984375, 0.0338134765625, -0.0276031494140625, -0.0214385986328125, -0.0024623870849609375, 0.01496124267578125, 0.0294952392578125, 0.0291748046875, 0.004352569580078125, -0.0140228271484375, -0.02593994140625, -0.005649566650390625, 0.0155487060546875, 0.0408935546875, 0.0042877197265625, -0.033294677734375, -0.0382080078125, 0.025146484375, -0.0389404296875, -0.0199432373046875, -0.07861328125, 0.0285797119140625, 0.00415802001953125, 0.022003173828125, -0.0087890625, -0.0251312255859375, -0.01445770263671875, -0.054168701171875, -0.02423095703125, 0.009674072265625, -0.0136566162109375, 0.01348114013671875, -0.01580810546875, -0.0174713134765625, -0.014434814453125, -0.006061553955078125, 0.0019025802612304688, -0.036712646484375, -0.0038852691650390625, 0.0263671875, 0.030914306640625, 0.0002815723419189453, -0.023651123046875, 0.00942230224609375, 0.0124969482421875, -0.0462646484375, 0.035308837890625, 0.0032978057861328125, 0.055206298828125, 0.0005822181701660156, 0.017730712890625, 0.024261474609375, 0.0194854736328125, -0.04486083984375, 0.020660400390625, 0.00415802001953125, 0.005344390869140625, -0.040313720703125, 0.01084136962890625, -0.01068115234375, -0.0138397216796875, -0.026702880859375, 0.03411865234375, -0.0152740478515625, 0.0310821533203125, -0.0247650146484375, 0.0139312744140625, -0.0081024169921875, 0.034759521484375, -0.027099609375, -0.0022373199462890625, 0.036285400390625, 0.0089569091796875, -0.028472900390625, -0.0213623046875, -0.0041046142578125, 0.030517578125, -0.0197601318359375, -0.0166473388671875, 0.0024890899658203125, -0.0167083740234375, 0.00014698505401611328, -0.0206756591796875, -0.0250396728515625, 0.0126190185546875, -0.0143585205078125, 0.006687164306640625, -0.024200439453125, 0.00876617431640625, -0.022979736328125, 0.0382080078125, -0.034637451171875, -0.0194549560546875, 0.018890380859375, 0.044036865234375, 0.0229339599609375, -0.0008034706115722656, 0.058380126953125, -0.052581787109375, 0.02166748046875, 0.01505279541015625, 0.028472900390625, 0.00514984130859375, -0.022857666015625, -0.0269317626953125, -0.0015268325805664062, -0.070556640625, -0.0099029541015625, -0.009002685546875, 0.041046142578125, 0.0926513671875, -0.01397705078125, 0.0186920166015625, 0.011810302734375, 0.00286865234375, -0.003490447998046875, 0.047515869140625, -0.024749755859375, -0.0155487060546875, -0.00994873046875, 0.011688232421875, 0.0009455680847167969, -0.044952392578125, -0.022674560546875, -0.023345947265625, -0.00908660888671875, 0.02490234375, 0.0229034423828125, 0.0268096923828125, -0.018798828125, -0.00638580322265625, 0.01537322998046875, 0.00391387939453125, -0.0034351348876953125, -0.004119873046875, 0.04034423828125, -0.01715087890625, -0.0235443115234375, -0.0086212158203125, -0.0017309188842773438, -0.004505157470703125, 0.0042877197265625, 0.057159423828125, -0.00994873046875, -0.01464080810546875, -0.031097412109375, -0.0579833984375, -0.00211334228515625, 0.013214111328125, -0.0748291015625, -0.04083251953125, -0.00815582275390625, 0.054656982421875, -0.017822265625, 0.0161285400390625, 0.00022482872009277344, 0.0211944580078125, -0.035797119140625, -0.05523681640625, 0.044769287109375, -0.051910400390625, 0.0111846923828125, 0.06500244140625, 0.0120697021484375, 0.0096282958984375, 0.0010585784912109375, 0.01678466796875, 0.01256561279296875, -0.005489349365234375, -0.01509857177734375, 0.0029754638671875, -0.055328369140625, 0.00040602684020996094, 0.01947021484375, 0.047637939453125, -0.029083251953125, -0.045928955078125, -0.0179595947265625, 0.006473541259765625, -0.073974609375, -0.05126953125, 0.010528564453125, -0.0180816650390625, -0.006435394287109375, -0.03338623046875, -0.0000457763671875, -0.01100921630859375, -0.049346923828125, -0.011993408203125, 0.02490234375, -0.03460693359375, -0.096435546875, -0.06378173828125, -0.10406494140625, -0.00933837890625, -0.010772705078125, 0.014739990234375, 0.01032257080078125, 0.039642333984375, 0.006427764892578125, -0.037628173828125, 0.0188751220703125, 0.0015726089477539062, -0.01490020751953125, 0.004421234130859375, 0.01074981689453125, -0.0158538818359375, 0.004795074462890625, 0.00626373291015625, -0.025390625, 0.0157470703125, -0.0158538818359375, -0.01067352294921875, 0.0274810791015625, 0.028594970703125, 0.0531005859375, -0.0379638671875, -0.052520751953125, 0.07391357421875, 0.0308837890625, -0.0030574798583984375, -0.00623321533203125, -0.025146484375, -0.0284271240234375, -0.0007557868957519531, -0.00543212890625, 0.00698089599609375, -0.025390625, 0.0196990966796875, 0.0075225830078125, -0.0199127197265625, -0.039306640625, -0.01904296875, 0.0239715576171875, 0.0179901123046875, 0.04376220703125, 0.021881103515625, -0.014923095703125, -0.027801513671875, 0.01568603515625, -0.0175018310546875, 0.011871337890625, -0.042449951171875, 0.040130615234375, -0.0654296875, -0.055419921875, 0.03955078125, -0.033050537109375, 0.0230560302734375, -0.058380126953125, -0.033477783203125, -0.0267333984375, 0.0986328125, -0.0295867919921875, -0.011810302734375, 0.000017702579498291016, -0.0007524490356445312, 0.006916046142578125, -0.0232391357421875, -0.024200439453125, -0.02886962890625, -0.016845703125, -0.01983642578125, -0.015533447265625, -0.00492095947265625, -0.0479736328125, 0.06829833984375, -0.0333251953125, -0.0052947998046875, 0.043609619140625, -0.03033447265625, 0.0139007568359375, 0.0311431884765625, -0.0078125, 0.01384735107421875, -0.0312347412109375, -0.01013946533203125, -0.039398193359375, -0.01457977294921875, 0.01282501220703125, 0.01279449462890625, 0.01302337646484375, -0.05145263671875, 0.024505615234375, 0.04150390625, 0.029022216796875, 0.006748199462890625, -0.00030541419982910156, -0.00603485107421875, -0.0184326171875, -0.01497650146484375, -0.005619049072265625, -0.0281982421875, -0.0265045166015625, -0.033416748046875, 0.006916046142578125, 0.041259765625, -0.0251922607421875, 0.01369476318359375, -0.04302978515625, 0.0172576904296875, -0.0482177734375, -0.0104827880859375, -0.0175628662109375, -0.004917144775390625, -0.03521728515625, -0.00420379638671875, -0.00040340423583984375, -0.03814697265625, 0.0306243896484375, 0.0247039794921875, -0.01552581787109375, 0.01111602783203125, 0.05145263671875, 0.0034160614013671875, -0.0298004150390625, -0.07421875, 0.0262298583984375, 0.0323486328125, -0.0143280029296875, 0.050750732421875, 0.040557861328125, -0.01226043701171875, 0.0229644775390625, 0.00446319580078125, 0.00888824462890625, -0.005062103271484375, 0.019073486328125, 0.009246826171875, -0.01861572265625, 0.028106689453125, 0.002941131591796875, -0.0013027191162109375, 0.032501220703125, -0.02716064453125, -0.052093505859375, -0.0241546630859375, 0.08404541015625, -0.0287322998046875, 0.0682373046875, -0.05645751953125, -0.0186767578125, 0.0210418701171875, -0.0174407958984375, 0.01166534423828125, 0.0162353515625, 0.00482177734375, -0.0207977294921875, -0.03302001953125, -0.0048980712890625, 0.0026493072509765625, 0.012451171875, 0.007328033447265625, 0.009765625, 0.010589599609375, -0.0191192626953125, -0.0206298828125, -0.019744873046875, 0.0787353515625, -0.026702880859375, -0.07568359375, 0.025909423828125, -0.021759033203125, 0.0161285400390625, 0.0477294921875, -0.009490966796875, 0.040191650390625, 0.042755126953125, -0.0259552001953125, -0.007328033447265625, -0.0219268798828125, 0.01092529296875, -0.042816162109375, -0.018951416015625, -0.0184173583984375, 0.0049896240234375, 0.0163726806640625, 0.053680419921875, -0.043914794921875, 0.04791259765625, -0.017486572265625, -0.00015366077423095703, -0.0143585205078125, 0.042633056640625, 0.019683837890625, -0.0194091796875, -0.01148223876953125, 0.036285400390625, 0.01522064208984375, -0.04620361328125, 0.00479888916015625, -0.0157623291015625, 0.047760009765625, -0.0018291473388671875, -0.031890869140625, 0.03143310546875, -0.037689208984375, -0.0171356201171875, 0.01433563232421875, 0.02197265625, -0.00662994384765625, -0.0205841064453125, 0.00011581182479858398, 0.0262298583984375, 0.0223846435546875, -0.00911712646484375, 0.0205535888671875, -0.043609619140625, 0.0372314453125, -0.05816650390625, 0.043670654296875, -0.025482177734375, -0.027130126953125, -0.031951904296875, -0.0043792724609375, 0.007343292236328125, 0.009124755859375, -0.0123748779296875, -0.005664825439453125, -0.035430908203125, 0.02215576171875, -0.01001739501953125, 0.031982421875, -0.019775390625, -0.025238037109375, -0.0026073455810546875, -0.007251739501953125, 0.071044921875, 0.0304107666015625, -0.04632568359375, 0.0179901123046875, -0.03875732421875, 0.00215911865234375, -0.0018625259399414062, -0.038360595703125, -0.0372314453125, -0.014739990234375, 0.005344390869140625, 0.015960693359375, 0.00908660888671875, -0.0083770751953125, 0.007537841796875, -0.0167694091796875, -0.00901031494140625, -0.01416015625, 0.016632080078125, 0.035858154296875, -0.0284881591796875, 0.0902099609375, 0.00933074951171875, -0.007732391357421875, -0.06683349609375, -0.030487060546875, -0.0233306884765625, -0.1322021484375, -0.02215576171875, 0.036865234375, -0.04534912109375, 0.058990478515625, -0.01641845703125, 0.01129913330078125, 0.0254058837890625, -0.021820068359375, 0.0115203857421875, -0.005146026611328125, -0.007076263427734375, -0.03631591796875, -0.0193634033203125, 0.05279541015625, -0.025360107421875, 0.0328369140625, -0.01507568359375, 0.0173492431640625, -0.01435089111328125, -0.036529541015625, -0.016326904296875, 0.04193115234375, 0.0104827880859375, -0.003810882568359375, 0.0116424560546875, 0.02557373046875, 0.0231170654296875, -0.0021190643310546875, 0.019256591796875, -0.01507568359375, 0.0211944580078125, -0.0167694091796875, -0.0286407470703125, 0.007904052734375, -0.011383056640625, -0.0298309326171875, -0.0180206298828125, -0.03485107421875, -0.0169830322265625, -0.0135498046875, -0.0008568763732910156, -0.0097808837890625, 0.0025501251220703125, 0.00809478759765625, -0.0184173583984375, -0.019561767578125, 0.036102294921875, -0.032745361328125, -0.0251922607421875, -0.04071044921875, 0.01490020751953125, -0.0237884521484375, -0.01055908203125, 0.0307464599609375, -0.005096435546875, -0.00569915771484375, 0.0251312255859375, 0.001781463623046875, 0.00687408447265625, -0.0285797119140625, -0.0029125213623046875, -0.016998291015625, -0.0175628662109375, -0.024200439453125, 0.003849029541015625, -0.0251007080078125, -0.060516357421875, 0.0185699462890625, -0.039154052734375, 0.01776123046875, -0.042510986328125, 0.0057525634765625, 0.00762176513671875, 0.037200927734375, -0.0181121826171875, -0.01904296875, 0.01910400390625, -0.025054931640625, -0.00691986083984375, 0.016143798828125, 0.0273284912109375, 0.01079559326171875, -0.026885986328125, 0.0196685791015625, -0.04290771484375, -0.00830841064453125, -0.0216064453125, -0.035980224609375, 0.0487060546875, -0.043670654296875, 0.0098876953125, 0.0252838134765625, 0.062164306640625, 0.006496429443359375, -0.007183074951171875, -0.024810791015625, -0.054351806640625, -0.034698486328125, -0.023651123046875, -0.04620361328125, 0.0118255615234375, -0.0256805419921875, -0.06475830078125, 0.08740234375, 0.006908416748046875, 0.0022716522216796875, 0.005817413330078125, 0.041229248046875, -0.0242919921875, 0.022247314453125, -0.051544189453125, 0.037750244140625, 0.0035686492919921875, 0.036895751953125, -0.05975341796875, -0.00679779052734375, -0.00826263427734375, 0.039794921875, 0.06927490234375, 0.01091766357421875, -0.021636962890625, -0.04864501953125, 0.02703857421875, 0.0543212890625, 0.005565643310546875, 0.00948333740234375, 0.03173828125, 0.03790283203125, 0.056488037109375, -0.011016845703125, 0.0411376953125, 0.0173492431640625, 0.0022449493408203125, 0.0618896484375, 0.0079498291015625, 0.01910400390625, 0.00055694580078125, -0.0098114013671875, -0.01091766357421875, 0.0003669261932373047, 0.0249176025390625, -0.0555419921875, 0.01885986328125, -0.0012273788452148438, 0.01457977294921875, -0.0660400390625, 0.012176513671875, -0.025115966796875, 0.038177490234375, -0.01114654541015625, 0.02874755859375, 0.017120361328125, 0.02056884765625, 0.06988525390625, -0.03753662109375, 0.0169525146484375, 0.0079803466796875, -0.03277587890625, 0.0782470703125, 0.0094451904296875, 0.0105743408203125, -0.089111328125, -0.0225982666015625, 0.038482666015625, 0.08880615234375, -0.052734375, -0.0265960693359375, 0.0211029052734375, 0.01345062255859375, -0.01480865478515625, 0.01446533203125, 0.00910186767578125, 0.036651611328125, 0.052032470703125, -0.0555419921875, 0.0113677978515625, 0.0306549072265625, 0.0094451904296875, -0.0121002197265625, -0.0007467269897460938, -0.02410888671875, 0.0007452964782714844, -0.04107666015625, 0.0137176513671875, 0.0218658447265625, 0.0323486328125, -0.00658416748046875, 0.058197021484375, 0.0010461807250976562, -0.0040435791015625, 0.0134735107421875, 0.017303466796875, 0.00782012939453125, -0.018890380859375, -0.0019016265869140625, -0.057281494140625, 0.0281829833984375, 0.019134521484375, 0.018035888671875, 0.031707763671875, 0.0343017578125, 0.0234527587890625, -0.00814056396484375, -0.0025615692138671875, 0.03118896484375, -0.01922607421875, 0.01015472412109375, -0.0153656005859375, 0.01136016845703125, 0.0391845703125, -0.006626129150390625, 0.00033354759216308594, 0.01544189453125, 0.0482177734375, -0.035400390625, 0.0675048828125, -0.01021575927734375, 0.00567626953125, 0.03485107421875, -0.01641845703125, 0.036865234375, 0.0018911361694335938, -0.0638427734375, -0.02606201171875, -0.0040435791015625, -0.032440185546875, -0.0034313201904296875, 0.03863525390625, -0.005672454833984375, -0.0016546249389648438, 0.004718780517578125, -0.0361328125, 0.01219940185546875, 0.02911376953125, 0.0193634033203125, 0.0211029052734375, 0.0064544677734375, -0.003986358642578125, -0.0198974609375, 0.007904052734375, 0.022735595703125, -0.007694244384765625, -0.0103912353515625, 0.01953125, 0.0072784423828125, 0.0012941360473632812, -0.0217437744140625, 0.0657958984375, -0.0699462890625, -0.0245208740234375, 0.01320648193359375, -0.0194091796875, 0.01145172119140625, 0.0085296630859375, -0.01001739501953125, 0.0164642333984375, 0.05352783203125, -0.032470703125, -0.0009407997131347656, -0.00811767578125, 0.007274627685546875, -0.0183868408203125, 0.04058837890625, -0.016326904296875, 0.0279693603515625, -0.0249481201171875, -0.0728759765625, 0.07794189453125, 0.023193359375, 0.026336669921875, 0.0311431884765625, 0.03155517578125, -0.00574493408203125, 0.0242156982421875, -0.0227508544921875, 0.047088623046875, 0.0286712646484375, 0.0032253265380859375, -0.03955078125, 0.02569580078125, -0.003753662109375, 0.0169677734375, 0.00909423828125, 0.046295166015625, 0.043243408203125, -0.05322265625, 0.04254150390625, 0.0504150390625, 0.0809326171875, 0.02001953125, 0.0297698974609375, 0.01171875, -0.00957489013671875, 0.001979827880859375, -0.007114410400390625, -0.044525146484375, -0.033935546875, -0.0076446533203125, 0.0187835693359375, -0.022735595703125, -0.045013427734375, -0.07611083984375, -0.030853271484375, 0.053863525390625, 0.0106353759765625, -0.0214996337890625, 0.00001710653305053711, -0.0304412841796875, -0.01184844970703125, 0.036529541015625, -0.033935546875, 0.020599365234375, 0.053863525390625, -0.017822265625, 0.00881195068359375, -0.0226593017578125, -0.038238525390625, -0.018035888671875, 0.052947998046875, 0.01898193359375, -0.06158447265625, 0.025543212890625, 0.07379150390625, 0.0736083984375, 0.1107177734375, 0.057647705078125, -0.015167236328125, 0.0108795166015625, 0.00403594970703125, -0.0264892578125, -0.056488037109375, 0.01277923583984375, -0.050994873046875, -0.01529693603515625, -0.01303863525390625, 0.0020236968994140625, 0.0078582763671875, -0.03265380859375, -0.06475830078125, 0.0496826171875, -0.0156402587890625, -0.03411865234375, -0.097900390625, -0.032012939453125, 0.01238250732421875, -0.0066070556640625, -0.03253173828125, -0.0245513916015625, -0.064208984375, 0.0718994140625, 0.008087158203125, 0.01096343994140625, 0.0269927978515625, -0.01322174072265625, -0.033721923828125, 0.00920867919921875, -0.007160186767578125, -0.00464630126953125, 0.037017822265625, -0.0236968994140625, 0.0252532958984375, 0.04534912109375, -0.043792724609375, -0.036468505859375, -0.043487548828125, -0.011871337890625, 0.00809478759765625, -0.058441162109375, -0.019561767578125, -0.041412353515625, 0.04351806640625, 0.01045989990234375, 0.0107269287109375, -0.021087646484375, -0.0006399154663085938, -0.0006957054138183594, -0.048309326171875, 0.009918212890625, 0.0305633544921875, -0.055206298828125, 0.00356292724609375, 0.02935791015625, -0.021820068359375, -0.0112762451171875, -0.00018537044525146484, -0.038238525390625, 0.00022399425506591797, -0.0176849365234375, -0.0210418701171875, -0.01088714599609375, 0.0216522216796875, -0.02679443359375, -0.0075836181640625, -0.035308837890625, -0.0276031494140625, 0.00975799560546875, -0.058013916015625, -0.0229034423828125, -0.0008292198181152344, -0.0264739990234375, 0.01226043701171875, 0.02606201171875, 0.0094757080078125, -0.02154541015625, 0.0016736984252929688, -0.0107421875, -0.0035724639892578125, 0.030029296875, -0.006221771240234375, 0.021453857421875, 0.0034198760986328125, 0.032257080078125, -0.00959014892578125, 0.07720947265625, 0.0223388671875, 0.0135040283203125, -0.012420654296875, 0.0675048828125, -0.026336669921875, -0.038360595703125, -0.0287933349609375, -0.01013946533203125, 0.00287628173828125, -0.00765228271484375, -0.0020084381103515625, -0.029815673828125, 0.02471923828125, 0.0216064453125, -0.003551483154296875, 0.00945281982421875 ]
b4144159beb70dc1b4da7453891562177e8ca6d8
Wordpress Stackexchange Q: Call to undefined function get_current_screen() on my localhost I'm using Wordpress 3.9.1 and I get the Fatal error: Call to undefined function get_current_screen() if I put the following in my funcitons.php or in any file of my theme: $screen = get_current_screen(); echo $screen; Initially when I got the error, I was working on a theme that I'm creating. However, I tried this with few other themes including TwentyFourteen, and I still got the same error. I even deleted my Wordpress database, created a fresh one and re-installed Wordpress, but still it didn't help. I checked the get_current_screen() function by going to to wp-admin/includes/screen.php and it is there. I am working on Xampp and I don't have any plugins activated as it is a fresh install. Also in my wp-config.php I haven't changed anything but the 'MySQL settings' (database, username and password) and 'DEBUG mode'. Any suggestions on how to rectify this? A: you can try following if ( !function_exists( 'get_current_screen' ) ) { require_once ABSPATH . '/wp-admin/includes/screen.php'; } $screen = get_current_screen(); echo $screen;
Q: Call to undefined function get_current_screen() on my localhost I'm using Wordpress 3.9.1 and I get the Fatal error: Call to undefined function get_current_screen() if I put the following in my funcitons.php or in any file of my theme: $screen = get_current_screen(); echo $screen; Initially when I got the error, I was working on a theme that I'm creating. However, I tried this with few other themes including TwentyFourteen, and I still got the same error. I even deleted my Wordpress database, created a fresh one and re-installed Wordpress, but still it didn't help. I checked the get_current_screen() function by going to to wp-admin/includes/screen.php and it is there. I am working on Xampp and I don't have any plugins activated as it is a fresh install. Also in my wp-config.php I haven't changed anything but the 'MySQL settings' (database, username and password) and 'DEBUG mode'. Any suggestions on how to rectify this? A: you can try following if ( !function_exists( 'get_current_screen' ) ) { require_once ABSPATH . '/wp-admin/includes/screen.php'; } $screen = get_current_screen(); echo $screen; A: get_current_screen() is a backend function and it returns data about the current backend administration page. It makes no sense to use this in theme code. The only way it would work (I think but haven't tested) in functions.php would be if it were hooked into a backend hook later than admin_init. You don't explain what you are trying to do with get_current_screen() but I think you are simply using it incorrectly.
wordpress
{ "language": "en", "length": 246, "provenance": "stackexchange_00019.jsonl.gz:445578", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145670" }
[ 0.0462646484375, -0.002227783203125, -0.01346588134765625, -0.04510498046875, 0.0126953125, -0.0125885009765625, 0.02447509765625, -0.0174407958984375, 0.05572509765625, 0.002162933349609375, -0.064453125, -0.005176544189453125, -0.055877685546875, -0.006732940673828125, -0.033599853515625, -0.0340576171875, 0.0609130859375, -0.050445556640625, 0.03948974609375, 0.0012807846069335938, -0.0055694580078125, 0.034576416015625, 0.05322265625, 0.0579833984375, -0.0003211498260498047, -0.0275726318359375, 0.060699462890625, 0.01319122314453125, -0.0258331298828125, -0.019378662109375, -0.00319671630859375, 0.022674560546875, -0.0047149658203125, 0.0657958984375, -0.0268402099609375, -0.03765869140625, 0.006481170654296875, 0.0192413330078125, 0.022064208984375, 0.015960693359375, 0.005916595458984375, 0.0015954971313476562, -0.0205078125, 0.0239410400390625, -0.042236328125, -0.025421142578125, -0.0137786865234375, -0.023223876953125, -0.0202789306640625, 0.043121337890625, 0.021484375, -0.00887298583984375, 0.0105438232421875, 0.00838470458984375, 0.0005288124084472656, -0.0162200927734375, 0.0108489990234375, 0.016693115234375, 0.018951416015625, -0.01528167724609375, -0.0302581787109375, 0.002593994140625, 0.0251922607421875, -0.01369476318359375, -0.004398345947265625, -0.00022900104522705078, 0.0264434814453125, 0.01971435546875, -0.0372314453125, -0.0189361572265625, 0.0241546630859375, -0.01031494140625, 0.019439697265625, 0.0120391845703125, 0.0305328369140625, -0.05804443359375, 0.00521087646484375, -0.005947113037109375, 0.024566650390625, 0.043548583984375, -0.01009368896484375, -0.01111602783203125, -0.070068359375, 0.0267791748046875, -0.01537322998046875, 0.055572509765625, -0.00832366943359375, -0.01837158203125, -0.00666046142578125, -0.0291748046875, -0.015289306640625, -0.018280029296875, -0.03924560546875, -0.00522613525390625, -0.002094268798828125, -0.047210693359375, 0.04351806640625, 0.08306884765625, -0.030853271484375, 0.00467681884765625, -0.01995849609375, -0.0235595703125, 0.0204315185546875, -0.036102294921875, 0.00026988983154296875, 0.047515869140625, -0.0198822021484375, 0.0180206298828125, 0.0196075439453125, 0.02325439453125, 0.013763427734375, -0.0537109375, -0.0267181396484375, -0.0285186767578125, -0.01387786865234375, 0.044342041015625, -0.039520263671875, -0.0079803466796875, 0.0024166107177734375, 0.00653076171875, -0.0125732421875, 0.0118408203125, -0.017852783203125, 0.01329803466796875, 0.004329681396484375, 0.002117156982421875, -0.01116943359375, -0.0053558349609375, 0.0181732177734375, -0.0081329345703125, -0.033782958984375, 0.038726806640625, 0.056610107421875, -0.00565338134765625, -0.0199127197265625, 0.004947662353515625, -0.002025604248046875, -0.0053253173828125, -0.0069122314453125, 0.0369873046875, -0.03271484375, -0.0263214111328125, 0.0210113525390625, -0.040863037109375, 0.002391815185546875, 0.0038928985595703125, 0.020355224609375, 0.020172119140625, -0.006832122802734375, -0.018402099609375, 0.02423095703125, -0.02044677734375, -0.0028438568115234375, 0.0367431640625, 0.0248565673828125, 0.030548095703125, 0.033447265625, -0.0107269287109375, -0.0164794921875, -0.0045013427734375, 0.026702880859375, -0.03729248046875, -0.01409149169921875, -0.0343017578125, -0.050048828125, 0.0223388671875, -0.04095458984375, -0.006229400634765625, 0.023956298828125, -0.00829315185546875, 0.006732940673828125, -0.01427459716796875, 0.036956787109375, 0.00583648681640625, -0.01503753662109375, 0.026214599609375, -0.0206451416015625, 0.00740814208984375, 0.038299560546875, 0.0188140869140625, -0.0283050537109375, -0.040985107421875, 0.04315185546875, -0.032012939453125, -0.04473876953125, 0.00408935546875, -0.0168914794921875, 0.007572174072265625, 0.037017822265625, -0.009307861328125, 0.03521728515625, -0.0037860870361328125, -0.04266357421875, -0.0080718994140625, -0.026641845703125, -0.01180267333984375, -0.0056915283203125, -0.005634307861328125, -0.03662109375, 0.036712646484375, 0.00274658203125, 0.0114593505859375, -0.020599365234375, 0.00817108154296875, -0.05328369140625, 0.006427764892578125, -0.01314544677734375, 0.037445068359375, 0.0183258056640625, -0.035736083984375, -0.004146575927734375, -0.048492431640625, 0.017578125, -0.00966644287109375, -0.031280517578125, 0.06622314453125, -0.054901123046875, 0.047607421875, -0.00684356689453125, 0.053375244140625, -0.0142669677734375, -0.050811767578125, 0.0005931854248046875, -0.049652099609375, 0.03387451171875, 0.032257080078125, -0.039306640625, 0.0038166046142578125, 0.03668212890625, 0.006786346435546875, 0.03643798828125, 0.037567138671875, -0.0159454345703125, -0.0006570816040039062, -0.0357666015625, -0.00982666015625, 0.00004553794860839844, -0.0031070709228515625, -0.00397491455078125, 0.039520263671875, 0.057464599609375, 0.006866455078125, -0.0040740966796875, -0.033905029296875, 0.0205535888671875, -0.0670166015625, 0.01226806640625, -0.03857421875, -0.0184783935546875, 0.0210113525390625, 0.03973388671875, 0.03564453125, 0.0015192031860351562, 0.00322723388671875, -0.0225067138671875, 0.04620361328125, -0.0193023681640625, 0.01666259765625, -0.003574371337890625, -0.0170745849609375, -0.01114654541015625, -0.0867919921875, -0.02020263671875, -0.0380859375, -0.019317626953125, 0.01554107666015625, 0.0026416778564453125, 0.0157928466796875, -0.0174713134765625, -0.00775146484375, 0.0309906005859375, 0.0029277801513671875, 0.0033931732177734375, 0.020721435546875, -0.048126220703125, 0.0098114013671875, -0.0260467529296875, 0.0164794921875, -0.0219268798828125, -0.015869140625, -0.013214111328125, 0.01873779296875, -0.048492431640625, -0.0162353515625, 0.007472991943359375, -0.0158233642578125, -0.022613525390625, -0.0008444786071777344, 0.0458984375, -0.00412750244140625, 0.05096435546875, -0.004486083984375, -0.019134521484375, 0.05438232421875, -0.01097869873046875, -0.039947509765625, 0.0478515625, 0.01534271240234375, 0.0020313262939453125, -0.0047607421875, 0.0390625, 0.024749755859375, -0.03851318359375, 0.008575439453125, 0.0188140869140625, 0.01409912109375, 0.040802001953125, -0.0149993896484375, -0.0018291473388671875, 0.038818359375, -0.06787109375, -0.00472259521484375, 0.0205230712890625, 0.032684326171875, -0.017822265625, -0.04779052734375, -0.01169586181640625, -0.0013017654418945312, -0.11956787109375, -0.10736083984375, 0.0014896392822265625, -0.0579833984375, -0.038543701171875, -0.01441192626953125, -0.036102294921875, 0.0263519287109375, 0.0120391845703125, 0.0012331008911132812, 0.0176849365234375, -0.0025634765625, -0.053375244140625, -0.0232696533203125, -0.09112548828125, -0.027069091796875, -0.01313018798828125, 0.021453857421875, -0.014923095703125, 0.058197021484375, 0.009307861328125, -0.0382080078125, -0.0158233642578125, 0.0096893310546875, -0.0084075927734375, -0.025421142578125, 0.02392578125, -0.0433349609375, 0.025970458984375, 0.00864410400390625, -0.05474853515625, -0.0036602020263671875, 0.033935546875, -0.055084228515625, -0.021209716796875, -0.0228118896484375, -0.025421142578125, 0.061126708984375, 0.038421630859375, -0.055023193359375, 0.0108489990234375, -0.0543212890625, -0.013153076171875, 0.0176239013671875, -0.029632568359375, 0.0604248046875, 0.01079559326171875, -0.03179931640625, 0.035614013671875, -0.0043792724609375, -0.003475189208984375, -0.005970001220703125, 0.01056671142578125, -0.014892578125, 0.01319122314453125, -0.0023593902587890625, 0.0018377304077148438, -0.0086669921875, 0.0288543701171875, -0.00591278076171875, 0.021331787109375, 0.0094146728515625, 0.0018711090087890625, -0.0028533935546875, -0.0016651153564453125, -0.01184844970703125, -0.029937744140625, 0.06951904296875, 0.03350830078125, -0.0242767333984375, 0.006374359130859375, -0.0283203125, 0.0130462646484375, 0.054779052734375, -0.0225372314453125, -0.0179443359375, -0.00024890899658203125, 0.0206146240234375, -0.059295654296875, -0.044586181640625, -0.015228271484375, -0.0129852294921875, -0.048797607421875, -0.0341796875, -0.034912109375, -0.0263519287109375, 0.0023136138916015625, 0.030914306640625, -0.0016012191772460938, -0.032867431640625, 0.04095458984375, -0.037750244140625, 0.0078125, 0.05023193359375, -0.0114288330078125, -0.001766204833984375, -0.0248870849609375, -0.023590087890625, -0.0960693359375, 0.0092620849609375, -0.06488037109375, 0.0709228515625, 0.035858154296875, -0.01073455810546875, -0.01053619384765625, 0.0260162353515625, 0.03533935546875, 0.022552490234375, 0.0201568603515625, -0.01532745361328125, 0.0360107421875, 0.006259918212890625, 0.0275421142578125, 0.0033779144287109375, -0.00487518310546875, -0.01422119140625, -0.0283966064453125, 0.01171112060546875, -0.021148681640625, -0.020599365234375, -0.00460052490234375, -0.035919189453125, -0.01282501220703125, 0.00469207763671875, 0.054351806640625, 0.062225341796875, -0.0088653564453125, 0.041748046875, -0.005084991455078125, -0.01788330078125, -0.0163116455078125, -0.01617431640625, -0.04443359375, 0.029022216796875, 0.035400390625, 0.0323486328125, -0.006816864013671875, -0.00830841064453125, -0.01190948486328125, 0.0469970703125, -0.00907135009765625, 0.0341796875, 0.00919342041015625, -0.050811767578125, 0.096435546875, 0.0178070068359375, -0.0153656005859375, 0.029937744140625, 0.021575927734375, 0.0221099853515625, -0.01983642578125, -0.006793975830078125, 0.0014553070068359375, -0.0156402587890625, 0.0022563934326171875, -0.0198211669921875, -0.003940582275390625, 0.01549530029296875, 0.0131378173828125, -0.02740478515625, 0.046173095703125, -0.003124237060546875, -0.0177764892578125, -0.01354217529296875, 0.0242156982421875, 0.06695556640625, 0.0428466796875, 0.00455474853515625, 0.052032470703125, 0.054046630859375, -0.01549530029296875, -0.0017528533935546875, 0.01309967041015625, 0.021148681640625, 0.02471923828125, 0.0014972686767578125, 0.0231781005859375, -0.0180816650390625, 0.0018863677978515625, 0.03326416015625, -0.007205963134765625, -0.0382080078125, -0.019256591796875, -0.0087127685546875, -0.027984619140625, 0.0099639892578125, -0.00954437255859375, 0.0242156982421875, 0.0175323486328125, -0.019317626953125, -0.0026988983154296875, -0.0010709762573242188, -0.00724029541015625, -0.0225830078125, 0.017822265625, -0.01922607421875, 0.0206756591796875, 0.0101470947265625, 0.0694580078125, 0.01050567626953125, 0.047454833984375, -0.027313232421875, -0.027557373046875, -0.0192718505859375, 0.04266357421875, 0.00923919677734375, -0.006244659423828125, -0.0032176971435546875, 0.044036865234375, 0.065185546875, -0.02655029296875, 0.004566192626953125, 0.02044677734375, 0.038299560546875, -0.01081085205078125, -0.033477783203125, 0.0161895751953125, -0.0223541259765625, -0.020751953125, 0.0328369140625, -0.000518798828125, -0.05987548828125, -0.030609130859375, 0.0217437744140625, 0.042236328125, -0.0237274169921875, -0.032196044921875, 0.048828125, -0.0090484619140625, 0.049774169921875, 0.0195465087890625, -0.0081787109375, 0.00470733642578125, 0.005706787109375, -0.0027027130126953125, -0.0153656005859375, -0.0124969482421875, -0.01131439208984375, -0.01033782958984375, -0.0238189697265625, -0.0293426513671875, 0.04754638671875, -0.006740570068359375, 0.01312255859375, -0.03045654296875, -0.02130126953125, 0.01161956787109375, -0.0011625289916992188, 0.035888671875, -0.0194549560546875, -0.0369873046875, 0.0177459716796875, -0.06805419921875, -0.0296478271484375, -0.0098419189453125, -0.045928955078125, -0.041229248046875, -0.035308837890625, -0.016937255859375, 0.0155792236328125, 0.00909423828125, 0.01282501220703125, -0.0443115234375, 0.01861572265625, 0.00817108154296875, 0.02435302734375, 0.014251708984375, 0.050567626953125, 0.01410675048828125, 0.0224609375, 0.0372314453125, 0.037078857421875, -0.03375244140625, -0.00974273681640625, 0.0169525146484375, -0.0088348388671875, -0.0088653564453125, -0.002231597900390625, -0.00011372566223144531, -0.0380859375, 0.01406097412109375, -0.01540374755859375, -0.01212310791015625, 0.015045166015625, -0.000873565673828125, -0.006961822509765625, 0.02032470703125, 0.043212890625, -0.01116180419921875, 0.0207366943359375, -0.058868408203125, -0.0233306884765625, 0.005977630615234375, 0.02410888671875, 0.0262451171875, -0.050628662109375, 0.004360198974609375, 0.042877197265625, -0.05438232421875, 0.09326171875, 0.0751953125, -0.033905029296875, 0.031494140625, -0.0007510185241699219, -0.0176239013671875, -0.0046539306640625, 0.047882080078125, -0.01434326171875, -0.06964111328125, 0.0196685791015625, 0.01959228515625, 0.003063201904296875, 0.0196990966796875, -0.005832672119140625, 0.01380157470703125, 0.028656005859375, 0.05810546875, -0.033477783203125, 0.0031375885009765625, 0.0301971435546875, -0.044342041015625, -0.02410888671875, -0.00824737548828125, 0.004032135009765625, -0.04541015625, 0.05670166015625, -0.01116180419921875, 0.01142120361328125, 0.02593994140625, -0.041259765625, -0.0135498046875, -0.004848480224609375, 0.03338623046875, -0.00730133056640625, -0.01190948486328125, -0.022247314453125, 0.004894256591796875, -0.024871826171875, -0.0062713623046875, 0.02410888671875, 0.00025200843811035156, -0.0196075439453125, -0.0489501953125, 0.0097198486328125, -0.0014352798461914062, -0.0298309326171875, 0.01235198974609375, 0.01386260986328125, -0.04901123046875, 0.07391357421875, -0.052886962890625, 0.053741455078125, 0.048126220703125, -0.034637451171875, 0.038848876953125, -0.033355712890625, 0.0628662109375, 0.0650634765625, -0.10614013671875, 0.0098724365234375, -0.01459503173828125, -0.0035247802734375, -0.0065155029296875, -0.03265380859375, 0.064697265625, -0.023468017578125, -0.0138702392578125, 0.022369384765625, -0.0015420913696289062, -0.016998291015625, -0.0278167724609375, 0.0372314453125, -0.06256103515625, -0.027313232421875, 0.01259613037109375, -0.0309295654296875, -0.0145416259765625, -0.022216796875, -0.022430419921875, 0.08526611328125, -0.0196533203125, -0.001659393310546875, 0.05322265625, 0.0360107421875, -0.05694580078125, 0.010223388671875, -0.040191650390625, 0.00553131103515625, -0.033477783203125, 0.06414794921875, -0.067138671875, -0.000980377197265625, -0.004543304443359375, 0.0298309326171875, 0.0208587646484375, 0.00786590576171875, 0.0112457275390625, 0.00986480712890625, 0.0521240234375, 0.04644775390625, 0.01358795166015625, 0.0020542144775390625, 0.020233154296875, 0.01052093505859375, 0.00550079345703125, -0.0249481201171875, 0.0250091552734375, -0.04986572265625, -0.01378631591796875, 0.034271240234375, 0.005695343017578125, -0.03790283203125, 0.031341552734375, 0.0012750625610351562, -0.0457763671875, 0.02606201171875, 0.01861572265625, -0.018035888671875, -0.0064849853515625, 0.047271728515625, -0.0137176513671875, 0.0160980224609375, 0.03594970703125, -0.03106689453125, 0.036956787109375, -0.03546142578125, -0.04779052734375, 0.032806396484375, 0.01140594482421875, -0.02056884765625, -0.0350341796875, -0.035797119140625, -0.02789306640625, 0.0228729248046875, 0.0209197998046875, 0.05938720703125, 0.044403076171875, 0.018463134765625, 0.0316162109375, 0.0289459228515625, 0.04315185546875, -0.0362548828125, -0.042266845703125, 0.003993988037109375, -0.013397216796875, 0.0280914306640625, 0.0264892578125, 0.04443359375, 0.05120849609375, 0.039337158203125, -0.014923095703125, -0.009063720703125, 0.01776123046875, 0.015472412109375, -0.0008511543273925781, 0.006481170654296875, -0.0227203369140625, 0.002567291259765625, -0.045379638671875, 0.004634857177734375, 0.022705078125, 0.035125732421875, -0.0008029937744140625, 0.0231170654296875, 0.0022945404052734375, -0.00559234619140625, -0.033843994140625, 0.01424407958984375, -0.01537322998046875, 0.0404052734375, -0.05938720703125, -0.02978515625, 0.026397705078125, 0.0302581787109375, -0.011138916015625, 0.01044464111328125, 0.0250244140625, 0.0155487060546875, -0.024749755859375, -0.02313232421875, 0.012603759765625, -0.0265045166015625, -0.049957275390625, -0.004222869873046875, -0.04254150390625, 0.018157958984375, 0.01107025146484375, 0.0127410888671875, 0.01387786865234375, 0.0179901123046875, -0.0186309814453125, 0.0035228729248046875, 0.005458831787109375, -0.020904541015625, 0.0081787109375, 0.0274200439453125, 0.033203125, 0.017669677734375, -0.05889892578125, 0.017333984375, -0.05621337890625, -0.0263824462890625, 0.00383758544921875, 0.0264892578125, 0.0049896240234375, 0.0034847259521484375, 0.0059814453125, 0.001369476318359375, 0.00502777099609375, 0.01459503173828125, -0.0014486312866210938, 0.01030731201171875, 0.0394287109375, 0.013275146484375, -0.00916290283203125, -0.01503753662109375, -0.000024497509002685547, 0.053802490234375, 0.03240966796875, 0.08392333984375, -0.052886962890625, 0.02532958984375, 0.01369476318359375, 0.01557159423828125, -0.025482177734375, -0.01751708984375, 0.010009765625, -0.0214385986328125, 0.00913238525390625, 0.004413604736328125, -0.0693359375, 0.0264434814453125, 0.04852294921875, 0.01261138916015625, -0.0012903213500976562, 0.037261962890625, 0.0259246826171875, 0.0009794235229492188, 0.03607177734375, 0.0024776458740234375, -0.0272216796875, 0.01788330078125, 0.0217132568359375, 0.01018524169921875, 0.020111083984375, -0.02532958984375, -0.03509521484375, 0.046539306640625, -0.038330078125, 0.013580322265625, 0.046478271484375, 0.0002040863037109375, 0.01499176025390625, 0.0149078369140625, -0.0074615478515625, -0.035308837890625, -0.0138092041015625, 0.0120697021484375, -0.0021495819091796875, 0.0011720657348632812, -0.0293731689453125, 0.01947021484375, 0.0867919921875, 0.01045989990234375, -0.0009908676147460938, -0.051788330078125, -0.034759521484375, 0.080078125, -0.0200653076171875, -0.0198516845703125, -0.04400634765625, -0.006381988525390625, -0.039337158203125, -0.03924560546875, 0.01380157470703125, -0.034759521484375, -0.030426025390625, -0.00811004638671875, 0.0283966064453125, 0.01541900634765625, 0.0178070068359375, -0.07647705078125, 0.05938720703125, -0.0194854736328125, 0.00786590576171875, -0.00682830810546875, -0.01149749755859375, 0.01261138916015625, 0.038421630859375, -0.01126861572265625, -0.00576019287109375, -0.004428863525390625, 0.004543304443359375, 0.0018310546875, 0.053985595703125, 0.05743408203125, -0.025390625, -0.018310546875, 0.07183837890625, 0.017120361328125, 0.1102294921875, -0.034149169921875, -0.019744873046875, 0.0230865478515625, -0.00844573974609375, -0.037353515625, 0.00022673606872558594, 0.021087646484375, -0.0265350341796875, -0.006561279296875, -0.035003662109375, 0.03106689453125, 0.0275115966796875, -0.04327392578125, -0.057586669921875, -0.01328277587890625, 0.006191253662109375, -0.04205322265625, -0.04107666015625, 0.006488800048828125, -0.0150146484375, 0.0450439453125, 0.006122589111328125, -0.059234619140625, -0.01397705078125, 0.036163330078125, 0.041839599609375, -0.00855255126953125, 0.040618896484375, 0.00820159912109375, -0.068359375, 0.01160430908203125, -0.0048675537109375, 0.0252227783203125, -0.03131103515625, -0.0023822784423828125, 0.004062652587890625, 0.047637939453125, 0.0010662078857421875, -0.047393798828125, 0.0229949951171875, -0.0239105224609375, -0.0007987022399902344, -0.062347412109375, -0.00104522705078125, -0.030670166015625, 0.0643310546875, -0.0177154541015625, 0.01268768310546875, -0.00269317626953125, -0.09063720703125, -0.0263214111328125, 0.0011110305786132812, -0.04473876953125, 0.0188751220703125, -0.1173095703125, -0.0054779052734375, -0.01056671142578125, -0.016357421875, -0.030242919921875, 0.0264892578125, -0.043121337890625, 0.0042877197265625, -0.01548004150390625, -0.022125244140625, -0.0131072998046875, -0.0160980224609375, 0.05828857421875, -0.025299072265625, 0.008819580078125, 0.0008854866027832031, 0.01100921630859375, 0.037353515625, 0.0177764892578125, 0.0014753341674804688, 0.0248260498046875, -0.046112060546875, -0.0016841888427734375, 0.0016069412231445312, 0.0240631103515625, -0.0033721923828125, -0.0223236083984375, 0.020751953125, 0.0011081695556640625, -0.01218414306640625, 0.00757598876953125, 0.01934814453125, 0.03216552734375, -0.0237274169921875, 0.0277099609375, -0.01568603515625, 0.04296875, -0.0192413330078125, 0.04241943359375, 0.01910400390625, -0.01485443115234375, 0.07861328125, -0.0291748046875, -0.0158538818359375, 0.04498291015625, -0.034576416015625, -0.056915283203125, 0.03814697265625, 0.003253936767578125, 0.02459716796875, 0.01387786865234375 ]
d4107fecff9eee1802bea7f5f6cf2e97616c7bca
Wordpress Stackexchange Q: How to count the length of a post title? Let's say that I have an entry titled Crime & Punishment I tried to count the number of characters of my entry titles using the following line: echo strlen( get_the_title() ); I expected the code would give me 18 characters for Crime & Punishment, but the result turned out to be 23 characters. The code above didn't give me my desired result since it reads the symbols within the title as a HTML code. Is there any workaround for such case? A: There are actually two problems: * *The & is encoded as &amp;, so you have to use html_entity_decode() first. *Multi-byte characters need more than one byte, and strlen() will fail with them. Don’t use strlen(). So use something like this: $title = html_entity_decode( get_the_title(), ENT_XML1, 'UTF-8' ); $length = mb_strlen( $title, 'utf-8' );
Q: How to count the length of a post title? Let's say that I have an entry titled Crime & Punishment I tried to count the number of characters of my entry titles using the following line: echo strlen( get_the_title() ); I expected the code would give me 18 characters for Crime & Punishment, but the result turned out to be 23 characters. The code above didn't give me my desired result since it reads the symbols within the title as a HTML code. Is there any workaround for such case? A: There are actually two problems: * *The & is encoded as &amp;, so you have to use html_entity_decode() first. *Multi-byte characters need more than one byte, and strlen() will fail with them. Don’t use strlen(). So use something like this: $title = html_entity_decode( get_the_title(), ENT_XML1, 'UTF-8' ); $length = mb_strlen( $title, 'utf-8' ); A: Try: <?php echo strip_tags(strlen(get_the_title())); ?>
wordpress
{ "language": "en", "length": 151, "provenance": "stackexchange_00019.jsonl.gz:445595", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145730" }
[ -0.056793212890625, -0.03314208984375, -0.0009927749633789062, 0.051483154296875, -0.044219970703125, 0.0010433197021484375, 0.033599853515625, -0.0169677734375, -0.0085296630859375, 0.01824951171875, 0.034271240234375, -0.0009374618530273438, -0.0207672119140625, -0.04071044921875, 0.007030487060546875, 0.003147125244140625, 0.0096588134765625, 0.00542449951171875, 0.01910400390625, -0.01541900634765625, 0.01267242431640625, 0.006793975830078125, -0.0129852294921875, -0.00948333740234375, 0.0270843505859375, -0.0718994140625, 0.1622314453125, -0.0594482421875, 0.032562255859375, -0.058197021484375, 0.031768798828125, -0.0037097930908203125, 0.03851318359375, 0.0030956268310546875, -0.00713348388671875, 0.0797119140625, 0.012420654296875, -0.01024627685546875, 0.005146026611328125, 0.01181793212890625, 0.00506591796875, 0.0178375244140625, 0.0653076171875, 0.007038116455078125, 0.022186279296875, -0.0264739990234375, 0.027496337890625, -0.045501708984375, 0.00846099853515625, -0.0102996826171875, 0.01617431640625, 0.01268768310546875, 0.033935546875, -0.0042877197265625, -0.00893402099609375, -0.007732391357421875, -0.0027751922607421875, -0.002529144287109375, 0.03546142578125, -0.004413604736328125, -0.02197265625, -0.01806640625, 0.0233917236328125, -0.039306640625, -0.0138397216796875, 0.01261138916015625, 0.03558349609375, 0.0023937225341796875, -0.02545166015625, -0.03271484375, 0.0207672119140625, -0.00039196014404296875, 0.00652313232421875, -0.047119140625, -0.002498626708984375, -0.0015497207641601562, -0.04266357421875, -0.06982421875, 0.035491943359375, -0.003299713134765625, -0.0181732177734375, 0.001312255859375, -0.022796630859375, -0.019927978515625, -0.0025005340576171875, -0.001415252685546875, -0.024627685546875, -0.004215240478515625, 0.0233917236328125, -0.01439666748046875, 0.0016374588012695312, 0.037261962890625, 0.0301361083984375, 0.019927978515625, -0.0244140625, -0.032928466796875, 0.0285797119140625, 0.02191162109375, 0.0028705596923828125, -0.021209716796875, 0.04193115234375, -0.041473388671875, -0.0088653564453125, 0.002613067626953125, 0.0212860107421875, -0.0026569366455078125, -0.02655029296875, -0.014923095703125, 0.06573486328125, 0.016876220703125, -0.0019407272338867188, 0.04071044921875, -0.0175628662109375, -0.0296173095703125, 0.0009317398071289062, 0.0484619140625, -0.0175628662109375, 0.0302581787109375, 0.00728607177734375, 0.026336669921875, -0.0260162353515625, -0.0154571533203125, -0.0230865478515625, -0.0015401840209960938, 0.0247802734375, -0.00001615285873413086, -0.01464080810546875, 0.0280609130859375, 0.0262298583984375, 0.05303955078125, -0.04150390625, 0.0029354095458984375, 0.007701873779296875, -0.024566650390625, -0.0251922607421875, -0.031646728515625, -0.024078369140625, -0.0399169921875, -0.061065673828125, 0.03228759765625, -0.047760009765625, 0.0031757354736328125, 0.077392578125, -0.07208251953125, -0.03485107421875, 0.01128387451171875, 0.002468109130859375, 0.0287628173828125, -0.01444244384765625, -0.09442138671875, 0.0645751953125, -0.068359375, 0.039703369140625, -0.00506591796875, -0.062347412109375, -0.0087127685546875, -0.046905517578125, 0.00312042236328125, -0.0202178955078125, -0.0140533447265625, 0.0181884765625, 0.008514404296875, 0.00406646728515625, 0.0038356781005859375, -0.03546142578125, 0.0017938613891601562, -0.00740814208984375, -0.0045623779296875, 0.0082244873046875, 0.00409698486328125, -0.0064697265625, 0.00600433349609375, -0.0275421142578125, -0.044952392578125, -0.01355743408203125, -0.0158538818359375, -0.0193939208984375, 0.0007801055908203125, 0.0189208984375, 0.0625, 0.0175018310546875, -0.0194549560546875, 0.036865234375, -0.0015993118286132812, -0.0132598876953125, 0.014678955078125, -0.0038967132568359375, -0.0110626220703125, 0.0020198822021484375, -0.0087890625, 0.00962066650390625, 0.053009033203125, -0.006549835205078125, -0.0031261444091796875, 0.003170013427734375, 0.01012420654296875, 0.015716552734375, 0.00714111328125, 0.00006848573684692383, -0.006160736083984375, 0.057647705078125, -0.043304443359375, 0.0570068359375, -0.054229736328125, 0.003376007080078125, -0.03594970703125, 0.006977081298828125, 0.016448974609375, -0.02655029296875, 0.0533447265625, 0.033843994140625, -0.003627777099609375, -0.037200927734375, 0.03375244140625, 0.033966064453125, -0.03472900390625, 0.00591278076171875, -0.003414154052734375, -0.0158538818359375, -0.018157958984375, 0.011871337890625, -0.00437164306640625, -0.00865936279296875, 0.0307159423828125, 0.07183837890625, -0.018707275390625, 0.01039886474609375, -0.0240478515625, 0.06561279296875, 0.01033782958984375, -0.034637451171875, 0.003437042236328125, 0.048095703125, 0.03411865234375, -0.036346435546875, -0.0239715576171875, -0.031768798828125, -0.0770263671875, 0.00922393798828125, 0.08544921875, 0.0631103515625, 0.031890869140625, 0.005401611328125, -0.038238525390625, 0.0187225341796875, -0.09686279296875, 0.002262115478515625, -0.041961669921875, 0.015777587890625, 0.051239013671875, -0.01302337646484375, 0.00579833984375, 0.0256195068359375, -0.0259857177734375, -0.0191650390625, 0.06024169921875, 0.0128326416015625, 0.006900787353515625, -0.007289886474609375, 0.0157318115234375, 0.00586700439453125, 0.014892578125, -0.005710601806640625, -0.00563812255859375, -0.032257080078125, 0.0292816162109375, 0.007465362548828125, 0.0194549560546875, -0.0218963623046875, 0.01158905029296875, 0.02490234375, 0.0272216796875, -0.01326751708984375, -0.03582763671875, -0.00007939338684082031, -0.046051025390625, -0.048736572265625, 0.04925537109375, -0.022735595703125, -0.047760009765625, 0.0017385482788085938, 0.05950927734375, -0.044647216796875, -0.0177001953125, -0.0270538330078125, -0.059814453125, -0.0166778564453125, 0.02545166015625, 0.0196533203125, 0.01081085205078125, 0.00739288330078125, 0.058837890625, 0.01168060302734375, 0.038665771484375, 0.0184326171875, 0.01318359375, 0.07861328125, -0.020263671875, 0.03436279296875, -0.0127105712890625, 0.084716796875, 0.046844482421875, -0.044342041015625, 0.0191650390625, 0.0199432373046875, -0.0033245086669921875, 0.0016183853149414062, 0.051727294921875, 0.018524169921875, -0.004558563232421875, -0.059722900390625, -0.0083160400390625, 0.007114410400390625, -0.0076751708984375, 0.0171966552734375, -0.030059814453125, 0.00977325439453125, 0.006511688232421875, -0.09320068359375, -0.090087890625, 0.012908935546875, -0.061065673828125, -0.0236968994140625, 0.0092315673828125, -0.03497314453125, -0.001895904541015625, 0.025665283203125, -0.01181793212890625, -0.037689208984375, -0.0286712646484375, 0.0008411407470703125, -0.034515380859375, -0.037689208984375, -0.006374359130859375, 0.0211944580078125, 0.0136566162109375, -0.01052093505859375, 0.04791259765625, -0.0257568359375, -0.07305908203125, -0.04248046875, 0.035491943359375, 0.0095367431640625, -0.00012993812561035156, 0.0245819091796875, 0.0238494873046875, -0.030670166015625, 0.03704833984375, -0.085205078125, -0.00450897216796875, 0.0005297660827636719, -0.04473876953125, -0.00743865966796875, -0.0234222412109375, 0.01271820068359375, 0.0169830322265625, -0.00553131103515625, 0.0182647705078125, 0.031768798828125, -0.0430908203125, -0.0369873046875, 0.0104217529296875, -0.039825439453125, 0.0220947265625, -0.006305694580078125, -0.0181884765625, 0.0240020751953125, 0.005664825439453125, -0.01091766357421875, -0.0034236907958984375, 0.00884246826171875, -0.00041794776916503906, 0.01496124267578125, 0.007053375244140625, -0.00478363037109375, -0.0026264190673828125, 0.01033782958984375, -0.00829315185546875, 0.038421630859375, 0.0034389495849609375, 0.029144287109375, 0.000637054443359375, 0.0113372802734375, 0.0004596710205078125, -0.07366943359375, 0.05462646484375, 0.0153045654296875, 0.01294708251953125, -0.01363372802734375, -0.051116943359375, 0.01788330078125, 0.1004638671875, -0.016845703125, -0.05224609375, -0.03900146484375, 0.014678955078125, 0.00511932373046875, -0.049407958984375, 0.05902099609375, -0.0312347412109375, -0.06451416015625, -0.005825042724609375, -0.01454925537109375, -0.02606201171875, -0.0022335052490234375, 0.00786590576171875, -0.02496337890625, -0.0290679931640625, 0.004364013671875, -0.0024127960205078125, 0.0202484130859375, -0.02069091796875, -0.0081329345703125, -0.01334381103515625, 0.01248931884765625, -0.037078857421875, -0.01904296875, -0.0303497314453125, 0.02972412109375, 0.03399658203125, -0.00919342041015625, -0.021392822265625, -0.0038394927978515625, 0.03656005859375, 0.0165252685546875, 0.0208587646484375, -0.0187225341796875, -0.0241546630859375, -0.0175628662109375, 0.0390625, 0.00937652587890625, -0.003086090087890625, -0.01461029052734375, 0.0068206787109375, 0.0020580291748046875, 0.042816162109375, -0.0107269287109375, -0.01727294921875, -0.005069732666015625, -0.0170745849609375, -0.0177154541015625, -0.0313720703125, -0.00598907470703125, 0.007190704345703125, -0.025299072265625, 0.00620269775390625, -0.0186920166015625, -0.002620697021484375, 0.045989990234375, 0.07073974609375, -0.0207061767578125, -0.01168060302734375, 0.053131103515625, 0.0135955810546875, -0.056640625, -0.04876708984375, 0.003704071044921875, 0.01503753662109375, 0.005279541015625, 0.03546142578125, 0.01861572265625, -0.0123291015625, 0.0232696533203125, -0.024078369140625, -0.00765228271484375, 0.01202392578125, -0.042205810546875, 0.0020847320556640625, -0.01119232177734375, -0.01849365234375, 0.0007038116455078125, 0.06475830078125, -0.0180206298828125, -0.0025787353515625, 0.04656982421875, 0.0377197265625, -0.054168701171875, -0.00836181640625, -0.00499725341796875, 0.05889892578125, -0.01715087890625, 0.0171356201171875, 0.0221710205078125, -0.0243072509765625, -0.01024627685546875, 0.01081085205078125, -0.04473876953125, -0.0275726318359375, 0.0274658203125, -0.0117340087890625, 0.015777587890625, -0.004199981689453125, 0.051544189453125, -0.01000213623046875, 0.0204010009765625, -0.02032470703125, -0.01128387451171875, 0.0296478271484375, 0.01032257080078125, -0.043975830078125, -0.0207977294921875, 0.00989532470703125, 0.046234130859375, -0.01165771484375, 0.044921875, -0.0031833648681640625, 0.019622802734375, 0.0059356689453125, 0.0103759765625, 0.03277587890625, 0.0312347412109375, -0.012054443359375, -0.00965118408203125, -0.0002720355987548828, -0.0167999267578125, 0.036590576171875, 0.035552978515625, -0.0231781005859375, 0.0465087890625, -0.0167083740234375, 0.0504150390625, 0.021728515625, 0.07855224609375, 0.01611328125, -0.07781982421875, -0.0216827392578125, 0.07440185546875, -0.04351806640625, -0.008453369140625, -0.0302276611328125, 0.01953125, 0.031829833984375, 0.00316619873046875, 0.0240631103515625, 0.003963470458984375, 0.0100860595703125, -0.03851318359375, 0.026824951171875, 0.01482391357421875, -0.05694580078125, -0.03033447265625, 0.02252197265625, 0.0184478759765625, 0.00736236572265625, -0.005970001220703125, -0.029571533203125, -0.04534912109375, 0.0011425018310546875, -0.0247955322265625, 0.031402587890625, -0.017974853515625, -0.02423095703125, -0.04364013671875, -0.00308990478515625, -0.002391815185546875, 0.052886962890625, -0.02984619140625, 0.004474639892578125, -0.0248565673828125, 0.005718231201171875, -0.034759521484375, 0.037994384765625, -0.019989013671875, -0.004322052001953125, 0.05718994140625, -0.0022907257080078125, 0.09246826171875, 0.040771484375, -0.017303466796875, -0.01354217529296875, -0.0289306640625, 0.01499176025390625, 0.062744140625, -0.00919342041015625, 0.012451171875, -0.035308837890625, -0.01020050048828125, 0.01006317138671875, 0.0142364501953125, 0.0231781005859375, -0.009735107421875, 0.0283660888671875, -0.0164947509765625, 0.0166168212890625, -0.035247802734375, 0.0252838134765625, 0.03759765625, -0.0213470458984375, -0.0164031982421875, 0.035247802734375, 0.05401611328125, -0.0221710205078125, 0.0191650390625, -0.0214080810546875, -0.0002002716064453125, -0.004451751708984375, 0.034027099609375, -0.040924072265625, -0.018585205078125, 0.0018062591552734375, -0.026397705078125, 0.008453369140625, 0.0168609619140625, -0.012451171875, 0.0191497802734375, 0.04595947265625, -0.0318603515625, 0.0182342529296875, -0.0199432373046875, 0.0101165771484375, -0.0230255126953125, 0.00952911376953125, 0.02874755859375, -0.0162353515625, 0.010345458984375, 0.0118408203125, -0.00786590576171875, 0.036651611328125, 0.034149169921875, -0.004634857177734375, -0.000705718994140625, 0.0217742919921875, -0.0204010009765625, -0.03753662109375, -0.007457733154296875, 0.02392578125, 0.0231170654296875, 0.0299530029296875, -0.01214599609375, 0.01410675048828125, 0.00914764404296875, -0.01409912109375, -0.00841522216796875, 0.03515625, 0.0217437744140625, -0.01678466796875, -0.023223876953125, -0.0128173828125, -0.009857177734375, 0.0198211669921875, -0.00872802734375, 0.0098419189453125, -0.039947509765625, 0.062408447265625, 0.00704193115234375, 0.015167236328125, 0.0282745361328125, -0.0231170654296875, 0.004611968994140625, -0.04852294921875, 0.037994384765625, 0.0155792236328125, -0.0384521484375, 0.01446533203125, 0.0207672119140625, -0.005352020263671875, -0.048736572265625, 0.0009098052978515625, 0.0153961181640625, 0.00033092498779296875, -0.0242156982421875, 0.06744384765625, -0.05572509765625, 0.03997802734375, -0.004917144775390625, 0.045318603515625, 0.021942138671875, 0.0838623046875, -0.0220489501953125, -0.007541656494140625, 0.0809326171875, -0.0350341796875, 0.011322021484375, -0.007350921630859375, -0.00325775146484375, 0.022796630859375, -0.0113983154296875, 0.004535675048828125, -0.031402587890625, 0.0074462890625, -0.001583099365234375, 0.00231170654296875, 0.056884765625, 0.035491943359375, -0.058135986328125, 0.03143310546875, -0.035491943359375, -0.033111572265625, -0.010955810546875, 0.060455322265625, -0.048248291015625, 0.0081329345703125, 0.0127410888671875, 0.0033931732177734375, -0.052093505859375, -0.03900146484375, -0.0411376953125, 0.09442138671875, -0.0224151611328125, 0.01357269287109375, 0.008392333984375, 0.03082275390625, -0.0028533935546875, 0.032440185546875, -0.053955078125, 0.0194549560546875, -0.033233642578125, 0.0107269287109375, -0.0716552734375, 0.00394439697265625, -0.043304443359375, 0.006229400634765625, 0.017303466796875, -0.00983428955078125, 0.022979736328125, -0.018768310546875, 0.053619384765625, 0.06829833984375, 0.01197052001953125, -0.0132598876953125, 0.018402099609375, 0.02264404296875, 0.07293701171875, -0.007511138916015625, 0.049896240234375, -0.0232696533203125, 0.0017404556274414062, 0.045654296875, 0.0191192626953125, -0.01355743408203125, 0.0167694091796875, -0.01015472412109375, -0.0540771484375, 0.00943756103515625, 0.03448486328125, 0.01763916015625, -0.034515380859375, 0.0889892578125, 0.0987548828125, -0.10498046875, -0.039093017578125, -0.0570068359375, 0.07366943359375, 0.0297698974609375, 0.02032470703125, 0.021820068359375, 0.003108978271484375, 0.055633544921875, -0.029296875, 0.01081085205078125, 0.0146331787109375, -0.03021240234375, 0.019866943359375, 0.01354217529296875, 0.0144805908203125, -0.03424072265625, -0.0084686279296875, 0.05035400390625, 0.05548095703125, -0.026580810546875, 0.005062103271484375, 0.01464080810546875, 0.045013427734375, -0.012603759765625, -0.032562255859375, -0.0120086669921875, 0.030487060546875, 0.054412841796875, -0.0078582763671875, -0.02813720703125, 0.02642822265625, 0.021575927734375, 0.004848480224609375, 0.0091094970703125, 0.01160430908203125, -0.04302978515625, -0.0031795501708984375, -0.0157928466796875, -0.004505157470703125, 0.07122802734375, 0.020294189453125, 0.0286712646484375, -0.090576171875, -0.01763916015625, 0.0200347900390625, 0.003955841064453125, 0.0293426513671875, -0.0391845703125, 0.0318603515625, 0.01229095458984375, 0.00736236572265625, -0.01788330078125, 0.0022869110107421875, 0.0038509368896484375, 0.0219573974609375, 0.029327392578125, -0.007659912109375, -0.01511383056640625, -0.0084991455078125, -0.01026153564453125, -0.0182037353515625, 0.0094146728515625, -0.0189361572265625, 0.021087646484375, -0.0111846923828125, -0.0009331703186035156, 0.0178680419921875, 0.027740478515625, 0.017333984375, -0.0193023681640625, 0.017608642578125, -0.002254486083984375, 0.0247650146484375, 0.033294677734375, -0.0163116455078125, 0.045013427734375, -0.0289764404296875, 0.0029315948486328125, 0.044036865234375, -0.060150146484375, -0.01483917236328125, 0.032745361328125, -0.040069580078125, 0.026885986328125, -0.01270294189453125, -0.056243896484375, -0.0010576248168945312, 0.039215087890625, 0.0305023193359375, 0.06182861328125, -0.0134735107421875, 0.00510406494140625, -0.054229736328125, -0.04461669921875, -0.0029811859130859375, 0.05169677734375, 0.01123046875, 0.0012502670288085938, 0.01363372802734375, 0.0264892578125, -0.031768798828125, 0.0093231201171875, -0.0180816650390625, -0.03253173828125, 0.0101318359375, 0.036163330078125, 0.019378662109375, -0.0160980224609375, -0.052032470703125, 0.0151214599609375, 0.0003695487976074219, -0.0202789306640625, 0.01012420654296875, -0.02130126953125, 0.024810791015625, 0.01245880126953125, 0.01369476318359375, -0.01416015625, -0.022674560546875, 0.0153656005859375, -0.00943756103515625, 0.0146484375, 0.0465087890625, 0.0165557861328125, 0.052154541015625, -0.0200958251953125, -0.01296234130859375, 0.00989532470703125, -0.06097412109375, -0.0028018951416015625, 0.01079559326171875, -0.007579803466796875, -0.046234130859375, 0.032257080078125, -0.0081024169921875, -0.002735137939453125, 0.0265960693359375, 0.052703857421875, 0.0259552001953125, -0.0399169921875, 0.018768310546875, 0.0240936279296875, 0.066162109375, 0.005706787109375, 0.038818359375, -0.017333984375, 0.0014314651489257812, 0.032623291015625, -0.00354766845703125, -0.025360107421875, -0.00988006591796875, 0.0048370361328125, -0.0029697418212890625, 0.033447265625, -0.0149383544921875, 0.029022216796875, -0.028778076171875, -0.016082763671875, -0.01528167724609375, -0.003726959228515625, 0.01215362548828125, -0.01357269287109375, -0.016326904296875, -0.032684326171875, 0.01378631591796875, 0.00799560546875, 0.01357269287109375, -0.06097412109375, -0.039703369140625, -0.04022216796875, 0.0229644775390625, -0.045440673828125, -0.00994873046875, 0.032073974609375, -0.032470703125, -0.0433349609375, -0.024566650390625, 0.029754638671875, -0.0015897750854492188, 0.03472900390625, 0.001262664794921875, 0.0100250244140625, 0.007755279541015625, -0.03533935546875, -0.059814453125, 0.023468017578125, -0.057708740234375, -0.0159912109375, -0.006954193115234375, -0.003154754638671875, 0.01275634765625, -0.0243377685546875, -0.017822265625, -0.0245819091796875, 0.033355712890625, -0.036346435546875, -0.06439208984375, 0.00853729248046875, 0.0014133453369140625, -0.007244110107421875, -0.0198516845703125, -0.016387939453125, -0.018524169921875, 0.043212890625, -0.0042266845703125, -0.011962890625, 0.0295867919921875, -0.0095062255859375, -0.059478759765625, 0.007434844970703125, 0.01207733154296875, -0.0100555419921875, 0.0345458984375, -0.04437255859375, 0.02685546875, 0.0171356201171875, -0.068359375, -0.0205535888671875, -0.01123809814453125, 0.039642333984375, -0.027252197265625, -0.04119873046875, -0.0271759033203125, -0.018341064453125, 0.061767578125, 0.045257568359375, 0.00726318359375, -0.0312042236328125, -0.00937652587890625, 0.0225677490234375, 0.0183563232421875, 0.00064849853515625, -0.0122528076171875, -0.0140228271484375, -0.0286407470703125, -0.041473388671875, -0.0105438232421875, -0.01392364501953125, -0.01067352294921875, -0.0335693359375, -0.021942138671875, -0.020904541015625, 0.00998687744140625, -0.021148681640625, -0.01334381103515625, 0.052215576171875, -0.04547119140625, -0.02215576171875, -0.002986907958984375, 0.00482177734375, -0.0017852783203125, -0.019775390625, -0.0307769775390625, -0.00612640380859375, -0.009796142578125, 0.0215911865234375, -0.0255279541015625, 0.040771484375, -0.028594970703125, 0.0107879638671875, 0.0118560791015625, 0.0187530517578125, -0.005008697509765625, 0.03314208984375, -0.009185791015625, 0.00774383544921875, -0.0165252685546875, -0.003231048583984375, -0.00150299072265625, -0.0244598388671875, -0.03167724609375, 0.017364501953125, -0.0224151611328125, 0.00030159950256347656, -0.01149749755859375, -0.0025577545166015625, 0.0118408203125, 0.004520416259765625, -0.0030002593994140625, -0.03271484375, 0.019287109375, 0.00547027587890625, 0.01129150390625, 0.0226593017578125 ]
7f22f8fe71b889a1a4f480e3a3555ee2c97b6efd
Wordpress Stackexchange Q: How to make child categories recognize parent's template displays I'm using the Default Post Type post for various purposes. To sort them I'm using different categories. And I'm designing different category layout using the slug preference, like: category-book.php, category-notice.php etc., and everything was just fine. But just a moment ago found that, any subcategory of the parent category 'book' is redirecting to index.php (or archive.php, or category.php) because they are not recognizing their parent's category template (category-book.php), because their slug is different. How can I make the child categories recognize their parent's template design? Do I have to make a custom template using a WP_Query() for that? A: The category archive branch of template hierarchy only operates on actual category queried. If you take a look at get_category_template() it doesn't look up hierarchy. You can use category_template filter (named dynamically from {$type}_template further down the chain) to adjust the choice as necessary.
Q: How to make child categories recognize parent's template displays I'm using the Default Post Type post for various purposes. To sort them I'm using different categories. And I'm designing different category layout using the slug preference, like: category-book.php, category-notice.php etc., and everything was just fine. But just a moment ago found that, any subcategory of the parent category 'book' is redirecting to index.php (or archive.php, or category.php) because they are not recognizing their parent's category template (category-book.php), because their slug is different. How can I make the child categories recognize their parent's template design? Do I have to make a custom template using a WP_Query() for that? A: The category archive branch of template hierarchy only operates on actual category queried. If you take a look at get_category_template() it doesn't look up hierarchy. You can use category_template filter (named dynamically from {$type}_template further down the chain) to adjust the choice as necessary. A: Thanks to @Rarst for guiding me to the right direction. Using his direction I googled again and again and found a blog article of WerdsWords with an excellent bit of code snippet filtered to category_template as Rarst suggested me, and the good news is: it worked for my cause: function new_subcategory_hierarchy() { $category = get_queried_object(); $parent_id = $category->category_parent; $templates = array(); if ( $parent_id == 0 ) { // Use default values from get_category_template() $templates[] = "category-{$category->slug}.php"; $templates[] = "category-{$category->term_id}.php"; $templates[] = 'category.php'; } else { // Create replacement $templates array $parent = get_category( $parent_id ); // Current first $templates[] = "category-{$category->slug}.php"; $templates[] = "category-{$category->term_id}.php"; // Parent second $templates[] = "category-{$parent->slug}.php"; $templates[] = "category-{$parent->term_id}.php"; $templates[] = 'category.php'; } return locate_template( $templates ); } add_filter( 'category_template', 'new_subcategory_hierarchy' ); Link to the article: * *Force sub-categories to use the parent category template — werdswords.com A: Complementing the @Rarst sugestion, I needed the function to use the top-level parent template. function new_subcategory_hierarchy() { $category = get_queried_object(); $parent_id = $category->category_parent; // Create replacement $templates array $templates = array(); if ( $parent_id == 0 ) { // Use default values from get_category_template() $templates[] = "category-{$category->slug}.php"; $templates[] = "category-{$category->term_id}.php"; $templates[] = 'category.php'; } else { // Start from the current term $parent = get_category($parent_id); So I add this here: // Climb up the hierarchy until we reach a term with parent = '0' while($parent->parent != '0'){ $term_id = $parent->parent; $parent = get_term_by( 'id', $term_id, $category->taxonomy); } Ending: // Current first $templates[] = "category-{$category->slug}.php"; $templates[] = "category-{$category->term_id}.php"; // Parent second $templates[] = "category-{$parent->slug}.php"; $templates[] = "category-{$parent->term_id}.php"; $templates[] = 'category.php'; } return locate_template( $templates ); } add_filter( 'category_template', 'new_subcategory_hierarchy' );
wordpress
{ "language": "en", "length": 426, "provenance": "stackexchange_00019.jsonl.gz:445617", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145805" }
[ 0.00969696044921875, 0.027313232421875, -0.050567626953125, -0.03924560546875, 0.033599853515625, -0.0258331298828125, 0.0175018310546875, -0.01462554931640625, 0.00791168212890625, -0.0004520416259765625, -0.0242156982421875, -0.0278778076171875, -0.030792236328125, -0.034942626953125, -0.00786590576171875, -0.039794921875, 0.0304412841796875, -0.0364990234375, 0.01528167724609375, -0.0207977294921875, 0.0081787109375, -0.00015211105346679688, 0.061859130859375, 0.036346435546875, 0.0277099609375, -0.039276123046875, 0.05523681640625, -0.039886474609375, 0.037689208984375, -0.040283203125, 0.0220947265625, -0.0003731250762939453, 0.0270233154296875, -0.00820159912109375, 0.0240020751953125, -0.0001513957977294922, 0.031646728515625, -0.0104217529296875, 0.0080108642578125, 0.0205841064453125, 0.016448974609375, -0.0096588134765625, 0.043731689453125, -0.007808685302734375, 0.008148193359375, -0.022003173828125, 0.004253387451171875, -0.05279541015625, 0.001972198486328125, -0.032257080078125, 0.012786865234375, -0.005146026611328125, 0.03155517578125, -0.041656494140625, -0.0135040283203125, 0.00768280029296875, -0.0166778564453125, 0.0218353271484375, 0.030303955078125, 0.0028209686279296875, -0.0247802734375, 0.00994110107421875, 0.0012617111206054688, -0.0170440673828125, 0.01030731201171875, -0.01450347900390625, 0.00042247772216796875, 0.0236358642578125, -0.0158843994140625, 0.0216522216796875, 0.02569580078125, -0.0170440673828125, 0.006328582763671875, -0.038116455078125, -0.013275146484375, -0.022674560546875, 0.0177154541015625, -0.031280517578125, 0.00232696533203125, 0.0016927719116210938, 0.0151824951171875, -0.00826263427734375, -0.01020050048828125, -0.0246734619140625, 0.031982421875, 0.003986358642578125, -0.007389068603515625, -0.0211181640625, -0.046173095703125, -0.0270233154296875, -0.025299072265625, -0.0643310546875, -0.054718017578125, 0.0206756591796875, 0.0156707763671875, -0.018646240234375, 0.040679931640625, 0.09246826171875, -0.04071044921875, -0.005374908447265625, -0.0294189453125, -0.005161285400390625, -0.015289306640625, -0.039276123046875, 0.0238189697265625, 0.0236053466796875, -0.0038318634033203125, 0.0188751220703125, 0.0687255859375, 0.031219482421875, 0.019866943359375, 0.06085205078125, -0.01152801513671875, -0.021484375, -0.0207672119140625, 0.039154052734375, -0.0195159912109375, 0.001842498779296875, -0.00969696044921875, 0.012603759765625, 0.0005078315734863281, 0.0262451171875, 0.046539306640625, -0.0657958984375, 0.01287841796875, 0.00433349609375, -0.019775390625, -0.071533203125, 0.0288543701171875, -0.04937744140625, -0.044464111328125, 0.042144775390625, 0.048858642578125, 0.0184783935546875, 0.018829345703125, 0.01898193359375, 0.0213623046875, 0.004917144775390625, 0.03057861328125, -0.0504150390625, 0.038604736328125, 0.0238189697265625, -0.0060272216796875, 0.0225830078125, 0.0185089111328125, 0.031585693359375, 0.0036296844482421875, 0.00007468461990356445, -0.006591796875, -0.0231475830078125, 0.01282501220703125, -0.0650634765625, 0.0682373046875, -0.01013946533203125, -0.0328369140625, -0.07012939453125, -0.006587982177734375, -0.035858154296875, -0.007411956787109375, -0.057281494140625, -0.0068817138671875, 0.006305694580078125, 0.06439208984375, -0.03973388671875, -0.035369873046875, 0.004100799560546875, -0.083251953125, -0.033172607421875, 0.020538330078125, -0.0718994140625, 0.0506591796875, -0.0250701904296875, -0.036285400390625, 0.0126800537109375, 0.0323486328125, 0.031280517578125, -0.04046630859375, 0.01132965087890625, 0.007755279541015625, 0.046783447265625, 0.0228118896484375, -0.021942138671875, -0.0178985595703125, 0.021453857421875, -0.046905517578125, 0.0285491943359375, 0.0080413818359375, 0.03692626953125, -0.00998687744140625, 0.0086517333984375, 0.0309906005859375, 0.0400390625, -0.0860595703125, 0.03387451171875, -0.0008020401000976562, 0.0067291259765625, 0.00885009765625, 0.01201629638671875, 0.013641357421875, -0.0297698974609375, -0.0207672119140625, 0.0005664825439453125, -0.003917694091796875, 0.02532958984375, 0.0018091201782226562, -0.007244110107421875, -0.00913238525390625, 0.0270233154296875, 0.03912353515625, 0.016693115234375, -0.005672454833984375, 0.00392913818359375, -0.02398681640625, -0.02032470703125, -0.046966552734375, 0.01995849609375, 0.0196533203125, -0.01416778564453125, 0.004119873046875, 0.0019254684448242188, -0.00963592529296875, 0.00897979736328125, -0.0294036865234375, 0.01265716552734375, 0.041595458984375, 0.007175445556640625, -0.027587890625, -0.006404876708984375, -0.01371002197265625, 0.048583984375, -0.12066650390625, 0.00841522216796875, 0.0190887451171875, 0.010498046875, -0.0478515625, 0.01849365234375, -0.000047147274017333984, 0.0225830078125, -0.013031005859375, 0.0294036865234375, 0.006694793701171875, -0.0031070709228515625, -0.041656494140625, 0.00653839111328125, 0.0202484130859375, -0.04486083984375, -0.02532958984375, 0.02685546875, -0.003208160400390625, 0.0124969482421875, -0.00946044921875, 0.01141357421875, 0.02520751953125, -0.01554107666015625, 0.006561279296875, 0.0433349609375, 0.0285186767578125, -0.01751708984375, 0.0036773681640625, 0.00537872314453125, 0.02593994140625, -0.01010894775390625, -0.06024169921875, 0.015869140625, 0.03436279296875, 0.00534820556640625, 0.0171356201171875, -0.004138946533203125, -0.02984619140625, 0.01390838623046875, 0.01177215576171875, -0.03741455078125, 0.00850677490234375, 0.01212310791015625, 0.01470947265625, 0.005706787109375, -0.0203857421875, -0.0168914794921875, 0.0075225830078125, 0.006679534912109375, 0.00258636474609375, 0.061767578125, -0.0316162109375, -0.01103973388671875, -0.042205810546875, -0.05584716796875, -0.005218505859375, 0.06292724609375, -0.00269317626953125, 0.01078033447265625, 0.021514892578125, 0.053070068359375, 0.007762908935546875, 0.02484130859375, -0.006969451904296875, 0.005558013916015625, 0.02838134765625, -0.01812744140625, 0.040985107421875, -0.0302581787109375, 0.041259765625, 0.040618896484375, -0.03997802734375, 0.02923583984375, 0.0018768310546875, 0.03485107421875, 0.005413055419921875, 0.01306915283203125, -0.005901336669921875, -0.0272064208984375, -0.018280029296875, -0.0203704833984375, 0.0318603515625, 0.07196044921875, 0.019012451171875, -0.0303497314453125, 0.03192138671875, 0.05096435546875, -0.01654052734375, -0.03936767578125, -0.00576019287109375, -0.036224365234375, 0.01123046875, 0.0004563331604003906, -0.003627777099609375, -0.010467529296875, 0.0093994140625, 0.011688232421875, 0.046234130859375, -0.07623291015625, -0.08001708984375, -0.0780029296875, -0.08123779296875, -0.045928955078125, 0.0022678375244140625, -0.02783203125, -0.00899505615234375, 0.03143310546875, -0.004852294921875, -0.034423828125, -0.00934600830078125, 0.027557373046875, 0.01445770263671875, -0.024444580078125, -0.01094818115234375, -0.021148681640625, 0.01409912109375, 0.004383087158203125, 0.002552032470703125, 0.00945281982421875, 0.0005474090576171875, -0.0205078125, -0.0149688720703125, 0.004703521728515625, -0.00337982177734375, 0.027587890625, 0.0244293212890625, 0.01141357421875, 0.026580810546875, -0.017669677734375, -0.0662841796875, -0.0195770263671875, -0.05340576171875, 0.020538330078125, 0.0316162109375, 0.0228424072265625, -0.035858154296875, 0.029205322265625, 0.0003955364227294922, 0.008453369140625, 0.01157379150390625, -0.035614013671875, 0.025299072265625, -0.0008802413940429688, 0.005428314208984375, -0.01236724853515625, 0.0199127197265625, -0.01082611083984375, -0.0139312744140625, 0.0083160400390625, 0.0059814453125, -0.00005602836608886719, 0.035888671875, 0.01279449462890625, -0.10150146484375, 0.03997802734375, -0.054443359375, -0.017608642578125, -0.05609130859375, 0.0006394386291503906, 0.00623321533203125, 0.09332275390625, -0.045440673828125, -0.017425537109375, 0.00496673583984375, 0.0007305145263671875, -0.012237548828125, -0.0011091232299804688, -0.0379638671875, -0.0203704833984375, -0.051300048828125, 0.005462646484375, 0.006923675537109375, -0.025726318359375, -0.0018291473388671875, 0.0219268798828125, -0.0286407470703125, -0.0262603759765625, 0.036224365234375, -0.006671905517578125, 0.023681640625, -0.0008463859558105469, 0.01271820068359375, -0.004795074462890625, -0.01093292236328125, -0.0161285400390625, -0.060882568359375, -0.03131103515625, 0.002872467041015625, 0.0595703125, 0.0155181884765625, -0.031463623046875, -0.00732421875, 0.04901123046875, 0.039031982421875, 0.0275726318359375, 0.01430511474609375, -0.0133056640625, -0.014617919921875, -0.00035691261291503906, 0.01384735107421875, -0.0228729248046875, -0.005207061767578125, -0.01247406005859375, -0.02978515625, -0.006450653076171875, -0.037750244140625, -0.01171875, 0.0229339599609375, -0.0237579345703125, -0.0804443359375, -0.07470703125, -0.043609619140625, -0.010406494140625, -0.006877899169921875, 0.003139495849609375, -0.0740966796875, -0.0826416015625, 0.049224853515625, 0.017669677734375, -0.01531982421875, -0.006633758544921875, 0.07275390625, 0.020599365234375, -0.031890869140625, -0.01128387451171875, 0.00348663330078125, 0.01557159423828125, 0.0249786376953125, 0.03363037109375, -0.00015985965728759766, 0.0013723373413085938, 0.02923583984375, -0.0005102157592773438, 0.0157318115234375, -0.028411865234375, 0.061614990234375, -0.029083251953125, -0.05804443359375, 0.051055908203125, -0.048614501953125, -0.0004968643188476562, 0.034515380859375, 0.00829315185546875, -0.034698486328125, -0.00960540771484375, 0.048095703125, 0.00682830810546875, 0.0037403106689453125, -0.0489501953125, 0.014251708984375, -0.01088714599609375, 0.01558685302734375, 0.032257080078125, 0.038116455078125, -0.0174407958984375, -0.0196685791015625, -0.0072784423828125, 0.0165863037109375, -0.0164337158203125, -0.00496673583984375, -0.00701141357421875, 0.037628173828125, -0.028076171875, 0.0031070709228515625, -0.0066375732421875, 0.0034694671630859375, 0.019287109375, 0.0028362274169921875, -0.0272979736328125, -0.0189056396484375, -0.0001569986343383789, 0.01259613037109375, 0.0031070709228515625, -0.0163116455078125, 0.00803375244140625, 0.0101776123046875, -0.004680633544921875, 0.0127716064453125, -0.018707275390625, -0.002262115478515625, -0.0299835205078125, -0.0213165283203125, 0.0007228851318359375, -0.01403045654296875, 0.0229034423828125, 0.042755126953125, -0.0022792816162109375, 0.0169219970703125, -0.0200347900390625, -0.0121002197265625, -0.026702880859375, 0.03570556640625, 0.0224761962890625, -0.007381439208984375, 0.01537322998046875, -0.0030765533447265625, 0.04132080078125, -0.056671142578125, -0.039703369140625, 0.033966064453125, 0.06256103515625, -0.01751708984375, -0.0187835693359375, 0.014068603515625, -0.005191802978515625, -0.0286102294921875, -0.01502227783203125, -0.045654296875, -0.026336669921875, -0.0238800048828125, -0.01018524169921875, 0.02471923828125, 0.0157318115234375, -0.04852294921875, 0.037567138671875, -0.0762939453125, 0.024383544921875, 0.04473876953125, -0.0294647216796875, 0.0169525146484375, 0.00897216796875, -0.038055419921875, -0.011993408203125, 0.00447845458984375, -0.04315185546875, -0.0305023193359375, -0.01371002197265625, -0.01229095458984375, 0.02947998046875, -0.0266265869140625, 0.025787353515625, -0.023101806640625, 0.002166748046875, 0.024383544921875, 0.0048370361328125, 0.0760498046875, 0.036163330078125, -0.032196044921875, 0.0038394927978515625, -0.06109619140625, -0.029998779296875, -0.07403564453125, -0.051300048828125, -0.054168701171875, 0.015777587890625, -0.0111083984375, -0.01198577880859375, 0.0260009765625, 0.02545166015625, -0.038726806640625, 0.033233642578125, 0.0192718505859375, -0.01517486572265625, -0.023773193359375, 0.07489013671875, -0.0260467529296875, 0.044281005859375, -0.0323486328125, -0.020416259765625, -0.038330078125, 0.021392822265625, -0.01146697998046875, -0.037353515625, 0.015960693359375, 0.000035762786865234375, -0.00832366943359375, 0.02001953125, 0.0703125, 0.024566650390625, 0.01140594482421875, -0.005558013916015625, 0.00434112548828125, -0.01482391357421875, -0.0017633438110351562, -0.01342010498046875, 0.00013971328735351562, 0.0092010498046875, -0.0009288787841796875, 0.039398193359375, 0.01373291015625, -0.0404052734375, 0.01702880859375, 0.007022857666015625, 0.03009033203125, 0.0204620361328125, -0.07733154296875, 0.06011962890625, 0.021148681640625, -0.0024089813232421875, 0.0205535888671875, -0.0265655517578125, 0.01433563232421875, -0.00446319580078125, 0.017364501953125, 0.029266357421875, -0.0009245872497558594, 0.03570556640625, -0.01027679443359375, -0.016448974609375, -0.005435943603515625, -0.032135009765625, -0.051483154296875, 0.01099395751953125, -0.0031986236572265625, -0.0276031494140625, -0.01221466064453125, 0.007419586181640625, -0.006195068359375, -0.0440673828125, 0.0160675048828125, -0.03900146484375, -0.01294708251953125, -0.0252685546875, -0.02166748046875, -0.03839111328125, -0.014007568359375, 0.04052734375, 0.008209228515625, -0.0069732666015625, 0.07879638671875, 0.018035888671875, 0.0010156631469726562, -0.02923583984375, -0.0210113525390625, 0.0208740234375, -0.0009207725524902344, 0.0106201171875, -0.016265869140625, -0.01456451416015625, 0.0131378173828125, 0.03167724609375, -0.037200927734375, 0.0132904052734375, 0.0297088623046875, -0.0181884765625, -0.00437164306640625, 0.048828125, -0.037750244140625, 0.04644775390625, -0.0022487640380859375, -0.05694580078125, 0.021453857421875, 0.00528717041015625, -0.02862548828125, -0.00608062744140625, -0.045501708984375, -0.0018978118896484375, -0.061065673828125, 0.04339599609375, -0.0078277587890625, -0.03570556640625, 0.02532958984375, -0.0135345458984375, -0.00905609130859375, 0.03045654296875, 0.042938232421875, -0.016326904296875, 0.0093231201171875, 0.0115814208984375, -0.0279693603515625, 0.002239227294921875, 0.01543426513671875, -0.0120697021484375, -0.0133209228515625, 0.004245758056640625, -0.06201171875, 0.019622802734375, 0.0041351318359375, 0.033660888671875, 0.0265655517578125, -0.0013971328735351562, -0.0194854736328125, -0.031494140625, -0.01279449462890625, 0.052215576171875, 0.058197021484375, 0.03485107421875, -0.0012216567993164062, -0.0262603759765625, 0.0290069580078125, 0.052734375, 0.05242919921875, -0.0020351409912109375, -0.0382080078125, 0.0014162063598632812, 0.07208251953125, 0.01404571533203125, -0.01366424560546875, 0.0601806640625, -0.016632080078125, -0.052032470703125, -0.01788330078125, 0.012176513671875, 0.0109710693359375, -0.01465606689453125, -0.0252532958984375, -0.007305145263671875, 0.034637451171875, 0.04925537109375, -0.019683837890625, -0.0014486312866210938, -0.01568603515625, -0.01316070556640625, 0.0333251953125, -0.044891357421875, 0.008636474609375, 0.0179290771484375, 0.03778076171875, -0.10028076171875, -0.01534271240234375, -0.039276123046875, 0.051361083984375, 0.0173492431640625, 0.017364501953125, -0.00921630859375, 0.00800323486328125, -0.00891876220703125, -0.0189056396484375, 0.00606536865234375, 0.0165557861328125, -0.049530029296875, 0.051544189453125, 0.00942230224609375, 0.0288543701171875, -0.034881591796875, 0.005161285400390625, 0.0343017578125, 0.06536865234375, -0.039581298828125, -0.05242919921875, 0.0282440185546875, 0.0187835693359375, -0.017333984375, 0.003131866455078125, -0.025390625, -0.00917816162109375, 0.05096435546875, -0.02886962890625, -0.044891357421875, 0.0024890899658203125, 0.046112060546875, -0.0083465576171875, -0.0272216796875, 0.03033447265625, -0.049530029296875, -0.02825927734375, 0.01232147216796875, 0.031951904296875, 0.049072265625, -0.004169464111328125, 0.0606689453125, -0.027008056640625, -0.016082763671875, -0.0156707763671875, 0.004039764404296875, -0.0219268798828125, 0.0246734619140625, -0.022125244140625, 0.0286865234375, -0.01107025146484375, 0.0263519287109375, 0.0322265625, 0.0013256072998046875, 0.039398193359375, 0.009307861328125, -0.035552978515625, -0.0067901611328125, 0.00821685791015625, -0.027435302734375, 0.0221099853515625, -0.04962158203125, 0.0447998046875, -0.0003597736358642578, -0.00626373291015625, -0.00966644287109375, 0.00850677490234375, 0.045440673828125, -0.00794219970703125, 0.0460205078125, 0.0084381103515625, -0.01129913330078125, 0.0609130859375, 0.0255126953125, 0.09185791015625, 0.03656005859375, -0.08685302734375, -0.03887939453125, -0.01340484619140625, -0.0335693359375, 0.0703125, 0.055999755859375, -0.0299530029296875, 0.0081939697265625, 0.008819580078125, -0.018768310546875, 0.0084075927734375, -0.003246307373046875, 0.0158233642578125, -0.01314544677734375, -0.005458831787109375, -0.0009274482727050781, -0.01328277587890625, -0.0018978118896484375, 0.0120697021484375, 0.0106201171875, 0.01399993896484375, 0.093994140625, -0.03369140625, 0.013031005859375, -0.01678466796875, 0.058990478515625, -0.08892822265625, -0.0308685302734375, 0.0823974609375, -0.04083251953125, -0.040679931640625, 0.0006265640258789062, -0.044830322265625, 0.0140533447265625, 0.042755126953125, -0.0219879150390625, 0.0162811279296875, 0.0014085769653320312, -0.0033817291259765625, -0.0328369140625, 0.007686614990234375, -0.020477294921875, -0.0294647216796875, -0.053802490234375, -0.025421142578125, 0.055084228515625, 0.058837890625, -0.005931854248046875, 0.0294952392578125, -0.02008056640625, -0.026641845703125, 0.011077880859375, -0.0247344970703125, -0.0015764236450195312, 0.0251922607421875, -0.027099609375, 0.00217437744140625, 0.054168701171875, 0.002582550048828125, 0.02520751953125, 0.0248870849609375, 0.00678253173828125, 0.052490234375, -0.0255279541015625, 0.007110595703125, -0.003662109375, -0.0033397674560546875, -0.053466796875, -0.0032024383544921875, 0.0182342529296875, -0.0174713134765625, 0.008392333984375, -0.057373046875, -0.025970458984375, -0.03631591796875, -0.00437164306640625, 0.018829345703125, -0.0167999267578125, -0.0148162841796875, -0.037506103515625, 0.01331329345703125, 0.04583740234375, 0.0034637451171875, -0.02813720703125, 0.014129638671875, -0.043731689453125, 0.047027587890625, 0.004241943359375, -0.0362548828125, 0.0155487060546875, -0.011505126953125, -0.0419921875, 0.0572509765625, -0.045867919921875, -0.08135986328125, -0.0084228515625, 0.0430908203125, 0.050323486328125, -0.047943115234375, 0.00858306884765625, 0.00829315185546875, 0.054840087890625, 0.07757568359375, 0.032257080078125, -0.0283660888671875, -0.0028133392333984375, 0.01593017578125, -0.0074920654296875, 0.00891876220703125, 0.022735595703125, -0.0041046142578125, -0.02935791015625, -0.0018205642700195312, 0.0084686279296875, 0.0228271484375, -0.0472412109375, -0.062255859375, 0.08648681640625, -0.0243072509765625, -0.0318603515625, -0.013336181640625, 0.025909423828125, -0.0296478271484375, 0.045318603515625, 0.01425933837890625, -0.01116943359375, 0.0321044921875, 0.0274200439453125, 0.012359619140625, 0.0032482147216796875, 0.022735595703125, -0.01044464111328125, 0.0023479461669921875, 0.019195556640625, 0.024871826171875, 0.007442474365234375, -0.0059356689453125, 0.00311279296875, -0.01425933837890625, 0.00868988037109375, -0.060882568359375, -0.012481689453125, -0.002223968505859375, 0.07293701171875, 0.022491455078125, -0.0019359588623046875, -0.0305938720703125, -0.0216064453125, 0.0139923095703125, 0.0110931396484375, 0.007396697998046875, -0.00567626953125, -0.0377197265625, -0.05511474609375, -0.05224609375, -0.01120758056640625, 0.0270538330078125, -0.08343505859375, 0.01261138916015625, 0.025054931640625, -0.020599365234375, -0.024017333984375, -0.00817108154296875, -0.039520263671875, 0.0008053779602050781, 0.02484130859375, 0.013031005859375, -0.005023956298828125, -0.01200103759765625, -0.004306793212890625, -0.006561279296875, -0.02911376953125, -0.0137939453125, 0.01934814453125, -0.053009033203125, -0.032135009765625, -0.03472900390625, 0.0291748046875, -0.0261077880859375, -0.005340576171875, 0.0007624626159667969, 0.0101776123046875, -0.00020229816436767578, 0.02691650390625, -0.00742340087890625, 0.028961181640625, 0.0041961669921875, 0.0085906982421875, -0.0273895263671875, 0.05853271484375, 0.00997161865234375, 0.0643310546875, 0.02099609375, -0.005863189697265625, -0.01108551025390625, 0.0540771484375, -0.0149383544921875, -0.032958984375, -0.005504608154296875, -0.03228759765625, 0.0031986236572265625, -0.011932373046875, 0.01934814453125, -0.03424072265625, 0.0106353759765625, -0.0377197265625, -0.00591278076171875, 0.0159912109375 ]
0074cd329da0d7992031b604a97122c122120415
Wordpress Stackexchange Q: Wrong image dimensions in Insert Media after add_image_size() I am creating a custom Wordpress theme based on the Bones WP theme. I'm having a problem where an image size that I've specified in functions.php using add_image_size() isn't showing the correct width x height in the Insert Media dialog. This is how I add the new image size in functions.php add_image_size( 'portfolio-image-full', 800, 400, true ); And using the existing Bones functions, this is how I make this image size appear in the Attachment Display Settings add_filter( 'image_size_names_choose', 'bones_custom_image_sizes' ); function bones_custom_image_sizes( $sizes ) { return array_merge( $sizes, array( 'portfolio-image-full' => __('Portfolio large image'), 'portfolio-image-small' => __('Portfolio small image') ) ); } But after uploading an image the 'Portfolio large image' size is 640x320, when it should be 800x400: What am I doing wrong? A: Problem solved - the image width was being limited by $content_width set to 640 in the functions.php file included with Bones WP theme. Hopefully this information will help anyone else struggling with similar problems.
Q: Wrong image dimensions in Insert Media after add_image_size() I am creating a custom Wordpress theme based on the Bones WP theme. I'm having a problem where an image size that I've specified in functions.php using add_image_size() isn't showing the correct width x height in the Insert Media dialog. This is how I add the new image size in functions.php add_image_size( 'portfolio-image-full', 800, 400, true ); And using the existing Bones functions, this is how I make this image size appear in the Attachment Display Settings add_filter( 'image_size_names_choose', 'bones_custom_image_sizes' ); function bones_custom_image_sizes( $sizes ) { return array_merge( $sizes, array( 'portfolio-image-full' => __('Portfolio large image'), 'portfolio-image-small' => __('Portfolio small image') ) ); } But after uploading an image the 'Portfolio large image' size is 640x320, when it should be 800x400: What am I doing wrong? A: Problem solved - the image width was being limited by $content_width set to 640 in the functions.php file included with Bones WP theme. Hopefully this information will help anyone else struggling with similar problems.
wordpress
{ "language": "en", "length": 169, "provenance": "stackexchange_00019.jsonl.gz:445623", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/145824" }
[ 0.0164947509765625, -0.0364990234375, 0.01354217529296875, 0.0159912109375, -0.0240631103515625, -0.025970458984375, 0.054290771484375, -0.0288848876953125, 0.0139312744140625, 0.001422882080078125, -0.014434814453125, 0.006710052490234375, -0.040313720703125, -0.031341552734375, -0.0092926025390625, -0.02154541015625, 0.043304443359375, -0.00954437255859375, 0.06829833984375, 0.0171356201171875, 0.0215301513671875, 0.046966552734375, 0.032928466796875, 0.05706787109375, 0.010345458984375, 0.0220794677734375, 0.055694580078125, -0.020843505859375, -0.00463104248046875, -0.0179443359375, 0.00887298583984375, 0.0166473388671875, 0.0325927734375, 0.01364898681640625, -0.041015625, 0.03936767578125, 0.027862548828125, -0.015411376953125, -0.0104827880859375, 0.02899169921875, 0.0196533203125, 0.007297515869140625, 0.0555419921875, 0.0021076202392578125, 0.011932373046875, -0.0594482421875, 0.06256103515625, -0.050872802734375, 0.0152587890625, -0.032440185546875, 0.04632568359375, -0.0096588134765625, 0.07611083984375, -0.01300811767578125, -0.038848876953125, -0.0174102783203125, -0.0290985107421875, 0.07305908203125, 0.0299835205078125, 0.028411865234375, -0.045013427734375, 0.026123046875, -0.0103759765625, -0.0655517578125, 0.00007218122482299805, -0.0294647216796875, 0.003070831298828125, 0.02313232421875, -0.05682373046875, -0.0249786376953125, 0.042938232421875, -0.005283355712890625, 0.00733184814453125, -0.04437255859375, -0.02471923828125, 0.04058837890625, -0.0046539306640625, -0.0145721435546875, 0.0106353759765625, -0.03448486328125, -0.004055023193359375, -0.032989501953125, -0.01119232177734375, 0.007808685302734375, 0.0162811279296875, 0.05230712890625, -0.022491455078125, -0.012542724609375, -0.0088958740234375, 0.005764007568359375, -0.02325439453125, -0.03509521484375, 0.0230560302734375, 0.0159759521484375, -0.0266571044921875, 0.0004317760467529297, 0.005374908447265625, 0.0225830078125, -0.025634765625, 0.023956298828125, 0.04498291015625, -0.059112548828125, 0.11077880859375, -0.052978515625, 0.0215606689453125, 0.025421142578125, -0.0377197265625, -0.03533935546875, 0.047943115234375, 0.03875732421875, 0.0196990966796875, 0.0335693359375, -0.040924072265625, -0.0460205078125, 0.013885498046875, 0.060455322265625, -0.0274658203125, 0.015838623046875, 0.00864410400390625, 0.01538848876953125, 0.00428009033203125, 0.018310546875, 0.01305389404296875, -0.0089111328125, 0.01076507568359375, 0.01558685302734375, -0.0220184326171875, -0.02496337890625, -0.00199127197265625, 0.029510498046875, -0.0290069580078125, 0.00023472309112548828, 0.06768798828125, 0.0210418701171875, 0.00426483154296875, -0.0218505859375, -0.00223541259765625, -0.0215301513671875, -0.0352783203125, 0.051605224609375, -0.061004638671875, -0.03338623046875, 0.03662109375, -0.0643310546875, -0.00460052490234375, 0.0261993408203125, 0.0080108642578125, 0.0173797607421875, 0.009521484375, -0.098388671875, 0.0477294921875, -0.0272216796875, 0.0266876220703125, 0.024993896484375, 0.0002872943878173828, 0.006317138671875, 0.0770263671875, -0.029693603515625, -0.031829833984375, -0.044525146484375, 0.02838134765625, 0.022857666015625, 0.030029296875, -0.0499267578125, -0.04486083984375, -0.04205322265625, -0.09930419921875, -0.0004475116729736328, 0.0262451171875, 0.02239990234375, 0.0235137939453125, -0.01136016845703125, -0.0247344970703125, 0.0105438232421875, 0.0103607177734375, 0.01038360595703125, 0.02880859375, 0.02728271484375, 0.02423095703125, 0.0244293212890625, -0.00246429443359375, -0.0164947509765625, 0.1165771484375, -0.06134033203125, 0.0050048828125, -0.0634765625, 0.0184783935546875, -0.0328369140625, 0.018890380859375, 0.008636474609375, 0.0206451416015625, 0.0231781005859375, -0.048309326171875, 0.00710296630859375, -0.026611328125, 0.017913818359375, -0.003936767578125, 0.0198211669921875, -0.0115814208984375, 0.005390167236328125, 0.02301025390625, -0.0019330978393554688, 0.0010156631469726562, -0.0037097930908203125, -0.051544189453125, 0.0089874267578125, -0.0158233642578125, 0.0248870849609375, -0.044677734375, 0.004909515380859375, 0.0277557373046875, 0.004329681396484375, -0.038055419921875, -0.003459930419921875, -0.01229095458984375, -0.0093231201171875, 0.0053253173828125, 0.0020084381103515625, -0.022705078125, 0.0032329559326171875, -0.05938720703125, -0.0178985595703125, -0.053070068359375, 0.0156707763671875, 0.0469970703125, 0.0226898193359375, -0.04083251953125, -0.01259613037109375, 0.0184783935546875, 0.0167388916015625, -0.04840087890625, 0.05615234375, -0.06402587890625, 0.005992889404296875, -0.022552490234375, -0.0275726318359375, -0.01824951171875, -0.040191650390625, 0.03466796875, 0.030364990234375, 0.03521728515625, 0.0161590576171875, 0.00647735595703125, 0.01203155517578125, 0.0679931640625, 0.0270538330078125, 0.03369140625, -0.0232391357421875, 0.0004374980926513672, 0.0156707763671875, 0.0052490234375, -0.006427764892578125, 0.01300811767578125, -0.07391357421875, 0.0196990966796875, 0.036834716796875, -0.039703369140625, -0.01042938232421875, 0.00971221923828125, 0.0474853515625, -0.03521728515625, -0.004238128662109375, 0.048095703125, -0.037139892578125, 0.0167388916015625, 0.00821685791015625, 0.01396942138671875, 0.00909423828125, -0.02252197265625, 0.0243377685546875, 0.0178985595703125, -0.01812744140625, 0.01177978515625, -0.02459716796875, -0.003047943115234375, 0.02606201171875, -0.036895751953125, 0.0224456787109375, 0.021392822265625, -0.0240631103515625, -0.0252227783203125, 0.00605010986328125, -0.058929443359375, -0.01506805419921875, -0.0257568359375, -0.10107421875, 0.0007386207580566406, 0.0181121826171875, 0.01456451416015625, -0.0063323974609375, 0.01279449462890625, 0.038055419921875, -0.003131866455078125, 0.037322998046875, -0.0090179443359375, -0.00954437255859375, 0.0176239013671875, -0.05255126953125, 0.0718994140625, -0.0504150390625, 0.0360107421875, 0.06756591796875, -0.055755615234375, 0.038543701171875, -0.0194854736328125, -0.0184478759765625, -0.0258331298828125, -0.0097198486328125, -0.026519775390625, -0.03717041015625, -0.0162353515625, 0.039215087890625, 0.01407623291015625, -0.04052734375, -0.0003371238708496094, -0.02410888671875, -0.0219879150390625, -0.010498046875, -0.051727294921875, 0.0037899017333984375, 0.00061798095703125, -0.080078125, -0.044952392578125, -0.0185394287109375, -0.05413818359375, 0.0282440185546875, 0.003772735595703125, -0.0028781890869140625, -0.00853729248046875, -0.0232696533203125, 0.0181427001953125, -0.023773193359375, -0.01058197021484375, -0.01422119140625, 0.02569580078125, -0.01806640625, 0.00395965576171875, 0.00545501708984375, 0.006549835205078125, -0.002254486083984375, 0.017791748046875, -0.005100250244140625, -0.01105499267578125, -0.0071258544921875, 0.016021728515625, -0.01064300537109375, -0.02301025390625, 0.002162933349609375, 0.067138671875, 0.0217437744140625, -0.046478271484375, 0.0025196075439453125, -0.0269622802734375, -0.074462890625, -0.03399658203125, 0.08221435546875, 0.02825927734375, -0.088623046875, 0.032684326171875, -0.07452392578125, -0.03155517578125, -0.0302734375, -0.054534912109375, 0.06622314453125, 0.02154541015625, 0.00870513916015625, 0.00458526611328125, 0.0227203369140625, -0.02630615234375, 0.003902435302734375, 0.02362060546875, -0.049407958984375, 0.042938232421875, -0.010345458984375, -0.02862548828125, -0.019195556640625, 0.0163726806640625, -0.0064697265625, 0.013336181640625, -0.0127410888671875, 0.035675048828125, 0.00653076171875, -0.01464080810546875, -0.04241943359375, -0.0195465087890625, 0.023895263671875, -0.006023406982421875, 0.053985595703125, -0.044158935546875, -0.0302734375, -0.0400390625, 0.059539794921875, -0.047698974609375, -0.0265045166015625, 0.02044677734375, 0.04248046875, -0.04620361328125, -0.05865478515625, -0.0176544189453125, -0.006633758544921875, -0.005733489990234375, -0.0032806396484375, 0.01132965087890625, -0.033782958984375, -0.005275726318359375, 0.00170135498046875, -0.0259857177734375, 0.0091400146484375, 0.035400390625, 0.0193328857421875, -0.0018463134765625, 0.0254364013671875, -0.004383087158203125, 0.0167694091796875, 0.0010833740234375, -0.015594482421875, -0.1395263671875, -0.0189971923828125, 0.00746917724609375, 0.0870361328125, -0.0399169921875, 0.0214080810546875, -0.046783447265625, 0.053436279296875, 0.032867431640625, -0.0069122314453125, 0.019805908203125, -0.0157928466796875, 0.005046844482421875, -0.023712158203125, -0.005344390869140625, -0.03515625, -0.005664825439453125, -0.042816162109375, -0.040130615234375, -0.0177154541015625, -0.01483917236328125, 0.031402587890625, -0.00719451904296875, -0.0014858245849609375, -0.044219970703125, -0.01055908203125, -0.007030487060546875, 0.049652099609375, -0.0012025833129882812, -0.0033702850341796875, -0.0311126708984375, -0.06854248046875, 0.0195770263671875, 0.0386962890625, -0.01424407958984375, -0.00909423828125, 0.0576171875, 0.0236663818359375, -0.0240936279296875, -0.03643798828125, -0.01215362548828125, 0.030853271484375, 0.035675048828125, 0.01496124267578125, 0.0029621124267578125, -0.0229949951171875, 0.028045654296875, 0.02996826171875, -0.027587890625, -0.0160675048828125, 0.07318115234375, 0.021087646484375, -0.03289794921875, 0.030731201171875, -0.005138397216796875, 0.0098876953125, -0.018280029296875, -0.00139617919921875, 0.0038604736328125, 0.02117919921875, -0.02288818359375, 0.0096588134765625, 0.00031185150146484375, 0.0156707763671875, -0.02142333984375, 0.0170135498046875, 0.025146484375, -0.006023406982421875, -0.00799560546875, 0.00934600830078125, -0.0289459228515625, -0.030609130859375, 0.0115203857421875, -0.01800537109375, 0.00824737548828125, -0.03790283203125, 0.0252838134765625, 0.01262664794921875, -0.00443267822265625, -0.01453399658203125, 0.00905609130859375, -0.04632568359375, 0.021575927734375, -0.01025390625, -0.026275634765625, 0.035125732421875, 0.01873779296875, -0.00910186767578125, -0.003955841064453125, 0.045135498046875, 0.0304718017578125, 0.00328826904296875, -0.004482269287109375, -0.019012451171875, 0.01885986328125, -0.03167724609375, 0.046356201171875, -0.003925323486328125, -0.002094268798828125, 0.0240478515625, 0.0214691162109375, 0.01934814453125, 0.0111846923828125, -0.0012569427490234375, 0.0042724609375, 0.0253753662109375, 0.03076171875, 0.01239776611328125, -0.003902435302734375, -0.013916015625, 0.0268096923828125, 0.03533935546875, -0.0156402587890625, -0.000835418701171875, 0.014892578125, 0.0164947509765625, -0.041961669921875, -0.0294036865234375, 0.02423095703125, 0.0078125, 0.00891876220703125, 0.0374755859375, -0.022247314453125, -0.07794189453125, -0.01861572265625, 0.041015625, 0.04522705078125, -0.055084228515625, -0.038177490234375, 0.03338623046875, 0.0006146430969238281, 0.035919189453125, 0.0303802490234375, -0.037109375, 0.032073974609375, 0.0379638671875, -0.0816650390625, -0.0158538818359375, 0.001842498779296875, -0.00875091552734375, -0.058349609375, 0.006923675537109375, -0.009246826171875, 0.02349853515625, -0.0301513671875, 0.00983428955078125, -0.01611328125, -0.0230865478515625, -0.037567138671875, 0.0243072509765625, 0.0333251953125, 0.01434326171875, 0.03900146484375, -0.02655029296875, 0.0237884521484375, -0.027374267578125, 0.0718994140625, 0.0130157470703125, 0.0018482208251953125, -0.04827880859375, -0.00948333740234375, 0.0299530029296875, -0.01242828369140625, -0.0145111083984375, 0.0145721435546875, -0.00667572021484375, -0.0103912353515625, -0.0027313232421875, -0.0173492431640625, -0.014068603515625, 0.039215087890625, 0.001392364501953125, -0.01131439208984375, -0.0179595947265625, 0.0164031982421875, -0.0125274658203125, -0.0222930908203125, -0.0078277587890625, 0.002429962158203125, 0.0338134765625, -0.0034313201904296875, -0.0108642578125, 0.0247344970703125, -0.003238677978515625, -0.004150390625, -0.0110931396484375, -0.01052093505859375, -0.01605224609375, 0.07403564453125, 0.02740478515625, 0.0164337158203125, 0.060211181640625, -0.033843994140625, 0.032989501953125, 0.037872314453125, 0.0220489501953125, 0.0076446533203125, -0.044677734375, 0.0241546630859375, 0.0277557373046875, -0.03656005859375, 0.0201263427734375, 0.051177978515625, 0.0086212158203125, 0.06512451171875, -0.0018768310546875, 0.0232391357421875, 0.041656494140625, 0.00628662109375, -0.058502197265625, -0.034881591796875, -0.0099334716796875, 0.01111602783203125, 0.039154052734375, 0.0156402587890625, 0.0277099609375, 0.0222320556640625, 0.0084381103515625, 0.04644775390625, -0.01351165771484375, 0.02337646484375, -0.008544921875, -0.03472900390625, 0.0616455078125, -0.00881195068359375, 0.0208740234375, 0.04754638671875, 0.00643157958984375, 0.019500732421875, -0.01824951171875, 0.01312255859375, 0.0073394775390625, 0.0025882720947265625, -0.004726409912109375, 0.0036678314208984375, -0.007602691650390625, -0.03509521484375, -0.0203704833984375, 0.0229339599609375, -0.0074920654296875, 0.0172271728515625, 0.0374755859375, -0.035980224609375, 0.008819580078125, 0.006160736083984375, 0.0028228759765625, -0.03851318359375, -0.01369476318359375, -0.0014362335205078125, 0.016143798828125, 0.050750732421875, 0.046142578125, 0.00390625, -0.0022373199462890625, 0.028533935546875, -0.021026611328125, 0.04718017578125, -0.022705078125, 0.0311737060546875, 0.05126953125, -0.068359375, 0.0041961669921875, -0.0032329559326171875, 0.018585205078125, 0.009368896484375, 0.01332855224609375, 0.055206298828125, -0.06451416015625, 0.00919342041015625, 0.052734375, -0.00853729248046875, -0.0159454345703125, 0.03759765625, 0.05145263671875, -0.045501708984375, -0.03607177734375, 0.0482177734375, -0.048797607421875, -0.037261962890625, 0.0312347412109375, -0.04248046875, 0.05224609375, -0.018829345703125, 0.00736236572265625, -0.014739990234375, 0.0277252197265625, 0.0224609375, 0.035858154296875, -0.0233001708984375, 0.016082763671875, -0.0423583984375, -0.00711822509765625, -0.062225341796875, 0.007137298583984375, -0.033599853515625, 0.0304718017578125, 0.0237274169921875, 0.0036220550537109375, -0.03619384765625, -0.0249786376953125, 0.04010009765625, 0.07696533203125, 0.0390625, 0.003326416015625, -0.025146484375, -0.06103515625, -0.01323699951171875, 0.0183563232421875, 0.0172882080078125, -0.00435638427734375, -0.040435791015625, 0.0090789794921875, 0.00897216796875, 0.036376953125, -0.00562286376953125, 0.03363037109375, 0.008209228515625, -0.016082763671875, 0.0167694091796875, -0.050048828125, 0.028656005859375, 0.009063720703125, 0.049163818359375, 0.006793975830078125, 0.002971649169921875, 0.0009245872497558594, 0.051544189453125, 0.0232086181640625, 0.00281524658203125, 0.002384185791015625, 0.006183624267578125, 0.0028972625732421875, -0.0140533447265625, -0.01293182373046875, 0.011993408203125, 0.0005035400390625, -0.0254669189453125, -0.0211029052734375, 0.0102386474609375, -0.04150390625, -0.0208282470703125, 0.03948974609375, 0.0007491111755371094, 0.00725555419921875, -0.004192352294921875, 0.01464080810546875, 0.028900146484375, -0.01277923583984375, -0.010589599609375, -0.01080322265625, -0.03570556640625, 0.00787353515625, 0.00787353515625, -0.0186309814453125, 0.0180206298828125, -0.005130767822265625, -0.0117645263671875, -0.0257415771484375, 0.03759765625, 0.01399993896484375, -0.0229949951171875, 0.006069183349609375, -0.01143646240234375, 0.006053924560546875, -0.004150390625, 0.02978515625, 0.04388427734375, 0.0157470703125, -0.055419921875, 0.0594482421875, 0.007152557373046875, 0.05145263671875, -0.043121337890625, -0.014892578125, 0.0208282470703125, 0.0379638671875, -0.03216552734375, 0.0198211669921875, 0.0341796875, 0.02044677734375, -0.04937744140625, -0.024749755859375, 0.03179931640625, -0.031280517578125, -0.0234222412109375, -0.033203125, 0.01238250732421875, 0.05804443359375, 0.0166778564453125, 0.035736083984375, -0.01666259765625, 0.0628662109375, -0.00795745849609375, 0.0247955322265625, -0.004032135009765625, -0.034912109375, -0.0127410888671875, -0.005580902099609375, 0.058837890625, 0.0164947509765625, -0.0091400146484375, -0.0009531974792480469, -0.01470947265625, -0.028472900390625, -0.007354736328125, 0.01482391357421875, -0.0033893585205078125, 0.0316162109375, 0.0172119140625, -0.0218505859375, -0.017120361328125, -0.0006856918334960938, 0.033294677734375, -0.0001628398895263672, -0.025421142578125, 0.02081298828125, -0.03350830078125, -0.0220947265625, -0.00196075439453125, 0.0413818359375, 0.00626373291015625, 0.0989990234375, -0.032257080078125, 0.0135498046875, 0.0078277587890625, -0.01355743408203125, 0.0212554931640625, -0.00209808349609375, -0.0090484619140625, -0.00269317626953125, 0.00968170166015625, -0.0222320556640625, 0.0208587646484375, -0.041473388671875, 0.0364990234375, -0.06781005859375, -0.05859375, -0.01436614990234375, 0.034576416015625, 0.01522064208984375, 0.0174102783203125, -0.0155029296875, -0.02252197265625, -0.037353515625, -0.008087158203125, 0.0223236083984375, -0.013916015625, -0.03509521484375, 0.043182373046875, 0.03369140625, 0.00904083251953125, 0.038177490234375, -0.051116943359375, 0.0634765625, 0.034271240234375, -0.0038967132568359375, -0.05548095703125, 0.0021820068359375, -0.0027141571044921875, -0.04248046875, 0.0308837890625, 0.0283660888671875, 0.0006823539733886719, -0.0080413818359375, 0.077880859375, -0.0096893310546875, 0.0301971435546875, -0.037567138671875, -0.02691650390625, 0.05230712890625, 0.0157623291015625, -0.0205230712890625, 0.00931549072265625, -0.0010080337524414062, -0.00772857666015625, -0.018707275390625, 0.0139617919921875, 0.0181884765625, 0.01934814453125, -0.002307891845703125, -0.0200653076171875, 0.065185546875, 0.021514892578125, -0.041290283203125, 0.0105133056640625, -0.033935546875, -0.020904541015625, 0.040374755859375, -0.0386962890625, 0.0321044921875, 0.06207275390625, -0.0236053466796875, -0.0160675048828125, -0.011474609375, -0.018463134765625, -0.027618408203125, 0.0238494873046875, 0.02337646484375, -0.02685546875, 0.0013742446899414062, 0.01081085205078125, 0.0166473388671875, 0.055206298828125, 0.0014295578002929688, -0.01282501220703125, 0.007904052734375, 0.0109100341796875, -0.040557861328125, -0.044891357421875, 0.0273590087890625, -0.06500244140625, -0.000797271728515625, 0.0124053955078125, 0.0015344619750976562, 0.0221099853515625, -0.034576416015625, -0.07293701171875, -0.0006093978881835938, -0.005535125732421875, -0.03765869140625, -0.006328582763671875, 0.00356292724609375, -0.0196685791015625, 0.037994384765625, 0.000033795833587646484, -0.017059326171875, 0.0178375244140625, 0.0265045166015625, -0.0012636184692382812, 0.003025054931640625, 0.0523681640625, -0.032135009765625, 0.00266265869140625, -0.0158843994140625, 0.00537109375, -0.0157470703125, 0.00466156005859375, -0.0191802978515625, 0.01192474365234375, 0.01088714599609375, -0.049713134765625, -0.042877197265625, -0.00817108154296875, 0.005523681640625, -0.0262451171875, 0.00981903076171875, 0.019134521484375, 0.028961181640625, 0.056549072265625, 0.0147857666015625, 0.005695343017578125, -0.05517578125, 0.0152130126953125, -0.01641845703125, 0.02197265625, -0.0023288726806640625, -0.00556182861328125, -0.06103515625, -0.037109375, 0.0372314453125, -0.006290435791015625, 0.038818359375, -0.0219268798828125, -0.00850677490234375, -0.005847930908203125, -0.005756378173828125, -0.0261993408203125, -0.038726806640625, 0.0180511474609375, 0.061004638671875, -0.035797119140625, -0.002048492431640625, -0.032012939453125, 0.007022857666015625, 0.0254364013671875, -0.052825927734375, -0.015106201171875, 0.040069580078125, -0.03912353515625, -0.004352569580078125, 0.00015842914581298828, 0.041656494140625, -0.022216796875, 0.00984954833984375, 0.03570556640625, 0.0009860992431640625, -0.029510498046875, 0.018218994140625, 0.036773681640625, -0.022613525390625, -0.04998779296875, 0.034698486328125, -0.04150390625, -0.001129150390625, -0.0303192138671875, -0.004009246826171875, -0.0014238357543945312, 0.02093505859375, 0.02886962890625, 0.0174407958984375, 0.004642486572265625, 0.0166778564453125, -0.0308074951171875, -0.0169830322265625, 0.0085601806640625, 0.00966644287109375, 0.0004553794860839844, 0.01015472412109375 ]
3cb30a895f32a682b25ec8c121f916f22d0302d6
Wordpress Stackexchange Q: How to get featured post title & image using JSON API? Is there any possibility to get featured post title and image using the JSON API. I tried using this: example.com/?json=the_post_thumbnails&count=3 But instead of recent posts, I get featured posts. A: I made a shortcut to my image by adding it directly to the API response. //Add in functions.php, this hook is for my 'regions' post type add_action( 'rest_api_init', 'create_api_posts_meta_field' ); function create_api_posts_meta_field() { register_rest_field( 'regions', 'group', array( 'get_callback' => 'get_post_meta_for_api', 'schema' => null, ) ); } //Use the post ID to query the image and add it to your payload. function get_post_meta_for_api( $object ) { $post_id = $object['id']; $post_meta = get_post_meta( $post_id ); $post_image = get_post_thumbnail_id( $post_id ); $post_meta["group_image"] = wp_get_attachment_image_src($post_image)[0]; //var_dump(wp_get_attachment_image($post_image)); die(); //Different image codex return different values, narrow in on what you want return $post_meta; }
Q: How to get featured post title & image using JSON API? Is there any possibility to get featured post title and image using the JSON API. I tried using this: example.com/?json=the_post_thumbnails&count=3 But instead of recent posts, I get featured posts. A: I made a shortcut to my image by adding it directly to the API response. //Add in functions.php, this hook is for my 'regions' post type add_action( 'rest_api_init', 'create_api_posts_meta_field' ); function create_api_posts_meta_field() { register_rest_field( 'regions', 'group', array( 'get_callback' => 'get_post_meta_for_api', 'schema' => null, ) ); } //Use the post ID to query the image and add it to your payload. function get_post_meta_for_api( $object ) { $post_id = $object['id']; $post_meta = get_post_meta( $post_id ); $post_image = get_post_thumbnail_id( $post_id ); $post_meta["group_image"] = wp_get_attachment_image_src($post_image)[0]; //var_dump(wp_get_attachment_image($post_image)); die(); //Different image codex return different values, narrow in on what you want return $post_meta; } A: Tty this one jQuery.getJSON('/latest-post-as-json/', function(data) { jQuery('#externalBlock').append('<h1>'+data.post_title+'</h1>'); jQuery('#externalBlock').append(data.post_content); //etc });
wordpress
{ "language": "en", "length": 151, "provenance": "stackexchange_00019.jsonl.gz:445698", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/146118" }
[ 0.019195556640625, -0.034515380859375, -0.003139495849609375, -0.0179901123046875, 0.006103515625, -0.01519775390625, 0.044647216796875, -0.01361083984375, 0.0224761962890625, 0.0361328125, -0.0115203857421875, 0.009307861328125, -0.0247344970703125, -0.00577545166015625, -0.0408935546875, -0.0189361572265625, 0.06463623046875, -0.0142059326171875, 0.058135986328125, 0.02740478515625, 0.004993438720703125, 0.06707763671875, 0.0151214599609375, 0.0362548828125, 0.0265960693359375, -0.004589080810546875, 0.040985107421875, -0.0170745849609375, 0.012664794921875, -0.0129852294921875, 0.019561767578125, -0.00894927978515625, 0.0008859634399414062, 0.034820556640625, 0.0100860595703125, 0.01126861572265625, 0.02789306640625, 0.005779266357421875, 0.006866455078125, 0.034820556640625, -0.0064239501953125, 0.01629638671875, 0.0295562744140625, 0.00399017333984375, -0.004070281982421875, -0.00804901123046875, -0.015716552734375, -0.0482177734375, 0.0095062255859375, 0.01070404052734375, 0.0078277587890625, -0.0013513565063476562, 0.00887298583984375, -0.0083160400390625, -0.00690460205078125, -0.023223876953125, -0.01462554931640625, 0.0221405029296875, 0.06304931640625, -0.0318603515625, -0.057708740234375, -0.04840087890625, 0.0364990234375, -0.03607177734375, 0.026458740234375, -0.00004929304122924805, 0.04571533203125, 0.018768310546875, -0.039154052734375, 0.02288818359375, 0.012359619140625, -0.0291595458984375, -0.00577545166015625, -0.0272369384765625, -0.01554107666015625, 0.016448974609375, -0.02392578125, -0.03802490234375, 0.0020656585693359375, 0.0026187896728515625, 0.0150604248046875, -0.0246124267578125, 0.00811767578125, 0.00917816162109375, 0.022247314453125, 0.052825927734375, -0.0066986083984375, -0.022430419921875, -0.0250701904296875, -0.040496826171875, -0.01715087890625, -0.11151123046875, -0.052825927734375, 0.0670166015625, 0.0239105224609375, -0.025848388671875, 0.0299072265625, 0.0266876220703125, -0.021942138671875, 0.0135040283203125, 0.0168914794921875, -0.04803466796875, 0.048370361328125, -0.042236328125, 0.014892578125, -0.032073974609375, -0.020050048828125, -0.06060791015625, 0.031982421875, 0.04046630859375, -0.03436279296875, 0.048858642578125, 0.0157623291015625, 0.011627197265625, -0.0267486572265625, -0.0111846923828125, -0.0377197265625, 0.005130767822265625, -0.016357421875, -0.01114654541015625, 0.0118255615234375, -0.0018186569213867188, 0.057952880859375, -0.0237579345703125, 0.042266845703125, 0.0526123046875, -0.057952880859375, -0.05419921875, -0.011688232421875, 0.031494140625, -0.00904083251953125, 0.010772705078125, 0.0211334228515625, -0.00008469820022583008, -0.018157958984375, -0.011749267578125, -0.0286865234375, -0.0165863037109375, -0.004856109619140625, -0.0020961761474609375, 0.0003495216369628906, -0.002716064453125, 0.0648193359375, -0.0184173583984375, -0.0078887939453125, -0.0125732421875, -0.0005316734313964844, 0.033233642578125, 0.0099334716796875, -0.0221405029296875, 0.0310821533203125, -0.0276031494140625, -0.006931304931640625, 0.0322265625, 0.03704833984375, -0.003543853759765625, 0.06396484375, -0.0323486328125, 0.019287109375, -0.0345458984375, 0.019622802734375, 0.005313873291015625, 0.0183563232421875, 0.0220489501953125, -0.0055999755859375, -0.00215911865234375, -0.00769805908203125, -0.0018177032470703125, 0.00858306884765625, 0.05133056640625, 0.035675048828125, -0.00579833984375, -0.0298309326171875, -0.0311279296875, -0.02728271484375, -0.03900146484375, 0.0006952285766601562, -0.00025200843811035156, 0.0197906494140625, 0.0082550048828125, -0.02178955078125, -0.028533935546875, 0.042144775390625, -0.0192108154296875, -0.023651123046875, 0.049652099609375, 0.010345458984375, 0.054931640625, -0.0013551712036132812, 0.00736236572265625, 0.02154541015625, 0.0214385986328125, -0.0247955322265625, -0.001628875732421875, 0.004302978515625, -0.036865234375, 0.002010345458984375, -0.03265380859375, -0.00421142578125, 0.03167724609375, 0.00826263427734375, -0.0026073455810546875, -0.0025787353515625, 0.0187530517578125, -0.022613525390625, -0.0093841552734375, -0.01593017578125, 0.00972747802734375, -0.03363037109375, 0.0281524658203125, 0.0198822021484375, 0.001979827880859375, -0.008575439453125, 0.002750396728515625, 0.032806396484375, 0.027008056640625, -0.0313720703125, -0.0014867782592773438, -0.01776123046875, 0.034454345703125, -0.0265960693359375, 0.0107574462890625, -0.037567138671875, 0.005126953125, 0.07659912109375, 0.01142120361328125, -0.0219268798828125, -0.020477294921875, 0.06439208984375, 0.014373779296875, -0.03228759765625, 0.0181121826171875, -0.0024261474609375, -0.0032558441162109375, -0.023956298828125, 0.0009398460388183594, 0.022705078125, -0.05352783203125, 0.015045166015625, 0.054412841796875, 0.0401611328125, 0.053680419921875, 0.000004231929779052734, -0.015838623046875, 0.06781005859375, -0.0008487701416015625, 0.0266876220703125, -0.04095458984375, 0.0099334716796875, 0.022308349609375, -0.028167724609375, 0.0017757415771484375, 0.031402587890625, -0.07330322265625, 0.02581787109375, 0.05169677734375, -0.017059326171875, -0.0196685791015625, -0.0156707763671875, 0.034576416015625, 0.01922607421875, 0.041259765625, -0.0012178421020507812, 0.00893402099609375, 0.0186004638671875, 0.0290374755859375, 0.041412353515625, 0.0472412109375, -0.01629638671875, -0.004779815673828125, 0.0036258697509765625, 0.036041259765625, 0.01117706298828125, 0.07879638671875, 0.03338623046875, 0.01239013671875, -0.01555633544921875, -0.049468994140625, 0.033294677734375, 0.03961181640625, 0.005886077880859375, 0.0002186298370361328, -0.0096282958984375, 0.002960205078125, 0.004390716552734375, -0.0270843505859375, 0.024505615234375, 0.0309600830078125, 0.015869140625, 0.026824951171875, 0.01983642578125, 0.049072265625, 0.0256500244140625, 0.0209503173828125, 0.0218048095703125, 0.014129638671875, 0.003528594970703125, -0.035369873046875, 0.0391845703125, -0.0306549072265625, 0.030120849609375, 0.051422119140625, -0.0244903564453125, 0.025726318359375, -0.00983428955078125, -0.0426025390625, -0.040771484375, 0.015838623046875, -0.01195526123046875, -0.043548583984375, -0.038421630859375, 0.050506591796875, 0.0239410400390625, 0.04473876953125, 0.017120361328125, -0.036590576171875, 0.0190887451171875, 0.0273284912109375, -0.10467529296875, -0.130859375, 0.0261077880859375, -0.04913330078125, -0.022979736328125, -0.0166778564453125, -0.055877685546875, 0.0003190040588378906, 0.01094818115234375, -0.01081085205078125, -0.01151275634765625, 0.016845703125, -0.0287933349609375, 0.006748199462890625, -0.052337646484375, 0.005046844482421875, -0.01043701171875, 0.0166473388671875, 0.0017347335815429688, 0.050933837890625, 0.017181396484375, -0.003955841064453125, 0.0172271728515625, 0.0828857421875, -0.02203369140625, -0.0321044921875, 0.0237884521484375, 0.00952911376953125, -0.0246734619140625, 0.016845703125, -0.01303863525390625, 0.0289459228515625, -0.03375244140625, -0.01427459716796875, -0.03271484375, 0.003063201904296875, -0.0079193115234375, 0.0306396484375, 0.03704833984375, 0.0107879638671875, 0.03240966796875, -0.031005859375, -0.01611328125, -0.03558349609375, -0.0579833984375, -0.0151519775390625, 0.0458984375, 0.0239105224609375, -0.0245513916015625, 0.0084686279296875, 0.00711822509765625, 0.01983642578125, -0.0057830810546875, -0.01007080078125, 0.07476806640625, -0.0018968582153320312, 0.007465362548828125, -0.0256500244140625, -0.0035991668701171875, -0.00553131103515625, 0.0347900390625, 0.004566192626953125, 0.037445068359375, -0.03240966796875, 0.03955078125, -0.057769775390625, -0.0352783203125, 0.06329345703125, 0.01216888427734375, 0.0255126953125, -0.021514892578125, -0.054412841796875, -0.012847900390625, 0.07794189453125, -0.025390625, -0.023223876953125, -0.03485107421875, -0.01552581787109375, 0.0050201416015625, 0.016693115234375, -0.03240966796875, -0.00006604194641113281, -0.06658935546875, -0.00571441650390625, -0.0164947509765625, -0.0308380126953125, 0.0036830902099609375, 0.0052947998046875, -0.035247802734375, -0.034515380859375, 0.0310211181640625, -0.0211639404296875, -0.006839752197265625, 0.04522705078125, -0.0310821533203125, 0.0225982666015625, -0.057586669921875, -0.000036656856536865234, -0.05926513671875, -0.01453399658203125, -0.0030956268310546875, 0.057891845703125, 0.00010561943054199219, -0.01009368896484375, -0.045989990234375, 0.0213470458984375, 0.010650634765625, 0.0015621185302734375, -0.0200347900390625, -0.0139007568359375, -0.006191253662109375, 0.0113983154296875, 0.004039764404296875, -0.006877899169921875, -0.008758544921875, -0.04620361328125, -0.06890869140625, -0.043853759765625, -0.01068115234375, 0.026214599609375, 0.0226593017578125, -0.013580322265625, -0.0216522216796875, -0.0231781005859375, 0.040435791015625, 0.031646728515625, 0.0008497238159179688, 0.0164794921875, -0.0428466796875, -0.0087127685546875, 0.054443359375, 0.0299530029296875, -0.0250091552734375, 0.0035991668701171875, 0.0517578125, 0.0181884765625, -0.048858642578125, -0.09210205078125, 0.01120758056640625, 0.033477783203125, -0.0289764404296875, 0.019989013671875, 0.005519866943359375, -0.04095458984375, 0.08026123046875, -0.006134033203125, 0.019317626953125, -0.03790283203125, 0.0249176025390625, 0.00827789306640625, 0.01499176025390625, -0.01158905029296875, 0.006343841552734375, 0.0185394287109375, 0.01122283935546875, -0.007556915283203125, -0.00970458984375, -0.01116943359375, 0.013763427734375, -0.03375244140625, 0.061431884765625, 0.0045928955078125, -0.037384033203125, -0.01058197021484375, 0.061370849609375, 0.0248565673828125, 0.0257110595703125, -0.0021800994873046875, 0.028533935546875, 0.0338134765625, 0.0013227462768554688, -0.0207061767578125, -0.019805908203125, 0.005184173583984375, 0.0333251953125, -0.03961181640625, -0.002613067626953125, -0.01500701904296875, -0.00628662109375, 0.03851318359375, -0.032257080078125, -0.059234619140625, -0.031982421875, -0.028656005859375, 0.04248046875, 0.02032470703125, -0.0093231201171875, 0.0218658447265625, 0.05584716796875, -0.037139892578125, -0.02484130859375, -0.0279083251953125, 0.02191162109375, -0.050079345703125, -0.0016260147094726562, 0.0203399658203125, -0.0172271728515625, -0.001766204833984375, 0.089111328125, -0.046966552734375, 0.06365966796875, -0.005542755126953125, 0.0104522705078125, 0.006771087646484375, 0.04901123046875, -0.005035400390625, -0.0015850067138671875, -0.02410888671875, 0.06732177734375, 0.0243682861328125, -0.017242431640625, -0.0014219284057617188, 0.04364013671875, 0.04046630859375, -0.0533447265625, -0.049224853515625, 0.03375244140625, -0.025115966796875, -0.039642333984375, -0.005947113037109375, -0.053314208984375, -0.044342041015625, -0.0271453857421875, 0.03045654296875, 0.053375244140625, 0.01654052734375, -0.006420135498046875, 0.022430419921875, 0.030853271484375, 0.022186279296875, -0.04901123046875, -0.03680419921875, 0.0294036865234375, 0.04449462890625, -0.06121826171875, -0.00775909423828125, 0.0030536651611328125, 0.035400390625, -0.007717132568359375, -0.022003173828125, -0.05535888671875, 0.061187744140625, -0.0213470458984375, 0.0019664764404296875, -0.0095977783203125, 0.01561737060546875, -0.041839599609375, 0.0030059814453125, 0.04522705078125, 0.0203857421875, -0.0081787109375, 0.006275177001953125, -0.0338134765625, 0.008575439453125, 0.1036376953125, -0.034027099609375, 0.008056640625, -0.07855224609375, 0.01629638671875, 0.041717529296875, 0.012542724609375, -0.007415771484375, 0.022705078125, 0.0107879638671875, -0.0126800537109375, 0.10113525390625, -0.0013360977172851562, 0.0299072265625, -0.0100860595703125, 0.04595947265625, 0.0084991455078125, -0.00970458984375, -0.04693603515625, -0.00984954833984375, -0.041748046875, -0.08892822265625, 0.0254974365234375, 0.05413818359375, -0.007305145263671875, 0.033203125, -0.006072998046875, 0.031402587890625, 0.00414276123046875, -0.004032135009765625, -0.00592041015625, -0.0190887451171875, 0.01293182373046875, 0.00736236572265625, -0.01253509521484375, 0.02105712890625, -0.04638671875, -0.00244140625, -0.0009717941284179688, -0.01678466796875, 0.04010009765625, -0.036834716796875, 0.006397247314453125, 0.059814453125, -0.006610870361328125, 0.023529052734375, 0.09686279296875, 0.0322265625, 0.06707763671875, 0.04425048828125, 0.008392333984375, -0.0097198486328125, 0.0294952392578125, -0.00946044921875, -0.07269287109375, 0.028717041015625, 0.00865936279296875, 0.0006761550903320312, 0.0340576171875, -0.017303466796875, 0.017364501953125, -0.0625, 0.0301361083984375, 0.055419921875, 0.02105712890625, 0.0080413818359375, -0.0345458984375, 0.045074462890625, 0.019775390625, -0.00890350341796875, -0.00738525390625, 0.0097503662109375, -0.0268707275390625, -0.0236968994140625, -0.0006246566772460938, 0.0012102127075195312, -0.0018835067749023438, -0.01678466796875, -0.0010690689086914062, -0.0142364501953125, -0.050628662109375, -0.0312347412109375, 0.021697998046875, -0.03448486328125, -0.016204833984375, 0.0288543701171875, -0.01947021484375, -0.0015649795532226562, -0.061126708984375, 0.005466461181640625, 0.0029163360595703125, -0.0206451416015625, -0.00628662109375, 0.01959228515625, 0.030426025390625, 0.06878662109375, -0.01143646240234375, -0.005031585693359375, 0.0479736328125, -0.027618408203125, 0.0137939453125, -0.005367279052734375, -0.02398681640625, 0.00870513916015625, -0.006809234619140625, 0.006725311279296875, -0.026611328125, 0.021820068359375, -0.007785797119140625, -0.018280029296875, 0.0609130859375, -0.002803802490234375, -0.03094482421875, 0.014678955078125, 0.0223388671875, -0.0157318115234375, -0.00390625, 0.03533935546875, -0.0181121826171875, 0.0274810791015625, -0.00048279762268066406, -0.0018033981323242188, -0.026580810546875, -0.0180511474609375, -0.060516357421875, 0.06353759765625, -0.0090789794921875, 0.008697509765625, -0.0220794677734375, 0.0282135009765625, 0.007762908935546875, -0.00655364990234375, -0.03314208984375, 0.03070068359375, -0.056549072265625, 0.0274505615234375, -0.038970947265625, 0.0281524658203125, -0.0018711090087890625, -0.0020656585693359375, 0.046356201171875, 0.01502227783203125, -0.0212860107421875, -0.0277099609375, 0.005664825439453125, 0.0309906005859375, -0.0206451416015625, 0.0310821533203125, 0.0106201171875, 0.049163818359375, 0.046600341796875, -0.04351806640625, 0.01459503173828125, -0.00038886070251464844, -0.0177001953125, 0.039337158203125, 0.04376220703125, 0.0601806640625, 0.054656982421875, 0.035003662109375, -0.01953125, 0.0289154052734375, 0.050811767578125, -0.047515869140625, -0.001087188720703125, 0.0287322998046875, 0.01367950439453125, -0.00699615478515625, 0.015380859375, -0.021392822265625, 0.035125732421875, 0.01544189453125, 0.04180908203125, -0.01305389404296875, 0.0186920166015625, -0.0003674030303955078, -0.0164337158203125, 0.01128387451171875, 0.047332763671875, -0.0511474609375, 0.039520263671875, 0.01210784912109375, 0.024932861328125, -0.056884765625, -0.00649261474609375, 0.06756591796875, 0.080078125, -0.04608154296875, -0.045257568359375, 0.01438140869140625, 0.0084991455078125, 0.00965118408203125, 0.005985260009765625, -0.00982666015625, -0.0439453125, 0.02777099609375, -0.0460205078125, 0.00428009033203125, 0.049774169921875, 0.03179931640625, 0.00930023193359375, 0.001850128173828125, -0.04583740234375, -0.016082763671875, -0.0211639404296875, 0.0181732177734375, 0.03167724609375, 0.04736328125, -0.0088958740234375, 0.057373046875, -0.03369140625, 0.000006496906280517578, 0.005512237548828125, 0.033172607421875, 0.025848388671875, -0.0246124267578125, -0.007122039794921875, -0.04583740234375, 0.0196685791015625, 0.01340484619140625, 0.0295867919921875, -0.0083465576171875, 0.0343017578125, 0.022857666015625, -0.06231689453125, -0.00614166259765625, 0.0165863037109375, -0.0264892578125, -0.0037441253662109375, -0.0335693359375, -0.00962066650390625, 0.00836181640625, -0.0154571533203125, 0.024169921875, -0.0333251953125, 0.0292510986328125, -0.04473876953125, 0.054718017578125, -0.020263671875, -0.00765228271484375, -0.0029735565185546875, -0.032958984375, 0.052215576171875, -0.035308837890625, -0.058929443359375, 0.0190277099609375, -0.057891845703125, -0.05328369140625, 0.002231597900390625, 0.014892578125, -0.032928466796875, 0.048919677734375, -0.044036865234375, -0.004207611083984375, 0.0184478759765625, -0.0139007568359375, 0.0038471221923828125, -0.01219940185546875, 0.01629638671875, -0.0244903564453125, -0.032501220703125, -0.034698486328125, -0.0146484375, 0.045379638671875, -0.005046844482421875, 0.040069580078125, -0.021759033203125, 0.0236663818359375, -0.0443115234375, -0.018096923828125, -0.02154541015625, -0.017974853515625, -0.0043792724609375, 0.00466156005859375, -0.0179290771484375, -0.0157623291015625, -0.0222015380859375, -0.0018367767333984375, 0.055816650390625, -0.0008997917175292969, -0.0238494873046875, -0.004627227783203125, 0.03216552734375, -0.0107574462890625, 0.0246429443359375, -0.0296478271484375, -0.00885772705078125, -0.05859375, -0.037994384765625, 0.038482666015625, -0.003509521484375, -0.0032501220703125, 0.005596160888671875, 0.04559326171875, -0.006927490234375, 0.027374267578125, -0.0066375732421875, 0.0782470703125, 0.03759765625, -0.058441162109375, 0.029083251953125, -0.030029296875, -0.017486572265625, -0.0010013580322265625, 0.008270263671875, -0.0191192626953125, -0.01070404052734375, 0.01611328125, -0.0135955810546875, -0.01153564453125, 0.01311492919921875, -0.03338623046875, -0.000058650970458984375, 0.004947662353515625, -0.007778167724609375, -0.043609619140625, 0.013763427734375, 0.0136871337890625, -0.033233642578125, -0.0196075439453125, 0.020416259765625, -0.0122833251953125, 0.0430908203125, 0.00453948974609375, -0.022979736328125, -0.0019102096557617188, 0.0007376670837402344, -0.018402099609375, 0.01262664794921875, 0.00997161865234375, -0.0225982666015625, 0.0017852783203125, -0.039398193359375, -0.011627197265625, 0.025115966796875, -0.0035266876220703125, -0.044219970703125, -0.03369140625, 0.00994110107421875, -0.0379638671875, 0.01216888427734375, 0.00801849365234375, -0.012786865234375, 0.0201416015625, 0.022674560546875, 0.007129669189453125, 0.062347412109375, -0.0200347900390625, -0.01221466064453125, -0.031494140625, 0.02825927734375, -0.022674560546875, -0.049591064453125, 0.0338134765625, -0.050567626953125, -0.0452880859375, -0.025299072265625, 0.02508544921875, 0.0228424072265625, -0.035308837890625, -0.055419921875, 0.0229339599609375, -0.01319122314453125, -0.03192138671875, -0.07733154296875, 0.015106201171875, 0.0135498046875, 0.0002658367156982422, -0.0120086669921875, -0.033355712890625, -0.0284271240234375, 0.03387451171875, 0.0172271728515625, -0.021575927734375, 0.0374755859375, -0.003986358642578125, -0.059295654296875, 0.005283355712890625, 0.00196075439453125, -0.026123046875, 0.006748199462890625, 0.004825592041015625, 0.02532958984375, 0.0225677490234375, -0.0540771484375, 0.0174713134765625, -0.0201416015625, 0.01187896728515625, -0.034942626953125, -0.0183258056640625, -0.00476837158203125, 0.0250701904296875, 0.08673095703125, 0.0635986328125, 0.010345458984375, -0.0692138671875, -0.00125885009765625, -0.0123138427734375, -0.01493072509765625, -0.017181396484375, 0.0103607177734375, -0.055999755859375, -0.034210205078125, 0.00383758544921875, -0.0054779052734375, 0.0256195068359375, -0.05389404296875, -0.0280914306640625, -0.0126800537109375, -0.0307464599609375, 0.01264190673828125, -0.0247802734375, -0.0012989044189453125, 0.037994384765625, -0.0288543701171875, 0.00969696044921875, -0.016448974609375, 0.0083160400390625, 0.02435302734375, -0.007598876953125, 0.0032825469970703125, 0.04608154296875, -0.026458740234375, -0.01198577880859375, 0.0181884765625, -0.01788330078125, -0.0036296844482421875, 0.016845703125, -0.0087127685546875, 0.0231170654296875, 0.005985260009765625, 0.0313720703125, -0.0038509368896484375, 0.038604736328125, 0.01293182373046875, 0.0083465576171875, -0.0325927734375, 0.0297393798828125, 0.0004906654357910156, 0.01172637939453125, -0.044342041015625, -0.002422332763671875, 0.01369476318359375, -0.048736572265625, 0.01059722900390625, 0.0204925537109375, -0.0033435821533203125, 0.0031566619873046875, 0.0101776123046875, 0.0137786865234375, -0.0155792236328125, 0.006694793701171875 ]
2523fdff6cf13c6a468eaf846e1ff4db1a05cfd6
Wordpress Stackexchange Q: Get template part vs locate template function I'm in single.php where I'm trying to get related-posts.php template. The problem is that when using get template part the related-posts.php isn't getting custom taxonomy name from single.php in wp_Query. The solution is getting the wp post terms once again in related-posts.php in order to use get_template_part. But technically it shouldn't be required since parent (single.php) is already having it. But when I use locate template function it works fine. I feel that this method would be slower than get_template_part. What should I do? A: First of all note that get_template_part internally uses locate_template, so your feeling that the latter is slower is wrong. If you look at the code, get_template_part is little more than a wrapper for locate_template, so if one work and the other not, there are 2 possibilities: * *you are using get_template_part wrong *there's some hook on "get_template_part_{$slug}" action that prevent it works However, if locate_template works, use it: it's not slower, to be honest it can be pretty faster if there are functions hooked on "get_template_part_{$slug}" that slow down execution.
Q: Get template part vs locate template function I'm in single.php where I'm trying to get related-posts.php template. The problem is that when using get template part the related-posts.php isn't getting custom taxonomy name from single.php in wp_Query. The solution is getting the wp post terms once again in related-posts.php in order to use get_template_part. But technically it shouldn't be required since parent (single.php) is already having it. But when I use locate template function it works fine. I feel that this method would be slower than get_template_part. What should I do? A: First of all note that get_template_part internally uses locate_template, so your feeling that the latter is slower is wrong. If you look at the code, get_template_part is little more than a wrapper for locate_template, so if one work and the other not, there are 2 possibilities: * *you are using get_template_part wrong *there's some hook on "get_template_part_{$slug}" action that prevent it works However, if locate_template works, use it: it's not slower, to be honest it can be pretty faster if there are functions hooked on "get_template_part_{$slug}" that slow down execution.
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:445702", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/146134" }
[ 0.01171875, -0.0089569091796875, 0.0188751220703125, -0.0244903564453125, 0.012298583984375, -0.0015058517456054688, 0.031646728515625, -0.00839996337890625, -0.031463623046875, 0.040496826171875, -0.017059326171875, 0.0258026123046875, -0.0172882080078125, -0.0064239501953125, 0.00301361083984375, -0.012359619140625, 0.031005859375, -0.03448486328125, 0.0201873779296875, -0.01181793212890625, 0.035736083984375, 0.007442474365234375, 0.0093994140625, 0.0069580078125, 0.0206451416015625, -0.044281005859375, 0.03839111328125, -0.038665771484375, 0.0163421630859375, -0.03131103515625, 0.0138397216796875, 0.0433349609375, 0.0313720703125, -0.022369384765625, 0.0014171600341796875, -0.04376220703125, 0.0016803741455078125, -0.01540374755859375, -0.03448486328125, 0.035369873046875, -0.0013418197631835938, 0.002857208251953125, -0.0129547119140625, 0.03790283203125, -0.0264739990234375, -0.043731689453125, 0.00020623207092285156, -0.03326416015625, 0.011260986328125, 0.02691650390625, 0.01287078857421875, -0.00848388671875, 0.01849365234375, -0.01343536376953125, -0.013946533203125, -0.032012939453125, 0.0084228515625, -0.0159759521484375, 0.0175933837890625, -0.025238037109375, -0.025634765625, 0.00974273681640625, 0.026702880859375, 0.0212554931640625, -0.0007166862487792969, 0.01087188720703125, 0.033538818359375, 0.0160369873046875, -0.0296783447265625, -0.0081329345703125, 0.0284881591796875, -0.013336181640625, 0.028411865234375, 0.0224456787109375, 0.03131103515625, -0.0938720703125, 0.02008056640625, -0.0005431175231933594, 0.00399017333984375, 0.042144775390625, 0.002643585205078125, -0.019439697265625, -0.043365478515625, -0.000423431396484375, -0.003398895263671875, 0.007450103759765625, -0.01000213623046875, -0.01372528076171875, -0.06634521484375, -0.030548095703125, -0.042755126953125, -0.09783935546875, -0.0284576416015625, 0.00809478759765625, -0.007755279541015625, -0.01184844970703125, 0.040557861328125, 0.06378173828125, -0.0136260986328125, 0.0027008056640625, -0.003528594970703125, -0.04840087890625, 0.0221710205078125, -0.0379638671875, 0.029571533203125, 0.0301971435546875, -0.001983642578125, 0.0266876220703125, 0.057342529296875, 0.0190277099609375, 0.01093292236328125, 0.0355224609375, -0.018341064453125, -0.032470703125, -0.047271728515625, 0.03839111328125, -0.0268096923828125, -0.0286102294921875, 0.016937255859375, -0.00612640380859375, 0.01226043701171875, 0.01052093505859375, 0.062103271484375, -0.002170562744140625, 0.0016336441040039062, 0.0129547119140625, -0.042938232421875, -0.046051025390625, -0.032867431640625, 0.033477783203125, -0.00485992431640625, -0.00714874267578125, -0.00627899169921875, 0.0051727294921875, -0.033294677734375, -0.019805908203125, -0.0105743408203125, 0.0419921875, 0.028564453125, -0.03033447265625, 0.003986358642578125, 0.0008478164672851562, 0.040863037109375, 0.0153350830078125, -0.0033893585205078125, -0.03076171875, 0.0237884521484375, 0.0249481201171875, 0.00839996337890625, -0.005527496337890625, -0.00215911865234375, 0.038482666015625, 0.041778564453125, -0.0044708251953125, -0.039093017578125, -0.072265625, -0.0121917724609375, -0.040924072265625, 0.026092529296875, -0.07421875, 0.05316162109375, -0.00284576416015625, -0.00820159912109375, 0.0089569091796875, -0.028045654296875, 0.007236480712890625, -0.043792724609375, -0.006267547607421875, 0.01239013671875, 0.0107421875, -0.012420654296875, -0.018280029296875, -0.02276611328125, 0.00543212890625, 0.0020122528076171875, 0.0279083251953125, 0.0030078887939453125, 0.04815673828125, -0.0035533905029296875, 0.01259613037109375, -0.00942230224609375, -0.036041259765625, 0.05108642578125, -0.028076171875, -0.08251953125, 0.08319091796875, 0.0012731552124023438, 0.033050537109375, 0.01202392578125, -0.006793975830078125, 0.06378173828125, 0.06884765625, -0.0285186767578125, 0.02435302734375, 0.0225982666015625, -0.01076507568359375, 0.010467529296875, 0.00978851318359375, 0.00594329833984375, -0.04541015625, -0.06353759765625, 0.022003173828125, -0.0032367706298828125, 0.0264892578125, -0.0013971328735351562, 0.01360321044921875, -0.0148773193359375, 0.038818359375, -0.053680419921875, 0.018310546875, 0.030364990234375, 0.011932373046875, -0.041717529296875, -0.006378173828125, -0.0018053054809570312, -0.0023670196533203125, -0.0174713134765625, -0.0069122314453125, -0.005062103271484375, -0.003875732421875, 0.01270294189453125, -0.0234375, -0.013031005859375, 0.049957275390625, 0.005828857421875, 0.04913330078125, -0.034576416015625, 0.0302581787109375, -0.0526123046875, 0.08404541015625, -0.093994140625, -0.0027942657470703125, -0.00365447998046875, 0.0255889892578125, -0.012664794921875, 0.0130615234375, 0.0303802490234375, 0.00920867919921875, 0.006862640380859375, 0.00921630859375, 0.030914306640625, 0.037567138671875, -0.0090789794921875, -0.0106201171875, 0.068115234375, -0.050079345703125, -0.0018663406372070312, -0.00031256675720214844, 0.0330810546875, 0.0232391357421875, 0.003269195556640625, -0.0177764892578125, 0.022735595703125, -0.041656494140625, 0.031646728515625, 0.01324462890625, -0.031280517578125, 0.00852203369140625, -0.004489898681640625, 0.0090484619140625, -0.00833892822265625, -0.0135498046875, 0.0231475830078125, -0.022857666015625, 0.01274871826171875, 0.02520751953125, 0.0301513671875, 0.0112152099609375, -0.024627685546875, 0.031036376953125, 0.00690460205078125, -0.0252227783203125, -0.01473236083984375, 0.016632080078125, -0.02838134765625, 0.0081329345703125, -0.041656494140625, 0.0164642333984375, -0.0194244384765625, 0.00811004638671875, 0.00946807861328125, 0.0723876953125, -0.008453369140625, -0.014404296875, -0.0423583984375, -0.062347412109375, -0.00762176513671875, 0.047637939453125, 0.0077056884765625, 0.024871826171875, 0.031280517578125, 0.046051025390625, 0.0021209716796875, 0.026092529296875, 0.0034427642822265625, 0.0007066726684570312, 0.01409149169921875, -0.0277557373046875, 0.030303955078125, -0.0181121826171875, 0.02703857421875, 0.033416748046875, -0.013458251953125, 0.0133209228515625, -0.005954742431640625, 0.00893402099609375, 0.0279388427734375, -0.0408935546875, -0.047821044921875, -0.036468505859375, -0.0221099853515625, 0.016204833984375, 0.0079803466796875, 0.079345703125, -0.0288238525390625, -0.07220458984375, 0.007801055908203125, 0.007495880126953125, -0.07147216796875, -0.07275390625, 0.04949951171875, -0.0282135009765625, -0.01340484619140625, -0.00751495361328125, -0.0172576904296875, -0.032745361328125, 0.0001285076141357422, -0.0118560791015625, 0.06988525390625, -0.0301666259765625, -0.09112548828125, -0.04766845703125, -0.09765625, -0.0264129638671875, -0.0062103271484375, -0.00952911376953125, 0.004192352294921875, 0.06756591796875, 0.01293182373046875, -0.02655029296875, 0.010345458984375, 0.0241851806640625, -0.011260986328125, 0.0004134178161621094, -0.0154266357421875, -0.008575439453125, 0.0035800933837890625, 0.016021728515625, -0.06414794921875, -0.01398468017578125, 0.01416778564453125, -0.039459228515625, 0.002681732177734375, 0.023773193359375, 0.0631103515625, 0.0131072998046875, -0.020355224609375, 0.042572021484375, 0.078369140625, -0.005344390869140625, -0.07232666015625, -0.0479736328125, -0.07891845703125, 0.06109619140625, 0.059844970703125, 0.03411865234375, -0.021514892578125, 0.03619384765625, 0.03167724609375, 0.004428863525390625, -0.0300445556640625, 0.0134429931640625, 0.041534423828125, 0.0172271728515625, 0.042755126953125, 0.00028395652770996094, -0.019195556640625, -0.025421142578125, -0.0088043212890625, -0.01134490966796875, 0.002117156982421875, -0.02130126953125, 0.0156707763671875, -0.041290283203125, -0.054473876953125, 0.04901123046875, -0.0194244384765625, 0.0089111328125, -0.07025146484375, -0.0223236083984375, -0.037811279296875, 0.07952880859375, -0.01543426513671875, -0.02783203125, -0.00467681884765625, 0.016510009765625, -0.0268707275390625, -0.057830810546875, -0.01552581787109375, -0.0028934478759765625, -0.0477294921875, -0.0058746337890625, -0.0009965896606445312, -0.034942626953125, -0.0223388671875, 0.033447265625, -0.05059814453125, -0.01091766357421875, 0.0205841064453125, -0.0103912353515625, 0.000049114227294921875, 0.0357666015625, -0.00936126708984375, 0.012054443359375, -0.01139068603515625, -0.0210723876953125, -0.0215301513671875, -0.0170745849609375, 0.0244293212890625, 0.0160064697265625, 0.005718231201171875, -0.0008540153503417969, 0.0082550048828125, 0.047760009765625, 0.050201416015625, 0.00962066650390625, 0.0139312744140625, -0.0308685302734375, 0.02801513671875, -0.0003705024719238281, 0.01497650146484375, -0.0167388916015625, -0.023529052734375, -0.0263824462890625, -0.06915283203125, -0.03118896484375, 0.00281524658203125, 0.004123687744140625, 0.038787841796875, -0.025177001953125, -0.040008544921875, -0.0029048919677734375, 0.01727294921875, 0.00554656982421875, 0.00870513916015625, -0.0079803466796875, -0.01033782958984375, -0.037353515625, 0.0509033203125, 0.03680419921875, -0.00994110107421875, -0.025238037109375, 0.059967041015625, 0.024383544921875, -0.057159423828125, 0.0092010498046875, 0.01251983642578125, 0.03790283203125, 0.01043701171875, 0.0129547119140625, 0.0272064208984375, -0.0308380126953125, 0.00865936279296875, 0.030517578125, 0.0006012916564941406, 0.0036258697509765625, 0.04754638671875, 0.00887298583984375, -0.01331329345703125, 0.01070404052734375, -0.0054931640625, -0.00007897615432739258, 0.0743408203125, -0.0136871337890625, -0.047576904296875, -0.0140228271484375, 0.08154296875, -0.0240478515625, 0.01953125, -0.0849609375, -0.057647705078125, 0.025238037109375, 0.040863037109375, -0.00955963134765625, -0.0117034912109375, 0.00833892822265625, 0.017364501953125, -0.0286102294921875, -0.034027099609375, 0.0166015625, 0.007328033447265625, 0.00099945068359375, -0.00804901123046875, 0.0039005279541015625, -0.03741455078125, -0.002323150634765625, 0.005733489990234375, 0.01152801513671875, -0.0012369155883789062, -0.0302276611328125, -0.0310211181640625, -0.00624847412109375, 0.01277923583984375, -0.01824951171875, -0.01348114013671875, 0.03759765625, 0.0302276611328125, -0.0125274658203125, -0.01483154296875, -0.024078369140625, -0.0147705078125, -0.0304718017578125, 0.01132965087890625, 0.0045013427734375, -0.0093994140625, 0.005908966064453125, 0.041290283203125, -0.02459716796875, 0.0182647705078125, -0.005157470703125, 0.004787445068359375, -0.03802490234375, 0.044525146484375, 0.027923583984375, -0.043548583984375, 0.032958984375, -0.020843505859375, 0.00818634033203125, -0.03546142578125, 0.0268402099609375, -0.0237274169921875, 0.041961669921875, -0.01435089111328125, -0.034637451171875, 0.0511474609375, -0.040435791015625, -0.00846099853515625, 0.0367431640625, 0.021514892578125, -0.0225067138671875, -0.0252838134765625, 0.0252685546875, 0.04150390625, 0.0107574462890625, -0.0222625732421875, 0.0285491943359375, -0.0362548828125, 0.0074005126953125, 0.0281829833984375, -0.03472900390625, 0.006061553955078125, -0.0009002685546875, -0.036895751953125, -0.0218505859375, 0.0255126953125, -0.01947021484375, -0.0122833251953125, -0.01209259033203125, -0.022979736328125, 0.01422119140625, -0.023040771484375, 0.0249481201171875, -0.0301971435546875, -0.01262664794921875, -0.0452880859375, 0.00452423095703125, 0.048980712890625, 0.037261962890625, -0.041595458984375, -0.0029296875, -0.0584716796875, -0.0081939697265625, -0.018798828125, -0.06463623046875, -0.0214080810546875, 0.00620269775390625, -0.0360107421875, 0.002872467041015625, 0.0294647216796875, 0.060638427734375, 0.005828857421875, 0.025909423828125, -0.048919677734375, 0.01369476318359375, -0.0168914794921875, 0.04119873046875, -0.002132415771484375, 0.017578125, -0.0008645057678222656, 0.0086669921875, -0.0191497802734375, -0.00640869140625, -0.00984954833984375, -0.06402587890625, -0.0135498046875, -0.01499176025390625, -0.0076446533203125, 0.06597900390625, 0.040679931640625, 0.0212860107421875, 0.01456451416015625, -0.0253448486328125, 0.011962890625, -0.0176849365234375, 0.0294189453125, -0.05126953125, -0.02392578125, 0.0291290283203125, -0.0364990234375, -0.018768310546875, 0.00131988525390625, -0.0465087890625, 0.06201171875, -0.00827789306640625, -0.0008473396301269531, 0.03515625, 0.003864288330078125, 0.0264434814453125, 0.0214691162109375, 0.0261993408203125, 0.01386260986328125, -0.01042938232421875, 0.018280029296875, -0.04595947265625, 0.022674560546875, -0.0290679931640625, 0.001728057861328125, 0.049896240234375, -0.002582550048828125, -0.023956298828125, 0.01117706298828125, -0.04290771484375, -0.0167694091796875, -0.00087738037109375, 0.0076446533203125, -0.0231475830078125, -0.021453857421875, 0.0013418197631835938, -0.007183074951171875, -0.039764404296875, -0.0008225440979003906, -0.01502227783203125, -0.04949951171875, 0.03131103515625, 0.007671356201171875, -0.00336456298828125, 0.01035308837890625, -0.021942138671875, -0.0238800048828125, -0.003116607666015625, 0.0570068359375, 0.028228759765625, 0.01088714599609375, 0.02288818359375, -0.02020263671875, 0.04425048828125, -0.041656494140625, 0.00803375244140625, -0.0135345458984375, -0.01611328125, -0.06036376953125, 0.0018596649169921875, -0.01439666748046875, 0.016387939453125, 0.030181884765625, 0.02386474609375, -0.004650115966796875, 0.043701171875, -0.01708984375, 0.0260009765625, -0.0134735107421875, -0.0189361572265625, -0.025360107421875, 0.0026702880859375, 0.00931549072265625, 0.027099609375, -0.00951385498046875, 0.00589752197265625, -0.01922607421875, 0.006786346435546875, -0.0175323486328125, -0.032745361328125, 0.07171630859375, -0.03643798828125, -0.0031223297119140625, 0.0202484130859375, 0.033935546875, -0.00803375244140625, 0.006580352783203125, 0.0190582275390625, -0.041107177734375, -0.041961669921875, 0.0222015380859375, -0.04931640625, -0.01776123046875, 0.01239776611328125, -0.054412841796875, 0.0789794921875, 0.060943603515625, 0.01995849609375, 0.0170135498046875, 0.037689208984375, -0.054901123046875, 0.0018796920776367188, -0.03631591796875, 0.04119873046875, 0.0004513263702392578, 0.049774169921875, -0.026611328125, 0.025543212890625, 0.01947021484375, -0.0019350051879882812, 0.052886962890625, 0.00417327880859375, -0.007671356201171875, -0.018157958984375, 0.047576904296875, 0.02349853515625, -0.0083465576171875, 0.0200958251953125, 0.0148773193359375, 0.034393310546875, 0.040557861328125, -0.003353118896484375, 0.0302886962890625, 0.0262451171875, -0.03399658203125, 0.047393798828125, 0.0205230712890625, 0.01971435546875, -0.00707244873046875, 0.0102996826171875, -0.06280517578125, -0.006099700927734375, 0.0728759765625, -0.065673828125, -0.010894775390625, 0.0162353515625, 0.01485443115234375, -0.06195068359375, -0.0010499954223632812, -0.039459228515625, 0.029693603515625, 0.0072784423828125, 0.0302886962890625, -0.007366180419921875, 0.00360107421875, 0.030792236328125, -0.031982421875, -0.00611114501953125, 0.005733489990234375, -0.0021686553955078125, 0.033599853515625, -0.00464630126953125, 0.0246124267578125, -0.039337158203125, 0.03900146484375, 0.0299835205078125, 0.04095458984375, -0.03460693359375, -0.0017786026000976562, 0.03094482421875, 0.02081298828125, -0.0478515625, -0.0031909942626953125, -0.01433563232421875, 0.0234832763671875, 0.057525634765625, -0.037841796875, -0.03466796875, 0.035736083984375, 0.0014209747314453125, -0.01312255859375, -0.031341552734375, 0.028961181640625, -0.023101806640625, -0.033355712890625, 0.03582763671875, 0.03460693359375, 0.0474853515625, -0.007434844970703125, 0.045806884765625, -0.051849365234375, -0.0169830322265625, -0.0089569091796875, 0.0008444786071777344, -0.0003876686096191406, -0.0011997222900390625, -0.01042938232421875, -0.0038738250732421875, 0.0144195556640625, 0.0284423828125, 0.047576904296875, 0.0202789306640625, 0.060699462890625, 0.016265869140625, -0.0298614501953125, 0.01007843017578125, 0.01788330078125, -0.01514434814453125, 0.0689697265625, -0.02593994140625, -0.0037822723388671875, -0.027923583984375, -0.035675048828125, -0.037200927734375, -0.0162353515625, 0.04241943359375, -0.01230621337890625, 0.036285400390625, 0.0037555694580078125, 0.0148162841796875, 0.0540771484375, -0.016326904296875, 0.02789306640625, 0.0243377685546875, -0.0221405029296875, 0.008697509765625, -0.037689208984375, -0.0771484375, 0.02301025390625, 0.047119140625, -0.02593994140625, 0.01076507568359375, 0.018096923828125, -0.005126953125, 0.0002397298812866211, -0.01348114013671875, 0.0289764404296875, -0.005451202392578125, -0.0037631988525390625, 0.0167694091796875, -0.035552978515625, -0.015899658203125, -0.005462646484375, 0.0243682861328125, 0.0010929107666015625, 0.08062744140625, -0.025604248046875, 0.01134490966796875, -0.0391845703125, 0.021392822265625, -0.05084228515625, -0.040252685546875, 0.043975830078125, -0.019683837890625, -0.0226287841796875, 0.0013799667358398438, -0.06854248046875, -0.01702880859375, 0.06878662109375, -0.043792724609375, 0.00013434886932373047, 0.0264434814453125, 0.0017108917236328125, -0.05657958984375, -0.0003917217254638672, -0.028167724609375, -0.006580352783203125, -0.0242767333984375, -0.0380859375, 0.03497314453125, 0.011260986328125, 0.012115478515625, 0.03778076171875, -0.0137481689453125, -0.056121826171875, 0.024871826171875, -0.057525634765625, 0.038421630859375, 0.03411865234375, -0.023468017578125, 0.0009379386901855469, -0.00923919677734375, -0.01485443115234375, 0.005401611328125, 0.01479339599609375, -0.00994110107421875, -0.0026702880859375, -0.0010690689086914062, 0.0199737548828125, -0.0278167724609375, 0.01422119140625, -0.035400390625, -0.0138702392578125, 0.01111602783203125, 0.00887298583984375, -0.005062103271484375, -0.00701904296875, -0.01617431640625, -0.0037174224853515625, -0.00510406494140625, 0.0054779052734375, 0.0081939697265625, -0.0108489990234375, -0.010406494140625, -0.0214996337890625, 0.041778564453125, 0.006175994873046875, 0.0081787109375, -0.0162811279296875, -0.0138397216796875, -0.021942138671875, 0.049285888671875, -0.062103271484375, 0.0328369140625, 0.04534912109375, -0.0295562744140625, 0.01812744140625, -0.0095062255859375, -0.06060791015625, 0.006732940673828125, 0.0294189453125, 0.051513671875, -0.005413055419921875, -0.01383209228515625, 0.031341552734375, -0.009033203125, 0.094970703125, -0.06890869140625, -0.022186279296875, 0.0185394287109375, -0.0322265625, 0.002147674560546875, 0.00787353515625, 0.01678466796875, -0.037322998046875, -0.036102294921875, -0.01264190673828125, 0.009124755859375, 0.01340484619140625, -0.050384521484375, -0.08209228515625, 0.0380859375, -0.014862060546875, -0.04144287109375, -0.07049560546875, -0.005428314208984375, 0.0110015869140625, -0.021484375, -0.042755126953125, 0.01419830322265625, -0.034820556640625, 0.06488037109375, 0.01213836669921875, 0.0251312255859375, 0.039215087890625, -0.0208740234375, -0.033477783203125, 0.0021820068359375, -0.004711151123046875, 0.00682830810546875, -0.0311737060546875, 0.0167694091796875, -0.004852294921875, 0.030731201171875, -0.03668212890625, -0.0024738311767578125, 0.0152435302734375, 0.036865234375, -0.0261688232421875, -0.0279083251953125, -0.0237274169921875, 0.005313873291015625, 0.057525634765625, 0.07733154296875, 0.0079803466796875, -0.054840087890625, -0.0026454925537109375, -0.0161895751953125, -0.0762939453125, -0.001483917236328125, 0.056610107421875, -0.07891845703125, 0.01424407958984375, 0.0287017822265625, -0.0289764404296875, 0.002330780029296875, -0.01371002197265625, -0.03851318359375, 0.0250244140625, -0.0172271728515625, -0.016876220703125, -0.0328369140625, 0.00965118408203125, 0.01045989990234375, -0.00533294677734375, -0.0248260498046875, -0.0142974853515625, 0.01525115966796875, -0.034942626953125, -0.01727294921875, 0.0184783935546875, 0.04730224609375, -0.02734375, -0.0193634033203125, 0.04083251953125, -0.0245819091796875, 0.0169525146484375, 0.01073455810546875, -0.01282501220703125, 0.003963470458984375, -0.000957489013671875, -0.0208740234375, -0.0275726318359375, 0.03668212890625, -0.0117340087890625, 0.0828857421875, 0.01384735107421875, 0.1031494140625, 0.005828857421875, 0.048309326171875, -0.00717926025390625, -0.020965576171875, 0.002105712890625, -0.0301055908203125, -0.007122039794921875, 0.0297393798828125, -0.00888824462890625, -0.046112060546875, 0.015533447265625, -0.047088623046875, 0.027587890625, 0.0129241943359375 ]
eb4d68ad528eeac71873ead41059a1d8c28adf56
Wordpress Stackexchange Q: how can get database name in wordpress? I want to get WordPress database name. I have also try to get database name from $wpdb but failed. When print the $wpdb it give an object array but i don't know how to get database name from object array. A: To get the db name using $wpdb: global $wpdb; echo $wpdb->dbname; It will return database name as a string.
Q: how can get database name in wordpress? I want to get WordPress database name. I have also try to get database name from $wpdb but failed. When print the $wpdb it give an object array but i don't know how to get database name from object array. A: To get the db name using $wpdb: global $wpdb; echo $wpdb->dbname; It will return database name as a string. A: You can also get the database name from the constant DB_NAME without going for $wpdb.
wordpress
{ "language": "en", "length": 84, "provenance": "stackexchange_00019.jsonl.gz:445726", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/147251" }
[ 0.01132965087890625, 0.004703521728515625, -0.03387451171875, 0.0005784034729003906, 0.0034465789794921875, -0.0338134765625, 0.004924774169921875, -0.0018968582153320312, 0.0445556640625, 0.019866943359375, -0.053466796875, -0.002330780029296875, -0.02484130859375, -0.007965087890625, -0.037994384765625, -0.0254974365234375, 0.05828857421875, -0.0357666015625, 0.0272369384765625, 0.0034389495849609375, -0.0019321441650390625, 0.05035400390625, 0.00722503662109375, 0.029052734375, 0.032501220703125, -0.040740966796875, 0.09661865234375, 0.00893402099609375, 0.04345703125, -0.0018911361694335938, 0.038818359375, -0.0732421875, -0.0203399658203125, 0.01885986328125, 0.051666259765625, 0.01065826416015625, 0.025115966796875, 0.018646240234375, 0.0626220703125, -0.0162200927734375, 0.020782470703125, -0.0028057098388671875, 0.0203704833984375, -0.0110931396484375, -0.012908935546875, -0.03131103515625, 0.013397216796875, -0.0308380126953125, 0.0199432373046875, 0.0018892288208007812, 0.0109100341796875, 0.017852783203125, 0.0203857421875, -0.006610870361328125, -0.001190185546875, 0.01251983642578125, 0.0245361328125, -0.0095977783203125, 0.0303802490234375, -0.0105438232421875, -0.03955078125, 0.0010881423950195312, 0.023681640625, -0.0250396728515625, -0.016357421875, 0.0167388916015625, 0.05865478515625, 0.0036754608154296875, -0.015594482421875, -0.0253143310546875, 0.0107879638671875, 0.00017726421356201172, -0.0032176971435546875, 0.0104217529296875, -0.0293121337890625, -0.0311737060546875, 0.02276611328125, -0.023834228515625, 0.00946044921875, 0.00855255126953125, 0.0106964111328125, -0.01139068603515625, -0.07598876953125, 0.0207061767578125, 0.01273345947265625, 0.05902099609375, -0.0098419189453125, -0.04345703125, 0.01555633544921875, -0.032958984375, 0.0030841827392578125, -0.01030731201171875, -0.050048828125, 0.03961181640625, 0.0011606216430664062, -0.0399169921875, 0.016082763671875, 0.03765869140625, -0.055816650390625, -0.032989501953125, 0.005268096923828125, -0.023590087890625, -0.0261688232421875, -0.015625, 0.005558013916015625, 0.027679443359375, 0.002719879150390625, -0.0205535888671875, 0.0019931793212890625, 0.00313568115234375, -0.023895263671875, -0.0267791748046875, -0.0025424957275390625, -0.0276031494140625, -0.0248870849609375, 0.00396728515625, -0.03753662109375, 0.0081024169921875, 0.015289306640625, -0.017486572265625, 0.0008087158203125, 0.0289306640625, -0.048004150390625, -0.0078582763671875, -0.01107025146484375, -0.0192108154296875, 0.006195068359375, 0.0108795166015625, -0.0660400390625, 0.03204345703125, -0.006195068359375, 0.0192108154296875, 0.02777099609375, 0.027496337890625, -0.0128173828125, -0.007404327392578125, 0.0215606689453125, 0.020111083984375, 0.0004582405090332031, 0.0127410888671875, -0.0010576248168945312, -0.0207366943359375, 0.00954437255859375, -0.021942138671875, -0.024444580078125, 0.005504608154296875, 0.0167694091796875, 0.0252532958984375, -0.00957489013671875, -0.01543426513671875, -0.0308837890625, 0.037322998046875, -0.0260162353515625, 0.0285491943359375, 0.05633544921875, -0.0016965866088867188, 0.01448822021484375, -0.0231170654296875, 0.0224151611328125, 0.0037708282470703125, 0.01143646240234375, -0.00208282470703125, 0.00350189208984375, 0.0020465850830078125, -0.021820068359375, -0.004161834716796875, -0.02728271484375, 0.003383636474609375, 0.025390625, 0.0154876708984375, 0.0223846435546875, -0.016326904296875, 0.03216552734375, 0.005771636962890625, -0.0118255615234375, 0.0190277099609375, -0.0209808349609375, -0.022735595703125, 0.035980224609375, 0.031005859375, 0.003757476806640625, -0.0126953125, 0.0323486328125, 0.00797271728515625, -0.0294952392578125, 0.0173187255859375, 0.0011653900146484375, 0.0305938720703125, 0.0180511474609375, 0.01216888427734375, -0.007720947265625, 0.01422119140625, -0.06097412109375, 0.0181427001953125, -0.0083160400390625, 0.005222320556640625, -0.03009033203125, 0.0105743408203125, -0.0226593017578125, -0.021820068359375, -0.0067901611328125, 0.01163482666015625, -0.0048828125, 0.026336669921875, -0.0206451416015625, 0.019287109375, -0.00981903076171875, 0.0182647705078125, 0.034881591796875, 0.0030231475830078125, 0.01064300537109375, 0.02435302734375, -0.0277862548828125, -0.0439453125, -0.08184814453125, 0.035186767578125, -0.04638671875, 0.005794525146484375, -0.01407623291015625, 0.029022216796875, -0.036590576171875, 0.006664276123046875, -0.036895751953125, -0.028411865234375, 0.025665283203125, -0.03302001953125, -0.00567626953125, -0.02642822265625, 0.026641845703125, -0.00644683837890625, -0.01776123046875, 0.01116943359375, -0.00815582275390625, 0.027801513671875, 0.01328277587890625, -0.031158447265625, 0.005611419677734375, -0.1082763671875, 0.0478515625, 0.052703857421875, 0.018798828125, 0.03631591796875, -0.0257110595703125, 0.00250244140625, 0.024932861328125, -0.03118896484375, -0.0080413818359375, 0.0121612548828125, 0.0284423828125, 0.07275390625, -0.0318603515625, 0.0100860595703125, 0.01190948486328125, 0.0119171142578125, -0.02734375, 0.059112548828125, -0.022064208984375, -0.0111846923828125, 0.0134124755859375, 0.016204833984375, -0.0008792877197265625, 0.010650634765625, 0.016845703125, -0.01052093505859375, 0.0018053054809570312, 0.039764404296875, 0.0267333984375, 0.035430908203125, -0.0216522216796875, 0.0287933349609375, 0.0042877197265625, -0.0182342529296875, 0.003200531005859375, 0.0181121826171875, -0.01311492919921875, 0.0011234283447265625, -0.0185699462890625, 0.0030765533447265625, -0.006938934326171875, 0.0017290115356445312, 0.01311492919921875, 0.038726806640625, 0.004329681396484375, -0.0194854736328125, -0.0022068023681640625, -0.032379150390625, -0.0027103424072265625, -0.00044989585876464844, -0.08770751953125, -0.043487548828125, -0.0184326171875, 0.07135009765625, -0.0281982421875, 0.03253173828125, -0.03753662109375, 0.0194091796875, 0.0474853515625, -0.008148193359375, 0.0003857612609863281, -0.00408172607421875, 0.0311126708984375, 0.057037353515625, 0.0130767822265625, -0.007717132568359375, -0.012176513671875, -0.00881195068359375, 0.019439697265625, -0.050506591796875, -0.049530029296875, 0.0241546630859375, -0.099365234375, -0.00286102294921875, 0.002696990966796875, 0.018524169921875, -0.001659393310546875, -0.031951904296875, -0.005092620849609375, 0.0142822265625, -0.08380126953125, -0.0765380859375, -0.04052734375, 0.01190948486328125, -0.0153045654296875, -0.005077362060546875, 0.0154571533203125, 0.01163482666015625, -0.0262603759765625, -0.0004019737243652344, 0.05218505859375, -0.04718017578125, -0.07135009765625, -0.04486083984375, -0.0794677734375, -0.0187835693359375, -0.01351165771484375, 0.00396728515625, 0.0026302337646484375, 0.0162811279296875, 0.0010347366333007812, -0.018463134765625, -0.0029697418212890625, 0.029266357421875, 0.00382232666015625, -0.033721923828125, 0.0152435302734375, -0.040557861328125, -0.0207366943359375, 0.01288604736328125, -0.0015659332275390625, -0.0173492431640625, 0.0199432373046875, -0.0203704833984375, 0.03863525390625, 0.0304107666015625, 0.052642822265625, -0.0215911865234375, -0.060455322265625, 0.006595611572265625, 0.01374053955078125, -0.047027587890625, 0.0178070068359375, -0.0157470703125, 0.00010943412780761719, -0.0011234283447265625, -0.016387939453125, -0.0216064453125, -0.0222015380859375, 0.024566650390625, 0.03582763671875, 0.02618408203125, -0.04541015625, 0.0062408447265625, 0.0289154052734375, 0.0182342529296875, 0.0537109375, 0.030181884765625, 0.015777587890625, -0.03375244140625, 0.00778961181640625, -0.0054473876953125, -0.01212310791015625, -0.00798797607421875, -0.0113372802734375, -0.01085662841796875, -0.056182861328125, 0.049224853515625, -0.057403564453125, 0.00989532470703125, -0.060699462890625, -0.0243377685546875, -0.0060882568359375, 0.11767578125, 0.0048370361328125, -0.01922607421875, 0.0029621124267578125, -0.0023250579833984375, -0.05609130859375, -0.018707275390625, -0.055572509765625, -0.00626373291015625, -0.11767578125, 0.0122222900390625, -0.007488250732421875, -0.0477294921875, 0.0119171142578125, -0.016571044921875, -0.053619384765625, -0.058380126953125, 0.03472900390625, -0.0860595703125, 0.018707275390625, -0.005802154541015625, 0.003932952880859375, -0.0201873779296875, -0.0196685791015625, -0.04290771484375, -0.05523681640625, -0.02276611328125, 0.03472900390625, 0.047576904296875, -0.0181121826171875, -0.002521514892578125, -0.0214080810546875, 0.044891357421875, 0.01236724853515625, 0.021728515625, 0.0046539306640625, 0.015869140625, -0.01702880859375, -0.03118896484375, -0.004467010498046875, -0.035858154296875, -0.01311492919921875, -0.03961181640625, 0.00435638427734375, 0.0273590087890625, -0.033050537109375, 0.0139312744140625, -0.04034423828125, 0.01016998291015625, -0.0063018798828125, -0.0134429931640625, 0.0071563720703125, 0.041107177734375, -0.031341552734375, 0.03582763671875, -0.0300445556640625, -0.021270751953125, 0.058837890625, 0.042633056640625, -0.02569580078125, 0.003177642822265625, 0.059234619140625, 0.004215240478515625, -0.0382080078125, -0.10321044921875, 0.01105499267578125, 0.05438232421875, 0.005916595458984375, 0.0382080078125, 0.027099609375, -0.04998779296875, 0.0706787109375, 0.03826904296875, 0.002532958984375, 0.001834869384765625, 0.0325927734375, 0.01212310791015625, -0.026947021484375, 0.0164337158203125, 0.0019626617431640625, -0.0254058837890625, 0.033447265625, -0.0216827392578125, 0.00121307373046875, -0.0018529891967773438, 0.0218505859375, -0.03704833984375, 0.036956787109375, -0.01474761962890625, -0.0435791015625, 0.022186279296875, -0.0192108154296875, -0.0014820098876953125, -0.0006856918334960938, -0.00557708740234375, -0.00782012939453125, -0.0009212493896484375, -0.0011415481567382812, 0.0120849609375, 0.01177978515625, 0.013763427734375, 0.029388427734375, 0.016021728515625, 0.007476806640625, -0.0253753662109375, -0.0255126953125, 0.080078125, 0.007434844970703125, -0.041595458984375, 0.0528564453125, -0.0293426513671875, 0.038604736328125, 0.0340576171875, -0.00859832763671875, 0.0003647804260253906, 0.0374755859375, -0.0128173828125, 0.0110626220703125, -0.00612640380859375, 0.0205841064453125, -0.012786865234375, 0.0606689453125, -0.00041484832763671875, 0.011962890625, 0.0089874267578125, 0.09368896484375, -0.032562255859375, 0.05657958984375, -0.00812530517578125, 0.03619384765625, 0.0150146484375, 0.033843994140625, 0.0133819580078125, -0.032623291015625, 0.0204010009765625, -0.006656646728515625, -0.0175628662109375, -0.026947021484375, -0.000004589557647705078, -0.003543853759765625, 0.042724609375, -0.0182037353515625, -0.02899169921875, 0.026214599609375, -0.03564453125, -0.01165771484375, 0.0394287109375, 0.026763916015625, -0.0289459228515625, -0.039642333984375, -0.0036411285400390625, 0.032257080078125, 0.0082855224609375, 0.01074981689453125, -0.0168914794921875, 0.0173492431640625, 0.0206451416015625, -0.021148681640625, -0.00418853759765625, 0.0022830963134765625, 0.0088653564453125, -0.040069580078125, 0.00008726119995117188, -0.0197601318359375, 0.0169525146484375, -0.036834716796875, 0.003925323486328125, -0.031005859375, 0.039703369140625, -0.05584716796875, 0.06768798828125, -0.06500244140625, 0.033111572265625, -0.0587158203125, -0.002391815185546875, 0.084716796875, 0.08624267578125, 0.0081787109375, -0.018585205078125, -0.043212890625, -0.0200347900390625, 0.02789306640625, -0.0295867919921875, 0.0005583763122558594, -0.0290679931640625, -0.03411865234375, -0.0124969482421875, 0.01476287841796875, 0.0660400390625, -0.0065460205078125, 0.05047607421875, -0.01117706298828125, -0.007137298583984375, -0.0022869110107421875, 0.064208984375, -0.01406097412109375, 0.0152435302734375, 0.004367828369140625, 0.0188140869140625, -0.04559326171875, -0.001667022705078125, 0.015411376953125, -0.021331787109375, -0.0203857421875, -0.0261993408203125, -0.00850677490234375, -0.03363037109375, -0.006595611572265625, -0.00331878662109375, -0.004779815673828125, 0.005764007568359375, 0.0011110305786132812, -0.0015163421630859375, -0.01213836669921875, -0.00592803955078125, 0.0010366439819335938, 0.002437591552734375, -0.0193023681640625, 0.014129638671875, -0.0189056396484375, -0.014678955078125, 0.0252685546875, -0.0139923095703125, 0.007312774658203125, 0.03704833984375, -0.061492919921875, 0.06414794921875, 0.056915283203125, 0.0284271240234375, 0.041046142578125, -0.00794219970703125, 0.014495849609375, -0.019775390625, 0.0284423828125, -0.0596923828125, -0.046844482421875, 0.06585693359375, 0.04461669921875, -0.03192138671875, 0.07684326171875, -0.036834716796875, 0.0201568603515625, 0.002941131591796875, 0.073486328125, -0.039215087890625, 0.0157318115234375, 0.0357666015625, -0.029937744140625, 0.002605438232421875, 0.0182342529296875, -0.048614501953125, -0.0310516357421875, 0.00958251953125, -0.0249176025390625, -0.032623291015625, 0.0006284713745117188, 0.0265045166015625, 0.00449371337890625, -0.02862548828125, 0.07220458984375, 0.01326751708984375, 0.00457000732421875, -0.014892578125, 0.000004589557647705078, 0.00785064697265625, -0.01123046875, 0.013214111328125, 0.006069183349609375, 0.0030765533447265625, -0.0443115234375, 0.01554107666015625, -0.009521484375, 0.0019779205322265625, -0.0208740234375, 0.0130462646484375, 0.01430511474609375, 0.048004150390625, -0.01448822021484375, 0.00954437255859375, 0.0161285400390625, -0.001163482666015625, 0.005859375, 0.0082550048828125, 0.00778961181640625, 0.00605010986328125, -0.0426025390625, 0.00897216796875, -0.055877685546875, 0.024322509765625, -0.0310211181640625, -0.0249481201171875, 0.06390380859375, 0.0008296966552734375, -0.0278778076171875, -0.007965087890625, 0.0400390625, 0.0248565673828125, 0.01065826416015625, 0.02386474609375, -0.024383544921875, -0.0030155181884765625, 0.0163421630859375, -0.0225372314453125, -0.0163726806640625, 0.0018568038940429688, -0.037139892578125, 0.00603485107421875, 0.0272979736328125, -0.018280029296875, 0.02581787109375, -0.01006317138671875, -0.031768798828125, -0.02349853515625, -0.0587158203125, 0.04791259765625, 0.0533447265625, 0.04931640625, -0.027435302734375, -0.0057220458984375, 0.01352691650390625, 0.016204833984375, 0.00786590576171875, -0.00606536865234375, 0.0160675048828125, -0.0253448486328125, 0.003520965576171875, 0.04986572265625, 0.00443267822265625, -0.00800323486328125, 0.0291290283203125, 0.040130615234375, 0.06292724609375, -0.03436279296875, 0.0287017822265625, -0.0124359130859375, 0.01233673095703125, 0.043426513671875, 0.0193634033203125, 0.0227813720703125, -0.01434326171875, -0.03155517578125, 0.03314208984375, -0.01006317138671875, -0.01313018798828125, -0.064453125, -0.0171051025390625, 0.0513916015625, 0.038055419921875, -0.04180908203125, -0.00940704345703125, -0.038970947265625, 0.04931640625, 0.0115814208984375, -0.035736083984375, 0.04632568359375, 0.0011892318725585938, -0.0019550323486328125, -0.004215240478515625, -0.0252685546875, -0.01270294189453125, 0.036102294921875, 0.08892822265625, 0.04583740234375, 0.023284912109375, -0.04461669921875, -0.017425537109375, 0.04180908203125, 0.10174560546875, -0.054779052734375, -0.0195770263671875, 0.0200042724609375, 0.00975799560546875, 0.0016832351684570312, -0.001621246337890625, 0.017425537109375, 0.0631103515625, 0.06939697265625, -0.0004639625549316406, -0.0052947998046875, 0.016571044921875, 0.0291595458984375, -0.0045623779296875, 0.0017900466918945312, -0.0263671875, -0.01230621337890625, -0.00604248046875, -0.03717041015625, 0.02618408203125, 0.0372314453125, 0.01085662841796875, 0.0267791748046875, -0.02410888671875, -0.0041351318359375, -0.030853271484375, 0.06829833984375, -0.0009407997131347656, 0.054840087890625, -0.0562744140625, -0.034210205078125, 0.00017571449279785156, 0.0426025390625, 0.0372314453125, 0.00864410400390625, 0.037872314453125, 0.03961181640625, 0.0029201507568359375, 0.0020771026611328125, 0.04144287109375, -0.00563812255859375, 0.0136260986328125, -0.036651611328125, 0.039703369140625, 0.01104736328125, 0.0035991668701171875, -0.0023860931396484375, 0.050323486328125, 0.008331298828125, -0.037872314453125, 0.035400390625, -0.01190948486328125, -0.0160675048828125, 0.0244293212890625, -0.03387451171875, 0.005733489990234375, -0.0279693603515625, -0.0682373046875, -0.0289764404296875, -0.027008056640625, 0.0188751220703125, 0.0239715576171875, 0.03765869140625, 0.018218994140625, 0.00927734375, -0.0191497802734375, -0.016357421875, -0.002315521240234375, 0.030426025390625, -0.01317596435546875, 0.0279541015625, 0.029998779296875, -0.00478363037109375, -0.0543212890625, -0.036956787109375, -0.0281524658203125, 0.0224456787109375, 0.031951904296875, 0.03070068359375, 0.010528564453125, 0.0213470458984375, -0.037994384765625, 0.0177459716796875, -0.04022216796875, -0.034027099609375, -0.025390625, 0.00447845458984375, 0.006038665771484375, -0.0022029876708984375, -0.04949951171875, 0.0114288330078125, 0.04376220703125, -0.0252227783203125, 0.018585205078125, 0.0007290840148925781, 0.027130126953125, -0.034576416015625, 0.0221405029296875, -0.0248870849609375, -0.0374755859375, 0.01446533203125, 0.0171661376953125, 0.0009474754333496094, 0.0243377685546875, 0.018280029296875, 0.006496429443359375, 0.0255126953125, -0.0224151611328125, 0.021514892578125, -0.00365447998046875, 0.025604248046875, 0.026519775390625, -0.015838623046875, -0.0648193359375, -0.03582763671875, -0.0178070068359375, -0.037445068359375, -0.0035495758056640625, 0.054534912109375, -0.03997802734375, 0.01678466796875, -0.007259368896484375, -0.01568603515625, 0.0335693359375, 0.002960205078125, 0.0145721435546875, -0.03240966796875, 0.01776123046875, -0.0175323486328125, -0.039703369140625, -0.0244293212890625, -0.039215087890625, -0.0191497802734375, 0.0184173583984375, -0.0215301513671875, -0.030426025390625, -0.0257720947265625, -0.013885498046875, 0.0316162109375, 0.00156402587890625, -0.017974853515625, 0.003108978271484375, -0.0228118896484375, 0.0007948875427246094, 0.00655364990234375, -0.032135009765625, 0.0165863037109375, 0.045257568359375, 0.0009870529174804688, -0.0308990478515625, -0.00540924072265625, 0.0281219482421875, -0.00958251953125, 0.003887176513671875, 0.004016876220703125, -0.035736083984375, 0.022369384765625, 0.03271484375, 0.0259246826171875, 0.08251953125, 0.034698486328125, -0.02667236328125, 0.014007568359375, -0.0230865478515625, -0.0279388427734375, -0.060455322265625, 0.01678466796875, -0.08819580078125, -0.0222930908203125, 0.00652313232421875, -0.0156402587890625, 0.0093231201171875, -0.039703369140625, -0.04742431640625, 0.0533447265625, 0.0003008842468261719, -0.032012939453125, -0.0233306884765625, -0.0102996826171875, 0.005115509033203125, -0.0110626220703125, -0.005222320556640625, -0.0204925537109375, -0.037384033203125, 0.0198974609375, 0.01384735107421875, -0.00408172607421875, 0.0090179443359375, -0.0009555816650390625, -0.04364013671875, 0.029449462890625, 0.0008792877197265625, 0.005695343017578125, 0.00664520263671875, -0.0021209716796875, 0.005886077880859375, 0.036163330078125, -0.033599853515625, -0.0189361572265625, -0.01497650146484375, 0.01328277587890625, -0.0186920166015625, -0.041229248046875, -0.01061248779296875, 0.018280029296875, 0.0531005859375, 0.0845947265625, 0.007720947265625, -0.07659912109375, -0.03973388671875, -0.02032470703125, -0.0643310546875, -0.039337158203125, 0.04705810546875, -0.101806640625, -0.01137542724609375, 0.01983642578125, 0.0029773712158203125, -0.005573272705078125, 0.00032973289489746094, -0.022979736328125, -0.00740814208984375, -0.00010353326797485352, -0.019012451171875, 0.01146697998046875, -0.07550048828125, 0.0804443359375, -0.0626220703125, -0.049835205078125, 0.0222930908203125, 0.039459228515625, -0.0018396377563476562, -0.0242919921875, -0.032684326171875, -0.0030059814453125, 0.0288848876953125, 0.02801513671875, -0.0012359619140625, -0.01019287109375, 0.00609588623046875, 0.02008056640625, 0.0036373138427734375, 0.0323486328125, -0.00922393798828125, 0.0361328125, -0.01338958740234375, 0.0677490234375, -0.001972198486328125, 0.05657958984375, 0.025665283203125, 0.0291595458984375, -0.0045166015625, 0.080810546875, -0.0195465087890625, -0.0513916015625, -0.0001837015151977539, -0.058013916015625, 0.0016984939575195312, -0.001995086669921875, 0.00588226318359375, -0.0418701171875, 0.0154266357421875, -0.0117645263671875, 0.0285186767578125, 0.028778076171875 ]
95a48c688a244ea66463f83e28efd0e9720887bc
Wordpress Stackexchange Q: Restrict a Post Types Post Status I have a custom post type and a completely custom user interface to access it, and would like these posts to have a publish status. I know how to make them skip trash and be deleted immediately, but this still leaves me with draft posts and private posts. Is there a way to prevent posts getting flagged as drafts or private? I can hide the controls in CSS but I want to do this in code to make sure it isn't possible, is there a handy filter I can use? A: I wonder if you could use something as simple as this: (similar to the suggestion of @ialocin) /** * Use the "Force" on the post status ;-) */ add_action( 'wp_insert_post_data', function( $data, $postarr ){ $change_post_status = array( 'draft', 'private' ); // Edit to your needs if( 'cpt' === $data['post_type'] && in_array( $data['post_status'], $change_post_status, TRUE ) ) $data['post_status'] = 'publish'; return $data; }, PHP_MAX_INT, 2 ); where we just force the post status value when it's part of the $change_post_status array - before the post is saved. (... or maybe I'm misunderstanding the setup ;-)
Q: Restrict a Post Types Post Status I have a custom post type and a completely custom user interface to access it, and would like these posts to have a publish status. I know how to make them skip trash and be deleted immediately, but this still leaves me with draft posts and private posts. Is there a way to prevent posts getting flagged as drafts or private? I can hide the controls in CSS but I want to do this in code to make sure it isn't possible, is there a handy filter I can use? A: I wonder if you could use something as simple as this: (similar to the suggestion of @ialocin) /** * Use the "Force" on the post status ;-) */ add_action( 'wp_insert_post_data', function( $data, $postarr ){ $change_post_status = array( 'draft', 'private' ); // Edit to your needs if( 'cpt' === $data['post_type'] && in_array( $data['post_status'], $change_post_status, TRUE ) ) $data['post_status'] = 'publish'; return $data; }, PHP_MAX_INT, 2 ); where we just force the post status value when it's part of the $change_post_status array - before the post is saved. (... or maybe I'm misunderstanding the setup ;-)
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:445735", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/147283" }
[ 0.08416748046875, 0.017669677734375, 0.01378631591796875, -0.01203155517578125, 0.0285186767578125, -0.0382080078125, 0.043365478515625, -0.0618896484375, 0.00843048095703125, -0.01299285888671875, -0.0218658447265625, 0.0031833648681640625, -0.0672607421875, -0.02764892578125, 0.006801605224609375, -0.0312347412109375, 0.0156402587890625, 0.004116058349609375, 0.04022216796875, -0.0249481201171875, -0.01064300537109375, -0.035400390625, 0.087646484375, -0.0293121337890625, 0.00548553466796875, 0.03985595703125, 0.048828125, -0.0269775390625, 0.02069091796875, -0.00933074951171875, 0.015289306640625, -0.03363037109375, 0.0145111083984375, 0.041534423828125, -0.039398193359375, 0.057098388671875, -0.015655517578125, 0.025634765625, 0.029022216796875, 0.0103302001953125, 0.0047607421875, 0.01360321044921875, -0.0120391845703125, 0.006565093994140625, -0.0457763671875, -0.0270538330078125, 0.009918212890625, 0.0138397216796875, 0.036712646484375, -0.0018205642700195312, 0.021453857421875, 0.01509857177734375, 0.0281219482421875, 0.006748199462890625, -0.03778076171875, -0.01812744140625, 0.005603790283203125, 0.00832366943359375, 0.045379638671875, 0.0159454345703125, -0.043792724609375, -0.0105743408203125, 0.00862884521484375, -0.065673828125, -0.0020885467529296875, -0.004520416259765625, -0.004901885986328125, 0.0187225341796875, -0.05859375, -0.004913330078125, 0.0517578125, -0.04266357421875, 0.006084442138671875, -0.00543975830078125, -0.0187530517578125, -0.013946533203125, 0.016815185546875, -0.01512908935546875, 0.01495361328125, 0.006816864013671875, 0.0255889892578125, 0.003749847412109375, -0.012969970703125, -0.019500732421875, 0.00030112266540527344, -0.0077667236328125, -0.0134124755859375, -0.00861358642578125, -0.0006251335144042969, 0.006633758544921875, -0.0164031982421875, -0.0034332275390625, 0.03765869140625, 0.0171661376953125, -0.0229644775390625, -0.0186004638671875, 0.02899169921875, 0.048065185546875, -0.0238189697265625, -0.01019287109375, -0.0038509368896484375, -0.031890869140625, 0.005767822265625, -0.032958984375, 0.0075531005859375, 0.046630859375, -0.0211639404296875, -0.0042877197265625, 0.0260772705078125, 0.023193359375, 0.00997161865234375, -0.0203094482421875, -0.0159759521484375, -0.0012712478637695312, -0.043121337890625, 0.004177093505859375, -0.046295166015625, -0.0022411346435546875, -0.022552490234375, 0.0130615234375, 0.0180206298828125, 0.033355712890625, 0.0035495758056640625, -0.047149658203125, 0.0144805908203125, 0.0151214599609375, -0.0182647705078125, -0.045745849609375, -0.0010251998901367188, 0.052764892578125, -0.03472900390625, -0.007537841796875, 0.08642578125, 0.024749755859375, 0.0193634033203125, -0.0288543701171875, 0.01763916015625, -0.0135040283203125, -0.0090789794921875, 0.025787353515625, -0.0186309814453125, -0.0160980224609375, 0.0282135009765625, -0.0307769775390625, -0.01318359375, 0.057037353515625, 0.0406494140625, -0.0209503173828125, -0.037841796875, -0.07269287109375, -0.0191802978515625, -0.01045989990234375, 0.0631103515625, 0.008392333984375, -0.05096435546875, -0.02984619140625, 0.01261138916015625, -0.0298919677734375, -0.036376953125, -0.05535888671875, 0.07183837890625, 0.0019588470458984375, -0.0200042724609375, 0.00439453125, -0.03839111328125, 0.0168609619140625, -0.05633544921875, -0.009429931640625, 0.0194091796875, -0.006389617919921875, 0.0159454345703125, 0.01016998291015625, 0.0022296905517578125, -0.0027828216552734375, -0.006389617919921875, 0.005062103271484375, 0.050262451171875, -0.0306549072265625, 0.01432037353515625, 0.037384033203125, -0.04400634765625, -0.032318115234375, 0.01233673095703125, -0.030914306640625, -0.036224365234375, 0.03057861328125, 0.02581787109375, 0.04864501953125, -0.0158538818359375, 0.0155029296875, 0.0265350341796875, 0.056671142578125, -0.01042938232421875, -0.0102996826171875, -0.0205230712890625, -0.050140380859375, 0.02288818359375, -0.005489349365234375, -0.00885772705078125, 0.037628173828125, -0.00409698486328125, 0.0104522705078125, -0.013519287109375, -0.0157623291015625, -0.056488037109375, -0.0019292831420898438, -0.0176849365234375, 0.041473388671875, -0.046173095703125, -0.006870269775390625, 0.0321044921875, -0.028778076171875, -0.0110321044921875, -0.02215576171875, -0.01024627685546875, 0.0059051513671875, -0.02001953125, -0.0016508102416992188, -0.0029125213623046875, 0.0313720703125, -0.03082275390625, -0.01277923583984375, -0.04205322265625, -0.0152130126953125, 0.047882080078125, 0.0037136077880859375, -0.00295257568359375, -0.0015010833740234375, 0.055999755859375, 0.01099395751953125, 0.01178741455078125, -0.0121612548828125, 0.049407958984375, 0.0292205810546875, 0.006649017333984375, -0.0036449432373046875, 0.000499725341796875, -0.1578369140625, 0.01105499267578125, 0.08203125, 0.0149383544921875, -0.0098876953125, -0.029632568359375, 0.0200042724609375, 0.017822265625, 0.0128631591796875, 0.0178680419921875, 0.007503509521484375, 0.0261077880859375, 0.053070068359375, -0.02874755859375, 0.010955810546875, 0.024566650390625, -0.07269287109375, 0.0435791015625, 0.025146484375, -0.00908660888671875, -0.01207733154296875, 0.0361328125, -0.0227203369140625, 0.01678466796875, 0.01552581787109375, -0.027862548828125, 0.01611328125, 0.057403564453125, -0.004550933837890625, 0.055450439453125, 0.034698486328125, -0.0237579345703125, -0.0071868896484375, -0.0015859603881835938, -0.031585693359375, 0.0011501312255859375, 0.01361083984375, 0.012451171875, 0.0479736328125, -0.046600341796875, -0.0038509368896484375, 0.04010009765625, 0.0195770263671875, -0.035797119140625, 0.00504302978515625, -0.005451202392578125, -0.0125274658203125, 0.005283355712890625, 0.0008950233459472656, 0.026397705078125, -0.03424072265625, -0.00893402099609375, -0.033538818359375, -0.0082550048828125, 0.028411865234375, -0.024383544921875, 0.03546142578125, 0.0361328125, -0.033782958984375, 0.0026378631591796875, -0.07733154296875, 0.06048583984375, -0.05731201171875, 0.042999267578125, 0.08062744140625, 0.0054779052734375, 0.0015707015991210938, 0.01029205322265625, -0.006336212158203125, 0.01064300537109375, 0.01132965087890625, -0.0174560546875, -0.021240234375, -0.043853759765625, 0.0191650390625, 0.022369384765625, 0.0249786376953125, 0.02642822265625, -0.0155181884765625, 0.01873779296875, 0.045135498046875, 0.0152740478515625, 0.0264434814453125, -0.0192718505859375, -0.036834716796875, -0.005283355712890625, -0.0065460205078125, -0.011993408203125, 0.01776123046875, -0.007965087890625, 0.007099151611328125, -0.06353759765625, 0.0186767578125, -0.027252197265625, -0.0213775634765625, -0.005279541015625, 0.037994384765625, -0.0322265625, 0.01213836669921875, 0.00583648681640625, 0.1328125, 0.033843994140625, -0.0946044921875, -0.02001953125, 0.0089569091796875, -0.0479736328125, 0.04620361328125, -0.01287078857421875, -0.022857666015625, 0.0043792724609375, 0.013824462890625, 0.0016374588012695312, -0.0038318634033203125, 0.0026340484619140625, -0.01465606689453125, -0.004810333251953125, -0.02490234375, 0.02447509765625, 0.039154052734375, 0.0012845993041992188, 0.007457733154296875, 0.05560302734375, -0.0333251953125, -0.02532958984375, 0.0014743804931640625, -0.038482666015625, -0.03851318359375, 0.0044097900390625, 0.00794219970703125, -0.0266265869140625, 0.0099029541015625, 0.01141357421875, 0.040496826171875, -0.0011415481567382812, 0.026123046875, -0.0009813308715820312, -0.009307861328125, -0.0216827392578125, -0.0136566162109375, -0.00739288330078125, -0.0294189453125, 0.0299530029296875, -0.0112762451171875, -0.001407623291015625, -0.022857666015625, 0.0042724609375, -0.05633544921875, -0.039337158203125, 0.0013208389282226562, -0.10516357421875, 0.0289764404296875, -0.07110595703125, 0.0181732177734375, -0.0238800048828125, 0.0814208984375, -0.0277557373046875, -0.00799560546875, -0.052764892578125, 0.023223876953125, -0.038330078125, -0.10394287109375, -0.0002777576446533203, 0.01157379150390625, -0.0148162841796875, 0.01366424560546875, -0.022003173828125, -0.00934600830078125, -0.03167724609375, -0.05755615234375, -0.01422119140625, -0.0297393798828125, 0.0260772705078125, -0.0207061767578125, 0.010284423828125, 0.01078033447265625, -0.0023975372314453125, -0.0101165771484375, -0.00968170166015625, -0.038482666015625, -0.0782470703125, -0.034637451171875, 0.036102294921875, 0.050750732421875, -0.0187225341796875, -0.003002166748046875, -0.0009036064147949219, 0.055328369140625, 0.0026073455810546875, 0.0008373260498046875, -0.0212860107421875, -0.0193328857421875, -0.00998687744140625, 0.038482666015625, -0.016998291015625, 0.01172637939453125, -0.00489044189453125, 0.01029205322265625, -0.0330810546875, 0.0105438232421875, -0.0282745361328125, -0.04364013671875, 0.026641845703125, -0.049560546875, -0.06884765625, -0.04388427734375, 0.010772705078125, 0.03338623046875, -0.0015316009521484375, 0.0108642578125, -0.074462890625, -0.0667724609375, 0.04730224609375, -0.0201568603515625, -0.01503753662109375, -0.001316070556640625, 0.07537841796875, 0.01462554931640625, -0.00972747802734375, -0.031646728515625, -0.01001739501953125, 0.044219970703125, -0.01212310791015625, 0.045379638671875, 0.032073974609375, -0.018951416015625, 0.052001953125, 0.0018062591552734375, -0.07257080078125, 0.03582763671875, 0.05743408203125, 0.02850341796875, -0.0105133056640625, -0.02606201171875, -0.0257568359375, 0.045684814453125, -0.0135345458984375, -0.0185699462890625, -0.00954437255859375, 0.0003418922424316406, 0.044708251953125, -0.0234222412109375, 0.0421142578125, -0.0256805419921875, -0.01251983642578125, 0.020355224609375, -0.015838623046875, -0.004825592041015625, 0.0197906494140625, 0.004779815673828125, -0.0160980224609375, -0.0181732177734375, -0.0014944076538085938, -0.050384521484375, -0.004241943359375, -0.005901336669921875, 0.01071929931640625, 0.01345062255859375, 0.00405120849609375, -0.037811279296875, -0.01457977294921875, 0.01479339599609375, -0.0267333984375, -0.06939697265625, -0.01348114013671875, -0.01079559326171875, 0.040802001953125, 0.0335693359375, 0.0196380615234375, 0.03094482421875, 0.0322265625, 0.00478363037109375, 0.00933074951171875, 0.0176849365234375, 0.04144287109375, -0.0290679931640625, 0.03936767578125, 0.044189453125, -0.01172637939453125, 0.039398193359375, 0.030731201171875, 0.0469970703125, 0.01274871826171875, -0.035491943359375, 0.05413818359375, 0.044464111328125, -0.032745361328125, -0.002574920654296875, 0.058624267578125, 0.001800537109375, -0.044952392578125, 0.012664794921875, -0.01502227783203125, -0.010498046875, -0.005504608154296875, -0.00850677490234375, -0.0122528076171875, -0.0039825439453125, 0.058013916015625, 0.0230712890625, -0.0167694091796875, 0.0150299072265625, 0.0362548828125, -0.0167388916015625, 0.00441741943359375, 0.00981903076171875, -0.0011806488037109375, 0.01300048828125, -0.0132293701171875, -0.0012378692626953125, -0.0264434814453125, 0.0018053054809570312, -0.03521728515625, -0.01556396484375, 0.0018873214721679688, 0.0209197998046875, -0.0224151611328125, -0.03472900390625, -0.00341033935546875, -0.02935791015625, 0.01349639892578125, 0.0023860931396484375, -0.00482940673828125, -0.0191650390625, -0.0289306640625, 0.02130126953125, -0.03460693359375, 0.0243988037109375, -0.02490234375, 0.0131378173828125, 0.017791748046875, 0.00824737548828125, 0.026153564453125, -0.0308837890625, -0.041961669921875, -0.053375244140625, -0.03155517578125, -0.0181884765625, -0.0235748291015625, 0.0033321380615234375, 0.04620361328125, 0.01739501953125, 0.0014934539794921875, -0.08746337890625, -0.0093231201171875, 0.01029205322265625, 0.06689453125, 0.031524658203125, 0.005283355712890625, 0.082763671875, -0.035858154296875, 0.08489990234375, 0.010345458984375, 0.0272674560546875, -0.053497314453125, -0.01690673828125, -0.0024662017822265625, -0.049652099609375, -0.00405120849609375, 0.0076751708984375, -0.009857177734375, 0.0120849609375, 0.014373779296875, 0.00238800048828125, -0.003658294677734375, -0.004726409912109375, 0.0097808837890625, -0.02825927734375, 0.04595947265625, -0.0221710205078125, 0.006198883056640625, 0.0045166015625, -0.015716552734375, -0.01415252685546875, 0.006359100341796875, 0.0225830078125, -0.0202789306640625, -0.01074981689453125, -0.010986328125, -0.0085906982421875, -0.04937744140625, 0.010284423828125, 0.04058837890625, 0.04241943359375, 0.061492919921875, -0.0235137939453125, 0.047210693359375, 0.04254150390625, -0.0345458984375, -0.0213775634765625, -0.0157928466796875, 0.035186767578125, -0.005886077880859375, -0.007160186767578125, 0.047637939453125, -0.0211181640625, 0.033447265625, 0.0609130859375, 0.07916259765625, -0.09442138671875, 0.0246429443359375, 0.040802001953125, -0.0311431884765625, 0.0269927978515625, -0.00670623779296875, -0.0109405517578125, -0.0216827392578125, 0.032623291015625, -0.032745361328125, -0.040771484375, -0.00878143310546875, -0.0156707763671875, 0.017364501953125, -0.00760650634765625, 0.0369873046875, -0.00202178955078125, -0.049835205078125, -0.017608642578125, 0.0269317626953125, -0.01128387451171875, -0.01497650146484375, 0.033599853515625, -0.0118255615234375, -0.027099609375, -0.06317138671875, -0.00846099853515625, 0.016845703125, -0.037322998046875, 0.0311737060546875, -0.002460479736328125, 0.033416748046875, 0.037841796875, 0.0034275054931640625, -0.003406524658203125, 0.009002685546875, -0.007366180419921875, -0.057891845703125, -0.0169525146484375, 0.008880615234375, 0.025360107421875, -0.0030498504638671875, 0.03204345703125, -0.01314544677734375, -0.02996826171875, -0.0012302398681640625, -0.0025634765625, 0.0615234375, -0.0606689453125, -0.005260467529296875, 0.00939178466796875, 0.0087738037109375, 0.0236968994140625, -0.00982666015625, 0.004974365234375, -0.048187255859375, -0.028839111328125, -0.01605224609375, -0.06304931640625, -0.029388427734375, -0.04278564453125, -0.029571533203125, 0.08026123046875, -0.0011587142944335938, 0.021148681640625, 0.037567138671875, 0.019134521484375, -0.055084228515625, -0.0008835792541503906, -0.060028076171875, 0.06817626953125, -0.01047515869140625, 0.04864501953125, -0.078857421875, 0.0035686492919921875, 0.007904052734375, 0.0024261474609375, 0.053436279296875, 0.01214599609375, -0.0285186767578125, -0.0027751922607421875, 0.07049560546875, 0.05224609375, 0.007366180419921875, 0.0104522705078125, -0.014312744140625, 0.04541015625, 0.0089569091796875, -0.076904296875, 0.0255126953125, -0.05450439453125, -0.0203094482421875, -0.00624847412109375, 0.021270751953125, 0.0171966552734375, -0.02264404296875, -0.00638580322265625, -0.051300048828125, -0.005603790283203125, 0.031463623046875, 0.01406097412109375, 0.03997802734375, 0.02423095703125, 0.0736083984375, -0.0283203125, -0.02252197265625, -0.01282501220703125, 0.058074951171875, 0.025604248046875, 0.042388916015625, 0.023193359375, 0.00972747802734375, 0.005886077880859375, 0.006809234619140625, 0.02142333984375, 0.0193634033203125, -0.019317626953125, 0.00714111328125, 0.0305023193359375, 0.00823974609375, -0.02960205078125, 0.032806396484375, 0.0628662109375, 0.034515380859375, -0.044464111328125, -0.0020961761474609375, 0.01424407958984375, 0.0213470458984375, -0.0129241943359375, -0.0160675048828125, 0.006107330322265625, -0.0097503662109375, 0.0286407470703125, -0.0299072265625, 0.0039520263671875, 0.0195159912109375, 0.056915283203125, -0.0126953125, -0.03594970703125, -0.0517578125, -0.0270233154296875, -0.05096435546875, -0.03515625, 0.0287017822265625, 0.07666015625, 0.05938720703125, 0.032562255859375, 0.024017333984375, -0.033233642578125, 0.00226593017578125, -0.007781982421875, -0.006137847900390625, -0.00563812255859375, -0.0143280029296875, -0.0211181640625, 0.017578125, 0.0274200439453125, 0.00540924072265625, 0.02423095703125, 0.059661865234375, 0.032989501953125, -0.0489501953125, -0.005970001220703125, 0.0223846435546875, -0.039306640625, -0.046234130859375, -0.03668212890625, 0.00273895263671875, 0.022216796875, 0.006984710693359375, 0.0307464599609375, 0.028564453125, -0.0000985264778137207, -0.0019512176513671875, 0.015167236328125, -0.00286865234375, -0.024505615234375, 0.032196044921875, -0.0145111083984375, 0.03460693359375, 0.0038509368896484375, -0.0244293212890625, 0.0012598037719726562, -0.007610321044921875, -0.0279693603515625, -0.0005803108215332031, 0.0189361572265625, -0.007720947265625, 0.0335693359375, 0.0267791748046875, -0.01800537109375, 0.01031494140625, 0.000926971435546875, 0.0347900390625, 0.0224151611328125, -0.01259613037109375, 0.0142822265625, -0.054595947265625, -0.026519775390625, -0.030975341796875, 0.053253173828125, 0.00914764404296875, 0.0369873046875, 0.006473541259765625, 0.03228759765625, -0.0341796875, 0.04083251953125, -0.0604248046875, -0.045654296875, 0.0225830078125, -0.0019588470458984375, 0.021575927734375, 0.02569580078125, 0.0271148681640625, -0.0025787353515625, 0.042144775390625, -0.050048828125, -0.03094482421875, -0.023712158203125, 0.038299560546875, -0.0028667449951171875, 0.003307342529296875, -0.0350341796875, -0.01349639892578125, -0.01424407958984375, -0.00875091552734375, 0.0192413330078125, -0.0180816650390625, 0.00650787353515625, 0.0220794677734375, -0.031005859375, -0.05694580078125, 0.0279083251953125, -0.06365966796875, 0.02606201171875, 0.0205230712890625, -0.00262451171875, -0.0099639892578125, -0.010589599609375, -0.0210113525390625, -0.0159912109375, 0.0171966552734375, 0.0063934326171875, -0.0102081298828125, 0.01071929931640625, -0.05560302734375, 0.00801849365234375, 0.030670166015625, -0.0079498291015625, 0.0211334228515625, -0.01396942138671875, -0.011383056640625, -0.01983642578125, 0.0081024169921875, -0.01507568359375, 0.0160369873046875, -0.01110076904296875, -0.01227569580078125, 0.00473785400390625, -0.08355712890625, -0.039306640625, -0.0086517333984375, 0.03216552734375, -0.00768280029296875, -0.01922607421875, -0.005191802978515625, -0.035003662109375, 0.01291656494140625, 0.003017425537109375, 0.0258636474609375, -0.0027103424072265625, 0.01004791259765625, -0.0361328125, 0.0228271484375, 0.00008916854858398438, 0.0158233642578125, 0.039306640625, -0.0048675537109375, 0.043121337890625, -0.021392822265625, -0.0213165283203125, -0.0157623291015625, -0.013763427734375, 0.0227508544921875, -0.007099151611328125, -0.029296875, 0.0025997161865234375, 0.0018863677978515625, -0.0032863616943359375, -0.067626953125, -0.005474090576171875, -0.0631103515625, -0.0020599365234375, -0.023468017578125, 0.006664276123046875, 0.0203399658203125, -0.02508544921875, -0.036590576171875, 0.07177734375, -0.01497650146484375, -0.016571044921875, -0.03155517578125, 0.00443267822265625, -0.00789642333984375, 0.02813720703125, 0.00887298583984375, -0.0513916015625, -0.0175628662109375, 0.0031642913818359375, -0.0224456787109375, 0.060699462890625, -0.0194854736328125, -0.02239990234375, -0.0186920166015625, 0.0027370452880859375, 0.0153045654296875, -0.00499725341796875, -0.03350830078125, 0.0023059844970703125, -0.0007815361022949219, 0.0182647705078125, -0.02728271484375, 0.01427459716796875, 0.0232391357421875, 0.0416259765625, 0.0016422271728515625, -0.06634521484375, -0.040374755859375, -0.0335693359375, 0.0673828125, 0.0168304443359375, 0.028900146484375, -0.0188751220703125, 0.0146331787109375, -0.037567138671875, -0.03314208984375, -0.0181121826171875, 0.017303466796875, -0.056427001953125, -0.00962066650390625, 0.0160064697265625, 0.0094146728515625, 0.0039520263671875, -0.054595947265625, -0.00466156005859375, -0.01654052734375, 0.0181884765625, 0.0147705078125, 0.0022106170654296875, 0.01064300537109375, -0.0221405029296875, 0.0002237558364868164, 0.0002799034118652344, 0.005664825439453125, -0.006076812744140625, -0.0181884765625, 0.05157470703125, 0.00792694091796875, 0.012542724609375, -0.036865234375, 0.0011701583862304688, 0.0084686279296875, 0.0005898475646972656, -0.0215911865234375, -0.00678253173828125, -0.018585205078125, -0.0289764404296875, 0.01068115234375, -0.046478271484375, -0.03192138671875, 0.00479888916015625, -0.0011758804321289062, 0.048309326171875, -0.031036376953125, 0.01284027099609375, -0.00019752979278564453, -0.01177215576171875, -0.00644683837890625, 0.024078369140625, 0.053466796875, -0.0277099609375, 0.017242431640625, -0.027099609375, 0.020721435546875, -0.0178985595703125, 0.018829345703125, -0.0263824462890625, -0.017578125, 0.0103912353515625 ]
9dad1b2e41058d58d1face2263522cf23fc1233d
Wordpress Stackexchange Q: wp_kses vs wp_strip_all_tags Apart from providing a granular control for allowed HTML tags does wp_kses provide any additional benefits over wp_strip_all_tags? Essentially, if I were to use wp_kses and set it to not allow any HTML or protocols, would it carry any benefit over just using wp_strip_all_tags? A: I wouldn't call it a benefit or disadvantage, but more of a difference: wp_strip_all_tags simply strips all tags (except for the allowed tags) but does not delete their content by calling the PHP function strip_tags, after removing script and style tags in full, including their contents. wp_kses does no such thing: // Returns 'alert( "test" )' (content of script tag) wp_kses( '<script>alert( "test" );</script>', array() ); // Returns '' (empty string) wp_strip_all_tags( '<script>alert( "test" );</script>' ); So, if you were to use wp_kses and set it to not allow any HTML, it would differ from wp_strip_all_tags in that it would not remove the content of script and style tags.
Q: wp_kses vs wp_strip_all_tags Apart from providing a granular control for allowed HTML tags does wp_kses provide any additional benefits over wp_strip_all_tags? Essentially, if I were to use wp_kses and set it to not allow any HTML or protocols, would it carry any benefit over just using wp_strip_all_tags? A: I wouldn't call it a benefit or disadvantage, but more of a difference: wp_strip_all_tags simply strips all tags (except for the allowed tags) but does not delete their content by calling the PHP function strip_tags, after removing script and style tags in full, including their contents. wp_kses does no such thing: // Returns 'alert( "test" )' (content of script tag) wp_kses( '<script>alert( "test" );</script>', array() ); // Returns '' (empty string) wp_strip_all_tags( '<script>alert( "test" );</script>' ); So, if you were to use wp_kses and set it to not allow any HTML, it would differ from wp_strip_all_tags in that it would not remove the content of script and style tags.
wordpress
{ "language": "en", "length": 158, "provenance": "stackexchange_00019.jsonl.gz:445737", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/147287" }
[ 0.036285400390625, -0.006107330322265625, -0.0091705322265625, -0.01219940185546875, 0.02081298828125, -0.032196044921875, 0.04840087890625, -0.002330780029296875, -0.017181396484375, 0.035675048828125, 0.0058441162109375, 0.0264892578125, -0.01120758056640625, -0.01763916015625, 0.009552001953125, -0.006580352783203125, 0.043914794921875, -0.0291595458984375, 0.036529541015625, -0.00118255615234375, 0.007160186767578125, 0.0243988037109375, 0.052093505859375, 0.0151519775390625, 0.0016021728515625, -0.041473388671875, 0.057281494140625, 0.00286865234375, -0.0289154052734375, -0.04278564453125, -0.0014190673828125, 0.0308074951171875, 0.0228424072265625, 0.0921630859375, -0.12493896484375, -0.020416259765625, -0.0283203125, 0.040985107421875, -0.006191253662109375, 0.01467132568359375, 0.003570556640625, -0.007236480712890625, 0.0325927734375, 0.0091552734375, -0.00824737548828125, 0.0038127899169921875, -0.004550933837890625, -0.0200347900390625, -0.0172271728515625, -0.01377105712890625, 0.01123809814453125, -0.011199951171875, 0.039886474609375, -0.0701904296875, -0.01160430908203125, -0.015838623046875, -0.06304931640625, 0.044036865234375, 0.01122283935546875, 0.077392578125, 0.0269012451171875, 0.0213775634765625, -0.0201873779296875, -0.04302978515625, -0.0198974609375, 0.01174163818359375, 0.01442718505859375, 0.0011138916015625, -0.07135009765625, -0.025421142578125, 0.031463623046875, -0.03045654296875, 0.0211029052734375, -0.047576904296875, 0.0033130645751953125, 0.005306243896484375, -0.053497314453125, -0.04205322265625, 0.049072265625, -0.02496337890625, 0.0183258056640625, -0.0285186767578125, -0.028167724609375, -0.0035419464111328125, -0.00270843505859375, -0.0199432373046875, -0.0030727386474609375, -0.0034656524658203125, -0.038818359375, -0.021759033203125, -0.035064697265625, -0.01505279541015625, -0.055084228515625, -0.01441192626953125, 0.0158538818359375, -0.038238525390625, -0.00440216064453125, -0.0274658203125, -0.0255889892578125, 0.0219573974609375, 0.024322509765625, -0.0389404296875, 0.0548095703125, -0.0252685546875, 0.019866943359375, 0.07586669921875, 0.0302886962890625, -0.0059814453125, 0.0299224853515625, -0.023773193359375, 0.0189056396484375, 0.04022216796875, 0.0132293701171875, 0.03411865234375, -0.050811767578125, -0.0196380615234375, -0.01178741455078125, -0.030303955078125, -0.024261474609375, -0.0004143714904785156, 0.00556182861328125, 0.01416778564453125, 0.0162506103515625, -0.0179901123046875, -0.0149993896484375, -0.01763916015625, -0.0127105712890625, -0.0258026123046875, -0.00362396240234375, 0.00659942626953125, -0.022430419921875, 0.02105712890625, -0.01464080810546875, 0.0009703636169433594, -0.0198211669921875, -0.01126861572265625, 0.00283050537109375, 0.0180206298828125, -0.0111083984375, 0.03448486328125, -0.0232696533203125, -0.043304443359375, 0.016937255859375, -0.01535797119140625, 0.00466156005859375, 0.0187530517578125, 0.03387451171875, 0.0175933837890625, -0.0277099609375, -0.0667724609375, 0.062744140625, -0.024566650390625, 0.08013916015625, -0.0426025390625, -0.02056884765625, -0.058319091796875, -0.01666259765625, -0.02362060546875, -0.0242919921875, -0.034759521484375, 0.00969696044921875, -0.0369873046875, -0.00754547119140625, 0.0008244514465332031, 0.00069427490234375, 0.0210723876953125, -0.019073486328125, 0.002628326416015625, 0.034820556640625, 0.03472900390625, -0.021240234375, -0.026153564453125, 0.039794921875, 0.02093505859375, -0.01061248779296875, 0.046630859375, -0.01605224609375, 0.046478271484375, 0.035125732421875, 0.0186614990234375, -0.004657745361328125, -0.036102294921875, 0.1102294921875, -0.032562255859375, -0.06695556640625, 0.004123687744140625, 0.0071258544921875, 0.0714111328125, 0.059356689453125, 0.0218658447265625, 0.047821044921875, -0.055755615234375, 0.0256805419921875, -0.0271453857421875, 0.06646728515625, -0.037261962890625, -0.0263214111328125, -0.04248046875, 0.0223846435546875, -0.0250091552734375, 0.04351806640625, -0.0122528076171875, 0.02203369140625, -0.013916015625, 0.020050048828125, -0.0299072265625, 0.00408935546875, 0.0204315185546875, -0.04437255859375, 0.032928466796875, 0.035308837890625, 0.0122833251953125, -0.050201416015625, 0.032867431640625, 0.0293121337890625, -0.00823211669921875, -0.00579071044921875, 0.0511474609375, 0.0159149169921875, 0.04119873046875, 0.03656005859375, -0.00867462158203125, 0.03826904296875, -0.005809783935546875, 0.022247314453125, -0.0269775390625, -0.010223388671875, -0.01407623291015625, 0.0203857421875, 0.0129547119140625, 0.01140594482421875, 0.0250091552734375, 0.0487060546875, 0.09356689453125, 0.017791748046875, -0.014556884765625, 0.0294342041015625, -0.084716796875, 0.02703857421875, 0.040313720703125, 0.03875732421875, 0.06097412109375, -0.02880859375, -0.05322265625, 0.057403564453125, -0.06842041015625, -0.0118560791015625, -0.033203125, -0.0078125, -0.0005159378051757812, 0.0011358261108398438, -0.0028400421142578125, 0.02630615234375, 0.007022857666015625, -0.0125732421875, 0.020751953125, -0.0016946792602539062, -0.00618743896484375, -0.032745361328125, 0.0187225341796875, 0.00865936279296875, 0.019622802734375, 0.0031375885009765625, 0.0125579833984375, 0.0443115234375, -0.0262603759765625, 0.01108551025390625, 0.004131317138671875, -0.0173187255859375, -0.0211029052734375, 0.0178985595703125, -0.0008764266967773438, 0.007965087890625, 0.064453125, 0.00933074951171875, 0.021331787109375, -0.01363372802734375, -0.0299224853515625, 0.00417327880859375, 0.043975830078125, -0.018157958984375, 0.0245361328125, 0.018280029296875, -0.0210723876953125, -0.004528045654296875, -0.0452880859375, 0.00492095947265625, -0.0178680419921875, 0.003910064697265625, -0.0007381439208984375, 0.038604736328125, -0.0064697265625, -0.0218658447265625, 0.01416778564453125, -0.0020046234130859375, -0.0192108154296875, 0.0274658203125, -0.04583740234375, 0.01343536376953125, -0.005489349365234375, 0.10345458984375, 0.06988525390625, 0.0296783447265625, -0.01580810546875, 0.022125244140625, -0.006366729736328125, 0.0323486328125, -0.002162933349609375, -0.01163482666015625, 0.037628173828125, -0.11090087890625, -0.035064697265625, 0.021820068359375, 0.0306396484375, -0.00754547119140625, -0.0220184326171875, -0.0187835693359375, 0.0203704833984375, -0.06683349609375, -0.050537109375, 0.04730224609375, -0.0458984375, -0.016998291015625, -0.036224365234375, -0.037811279296875, -0.0005307197570800781, -0.0206298828125, -0.0088958740234375, -0.0145416259765625, -0.01088714599609375, -0.040771484375, -0.0183563232421875, -0.0455322265625, 0.054779052734375, -0.0134735107421875, 0.00142669677734375, 0.02490234375, 0.045166015625, 0.0175628662109375, -0.05291748046875, 0.029388427734375, -0.004425048828125, -0.037261962890625, 0.020843505859375, 0.004390716552734375, -0.0302581787109375, -0.033935546875, -0.005828857421875, -0.0267791748046875, -0.01279449462890625, 0.0255279541015625, -0.01029205322265625, -0.019622802734375, -0.028076171875, 0.0297698974609375, 0.007049560546875, -0.00787353515625, 0.0015544891357421875, 0.050689697265625, -0.0297698974609375, -0.0269622802734375, 0.01526641845703125, -0.038543701171875, 0.005950927734375, 0.0265350341796875, -0.01513671875, 0.01465606689453125, -0.00908660888671875, 0.047882080078125, 0.03076171875, 0.018341064453125, 0.00911712646484375, 0.01085662841796875, 0.0037326812744140625, 0.031585693359375, -0.032745361328125, 0.006252288818359375, -0.037750244140625, 0.00007611513137817383, -0.0177459716796875, -0.04718017578125, -0.0260467529296875, -0.023773193359375, -0.01922607421875, 0.00785064697265625, 0.0177001953125, -0.02587890625, 0.01532745361328125, -0.046722412109375, 0.010101318359375, -0.05084228515625, 0.01125335693359375, 0.0211639404296875, -0.0127410888671875, -0.02935791015625, -0.007354736328125, -0.043212890625, -0.014739990234375, -0.0036487579345703125, 0.0120391845703125, -0.073486328125, 0.0217742919921875, -0.005519866943359375, -0.01412200927734375, -0.031402587890625, -0.01494598388671875, -0.056915283203125, -0.035491943359375, 0.041290283203125, -0.03240966796875, -0.005542755126953125, -0.0132293701171875, -0.005512237548828125, -0.05328369140625, -0.0307769775390625, -0.0089569091796875, -0.0311737060546875, -0.00528717041015625, -0.01690673828125, 0.0226287841796875, 0.0307464599609375, -0.02972412109375, -0.0107269287109375, 0.0171966552734375, -0.0160675048828125, -0.0167236328125, 0.03668212890625, 0.04156494140625, -0.0249176025390625, -0.0019521713256835938, 0.00949859619140625, -0.04241943359375, -0.029083251953125, -0.06085205078125, -0.01451873779296875, -0.0452880859375, -0.006046295166015625, -0.023101806640625, 0.0193023681640625, 0.00482177734375, -0.021209716796875, -0.019317626953125, -0.03045654296875, -0.00885772705078125, 0.005184173583984375, -0.040740966796875, -0.0285797119140625, -0.00727081298828125, 0.06500244140625, 0.03314208984375, -0.0271453857421875, -0.02667236328125, 0.046417236328125, 0.027069091796875, -0.052978515625, 0.0145721435546875, -0.00382232666015625, 0.020751953125, -0.07720947265625, 0.051300048828125, 0.036407470703125, -0.0084686279296875, 0.04046630859375, -0.0290679931640625, 0.0299224853515625, -0.0211181640625, 0.0706787109375, 0.004268646240234375, 0.0192108154296875, 0.006153106689453125, 0.016754150390625, -0.035186767578125, -0.0018663406372070312, 0.0151519775390625, 0.01221466064453125, 0.0435791015625, -0.00965118408203125, 0.0145721435546875, -0.0297393798828125, 0.0017099380493164062, 0.005462646484375, 0.0052490234375, 0.05572509765625, -0.011474609375, 0.0176849365234375, 0.007114410400390625, -0.046722412109375, -0.010406494140625, 0.0271453857421875, -0.0301971435546875, -0.0150604248046875, -0.01070404052734375, 0.057952880859375, -0.0247802734375, 0.0271148681640625, -0.01338958740234375, -0.005428314208984375, 0.01519775390625, -0.0024433135986328125, -0.023468017578125, -0.008819580078125, 0.01541900634765625, 0.04937744140625, -0.006526947021484375, 0.0186767578125, 0.02764892578125, -0.0186920166015625, -0.0080413818359375, 0.005268096923828125, 0.0013513565063476562, -0.059967041015625, -0.02362060546875, -0.040069580078125, -0.0110015869140625, -0.02532958984375, 0.01558685302734375, 0.01488494873046875, -0.0276336669921875, 0.0316162109375, -0.007251739501953125, -0.00406646728515625, -0.001232147216796875, 0.022064208984375, 0.0150146484375, -0.01198577880859375, -0.0211944580078125, 0.00439453125, 0.004669189453125, -0.02783203125, -0.0251617431640625, 0.036529541015625, 0.0191192626953125, -0.0230560302734375, -0.00841522216796875, 0.017425537109375, 0.02117919921875, -0.033355712890625, 0.0494384765625, 0.0333251953125, 0.002300262451171875, -0.058502197265625, -0.0280914306640625, 0.0430908203125, 0.04180908203125, -0.0167388916015625, 0.025421142578125, -0.0222015380859375, -0.001964569091796875, 0.055755615234375, -0.051727294921875, -0.0005044937133789062, 0.01348114013671875, -0.032501220703125, -0.0181427001953125, 0.01493072509765625, -0.055206298828125, -0.0018072128295898438, -0.0284423828125, -0.03753662109375, 0.058685302734375, -0.0242156982421875, 0.04736328125, -0.01329803466796875, -0.0214691162109375, -0.0015888214111328125, 0.03021240234375, 0.0208740234375, 0.040740966796875, -0.0248870849609375, 0.00021839141845703125, -0.033294677734375, -0.003631591796875, -0.03985595703125, -0.06494140625, -0.02069091796875, -0.01197052001953125, -0.0203704833984375, -0.00286865234375, -0.00861358642578125, 0.0038623809814453125, -0.005634307861328125, 0.03533935546875, 0.0018596649169921875, 0.012054443359375, -0.0285797119140625, 0.024444580078125, 0.008331298828125, -0.02752685546875, -0.01255035400390625, 0.0091400146484375, 0.038909912109375, -0.01032257080078125, 0.0058746337890625, -0.09918212890625, -0.0164031982421875, -0.0277099609375, -0.01212310791015625, 0.044952392578125, 0.0093994140625, 0.01103973388671875, 0.0462646484375, -0.0024013519287109375, 0.01016998291015625, -0.01096343994140625, -0.024444580078125, -0.0282135009765625, 0.01517486572265625, 0.0298919677734375, 0.01076507568359375, 0.0083160400390625, -0.020904541015625, 0.0052490234375, 0.0197296142578125, -0.0025806427001953125, 0.0198822021484375, -0.0238037109375, -0.01274871826171875, 0.0291290283203125, -0.002716064453125, -0.02947998046875, -0.0013713836669921875, -0.0062103271484375, -0.006103515625, -0.006290435791015625, -0.026702880859375, -0.005733489990234375, -0.017120361328125, 0.0296173095703125, -0.003673553466796875, 0.036468505859375, 0.062408447265625, 0.00537872314453125, -0.0002130270004272461, 0.093505859375, 0.0750732421875, -0.10943603515625, -0.002140045166015625, 0.03302001953125, -0.032501220703125, -0.043548583984375, -0.013885498046875, -0.0284423828125, -0.0552978515625, 0.03143310546875, -0.04364013671875, -0.036590576171875, -0.01297760009765625, -0.021636962890625, 0.0011053085327148438, -0.016937255859375, 0.0794677734375, 0.022613525390625, -0.07611083984375, 0.032440185546875, 0.041229248046875, -0.0190582275390625, -0.00799560546875, 0.00986480712890625, 0.0260772705078125, -0.05035400390625, -0.08477783203125, -0.028717041015625, 0.007106781005859375, -0.061859130859375, -0.00412750244140625, -0.0030975341796875, 0.00115966796875, 0.057830810546875, -0.046295166015625, 0.0217437744140625, 0.02484130859375, -0.00848388671875, -0.055755615234375, -0.016204833984375, 0.0310211181640625, 0.029937744140625, 0.02618408203125, 0.04095458984375, 0.00696563720703125, -0.05682373046875, 0.0002486705780029297, 0.0174102783203125, 0.045074462890625, 0.005268096923828125, -0.0280609130859375, 0.02593994140625, 0.040069580078125, 0.0005841255187988281, -0.01105499267578125, 0.01328277587890625, -0.0860595703125, -0.04730224609375, 0.00222015380859375, -0.0341796875, -0.0009975433349609375, 0.00004673004150390625, -0.065185546875, 0.10595703125, 0.048553466796875, 0.037384033203125, 0.02410888671875, 0.0262298583984375, -0.056365966796875, -0.01549530029296875, 0.0088653564453125, 0.00205230712890625, -0.0224151611328125, -0.0333251953125, 0.0079345703125, 0.00847625732421875, -0.01450347900390625, 0.0197906494140625, -0.0029697418212890625, -0.0146484375, 0.027557373046875, -0.0230560302734375, 0.007297515869140625, 0.02459716796875, -0.01030731201171875, -0.0275115966796875, 0.01371002197265625, 0.0546875, 0.04095458984375, -0.0576171875, 0.0220489501953125, -0.02801513671875, -0.01273345947265625, 0.0241851806640625, -0.006591796875, -0.0167083740234375, -0.0156402587890625, -0.021026611328125, -0.043060302734375, 0.003925323486328125, 0.00002777576446533203, 0.01551055908203125, -0.01543426513671875, 0.01983642578125, 0.02679443359375, -0.041351318359375, -0.0849609375, -0.013275146484375, 0.0219879150390625, 0.0272979736328125, 0.038116455078125, 0.043701171875, 0.004299163818359375, 0.04547119140625, 0.019195556640625, 0.034454345703125, 0.0011749267578125, 0.00691986083984375, -0.0165863037109375, 0.007015228271484375, -0.00989532470703125, -0.024627685546875, 0.01049041748046875, 0.041412353515625, -0.00528717041015625, -0.0160369873046875, -0.0240936279296875, -0.0025691986083984375, 0.00008398294448852539, 0.002025604248046875, 0.002239227294921875, 0.0090179443359375, 0.013885498046875, 0.0228271484375, 0.03338623046875, -0.0059661865234375, -0.015869140625, -0.01126861572265625, 0.0172882080078125, 0.05816650390625, -0.0095367431640625, 0.0225067138671875, -0.0443115234375, -0.009674072265625, -0.01145172119140625, 0.037628173828125, 0.049713134765625, 0.0333251953125, 0.0232086181640625, -0.03466796875, -0.02947998046875, 0.044708251953125, -0.0307159423828125, 0.03204345703125, -0.0278472900390625, -0.01873779296875, 0.01500701904296875, 0.016998291015625, 0.021240234375, -0.0196685791015625, 0.050537109375, 0.0406494140625, -0.034423828125, -0.0141448974609375, 0.025909423828125, -0.01248931884765625, -0.02886962890625, -0.007476806640625, -0.012359619140625, 0.03466796875, -0.004344940185546875, -0.002349853515625, 0.026519775390625, 0.03277587890625, -0.006519317626953125, 0.032073974609375, 0.0036869049072265625, -0.0101776123046875, 0.0087890625, 0.0017404556274414062, 0.0162353515625, 0.02130126953125, -0.010894775390625, -0.004650115966796875, -0.00919342041015625, 0.0262451171875, -0.00688934326171875, 0.0192108154296875, 0.0159149169921875, 0.030487060546875, 0.042999267578125, -0.04718017578125, 0.04754638671875, 0.01947021484375, 0.0103607177734375, 0.00910186767578125, 0.01218414306640625, -0.0024051666259765625, -0.037353515625, 0.00009495019912719727, 0.00496673583984375, -0.0011653900146484375, -0.01148223876953125, 0.031768798828125, -0.005413055419921875, 0.001033782958984375, 0.023529052734375, 0.0238037109375, -0.0005311965942382812, -0.002132415771484375, 0.053741455078125, 0.00951385498046875, 0.0167236328125, -0.0208740234375, -0.03485107421875, 0.043060302734375, 0.0163726806640625, -0.0004115104675292969, 0.042510986328125, -0.0141143798828125, -0.00388336181640625, -0.00518035888671875, 0.0253448486328125, -0.0279083251953125, -0.057464599609375, -0.0499267578125, 0.01523590087890625, 0.0023746490478515625, 0.0221405029296875, -0.0030670166015625, 0.04205322265625, -0.003421783447265625, -0.017913818359375, 0.0190582275390625, -0.032867431640625, -0.01739501953125, 0.0038280487060546875, 0.0303497314453125, 0.0100555419921875, 0.0330810546875, -0.01226806640625, 0.0135498046875, 0.02191162109375, -0.00939178466796875, 0.0156097412109375, 0.026336669921875, -0.02899169921875, 0.0411376953125, 0.035491943359375, -0.0006365776062011719, 0.025726318359375, 0.01430511474609375, -0.028045654296875, -0.022003173828125, -0.042816162109375, -0.038848876953125, -0.006183624267578125, -0.00746917724609375, 0.01447296142578125, 0.00795745849609375, -0.082763671875, -0.062103271484375, -0.031402587890625, 0.0223846435546875, -0.00441741943359375, -0.017059326171875, -0.0115203857421875, -0.0229644775390625, -0.00028586387634277344, -0.016204833984375, 0.0311431884765625, -0.038970947265625, -0.05303955078125, -0.05145263671875, -0.0614013671875, -0.07965087890625, 0.09381103515625, -0.064208984375, 0.0186920166015625, -0.00237274169921875, -0.01593017578125, -0.007266998291015625, 0.032135009765625, 0.02325439453125, 0.086669921875, 0.01666259765625, -0.0240325927734375, -0.00415802001953125, -0.004161834716796875, 0.0052337646484375, -0.0171966552734375, -0.009857177734375, -0.026336669921875, -0.0174560546875, -0.00904083251953125, 0.0073699951171875, 0.017730712890625, -0.0231475830078125, -0.047515869140625, 0.09454345703125, -0.021881103515625, -0.009979248046875, -0.01204681396484375, 0.013671875, 0.0135040283203125, -0.02001953125, -0.00876617431640625, -0.00791168212890625, -0.01300048828125, -0.00656890869140625, 0.0289154052734375, 0.04083251953125, -0.0014734268188476562, 0.0170135498046875, -0.019683837890625, 0.04547119140625, 0.0067138671875, 0.0158843994140625, -0.053924560546875, 0.017974853515625, 0.011260986328125, 0.006168365478515625, -0.0175323486328125, 0.055450439453125, 0.046173095703125, 0.04962158203125, 0.00417327880859375, 0.0031070709228515625, -0.034027099609375, -0.0029850006103515625, 0.06951904296875, 0.0217742919921875, 0.0214080810546875, -0.030029296875, -0.0302734375, -0.021759033203125, -0.01531982421875, -0.02734375, 0.0101165771484375, -0.05438232421875, 0.00589752197265625, -0.020233154296875, -0.005161285400390625, 0.032562255859375, -0.0287017822265625, -0.02142333984375, 0.0009322166442871094, 0.0076446533203125, 0.0189666748046875, -0.037017822265625, -0.0126190185546875, 0.0213165283203125, -0.0186004638671875, 0.003978729248046875, -0.0009069442749023438, 0.0242156982421875, 0.0128326416015625, 0.0308990478515625, 0.007843017578125, -0.016204833984375, -0.0040283203125, 0.0005297660827636719, 0.01340484619140625, 0.007778167724609375, -0.0006947517395019531, -0.0228271484375, -0.01385498046875, 0.0379638671875, -0.0007104873657226562, 0.06402587890625, 0.00992584228515625, 0.01386260986328125, 0.01549530029296875, -0.0097808837890625, -0.01983642578125, 0.015838623046875, 0.004428863525390625, -0.00018477439880371094, -0.0020236968994140625, 0.000701904296875, 0.05914306640625, -0.041473388671875, -0.01169586181640625, 0.01434326171875, 0.006359100341796875, -0.10186767578125, 0.0645751953125, 0.024169921875, 0.047760009765625, 0.042327880859375 ]
a314b60aa817bc04b6971fe674da81bdd4549b32
Wordpress Stackexchange Q: When to use _e and __ for the translation? What is difference between _e() and __() functions for the translation? In what cases e() and __ ()should be used? A: If you want to echo the translated string, then you will be using _e and when you just want to have the translated string, then you will be using __. Example: _e('this is a message', 'twentyfourteen'); is same as echo __('this is a message', 'twentyfourteen');
Q: When to use _e and __ for the translation? What is difference between _e() and __() functions for the translation? In what cases e() and __ ()should be used? A: If you want to echo the translated string, then you will be using _e and when you just want to have the translated string, then you will be using __. Example: _e('this is a message', 'twentyfourteen'); is same as echo __('this is a message', 'twentyfourteen');
wordpress
{ "language": "en", "length": 76, "provenance": "stackexchange_00019.jsonl.gz:445835", "question_score": "25", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/147633" }
[ 0.00936126708984375, -0.017333984375, 0.0013637542724609375, 0.017547607421875, -0.0008425712585449219, -0.0199432373046875, 0.0626220703125, -0.0215301513671875, 0.0379638671875, 0.0482177734375, 0.0137481689453125, -0.023468017578125, 0.05853271484375, -0.043792724609375, -0.027496337890625, 0.007061004638671875, 0.035186767578125, -0.04986572265625, -0.004634857177734375, -0.0311126708984375, 0.0111541748046875, -0.010528564453125, 0.0208282470703125, 0.0187835693359375, 0.07379150390625, -0.10516357421875, 0.056640625, -0.00118255615234375, 0.0364990234375, -0.00981903076171875, 0.04351806640625, -0.01049041748046875, 0.027587890625, 0.046234130859375, -0.08612060546875, -0.0290985107421875, -0.0477294921875, 0.037353515625, -0.037017822265625, 0.020660400390625, 0.0243377685546875, -0.01255035400390625, 0.006748199462890625, 0.00550079345703125, 0.01372528076171875, -0.038238525390625, 0.0452880859375, -0.03387451171875, 0.005466461181640625, 0.002796173095703125, 0.0200958251953125, -0.0030364990234375, 0.0265655517578125, 0.006134033203125, -0.004550933837890625, 0.004215240478515625, -0.047943115234375, 0.03424072265625, 0.01666259765625, 0.03985595703125, -0.007717132568359375, 0.004528045654296875, 0.00600433349609375, -0.039581298828125, -0.02362060546875, 0.006923675537109375, -0.0012845993041992188, 0.006427764892578125, -0.04498291015625, -0.051361083984375, 0.0126495361328125, -0.01953125, 0.034515380859375, -0.0289764404296875, -0.00601959228515625, 0.0252838134765625, -0.035003662109375, 0.00972747802734375, 0.0309906005859375, -0.02044677734375, -0.044647216796875, -0.00495147705078125, -0.060211181640625, -0.03759765625, -0.00004941225051879883, -0.01503753662109375, -0.0164337158203125, -0.00966644287109375, -0.049468994140625, -0.0180816650390625, -0.0236358642578125, -0.005649566650390625, -0.071044921875, 0.00501251220703125, 0.0152435302734375, -0.041259765625, 0.0118408203125, 0.022735595703125, -0.01995849609375, 0.00409698486328125, -0.0050048828125, -0.0216064453125, -0.004604339599609375, -0.007793426513671875, 0.03271484375, 0.0259246826171875, -0.03619384765625, 0.0134735107421875, 0.071044921875, 0.0360107421875, 0.004055023193359375, 0.03033447265625, 0.0163116455078125, -0.04803466796875, 0.047637939453125, 0.03985595703125, 0.0024013519287109375, 0.08282470703125, 0.0179290771484375, 0.044219970703125, 0.0020694732666015625, -0.0007371902465820312, 0.10980224609375, -0.03704833984375, 0.021209716796875, 0.01128387451171875, -0.03509521484375, -0.08489990234375, 0.025054931640625, 0.050262451171875, -0.02374267578125, -0.0199432373046875, 0.032470703125, -0.00769805908203125, -0.0168304443359375, -0.03302001953125, -0.024169921875, -0.006954193115234375, -0.0195465087890625, 0.036102294921875, -0.0243682861328125, -0.038421630859375, 0.0269012451171875, -0.0077972412109375, -0.028045654296875, 0.0240020751953125, 0.029937744140625, -0.00024509429931640625, -0.0279083251953125, -0.09234619140625, 0.01528167724609375, -0.01515960693359375, 0.022125244140625, -0.0051422119140625, -0.00888824462890625, -0.028839111328125, -0.015228271484375, -0.01038360595703125, -0.004802703857421875, -0.0166473388671875, -0.032958984375, -0.0159759521484375, 0.0028743743896484375, -0.05377197265625, -0.06292724609375, 0.036712646484375, -0.0007824897766113281, -0.0012445449829101562, 0.01111602783203125, -0.014495849609375, -0.01727294921875, 0.005889892578125, 0.0093841552734375, 0.003528594970703125, -0.000453948974609375, 0.0345458984375, -0.036956787109375, -0.034088134765625, 0.0347900390625, 0.033416748046875, 0.0061187744140625, -0.023162841796875, -0.034698486328125, 0.03790283203125, -0.0196075439453125, -0.026031494140625, 0.016632080078125, 0.0023040771484375, 0.022705078125, 0.0141448974609375, 0.02117919921875, 0.0015888214111328125, -0.00039315223693847656, 0.03851318359375, 0.0196990966796875, -0.020538330078125, -0.031280517578125, 0.001399993896484375, 0.006481170654296875, -0.0635986328125, 0.0225067138671875, -0.039276123046875, 0.03155517578125, 0.01081085205078125, -0.058197021484375, 0.0034427642822265625, -0.03924560546875, 0.0223846435546875, 0.032012939453125, 0.0244903564453125, -0.0161590576171875, -0.0006413459777832031, 0.002773284912109375, -0.04571533203125, -0.043731689453125, 0.007442474365234375, -0.01393890380859375, 0.0214385986328125, -0.00687408447265625, 0.00045752525329589844, -0.003070831298828125, -0.00795745849609375, -0.0171356201171875, 0.03033447265625, 0.0025806427001953125, -0.00777435302734375, -0.00312042236328125, -0.0082244873046875, 0.016632080078125, -0.0006771087646484375, 0.0301666259765625, 0.0245361328125, 0.0208892822265625, 0.0137481689453125, -0.005207061767578125, 0.01049041748046875, 0.0007653236389160156, -0.076416015625, -0.0079193115234375, 0.051666259765625, 0.04156494140625, 0.0167236328125, -0.016845703125, -0.037811279296875, 0.0372314453125, -0.00905609130859375, 0.0223236083984375, -0.0404052734375, 0.00492095947265625, 0.0180511474609375, 0.00222015380859375, -0.0506591796875, 0.01468658447265625, -0.08306884765625, -0.0136260986328125, 0.0321044921875, -0.035491943359375, -0.04327392578125, 0.0238494873046875, -0.0018262863159179688, 0.0030078887939453125, -0.013580322265625, -0.01139068603515625, 0.002582550048828125, -0.00933074951171875, -0.012298583984375, -0.0012617111206054688, 0.0006346702575683594, -0.0274810791015625, -0.0135498046875, 0.023223876953125, 0.0223846435546875, 0.006855010986328125, -0.005340576171875, -0.05889892578125, 0.038970947265625, -0.0126953125, 0.02099609375, -0.0009546279907226562, -0.0223541259765625, -0.01507568359375, 0.0631103515625, -0.00325775146484375, -0.0312347412109375, -0.0237274169921875, 0.0014276504516601562, -0.01012420654296875, -0.04364013671875, 0.006134033203125, -0.0299224853515625, 0.0214996337890625, 0.005962371826171875, -0.0254974365234375, 0.033233642578125, -0.01316070556640625, -0.031463623046875, -0.002712249755859375, 0.0242462158203125, -0.0287017822265625, -0.01190185546875, -0.0313720703125, 0.0087432861328125, 0.028778076171875, -0.060333251953125, 0.01514434814453125, 0.0196075439453125, 0.035125732421875, -0.01129913330078125, -0.0191650390625, -0.002140045166015625, -0.057830810546875, -0.06396484375, 0.0080108642578125, 0.035186767578125, -0.0178985595703125, -0.043853759765625, -0.0099334716796875, -0.00049591064453125, -0.0758056640625, -0.041473388671875, -0.00977325439453125, -0.0738525390625, -0.014404296875, 0.0005846023559570312, -0.043212890625, 0.0176544189453125, 0.0022640228271484375, 0.0085296630859375, 0.037384033203125, -0.01274871826171875, -0.0250244140625, -0.012939453125, -0.0238494873046875, -0.018585205078125, 0.007480621337890625, -0.0123443603515625, 0.0078277587890625, -0.01117706298828125, 0.007137298583984375, 0.017608642578125, 0.038848876953125, 0.04449462890625, -0.003276824951171875, 0.0006847381591796875, -0.0207977294921875, -0.036773681640625, 0.0159912109375, -0.01458740234375, -0.0205078125, -0.02142333984375, 0.03851318359375, -0.01068115234375, 0.0187835693359375, 0.01351165771484375, 0.031646728515625, -0.04449462890625, -0.026458740234375, 0.0345458984375, -0.01001739501953125, -0.038909912109375, -0.03289794921875, -0.0114288330078125, -0.056060791015625, 0.039031982421875, 0.059417724609375, -0.0036106109619140625, -0.0003533363342285156, -0.0108795166015625, -0.0019426345825195312, 0.007099151611328125, 0.01177978515625, -0.0157470703125, 0.0062713623046875, -0.0048828125, -0.0066375732421875, -0.00726318359375, -0.00677490234375, -0.01383209228515625, 0.0143585205078125, -0.02447509765625, 0.0433349609375, 0.017974853515625, 0.00395965576171875, -0.004177093505859375, -0.0345458984375, 0.0384521484375, 0.002437591552734375, 0.006061553955078125, 0.0277557373046875, -0.03485107421875, 0.040069580078125, 0.06561279296875, 0.04296875, -0.01324462890625, -0.0219268798828125, -0.0041046142578125, -0.017303466796875, -0.001361846923828125, -0.0163421630859375, 0.01473236083984375, 0.02227783203125, -0.0014696121215820312, -0.0191497802734375, 0.0001741647720336914, -0.034820556640625, 0.056427001953125, -0.01357269287109375, 0.00005418062210083008, 0.0222930908203125, -0.0206298828125, -0.0004436969757080078, -0.00672149658203125, 0.011077880859375, -0.031829833984375, 0.0038814544677734375, -0.035369873046875, -0.040313720703125, -0.01258087158203125, 0.004520416259765625, 0.034912109375, -0.004337310791015625, -0.0189361572265625, -0.008544921875, 0.02447509765625, 0.0248565673828125, 0.00820159912109375, 0.027496337890625, -0.006114959716796875, 0.05499267578125, 0.01385498046875, 0.0262298583984375, -0.006244659423828125, 0.00531768798828125, -0.00445556640625, -0.051361083984375, 0.0009918212890625, -0.0028285980224609375, 0.0179290771484375, 0.0225067138671875, -0.0439453125, -0.0455322265625, -0.022247314453125, 0.006412506103515625, -0.011871337890625, 0.0227508544921875, -0.017822265625, -0.0117340087890625, -0.01093292236328125, 0.0396728515625, 0.052825927734375, -0.032318115234375, -0.0031948089599609375, 0.00626373291015625, 0.0123748779296875, -0.0667724609375, -0.04217529296875, -0.01421356201171875, 0.032470703125, 0.02752685546875, -0.0023746490478515625, 0.00688934326171875, -0.045318603515625, 0.002895355224609375, 0.01092529296875, 0.0268707275390625, -0.00476837158203125, 0.0615234375, -0.004718780517578125, -0.00868988037109375, 0.0162811279296875, -0.0030002593994140625, -0.045074462890625, 0.00870513916015625, 0.006572723388671875, 0.006450653076171875, 0.046356201171875, -0.01450347900390625, -0.04595947265625, 0.02069091796875, 0.026885986328125, -0.0018548965454101562, 0.0290679931640625, 0.02362060546875, 0.00879669189453125, 0.01380157470703125, 0.007472991943359375, -0.0352783203125, -0.0268707275390625, -0.0196533203125, 0.057464599609375, 0.00441741943359375, 0.05194091796875, -0.0196533203125, 0.0880126953125, -0.020233154296875, -0.023773193359375, 0.0017910003662109375, 0.05804443359375, 0.01239013671875, 0.005496978759765625, -0.0654296875, 0.007740020751953125, 0.0306243896484375, -0.016876220703125, 0.0240020751953125, -0.007808685302734375, -0.0074462890625, -0.00833892822265625, -0.0018186569213867188, 0.0277252197265625, -0.003284454345703125, -0.01666259765625, -0.0113372802734375, -0.032012939453125, -0.00676727294921875, -0.0162506103515625, 0.0673828125, -0.07830810546875, 0.05181884765625, 0.00019466876983642578, 0.0369873046875, -0.0243988037109375, 0.037200927734375, 0.0117034912109375, -0.0283203125, 0.036712646484375, 0.0035552978515625, -0.00870513916015625, -0.002597808837890625, -0.00040912628173828125, 0.0093841552734375, 0.00423431396484375, -0.0304107666015625, 0.007335662841796875, 0.034698486328125, 0.0132293701171875, -0.01526641845703125, 0.057952880859375, 0.039764404296875, -0.0423583984375, -0.03900146484375, -0.0092010498046875, 0.026763916015625, -0.01050567626953125, -0.0225372314453125, 0.03680419921875, -0.02130126953125, 0.044891357421875, -0.047515869140625, 0.003726959228515625, 0.006343841552734375, 0.0113525390625, -0.0022678375244140625, -0.01337432861328125, 0.01340484619140625, -0.036773681640625, -0.0006399154663085938, -0.0258941650390625, 0.00305938720703125, 0.043609619140625, -0.0102386474609375, -0.01052093505859375, -0.0218048095703125, 0.011383056640625, 0.020294189453125, -0.00347900390625, 0.0712890625, -0.014862060546875, -0.051605224609375, -0.012969970703125, -0.0305023193359375, 0.00008130073547363281, -0.045196533203125, -0.043243408203125, -0.0338134765625, 0.002483367919921875, -0.0214080810546875, 0.0233612060546875, 0.0031490325927734375, 0.035125732421875, 0.01165008544921875, 0.03863525390625, -0.0291290283203125, 0.0716552734375, -0.00998687744140625, 0.04205322265625, 0.01849365234375, -0.0251617431640625, 0.003387451171875, 0.051025390625, 0.0220947265625, -0.006244659423828125, -0.0028533935546875, 0.0235595703125, 0.01641845703125, -0.0127410888671875, 0.0687255859375, -0.064697265625, -0.0007638931274414062, -0.0108184814453125, 0.0284271240234375, 0.004878997802734375, 0.0018892288208007812, -0.0026073455810546875, -0.00405120849609375, -0.00824737548828125, 0.023345947265625, 0.02117919921875, -0.053436279296875, -0.036224365234375, 0.0312042236328125, -0.0013866424560546875, 0.03753662109375, -0.029266357421875, 0.017242431640625, 0.04449462890625, 0.003688812255859375, 0.006000518798828125, 0.0577392578125, 0.01024627685546875, 0.031585693359375, 0.0257110595703125, 0.0054168701171875, -0.01174163818359375, 0.007007598876953125, -0.006282806396484375, 0.0131378173828125, 0.0180816650390625, -0.0221405029296875, 0.00616455078125, -0.0281219482421875, -0.0009112358093261719, 0.020751953125, 0.123779296875, 0.09112548828125, -0.1173095703125, -0.0285797119140625, 0.0239410400390625, -0.05975341796875, -0.016387939453125, 0.00611114501953125, -0.0109405517578125, -0.076904296875, 0.06207275390625, -0.0024871826171875, 0.00423431396484375, 0.0104827880859375, -0.034698486328125, 0.0203399658203125, -0.01812744140625, 0.047271728515625, 0.0193939208984375, -0.03802490234375, 0.00016129016876220703, 0.0185089111328125, -0.0036869049072265625, -0.0157470703125, -0.009033203125, -0.011688232421875, -0.02459716796875, -0.0439453125, -0.026824951171875, -0.034088134765625, 0.002574920654296875, 0.0015316009521484375, 0.00524139404296875, 0.01528167724609375, 0.058319091796875, -0.0278472900390625, -0.00579071044921875, 0.02301025390625, 0.02874755859375, -0.00727081298828125, 0.00469970703125, -0.001434326171875, 0.01690673828125, -0.0248260498046875, 0.0111083984375, -0.04595947265625, 0.0132598876953125, -0.01023101806640625, -0.034515380859375, 0.006710052490234375, 0.01519012451171875, -0.0257568359375, 0.0107421875, -0.01727294921875, 0.0027217864990234375, -0.00307464599609375, -0.039398193359375, -0.051727294921875, -0.0023651123046875, -0.033843994140625, -0.05670166015625, 0.035430908203125, -0.02490234375, -0.079345703125, 0.09320068359375, 0.004390716552734375, 0.026336669921875, -0.027618408203125, 0.044342041015625, -0.00449371337890625, 0.006351470947265625, -0.0489501953125, 0.00463104248046875, -0.005680084228515625, 0.06512451171875, -0.029327392578125, 0.00748443603515625, 0.018829345703125, 0.025299072265625, 0.0016946792602539062, -0.02178955078125, 0.0157012939453125, 0.016754150390625, 0.07861328125, 0.064697265625, 0.0248260498046875, -0.03558349609375, 0.01447296142578125, 0.0537109375, 0.036102294921875, -0.044952392578125, 0.022613525390625, -0.0196380615234375, -0.0183258056640625, 0.02899169921875, -0.0228118896484375, -0.051849365234375, 0.0284881591796875, -0.018463134765625, -0.021728515625, 0.00734710693359375, -0.019744873046875, -0.0083770751953125, -0.01267242431640625, 0.00409698486328125, -0.0007066726684570312, -0.0233612060546875, -0.00872039794921875, -0.01544952392578125, 0.0372314453125, 0.0301055908203125, 0.0360107421875, 0.08245849609375, 0.016693115234375, 0.032012939453125, 0.03753662109375, 0.0219879150390625, 0.01195526123046875, 0.021484375, 0.0309295654296875, 0.04888916015625, 0.0191192626953125, -0.0061798095703125, -0.0301971435546875, 0.044281005859375, 0.0474853515625, -0.024322509765625, 0.01434326171875, 0.00736236572265625, -0.00547027587890625, 0.01342010498046875, -0.030731201171875, 0.036651611328125, -0.0182342529296875, -0.0267791748046875, -0.01364898681640625, 0.004180908203125, 0.030853271484375, -0.01242828369140625, 0.00528717041015625, 0.005870819091796875, -0.00362396240234375, 0.0290985107421875, -0.07025146484375, 0.032012939453125, 0.021636962890625, 0.040435791015625, 0.003047943115234375, 0.0654296875, 0.038238525390625, -0.022216796875, -0.00614166259765625, 0.003696441650390625, -0.024658203125, 0.022247314453125, -0.03533935546875, -0.005218505859375, -0.00836181640625, 0.036529541015625, -0.020172119140625, 0.0299072265625, 0.050018310546875, 0.01125335693359375, -0.06915283203125, -0.019073486328125, 0.0128021240234375, -0.05072021484375, 0.040557861328125, -0.016448974609375, 0.003963470458984375, 0.0116119384765625, -0.02142333984375, -0.021575927734375, 0.0099639892578125, 0.045257568359375, 0.006465911865234375, 0.0306243896484375, 0.007114410400390625, -0.0189208984375, 0.0125732421875, -0.019866943359375, 0.09161376953125, 0.0090179443359375, -0.0141143798828125, -0.006069183349609375, -0.0006313323974609375, -0.02655029296875, 0.026824951171875, 0.045257568359375, 0.019561767578125, -0.011016845703125, 0.01190948486328125, -0.0164642333984375, 0.045654296875, -0.00115203857421875, -0.0277252197265625, -0.044525146484375, 0.0218353271484375, -0.0294036865234375, -0.02734375, -0.023651123046875, -0.00777435302734375, 0.04339599609375, 0.0235595703125, -0.01457977294921875, 0.0152740478515625, 0.047088623046875, 0.0038471221923828125, -0.03271484375, 0.017578125, 0.0006127357482910156, 0.032958984375, 0.01568603515625, -0.0113983154296875, -0.035552978515625, -0.08209228515625, 0.0106964111328125, 0.02081298828125, -0.0027027130126953125, 0.046966552734375, -0.0253753662109375, 0.0194549560546875, -0.013824462890625, -0.0038242340087890625, -0.0362548828125, -0.00836181640625, 0.0037841796875, -0.01593017578125, 0.00298309326171875, -0.029571533203125, -0.00830841064453125, -0.0122833251953125, -0.029571533203125, -0.0576171875, 0.0084075927734375, 0.004852294921875, -0.038909912109375, 0.003376007080078125, 0.035858154296875, -0.0023040771484375, 0.02532958984375, -0.010498046875, -0.00505828857421875, 0.013153076171875, 0.025543212890625, 0.0031223297119140625, -0.002796173095703125, -0.053924560546875, -0.0283050537109375, -0.0014743804931640625, -0.027252197265625, -0.01009368896484375, -0.0270233154296875, -0.0070953369140625, 0.0102691650390625, 0.02227783203125, 0.005321502685546875, -0.023529052734375, -0.01366424560546875, -0.01197052001953125, 0.0089569091796875, -0.00890350341796875, 0.045867919921875, -0.035430908203125, -0.0124053955078125, -0.016326904296875, 0.0024814605712890625, -0.0224456787109375, 0.010101318359375, -0.0267486572265625, -0.051544189453125, -0.008880615234375, 0.015777587890625, 0.0228271484375, -0.0706787109375, -0.006122589111328125, -0.0347900390625, -0.03717041015625, -0.030853271484375, 0.033447265625, 0.04376220703125, -0.041595458984375, -0.0124053955078125, 0.04608154296875, 0.0367431640625, 0.0887451171875, 0.01264190673828125, -0.035736083984375, 0.0014247894287109375, -0.0124664306640625, -0.017791748046875, -0.038848876953125, 0.037139892578125, -0.08416748046875, -0.03936767578125, 0.02874755859375, -0.00891876220703125, 0.022247314453125, -0.032623291015625, -0.11505126953125, 0.12213134765625, -0.0360107421875, -0.02978515625, -0.044097900390625, -0.0246124267578125, -0.00287628173828125, 0.04193115234375, -0.0221099853515625, -0.00473785400390625, -0.059417724609375, 0.00531768798828125, 0.0170745849609375, 0.0133819580078125, 0.0704345703125, -0.050262451171875, 0.0006937980651855469, -0.0133819580078125, 0.013824462890625, 0.00662994384765625, -0.0008997917175292969, -0.0030059814453125, 0.02325439453125, 0.018310546875, -0.031402587890625, -0.00823974609375, 0.003536224365234375, -0.01727294921875, -0.048736572265625, -0.0254669189453125, 0.001255035400390625, 0.03424072265625, 0.080322265625, 0.04345703125, -0.0100250244140625, -0.0650634765625, 0.0244598388671875, 0.0384521484375, -0.00689697265625, -0.0109710693359375, 0.0123291015625, -0.037872314453125, -0.029632568359375, -0.01019287109375, -0.004154205322265625, 0.01236724853515625, -0.006610870361328125, -0.0183868408203125, -0.01580810546875, -0.040252685546875, -0.018585205078125, -0.01482391357421875, -0.02825927734375, 0.062103271484375, -0.041839599609375, -0.0011110305786132812, 0.0343017578125, 0.01383209228515625, 0.0178680419921875, 0.042022705078125, 0.01493072509765625, 0.0009007453918457031, 0.0246734619140625, 0.01290130615234375, 0.0061187744140625, -0.01311492919921875, 0.00955963134765625, -0.01430511474609375, -0.01654052734375, 0.043182373046875, 0.0103912353515625, 0.084228515625, -0.045013427734375, 0.11920166015625, 0.05242919921875, 0.0220489501953125, -0.02734375, 0.056182861328125, -0.041900634765625, 0.04718017578125, -0.055145263671875, 0.01378631591796875, -0.0367431640625, 0.03131103515625, 0.00841522216796875, -0.0062255859375, -0.0109405517578125, 0.000152587890625, 0.00232696533203125, -0.007415771484375, -0.0257568359375, 0.01702880859375 ]
9339513fa2d92787d75f2d136fdfc1eab7ecc4b7
Wordpress Stackexchange Q: Which hook if user profile information is updated? I'm looking for the hook that fires when a user's information are updated. Specifically, I want to update a post with the value of a custom profile field (in my example info) everytime that user's profile is updated. I tried the profile_update hook, but it doesn't seem to fire: add_action( 'profile_update', 'add_info_to_post' ); function add_info_to_post( $user_id ) { $info=get_user_meta($user_id,'info',true); //get all items of that user $args=array( 'author' => $user_id, 'post_type' => 'item', ); $items=get_posts($args); foreach ($items as $item){ update_post_meta($item->ID,'user_info',$info); } } Any suggestions how to make this work? EDIT: Maybe I should mention that I access the users' profile pages through the backend.. A: From Codex: Plugin API - Action Reference - profile_update: Note: This hook is not used on user edit/profile pages. To hook into the admin's user edit pages, use the hook edit_user_profile_update which is located in /wp-includes/user-edit.php instead. From Codex: Plugin API - Action Reference - edit_user_profile_update: This hook only triggers when a user is viewing another user's profile page (not their own). If you want to apply your hook to ALL profile pages (including the current user) then you also need to use the personal_options_update hook.
Q: Which hook if user profile information is updated? I'm looking for the hook that fires when a user's information are updated. Specifically, I want to update a post with the value of a custom profile field (in my example info) everytime that user's profile is updated. I tried the profile_update hook, but it doesn't seem to fire: add_action( 'profile_update', 'add_info_to_post' ); function add_info_to_post( $user_id ) { $info=get_user_meta($user_id,'info',true); //get all items of that user $args=array( 'author' => $user_id, 'post_type' => 'item', ); $items=get_posts($args); foreach ($items as $item){ update_post_meta($item->ID,'user_info',$info); } } Any suggestions how to make this work? EDIT: Maybe I should mention that I access the users' profile pages through the backend.. A: From Codex: Plugin API - Action Reference - profile_update: Note: This hook is not used on user edit/profile pages. To hook into the admin's user edit pages, use the hook edit_user_profile_update which is located in /wp-includes/user-edit.php instead. From Codex: Plugin API - Action Reference - edit_user_profile_update: This hook only triggers when a user is viewing another user's profile page (not their own). If you want to apply your hook to ALL profile pages (including the current user) then you also need to use the personal_options_update hook.
wordpress
{ "language": "en", "length": 199, "provenance": "stackexchange_00019.jsonl.gz:445840", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/147651" }
[ 0.059967041015625, -0.0280914306640625, -0.002414703369140625, -0.042999267578125, -0.003810882568359375, -0.023284912109375, 0.014129638671875, 0.005039215087890625, -0.021820068359375, 0.06280517578125, -0.01605224609375, 0.0303802490234375, 0.01910400390625, 0.004009246826171875, -0.02020263671875, -0.0027217864990234375, 0.024627685546875, -0.01041412353515625, 0.022705078125, -0.0018072128295898438, -0.0003516674041748047, 0.032470703125, -0.005855560302734375, 0.0063323974609375, 0.005100250244140625, -0.0309600830078125, 0.0104217529296875, -0.0189208984375, 0.0177154541015625, -0.01093292236328125, 0.0028133392333984375, 0.02557373046875, 0.0160980224609375, 0.051422119140625, -0.0701904296875, -0.021636962890625, 0.035858154296875, -0.002254486083984375, -0.00897979736328125, 0.033111572265625, 0.040740966796875, -0.004192352294921875, -0.037017822265625, 0.042327880859375, -0.0283050537109375, -0.051483154296875, 0.055511474609375, -0.006927490234375, 0.039703369140625, 0.0113067626953125, 0.0009212493896484375, -0.005084991455078125, -0.009185791015625, 0.04254150390625, -0.006473541259765625, 0.00768280029296875, -0.03424072265625, 0.0251617431640625, 0.0304412841796875, -0.0077056884765625, -0.0178985595703125, -0.031097412109375, 0.026123046875, -0.01082611083984375, 0.0125274658203125, -0.0214080810546875, 0.0015077590942382812, 0.021484375, -0.04815673828125, 0.0101776123046875, 0.04376220703125, -0.021453857421875, -0.0228729248046875, 0.0264129638671875, -0.048248291015625, -0.0245361328125, 0.040924072265625, -0.022552490234375, -0.004878997802734375, 0.0250091552734375, -0.0153045654296875, -0.01068878173828125, -0.0136871337890625, 0.0055999755859375, -0.026397705078125, 0.036712646484375, -0.01666259765625, -0.00405120849609375, -0.0347900390625, 0.0137176513671875, -0.02410888671875, -0.051361083984375, -0.01267242431640625, 0.0380859375, 0.01129150390625, -0.0002282857894897461, 0.0120086669921875, 0.033111572265625, -0.028533935546875, -0.005279541015625, 0.00638580322265625, -0.0240478515625, 0.0186614990234375, -0.0243682861328125, 0.005931854248046875, 0.0513916015625, 0.041748046875, -0.01119232177734375, -0.00434112548828125, -0.005817413330078125, -0.01238250732421875, 0.0191802978515625, -0.0160369873046875, 0.0081329345703125, -0.004638671875, -0.005474090576171875, -0.06439208984375, 0.0305023193359375, -0.028472900390625, 0.03045654296875, -0.01155853271484375, -0.014923095703125, 0.01461029052734375, -0.03399658203125, 0.01555633544921875, -0.0197296142578125, -0.04400634765625, 0.0207366943359375, 0.005157470703125, -0.0015439987182617188, -0.0250244140625, 0.0023097991943359375, 0.07666015625, 0.044403076171875, 0.0225372314453125, -0.0240631103515625, -0.00975799560546875, -0.030487060546875, -0.042633056640625, 0.02484130859375, -0.036468505859375, -0.0234527587890625, 0.0099639892578125, -0.064697265625, 0.031890869140625, -0.00453948974609375, 0.0110321044921875, 0.01934814453125, 0.031829833984375, 0.00853729248046875, -0.01434326171875, 0.003665924072265625, 0.0080718994140625, 0.0210723876953125, 0.055267333984375, 0.0016841888427734375, 0.07861328125, -0.037994384765625, 0.0047607421875, -0.01337432861328125, 0.00746917724609375, -0.016632080078125, 0.006923675537109375, -0.0233612060546875, -0.061004638671875, 0.02557373046875, -0.0085601806640625, -0.0033130645751953125, 0.0219268798828125, 0.002910614013671875, 0.046295166015625, 0.031280517578125, 0.010772705078125, 0.0164642333984375, 0.0184478759765625, -0.0219268798828125, -0.035888671875, 0.052734375, 0.03125, -0.017669677734375, -0.0207061767578125, -0.039642333984375, 0.074951171875, -0.000377655029296875, -0.056182861328125, 0.072265625, 0.0019369125366210938, 0.06085205078125, 0.016876220703125, 0.00656890869140625, 0.0171356201171875, 0.04229736328125, 0.0005507469177246094, 0.007518768310546875, -0.006328582763671875, -0.021026611328125, 0.02587890625, 0.009063720703125, -0.01934814453125, -0.0006003379821777344, 0.00762176513671875, 0.01052093505859375, -0.01500701904296875, -0.01264190673828125, -0.11419677734375, 0.008819580078125, -0.049591064453125, 0.04766845703125, 0.015380859375, 0.0292205810546875, -0.01268768310546875, -0.0014600753784179688, -0.0024852752685546875, -0.010009765625, -0.02569580078125, -0.013763427734375, -0.03863525390625, 0.028778076171875, 0.019012451171875, 0.0288848876953125, 0.03515625, -0.027801513671875, 0.0175323486328125, -0.032745361328125, 0.030731201171875, -0.0531005859375, 0.01338958740234375, -0.051116943359375, 0.00197601318359375, -0.041015625, 0.00807952880859375, 0.05633544921875, -0.00466156005859375, 0.00363922119140625, -0.043609619140625, -0.013519287109375, -0.01727294921875, -0.04315185546875, 0.0182342529296875, 0.04620361328125, 0.0291900634765625, -0.0004589557647705078, -0.00830841064453125, 0.002197265625, 0.045745849609375, 0.031494140625, 0.034942626953125, -0.021942138671875, 0.018524169921875, 0.047821044921875, 0.0007452964782714844, -0.00833892822265625, 0.004329681396484375, -0.07965087890625, 0.022705078125, 0.024200439453125, -0.004489898681640625, 0.019134521484375, -0.00868988037109375, -0.032135009765625, 0.011688232421875, -0.06146240234375, -0.040435791015625, -0.01441192626953125, 0.059417724609375, -0.0478515625, 0.051422119140625, 0.021728515625, 0.0151519775390625, -0.0582275390625, 0.01187896728515625, 0.00702667236328125, 0.0016632080078125, 0.01535797119140625, -0.005214691162109375, 0.0177764892578125, -0.016815185546875, -0.001071929931640625, 0.0136871337890625, 0.00046539306640625, -0.01479339599609375, -0.00936126708984375, -0.01027679443359375, 0.0005598068237304688, 0.0270233154296875, -0.038909912109375, 0.005046844482421875, -0.01213836669921875, 0.00638580322265625, -0.04144287109375, 0.00731658935546875, -0.01319122314453125, -0.050567626953125, 0.039459228515625, 0.0010862350463867188, -0.0443115234375, -0.01233673095703125, -0.053253173828125, 0.0413818359375, -0.0572509765625, 0.0130462646484375, 0.06512451171875, -0.01220703125, 0.005634307861328125, 0.006649017333984375, -0.03350830078125, -0.0609130859375, 0.05181884765625, 0.028839111328125, -0.062744140625, 0.0401611328125, 0.11279296875, 0.0283355712890625, 0.02593994140625, -0.0035648345947265625, -0.0382080078125, -0.0300445556640625, 0.0154876708984375, -0.08642578125, -0.057098388671875, -0.036529541015625, -0.0787353515625, 0.02301025390625, -0.0233001708984375, -0.031005859375, 0.01280975341796875, -0.0026645660400390625, 0.0309600830078125, -0.0299530029296875, -0.00966644287109375, -0.025421142578125, -0.0482177734375, -0.047088623046875, 0.0164947509765625, -0.0004343986511230469, 0.017852783203125, 0.0009150505065917969, 0.07135009765625, 0.0063934326171875, -0.03668212890625, 0.009185791015625, -0.005069732666015625, -0.0264892578125, -0.0039215087890625, -0.0038394927978515625, -0.0162353515625, 0.0294952392578125, -0.00896453857421875, 0.026611328125, 0.03192138671875, -0.01531982421875, -0.01300048828125, -0.0003592967987060547, -0.03271484375, 0.00787353515625, 0.0035552978515625, -0.0103759765625, -0.0179290771484375, 0.03167724609375, -0.0472412109375, 0.01230621337890625, -0.00621795654296875, -0.021453857421875, 0.01107025146484375, 0.0005674362182617188, -0.0195465087890625, 0.0196075439453125, 0.005878448486328125, -0.01352691650390625, 0.02215576171875, -0.0101318359375, 0.024688720703125, -0.0078887939453125, -0.031890869140625, -0.032867431640625, 0.01399993896484375, -0.034576416015625, -0.0274200439453125, 0.037506103515625, -0.025054931640625, 0.0208740234375, -0.0161285400390625, 0.0518798828125, -0.025665283203125, -0.03375244140625, 0.0310516357421875, -0.01551055908203125, 0.021087646484375, -0.043609619140625, -0.004550933837890625, -0.03363037109375, 0.0673828125, 0.0012607574462890625, -0.01336669921875, 0.0017061233520507812, 0.006977081298828125, -0.036468505859375, 0.0017681121826171875, -0.0362548828125, 0.0020294189453125, -0.06158447265625, 0.0191497802734375, 0.034576416015625, -0.03302001953125, -0.0372314453125, 0.09063720703125, -0.0614013671875, 0.0060577392578125, 0.02349853515625, -0.010040283203125, -0.0138702392578125, 0.052642822265625, -0.038543701171875, 0.0229034423828125, -0.027069091796875, 0.003437042236328125, -0.04779052734375, -0.005260467529296875, 0.0012903213500976562, 0.01788330078125, 0.036529541015625, -0.0660400390625, -0.01306915283203125, 0.005496978759765625, 0.033966064453125, 0.032073974609375, -0.01715087890625, -0.0250701904296875, -0.02044677734375, -0.01557159423828125, 0.00652313232421875, -0.0184326171875, -0.02899169921875, -0.016815185546875, -0.01512908935546875, 0.020751953125, -0.0269317626953125, 0.01018524169921875, -0.0132598876953125, -0.01806640625, -0.07257080078125, -0.03363037109375, -0.004337310791015625, 0.00231170654296875, -0.01062774658203125, 0.0111236572265625, -0.04034423828125, -0.062347412109375, 0.032379150390625, -0.0460205078125, -0.017578125, 0.003139495849609375, 0.0748291015625, 0.03314208984375, 0.0016374588012695312, 0.0036716461181640625, 0.0277252197265625, 0.03759765625, -0.0004107952117919922, 0.065185546875, 0.053131103515625, -0.0196990966796875, 0.0601806640625, 0.029266357421875, 0.021759033203125, -0.046966552734375, 0.05010986328125, 0.0087890625, 0.00458526611328125, 0.0008559226989746094, 0.0182342529296875, 0.003284454345703125, 0.0023784637451171875, -0.0284576416015625, -0.007568359375, -0.0076751708984375, 0.0229949951171875, -0.02569580078125, 0.04595947265625, -0.0129547119140625, -0.0042572021484375, -0.0014629364013671875, 0.0148468017578125, 0.00397491455078125, 0.01678466796875, -0.005496978759765625, -0.025115966796875, -0.023193359375, -0.01335906982421875, -0.03863525390625, -0.01021575927734375, -0.0267486572265625, 0.00731658935546875, -0.021087646484375, -0.0122222900390625, -0.04296875, -0.01262664794921875, 0.048614501953125, -0.02850341796875, -0.07122802734375, 0.0014543533325195312, -0.0316162109375, 0.03924560546875, 0.041107177734375, 0.02850341796875, 0.045166015625, 0.01317596435546875, 0.01183319091796875, -0.032135009765625, 0.016815185546875, 0.00009566545486450195, -0.040283203125, 0.031768798828125, 0.02105712890625, -0.018218994140625, 0.010467529296875, 0.031219482421875, 0.0270843505859375, -0.005126953125, -0.0234222412109375, 0.07958984375, 0.06500244140625, -0.0147247314453125, 0.00583648681640625, 0.0396728515625, -0.018402099609375, -0.034515380859375, -0.02642822265625, -0.0266876220703125, 0.01464080810546875, 0.0253753662109375, 0.0185394287109375, 0.044342041015625, -0.002124786376953125, 0.002368927001953125, -0.0083465576171875, -0.028076171875, 0.046173095703125, 0.00443267822265625, -0.0621337890625, -0.01290130615234375, 0.0243072509765625, 0.0005898475646972656, -0.03302001953125, -0.006195068359375, 0.0037059783935546875, -0.02703857421875, -0.0024051666259765625, -0.022857666015625, -0.045928955078125, -0.00746917724609375, 0.00809478759765625, -0.0210113525390625, -0.010101318359375, 0.0195770263671875, 0.0011110305786132812, 0.0019435882568359375, -0.0182952880859375, -0.0299530029296875, 0.0418701171875, -0.0037250518798828125, 0.01947021484375, -0.02734375, 0.0005879402160644531, -0.025054931640625, -0.0086669921875, 0.07000732421875, 0.040863037109375, -0.060089111328125, 0.0201263427734375, -0.01806640625, 0.01529693603515625, 0.0301361083984375, -0.06585693359375, -0.0166168212890625, -0.053009033203125, -0.0164337158203125, 0.0273895263671875, -0.005893707275390625, 0.0174560546875, -0.00940704345703125, -0.0038299560546875, -0.01519012451171875, 0.038787841796875, -0.00946044921875, 0.0826416015625, -0.0268707275390625, 0.048126220703125, 0.0171356201171875, 0.0286102294921875, -0.036376953125, -0.00244140625, -0.028472900390625, -0.0299072265625, 0.019439697265625, 0.006519317626953125, 0.01432037353515625, 0.0026683807373046875, 0.0323486328125, 0.006916046142578125, -0.0167083740234375, 0.0019016265869140625, -0.00046825408935546875, -0.0254974365234375, 0.0523681640625, 0.0244140625, -0.037628173828125, 0.04962158203125, -0.0184783935546875, -0.033416748046875, 0.020050048828125, 0.0103607177734375, -0.00655364990234375, -0.0021648406982421875, -0.0015859603881835938, -0.029693603515625, -0.040740966796875, 0.062164306640625, 0.058135986328125, -0.01096343994140625, 0.003223419189453125, 0.0009074211120605469, -0.00989532470703125, -0.0011882781982421875, 0.0022640228271484375, 0.0308990478515625, 0.008758544921875, 0.037872314453125, -0.020111083984375, -0.007251739501953125, 0.013916015625, -0.0282135009765625, 0.01247406005859375, 0.037322998046875, 0.0533447265625, -0.0740966796875, 0.0218505859375, 0.01153564453125, 0.0104217529296875, 0.058563232421875, -0.0022735595703125, -0.0092620849609375, -0.022247314453125, 0.034912109375, -0.0291900634765625, -0.0206298828125, 0.0277099609375, -0.00943756103515625, -0.0201568603515625, -0.0169677734375, 0.0233612060546875, 0.00592803955078125, 0.0199127197265625, -0.006137847900390625, -0.021453857421875, -0.0169219970703125, -0.0264739990234375, -0.015350341796875, 0.033843994140625, -0.04998779296875, -0.07305908203125, 0.017364501953125, -0.0020599365234375, -0.0234375, 0.039947509765625, 0.00537872314453125, 0.0404052734375, 0.028778076171875, 0.0208740234375, -0.0203857421875, 0.00818634033203125, -0.0023956298828125, -0.0633544921875, -0.050872802734375, -0.0248870849609375, 0.08349609375, -0.042510986328125, 0.040069580078125, 0.013397216796875, 0.0022869110107421875, -0.01446533203125, -0.0210418701171875, 0.07598876953125, -0.0236358642578125, -0.0224151611328125, 0.007167816162109375, 0.00545501708984375, -0.004032135009765625, 0.042877197265625, 0.01117706298828125, -0.01538848876953125, -0.0286712646484375, 0.0169677734375, -0.06414794921875, -0.043212890625, 0.03289794921875, -0.0635986328125, 0.08734130859375, -0.01049041748046875, 0.0074462890625, -0.0179290771484375, 0.0273284912109375, -0.0070343017578125, 0.0128173828125, -0.048431396484375, 0.07122802734375, 0.01357269287109375, 0.04595947265625, -0.05126953125, 0.0009417533874511719, -0.0038585662841796875, 0.01488494873046875, 0.041778564453125, 0.033477783203125, -0.055206298828125, -0.031005859375, -0.027618408203125, -0.0297698974609375, -0.0232086181640625, 0.0780029296875, 0.0016069412231445312, 0.0052642822265625, 0.0223541259765625, -0.0101165771484375, 0.0489501953125, -0.05560302734375, -0.025604248046875, 0.01399993896484375, 0.018218994140625, 0.01142120361328125, -0.00627899169921875, 0.04278564453125, -0.0513916015625, 0.00577545166015625, 0.033599853515625, 0.0260467529296875, -0.022125244140625, 0.019012451171875, 0.021942138671875, 0.0203399658203125, 0.0111541748046875, -0.0245208740234375, 0.043426513671875, 0.03753662109375, -0.0201568603515625, 0.0096282958984375, 0.002017974853515625, 0.0306854248046875, 0.007755279541015625, -0.01776123046875, 0.034149169921875, 0.034423828125, 0.08062744140625, 0.035797119140625, 0.0169525146484375, -0.04052734375, 0.0245819091796875, 0.0406494140625, 0.0921630859375, -0.060150146484375, -0.06170654296875, 0.01148223876953125, 0.00395965576171875, -0.005046844482421875, 0.043792724609375, 0.0102386474609375, -0.037384033203125, 0.03265380859375, -0.046875, 0.00769805908203125, 0.0126190185546875, 0.035919189453125, -0.00514984130859375, -0.01511383056640625, -0.052886962890625, -0.01094818115234375, -0.03851318359375, 0.0235443115234375, 0.01812744140625, -0.003643035888671875, -0.01175689697265625, 0.0280914306640625, 0.0369873046875, 0.01050567626953125, 0.0007958412170410156, -0.013702392578125, -0.0137176513671875, 0.00519561767578125, -0.03802490234375, -0.04620361328125, 0.0126495361328125, 0.0521240234375, 0.035614013671875, 0.02752685546875, 0.01445770263671875, -0.00612640380859375, -0.00841522216796875, 0.0283050537109375, 0.0479736328125, -0.024932861328125, 0.01267242431640625, -0.0225677490234375, 0.041351318359375, 0.0113372802734375, 0.003742218017578125, -0.02911376953125, 0.01337432861328125, 0.03851318359375, -0.014617919921875, 0.03717041015625, 0.003326416015625, -0.025726318359375, 0.045135498046875, 0.033355712890625, 0.070556640625, 0.034759521484375, -0.028106689453125, 0.005336761474609375, -0.053466796875, -0.04718017578125, 0.0222625732421875, 0.03680419921875, -0.0258636474609375, 0.035919189453125, -0.0166778564453125, 0.0181427001953125, 0.0045318603515625, -0.0200653076171875, 0.00335693359375, -0.011627197265625, 0.0265350341796875, -0.0083770751953125, 0.034027099609375, 0.03497314453125, 0.03875732421875, 0.01422882080078125, 0.0154571533203125, 0.0401611328125, -0.028533935546875, 0.00991058349609375, 0.0089874267578125, 0.01450347900390625, -0.017974853515625, -0.00829315185546875, 0.0318603515625, -0.025421142578125, -0.0183258056640625, 0.005245208740234375, -0.01959228515625, 0.060272216796875, 0.032318115234375, 0.021514892578125, 0.022705078125, 0.038909912109375, -0.0020847320556640625, -0.0081634521484375, -0.01861572265625, -0.0267791748046875, -0.0030918121337890625, 0.006427764892578125, 0.0017795562744140625, 0.0194244384765625, 0.0104827880859375, -0.0030040740966796875, 0.0242156982421875, -0.01053619384765625, -0.00481414794921875, -0.0122833251953125, 0.016632080078125, -0.03326416015625, 0.013671875, -0.00495147705078125, 0.0408935546875, -0.013824462890625, -0.02606201171875, 0.0199432373046875, 0.00586700439453125, -0.0191650390625, -0.004367828369140625, 0.031646728515625, 0.01476287841796875, 0.01508331298828125, 0.041473388671875, -0.00650787353515625, 0.0099945068359375, 0.00036406517028808594, 0.001102447509765625, 0.01342010498046875, -0.016204833984375, -0.0313720703125, -0.048828125, 0.0032958984375, 0.0160064697265625, -0.02947998046875, -0.0180511474609375, -0.0723876953125, 0.0129547119140625, 0.01227569580078125, -0.0034961700439453125, -0.06793212890625, 0.027618408203125, -0.01149749755859375, 0.07208251953125, -0.041015625, -0.039886474609375, 0.013275146484375, 0.031524658203125, -0.0325927734375, 0.0276641845703125, -0.0272064208984375, -0.05548095703125, 0.0005521774291992188, -0.0102996826171875, 0.05218505859375, 0.01558685302734375, -0.081298828125, -0.0158538818359375, -0.034515380859375, 0.0305328369140625, -0.06610107421875, -0.0311126708984375, -0.0031681060791015625, 0.0143890380859375, 0.037994384765625, -0.040985107421875, -0.04229736328125, 0.00568389892578125, 0.028350830078125, 0.022705078125, -0.0177001953125, 0.0076141357421875, -0.0450439453125, -0.0916748046875, 0.0792236328125, -0.00945281982421875, -0.044952392578125, -0.05340576171875, 0.0030918121337890625, 0.00855255126953125, -0.031005859375, -0.031280517578125, -0.0193939208984375, -0.053924560546875, 0.0255584716796875, -0.0089111328125, 0.0015935897827148438, -0.0021724700927734375, -0.01424407958984375, -0.06524658203125, 0.01092529296875, 0.01078033447265625, -0.01605224609375, 0.008544921875, -0.00991058349609375, 0.038299560546875, 0.0386962890625, -0.032623291015625, -0.0091400146484375, 0.01216888427734375, -0.0141754150390625, -0.033111572265625, -0.0245513916015625, -0.037322998046875, 0.005374908447265625, 0.10723876953125, 0.06768798828125, 0.030487060546875, -0.051727294921875, 0.0440673828125, -0.01334381103515625, -0.0220947265625, 0.023101806640625, 0.003284454345703125, 0.000009357929229736328, 0.020538330078125, 0.023895263671875, -0.0167083740234375, -0.0426025390625, 0.005207061767578125, -0.041015625, -0.0137939453125, 0.018463134765625, 0.0016832351684570312, 0.0270233154296875, -0.04144287109375, 0.0253753662109375, -0.0287933349609375, -0.0310821533203125, 0.0231781005859375, 0.0153350830078125, -0.02301025390625, 0.044830322265625, 0.038299560546875, 0.0269012451171875, -0.0440673828125, 0.0174560546875, 0.0242767333984375, 0.0203704833984375, -0.041748046875, -0.0288238525390625, -0.0272369384765625, 0.0210418701171875, 0.006504058837890625, 0.00954437255859375, -0.0262451171875, 0.03192138671875, 0.01885986328125, 0.06256103515625, -0.0352783203125, 0.0399169921875, -0.0250244140625, 0.0307769775390625, -0.0044708251953125, 0.0146942138671875, 0.0380859375, -0.01085662841796875, -0.0003230571746826172, 0.03289794921875, 0.01702880859375, -0.03045654296875, 0.0382080078125, 0.051177978515625, 0.00917816162109375, 0.01064300537109375 ]
dcbf1457adc3a4ac4bc3402c0011d471a15de232
Wordpress Stackexchange Q: Soundcloud embed shortcode does not work The soundcloud short code does not seem to be working. I've tried over several days and it just shows up as raw code. Is this a glitch, has support officially been discontinued, is there some workaround? [soundcloud url="https://api.soundcloud.com/tracks/151458437" params="color=ff5500&auto_play=false&hide_related=false&show_artwork=true&show_comments=true&show_user=true&show_reposts=false" width="100%" height="166" iframe="true" /] https://soundcloud.com/radhanath-swami/offer-the-best-you-have Using the latest wordpress 3.9.1 A: If you are on WordPress 3.5 or higher just putting the URL on a separate line should work: https://soundcloud.com/radhanath-swami/offer-the-best-you-have You do not need to use the embed code, WordPress handles the embedding via oEmbed itself. Also have a look at the Codex. EDIT: If you want the small image you probably should have mentioned that in the question... The easiest way probably is to put the embed code in <iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/151456970&amp;color=ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_artwork=true&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false"></iframe>
Q: Soundcloud embed shortcode does not work The soundcloud short code does not seem to be working. I've tried over several days and it just shows up as raw code. Is this a glitch, has support officially been discontinued, is there some workaround? [soundcloud url="https://api.soundcloud.com/tracks/151458437" params="color=ff5500&auto_play=false&hide_related=false&show_artwork=true&show_comments=true&show_user=true&show_reposts=false" width="100%" height="166" iframe="true" /] https://soundcloud.com/radhanath-swami/offer-the-best-you-have Using the latest wordpress 3.9.1 A: If you are on WordPress 3.5 or higher just putting the URL on a separate line should work: https://soundcloud.com/radhanath-swami/offer-the-best-you-have You do not need to use the embed code, WordPress handles the embedding via oEmbed itself. Also have a look at the Codex. EDIT: If you want the small image you probably should have mentioned that in the question... The easiest way probably is to put the embed code in <iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/151456970&amp;color=ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_artwork=true&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false"></iframe> A: Self-hosted WordPress core code simply doesn't have such shortcode. It's extra addition at wordpress com service. While oembeds (using soundcloud URL alone) work fine with it, there is no shortcode to customize it. You would need to add custom code for it or research for a plugin that implements such shortcode. A: The "Wordpress code" checkbox on the soundcloud embed screen is for Wordpress.com users only. If you have a self-hosted (Wordpress.org) site, leave "Wordpress code" unchecked and copy the <iframe> code. Paste that into the HTML view of your wordpress page. Voila! A: Not sure why Roland's comment is marked down because using Jetpack with it's "Shortcode embeds" setting turned on makes the embed code work. I have just been using a theme with the latest version of WP 4 and the SoundCloud shortcode only worked once I activated Jetpack Shortcode Embeds. A: add this to your functions.php // Add SoundCloud oEmbed function add_oembed_soundcloud(){ wp_oembed_add_provider( 'http://soundcloud.com/*', 'http://soundcloud.com/oembed' ); } add_action('init','add_oembed_soundcloud'); Source: How to Embed SoundCloud in your WordPress Posts by using oEmbed just make sure its inside <?php ?> A: I spent way too long trying to figure this out and finally found it, so posting here. If you want the large square player, you can simply paste the Soundcloud URL on a separate line - like Rarst says. For example: https://soundcloud.com/user-426955691/episode-1-about-the-chat Embedding the smaller player is trickier, and I couldn't find a concise answer. First, from Souncloud: * *Click the Share link on the post. *Click the embed tab on the popup *Highlight the smaller player to see the small player embed code. It will look like this. WordPress will not let you drop the <iframe> into the editor. It seems to be for a security reason. I downloaded a plugin called iframe. With this plugin, you can add an <iframe> tag to the content. Simply change < and > characters in the <iframe> tag to brackets, [ ], e.g. [iframe]. Once you activate the iframe plugin. So simply drop this code into the page edit screen in WordPress. [iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/304567138&amp;color=ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false"][/iframe] A: Just use the Jetpack plugin. In Settings activate the "Shortcode Embeds" function.
wordpress
{ "language": "en", "length": 493, "provenance": "stackexchange_00019.jsonl.gz:445847", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/147675" }
[ 0.05047607421875, -0.0307159423828125, 0.030548095703125, 0.006015777587890625, -0.0419921875, -0.02044677734375, 0.030303955078125, -0.0382080078125, -0.00400543212890625, 0.01953125, -0.0704345703125, 0.014556884765625, -0.036468505859375, 0.0156707763671875, -0.026214599609375, -0.06976318359375, 0.02545166015625, -0.0257568359375, -0.0097808837890625, -0.02325439453125, -0.042816162109375, -0.01360321044921875, 0.03399658203125, 0.0164031982421875, 0.0305633544921875, -0.06365966796875, 0.07293701171875, -0.0238037109375, 0.0255889892578125, -0.0114288330078125, 0.029296875, -0.01247406005859375, 0.04705810546875, 0.04052734375, -0.08648681640625, 0.035400390625, -0.01470184326171875, 0.020477294921875, -0.0177154541015625, 0.0205230712890625, 0.018829345703125, -0.006671905517578125, 0.048614501953125, -0.001255035400390625, 0.0184783935546875, -0.0433349609375, 0.051361083984375, -0.0256195068359375, -0.01117706298828125, -0.02532958984375, 0.028778076171875, 0.049530029296875, 0.031158447265625, 0.0106964111328125, 0.01324462890625, 0.060791015625, -0.051727294921875, -0.00460052490234375, -0.0082244873046875, -0.00826263427734375, 0.03564453125, 0.01122283935546875, 0.0188140869140625, 0.0550537109375, -0.0163116455078125, -0.0294342041015625, -0.01422882080078125, 0.0169830322265625, -0.039031982421875, -0.01332855224609375, 0.043060302734375, -0.01448822021484375, 0.0138397216796875, -0.0165863037109375, -0.04400634765625, 0.01152801513671875, 0.0176239013671875, 0.0263824462890625, 0.00440216064453125, -0.03515625, 0.004047393798828125, 0.018218994140625, -0.049102783203125, 0.01983642578125, -0.001056671142578125, 0.057220458984375, -0.0091400146484375, -0.038116455078125, 0.001129150390625, 0.0021610260009765625, -0.01300048828125, 0.00800323486328125, -0.01531982421875, 0.039764404296875, -0.0309906005859375, 0.0007004737854003906, 0.03411865234375, 0.08172607421875, 0.01442718505859375, 0.0237579345703125, -0.00927734375, -0.03955078125, 0.0185394287109375, -0.0556640625, -0.0254058837890625, 0.04254150390625, 0.040557861328125, -0.037322998046875, -0.006008148193359375, -0.00859832763671875, -0.0015621185302734375, 0.009033203125, -0.024658203125, -0.0007863044738769531, -0.035858154296875, -0.010711669921875, -0.07281494140625, -0.01123809814453125, -0.0173797607421875, -0.009246826171875, 0.01483154296875, 0.0469970703125, 0.01702880859375, 0.0156402587890625, -0.02490234375, 0.0173797607421875, 0.01256561279296875, -0.06414794921875, 0.0152587890625, -0.007030487060546875, -0.028076171875, 0.0193939208984375, 0.017913818359375, 0.0251312255859375, 0.0151519775390625, -0.007526397705078125, -0.0095062255859375, -0.014678955078125, 0.02593994140625, 0.0158233642578125, -0.04376220703125, -0.0163726806640625, 0.05596923828125, -0.011810302734375, 0.0390625, 0.019195556640625, 0.0258636474609375, 0.011627197265625, 0.003261566162109375, -0.0237884521484375, 0.0241546630859375, -0.0024776458740234375, 0.007663726806640625, 0.020538330078125, 0.0391845703125, 0.0037097930908203125, 0.0750732421875, -0.03570556640625, -0.015716552734375, -0.044281005859375, 0.0268402099609375, -0.020355224609375, 0.0268707275390625, 0.05218505859375, -0.00431060791015625, 0.026092529296875, -0.0287933349609375, 0.00022399425506591797, 0.019561767578125, 0.05474853515625, -0.0277557373046875, 0.04144287109375, 0.006866455078125, -0.005229949951171875, -0.005779266357421875, -0.03594970703125, 0.0140380859375, 0.0263214111328125, 0.0274658203125, -0.0008149147033691406, -0.0204315185546875, -0.03265380859375, 0.10479736328125, -0.049072265625, -0.036346435546875, 0.01495361328125, 0.043182373046875, 0.0694580078125, -0.0169219970703125, 0.033203125, 0.0347900390625, 0.0199432373046875, 0.07379150390625, -0.01180267333984375, 0.0004892349243164062, -0.07586669921875, 0.0040435791015625, -0.019744873046875, -0.0175933837890625, 0.02410888671875, -0.02117919921875, -0.0208740234375, 0.018524169921875, 0.0183563232421875, 0.019775390625, 0.005199432373046875, -0.004467010498046875, 0.01506805419921875, 0.0130767822265625, 0.0242462158203125, -0.00823974609375, -0.019317626953125, -0.022247314453125, 0.01239776611328125, 0.006969451904296875, 0.01523590087890625, -0.0421142578125, 0.05584716796875, -0.01898193359375, 0.048614501953125, -0.01384735107421875, -0.069091796875, -0.0022373199462890625, 0.0197296142578125, -0.0122528076171875, -0.02105712890625, 0.0037994384765625, -0.020477294921875, -0.01418304443359375, 0.0037441253662109375, 0.007114410400390625, 0.021026611328125, 0.020233154296875, -0.0196533203125, -0.059906005859375, -0.003070831298828125, -0.026763916015625, -0.0159912109375, -0.0003941059112548828, 0.058868408203125, 0.033660888671875, 0.005237579345703125, -0.01258087158203125, -0.042938232421875, 0.0303497314453125, -0.0200653076171875, 0.01739501953125, -0.051605224609375, -0.01184844970703125, 0.0435791015625, 0.024444580078125, 0.0085601806640625, -0.00530242919921875, -0.058837890625, -0.0092926025390625, 0.0302276611328125, -0.049041748046875, -0.0281524658203125, -0.01268768310546875, 0.0239410400390625, -0.01192474365234375, -0.01090240478515625, 0.0379638671875, -0.03955078125, 0.0286865234375, -0.029632568359375, 0.0310211181640625, 0.0081787109375, -0.0132293701171875, -0.008270263671875, 0.0236358642578125, 0.008270263671875, -0.0198516845703125, 0.0714111328125, 0.06683349609375, -0.0206298828125, -0.043487548828125, -0.012725830078125, 0.00010693073272705078, 0.03472900390625, 0.004741668701171875, 0.006641387939453125, 0.00360107421875, 0.006984710693359375, 0.009124755859375, -0.0313720703125, 0.0218963623046875, 0.048797607421875, -0.00334930419921875, 0.020263671875, -0.008209228515625, 0.11761474609375, 0.0291900634765625, 0.0406494140625, 0.0166168212890625, 0.052886962890625, -0.00823974609375, -0.0281219482421875, 0.032073974609375, -0.037689208984375, 0.0084228515625, 0.04620361328125, -0.0015382766723632812, -0.0017690658569335938, 0.0009937286376953125, -0.00974273681640625, -0.0360107421875, 0.0184783935546875, 0.001708984375, -0.0306396484375, -0.001674652099609375, 0.0290069580078125, 0.024871826171875, -0.022430419921875, 0.0173492431640625, -0.01033782958984375, -0.005550384521484375, 0.00678253173828125, -0.055084228515625, -0.0233154296875, 0.03997802734375, -0.058868408203125, 0.00543212890625, -0.006389617919921875, -0.042755126953125, -0.0220794677734375, 0.0379638671875, -0.01175689697265625, 0.0163726806640625, -0.0249786376953125, -0.04876708984375, -0.03179931640625, -0.0570068359375, -0.0009055137634277344, 0.01580810546875, 0.004680633544921875, 0.011566162109375, -0.0701904296875, 0.00006157159805297852, 0.024566650390625, 0.0504150390625, 0.0159912109375, 0.004909515380859375, -0.0338134765625, 0.061187744140625, -0.0248870849609375, -0.00811767578125, 0.00409698486328125, 0.0016498565673828125, 0.062744140625, -0.06231689453125, -0.004608154296875, -0.0311431884765625, -0.01556396484375, -0.0066375732421875, 0.0255126953125, 0.042938232421875, 0.01464080810546875, 0.031463623046875, -0.02850341796875, -0.03521728515625, -0.034881591796875, -0.05596923828125, 0.0272674560546875, 0.015838623046875, 0.02880859375, -0.005901336669921875, 0.023712158203125, -0.00402069091796875, 0.0297393798828125, 0.0309906005859375, -0.0135498046875, 0.016143798828125, -0.02154541015625, -0.033935546875, -0.0178680419921875, 0.0276031494140625, -0.01499176025390625, -0.004482269287109375, 0.006999969482421875, 0.0102996826171875, -0.01275634765625, 0.0164337158203125, -0.04864501953125, 0.041961669921875, 0.0299224853515625, -0.00576019287109375, 0.0869140625, -0.0279998779296875, -0.0292510986328125, -0.052093505859375, 0.038909912109375, -0.046722412109375, -0.031280517578125, 0.051910400390625, 0.0265960693359375, -0.0316162109375, 0.0106048583984375, -0.0465087890625, -0.0113525390625, 0.0248870849609375, -0.01001739501953125, -0.0190582275390625, -0.007213592529296875, 0.012451171875, -0.0215301513671875, 0.043853759765625, -0.01922607421875, 0.03070068359375, -0.0211334228515625, 0.0063934326171875, 0.01085662841796875, 0.0019626617431640625, -0.00969696044921875, -0.017059326171875, -0.0199127197265625, -0.04705810546875, -0.0226287841796875, 0.036376953125, 0.0143280029296875, -0.02386474609375, -0.03955078125, -0.054351806640625, 0.0121612548828125, 0.012176513671875, 0.03131103515625, -0.0018024444580078125, -0.003376007080078125, -0.01122283935546875, 0.00571441650390625, 0.01000213623046875, -0.012664794921875, -0.002857208251953125, 0.01666259765625, 0.00440216064453125, 0.0273895263671875, -0.0161285400390625, -0.022979736328125, 0.0164337158203125, -0.03668212890625, -0.07373046875, -0.062042236328125, 0.00014984607696533203, 0.01214599609375, -0.01207733154296875, 0.01372528076171875, -0.0648193359375, -0.042999267578125, 0.034759521484375, 0.05181884765625, -0.00135040283203125, -0.0032100677490234375, 0.01666259765625, 0.0121307373046875, -0.0565185546875, 0.00267791748046875, 0.024169921875, 0.0323486328125, -0.031494140625, 0.03668212890625, 0.0122222900390625, -0.03741455078125, 0.063232421875, -0.026336669921875, 0.07159423828125, 0.0177459716796875, -0.031341552734375, 0.0010728836059570312, 0.0029888153076171875, 0.0181121826171875, 0.043365478515625, -0.04547119140625, -0.0257568359375, -0.0169830322265625, 0.006618499755859375, -0.033935546875, 0.01328277587890625, 0.035400390625, 0.00720977783203125, -0.03436279296875, -0.08563232421875, 0.0179595947265625, -0.06512451171875, 0.078369140625, 0.0181427001953125, -0.01093292236328125, 0.090087890625, 0.050445556640625, 0.023529052734375, 0.0160369873046875, 0.0299224853515625, -0.020111083984375, 0.049835205078125, 0.0004634857177734375, 0.004611968994140625, 0.0008425712585449219, -0.005428314208984375, 0.029937744140625, 0.01303863525390625, -0.02337646484375, -0.02386474609375, -0.006908416748046875, 0.0099639892578125, -0.006931304931640625, 0.0157012939453125, 0.0251617431640625, 0.0258331298828125, 0.00116729736328125, 0.0029087066650390625, -0.0099639892578125, 0.0535888671875, -0.03411865234375, 0.0401611328125, -0.02215576171875, 0.0162811279296875, 0.00135040283203125, 0.042572021484375, -0.01233673095703125, 0.032958984375, -0.00786590576171875, 0.016510009765625, -0.0014314651489257812, 0.0189361572265625, 0.032745361328125, 0.005664825439453125, 0.00897216796875, -0.0224151611328125, -0.0167083740234375, -0.008331298828125, 0.020050048828125, 0.03521728515625, 0.0037841796875, 0.0062713623046875, -0.0255126953125, 0.01476287841796875, 0.00270843505859375, -0.03857421875, 0.004276275634765625, -0.0243682861328125, -0.01360321044921875, -0.0271759033203125, 0.033447265625, 0.034423828125, 0.0183258056640625, -0.0321044921875, -0.0004742145538330078, -0.0005555152893066406, 0.0400390625, -0.01641845703125, -0.02032470703125, 0.032135009765625, 0.025726318359375, 0.06365966796875, -0.0030002593994140625, -0.031890869140625, 0.0255584716796875, 0.007232666015625, -0.039642333984375, -0.021759033203125, 0.0594482421875, -0.038787841796875, -0.006153106689453125, 0.0091094970703125, -0.003856658935546875, -0.019256591796875, 0.0232391357421875, 0.025726318359375, 0.0194854736328125, -0.064453125, 0.01493072509765625, -0.00029969215393066406, 0.01511383056640625, 0.07135009765625, -0.0016126632690429688, -0.009918212890625, -0.061737060546875, -0.0191192626953125, 0.01467132568359375, -0.032684326171875, -0.0308685302734375, -0.01039886474609375, 0.0233306884765625, 0.004383087158203125, 0.0241546630859375, -0.03564453125, 0.031341552734375, 0.0211334228515625, 0.049835205078125, -0.0040435791015625, 0.00434112548828125, 0.0162506103515625, -0.031280517578125, -0.0034618377685546875, 0.0095367431640625, -0.026947021484375, 0.0011138916015625, 0.0131378173828125, -0.00021028518676757812, 0.03668212890625, -0.004913330078125, 0.0364990234375, -0.0240936279296875, -0.004520416259765625, -0.021148681640625, 0.064208984375, -0.04241943359375, 0.0174560546875, 0.004199981689453125, -0.01506805419921875, 0.03363037109375, -0.042388916015625, -0.0380859375, 0.0173187255859375, -0.015869140625, 0.0030536651611328125, 0.04620361328125, -0.026641845703125, 0.035675048828125, 0.0721435546875, -0.00818634033203125, 0.0404052734375, 0.0216217041015625, -0.01560211181640625, 0.021148681640625, 0.0445556640625, -0.0169219970703125, -0.01531219482421875, 0.02386474609375, -0.00030040740966796875, -0.03839111328125, -0.00798797607421875, -0.0186309814453125, 0.0238037109375, -0.0072174072265625, 0.06658935546875, 0.0066986083984375, -0.0166168212890625, 0.0283050537109375, -0.047027587890625, 0.0283660888671875, -0.030059814453125, -0.004947662353515625, -0.00931549072265625, 0.054718017578125, -0.05413818359375, -0.033660888671875, -0.00362396240234375, -0.03753662109375, 0.019805908203125, 0.01910400390625, 0.0269012451171875, 0.0031280517578125, -0.03436279296875, -0.0183868408203125, 0.0022296905517578125, 0.0064544677734375, 0.01450347900390625, 0.00644683837890625, 0.00012803077697753906, -0.0196685791015625, -0.0179595947265625, 0.022247314453125, -0.03570556640625, -0.00818634033203125, -0.017120361328125, -0.00984954833984375, 0.01177978515625, 0.025634765625, -0.018707275390625, 0.016204833984375, -0.0008540153503417969, 0.006061553955078125, 0.057373046875, -0.0186004638671875, 0.0191192626953125, 0.0196990966796875, -0.04498291015625, 0.004573822021484375, -0.005008697509765625, -0.00896453857421875, -0.00862884521484375, -0.0004596710205078125, 0.09423828125, -0.052490234375, -0.023345947265625, -0.002956390380859375, 0.012359619140625, 0.0157470703125, -0.0250396728515625, 0.0017137527465820312, -0.038604736328125, 0.00519561767578125, -0.017059326171875, -0.0086517333984375, -0.01544189453125, -0.025634765625, -0.07086181640625, 0.10650634765625, 0.04833984375, 0.0248565673828125, -0.036865234375, 0.061859130859375, -0.0012769699096679688, 0.045440673828125, -0.004604339599609375, 0.034088134765625, 0.0243988037109375, 0.0146026611328125, 0.017608642578125, -0.012237548828125, 0.02850341796875, 0.0202178955078125, -0.0100250244140625, -0.01319122314453125, -0.042877197265625, -0.005382537841796875, 0.049468994140625, 0.01071929931640625, 0.01100921630859375, 0.04541015625, 0.00592041015625, -0.0004925727844238281, -0.01468658447265625, -0.046966552734375, 0.003093719482421875, -0.05743408203125, -0.00820159912109375, 0.018524169921875, -0.007396697998046875, 0.006526947021484375, 0.0247650146484375, -0.0309600830078125, 0.0290679931640625, -0.00787353515625, -0.016510009765625, -0.0625, -0.01038360595703125, 0.0611572265625, 0.0086822509765625, -0.032562255859375, -0.0284881591796875, -0.0201568603515625, 0.035003662109375, -0.027374267578125, -0.0157470703125, -0.017822265625, 0.0132904052734375, -0.01337432861328125, -0.0208892822265625, -0.01111602783203125, 0.0274200439453125, -0.018157958984375, 0.04010009765625, 0.011077880859375, 0.01428985595703125, -0.0254669189453125, 0.00988006591796875, 0.03057861328125, 0.025634765625, -0.02557373046875, -0.0233001708984375, 0.007354736328125, 0.00438690185546875, 0.004364013671875, -0.00510406494140625, 0.01233673095703125, -0.0136871337890625, 0.0021915435791015625, -0.055908203125, 0.03607177734375, 0.03265380859375, 0.083740234375, 0.020233154296875, 0.0460205078125, -0.1435546875, -0.036529541015625, -0.04876708984375, 0.03436279296875, 0.0027942657470703125, 0.03924560546875, 0.0308380126953125, 0.0283355712890625, -0.0197601318359375, -0.01885986328125, -0.02227783203125, 0.04547119140625, 0.00446319580078125, 0.00922393798828125, -0.07037353515625, -0.06878662109375, 0.0318603515625, 0.045562744140625, 0.01457977294921875, -0.007427215576171875, 0.015777587890625, -0.0072021484375, -0.01543426513671875, -0.0045928955078125, -0.004421234130859375, -0.0299835205078125, 0.0196990966796875, -0.019378662109375, -0.004974365234375, 0.025848388671875, -0.0115966796875, -0.0157623291015625, -0.006252288818359375, 0.042633056640625, -0.0175323486328125, 0.04010009765625, -0.0102996826171875, 0.006542205810546875, -0.022308349609375, -0.0457763671875, -0.0214691162109375, -0.003875732421875, -0.043304443359375, -0.01006317138671875, -0.03704833984375, -0.04296875, 0.01399993896484375, 0.031707763671875, -0.0147857666015625, 0.0345458984375, -0.01326751708984375, -0.02301025390625, -0.008636474609375, 0.017425537109375, 0.0256500244140625, -0.0302734375, -0.01434326171875, -0.021636962890625, -0.033294677734375, -0.0280914306640625, -0.0017681121826171875, 0.032623291015625, -0.0005869865417480469, 0.0709228515625, -0.0318603515625, -0.00225830078125, 0.009246826171875, -0.03961181640625, 0.0224761962890625, -0.0012922286987304688, -0.006549835205078125, -0.0204010009765625, -0.01439666748046875, 0.0026454925537109375, -0.06451416015625, 0.05047607421875, -0.022674560546875, 0.02606201171875, 0.05535888671875, -0.032196044921875, 0.00006258487701416016, 0.034149169921875, -0.0009455680847167969, -0.04736328125, -0.06512451171875, 0.0047454833984375, 0.0479736328125, -0.060821533203125, -0.053436279296875, -0.037506103515625, 0.0357666015625, 0.019622802734375, -0.0007228851318359375, 0.006450653076171875, -0.02496337890625, 0.0248260498046875, 0.0132598876953125, 0.038970947265625, 0.03271484375, 0.00799560546875, -0.0380859375, 0.0231781005859375, -0.0008940696716308594, 0.0028934478759765625, -0.0074310302734375, -0.0169677734375, 0.041107177734375, 0.037200927734375, -0.00489044189453125, -0.08197021484375, -0.0311737060546875, 0.08642578125, -0.026214599609375, 0.0293121337890625, 0.0396728515625, -0.0208892822265625, -0.004180908203125, 0.0073394775390625, 0.00016605854034423828, 0.025390625, -0.0142974853515625, 0.00400543212890625, -0.027618408203125, 0.035247802734375, 0.00881195068359375, -0.04217529296875, -0.017578125, 0.026947021484375, 0.059295654296875, -0.000530242919921875, 0.06573486328125, -0.0439453125, -0.04620361328125, -0.05633544921875, -0.04437255859375, -0.051483154296875, 0.06317138671875, -0.0254669189453125, -0.0218963623046875, 0.01544189453125, -0.00785064697265625, -0.048004150390625, -0.0277252197265625, -0.004016876220703125, 0.0152130126953125, 0.0057830810546875, -0.0120086669921875, -0.0188446044921875, 0.0091094970703125, -0.0343017578125, -0.020904541015625, 0.0180816650390625, -0.016143798828125, -0.0219573974609375, 0.006122589111328125, -0.0189971923828125, -0.00836944580078125, -0.042327880859375, -0.028839111328125, 0.00841522216796875, 0.031036376953125, -0.032928466796875, 0.0015745162963867188, -0.0213470458984375, -0.003818511962890625, 0.06768798828125, 0.01131439208984375, -0.002559661865234375, -0.03948974609375, -0.00406646728515625, 0.0047760009765625, 0.0216827392578125, 0.033660888671875, -0.00925445556640625, -0.0027599334716796875, -0.00434112548828125, -0.017974853515625, -0.03656005859375, 0.016265869140625, -0.027618408203125, 0.00643157958984375, 0.00035262107849121094, -0.037506103515625, -0.08551025390625, -0.0013990402221679688, 0.026397705078125, 0.007354736328125, -0.0014829635620117188, -0.068115234375, -0.035430908203125, 0.0716552734375, 0.06634521484375, 0.0250091552734375, -0.01178741455078125, -0.034576416015625, -0.047760009765625, 0.00659942626953125, -0.040496826171875, -0.01358795166015625, -0.04742431640625, 0.0036106109619140625, -0.03778076171875, 0.0141754150390625, -0.004985809326171875, -0.0467529296875, -0.035888671875, -0.0217742919921875, -0.02911376953125, 0.0172576904296875, -0.035430908203125, -0.0289154052734375, 0.022216796875, -0.0214080810546875, -0.0274810791015625, -0.0008363723754882812, 0.031158447265625, -0.01105499267578125, -0.01526641845703125, -0.0074462890625, 0.0117340087890625, 0.00865936279296875, 0.021697998046875, 0.028411865234375, -0.001972198486328125, 0.00988006591796875, 0.01010894775390625, -0.0117645263671875, -0.0016632080078125, 0.0102386474609375, -0.0247039794921875, -0.0203399658203125, 0.0018358230590820312, -0.0110626220703125, 0.0673828125, -0.05889892578125, -0.0036602020263671875, -0.036346435546875, 0.0195770263671875, -0.02691650390625, 0.03204345703125, 0.0465087890625, 0.0026988983154296875, 0.00945281982421875, 0.0208282470703125, 0.01953125, -0.0019121170043945312, 0.0021648406982421875, -0.05535888671875, 0.0017099380493164062, -0.010498046875 ]
52cb3e7285f4f4c646d09239bca54b395fc8894f
Wordpress Stackexchange Q: How to get the post count for the last x days filtering by categories How can I get the posts count for eg the last 4 days, but only for specific categories eg. (1,2,3)? Thanks in advance. A: function get_days_ago_post_count_by_categories($ids){ $date_query = array( array( 'after'=>'4 days ago', 'inclusive' => true, ) ); $args = array( 'post_type' => 'post', 'post_status'=>'publish', 'category__in' => (array)$ids, 'date_query' => $date_query, 'no_found_rows' => true, 'suppress_filters' => true, 'fields'=>'ids', 'posts_per_page'=>-1, 'orderby' => 'ID' ); $query = new WP_Query( $args ); return $query->post_count; } Note: code isn't tested and just to show you how to achieve it with WP_Query WP_Query introduces date_query since 3.7. As you can see, I add some extra WP_Query arguments and their purpose are to generate most optimized SQL for performance sake. However, the generated SQL will still be SELECT ID. In fact, I would suggest that you use the row SQL with $wpdb->get_var. You know, SQL "aggregate" function (SELECT COUNT(ID) in your case) takes less resource than "SELECT ID". You can find the WP_Query generated SQL by outputting $query->request.
Q: How to get the post count for the last x days filtering by categories How can I get the posts count for eg the last 4 days, but only for specific categories eg. (1,2,3)? Thanks in advance. A: function get_days_ago_post_count_by_categories($ids){ $date_query = array( array( 'after'=>'4 days ago', 'inclusive' => true, ) ); $args = array( 'post_type' => 'post', 'post_status'=>'publish', 'category__in' => (array)$ids, 'date_query' => $date_query, 'no_found_rows' => true, 'suppress_filters' => true, 'fields'=>'ids', 'posts_per_page'=>-1, 'orderby' => 'ID' ); $query = new WP_Query( $args ); return $query->post_count; } Note: code isn't tested and just to show you how to achieve it with WP_Query WP_Query introduces date_query since 3.7. As you can see, I add some extra WP_Query arguments and their purpose are to generate most optimized SQL for performance sake. However, the generated SQL will still be SELECT ID. In fact, I would suggest that you use the row SQL with $wpdb->get_var. You know, SQL "aggregate" function (SELECT COUNT(ID) in your case) takes less resource than "SELECT ID". You can find the WP_Query generated SQL by outputting $query->request.
wordpress
{ "language": "en", "length": 177, "provenance": "stackexchange_00019.jsonl.gz:445859", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/147735" }
[ 0.05438232421875, -0.00411224365234375, -0.033203125, -0.06378173828125, 0.05303955078125, -0.04931640625, 0.045257568359375, 0.036163330078125, 0.02606201171875, 0.006603240966796875, -0.05548095703125, -0.0118255615234375, -0.0173187255859375, -0.0239715576171875, -0.0208740234375, -0.04864501953125, 0.039947509765625, -0.05889892578125, -0.001987457275390625, -0.0159454345703125, 0.009796142578125, 0.0008549690246582031, 0.03729248046875, 0.060882568359375, 0.00882720947265625, -0.01317596435546875, 0.0712890625, -0.04345703125, 0.035369873046875, -0.023834228515625, 0.0230865478515625, -0.0211029052734375, -0.01328277587890625, -0.00897979736328125, 0.043212890625, 0.01322174072265625, 0.017669677734375, 0.00958251953125, 0.029449462890625, 0.00939178466796875, 0.0305938720703125, -0.0133819580078125, 0.009429931640625, -0.0151824951171875, 0.00615692138671875, -0.026092529296875, 0.044219970703125, -0.027679443359375, 0.049041748046875, -0.016937255859375, -0.0325927734375, 0.0291900634765625, -0.0169677734375, 0.01285552978515625, -0.0157318115234375, 0.0073394775390625, 0.01464080810546875, 0.0191650390625, 0.053375244140625, -0.042572021484375, -0.06256103515625, -0.022308349609375, 0.0382080078125, -0.0321044921875, 0.0110626220703125, 0.01251983642578125, 0.06280517578125, 0.01207733154296875, 0.007457733154296875, -0.0134735107421875, -0.017242431640625, 0.01267242431640625, -0.0029048919677734375, 0.00893402099609375, -0.00800323486328125, -0.049896240234375, 0.0223541259765625, -0.0310516357421875, -0.0020389556884765625, 0.04266357421875, 0.002132415771484375, 0.00502777099609375, -0.07177734375, 0.00579833984375, -0.016265869140625, -0.0131683349609375, -0.01195526123046875, -0.0053863525390625, -0.02813720703125, -0.0096893310546875, -0.00983428955078125, -0.03564453125, -0.0384521484375, 0.00412750244140625, 0.01727294921875, -0.062042236328125, 0.0239410400390625, 0.0501708984375, -0.051422119140625, -0.05450439453125, -0.00370025634765625, -0.01593017578125, -0.06927490234375, 0.00522613525390625, 0.03070068359375, 0.0426025390625, 0.007175445556640625, 0.043487548828125, 0.06903076171875, 0.0251922607421875, 0.029510498046875, 0.0230865478515625, -0.014434814453125, 0.00362396240234375, -0.055389404296875, 0.0421142578125, 0.0016689300537109375, -0.046539306640625, -0.011260986328125, 0.0113677978515625, -0.02545166015625, -0.00911712646484375, -0.006107330322265625, 0.0136871337890625, 0.02099609375, -0.00795745849609375, -0.024993896484375, 0.01416015625, 0.031341552734375, 0.0278167724609375, -0.01776123046875, 0.002773284912109375, 0.02593994140625, 0.0134735107421875, 0.01029205322265625, -0.02117919921875, 0.0325927734375, -0.039703369140625, 0.007396697998046875, 0.00794219970703125, -0.0008778572082519531, -0.04083251953125, -0.0173187255859375, -0.002231597900390625, 0.0183563232421875, 0.0132598876953125, 0.02581787109375, -0.00897979736328125, -0.0017118453979492188, -0.019134521484375, 0.01409912109375, -0.014190673828125, 0.0413818359375, -0.00728607177734375, -0.041015625, 0.00377655029296875, -0.0202789306640625, 0.0009183883666992188, -0.0313720703125, -0.01117706298828125, 0.06524658203125, 0.006591796875, -0.042144775390625, 0.0251007080078125, -0.0261077880859375, -0.0017995834350585938, -0.0181121826171875, -0.0056915283203125, 0.027313232421875, -0.0017757415771484375, 0.03289794921875, -0.01456451416015625, 0.040069580078125, -0.01436614990234375, -0.022918701171875, 0.0111236572265625, -0.029449462890625, -0.04229736328125, 0.036773681640625, 0.00043845176696777344, -0.03387451171875, -0.011016845703125, -0.00452423095703125, 0.01444244384765625, -0.01509857177734375, 0.04559326171875, 0.007068634033203125, 0.033935546875, -0.0237274169921875, 0.015594482421875, -0.000736236572265625, 0.04241943359375, -0.027374267578125, 0.0303802490234375, 0.024810791015625, -0.0350341796875, -0.017913818359375, -0.00659942626953125, 0.003536224365234375, -0.041656494140625, 0.0267791748046875, 0.0201873779296875, -0.00946044921875, 0.0191192626953125, -0.057098388671875, 0.0243072509765625, -0.0247955322265625, 0.0211639404296875, -0.00928497314453125, 0.0292816162109375, 0.04534912109375, 0.034271240234375, -0.0489501953125, -0.020751953125, -0.028228759765625, -0.0169830322265625, -0.019439697265625, -0.00589752197265625, -0.031768798828125, 0.007282257080078125, -0.0287322998046875, -0.0157012939453125, -0.034576416015625, 0.031951904296875, 0.039093017578125, -0.038665771484375, 0.00922393798828125, -0.0380859375, 0.02880859375, 0.0017337799072265625, -0.01042938232421875, 0.01117706298828125, 0.054473876953125, 0.049957275390625, -0.0240325927734375, -0.018829345703125, 0.0008497238159179688, -0.06146240234375, 0.0117034912109375, 0.04949951171875, 0.032470703125, -0.0037174224853515625, -0.00255584716796875, -0.0062103271484375, 0.0178375244140625, -0.08441162109375, -0.002262115478515625, -0.00838470458984375, -0.0185394287109375, 0.00469207763671875, 0.044158935546875, -0.0010347366333007812, 0.0221710205078125, 0.01727294921875, 0.006679534912109375, 0.0279083251953125, 0.0093231201171875, 0.01456451416015625, -0.0261077880859375, 0.0220184326171875, 0.003955841064453125, -0.031585693359375, -0.0406494140625, -0.007965087890625, 0.00853729248046875, -0.004730224609375, 0.032928466796875, 0.03204345703125, 0.00772857666015625, -0.005870819091796875, -0.007038116455078125, -0.0224151611328125, 0.0013704299926757812, -0.0182342529296875, -0.06109619140625, 0.0165557861328125, -0.0379638671875, 0.041351318359375, 0.0244140625, -0.023956298828125, -0.005283355712890625, 0.045745849609375, 0.007450103759765625, -0.0194549560546875, -0.0193328857421875, -0.053314208984375, 0.012451171875, -0.0052337646484375, -0.01006317138671875, 0.0172271728515625, 0.027679443359375, 0.038970947265625, -0.0172119140625, 0.04046630859375, -0.005245208740234375, 0.0128326416015625, 0.011077880859375, -0.03631591796875, 0.030853271484375, -0.04522705078125, 0.040191650390625, 0.04339599609375, -0.031280517578125, 0.0222320556640625, 0.0025310516357421875, -0.0015964508056640625, 0.04193115234375, -0.0028667449951171875, -0.009002685546875, -0.01393890380859375, -0.03436279296875, 0.00594329833984375, 0.037322998046875, 0.082763671875, -0.035675048828125, -0.0653076171875, -0.00555419921875, 0.0140228271484375, -0.09375, -0.10565185546875, -0.038665771484375, -0.0284881591796875, -0.0244140625, 0.0013875961303710938, -0.025390625, 0.027313232421875, -0.0124969482421875, 0.008514404296875, -0.01554107666015625, 0.003757476806640625, -0.0555419921875, -0.04986572265625, -0.059661865234375, 0.0112762451171875, 0.0028228759765625, 0.0185089111328125, -0.0011081695556640625, 0.07916259765625, 0.0015249252319335938, -0.0721435546875, -0.022979736328125, -0.00933074951171875, -0.0259857177734375, 0.001979827880859375, -0.00592803955078125, 0.00682830810546875, -0.006763458251953125, 0.01202392578125, -0.0010128021240234375, 0.01030731201171875, -0.010498046875, -0.0105743408203125, -0.0189361572265625, 0.0080108642578125, 0.019378662109375, 0.015960693359375, 0.006710052490234375, 0.047454833984375, 0.047027587890625, -0.01079559326171875, -0.03118896484375, -0.00516510009765625, -0.0362548828125, -0.01041412353515625, 0.0215911865234375, 0.002468109130859375, -0.01029205322265625, -0.004177093505859375, 0.01824951171875, -0.004535675048828125, 0.01480865478515625, -0.04534912109375, 0.0582275390625, 0.0271148681640625, 0.032257080078125, -0.022369384765625, -0.0299835205078125, -0.037933349609375, 0.036041259765625, -0.029754638671875, 0.00997161865234375, -0.00147247314453125, 0.01512908935546875, -0.01348114013671875, -0.0258331298828125, 0.05889892578125, -0.004695892333984375, -0.021270751953125, -0.0242156982421875, -0.03948974609375, -0.000919342041015625, 0.0672607421875, 0.006053924560546875, -0.032501220703125, -0.0028076171875, 0.01363372802734375, -0.0299224853515625, -0.0285797119140625, -0.016387939453125, -0.0003466606140136719, -0.0703125, 0.0105133056640625, -0.015472412109375, -0.025543212890625, -0.0252685546875, 0.032989501953125, -0.051849365234375, -0.0255889892578125, 0.044921875, -0.0308380126953125, -0.00855255126953125, 0.0059356689453125, -0.034759521484375, 0.0045928955078125, -0.045257568359375, -0.00858306884765625, -0.03448486328125, -0.0185699462890625, 0.026092529296875, 0.0022449493408203125, -0.043975830078125, 0.0323486328125, -0.0167999267578125, 0.034881591796875, 0.01450347900390625, 0.003955841064453125, 0.016143798828125, 0.006832122802734375, 0.0025806427001953125, 0.0009360313415527344, 0.0145416259765625, -0.042144775390625, -0.0189208984375, -0.058563232421875, -0.01003265380859375, -0.00743865966796875, -0.03997802734375, 0.0238494873046875, -0.06573486328125, 0.0230712890625, -0.006847381591796875, -0.0291748046875, -0.01407623291015625, 0.0161590576171875, -0.027008056640625, 0.00400543212890625, -0.034423828125, -0.01308441162109375, 0.07177734375, 0.0261383056640625, -0.0044708251953125, -0.0178680419921875, 0.1190185546875, 0.0192108154296875, -0.03680419921875, -0.03485107421875, 0.013031005859375, 0.048553466796875, -0.03729248046875, 0.0186004638671875, 0.0182952880859375, -0.04766845703125, 0.07354736328125, 0.01111602783203125, -0.0261383056640625, -0.042022705078125, 0.072265625, 0.0035953521728515625, 0.01476287841796875, -0.027496337890625, -0.037078857421875, 0.050445556640625, 0.048553466796875, -0.004764556884765625, -0.0245208740234375, -0.007328033447265625, 0.058013916015625, 0.01218414306640625, -0.021881103515625, -0.051666259765625, -0.02215576171875, 0.01849365234375, -0.0239410400390625, 0.038238525390625, 0.003021240234375, 0.00606536865234375, 0.007656097412109375, 0.0240478515625, -0.0006833076477050781, 0.036529541015625, 0.0194549560546875, -0.013824462890625, 0.024505615234375, 0.0170135498046875, -0.032501220703125, 0.0259246826171875, 0.0022029876708984375, -0.018524169921875, -0.00907135009765625, -0.044586181640625, 0.02178955078125, -0.00980377197265625, -0.007183074951171875, 0.0194091796875, -0.04461669921875, 0.050445556640625, 0.04364013671875, -0.04107666015625, -0.018310546875, -0.040679931640625, -0.01467132568359375, -0.062286376953125, 0.0187530517578125, -0.0094451904296875, 0.006195068359375, 0.058380126953125, 0.015838623046875, 0.00406646728515625, 0.033905029296875, -0.03302001953125, 0.0350341796875, 0.0228424072265625, 0.043853759765625, 0.033782958984375, -0.047088623046875, -0.01361083984375, 0.013519287109375, -0.04144287109375, -0.033172607421875, -0.031585693359375, 0.0333251953125, 0.0216064453125, -0.0243072509765625, 0.0038700103759765625, 0.0192413330078125, 0.0289154052734375, -0.01180267333984375, -0.0003266334533691406, 0.01387786865234375, 0.0190582275390625, -0.0222930908203125, -0.03094482421875, 0.0014400482177734375, 0.032562255859375, 0.0037899017333984375, 0.018524169921875, -0.0126800537109375, 0.0689697265625, -0.035552978515625, 0.05621337890625, -0.01387786865234375, -0.0293731689453125, -0.042449951171875, -0.0282745361328125, -0.0159759521484375, 0.044342041015625, -0.008056640625, -0.000553131103515625, -0.0286865234375, 0.0193939208984375, -0.011566162109375, 0.07098388671875, -0.048248291015625, -0.0211029052734375, 0.01409149169921875, -0.0087738037109375, 0.059539794921875, 0.037322998046875, -0.0174407958984375, -0.0283203125, -0.002300262451171875, -0.0286407470703125, 0.059326171875, 0.01502227783203125, -0.01214599609375, -0.0099945068359375, -0.0165252685546875, 0.0195770263671875, -0.01032257080078125, -0.01541900634765625, -0.01215362548828125, -0.004528045654296875, -0.0013399124145507812, 0.0034637451171875, 0.018951416015625, 0.062347412109375, -0.021575927734375, 0.039886474609375, 0.0238189697265625, 0.036468505859375, -0.03631591796875, -0.03167724609375, 0.0184173583984375, -0.0236053466796875, -0.0203857421875, -0.03656005859375, -0.0281829833984375, -0.034881591796875, 0.0011501312255859375, -0.0164947509765625, 0.038421630859375, -0.00968170166015625, 0.00489044189453125, -0.006244659423828125, -0.048248291015625, -0.007354736328125, 0.0062103271484375, 0.044189453125, -0.03680419921875, -0.018524169921875, -0.0009546279907226562, 0.050994873046875, -0.0099334716796875, -0.044158935546875, -0.01319122314453125, 0.03472900390625, -0.0021266937255859375, 0.041229248046875, 0.0631103515625, -0.01336669921875, 0.0235748291015625, 0.0273284912109375, 0.0017023086547851562, -0.0079803466796875, 0.025665283203125, 0.01192474365234375, -0.023590087890625, 0.061431884765625, 0.004756927490234375, -0.0165252685546875, 0.04437255859375, -0.029327392578125, 0.01324462890625, 0.00684356689453125, 0.04345703125, -0.034881591796875, 0.0128326416015625, 0.00569915771484375, -0.031219482421875, -0.00847625732421875, 0.005889892578125, -0.031097412109375, -0.016326904296875, 0.0350341796875, -0.01544952392578125, -0.037689208984375, 0.016937255859375, 0.0211334228515625, -0.00311279296875, -0.0065460205078125, 0.0243072509765625, 0.008636474609375, -0.00738525390625, -0.0132598876953125, 0.006595611572265625, 0.0027446746826171875, -0.029022216796875, -0.004367828369140625, 0.0094451904296875, 0.03155517578125, -0.062286376953125, 0.0303955078125, -0.0267791748046875, 0.0160369873046875, -0.0177459716796875, -0.01532745361328125, 0.03729248046875, 0.0311737060546875, -0.01403045654296875, -0.007091522216796875, 0.0186920166015625, -0.028472900390625, -0.034393310546875, -0.013671875, 0.0097198486328125, 0.054107666015625, -0.045562744140625, 0.026031494140625, -0.01355743408203125, -0.002777099609375, -0.027191162109375, -0.046630859375, 0.060516357421875, -0.0272369384765625, -0.008392333984375, 0.0184478759765625, 0.054290771484375, -0.00896453857421875, 0.002674102783203125, 0.029632568359375, -0.04022216796875, -0.0037994384765625, 0.007778167724609375, 0.00927734375, 0.0030765533447265625, 0.0086822509765625, -0.033294677734375, 0.08795166015625, -0.0207672119140625, 0.0197601318359375, 0.0266876220703125, 0.03924560546875, -0.0137481689453125, 0.015411376953125, -0.06170654296875, 0.0271148681640625, 0.00241851806640625, 0.06475830078125, -0.045562744140625, -0.018280029296875, 0.0117034912109375, 0.052703857421875, 0.065185546875, -0.004795074462890625, -0.0301666259765625, -0.0382080078125, 0.035736083984375, 0.044891357421875, 0.007434844970703125, 0.031402587890625, -0.0025196075439453125, 0.05267333984375, 0.0938720703125, -0.057159423828125, 0.0413818359375, 0.01407623291015625, 0.01190948486328125, -0.00370025634765625, 0.009857177734375, 0.0224609375, -0.037445068359375, 0.0109405517578125, 0.0020809173583984375, -0.0224151611328125, 0.003833770751953125, 0.0007596015930175781, -0.015838623046875, 0.079345703125, 0.06781005859375, -0.12548828125, -0.0626220703125, -0.0555419921875, 0.047821044921875, 0.00934600830078125, 0.024383544921875, 0.007659912109375, 0.006011962890625, 0.08612060546875, -0.032318115234375, -0.00769805908203125, 0.009307861328125, -0.029205322265625, 0.09918212890625, 0.043304443359375, 0.058837890625, -0.039031982421875, -0.0577392578125, 0.0257568359375, 0.1116943359375, -0.031890869140625, -0.017486572265625, 0.01263427734375, 0.0155487060546875, -0.0101776123046875, 0.01043701171875, 0.021881103515625, 0.03729248046875, 0.0576171875, -0.0225830078125, -0.0299530029296875, 0.01393890380859375, 0.00861358642578125, 0.005802154541015625, 0.00498199462890625, 0.0248870849609375, -0.0217437744140625, -0.044677734375, -0.020965576171875, 0.0400390625, 0.08148193359375, 0.03680419921875, 0.042266845703125, -0.046234130859375, -0.03839111328125, 0.005298614501953125, -0.0010919570922851562, 0.00482177734375, -0.00732421875, 0.0030574798583984375, -0.00479888916015625, -0.0038356781005859375, 0.020538330078125, -0.016632080078125, -0.059783935546875, 0.0012226104736328125, 0.039154052734375, -0.01654052734375, -0.0303497314453125, 0.0089874267578125, -0.0066375732421875, -0.04876708984375, -0.032135009765625, 0.0007958412170410156, 0.026763916015625, 0.016632080078125, 0.0300445556640625, 0.0487060546875, 0.005626678466796875, -0.0240020751953125, 0.00861358642578125, 0.01087188720703125, -0.01399993896484375, 0.044647216796875, 0.00022745132446289062, 0.02008056640625, -0.0017480850219726562, -0.07244873046875, -0.0007381439208984375, -0.016937255859375, -0.03814697265625, 0.01125335693359375, 0.0168304443359375, -0.056884765625, 0.046478271484375, 0.0005421638488769531, -0.03546142578125, 0.0306854248046875, 0.022491455078125, -0.00974273681640625, 0.005283355712890625, 0.028839111328125, -0.0230865478515625, -0.048095703125, -0.02435302734375, -0.0306243896484375, 0.0306549072265625, 0.0421142578125, 0.0188140869140625, 0.0219879150390625, 0.041748046875, -0.035858154296875, 0.02301025390625, -0.0526123046875, -0.0171661376953125, 0.037017822265625, -0.0187225341796875, -0.01021575927734375, 0.00554656982421875, -0.00307464599609375, -0.0272064208984375, 0.048553466796875, -0.03839111328125, -0.0031585693359375, -0.0300750732421875, 0.032073974609375, -0.0100250244140625, -0.0213623046875, -0.0333251953125, 0.022369384765625, -0.006694793701171875, -0.048797607421875, 0.033935546875, -0.009979248046875, 0.00930023193359375, 0.03326416015625, -0.007720947265625, 0.0167236328125, 0.00954437255859375, 0.002353668212890625, 0.018768310546875, 0.027801513671875, -0.0740966796875, 0.06524658203125, 0.0270538330078125, -0.01922607421875, 0.035552978515625, 0.015960693359375, -0.0217132568359375, 0.0187225341796875, -0.03265380859375, -0.0254974365234375, 0.01125335693359375, 0.0494384765625, -0.017425537109375, 0.03326416015625, -0.0215911865234375, 0.0005097389221191406, 0.00786590576171875, -0.02838134765625, -0.0335693359375, -0.028228759765625, -0.01019287109375, 0.00565338134765625, -0.0045318603515625, -0.0289459228515625, -0.026275634765625, 0.0025177001953125, 0.0031223297119140625, 0.009613037109375, -0.07366943359375, 0.08685302734375, -0.0217132568359375, -0.03204345703125, -0.026611328125, 0.0016832351684570312, 0.005016326904296875, 0.0009684562683105469, -0.051422119140625, -0.00626373291015625, -0.0264434814453125, 0.0023975372314453125, -0.019195556640625, 0.002254486083984375, -0.006717681884765625, -0.015625, -0.0208740234375, 0.009063720703125, -0.00743865966796875, 0.04229736328125, 0.033905029296875, 0.004352569580078125, 0.01477813720703125, 0.01280975341796875, -0.04547119140625, -0.03607177734375, 0.034698486328125, -0.038330078125, -0.0170440673828125, -0.00760650634765625, 0.00629425048828125, 0.0276336669921875, -0.03192138671875, -0.08782958984375, 0.052215576171875, -0.034149169921875, -0.0284271240234375, -0.0682373046875, 0.022125244140625, 0.004779815673828125, -0.033355712890625, -0.0328369140625, -0.0010023117065429688, -0.018798828125, 0.0306854248046875, 0.0121612548828125, 0.0010614395141601562, 0.035003662109375, -0.020538330078125, -0.07952880859375, -0.0287322998046875, -0.036102294921875, 0.0146331787109375, 0.00106048583984375, 0.01541900634765625, 0.02337646484375, 0.034149169921875, -0.0302886962890625, 0.04461669921875, -0.0098724365234375, 0.027008056640625, -0.0005631446838378906, -0.06365966796875, -0.0462646484375, -0.0218658447265625, 0.044647216796875, 0.07080078125, 0.0222930908203125, -0.0516357421875, -0.024688720703125, -0.01136016845703125, 0.01166534423828125, 0.005794525146484375, 0.007801055908203125, -0.02508544921875, 0.004856109619140625, -0.008026123046875, -0.009613037109375, 0.0233612060546875, -0.0161590576171875, -0.00865936279296875, -0.0005140304565429688, -0.01279449462890625, -0.0003757476806640625, -0.050567626953125, 0.009368896484375, -0.0274810791015625, -0.003894805908203125, -0.0151519775390625, -0.01427459716796875, 0.01088714599609375, -0.042510986328125, 0.027557373046875, -0.0027370452880859375, 0.003887176513671875, 0.0184783935546875, 0.0218353271484375, 0.01654052734375, 0.0059967041015625, 0.009857177734375, 0.01104736328125, -0.00872039794921875, -0.015838623046875, 0.0036945343017578125, -0.032470703125, -0.00470733642578125, -0.00263214111328125, -0.00817108154296875, 0.047637939453125, 0.01198577880859375, 0.037506103515625, 0.00030803680419921875, 0.038543701171875, -0.000423431396484375, -0.0267181396484375, -0.0003311634063720703, -0.01107025146484375, -0.0185394287109375, 0.0055694580078125, -0.040924072265625, -0.044342041015625, 0.020263671875, 0.01136016845703125, -0.00687408447265625, 0.01021575927734375 ]
4bf3092699b7397a0283ca72ccddc95393c1da29
Wordpress Stackexchange Q: wp_schedule_event not working? I cannot get a Wordpress cron to trigger. I am trying to run this code to see if I can get an email sent to me hourly. It's taken directly from the Wordpress examples here: http://codex.wordpress.org/Function_Reference/wp_schedule_event. Except I removed underscores (see caveat in documentation). The code is running in my theme functions.php file. The cron seems to be registered but the prefixdothishourly function does not get fired (as far as I can tell.) add_action( 'wp', 'prefixsetupschedule' ); /** * On an early action hook, check if the hook is scheduled - if not, schedule it. */ function prefixsetupschedule() { if ( ! wp_next_scheduled( 'prefixhourlyevent' ) ) { wp_schedule_event(time(), 'hourly', 'prefixhourlyevent'); } } add_action( 'prefixhourlyevent', 'prefixdothishourly' ); /** * On the scheduled action hook, run a function. */ function prefixdothishourly() { return wp_mail("[email protected]", "Notification TEST", "TEST", null); } A: Turns out I had to set the ALTERNATE_WP_CRON flag in wp-config.php to make this work: define('ALTERNATE_WP_CRON', true);
Q: wp_schedule_event not working? I cannot get a Wordpress cron to trigger. I am trying to run this code to see if I can get an email sent to me hourly. It's taken directly from the Wordpress examples here: http://codex.wordpress.org/Function_Reference/wp_schedule_event. Except I removed underscores (see caveat in documentation). The code is running in my theme functions.php file. The cron seems to be registered but the prefixdothishourly function does not get fired (as far as I can tell.) add_action( 'wp', 'prefixsetupschedule' ); /** * On an early action hook, check if the hook is scheduled - if not, schedule it. */ function prefixsetupschedule() { if ( ! wp_next_scheduled( 'prefixhourlyevent' ) ) { wp_schedule_event(time(), 'hourly', 'prefixhourlyevent'); } } add_action( 'prefixhourlyevent', 'prefixdothishourly' ); /** * On the scheduled action hook, run a function. */ function prefixdothishourly() { return wp_mail("[email protected]", "Notification TEST", "TEST", null); } A: Turns out I had to set the ALTERNATE_WP_CRON flag in wp-config.php to make this work: define('ALTERNATE_WP_CRON', true); A: The ALTERNATE_WP_CRON basically does a transparent redirect on a user visiting your site and could result in a doing_wp_cron query parameter added to the URL. If for any reason your WordPress cron jobs are failing due to too much load or due to too little traffic on the website, it may be a good option to switch to a server side/external cron job to fire the WordPress cron for you.
wordpress
{ "language": "en", "length": 230, "provenance": "stackexchange_00019.jsonl.gz:445874", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/147785" }
[ 0.0302276611328125, -0.00948333740234375, -0.0187835693359375, -0.0287322998046875, 0.0184783935546875, -0.0352783203125, 0.0322265625, -0.0299530029296875, -0.03424072265625, 0.026580810546875, 0.00045108795166015625, 0.017822265625, 0.01352691650390625, -0.0294647216796875, 0.02703857421875, -0.019683837890625, 0.0147857666015625, 0.001247406005859375, -0.007656097412109375, -0.031768798828125, 0.0157012939453125, 0.00707244873046875, -0.06671142578125, 0.08770751953125, 0.0254364013671875, 0.01849365234375, 0.052825927734375, -0.021820068359375, 0.0251312255859375, 0.0147247314453125, 0.0263214111328125, -0.058380126953125, 0.0187835693359375, 0.05194091796875, -0.052703857421875, -0.016693115234375, -0.0258941650390625, 0.0262451171875, -0.0101165771484375, 0.034759521484375, -0.00655364990234375, 0.003917694091796875, 0.052825927734375, 0.01256561279296875, -0.01446533203125, -0.04779052734375, 0.0202178955078125, -0.0236663818359375, 0.010711669921875, 0.0265045166015625, 0.0023193359375, -0.0152587890625, 0.004985809326171875, 0.0160675048828125, -0.011322021484375, -0.0185089111328125, -0.0618896484375, 0.060791015625, -0.0005536079406738281, -0.001613616943359375, 0.012115478515625, 0.0255584716796875, 0.00814056396484375, 0.0428466796875, 0.0103912353515625, -0.018310546875, 0.0001590251922607422, 0.01580810546875, -0.01458740234375, -0.004413604736328125, 0.033233642578125, -0.0209503173828125, -0.01265716552734375, 0.007354736328125, -0.0240631103515625, -0.035980224609375, 0.021392822265625, -0.03302001953125, 0.0018205642700195312, 0.0182952880859375, 0.0128936767578125, 0.00823211669921875, -0.0273590087890625, 0.00940704345703125, -0.0023708343505859375, 0.0133056640625, -0.0076904296875, -0.0160369873046875, -0.056121826171875, -0.0081939697265625, -0.0301666259765625, 0.00823211669921875, -0.04364013671875, -0.05133056640625, -0.027374267578125, -0.02545166015625, 0.01432037353515625, 0.038604736328125, -0.057952880859375, -0.0295867919921875, -0.03167724609375, 0.015777587890625, -0.034149169921875, 0.0005664825439453125, -0.032958984375, 0.057464599609375, 0.04815673828125, 0.061309814453125, 0.00304412841796875, 0.01192474365234375, 0.0007462501525878906, -0.0270233154296875, 0.044891357421875, 0.007663726806640625, 0.0018157958984375, -0.05645751953125, -0.024749755859375, 0.060150146484375, 0.00568389892578125, -0.00872802734375, 0.011810302734375, 0.041046142578125, -0.0102691650390625, -0.0654296875, 0.0024509429931640625, -0.0186767578125, -0.014251708984375, -0.0211181640625, 0.0133514404296875, 0.0149993896484375, -0.035491943359375, 0.01690673828125, 0.0237579345703125, 0.0026493072509765625, -0.017120361328125, -0.01380157470703125, 0.0186767578125, -0.01398468017578125, 0.00905609130859375, -0.00940704345703125, 0.033203125, 0.006198883056640625, -0.0009908676147460938, 0.0018167495727539062, 0.02374267578125, 0.01294708251953125, 0.0243072509765625, 0.018829345703125, -0.0033283233642578125, 0.00762176513671875, -0.01239013671875, 0.00893402099609375, 0.019500732421875, 0.0222930908203125, 0.00513458251953125, -0.01425933837890625, 0.020355224609375, -0.0179901123046875, 0.003086090087890625, -0.0196075439453125, -0.0279998779296875, -0.019195556640625, 0.0274505615234375, -0.0318603515625, -0.046051025390625, 0.0518798828125, -0.057525634765625, -0.019500732421875, 0.02630615234375, -0.035797119140625, 0.0196685791015625, 0.014678955078125, 0.037689208984375, 0.0282745361328125, 0.0181732177734375, 0.0333251953125, 0.02960205078125, -0.007305145263671875, 0.01413726806640625, 0.0250701904296875, -0.0247650146484375, -0.012786865234375, 0.05853271484375, -0.05914306640625, -0.0149688720703125, -0.044586181640625, 0.037933349609375, 0.032806396484375, 0.00489044189453125, 0.0419921875, 0.0285491943359375, -0.0190582275390625, 0.00469207763671875, 0.00632476806640625, -0.02117919921875, -0.00628662109375, -0.0312347412109375, 0.01023101806640625, -0.031341552734375, 0.00794219970703125, 0.0293121337890625, 0.005672454833984375, 0.00295257568359375, -0.0292816162109375, -0.09490966796875, 0.0226898193359375, -0.0443115234375, 0.045989990234375, 0.03363037109375, -0.0026721954345703125, -0.01337432861328125, -0.0177154541015625, 0.0142669677734375, -0.0650634765625, -0.045318603515625, 0.051239013671875, -0.024871826171875, 0.06646728515625, -0.019561767578125, 0.08837890625, -0.035308837890625, -0.0634765625, -0.017974853515625, -0.0181884765625, 0.0003597736358642578, -0.0513916015625, -0.01073455810546875, -0.03424072265625, -0.0304718017578125, -0.0199432373046875, -0.002582550048828125, 0.054046630859375, 0.01062774658203125, 0.034393310546875, -0.02532958984375, 0.00485992431640625, 0.018341064453125, 0.0229644775390625, 0.0016269683837890625, 0.015777587890625, 0.02825927734375, 0.0236358642578125, 0.01165008544921875, 0.042572021484375, 0.073486328125, -0.01180267333984375, 0.0252838134765625, -0.003063201904296875, -0.0291595458984375, -0.00018358230590820312, 0.0032672882080078125, -0.0008554458618164062, 0.0097808837890625, -0.0521240234375, -0.032562255859375, 0.0391845703125, 0.0220184326171875, -0.017852783203125, -0.018035888671875, 0.032867431640625, 0.01271820068359375, -0.0031948089599609375, -0.04302978515625, 0.007373809814453125, -0.015838623046875, -0.0103759765625, -0.0017213821411132812, 0.0012340545654296875, -0.004558563232421875, -0.0081939697265625, 0.00913238525390625, -0.0259552001953125, 0.0024852752685546875, 0.0213775634765625, -0.007724761962890625, 0.033050537109375, -0.0157470703125, 0.0033435821533203125, -0.013763427734375, 0.00952911376953125, -0.025054931640625, 0.0421142578125, -0.006134033203125, -0.0220184326171875, -0.01666259765625, 0.00803375244140625, 0.003093719482421875, -0.052886962890625, 0.015899658203125, -0.0053253173828125, 0.03173828125, 0.0355224609375, -0.0261993408203125, 0.060882568359375, -0.04541015625, -0.019012451171875, -0.04425048828125, -0.017242431640625, 0.0543212890625, -0.088623046875, -0.023712158203125, 0.0330810546875, -0.04583740234375, 0.0211944580078125, 0.00844573974609375, -0.0239410400390625, 0.0022411346435546875, 0.0218353271484375, 0.0003037452697753906, 0.033477783203125, -0.0765380859375, 0.016998291015625, 0.021087646484375, 0.094482421875, -0.0214996337890625, -0.04803466796875, -0.004150390625, 0.0268096923828125, -0.03814697265625, -0.07440185546875, -0.06256103515625, -0.049224853515625, -0.0214385986328125, -0.0243377685546875, -0.01256561279296875, 0.038818359375, -0.0372314453125, 0.00946807861328125, -0.047882080078125, -0.0255889892578125, 0.004398345947265625, -0.04766845703125, -0.038604736328125, 0.00734710693359375, 0.0149993896484375, 0.0221405029296875, 0.005214691162109375, 0.06158447265625, 0.007587432861328125, -0.060943603515625, 0.002147674560546875, 0.0180511474609375, -0.021881103515625, 0.0307159423828125, -0.024627685546875, -0.03265380859375, 0.0186767578125, -0.0275421142578125, 0.055572509765625, 0.032928466796875, -0.00726318359375, 0.0131683349609375, 0.001495361328125, 0.010040283203125, 0.007221221923828125, 0.037017822265625, 0.01495361328125, -0.003765106201171875, 0.0133056640625, -0.03582763671875, 0.03460693359375, -0.020233154296875, 0.005584716796875, 0.053131103515625, 0.0011997222900390625, -0.0390625, 0.0188751220703125, -0.006900787353515625, -0.002971649169921875, -0.00278472900390625, 0.0467529296875, -0.004974365234375, 0.0013647079467773438, -0.01739501953125, -0.0299072265625, -0.033416748046875, 0.007049560546875, -0.008026123046875, 0.0277252197265625, -0.005889892578125, 0.01192474365234375, -0.031005859375, 0.035247802734375, -0.08258056640625, -0.058013916015625, 0.056854248046875, -0.01322174072265625, -0.0294342041015625, -0.01204681396484375, -0.01629638671875, 0.0163421630859375, 0.055633544921875, 0.0142669677734375, -0.056671142578125, -0.018035888671875, 0.04156494140625, -0.09503173828125, -0.033111572265625, 0.0557861328125, 0.004856109619140625, -0.06414794921875, 0.02508544921875, -0.01409912109375, -0.013214111328125, -0.0236663818359375, -0.02093505859375, -0.052093505859375, -0.03936767578125, 0.018035888671875, -0.00157928466796875, 0.00347137451171875, 0.01529693603515625, -0.014617919921875, -0.01503753662109375, -0.0099334716796875, -0.018463134765625, -0.052337646484375, -0.0072479248046875, -0.0230560302734375, 0.021392822265625, 0.00464630126953125, 0.005817413330078125, -0.034576416015625, 0.0105438232421875, 0.058685302734375, -0.0011444091796875, 0.0236968994140625, -0.055572509765625, 0.0276641845703125, 0.021484375, 0.0236663818359375, 0.0035190582275390625, -0.01012420654296875, 0.0015544891357421875, -0.052215576171875, 0.03448486328125, -0.013946533203125, 0.00896453857421875, 0.0162506103515625, -0.037445068359375, -0.017913818359375, -0.0298309326171875, -0.0099639892578125, 0.003406524658203125, -0.0131378173828125, -0.0082244873046875, -0.03131103515625, -0.01739501953125, 0.03192138671875, -0.031707763671875, 0.005527496337890625, -0.003589630126953125, 0.0489501953125, 0.012298583984375, -0.0182342529296875, 0.018096923828125, 0.0362548828125, 0.036712646484375, 0.01898193359375, -0.00978851318359375, -0.028076171875, -0.0204010009765625, 0.037811279296875, 0.0080718994140625, -0.018707275390625, 0.00007051229476928711, 0.04010009765625, 0.0323486328125, 0.00177764892578125, -0.0028209686279296875, 0.00432586669921875, 0.00940704345703125, 0.0036144256591796875, 0.014617919921875, -0.042694091796875, 0.053497314453125, 0.04620361328125, -0.0233917236328125, 0.017486572265625, -0.0295257568359375, -0.0253753662109375, 0.0244140625, 0.0157928466796875, 0.03179931640625, 0.017242431640625, -0.007801055908203125, 0.012451171875, 0.001857757568359375, 0.018585205078125, -0.01242828369140625, 0.004810333251953125, -0.021240234375, 0.029205322265625, 0.0238494873046875, 0.0169525146484375, -0.039581298828125, -0.01093292236328125, 0.04205322265625, 0.03173828125, 0.00614166259765625, -0.0345458984375, 0.0038928985595703125, -0.01324462890625, -0.01369476318359375, -0.04852294921875, 0.0455322265625, 0.05926513671875, -0.0289459228515625, -0.0006651878356933594, -0.042572021484375, 0.0251007080078125, -0.05322265625, -0.0210113525390625, 0.02783203125, -0.033355712890625, 0.0128173828125, 0.0239410400390625, 0.0041046142578125, 0.0017480850219726562, -0.005214691162109375, 0.045135498046875, 0.04681396484375, 0.0281829833984375, 0.0159149169921875, -0.0158538818359375, -0.00408172607421875, 0.003597259521484375, 0.00246429443359375, -0.0316162109375, -0.051910400390625, 0.0200042724609375, 0.052490234375, -0.0106964111328125, 0.0241546630859375, -0.0045318603515625, 0.011260986328125, -0.03387451171875, 0.005523681640625, 0.020172119140625, 0.01345062255859375, -0.048187255859375, -0.0013523101806640625, 0.066650390625, 0.057464599609375, -0.0242462158203125, 0.0408935546875, -0.0296173095703125, 0.040740966796875, -0.01227569580078125, 0.042205810546875, -0.023101806640625, -0.0290069580078125, 0.0003116130828857422, -0.0011510848999023438, 0.0213623046875, -0.04510498046875, -0.0285491943359375, -0.01343536376953125, -0.001220703125, 0.0357666015625, -0.03570556640625, 0.01007080078125, -0.04339599609375, 0.0173797607421875, -0.10980224609375, 0.003040313720703125, 0.08013916015625, 0.06341552734375, -0.081298828125, 0.0263519287109375, -0.0391845703125, 0.004947662353515625, -0.0810546875, -0.051513671875, -0.06488037109375, -0.00940704345703125, 0.03436279296875, 0.0180816650390625, -0.0184783935546875, -0.069091796875, -0.0168914794921875, 0.0035190582275390625, 0.04058837890625, 0.037017822265625, -0.00736236572265625, 0.027252197265625, 0.0171356201171875, 0.041290283203125, 0.01042938232421875, 0.02703857421875, -0.01206207275390625, -0.0258026123046875, -0.00750732421875, -0.047882080078125, 0.00963592529296875, -0.0106201171875, -0.01439666748046875, 0.01427459716796875, 0.0187225341796875, 0.0037059783935546875, 0.0030670166015625, -0.0310211181640625, -0.0037593841552734375, -0.023681640625, 0.060272216796875, -0.055145263671875, -0.03656005859375, -0.01435089111328125, -0.040008544921875, 0.0294342041015625, 0.0079345703125, 0.0235595703125, -0.00457000732421875, -0.042022705078125, -0.00015926361083984375, 0.038421630859375, -0.06781005859375, 0.09075927734375, 0.1011962890625, -0.0003254413604736328, 0.05804443359375, 0.0102996826171875, -0.000015616416931152344, 0.037384033203125, 0.018280029296875, -0.041168212890625, -0.045684814453125, 0.024627685546875, -0.0109405517578125, -0.01461029052734375, 0.00742340087890625, -0.004711151123046875, -0.0028247833251953125, 0.0653076171875, 0.044891357421875, -0.08587646484375, -0.01155853271484375, 0.0019292831420898438, -0.0152435302734375, 0.006259918212890625, 0.00234222412109375, -0.01560211181640625, -0.05810546875, 0.047607421875, -0.01216888427734375, -0.01016998291015625, 0.0110931396484375, -0.01520538330078125, -0.0059661865234375, -0.004741668701171875, 0.051666259765625, 0.0243377685546875, -0.037994384765625, 0.01329803466796875, 0.0231781005859375, 0.0198974609375, -0.03350830078125, 0.0168304443359375, 0.00719451904296875, -0.01336669921875, -0.0518798828125, 0.0211639404296875, 0.0146484375, 0.019073486328125, -0.040679931640625, -0.0286407470703125, 0.040557861328125, 0.01293182373046875, -0.0109710693359375, -0.048309326171875, 0.0166473388671875, -0.0189361572265625, -0.0090789794921875, -0.0236663818359375, 0.047210693359375, 0.038330078125, -0.054595947265625, 0.031768798828125, -0.0162200927734375, -0.03009033203125, 0.0054473876953125, 0.0019140243530273438, 0.043426513671875, -0.03857421875, -0.0082550048828125, 0.0005059242248535156, -0.0021800994873046875, 0.039276123046875, 0.0293426513671875, 0.03204345703125, -0.0303192138671875, -0.0433349609375, 0.016387939453125, -0.07861328125, -0.0203857421875, -0.006561279296875, 0.01214599609375, 0.10528564453125, 0.00566864013671875, -0.052276611328125, 0.0165557861328125, 0.0635986328125, -0.01788330078125, 0.072509765625, -0.033416748046875, -0.0042877197265625, -0.01435089111328125, 0.021148681640625, -0.007671356201171875, 0.01131439208984375, -0.005001068115234375, 0.0036067962646484375, 0.031341552734375, 0.0186767578125, -0.0190277099609375, 0.005374908447265625, 0.02471923828125, -0.008544921875, -0.0245208740234375, 0.050506591796875, -0.0178375244140625, 0.010009765625, 0.0186767578125, -0.02825927734375, 0.02703857421875, -0.039154052734375, -0.01261138916015625, 0.004161834716796875, 0.00963592529296875, -0.00501251220703125, 0.01568603515625, -0.007843017578125, -0.0009508132934570312, 0.006671905517578125, 0.00197601318359375, -0.0279693603515625, 0.01256561279296875, 0.0250244140625, 0.05419921875, -0.01708984375, -0.0191802978515625, -0.01393890380859375, 0.046234130859375, 0.01806640625, -0.0083770751953125, 0.00885772705078125, 0.016754150390625, 0.00864410400390625, -0.042755126953125, -0.02667236328125, -0.00162506103515625, 0.010345458984375, -0.0160675048828125, -0.0233917236328125, -0.018463134765625, -0.047760009765625, 0.04827880859375, 0.052825927734375, 0.001895904541015625, -0.033843994140625, -0.0280914306640625, 0.020294189453125, 0.0184173583984375, 0.0011386871337890625, -0.009735107421875, -0.0034503936767578125, -0.055999755859375, -0.034454345703125, -0.0216827392578125, 0.0214385986328125, 0.0214691162109375, 0.005474090576171875, 0.005489349365234375, 0.0266265869140625, -0.03717041015625, 0.0196380615234375, -0.051666259765625, 0.0233306884765625, -0.00028705596923828125, 0.046142578125, -0.00693511962890625, 0.0592041015625, -0.006427764892578125, -0.012451171875, 0.0222930908203125, 0.039947509765625, -0.01837158203125, -0.031890869140625, 0.0173187255859375, -0.045928955078125, -0.04132080078125, 0.01361846923828125, 0.0102081298828125, 0.0221405029296875, 0.041290283203125, 0.0300445556640625, -0.0051422119140625, -0.015899658203125, 0.00897216796875, -0.031158447265625, -0.04913330078125, -0.003284454345703125, 0.003719329833984375, 0.01222991943359375, 0.00860595703125, 0.01059722900390625, 0.07757568359375, -0.008056640625, -0.028289794921875, -0.0107269287109375, -0.00696563720703125, -0.0235748291015625, 0.00759124755859375, 0.007305145263671875, -0.0102081298828125, -0.01332855224609375, -0.052215576171875, -0.03448486328125, 0.007213592529296875, -0.01922607421875, 0.0465087890625, 0.046356201171875, 0.006763458251953125, 0.0022220611572265625, 0.0203094482421875, -0.01160430908203125, 0.0225830078125, -0.00933837890625, -0.00601959228515625, -0.040008544921875, 0.006801605224609375, -0.0296783447265625, -0.051116943359375, -0.041534423828125, -0.02484130859375, 0.051513671875, 0.004734039306640625, 0.0316162109375, -0.00841522216796875, 0.030609130859375, 0.03399658203125, 0.013427734375, -0.0262908935546875, 0.027130126953125, 0.00014925003051757812, -0.028228759765625, 0.005161285400390625, -0.005939483642578125, -0.059112548828125, -0.0212249755859375, 0.0386962890625, -0.0164947509765625, -0.016204833984375, 0.004299163818359375, 0.031005859375, 0.0019521713256835938, 0.034423828125, -0.02392578125, -0.039764404296875, -0.04931640625, -0.020965576171875, 0.03289794921875, 0.0302276611328125, 0.0030307769775390625, -0.00745391845703125, -0.004375457763671875, -0.035247802734375, 0.01462554931640625, -0.00823211669921875, 0.0198211669921875, 0.0254364013671875, -0.0191192626953125, -0.028564453125, 0.01433563232421875, -0.012420654296875, -0.01557159423828125, 0.0170135498046875, 0.03204345703125, -0.0007905960083007812, -0.03265380859375, -0.002521514892578125, 0.0294342041015625, 0.007053375244140625, -0.0236053466796875, 0.002155303955078125, 0.0298004150390625, -0.0269012451171875, 0.038726806640625, -0.04351806640625, -0.014129638671875, -0.035400390625, -0.0025997161865234375, 0.0279388427734375, -0.01250457763671875, -0.0152130126953125, -0.0345458984375, -0.004062652587890625, 0.031890869140625, -0.01177978515625, -0.0169677734375, -0.0084228515625, -0.0250396728515625, 0.046173095703125, -0.0210418701171875, 0.0092926025390625, -0.003871917724609375, 0.00980377197265625, -0.027099609375, -0.0273590087890625, -0.0556640625, 0.0275421142578125, -0.05279541015625, -0.0302886962890625, 0.0272369384765625, 0.0207061767578125, -0.05108642578125, -0.06671142578125, -0.04730224609375, -0.01157379150390625, -0.044830322265625, -0.0221099853515625, -0.0186309814453125, -0.00041866302490234375, -0.0211944580078125, 0.005428314208984375, 0.047149658203125, -0.06427001953125, -0.0755615234375, -0.002655029296875, -0.0197601318359375, -0.00848388671875, -0.049591064453125, -0.0780029296875, 0.0260772705078125, -0.0009622573852539062, -0.028106689453125, -0.10833740234375, 0.0186614990234375, 0.0122528076171875, -0.0020542144775390625, -0.049560546875, -0.0034198760986328125, -0.0390625, 0.045013427734375, 0.0283355712890625, -0.007457733154296875, 0.0277252197265625, 0.030792236328125, -0.040130615234375, 0.0290374755859375, 0.00943756103515625, 0.0053863525390625, 0.002605438232421875, -0.00785064697265625, 0.0297088623046875, 0.0294647216796875, -0.0203857421875, -0.024505615234375, 0.004436492919921875, -0.0208892822265625, -0.022491455078125, -0.030181884765625, -0.050811767578125, -0.01019287109375, 0.0968017578125, 0.0643310546875, 0.025421142578125, -0.056427001953125, -0.0538330078125, -0.053314208984375, -0.02264404296875, -0.03692626953125, 0.009521484375, -0.06597900390625, 0.01346588134765625, -0.033935546875, 0.00478363037109375, 0.0282440185546875, 0.0101318359375, 0.0032100677490234375, -0.0236053466796875, -0.00992584228515625, -0.0321044921875, -0.039794921875, -0.0465087890625, 0.05224609375, -0.0287322998046875, 0.01305389404296875, 0.00585174560546875, 0.0281219482421875, 0.0287933349609375, 0.056549072265625, -0.0011692047119140625, 0.00858306884765625, -0.0019016265869140625, -0.0205535888671875, 0.0242767333984375, 0.00577545166015625, 0.01074981689453125, -0.029205322265625, 0.032073974609375, 0.002246856689453125, -0.04241943359375, -0.0010890960693359375, 0.05767822265625, -0.0252227783203125, -0.061187744140625, 0.0361328125, -0.00862884521484375, -0.0107574462890625, -0.0243377685546875, 0.0217132568359375, -0.007556915283203125, -0.0018644332885742188, 0.0089263916015625, 0.00234222412109375, 0.0195159912109375, 0.0030670166015625, 0.058380126953125, 0.006908416748046875, -0.0142974853515625, -0.0211944580078125, 0.001739501953125, -0.00452423095703125 ]
e29d7c20c4efe27b38d01acf5e78cb3583ed50c6
Wordpress Stackexchange Q: How do I add a add_rewrite_rule without it redirecting? I have a custom post type called "locations". I have a location called "starbucks". I can view this by going to "/location/starbucks". I would like to add "coffee-shop" to the URL, so the path "/location/coffee-shop/starbucks" will load the "starbucks" page, while maintaining the URL in the browser. i have added this code to my functions.php function add_rewrite_rules() { add_rewrite_rule('^location/([^/]*)/([^/]*)/?','index.php?pagename=$matches[2]','top'); } add_action('init', 'add_rewrite_rules'); Which correctly loads the "starbucks" page, but it changes the URL to "/location/starbucks". How can I load the "starbucks" page, and keep my custom URL? A: In your rewrite rule, pagename should in fact be the query_var of your custom post type. Unless you used query_var => 'something_else' in your register_post_type arguments, it'll be the same name as your custom post type: index.php?locations=$matches[2]
Q: How do I add a add_rewrite_rule without it redirecting? I have a custom post type called "locations". I have a location called "starbucks". I can view this by going to "/location/starbucks". I would like to add "coffee-shop" to the URL, so the path "/location/coffee-shop/starbucks" will load the "starbucks" page, while maintaining the URL in the browser. i have added this code to my functions.php function add_rewrite_rules() { add_rewrite_rule('^location/([^/]*)/([^/]*)/?','index.php?pagename=$matches[2]','top'); } add_action('init', 'add_rewrite_rules'); Which correctly loads the "starbucks" page, but it changes the URL to "/location/starbucks". How can I load the "starbucks" page, and keep my custom URL? A: In your rewrite rule, pagename should in fact be the query_var of your custom post type. Unless you used query_var => 'something_else' in your register_post_type arguments, it'll be the same name as your custom post type: index.php?locations=$matches[2]
wordpress
{ "language": "en", "length": 135, "provenance": "stackexchange_00019.jsonl.gz:445897", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/147855" }
[ 0.0919189453125, -0.0019664764404296875, 0.0135345458984375, -0.048309326171875, 0.01384735107421875, -0.0266876220703125, 0.047271728515625, -0.0225830078125, -0.05029296875, -0.005859375, 0.01018524169921875, 0.00531005859375, -0.024261474609375, -0.04071044921875, 0.038360595703125, -0.027008056640625, 0.025848388671875, 0.0107879638671875, 0.042022705078125, -0.01947021484375, 0.046539306640625, -0.01506805419921875, 0.036041259765625, 0.07318115234375, 0.01306915283203125, -0.0528564453125, 0.07666015625, 0.0050201416015625, -0.00789642333984375, -0.0230255126953125, 0.024322509765625, -0.00510406494140625, 0.030517578125, 0.01218414306640625, -0.0126953125, 0.01052093505859375, 0.062225341796875, -0.023040771484375, -0.00783538818359375, 0.0494384765625, 0.0255126953125, -0.025543212890625, 0.008544921875, 0.0166778564453125, 0.0169525146484375, -0.0443115234375, 0.04681396484375, -0.045562744140625, 0.0012197494506835938, -0.032135009765625, 0.00475311279296875, 0.042816162109375, 0.0148162841796875, 0.004657745361328125, 0.00562286376953125, 0.0311737060546875, -0.007587432861328125, -0.034515380859375, -0.004436492919921875, 0.004764556884765625, 0.0133819580078125, 0.02764892578125, 0.01389312744140625, 0.025146484375, -0.0364990234375, 0.0246429443359375, 0.033416748046875, -0.010223388671875, -0.053924560546875, -0.05267333984375, 0.0190582275390625, -0.0118255615234375, -0.020416259765625, 0.02117919921875, -0.0261688232421875, -0.06622314453125, 0.03668212890625, -0.04833984375, -0.01201629638671875, 0.05072021484375, -0.0110015869140625, 0.00173187255859375, 0.022064208984375, -0.05023193359375, 0.00047135353088378906, -0.048858642578125, -0.0229644775390625, 0.00791168212890625, -0.04052734375, -0.052032470703125, -0.02532958984375, -0.053680419921875, -0.035552978515625, -0.01065826416015625, -0.004528045654296875, -0.0218963623046875, 0.0186004638671875, 0.00786590576171875, 0.0082855224609375, 0.0004794597625732422, 0.0209503173828125, -0.05584716796875, 0.050750732421875, -0.04022216796875, 0.020050048828125, 0.064697265625, -0.01055145263671875, 0.008087158203125, 0.049407958984375, -0.0134429931640625, 0.020782470703125, 0.0211639404296875, -0.0120697021484375, -0.0284576416015625, -0.034637451171875, -0.0036754608154296875, -0.0450439453125, -0.007778167724609375, 0.0184783935546875, -0.019256591796875, -0.0234527587890625, 0.003910064697265625, -0.034393310546875, -0.040771484375, 0.050689697265625, -0.0035686492919921875, -0.00882720947265625, 0.020965576171875, -0.00798797607421875, -0.0036602020263671875, -0.0159912109375, 0.0401611328125, 0.032989501953125, 0.01377105712890625, -0.0055999755859375, -0.0034351348876953125, 0.0307159423828125, -0.035247802734375, -0.026031494140625, 0.0269317626953125, 0.02093505859375, -0.05499267578125, -0.036224365234375, 0.01531982421875, 0.0030155181884765625, 0.0100250244140625, 0.01531219482421875, 0.01119232177734375, -0.0151519775390625, -0.006633758544921875, -0.018218994140625, -0.041656494140625, 0.07305908203125, -0.01371002197265625, -0.0452880859375, -0.01018524169921875, 0.020660400390625, -0.0203399658203125, -0.06268310546875, -0.035491943359375, 0.034027099609375, 0.0041351318359375, -0.0062408447265625, -0.015167236328125, -0.0217742919921875, -0.016693115234375, -0.05230712890625, 0.002750396728515625, 0.0184173583984375, 0.0175933837890625, -0.0031719207763671875, 0.0120391845703125, -0.01541900634765625, 0.03350830078125, 0.0220489501953125, 0.01145172119140625, 0.01554107666015625, 0.03363037109375, -0.0203399658203125, 0.054534912109375, 0.00531768798828125, -0.04486083984375, 0.040679931640625, -0.0204620361328125, -0.07281494140625, 0.125, 0.0009832382202148438, 0.08905029296875, -0.0218353271484375, -0.027587890625, 0.0662841796875, 0.061981201171875, 0.019561767578125, -0.040924072265625, -0.01104736328125, -0.037567138671875, 0.05303955078125, 0.004184722900390625, 0.001434326171875, 0.017669677734375, -0.02947998046875, -0.0208892822265625, 0.035400390625, 0.03643798828125, 0.03521728515625, 0.02294921875, -0.01149749755859375, 0.025177001953125, 0.018798828125, 0.00823974609375, 0.01348114013671875, 0.044158935546875, -0.0313720703125, -0.05279541015625, -0.04376220703125, 0.04437255859375, 0.028778076171875, 0.032745361328125, 0.00687408447265625, 0.01062774658203125, 0.039459228515625, -0.0255279541015625, 0.01218414306640625, 0.011810302734375, 0.04449462890625, 0.01058197021484375, -0.043609619140625, -0.0228424072265625, -0.014739990234375, -0.0035037994384765625, -0.08203125, 0.0865478515625, -0.003143310546875, 0.00141143798828125, -0.03887939453125, -0.01163482666015625, -0.0202789306640625, -0.041015625, 0.01041412353515625, 0.058685302734375, 0.017303466796875, 0.027496337890625, -0.0155029296875, 0.0205535888671875, -0.0182647705078125, -0.0183258056640625, 0.0245208740234375, 0.00026106834411621094, -0.005916595458984375, 0.034149169921875, -0.0142364501953125, -0.003143310546875, 0.018096923828125, -0.03057861328125, -0.0025386810302734375, 0.00830841064453125, -0.0288848876953125, -0.006328582763671875, -0.016510009765625, -0.0114288330078125, 0.0103912353515625, -0.00510406494140625, -0.00659942626953125, -0.018341064453125, 0.0035190582275390625, 0.0031223297119140625, -0.01947021484375, -0.0142822265625, -0.0294189453125, 0.025482177734375, 0.035186767578125, -0.037933349609375, -0.02337646484375, 0.0019626617431640625, 0.07391357421875, -0.04864501953125, -0.043731689453125, 0.0146636962890625, 0.010711669921875, -0.01351165771484375, -0.0401611328125, -0.0169525146484375, -0.01267242431640625, -0.0036373138427734375, -0.0019893646240234375, -0.058380126953125, 0.025543212890625, -0.009490966796875, 0.05670166015625, 0.02923583984375, 0.0406494140625, -0.0010967254638671875, 0.0276641845703125, -0.0177459716796875, 0.042755126953125, -0.041351318359375, 0.0950927734375, -0.0022449493408203125, 0.00860595703125, 0.003482818603515625, 0.048797607421875, 0.039215087890625, -0.00511932373046875, -0.021484375, 0.0009751319885253906, -0.022491455078125, -0.010009765625, 0.0101470947265625, -0.01551055908203125, -0.051605224609375, -0.020660400390625, -0.00795745849609375, 0.04150390625, 0.021453857421875, 0.054443359375, 0.004009246826171875, 0.0229034423828125, 0.05145263671875, -0.00576019287109375, -0.042510986328125, 0.0201568603515625, -0.02935791015625, -0.00006401538848876953, 0.0171966552734375, -0.0173797607421875, -0.025421142578125, 0.0413818359375, 0.0019683837890625, -0.01532745361328125, -0.007904052734375, -0.045562744140625, -0.06494140625, -0.068603515625, -0.03643798828125, 0.00008541345596313477, 0.01500701904296875, 0.0127716064453125, 0.0218048095703125, 0.01995849609375, 0.00933837890625, 0.05889892578125, 0.00551605224609375, -0.007110595703125, 0.0108642578125, -0.02642822265625, -0.038330078125, 0.007114410400390625, -0.0179595947265625, 0.038909912109375, 0.00670623779296875, 0.0012836456298828125, 0.00469207763671875, 0.00586700439453125, 0.0018787384033203125, 0.016082763671875, -0.0306243896484375, -0.008331298828125, 0.02667236328125, 0.00260162353515625, -0.0263824462890625, -0.057342529296875, -0.01136016845703125, -0.05792236328125, -0.05523681640625, 0.055572509765625, 0.0098724365234375, -0.059844970703125, 0.0206146240234375, 0.00649261474609375, -0.006313323974609375, 0.06439208984375, -0.0280914306640625, 0.0236968994140625, -0.02191162109375, -0.0223541259765625, -0.06494140625, 0.044403076171875, -0.007320404052734375, -0.0197296142578125, 0.0211029052734375, 0.00823211669921875, 0.003849029541015625, -0.0205841064453125, -0.0297088623046875, -0.04754638671875, 0.0228729248046875, -0.0909423828125, 0.02056884765625, -0.07159423828125, 0.0036716461181640625, -0.043487548828125, 0.0582275390625, -0.03875732421875, -0.00711822509765625, 0.0066680908203125, 0.0099029541015625, -0.0259552001953125, -0.051422119140625, -0.041839599609375, -0.018524169921875, -0.04638671875, -0.0038051605224609375, -0.0248260498046875, -0.00977325439453125, 0.0070648193359375, -0.050689697265625, -0.0007061958312988281, -0.054901123046875, 0.04925537109375, -0.00484466552734375, 0.02545166015625, 0.031585693359375, 0.009979248046875, 0.0020542144775390625, -0.030059814453125, 0.0208587646484375, -0.068603515625, -0.00922393798828125, 0.004909515380859375, 0.03216552734375, -0.01544952392578125, -0.004108428955078125, -0.0005130767822265625, 0.051910400390625, 0.031097412109375, -0.064697265625, 0.037200927734375, -0.01557159423828125, -0.01227569580078125, 0.035736083984375, -0.006076812744140625, -0.01763916015625, 0.00495147705078125, 0.019866943359375, -0.0064849853515625, 0.042877197265625, -0.0274200439453125, -0.01442718505859375, 0.0204010009765625, -0.03619384765625, -0.037078857421875, -0.0081329345703125, 0.033905029296875, 0.026947021484375, 0.031524658203125, -0.03594970703125, -0.02325439453125, -0.0172271728515625, 0.0026416778564453125, -0.01349639892578125, -0.0179290771484375, 0.01690673828125, 0.042388916015625, 0.0151214599609375, -0.002498626708984375, 0.0013399124145507812, 0.06329345703125, 0.035125732421875, 0.030853271484375, 0.00899505615234375, -0.00482940673828125, -0.005550384521484375, -0.008056640625, -0.00530242919921875, -0.018218994140625, -0.0004360675811767578, 0.00839996337890625, -0.0186767578125, -0.0341796875, 0.021728515625, -0.058074951171875, 0.049346923828125, 0.025421142578125, -0.0159149169921875, -0.038055419921875, -0.04107666015625, 0.057769775390625, -0.0225982666015625, 0.04022216796875, -0.0411376953125, 0.03448486328125, -0.014739990234375, 0.0254974365234375, 0.0316162109375, 0.032806396484375, -0.006561279296875, -0.01666259765625, 0.0085906982421875, 0.0015020370483398438, 0.041595458984375, 0.025390625, 0.01184844970703125, 0.02459716796875, 0.03717041015625, 0.00579071044921875, -0.0111541748046875, 0.00014281272888183594, 0.06158447265625, 0.01739501953125, -0.024658203125, -0.00959014892578125, -0.034637451171875, -0.0024318695068359375, -0.018218994140625, 0.02142333984375, -0.00608062744140625, 0.004344940185546875, 0.0185394287109375, 0.029449462890625, 0.033294677734375, 0.000774383544921875, 0.0018472671508789062, -0.0117340087890625, 0.0134429931640625, -0.031036376953125, -0.0028629302978515625, 0.0499267578125, -0.0081787109375, 0.028839111328125, -0.007282257080078125, 0.0135040283203125, 0.039276123046875, 0.00832366943359375, -0.0004131793975830078, 0.050140380859375, -0.0166015625, 0.0035495758056640625, 0.005153656005859375, -0.0086822509765625, -0.0186004638671875, 0.01242828369140625, 0.0374755859375, -0.04010009765625, -0.0175323486328125, 0.0205230712890625, -0.03204345703125, -0.02581787109375, 0.0018606185913085938, -0.0021514892578125, -0.038970947265625, -0.01378631591796875, -0.0068511962890625, 0.01255035400390625, -0.0005984306335449219, -0.0014781951904296875, 0.0028934478759765625, -0.00652313232421875, -0.008453369140625, 0.0411376953125, -0.029510498046875, -0.0161285400390625, -0.0176849365234375, -0.02069091796875, -0.0246734619140625, 0.015716552734375, -0.01096343994140625, 0.01242828369140625, -0.034332275390625, -0.046173095703125, 0.03338623046875, -0.00966644287109375, 0.035430908203125, -0.01216888427734375, -0.024932861328125, 0.01194000244140625, 0.007686614990234375, 0.02587890625, -0.00614166259765625, -0.00974273681640625, 0.0018167495727539062, -0.051910400390625, -0.005825042724609375, -0.0200958251953125, -0.01335906982421875, -0.00650787353515625, 0.005405426025390625, 0.0199127197265625, 0.0298004150390625, -0.01236724853515625, -0.029510498046875, -0.0390625, 0.0045928955078125, 0.0276947021484375, 0.0338134765625, -0.00832366943359375, 0.05426025390625, -0.02593994140625, 0.037200927734375, -0.00604248046875, 0.01372528076171875, -0.028533935546875, -0.01064300537109375, 0.0198822021484375, -0.05499267578125, -0.04315185546875, -0.02044677734375, -0.0361328125, 0.056488037109375, 0.06402587890625, -0.003955841064453125, 0.0156707763671875, -0.01336669921875, 0.0017023086547851562, -0.032867431640625, -0.0157470703125, -0.045745849609375, 0.032989501953125, -0.049407958984375, 0.00014591217041015625, 0.07586669921875, -0.01381683349609375, 0.01387786865234375, -0.01308441162109375, -0.0333251953125, 0.0120086669921875, 0.0265350341796875, -0.07220458984375, 0.036834716796875, 0.06866455078125, 0.0106658935546875, 0.047393798828125, -0.0032711029052734375, 0.01739501953125, 0.053955078125, -0.0002009868621826172, -0.012542724609375, 0.0308837890625, 0.042388916015625, -0.0030956268310546875, -0.01235198974609375, 0.018707275390625, -0.0109100341796875, 0.0011491775512695312, 0.0736083984375, 0.0310211181640625, -0.095947265625, -0.01248931884765625, -0.018798828125, 0.0003657341003417969, 0.035491943359375, 0.022735595703125, -0.01422882080078125, 0.033905029296875, -0.0357666015625, -0.0096588134765625, -0.0279388427734375, 0.00531005859375, 0.0562744140625, 0.003124237060546875, -0.040374755859375, 0.0231170654296875, -0.014373779296875, 0.008056640625, -0.035552978515625, -0.0085601806640625, -0.0200653076171875, 0.0206451416015625, 0.00884246826171875, -0.01213836669921875, 0.0025386810302734375, -0.00600433349609375, 0.032928466796875, -0.0933837890625, 0.006984710693359375, 0.037841796875, -0.0253143310546875, 0.02996826171875, 0.0406494140625, -0.005596160888671875, 0.003299713134765625, 0.005138397216796875, -0.0147247314453125, 0.038787841796875, -0.04583740234375, -0.04193115234375, -0.0494384765625, 0.0011873245239257812, -0.002925872802734375, -0.0111846923828125, -0.0421142578125, -0.02001953125, -0.031219482421875, 0.06512451171875, -0.013458251953125, -0.03204345703125, -0.0014276504516601562, -0.0203399658203125, 0.00832366943359375, 0.00937652587890625, 0.009185791015625, -0.03216552734375, -0.044769287109375, 0.00018334388732910156, -0.060943603515625, 0.032989501953125, -0.003864288330078125, -0.029693603515625, 0.0419921875, -0.02197265625, 0.0142822265625, 0.028289794921875, 0.0252838134765625, -0.0093841552734375, 0.0180816650390625, -0.0010557174682617188, 0.037628173828125, 0.006198883056640625, 0.0046234130859375, -0.04052734375, -0.017242431640625, -0.006381988525390625, 0.06689453125, 0.038604736328125, 0.02020263671875, -0.051361083984375, -0.0250701904296875, 0.0009851455688476562, 0.0153961181640625, -0.01192474365234375, 0.03778076171875, -0.00447845458984375, -0.0018558502197265625, 0.04425048828125, -0.007633209228515625, 0.0242919921875, -0.003276824951171875, -0.0135650634765625, 0.0144500732421875, -0.0003230571746826172, -0.00997161865234375, -0.0426025390625, 0.002964019775390625, -0.00550079345703125, -0.03558349609375, -0.005748748779296875, -0.00022089481353759766, 0.0232391357421875, -0.01451873779296875, 0.0022144317626953125, -0.025360107421875, -0.00839996337890625, -0.0160369873046875, 0.03009033203125, 0.009246826171875, 0.01032257080078125, 0.0211639404296875, 0.0185089111328125, 0.05242919921875, -0.0130462646484375, 0.004039764404296875, 0.007396697998046875, 0.0007405281066894531, 0.035675048828125, 0.05938720703125, 0.046661376953125, 0.0265655517578125, 0.0158843994140625, 0.0304412841796875, 0.04345703125, -0.033477783203125, -0.0004634857177734375, -0.00959014892578125, -0.025177001953125, 0.00023233890533447266, -0.049102783203125, -0.0012826919555664062, -0.0161895751953125, -0.03729248046875, -0.048492431640625, 0.0231475830078125, 0.0216522216796875, 0.030426025390625, -0.0195159912109375, 0.0028667449951171875, -0.068603515625, 0.0230712890625, -0.0103302001953125, -0.023193359375, -0.000438690185546875, 0.04400634765625, 0.028076171875, 0.038909912109375, -0.022369384765625, -0.0224761962890625, -0.01117706298828125, 0.0035305023193359375, -0.0038299560546875, 0.015167236328125, -0.04638671875, -0.03582763671875, 0.03192138671875, 0.042083740234375, 0.024505615234375, 0.022247314453125, 0.045654296875, 0.035980224609375, -0.0048370361328125, 0.00011473894119262695, 0.0823974609375, -0.01151275634765625, 0.04156494140625, -0.044891357421875, 0.00006401538848876953, -0.0321044921875, -0.0207672119140625, -0.041015625, -0.020477294921875, 0.004772186279296875, 0.004497528076171875, 0.001922607421875, 0.01025390625, -0.03851318359375, 0.0477294921875, 0.00531005859375, 0.06280517578125, 0.037261962890625, -0.016754150390625, -0.007045745849609375, 0.007694244384765625, -0.08111572265625, 0.02191162109375, 0.04962158203125, 0.0078887939453125, -0.017822265625, -0.01555633544921875, 0.00931549072265625, 0.0179901123046875, -0.00791168212890625, -0.0198974609375, 0.021728515625, 0.03643798828125, 0.0012159347534179688, -0.0229644775390625, 0.0006976127624511719, 0.0121612548828125, 0.0022068023681640625, 0.00696563720703125, 0.08428955078125, -0.0213775634765625, 0.00013637542724609375, -0.00417327880859375, 0.0238494873046875, 0.00390625, -0.013763427734375, 0.044342041015625, 0.0157012939453125, 0.0030307769775390625, -0.0198516845703125, 0.0173797607421875, 0.002986907958984375, 0.0109710693359375, -0.06915283203125, -0.0021648406982421875, -0.024139404296875, 0.005802154541015625, -0.039642333984375, 0.039337158203125, -0.03265380859375, -0.07305908203125, -0.050445556640625, 0.017974853515625, -0.0010251998901367188, 0.013275146484375, -0.0330810546875, 0.06097412109375, 0.0435791015625, 0.00229644775390625, 0.03729248046875, -0.06207275390625, 0.07635498046875, 0.0287933349609375, -0.0089569091796875, -0.01050567626953125, 0.0175018310546875, -0.01294708251953125, 0.0002655982971191406, 0.0173492431640625, -0.0097503662109375, 0.019744873046875, 0.0039043426513671875, -0.03961181640625, -0.006191253662109375, 0.0078887939453125, -0.0010423660278320312, 0.005268096923828125, -0.02056884765625, -0.0106201171875, -0.03570556640625, -0.0213623046875, -0.0175323486328125, -0.024688720703125, -0.00818634033203125, 0.004749298095703125, -0.0063934326171875, -0.03271484375, -0.0174407958984375, 0.016693115234375, 0.0279388427734375, -0.017852783203125, -0.07501220703125, 0.031219482421875, -0.046234130859375, 0.11090087890625, -0.052032470703125, -0.01654052734375, 0.02593994140625, 0.05084228515625, -0.0572509765625, 0.0156402587890625, -0.01203155517578125, -0.038482666015625, -0.04010009765625, -0.017669677734375, 0.043487548828125, 0.00264739990234375, -0.01317596435546875, -0.0482177734375, -0.022064208984375, 0.0081024169921875, -0.0928955078125, -0.02020263671875, 0.0296783447265625, -0.0150299072265625, -0.02581787109375, -0.019439697265625, 0.003559112548828125, -0.0216217041015625, -0.023651123046875, 0.01509857177734375, -0.0287017822265625, -0.01094818115234375, -0.0246734619140625, -0.0303955078125, 0.040924072265625, 0.02886962890625, -0.01983642578125, -0.0484619140625, -0.0305328369140625, 0.001922607421875, 0.027313232421875, -0.01053619384765625, -0.022613525390625, -0.0672607421875, 0.0278778076171875, 0.00042319297790527344, 0.052825927734375, -0.00955963134765625, 0.03521728515625, 0.0166015625, 0.0313720703125, 0.017578125, -0.0207366943359375, 0.003787994384765625, -0.019683837890625, 0.055999755859375, 0.04296875, -0.00101470947265625, 0.030364990234375, 0.030731201171875, -0.031890869140625, -0.0277252197265625, -0.07098388671875, -0.0295257568359375, -0.052337646484375, 0.10955810546875, 0.018280029296875, 0.015655517578125, -0.01526641845703125, -0.0117340087890625, -0.05767822265625, -0.00344085693359375, 0.0140380859375, 0.0012178421020507812, -0.00565338134765625, 0.02569580078125, -0.0078887939453125, 0.0025234222412109375, -0.0014944076538085938, -0.0014629364013671875, -0.00978851318359375, -0.00496673583984375, 0.0181884765625, -0.0157318115234375, -0.00844573974609375, 0.021209716796875, 0.07281494140625, -0.0439453125, -0.0198822021484375, 0.00130462646484375, 0.0164794921875, 0.0253753662109375, -0.03912353515625, 0.0211334228515625, 0.037811279296875, -0.0288848876953125, 0.01446533203125, 0.01447296142578125, 0.0006628036499023438, -0.0396728515625, -0.01413726806640625, -0.0238494873046875, 0.0193023681640625, 0.00881195068359375, 0.0273284912109375, -0.0049896240234375, 0.04669189453125, 0.0276031494140625, 0.0218658447265625, 0.011993408203125, -0.0063629150390625, -0.014617919921875, 0.0234375, -0.01544189453125, -0.0150146484375, 0.006748199462890625, -0.0222930908203125, -0.030609130859375, -0.0026988983154296875, -0.06829833984375, -0.07415771484375, 0.0149993896484375, -0.05743408203125, -0.010101318359375, 0.017578125 ]
f8face43e968ac8c9cc86d9de4016a60933204b7
Wordpress Stackexchange Q: Only show content before more tag I am using the Siren Template. In homepage.php this code is used to display the portfolio content print_excerpt(200); But I to need show the content only before <!--more--> I have used this: the_content( $more_link_text, FALSE); but it is not working. It shows all the content A: You can use the WordPress function get_extended to fetch the different parts of a string (the part before and the part after the <!--more--> tag). get_extended returns an array with three keys, of which the keys main and extended are important: $arr['main'] contains the part before the more tag, and $arr['extended'] the part after the more tag. This would yield something like: // Fetch post content $content = get_post_field( 'post_content', get_the_ID() ); // Get content parts $content_parts = get_extended( $content ); // Output part before <!--more--> tag echo $content_parts['main'];
Q: Only show content before more tag I am using the Siren Template. In homepage.php this code is used to display the portfolio content print_excerpt(200); But I to need show the content only before <!--more--> I have used this: the_content( $more_link_text, FALSE); but it is not working. It shows all the content A: You can use the WordPress function get_extended to fetch the different parts of a string (the part before and the part after the <!--more--> tag). get_extended returns an array with three keys, of which the keys main and extended are important: $arr['main'] contains the part before the more tag, and $arr['extended'] the part after the more tag. This would yield something like: // Fetch post content $content = get_post_field( 'post_content', get_the_ID() ); // Get content parts $content_parts = get_extended( $content ); // Output part before <!--more--> tag echo $content_parts['main']; A: Unfortunally it seems like all functions in WordPress that are supposed to render the excerpt (get_extended, get_extended) don't apply HTML tags nor convert carriage returns in paragraphs as aspected. If you need to render the excerpt with formatting, I suggest that you use this code: global $more; $more_backup = $more; $more = 0; the_content(''); $more = $more_backup; With this work-around you are telling to the_content() function that it is inside a loop, getting the content before the more tag.
wordpress
{ "language": "en", "length": 222, "provenance": "stackexchange_00019.jsonl.gz:445980", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149099" }
[ 0.031524658203125, -0.0031108856201171875, 0.0234222412109375, -0.0028839111328125, 0.01922607421875, -0.029449462890625, 0.046630859375, -0.05938720703125, 0.00514984130859375, 0.04150390625, -0.055145263671875, -0.006656646728515625, -0.0025386810302734375, 0.0032558441162109375, -0.0111083984375, -0.052764892578125, 0.016510009765625, -0.016510009765625, 0.0300445556640625, -0.0030517578125, 0.01151275634765625, -0.004314422607421875, 0.024200439453125, -0.005931854248046875, 0.0055999755859375, -0.046875, 0.08782958984375, -0.0283203125, 0.0059356689453125, -0.043548583984375, 0.0265655517578125, 0.0258026123046875, 0.0125274658203125, 0.0523681640625, -0.06268310546875, 0.0096588134765625, 0.0008254051208496094, 0.020355224609375, -0.0079345703125, 0.0167083740234375, -0.003536224365234375, 0.0155029296875, -0.023040771484375, 0.036956787109375, -0.03497314453125, -0.026214599609375, -0.01012420654296875, -0.039093017578125, 0.007663726806640625, 0.021759033203125, 0.017181396484375, 0.018218994140625, 0.006710052490234375, 0.0296173095703125, 0.0002551078796386719, 0.016937255859375, -0.033843994140625, -0.0150146484375, 0.0302734375, 0.0122833251953125, 0.0123748779296875, -0.008056640625, -0.0003452301025390625, -0.0256805419921875, -0.01036834716796875, 0.00817108154296875, 0.0384521484375, 0.0011167526245117188, -0.06658935546875, -0.007663726806640625, 0.040740966796875, -0.040557861328125, 0.0164642333984375, -0.0289459228515625, -0.035308837890625, 0.0283355712890625, -0.0250396728515625, -0.0013513565063476562, 0.0273590087890625, -0.034942626953125, -0.01678466796875, 0.03668212890625, -0.01074981689453125, -0.042724609375, 0.00995635986328125, -0.0204620361328125, -0.027587890625, -0.0024776458740234375, -0.017547607421875, 0.007457733154296875, -0.034088134765625, 0.0196685791015625, 0.051361083984375, -0.0299530029296875, -0.0372314453125, -0.0224761962890625, 0.0035343170166015625, 0.0094146728515625, -0.006130218505859375, -0.0012998580932617188, 0.005725860595703125, -0.02435302734375, 0.01258087158203125, -0.0300445556640625, 0.0016965866088867188, -0.001544952392578125, 0.004985809326171875, -0.00041866302490234375, 0.050506591796875, 0.0321044921875, -0.01055145263671875, 0.050018310546875, -0.04278564453125, -0.03369140625, -0.0007719993591308594, 0.07037353515625, -0.0335693359375, -0.00679779052734375, 0.00815582275390625, 0.0240631103515625, 0.010528564453125, 0.03314208984375, -0.0258941650390625, -0.039337158203125, 0.033721923828125, 0.002635955810546875, -0.0190582275390625, 0.002429962158203125, 0.002353668212890625, 0.034759521484375, -0.0118560791015625, -0.005168914794921875, 0.002178192138671875, 0.023590087890625, -0.00550079345703125, -0.0174102783203125, 0.00504302978515625, -0.0304718017578125, -0.0224761962890625, 0.031005859375, -0.049713134765625, -0.043731689453125, 0.029937744140625, -0.045379638671875, 0.00445556640625, 0.025970458984375, 0.0316162109375, 0.01500701904296875, -0.0360107421875, -0.07855224609375, 0.049468994140625, -0.01983642578125, 0.06793212890625, -0.00946044921875, -0.08636474609375, -0.04644775390625, -0.0174102783203125, -0.022796630859375, -0.022613525390625, -0.05206298828125, 0.001491546630859375, -0.007534027099609375, 0.01558685302734375, -0.057830810546875, -0.06365966796875, -0.01201629638671875, -0.045501708984375, -0.00881195068359375, 0.036407470703125, 0.033355712890625, 0.04449462890625, -0.0090789794921875, 0.0264739990234375, -0.0006036758422851562, -0.0191650390625, 0.00748443603515625, 0.039031982421875, 0.01531982421875, 0.004726409912109375, 0.044830322265625, -0.01551055908203125, -0.03411865234375, 0.08807373046875, -0.05352783203125, -0.09613037109375, 0.024658203125, 0.024200439453125, 0.050811767578125, 0.04022216796875, 0.0043182373046875, 0.07952880859375, -0.00555419921875, -0.033843994140625, 0.0193939208984375, -0.03631591796875, -0.030792236328125, -0.004215240478515625, 0.01111602783203125, -0.01540374755859375, 0.0166168212890625, 0.00811767578125, 0.0113983154296875, -0.00848388671875, 0.0052642822265625, -0.027191162109375, -0.007778167724609375, -0.01458740234375, 0.02630615234375, -0.02642822265625, 0.02630615234375, 0.035064697265625, 0.0265655517578125, -0.035003662109375, -0.053375244140625, -0.035400390625, -0.01412200927734375, -0.0232696533203125, 0.0270843505859375, -0.00028014183044433594, 0.0428466796875, 0.0372314453125, -0.0016126632690429688, 0.0237884521484375, 0.002773284912109375, 0.08563232421875, -0.0263214111328125, 0.00797271728515625, -0.03271484375, 0.05078125, 0.035125732421875, -0.11053466796875, -0.01165771484375, 0.0277557373046875, -0.00957489013671875, -0.062286376953125, 0.02435302734375, 0.01508331298828125, -0.014495849609375, -0.020904541015625, 0.039794921875, 0.026947021484375, 0.06103515625, -0.0295257568359375, -0.014312744140625, 0.0679931640625, -0.03289794921875, -0.002338409423828125, -0.00823974609375, -0.0049896240234375, 0.018585205078125, -0.035400390625, 0.016937255859375, 0.038299560546875, 0.0194549560546875, 0.0231170654296875, 0.04693603515625, -0.002605438232421875, 0.007404327392578125, -0.0675048828125, 0.019256591796875, 0.01190185546875, -0.0323486328125, -0.039947509765625, -0.0280303955078125, 0.007633209228515625, 0.02081298828125, 0.03985595703125, 0.04345703125, -0.01366424560546875, -0.042938232421875, 0.01068878173828125, 0.08734130859375, -0.00897979736328125, 0.037628173828125, -0.030364990234375, -0.0178680419921875, -0.0171051025390625, 0.009735107421875, -0.039794921875, 0.0007691383361816406, -0.01861572265625, -0.0095367431640625, -0.005092620849609375, -0.0012273788452148438, 0.00927734375, -0.038421630859375, 0.0162506103515625, 0.02325439453125, -0.00994110107421875, -0.007404327392578125, -0.00283050537109375, 0.05322265625, -0.00982666015625, 0.041595458984375, -0.039459228515625, 0.013916015625, -0.01522064208984375, -0.033782958984375, 0.045928955078125, -0.039703369140625, 0.04827880859375, 0.054779052734375, -0.0265960693359375, 0.01143646240234375, 0.0010776519775390625, -0.0095367431640625, -0.0058135986328125, -0.0109710693359375, -0.025482177734375, -0.0009832382202148438, -0.0740966796875, 0.01038360595703125, 0.031890869140625, 0.046722412109375, 0.0036067962646484375, -0.02630615234375, -0.0116119384765625, 0.0482177734375, -0.045501708984375, -0.0312347412109375, 0.026275634765625, -0.05853271484375, -0.053802490234375, 0.01708984375, -0.04034423828125, -0.0085906982421875, 0.037750244140625, -0.0022296905517578125, -0.054962158203125, -0.0204925537109375, -0.04925537109375, -0.046661376953125, -0.047027587890625, 0.07208251953125, -0.0091705322265625, 0.0277099609375, 0.00811004638671875, 0.0528564453125, 0.01406097412109375, -0.039764404296875, 0.0163421630859375, -0.005237579345703125, -0.04827880859375, 0.00539398193359375, -0.0255584716796875, -0.00864410400390625, -0.0128631591796875, 0.003978729248046875, 0.03082275390625, 0.005039215087890625, 0.004131317138671875, -0.00695037841796875, -0.0298614501953125, -0.00220489501953125, 0.0170440673828125, 0.02191162109375, 0.012451171875, 0.0241546630859375, 0.043304443359375, -0.0250244140625, -0.050689697265625, -0.00861358642578125, -0.08306884765625, 0.01605224609375, 0.052215576171875, 0.007404327392578125, 0.0010652542114257812, -0.00905609130859375, -0.0216522216796875, -0.0088958740234375, 0.005733489990234375, -0.0193328857421875, 0.05267333984375, -0.0173797607421875, -0.01332855224609375, -0.00589752197265625, 0.028106689453125, 0.00269317626953125, -0.01029205322265625, 0.000370025634765625, 0.01378631591796875, -0.0189056396484375, -0.00301361083984375, -0.0458984375, -0.0028171539306640625, 0.0228118896484375, -0.004802703857421875, 0.039886474609375, -0.032806396484375, -0.02581787109375, -0.040252685546875, 0.050750732421875, -0.05999755859375, -0.0199737548828125, 0.00992584228515625, 0.006786346435546875, -0.007110595703125, -0.01531219482421875, -0.055023193359375, -0.0162506103515625, -0.07391357421875, 0.019073486328125, -0.022064208984375, 0.00647735595703125, -0.01605224609375, 0.0161895751953125, -0.023223876953125, -0.03326416015625, 0.038482666015625, -0.038116455078125, -0.0143585205078125, 0.0117034912109375, -0.018768310546875, -0.01837158203125, -0.0325927734375, -0.01372528076171875, -0.055572509765625, -0.016143798828125, 0.0246124267578125, 0.0416259765625, -0.01158905029296875, -0.00836181640625, -0.0272979736328125, 0.053558349609375, 0.049468994140625, -0.01421356201171875, 0.0268096923828125, -0.033935546875, 0.0270538330078125, 0.0288238525390625, 0.0220794677734375, -0.0162353515625, -0.0216827392578125, -0.0289306640625, 0.0227203369140625, 0.03924560546875, -0.056884765625, -0.0173492431640625, -0.04400634765625, 0.0167694091796875, -0.01313018798828125, -0.0169830322265625, -0.040985107421875, 0.01727294921875, -0.017242431640625, -0.01148223876953125, -0.01064300537109375, -0.0233917236328125, 0.037811279296875, 0.00664520263671875, -0.03436279296875, 0.00371551513671875, 0.061279296875, 0.021270751953125, -0.01934814453125, -0.040374755859375, -0.01111602783203125, 0.049041748046875, -0.00026869773864746094, 0.035186767578125, 0.0243988037109375, -0.057159423828125, 0.10162353515625, 0.006374359130859375, 0.0005450248718261719, 0.041717529296875, 0.03045654296875, -0.007144927978515625, -0.05047607421875, 0.03778076171875, -0.01332855224609375, -0.0268096923828125, -0.001995086669921875, -0.01180267333984375, 0.0110931396484375, 0.04248046875, 0.0022640228271484375, -0.01352691650390625, 0.00951385498046875, 0.00017881393432617188, 0.01334381103515625, -0.0230560302734375, 0.10919189453125, 0.0223236083984375, 0.022064208984375, 0.0164642333984375, -0.02197265625, 0.03594970703125, -0.0010709762573242188, 0.0026721954345703125, -0.043975830078125, 0.00655364990234375, 0.0309600830078125, -0.00655364990234375, -0.0105743408203125, 0.025665283203125, 0.01055145263671875, 0.0309906005859375, -0.0105743408203125, -0.02679443359375, -0.05609130859375, -0.00424957275390625, 0.04998779296875, 0.01282501220703125, 0.0242919921875, -0.0009570121765136719, -0.0030975341796875, 0.0179595947265625, 0.005985260009765625, 0.0041656494140625, 0.021697998046875, -0.015899658203125, 0.035736083984375, -0.0029125213623046875, -0.0024852752685546875, -0.01171112060546875, 0.05767822265625, -0.0296630859375, 0.028778076171875, -0.01152801513671875, 0.02178955078125, -0.0250396728515625, 0.0252838134765625, -0.0029754638671875, 0.01446533203125, 0.0284881591796875, -0.005046844482421875, 0.033172607421875, -0.0251617431640625, -0.00258636474609375, 0.02215576171875, 0.030242919921875, -0.0200042724609375, -0.0234222412109375, 0.0244903564453125, -0.02685546875, -0.01458740234375, 0.0287017822265625, 0.006023406982421875, -0.0271759033203125, -0.0193939208984375, 0.0181732177734375, 0.027069091796875, 0.0255889892578125, -0.024810791015625, 0.0765380859375, -0.005023956298828125, 0.061676025390625, 0.041259765625, -0.0283203125, 0.00921630859375, 0.0059051513671875, 0.0038623809814453125, -0.003658294677734375, 0.0032062530517578125, 0.0003829002380371094, -0.0201263427734375, -0.0045013427734375, 0.00119781494140625, 0.05474853515625, -0.0330810546875, 0.039642333984375, -0.01910400390625, -0.0030117034912109375, -0.0843505859375, 0.0330810546875, 0.01126861572265625, 0.0276336669921875, -0.0160980224609375, 0.0185089111328125, -0.059234619140625, -0.009521484375, 0.0033702850341796875, -0.04638671875, -0.038055419921875, -0.032318115234375, 0.0213470458984375, 0.01303863525390625, 0.00494384765625, -0.04522705078125, -0.022552490234375, 0.018829345703125, 0.03875732421875, 0.0523681640625, -0.003322601318359375, 0.04833984375, -0.0011234283447265625, 0.03436279296875, 0.0259246826171875, 0.025421142578125, -0.01259613037109375, -0.025787353515625, 0.018829345703125, -0.03631591796875, -0.031646728515625, 0.00830841064453125, -0.014617919921875, -0.0205841064453125, -0.0185699462890625, -0.005756378173828125, 0.0181884765625, 0.0023899078369140625, 0.0115509033203125, -0.01383209228515625, 0.018157958984375, -0.004337310791015625, -0.00421142578125, 0.04266357421875, 0.01071929931640625, 0.024078369140625, 0.0158233642578125, -0.03125, 0.00203704833984375, 0.0289306640625, 0.0034084320068359375, 0.00408172607421875, 0.03021240234375, -0.0035610198974609375, 0.0115814208984375, -0.033203125, 0.027801513671875, 0.00940704345703125, 0.00995635986328125, 0.02996826171875, -0.001438140869140625, -0.0111846923828125, 0.01338958740234375, 0.0555419921875, -0.00203704833984375, 0.0025005340576171875, 0.06024169921875, -0.011077880859375, -0.01136016845703125, 0.031280517578125, 0.005451202392578125, -0.03289794921875, -0.031585693359375, -0.040008544921875, -0.025909423828125, 0.01708984375, -0.0122222900390625, -0.0009098052978515625, -0.025604248046875, 0.088134765625, -0.011199951171875, 0.01446533203125, 0.0439453125, -0.0203094482421875, -0.01425933837890625, -0.00428009033203125, 0.059600830078125, 0.02618408203125, -0.04522705078125, 0.0120697021484375, 0.017974853515625, 0.0034999847412109375, -0.020904541015625, 0.011871337890625, -0.031829833984375, -0.006195068359375, -0.0185394287109375, -0.00951385498046875, 0.001407623291015625, 0.01021575927734375, 0.03515625, -0.01120758056640625, -0.0029850006103515625, -0.0015039443969726562, -0.01189422607421875, -0.00014865398406982422, -0.0244293212890625, -0.07373046875, -0.017120361328125, -0.0325927734375, -0.006755828857421875, 0.032501220703125, -0.002094268798828125, 0.0267486572265625, 0.01555633544921875, -0.037506103515625, -0.0259857177734375, -0.00807952880859375, 0.0782470703125, -0.0200653076171875, -0.0204010009765625, 0.031280517578125, 0.049713134765625, -0.02801513671875, 0.00428009033203125, 0.041595458984375, -0.05340576171875, 0.00591278076171875, 0.017730712890625, 0.004238128662109375, -0.018707275390625, 0.0008854866027832031, -0.06610107421875, 0.125732421875, -0.007114410400390625, 0.0261383056640625, 0.0184173583984375, 0.046905517578125, -0.054412841796875, 0.01094818115234375, -0.048614501953125, 0.045257568359375, -0.007129669189453125, 0.04608154296875, -0.09033203125, -0.024139404296875, -0.0104522705078125, 0.06103515625, 0.039459228515625, -0.0092315673828125, -0.004253387451171875, -0.03326416015625, 0.033660888671875, 0.041748046875, -0.0058441162109375, 0.01666259765625, 0.0006837844848632812, 0.00905609130859375, 0.0130767822265625, -0.06317138671875, 0.0171966552734375, -0.05523681640625, 0.01181793212890625, 0.0269927978515625, 0.0302276611328125, 0.0283355712890625, 0.0304412841796875, -0.0105743408203125, -0.0257415771484375, 0.01366424560546875, 0.034210205078125, -0.04449462890625, 0.03369140625, 0.046173095703125, 0.041839599609375, -0.0169830322265625, -0.058837890625, -0.01471710205078125, 0.0277557373046875, -0.01329803466796875, 0.05853271484375, 0.0447998046875, 0.0162506103515625, 0.046905517578125, 0.037506103515625, 0.042022705078125, 0.023468017578125, -0.01161956787109375, -0.0176544189453125, 0.035186767578125, 0.00919342041015625, -0.0191650390625, -0.016265869140625, 0.055023193359375, 0.017974853515625, -0.0065155029296875, 0.0212249755859375, 0.0222015380859375, 0.01503753662109375, -0.042816162109375, -0.01251983642578125, -0.0165863037109375, 0.057525634765625, 0.0443115234375, -0.03436279296875, -0.031158447265625, 0.0258941650390625, 0.06683349609375, -0.00737762451171875, -0.034576416015625, -0.0205078125, -0.0565185546875, -0.043731689453125, 0.017913818359375, 0.0258026123046875, 0.040313720703125, 0.01056671142578125, 0.0264434814453125, 0.007511138916015625, -0.0111083984375, -0.00275421142578125, 0.026611328125, -0.03619384765625, 0.0123443603515625, -0.032470703125, -0.01251983642578125, -0.057403564453125, 0.03131103515625, 0.0005288124084472656, -0.057403564453125, -0.01139068603515625, 0.041839599609375, 0.0093994140625, -0.0224151611328125, 0.0186309814453125, 0.01187896728515625, 0.0213470458984375, -0.061248779296875, 0.019561767578125, 0.0112152099609375, -0.01129150390625, 0.029052734375, -0.035369873046875, 0.053924560546875, -0.00870513916015625, 0.040771484375, -0.0018062591552734375, -0.0097198486328125, 0.0123291015625, -0.01556396484375, 0.033599853515625, 0.01024627685546875, -0.031494140625, 0.03216552734375, -0.07720947265625, -0.06640625, 0.029296875, 0.04241943359375, -0.0226287841796875, 0.032196044921875, -0.002056121826171875, -0.0033931732177734375, -0.01141357421875, -0.036529541015625, 0.039520263671875, 0.047088623046875, -0.00020444393157958984, 0.03546142578125, -0.0175323486328125, -0.005886077880859375, 0.0144195556640625, 0.023651123046875, 0.00621795654296875, 0.004619598388671875, 0.0247802734375, 0.0190582275390625, -0.003246307373046875, 0.034881591796875, -0.024810791015625, -0.0287322998046875, 0.031280517578125, 0.028411865234375, 0.038818359375, -0.022369384765625, -0.05078125, -0.01216888427734375, 0.049346923828125, -0.0190582275390625, 0.06597900390625, -0.059326171875, 0.002346038818359375, -0.0843505859375, 0.00171661376953125, -0.024383544921875, -0.01415252685546875, -0.053680419921875, -0.020538330078125, 0.03863525390625, 0.0265655517578125, -0.00910186767578125, 0.01137542724609375, 0.041229248046875, -0.011474609375, 0.002391815185546875, 0.0292205810546875, 0.019744873046875, 0.04107666015625, -0.004352569580078125, -0.0184478759765625, 0.004016876220703125, -0.02117919921875, 0.034576416015625, -0.00001329183578491211, 0.0367431640625, 0.00820159912109375, -0.01186370849609375, 0.0081787109375, 0.013916015625, 0.033721923828125, -0.0157012939453125, 0.0236053466796875, 0.01334381103515625, -0.0009140968322753906, 0.029449462890625, -0.01557159423828125, -0.0251922607421875, -0.041259765625, -0.01242828369140625, 0.005596160888671875, -0.034423828125, -0.05194091796875, -0.0594482421875, -0.0200347900390625, 0.0037059783935546875, 0.0033054351806640625, -0.03533935546875, 0.00942230224609375, 0.0001023411750793457, 0.033355712890625, -0.0284423828125, 0.01568603515625, -0.01045989990234375, -0.033050537109375, -0.039642333984375, -0.007049560546875, -0.048248291015625, 0.00833892822265625, -0.00893402099609375, -0.00472259521484375, 0.0240325927734375, -0.0069580078125, 0.004253387451171875, -0.044891357421875, -0.0230865478515625, 0.00897979736328125, -0.01320648193359375, 0.0230712890625, 0.00585174560546875, -0.023284912109375, -0.040435791015625, -0.01885986328125, 0.0384521484375, -0.038818359375, -0.0780029296875, 0.01568603515625, -0.0247802734375, -0.01462554931640625, -0.04302978515625, -0.06390380859375, 0.0377197265625, -0.00473785400390625, -0.032562255859375, -0.0033206939697265625, 0.0100860595703125, -0.005645751953125, -0.0022487640380859375, 0.003269195556640625, -0.0158233642578125, -0.0096282958984375, 0.0038299560546875, 0.0018177032470703125, 0.0316162109375, 0.0137176513671875, -0.054412841796875, -0.01204681396484375, 0.01189422607421875, 0.02642822265625, 0.040130615234375, -0.053253173828125, 0.00978851318359375, -0.006206512451171875, -0.00885009765625, -0.0310821533203125, 0.00298309326171875, 0.044219970703125, 0.03607177734375, -0.00998687744140625, 0.022064208984375, -0.0340576171875, -0.0295867919921875, 0.0265045166015625, 0.0625, 0.001186370849609375, -0.009521484375, 0.004955291748046875, 0.0258026123046875, -0.04461669921875, -0.0202178955078125, 0.04132080078125, -0.068359375, -0.033782958984375, -0.027374267578125, -0.0198822021484375, 0.04168701171875, -0.0166168212890625, -0.04193115234375, -0.001972198486328125, -0.0399169921875, 0.0172271728515625, -0.09796142578125, -0.025177001953125, 0.058197021484375, -0.029449462890625, -0.0097503662109375, -0.005962371826171875, 0.0142974853515625, 0.010650634765625, -0.026153564453125, -0.003749847412109375, -0.0189208984375, 0.001468658447265625, 0.0238800048828125, 0.0186920166015625, -0.006465911865234375, -0.01421356201171875, -0.01473236083984375, -0.01461029052734375, 0.003383636474609375, 0.004917144775390625, -0.01465606689453125, -0.01233673095703125, -0.0224456787109375, -0.016143798828125, 0.0399169921875, -0.0194091796875, 0.07037353515625, 0.01201629638671875, -0.0019931793212890625, -0.00811004638671875, -0.0030269622802734375, 0.03973388671875, -0.040924072265625, -0.006237030029296875, -0.006336212158203125, -0.03228759765625, -0.0139923095703125, -0.03155517578125, -0.05645751953125, -0.005802154541015625, -0.01317596435546875 ]
4f9faaeab0b799469f6e45d0b49bb6605d753468
Wordpress Stackexchange Q: Uncaught ReferenceError:switchEditors is not defined Is anyone familiar with this error? It is causing TinyMCE to break in my Wordpress theme. In console it gives me these two errors both seem to originate from wp-admin/post-new.php Uncaught ReferenceError:switchEditors is not defined Uncaught TypeError: undefined is not a function /wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,…editor,quickt&load%5B%5D=ags,wplink,wp-fullscreen,media-upload&ver=3.9.1:2 Both the Visual and Smart tabs break, becoming unclickable, and the TinyMCE toolbar disappears. A: it might me entirely different solution that i am providing but it solved the problem for me. I followed these steps: * *Open the user that is getting error. (Wordpress admin menu > users > your profile) *Changed the setting of "Disable the visual editor when writing" and saved the settings *Again disabled this feature and saved the settings *Boom. my editor is back. Maybe it could solve someone else problem. Regards, Rao
Q: Uncaught ReferenceError:switchEditors is not defined Is anyone familiar with this error? It is causing TinyMCE to break in my Wordpress theme. In console it gives me these two errors both seem to originate from wp-admin/post-new.php Uncaught ReferenceError:switchEditors is not defined Uncaught TypeError: undefined is not a function /wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,…editor,quickt&load%5B%5D=ags,wplink,wp-fullscreen,media-upload&ver=3.9.1:2 Both the Visual and Smart tabs break, becoming unclickable, and the TinyMCE toolbar disappears. A: it might me entirely different solution that i am providing but it solved the problem for me. I followed these steps: * *Open the user that is getting error. (Wordpress admin menu > users > your profile) *Changed the setting of "Disable the visual editor when writing" and saved the settings *Again disabled this feature and saved the settings *Boom. my editor is back. Maybe it could solve someone else problem. Regards, Rao A: You are most probably having a conflict with some plugin or the theme (bad javascript usually). If you got some kind of an adblocker, this might be another reason too, so you'd better check them all and see if it is a browser-sensitive problem. A: You can disable concatenation by defining CONCATENATE_SCRIPTS constant to false. In wp-config.php would be fitting: define('CONCATENATE_SCRIPTS', false); W3TC shouldn't affect anything on admin side. A: This fixed my issue - I added this line to the bottom of wp-config.php and BOOM! define('CONCATENATE_SCRIPTS', false);
wordpress
{ "language": "en", "length": 226, "provenance": "stackexchange_00019.jsonl.gz:445981", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149106" }
[ 0.00701141357421875, 0.00821685791015625, 0.01238250732421875, 0.0280914306640625, -0.001953125, -0.01995849609375, 0.0267181396484375, -0.061981201171875, 0.06378173828125, 0.037384033203125, -0.0259857177734375, -0.0086822509765625, 0.00298309326171875, -0.015472412109375, -0.05340576171875, -0.01189422607421875, 0.024566650390625, -0.0187835693359375, 0.0019083023071289062, -0.004116058349609375, -0.004848480224609375, 0.0266876220703125, -0.0179290771484375, 0.00897216796875, 0.0172882080078125, -0.015869140625, 0.059478759765625, -0.051483154296875, -0.0204925537109375, -0.046539306640625, 0.0022678375244140625, 0.05377197265625, 0.0142822265625, 0.04498291015625, -0.0517578125, 0.039031982421875, 0.01132965087890625, 0.0292510986328125, 0.02642822265625, 0.0037555694580078125, -0.00258636474609375, -0.0021190643310546875, 0.01300048828125, 0.005107879638671875, -0.01934814453125, -0.0181427001953125, -0.00836944580078125, -0.0482177734375, -0.01275634765625, -0.002475738525390625, -0.042327880859375, 0.0283203125, -0.0166168212890625, -0.0121612548828125, 0.020294189453125, 0.00865936279296875, -0.0191650390625, 0.00783538818359375, -0.0012226104736328125, 0.1060791015625, 0.0250396728515625, 0.045562744140625, -0.041259765625, -0.059326171875, -0.0112457275390625, -0.0247802734375, -0.0400390625, 0.00801849365234375, 0.034210205078125, 0.0263824462890625, 0.022857666015625, -0.00951385498046875, 0.0203399658203125, -0.01560211181640625, 0.0145111083984375, -0.0150299072265625, 0.01342010498046875, 0.0119476318359375, 0.00027298927307128906, 0.000033795833587646484, 0.0458984375, 0.0190277099609375, -0.032745361328125, 0.02618408203125, -0.0235137939453125, 0.04486083984375, -0.002437591552734375, -0.029815673828125, -0.05279541015625, 0.0141448974609375, -0.0184173583984375, -0.063720703125, -0.038726806640625, 0.035064697265625, 0.0218048095703125, -0.004337310791015625, 0.029541015625, 0.0296783447265625, 0.0083465576171875, 0.01421356201171875, -0.0149993896484375, -0.036163330078125, 0.03271484375, -0.0265045166015625, 0.00708770751953125, 0.01192474365234375, -0.029754638671875, -0.001468658447265625, 0.04791259765625, 0.0360107421875, 0.0107269287109375, -0.0189971923828125, 0.01558685302734375, -0.05389404296875, 0.03216552734375, 0.0172119140625, -0.0082244873046875, 0.040618896484375, 0.0245361328125, 0.0155029296875, -0.005298614501953125, -0.00698089599609375, -0.0474853515625, 0.01495361328125, 0.0024204254150390625, -0.044342041015625, -0.012237548828125, 0.05926513671875, 0.0186309814453125, 0.02178955078125, -0.04864501953125, -0.0193023681640625, 0.06573486328125, 0.05462646484375, 0.0421142578125, -0.0276947021484375, 0.039306640625, 0.042449951171875, -0.00927734375, 0.00978851318359375, 0.0218963623046875, -0.037933349609375, -0.039520263671875, 0.015533447265625, 0.03521728515625, 0.03277587890625, 0.0406494140625, 0.020294189453125, -0.0171356201171875, -0.059234619140625, 0.027984619140625, -0.00238037109375, 0.0521240234375, 0.032928466796875, -0.01605224609375, 0.001262664794921875, 0.08099365234375, -0.054473876953125, -0.048919677734375, -0.06903076171875, 0.026885986328125, 0.02337646484375, 0.02593994140625, -0.0223541259765625, -0.0173187255859375, -0.049652099609375, -0.05322265625, -0.007213592529296875, 0.03948974609375, 0.0215606689453125, 0.016632080078125, -0.0298309326171875, 0.034027099609375, 0.0285491943359375, 0.01436614990234375, 0.034820556640625, -0.03155517578125, 0.029754638671875, 0.034515380859375, -0.019073486328125, -0.01303863525390625, -0.043609619140625, 0.04180908203125, -0.005878448486328125, -0.0292816162109375, 0.03857421875, -0.000030875205993652344, 0.036346435546875, -0.00969696044921875, 0.0233917236328125, -0.0083770751953125, 0.04241943359375, 0.036956787109375, 0.0240936279296875, 0.0229949951171875, -0.055938720703125, -0.0418701171875, -0.025482177734375, -0.01406097412109375, -0.0212249755859375, 0.042755126953125, -0.008575439453125, -0.0384521484375, -0.063232421875, -0.12841796875, -0.039154052734375, -0.01837158203125, 0.03692626953125, 0.03826904296875, 0.011383056640625, -0.007190704345703125, -0.0276641845703125, -0.017547607421875, 0.069091796875, -0.01041412353515625, 0.025421142578125, -0.0140228271484375, 0.06707763671875, 0.044891357421875, 0.04302978515625, 0.06060791015625, -0.0175323486328125, 0.062042236328125, -0.0161895751953125, 0.00690460205078125, -0.007965087890625, -0.01910400390625, -0.006366729736328125, 0.0095977783203125, -0.0160675048828125, 0.036956787109375, 0.04510498046875, -0.00014495849609375, 0.01174163818359375, -0.0302734375, 0.0033321380615234375, -0.01641845703125, -0.01322174072265625, 0.01215362548828125, 0.027374267578125, 0.04644775390625, 0.03192138671875, 0.002994537353515625, 0.0110931396484375, 0.043975830078125, -0.053802490234375, 0.0167388916015625, -0.0208892822265625, 0.003047943115234375, 0.02374267578125, 0.03924560546875, -0.004131317138671875, 0.005767822265625, 0.0552978515625, 0.007396697998046875, 0.01168060302734375, 0.00981903076171875, 0.0284423828125, 0.005458831787109375, -0.014190673828125, -0.006938934326171875, -0.01458740234375, -0.01064300537109375, -0.0107879638671875, 0.0211639404296875, 0.02337646484375, 0.019256591796875, 0.01059722900390625, -0.01419830322265625, 0.025421142578125, -0.0010080337524414062, -0.07159423828125, -0.00029659271240234375, 0.0086669921875, 0.04913330078125, 0.061492919921875, -0.05255126953125, 0.0008072853088378906, 0.0192718505859375, 0.0249786376953125, -0.019317626953125, 0.0210113525390625, -0.01422119140625, -0.0211181640625, 0.01491546630859375, 0.00576019287109375, -0.00968170166015625, -0.032257080078125, 0.02313232421875, -0.003997802734375, 0.01264190673828125, 0.028564453125, -0.043914794921875, 0.053619384765625, -0.038604736328125, -0.0228424072265625, 0.086669921875, 0.0084228515625, 0.00362396240234375, 0.0276641845703125, 0.11474609375, 0.052642822265625, -0.00786590576171875, 0.0103759765625, 0.028289794921875, 0.0082855224609375, 0.038238525390625, 0.0064849853515625, 0.02276611328125, 0.033660888671875, -0.0379638671875, 0.0275726318359375, 0.03668212890625, 0.035491943359375, 0.006011962890625, -0.036590576171875, -0.017822265625, 0.048065185546875, -0.051910400390625, -0.017059326171875, -0.0038394927978515625, -0.060577392578125, 0.005939483642578125, 0.0089874267578125, -0.0251617431640625, -0.0196990966796875, 0.05010986328125, 0.01611328125, -0.0010480880737304688, 0.01023101806640625, -0.03271484375, 0.0075225830078125, -0.056549072265625, 0.0180206298828125, -0.0199127197265625, 0.032806396484375, 0.0250244140625, 0.0176239013671875, 0.010986328125, -0.040191650390625, 0.0198822021484375, -0.0286865234375, -0.0361328125, 0.0250701904296875, 0.0142974853515625, -0.0098419189453125, -0.005771636962890625, 0.02734375, -0.036285400390625, -0.0034313201904296875, -0.00698089599609375, -0.05328369140625, 0.00012302398681640625, 0.009552001953125, 0.033843994140625, -0.002300262451171875, -0.019287109375, 0.001068115234375, 0.0296173095703125, -0.043670654296875, -0.0087432861328125, 0.01319122314453125, -0.01032257080078125, 0.041259765625, -0.0038661956787109375, -0.0292205810546875, -0.00011819601058959961, 0.02801513671875, -0.031707763671875, 0.01319122314453125, 0.000005424022674560547, -0.042083740234375, 0.01174163818359375, -0.00821685791015625, -0.01824951171875, 0.006641387939453125, -0.00997161865234375, -0.0307769775390625, -0.01366424560546875, -0.03594970703125, -0.010498046875, -0.032501220703125, 0.0130767822265625, -0.01611328125, -0.01502227783203125, 0.0130767822265625, -0.025726318359375, -0.002838134765625, -0.005352020263671875, 0.006591796875, 0.0011377334594726562, 0.04388427734375, -0.022125244140625, 0.0007500648498535156, 0.012054443359375, 0.00428009033203125, -0.03369140625, 0.0012416839599609375, -0.06591796875, 0.0028629302978515625, -0.057281494140625, 0.0022144317626953125, -0.01210784912109375, -0.01343536376953125, -0.0307464599609375, 0.044586181640625, -0.0296173095703125, -0.0274658203125, 0.040130615234375, -0.041656494140625, 0.00844573974609375, 0.01209259033203125, -0.0193634033203125, -0.0243988037109375, -0.0307159423828125, -0.026885986328125, -0.086669921875, -0.01265716552734375, -0.05792236328125, 0.07379150390625, 0.020751953125, 0.005580902099609375, -0.043609619140625, 0.034759521484375, -0.010040283203125, -0.022705078125, 0.01114654541015625, 0.0252532958984375, -0.0178985595703125, 0.0017042160034179688, -0.02618408203125, -0.0269775390625, 0.0211181640625, 0.0081634521484375, -0.0550537109375, -0.01221466064453125, -0.037445068359375, -0.0198974609375, 0.03558349609375, -0.054840087890625, -0.03363037109375, -0.051025390625, -0.0196533203125, 0.0455322265625, -0.0136566162109375, 0.00861358642578125, -0.0703125, -0.0239105224609375, 0.0183563232421875, -0.0249176025390625, 0.0183868408203125, 0.01314544677734375, 0.0267181396484375, 0.0148773193359375, -0.0229339599609375, 0.018798828125, -0.0171661376953125, 0.047821044921875, 0.0552978515625, -0.00295257568359375, 0.0021610260009765625, -0.04119873046875, 0.036529541015625, 0.05133056640625, 0.00881195068359375, -0.03887939453125, 0.0297698974609375, 0.00681304931640625, -0.01715087890625, 0.0181732177734375, 0.0021381378173828125, 0.019927978515625, 0.00411224365234375, -0.0197601318359375, 0.042205810546875, -0.00304412841796875, -0.0036487579345703125, -0.025909423828125, 0.0033092498779296875, -0.00969696044921875, 0.0110321044921875, -0.00676727294921875, -0.00275421142578125, 0.07421875, 0.0284423828125, 0.013336181640625, 0.0052490234375, 0.039093017578125, -0.03277587890625, -0.0023784637451171875, 0.01528167724609375, 0.0259246826171875, 0.011627197265625, 0.01418304443359375, -0.005222320556640625, -0.03631591796875, 0.005405426025390625, 0.00782012939453125, 0.016693115234375, -0.03753662109375, -0.031219482421875, 0.01351165771484375, -0.01309967041015625, -0.0291900634765625, 0.0240631103515625, 0.04510498046875, 0.0196075439453125, -0.0273284912109375, -0.005535125732421875, 0.0179901123046875, 0.0115509033203125, -0.046722412109375, -0.0244293212890625, -0.0035686492919921875, -0.024383544921875, -0.01483917236328125, 0.0250396728515625, 0.01153564453125, -0.0171051025390625, -0.014068603515625, -0.026641845703125, -0.0100250244140625, 0.0625, 0.01306915283203125, -0.0166168212890625, -0.0096282958984375, 0.058990478515625, 0.034942626953125, -0.055023193359375, 0.033660888671875, 0.03411865234375, 0.0416259765625, 0.04254150390625, -0.0595703125, 0.0148162841796875, -0.045989990234375, -0.0279693603515625, 0.0136871337890625, -0.03021240234375, -0.05596923828125, -0.01065826416015625, 0.03631591796875, 0.02410888671875, -0.0005016326904296875, -0.0012073516845703125, -0.01995849609375, -0.0205078125, -0.01122283935546875, 0.01494598388671875, -0.04534912109375, 0.006366729736328125, 0.0212554931640625, -0.0238494873046875, -0.0260009765625, 0.0004067420959472656, -0.06646728515625, 0.00688934326171875, -0.0079193115234375, -0.0211944580078125, 0.023193359375, -0.041961669921875, -0.00928497314453125, -0.0243988037109375, 0.03399658203125, -0.050262451171875, 0.01654052734375, 0.025238037109375, 0.0136260986328125, -0.06597900390625, 0.020782470703125, -0.064453125, -0.023681640625, -0.043304443359375, -0.0167083740234375, -0.08001708984375, -0.01137542724609375, 0.00037407875061035156, 0.00373077392578125, -0.0006318092346191406, -0.014190673828125, 0.009124755859375, 0.0333251953125, 0.0022735595703125, 0.0283050537109375, -0.0106353759765625, -0.0115203857421875, 0.006801605224609375, 0.0452880859375, -0.0018758773803710938, -0.0294342041015625, -0.006618499755859375, -0.01898193359375, 0.00710296630859375, -0.0465087890625, -0.012237548828125, -0.005764007568359375, -0.0201568603515625, 0.023193359375, 0.037384033203125, -0.01039886474609375, 0.031494140625, -0.0025119781494140625, 0.00783538818359375, -0.020477294921875, -0.0167999267578125, -0.0034656524658203125, 0.027008056640625, -0.039093017578125, -0.051361083984375, -0.0166168212890625, -0.02508544921875, -0.00524139404296875, 0.040557861328125, -0.041748046875, 0.01348114013671875, 0.0440673828125, -0.031280517578125, 0.0157623291015625, 0.050567626953125, 0.005649566650390625, 0.038055419921875, 0.01363372802734375, 0.005626678466796875, 0.012298583984375, 0.041717529296875, -0.0052490234375, -0.02947998046875, 0.015045166015625, -0.006252288818359375, -0.00666046142578125, -0.00911712646484375, -0.0159149169921875, 0.01158905029296875, 0.019775390625, 0.07635498046875, -0.048004150390625, 0.020416259765625, 0.0633544921875, -0.02716064453125, -0.0372314453125, 0.0099029541015625, -0.0208892822265625, -0.07568359375, 0.03326416015625, -0.026031494140625, -0.00909423828125, -0.00354766845703125, -0.027496337890625, -0.032012939453125, -0.031646728515625, -0.00878143310546875, 0.004955291748046875, -0.0029163360595703125, 0.038299560546875, 0.0143585205078125, -0.01187896728515625, -0.0018167495727539062, 0.04241943359375, -0.011474609375, -0.00699615478515625, -0.0199127197265625, 0.01374053955078125, 0.00586700439453125, -0.043365478515625, -0.03912353515625, 0.01242828369140625, -0.0034732818603515625, 0.044708251953125, -0.045379638671875, 0.01708984375, 0.0263824462890625, 0.0044097900390625, 0.06439208984375, -0.036102294921875, 0.03155517578125, 0.0291290283203125, -0.07861328125, 0.00881195068359375, 0.01229095458984375, -0.0195770263671875, -0.0103912353515625, -0.01070404052734375, 0.034698486328125, 0.01031494140625, -0.040008544921875, 0.034576416015625, -0.009246826171875, -0.021087646484375, -0.046600341796875, -0.0391845703125, -0.04754638671875, -0.0273284912109375, -0.06024169921875, -0.08282470703125, -0.005298614501953125, -0.10113525390625, -0.0443115234375, 0.09564208984375, 0.005794525146484375, -0.0007500648498535156, 0.022186279296875, 0.044525146484375, -0.0439453125, 0.0170745849609375, -0.0112152099609375, 0.04949951171875, -0.038848876953125, 0.03106689453125, -0.039947509765625, 0.01088714599609375, 0.003997802734375, 0.042572021484375, 0.047515869140625, -0.0105133056640625, -0.01546478271484375, 0.01454925537109375, 0.08746337890625, 0.0188751220703125, -0.017730712890625, 0.0416259765625, 0.0247650146484375, -0.07550048828125, -0.037261962890625, 0.0244140625, 0.0135345458984375, -0.055206298828125, 0.0020751953125, 0.0389404296875, 0.01080322265625, 0.0044708251953125, 0.02325439453125, -0.0230865478515625, -0.0284576416015625, 0.0280914306640625, 0.00550079345703125, 0.0086822509765625, -0.0050506591796875, 0.0243682861328125, -0.006778717041015625, -0.0009298324584960938, -0.032623291015625, -0.00804901123046875, 0.03350830078125, -0.00766754150390625, -0.01849365234375, 0.0264129638671875, 0.005664825439453125, 0.001544952392578125, -0.0246124267578125, -0.0205078125, 0.001285552978515625, 0.0015745162963867188, 0.0110626220703125, 0.00725555419921875, 0.01910400390625, -0.0152435302734375, 0.006206512451171875, -0.0027599334716796875, 0.024078369140625, -0.0189361572265625, -0.041290283203125, 0.0234832763671875, 0.0216064453125, -0.020172119140625, 0.017364501953125, -0.041473388671875, -0.0290069580078125, 0.0478515625, 0.032440185546875, -0.02777099609375, -0.010345458984375, 0.005039215087890625, 0.0264739990234375, 0.032745361328125, 0.0149688720703125, -0.016082763671875, -0.04833984375, -0.0216522216796875, 0.01238250732421875, 0.07086181640625, 0.04595947265625, 0.06304931640625, -0.00469207763671875, -0.0504150390625, -0.00479888916015625, 0.02386474609375, 0.0011720657348632812, 0.0020351409912109375, -0.03228759765625, -0.02398681640625, -0.004749298095703125, 0.034271240234375, -0.0016717910766601562, -0.01398468017578125, 0.0248565673828125, 0.06268310546875, -0.0260467529296875, -0.023162841796875, 0.056182861328125, -0.013671875, -0.048187255859375, 0.01446533203125, -0.063720703125, 0.0233154296875, -0.0152587890625, 0.0133056640625, 0.006732940673828125, 0.0212554931640625, -0.00923919677734375, 0.048858642578125, -0.002521514892578125, 0.00664520263671875, 0.0156707763671875, 0.002277374267578125, 0.0269012451171875, 0.02423095703125, -0.043182373046875, 0.00047016143798828125, -0.0030689239501953125, -0.032501220703125, 0.003223419189453125, 0.03558349609375, -0.00896453857421875, 0.0235748291015625, -0.0202178955078125, -0.0352783203125, 0.019195556640625, 0.0271759033203125, 0.00981903076171875, 0.03240966796875, 0.022674560546875, -0.0084686279296875, 0.009063720703125, -0.006137847900390625, 0.040374755859375, 0.047760009765625, -0.0235137939453125, 0.0180206298828125, -0.02447509765625, -0.0081787109375, -0.0012235641479492188, 0.03662109375, -0.04443359375, -0.01297760009765625, -0.00682830810546875, 0.0016078948974609375, 0.025543212890625, -0.0001729726791381836, -0.01416778564453125, 0.06317138671875, -0.01195526123046875, -0.008819580078125, 0.0233612060546875, 0.0224761962890625, -0.00647735595703125, 0.031158447265625, 0.0223541259765625, -0.02154541015625, -0.048828125, -0.032135009765625, 0.01268768310546875, 0.004962921142578125, 0.0254669189453125, -0.0233154296875, -0.0230865478515625, 0.03125, -0.04974365234375, -0.0006918907165527344, 0.015472412109375, -0.030120849609375, 0.0083770751953125, 0.07489013671875, -0.032257080078125, 0.0124359130859375, 0.0028820037841796875, -0.00299835205078125, 0.030731201171875, 0.0269927978515625, 0.0176849365234375, -0.00940704345703125, 0.050201416015625, 0.028594970703125, 0.0206298828125, -0.033355712890625, -0.0246734619140625, 0.0889892578125, -0.0234832763671875, -0.035308837890625, 0.0226287841796875, -0.01374053955078125, -0.0257720947265625, -0.0024967193603515625, -0.0086517333984375, -0.0026721954345703125, -0.043853759765625, -0.0310821533203125, 0.0191650390625, 0.00226593017578125, 0.0139923095703125, -0.054046630859375, 0.026702880859375, -0.00969696044921875, 0.043212890625, -0.0198822021484375, -0.00366973876953125, -0.0008130073547363281, 0.020233154296875, -0.0506591796875, -0.023651123046875, -0.038604736328125, 0.00748443603515625, -0.032684326171875, 0.00896453857421875, 0.061309814453125, 0.0004532337188720703, -0.049896240234375, -0.0150146484375, -0.00423431396484375, 0.0248870849609375, -0.0748291015625, -0.0016489028930664062, 0.0465087890625, 0.02569580078125, -0.046844482421875, -0.10125732421875, -0.01007843017578125, -0.0338134765625, 0.039642333984375, 0.000621795654296875, -0.01548004150390625, -0.022674560546875, -0.04541015625, -0.04754638671875, 0.0158538818359375, 0.020294189453125, -0.034912109375, -0.012420654296875, -0.0193328857421875, -0.02301025390625, 0.032440185546875, 0.0026950836181640625, -0.0238494873046875, -0.0014486312866210938, 0.02685546875, 0.039520263671875, -0.0181121826171875, 0.07952880859375, -0.028839111328125, -0.04974365234375, -0.0312042236328125, -0.032867431640625, 0.03460693359375, -0.0021114349365234375, 0.0172882080078125, -0.004512786865234375, 0.0592041015625, 0.00988006591796875, -0.09820556640625, -0.0183563232421875, -0.09979248046875, 0.034149169921875, 0.0205841064453125, -0.045013427734375, -0.0309295654296875, 0.004596710205078125, 0.06781005859375, 0.0184478759765625, 0.01334381103515625, 0.003875732421875, -0.022613525390625, -0.02508544921875, -0.005016326904296875, 0.004375457763671875, -0.0283660888671875, -0.0028820037841796875, 0.01617431640625, -0.00473785400390625, 0.0211639404296875, 0.004817962646484375, -0.026641845703125, -0.00299072265625, 0.0008392333984375, -0.022186279296875, -0.052154541015625, -0.004558563232421875, 0.00746917724609375, -0.0200653076171875, -0.0257720947265625, 0.0282745361328125, -0.0031681060791015625, -0.010406494140625, 0.053375244140625, 0.0120391845703125, 0.01715087890625, -0.029449462890625, 0.01532745361328125, 0.019775390625, 0.02459716796875, -0.01262664794921875, -0.021270751953125, 0.0197906494140625, -0.00548553466796875, -0.0163116455078125, -0.0293121337890625, 0.007106781005859375, -0.01100921630859375, -0.039642333984375, 0.0338134765625, 0.00789642333984375, 0.01480865478515625, -0.0211029052734375, 0.06414794921875, -0.0322265625, -0.01947021484375, -0.0289154052734375, -0.017303466796875, 0.007549285888671875, 0.047637939453125, 0.023895263671875, 0.0277099609375, -0.01377105712890625, 0.018951416015625, 0.0283660888671875, -0.0098876953125 ]
453fbf2a18156ba3c6053e850df4e61e769cf384
Wordpress Stackexchange Q: Why use wp_send_json() over echo json_encode()? When sending a JSON response back to an AJAX request, why use the WordPress function wp_send_json() and not echo json_encode()? What is the benefit of using the WordPress function wp_send_json() over echo json_encode()? Ref: wp_send_json A: wp_send_json() handles all parts of returning content in an AJAX call. First off, it sets the content type of the returned content to application/json with the proper charset. Secondly, it automatically calls wp_die() after sending the JSON result, which is necessary in an AJAX call in WordPress. You could consider using wp_send_json_success() for successful requests and wp_send_json_error() for erroneous requests, thereby adhering to the WordPress standards for handling AJAX requests. These functions set a success (boolean) and data (any type) key in an array and encode that entire array, thereby allowing you easily check in a structured way whether the request was successful or whether something went wrong.
Q: Why use wp_send_json() over echo json_encode()? When sending a JSON response back to an AJAX request, why use the WordPress function wp_send_json() and not echo json_encode()? What is the benefit of using the WordPress function wp_send_json() over echo json_encode()? Ref: wp_send_json A: wp_send_json() handles all parts of returning content in an AJAX call. First off, it sets the content type of the returned content to application/json with the proper charset. Secondly, it automatically calls wp_die() after sending the JSON result, which is necessary in an AJAX call in WordPress. You could consider using wp_send_json_success() for successful requests and wp_send_json_error() for erroneous requests, thereby adhering to the WordPress standards for handling AJAX requests. These functions set a success (boolean) and data (any type) key in an array and encode that entire array, thereby allowing you easily check in a structured way whether the request was successful or whether something went wrong.
wordpress
{ "language": "en", "length": 151, "provenance": "stackexchange_00019.jsonl.gz:445996", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149158" }
[ 0.07171630859375, -0.004352569580078125, -0.05462646484375, -0.07635498046875, 0.0345458984375, -0.056976318359375, 0.0277557373046875, 0.031341552734375, 0.005096435546875, 0.01490020751953125, 0.00140380859375, -0.0130157470703125, 0.0254058837890625, -0.026397705078125, 0.010223388671875, -0.014678955078125, 0.0220489501953125, -0.03125, -0.00930023193359375, -0.019012451171875, 0.02874755859375, -0.01226806640625, -0.00274658203125, 0.037445068359375, 0.01995849609375, -0.0213470458984375, 0.036163330078125, -0.01490020751953125, 0.00824737548828125, -0.002777099609375, 0.007595062255859375, -0.007328033447265625, 0.023162841796875, 0.0654296875, -0.09228515625, 0.006252288818359375, -0.0017518997192382812, 0.01427459716796875, -0.002559661865234375, 0.05474853515625, 0.028106689453125, -0.01271820068359375, 0.059814453125, -0.004642486572265625, 0.0179290771484375, 0.0006971359252929688, 0.040557861328125, -0.03472900390625, -0.027069091796875, 0.0032901763916015625, 0.043731689453125, -0.007564544677734375, 0.052825927734375, 0.031829833984375, -0.006855010986328125, 0.01104736328125, -0.005855560302734375, 0.040557861328125, 0.03863525390625, 0.042388916015625, -0.046417236328125, 0.0211944580078125, -0.00891876220703125, -0.0885009765625, 0.04010009765625, -0.0132598876953125, -0.007305145263671875, 0.034088134765625, -0.05615234375, 0.05108642578125, 0.05963134765625, -0.07025146484375, -0.00846099853515625, -0.017669677734375, -0.01140594482421875, 0.00418853759765625, 0.008087158203125, 0.0093231201171875, -0.003345489501953125, 0.01042938232421875, -0.032928466796875, -0.0057830810546875, -0.007171630859375, -0.0322265625, 0.0018978118896484375, -0.011627197265625, -0.0233306884765625, 0.0037784576416015625, -0.0232086181640625, -0.049468994140625, -0.00916290283203125, -0.060943603515625, -0.052520751953125, 0.018463134765625, 0.0019779205322265625, -0.028839111328125, -0.030670166015625, -0.0482177734375, -0.0007610321044921875, 0.005924224853515625, 0.04412841796875, -0.045989990234375, 0.0579833984375, -0.00665283203125, 0.0131683349609375, 0.01129150390625, -0.026519775390625, -0.031280517578125, 0.051910400390625, 0.034027099609375, -0.0258636474609375, 0.023468017578125, 0.01122283935546875, -0.0259246826171875, 0.00930023193359375, 0.00296783447265625, -0.03375244140625, 0.0362548828125, 0.0076751708984375, -0.004909515380859375, 0.00823974609375, 0.0085296630859375, 0.00806427001953125, 0.0289154052734375, 0.0132904052734375, 0.027374267578125, -0.015045166015625, -0.026885986328125, 0.01641845703125, 0.015228271484375, -0.035125732421875, 0.003662109375, 0.043182373046875, 0.044647216796875, 0.0246734619140625, -0.01132965087890625, 0.02960205078125, 0.01015472412109375, 0.00473785400390625, 0.0236968994140625, 0.0007004737854003906, -0.02001953125, 0.0274810791015625, 0.01025390625, 0.00443267822265625, -0.00719451904296875, 0.0106048583984375, 0.0262451171875, 0.01158905029296875, -0.0023708343505859375, -0.0020236968994140625, -0.011627197265625, 0.00330352783203125, 0.021331787109375, 0.03228759765625, 0.022369384765625, 0.007568359375, 0.0003027915954589844, 0.0006151199340820312, 0.0024967193603515625, -0.02471923828125, -0.0010938644409179688, 0.021942138671875, -0.0242767333984375, -0.0254364013671875, 0.003047943115234375, -0.020782470703125, -0.002422332763671875, 0.02667236328125, 0.043212890625, 0.02423095703125, -0.04510498046875, -0.004024505615234375, -0.005645751953125, -0.01373291015625, -0.0017642974853515625, 0.0017156600952148438, 0.042694091796875, 0.031585693359375, -0.0061187744140625, -0.01568603515625, -0.040069580078125, 0.088134765625, -0.0462646484375, -0.04986572265625, 0.08001708984375, 0.020233154296875, 0.1231689453125, -0.01264190673828125, 0.0304412841796875, 0.01214599609375, 0.019622802734375, 0.01110076904296875, 0.01015472412109375, -0.0026397705078125, -0.0491943359375, 0.0098876953125, -0.0192108154296875, -0.00946807861328125, -0.00128936767578125, 0.0172882080078125, 0.01065826416015625, -0.01094818115234375, -0.005100250244140625, -0.041961669921875, -0.0189361572265625, -0.00928497314453125, 0.034759521484375, 0.0025997161865234375, 0.029266357421875, 0.01873779296875, 0.03436279296875, -0.03363037109375, -0.0282440185546875, -0.01629638671875, 0.029998779296875, -0.047088623046875, 0.06298828125, -0.024993896484375, 0.0469970703125, -0.0391845703125, -0.059722900390625, -0.01904296875, -0.0165557861328125, 0.01507568359375, -0.006259918212890625, -0.01392364501953125, -0.00994873046875, 0.0175933837890625, -0.0004761219024658203, 0.0004162788391113281, 0.031494140625, 0.05804443359375, 0.044647216796875, 0.006008148193359375, -0.004184722900390625, 0.025848388671875, -0.0906982421875, -0.0018529891967773438, 0.059478759765625, 0.0071258544921875, 0.037109375, -0.0135345458984375, 0.006153106689453125, 0.03338623046875, -0.044952392578125, -0.00006204843521118164, 0.0011205673217773438, -0.0013132095336914062, -0.03521728515625, -0.00914764404296875, -0.061126708984375, 0.043304443359375, -0.1427001953125, 0.01837158203125, 0.0305328369140625, -0.0294647216796875, -0.01428985595703125, -0.007724761962890625, 0.016510009765625, -0.0033130645751953125, 0.01232147216796875, 0.017730712890625, -0.0221405029296875, 0.0294036865234375, -0.01461029052734375, 0.02734375, 0.0167388916015625, 0.01483917236328125, -0.0263519287109375, -0.00460052490234375, -0.043548583984375, 0.0012502670288085938, 0.09149169921875, 0.030364990234375, 0.032867431640625, -0.03350830078125, -0.0390625, 0.04058837890625, 0.061370849609375, -0.0099945068359375, 0.034881591796875, -0.0231170654296875, -0.0174560546875, 0.01277923583984375, 0.060821533203125, -0.006656646728515625, -0.0152130126953125, 0.048553466796875, 0.02142333984375, 0.04998779296875, 0.029632568359375, 0.0128021240234375, 0.021087646484375, -0.0153350830078125, -0.00601959228515625, 0.050140380859375, 0.0259552001953125, -0.025238037109375, 0.0156402587890625, 0.038848876953125, 0.0238494873046875, 0.00910186767578125, -0.0308685302734375, 0.00543212890625, -0.0253143310546875, 0.0031833648681640625, -0.0038299560546875, -0.029754638671875, -0.01517486572265625, -0.0631103515625, 0.01509857177734375, 0.03399658203125, 0.04376220703125, 0.00933074951171875, -0.025909423828125, 0.01091766357421875, 0.048309326171875, -0.07098388671875, -0.0948486328125, 0.023162841796875, -0.0654296875, 0.00269317626953125, -0.00516510009765625, -0.038848876953125, -0.00817108154296875, 0.0204925537109375, 0.006000518798828125, -0.009490966796875, -0.01163482666015625, -0.009613037109375, -0.031829833984375, -0.04071044921875, -0.0023250579833984375, 0.003040313720703125, 0.003925323486328125, 0.01251983642578125, -0.0210418701171875, 0.006053924560546875, -0.0159912109375, 0.006694793701171875, 0.09429931640625, -0.036163330078125, -0.06298828125, 0.024993896484375, -0.0235748291015625, -0.024749755859375, -0.01093292236328125, 0.0149383544921875, 0.01544952392578125, -0.0210723876953125, 0.0019292831420898438, -0.02325439453125, 0.02410888671875, 0.0138092041015625, 0.0208740234375, 0.02264404296875, 0.03729248046875, 0.0170440673828125, -0.0228271484375, -0.0247039794921875, 0.01099395751953125, -0.051116943359375, -0.0137786865234375, 0.0450439453125, -0.0139312744140625, 0.002536773681640625, -0.0078582763671875, 0.0000540614128112793, -0.00109100341796875, -0.033966064453125, -0.01268768310546875, 0.064697265625, -0.0036182403564453125, 0.0186614990234375, -0.005863189697265625, 0.029937744140625, -0.0274505615234375, 0.00392913818359375, 0.01114654541015625, -0.015228271484375, -0.0222015380859375, 0.0169830322265625, -0.032989501953125, -0.0675048828125, 0.0268096923828125, -0.0120849609375, -0.007030487060546875, -0.0175933837890625, -0.0156402587890625, 0.0169219970703125, 0.07501220703125, 0.019775390625, -0.01448822021484375, -0.01470947265625, -0.01145172119140625, -0.02349853515625, -0.00814056396484375, -0.036407470703125, 0.007781982421875, 0.055816650390625, -0.0016222000122070312, -0.039825439453125, 0.029815673828125, -0.00611114501953125, 0.029754638671875, 0.055450439453125, -0.0121612548828125, 0.0289459228515625, -0.0648193359375, 0.00885009765625, -0.01120758056640625, 0.01520538330078125, -0.07659912109375, -0.0098419189453125, -0.028564453125, -0.05487060546875, 0.004886627197265625, -0.02630615234375, 0.04296875, 0.0263824462890625, -0.032440185546875, -0.0169219970703125, 0.0135498046875, 0.0186004638671875, 0.01470184326171875, -0.007205963134765625, -0.0201416015625, 0.0106353759765625, 0.041534423828125, 0.0161895751953125, 0.0172271728515625, -0.0109710693359375, -0.02264404296875, -0.0220794677734375, -0.00951385498046875, -0.016082763671875, -0.0184478759765625, 0.019775390625, -0.01119232177734375, -0.079833984375, -0.0712890625, -0.04840087890625, -0.00553131103515625, -0.044708251953125, 0.0131072998046875, -0.054473876953125, -0.066650390625, 0.04046630859375, 0.03955078125, -0.0166778564453125, -0.006977081298828125, 0.0173187255859375, 0.01305389404296875, -0.0352783203125, -0.025482177734375, -0.003643035888671875, 0.038665771484375, -0.022613525390625, 0.006366729736328125, -0.019805908203125, -0.04931640625, 0.10162353515625, -0.01522064208984375, 0.022979736328125, 0.00732421875, 0.0259552001953125, -0.00023937225341796875, 0.0181732177734375, -0.0121917724609375, 0.001220703125, -0.031707763671875, 0.011962890625, 0.007205963134765625, -0.0010223388671875, 0.0479736328125, -0.02105712890625, -0.04034423828125, 0.010894775390625, 0.0279693603515625, -0.042724609375, 0.02325439453125, -0.0160675048828125, 0.02764892578125, 0.024810791015625, -0.006977081298828125, 0.0248870849609375, 0.01122283935546875, 0.00391387939453125, 0.021881103515625, -0.001132965087890625, -0.00673675537109375, 0.036865234375, -0.0153045654296875, -0.009918212890625, 0.003528594970703125, -0.0133514404296875, 0.03814697265625, -0.000446319580078125, -0.03167724609375, -0.0158538818359375, 0.00537109375, -0.0005645751953125, -0.0012140274047851562, -0.0005164146423339844, 0.016204833984375, 0.0316162109375, -0.0297088623046875, -0.015625, -0.0229644775390625, 0.0255584716796875, -0.0438232421875, 0.054046630859375, 0.022369384765625, 0.0019330978393554688, -0.0177001953125, 0.07666015625, 0.024078369140625, 0.0259246826171875, -0.0177764892578125, 0.0467529296875, 0.015380859375, 0.03790283203125, 0.0179443359375, -0.030364990234375, 0.009307861328125, 0.001934051513671875, -0.033782958984375, -0.057891845703125, -0.0212249755859375, -0.0036678314208984375, 0.01812744140625, -0.03631591796875, -0.0165863037109375, 0.0570068359375, 0.026031494140625, -0.019805908203125, 0.03436279296875, 0.05023193359375, 0.01532745361328125, -0.02630615234375, -0.024627685546875, 0.035003662109375, 0.041046142578125, 0.034088134765625, 0.0279388427734375, 0.059173583984375, 0.06396484375, -0.04119873046875, 0.047210693359375, -0.0430908203125, -0.030792236328125, 0.022186279296875, 0.01338958740234375, -0.0172119140625, -0.058746337890625, -0.03558349609375, -0.00029778480529785156, -0.01201629638671875, 0.0589599609375, -0.03533935546875, 0.0106201171875, -0.0245361328125, 0.0186614990234375, -0.02569580078125, 0.01053619384765625, 0.06024169921875, 0.04046630859375, -0.0264434814453125, -0.00606536865234375, -0.011932373046875, 0.004100799560546875, 0.01519012451171875, -0.0406494140625, -0.0181884765625, -0.030914306640625, 0.022796630859375, 0.005550384521484375, 0.018402099609375, -0.0154266357421875, 0.0089569091796875, 0.01385498046875, -0.01557159423828125, -0.006801605224609375, -0.0275115966796875, 0.055419921875, -0.011932373046875, 0.03668212890625, -0.032745361328125, -0.006526947021484375, -0.01094818115234375, 0.003269195556640625, -0.00347900390625, -0.035308837890625, -0.0093231201171875, -0.0177154541015625, 0.0037174224853515625, -0.0257110595703125, 0.006072998046875, -0.0093231201171875, 0.0217742919921875, 0.0005083084106445312, -0.01004791259765625, -0.0025234222412109375, 0.018951416015625, 0.02178955078125, 0.02032470703125, 0.03509521484375, 0.00847625732421875, 0.0263824462890625, -0.031951904296875, -0.034271240234375, 0.01458740234375, 0.0002560615539550781, 0.01024627685546875, 0.0016660690307617188, -0.00850677490234375, 0.03125, 0.06854248046875, -0.01123046875, 0.03466796875, 0.0477294921875, 0.006855010986328125, 0.0230865478515625, 0.02618408203125, -0.03228759765625, -0.0211334228515625, 0.020263671875, 0.004131317138671875, -0.004955291748046875, 0.0002040863037109375, -0.01403045654296875, 0.0301055908203125, 0.03338623046875, 0.1051025390625, -0.047882080078125, 0.024078369140625, 0.04498291015625, -0.041839599609375, 0.0057220458984375, -0.0295867919921875, 0.006420135498046875, -0.003204345703125, 0.0887451171875, -0.01035308837890625, -0.01629638671875, 0.033050537109375, -0.0247802734375, -0.006587982177734375, -0.00876617431640625, 0.016021728515625, 0.00457763671875, -0.048675537109375, 0.024749755859375, 0.0246734619140625, 0.009765625, 0.041595458984375, -0.003742218017578125, 0.00002849102020263672, -0.058837890625, -0.03936767578125, -0.0246124267578125, -0.0310516357421875, -0.03436279296875, -0.040130615234375, -0.0300750732421875, 0.02886962890625, 0.057525634765625, -0.034881591796875, -0.00873565673828125, 0.0305328369140625, -0.0241241455078125, -0.0067596435546875, -0.0191802978515625, 0.028656005859375, 0.051605224609375, -0.06500244140625, 0.0269317626953125, -0.0225372314453125, -0.00803375244140625, -0.016754150390625, 0.01285552978515625, 0.0576171875, -0.0197906494140625, -0.004711151123046875, 0.029815673828125, 0.040618896484375, -0.021453857421875, -0.0135345458984375, 0.0253753662109375, -0.030731201171875, 0.0034465789794921875, 0.0003077983856201172, -0.033447265625, -0.0146331787109375, -0.0247650146484375, -0.038665771484375, 0.10015869140625, 0.0078125, 0.00740814208984375, 0.0027980804443359375, 0.036651611328125, -0.019256591796875, 0.034332275390625, -0.03173828125, 0.01934814453125, -0.0204010009765625, 0.03924560546875, -0.030731201171875, -0.0015535354614257812, -0.0004115104675292969, 0.0189971923828125, 0.0374755859375, 0.01073455810546875, -0.005748748779296875, -0.002552032470703125, 0.012969970703125, 0.0230560302734375, -0.0215301513671875, 0.01763916015625, 0.0123291015625, -0.015350341796875, 0.059661865234375, -0.0308990478515625, 0.0196533203125, 0.0034427642822265625, 0.03802490234375, 0.041412353515625, 0.0262298583984375, 0.0254364013671875, 0.007122039794921875, 0.008514404296875, -0.042877197265625, 0.022918701171875, 0.029327392578125, 0.0164337158203125, -0.010528564453125, 0.0157470703125, 0.0098876953125, -0.0015611648559570312, 0.004955291748046875, -0.030181884765625, 0.0294647216796875, 0.01128387451171875, 0.036895751953125, 0.0213623046875, 0.0161285400390625, 0.043212890625, 0.0019931793212890625, 0.01067352294921875, 0.0278167724609375, -0.01003265380859375, 0.019287109375, 0.028778076171875, 0.0273590087890625, -0.03802490234375, -0.0361328125, 0.046417236328125, 0.046966552734375, -0.022003173828125, -0.02752685546875, -0.007061004638671875, 0.00255584716796875, 0.040924072265625, 0.0002541542053222656, 0.0858154296875, -0.0250396728515625, -0.026275634765625, -0.0158233642578125, -0.01511383056640625, -0.0003018379211425781, 0.0242919921875, 0.002262115478515625, 0.006206512451171875, 0.0027027130126953125, -0.0195159912109375, -0.047454833984375, 0.039215087890625, 0.0226898193359375, 0.052490234375, 0.00868988037109375, 0.04754638671875, -0.0153656005859375, -0.0219573974609375, 0.000995635986328125, 0.0168914794921875, 0.020172119140625, 0.010894775390625, 0.024261474609375, 0.005649566650390625, 0.019439697265625, 0.003143310546875, 0.01739501953125, 0.045318603515625, 0.056304931640625, 0.032989501953125, -0.01432037353515625, -0.0006361007690429688, 0.0213623046875, -0.02825927734375, -0.0212554931640625, -0.0254364013671875, 0.020111083984375, 0.04962158203125, 0.01548004150390625, -0.005107879638671875, 0.0198822021484375, 0.057830810546875, -0.0843505859375, 0.07574462890625, -0.033233642578125, -0.0308990478515625, 0.040985107421875, -0.03826904296875, 0.117919921875, -0.04046630859375, -0.045745849609375, -0.023773193359375, 0.014862060546875, 0.00748443603515625, 0.0131683349609375, 0.0226898193359375, -0.005153656005859375, 0.0526123046875, -0.0089263916015625, -0.03253173828125, 0.0202789306640625, 0.0283203125, -0.00008314847946166992, -0.0174713134765625, 0.003276824951171875, -0.030670166015625, -0.0133209228515625, -0.0047454833984375, -0.005947113037109375, 0.0447998046875, 0.0063018798828125, 0.045257568359375, -0.01383209228515625, 0.01027679443359375, -0.01326751708984375, -0.0240936279296875, 0.0273284912109375, -0.00467681884765625, 0.0270843505859375, 0.0226593017578125, -0.00063323974609375, -0.03118896484375, -0.00673675537109375, 0.035430908203125, 0.005168914794921875, -0.023681640625, 0.03533935546875, -0.0382080078125, 0.01197052001953125, -0.0157318115234375, 0.01462554931640625, -0.05419921875, -0.040924072265625, -0.047943115234375, -0.00677490234375, -0.0015316009521484375, -0.023834228515625, 0.0087738037109375, 0.01033782958984375, -0.01885986328125, -0.0263214111328125, 0.0223236083984375, -0.055633544921875, -0.0028362274169921875, 0.006137847900390625, 0.005863189697265625, 0.01134490966796875, -0.0030002593994140625, -0.02056884765625, 0.00453948974609375, 0.010498046875, 0.00020360946655273438, -0.0079193115234375, -0.004352569580078125, -0.031494140625, -0.0009007453918457031, 0.0015277862548828125, -0.007732391357421875, -0.01727294921875, 0.004589080810546875, -0.0287322998046875, -0.0302734375, 0.0008339881896972656, 0.0108489990234375, -0.01326751708984375, -0.024017333984375, 0.01190185546875, 0.00493621826171875, -0.0165252685546875, 0.0177459716796875, -0.021881103515625, 0.033294677734375, -0.0126190185546875, 0.0021686553955078125, -0.01224517822265625, -0.05352783203125, -0.0059967041015625, 0.01001739501953125, 0.004425048828125, -0.02069091796875, 0.0209808349609375, -0.0029354095458984375, -0.0518798828125, -0.043609619140625, 0.047882080078125, -0.034759521484375, 0.00852203369140625, 0.0178680419921875, -0.0265045166015625, -0.051971435546875, -0.0030460357666015625, 0.0150299072265625, 0.030120849609375, 0.036651611328125, -0.018463134765625, -0.02783203125, 0.047760009765625, -0.01146697998046875, -0.056121826171875, 0.0017633438110351562, -0.012969970703125, -0.00605010986328125, -0.02069091796875, 0.00737762451171875, 0.0224609375, -0.0216064453125, -0.059967041015625, 0.0216217041015625, -0.01197052001953125, -0.0316162109375, -0.0251922607421875, -0.0204925537109375, -0.002559661865234375, -0.00151824951171875, -0.0230560302734375, -0.00560760498046875, -0.034912109375, 0.029754638671875, 0.0048370361328125, 0.0679931640625, -0.009613037109375, -0.00902557373046875, -0.06268310546875, 0.004940032958984375, -0.0316162109375, 0.043212890625, -0.046661376953125, -0.001995086669921875, 0.044525146484375, 0.0141143798828125, -0.0006914138793945312, 0.0721435546875, 0.054901123046875, 0.041015625, -0.03753662109375, 0.00873565673828125, 0.0325927734375, 0.05609130859375, 0.0772705078125, 0.030242919921875, 0.009735107421875, -0.06561279296875, -0.0645751953125, -0.05194091796875, 0.0129852294921875, -0.0167236328125, -0.00363922119140625, -0.07025146484375, 0.003536224365234375, -0.00665283203125, 0.0238494873046875, 0.037750244140625, -0.05877685546875, -0.0040435791015625, -0.01421356201171875, -0.01242828369140625, 0.022308349609375, -0.0023555755615234375, -0.01849365234375, 0.05316162109375, -0.0248565673828125, 0.0248565673828125, 0.0269927978515625, 0.009124755859375, 0.023651123046875, 0.05194091796875, -0.0015964508056640625, 0.053131103515625, -0.059478759765625, -0.016815185546875, -0.006542205810546875, 0.024139404296875, -0.0262451171875, 0.00406646728515625, 0.005840301513671875, 0.051300048828125, -0.01552581787109375, 0.06927490234375, 0.02587890625, 0.055450439453125, 0.0232086181640625, -0.05010986328125, -0.03045654296875, 0.02178955078125, -0.031585693359375, 0.0173187255859375, 0.015869140625, 0.01036834716796875, 0.07470703125, -0.0333251953125, 0.00917816162109375, 0.015106201171875, 0.0126800537109375, -0.005260467529296875, 0.0025577545166015625, 0.03546142578125, 0.00012445449829101562, 0.01149749755859375 ]
c50116d8dbbbdbcc1715432b791d20cd13139fa2
Wordpress Stackexchange Q: When using javascript to dynamically add a textarea, how can I render it as a tinyMCE editor (in wordpress)? I have a plugin that allows the user to dynamically add sections that need to have the tinyMCE editor in them. The jQuery clones a div and places it into a container. One of the input boxes is a textarea set up like so: <textarea name="sectionContent_1" id="sectionContent_1"></textarea> I need to replace the textarea with the tinyMCE editor. I've looked at: How to load wp_editor() through AJAX/jQuery and use wordpress wp_editor in dynamic/ajax html Neither of these seem to work for us I've tried this inside the trigger that calls to add the textarea section: $(this).parent().find('.sectionOptions').html(ctHolder); var textAreaID = 'sectionContent_'+sectionID; tinyMCE.execCommand('mceRemoveEditor', true, textAreaID); tinyMCE.execCommand('mceAddControl', false, textAreaID); In this, I'm adding the cloned data (ctHolder) to the .sectionOptions setting the textarea's ID, resetting the editor on the ID, then adding control to the ID... this doesn't work but seems to be most commons suggestion. A: tinymce.remove(); tinymce.init(); This works well!
Q: When using javascript to dynamically add a textarea, how can I render it as a tinyMCE editor (in wordpress)? I have a plugin that allows the user to dynamically add sections that need to have the tinyMCE editor in them. The jQuery clones a div and places it into a container. One of the input boxes is a textarea set up like so: <textarea name="sectionContent_1" id="sectionContent_1"></textarea> I need to replace the textarea with the tinyMCE editor. I've looked at: How to load wp_editor() through AJAX/jQuery and use wordpress wp_editor in dynamic/ajax html Neither of these seem to work for us I've tried this inside the trigger that calls to add the textarea section: $(this).parent().find('.sectionOptions').html(ctHolder); var textAreaID = 'sectionContent_'+sectionID; tinyMCE.execCommand('mceRemoveEditor', true, textAreaID); tinyMCE.execCommand('mceAddControl', false, textAreaID); In this, I'm adding the cloned data (ctHolder) to the .sectionOptions setting the textarea's ID, resetting the editor on the ID, then adding control to the ID... this doesn't work but seems to be most commons suggestion. A: tinymce.remove(); tinymce.init(); This works well! A: This did the trick: var textAreaID = 'sectionContent_' + sectionID; $(this).parent() .find('.sectionOptions') .html(ctHolder).ready( function() { tinyMCE.execCommand('mceAddEditor', false, textAreaID); } ); Wordpress 3.9 is using tinyMCE 4.x so "mceAddControl" was changed to "mceAddEditor". Also, I placed the call inside a ready function so jquery wouldn't run tinyMCE until after it loaded the textarea on the dom.
wordpress
{ "language": "en", "length": 224, "provenance": "stackexchange_00019.jsonl.gz:446007", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149196" }
[ 0.01477813720703125, 0.001865386962890625, -0.0163421630859375, -0.02471923828125, 0.0194244384765625, -0.01538848876953125, 0.0307464599609375, -0.016326904296875, 0.01271820068359375, 0.035858154296875, -0.0258941650390625, -0.017303466796875, -0.0172576904296875, -0.0124359130859375, -0.03216552734375, -0.0299530029296875, 0.0190582275390625, -0.0164031982421875, -0.01788330078125, -0.01299285888671875, -0.03753662109375, 0.0028285980224609375, 0.017364501953125, 0.0001671314239501953, 0.0257568359375, 0.041015625, 0.05157470703125, -0.0024280548095703125, -0.00421905517578125, -0.01806640625, 0.014404296875, -0.0113067626953125, 0.005161285400390625, 0.05517578125, -0.0303497314453125, 0.01293182373046875, 0.04193115234375, 0.01148223876953125, 0.005779266357421875, 0.0243072509765625, 0.041778564453125, -0.024749755859375, 0.0198974609375, 0.0325927734375, -0.00467681884765625, -0.0706787109375, 0.071533203125, -0.04888916015625, 0.00568389892578125, -0.01290130615234375, 0.0034122467041015625, -0.0016222000122070312, 0.0247955322265625, -0.0020275115966796875, -0.015655517578125, 0.00009989738464355469, -0.019775390625, -0.0163421630859375, -0.01039886474609375, 0.06024169921875, 0.038360595703125, 0.021820068359375, -0.01029205322265625, 0.005985260009765625, -0.00798797607421875, -0.040069580078125, -0.03302001953125, 0.02593994140625, 0.0024471282958984375, 0.00954437255859375, 0.0174560546875, -0.009124755859375, 0.00688934326171875, -0.037933349609375, 0.0144805908203125, 0.0200347900390625, -0.0296630859375, -0.02423095703125, 0.01496124267578125, -0.0038890838623046875, -0.0020732879638671875, -0.0038623809814453125, -0.0275421142578125, -0.034423828125, 0.00977325439453125, -0.01038360595703125, 0.0013341903686523438, -0.0036830902099609375, -0.0224609375, -0.0185546875, -0.017425537109375, -0.059783935546875, -0.0094757080078125, 0.0227813720703125, -0.0029392242431640625, -0.0240478515625, 0.0162506103515625, 0.016510009765625, 0.0199432373046875, 0.0261993408203125, 0.01274871826171875, -0.059112548828125, 0.055450439453125, -0.03594970703125, -0.002643585205078125, -0.01003265380859375, -0.00955963134765625, -0.01178741455078125, 0.01007080078125, 0.03143310546875, -0.02520751953125, -0.007312774658203125, -0.004436492919921875, -0.0166473388671875, -0.00945281982421875, -0.005039215087890625, -0.0499267578125, 0.0372314453125, -0.0003752708435058594, 0.0167083740234375, -0.025421142578125, -0.0298309326171875, -0.0233154296875, 0.055023193359375, 0.00847625732421875, 0.006839752197265625, 0.007129669189453125, 0.0264892578125, 0.003154754638671875, -0.0262451171875, -0.056793212890625, 0.035125732421875, 0.11187744140625, 0.069091796875, 0.055023193359375, -0.004337310791015625, 0.0396728515625, -0.02203369140625, 0.0164642333984375, -0.03192138671875, 0.041839599609375, 0.040740966796875, 0.021759033203125, 0.0030345916748046875, -0.038116455078125, 0.01428985595703125, 0.028839111328125, 0.004703521728515625, -0.0170440673828125, -0.05084228515625, -0.0179901123046875, -0.0092926025390625, 0.043548583984375, 0.0018558502197265625, -0.0020542144775390625, -0.05584716796875, 0.06573486328125, -0.0662841796875, 0.0151519775390625, -0.07232666015625, 0.048980712890625, 0.01033782958984375, 0.009185791015625, -0.019012451171875, -0.043243408203125, -0.04937744140625, -0.03515625, -0.022125244140625, 0.03466796875, 0.049224853515625, 0.025177001953125, -0.0281982421875, 0.01715087890625, 0.04888916015625, 0.00681304931640625, 0.038482666015625, -0.025177001953125, 0.005767822265625, 0.040771484375, 0.0026702880859375, -0.008575439453125, -0.027496337890625, 0.063232421875, 0.005947113037109375, -0.04217529296875, 0.02178955078125, 0.005657196044921875, 0.0506591796875, 0.01033782958984375, 0.026214599609375, -0.00531005859375, 0.0183563232421875, 0.01184844970703125, -0.039031982421875, 0.0234375, -0.00852203369140625, -0.0250701904296875, -0.004505157470703125, -0.0024871826171875, 0.0005025863647460938, 0.031280517578125, -0.011932373046875, 0.01395416259765625, -0.0221710205078125, -0.05413818359375, 0.00754547119140625, -0.0185089111328125, 0.035491943359375, 0.033966064453125, 0.0004596710205078125, 0.0009794235229492188, -0.015655517578125, -0.006214141845703125, 0.00868988037109375, -0.03961181640625, 0.034637451171875, -0.008026123046875, 0.0196990966796875, 0.0011968612670898438, 0.0205535888671875, 0.0093994140625, 0.014404296875, 0.01528167724609375, 0.03070068359375, 0.02764892578125, -0.03717041015625, -0.0074920654296875, -0.041015625, 0.01439666748046875, -0.037811279296875, 0.009979248046875, 0.0626220703125, 0.0222015380859375, 0.024017333984375, -0.040496826171875, -0.043060302734375, -0.064208984375, -0.09527587890625, 0.0163726806640625, 0.075439453125, 0.040985107421875, 0.052642822265625, -0.004001617431640625, -0.0150146484375, 0.06695556640625, -0.016876220703125, 0.01381683349609375, -0.02740478515625, -0.000023066997528076172, 0.05181884765625, 0.01261138916015625, -0.00980377197265625, -0.01052093505859375, -0.0406494140625, 0.012237548828125, 0.007526397705078125, 0.027374267578125, 0.039031982421875, -0.0104827880859375, -0.018218994140625, 0.0084686279296875, -0.023193359375, -0.032745361328125, 0.0010995864868164062, 0.08697509765625, 0.03253173828125, 0.0684814453125, 0.0631103515625, -0.01959228515625, 0.0263671875, -0.023284912109375, -0.0271453857421875, 0.005786895751953125, 0.01020050048828125, 0.0269012451171875, 0.05718994140625, -0.04840087890625, -0.01053619384765625, 0.06756591796875, 0.041717529296875, -0.016632080078125, 0.030609130859375, -0.0063629150390625, -0.0181427001953125, -0.0024700164794921875, -0.005275726318359375, -0.004695892333984375, -0.048797607421875, 0.019134521484375, -0.00478363037109375, 0.01073455810546875, 0.0292816162109375, -0.018096923828125, 0.04241943359375, 0.00921630859375, -0.0166168212890625, 0.08660888671875, 0.002895355224609375, 0.019256591796875, 0.01053619384765625, 0.05712890625, 0.05029296875, -0.01331329345703125, 0.01131439208984375, 0.0128631591796875, -0.003337860107421875, 0.0004296302795410156, 0.018585205078125, 0.0263214111328125, 0.02203369140625, -0.05743408203125, 0.027252197265625, 0.0267333984375, 0.058441162109375, 0.0085601806640625, -0.02484130859375, 0.0063934326171875, 0.06365966796875, -0.01195526123046875, -0.0277099609375, 0.02362060546875, -0.0478515625, 0.00707244873046875, 0.006504058837890625, -0.034210205078125, -0.0235137939453125, 0.04345703125, 0.003574371337890625, -0.01427459716796875, 0.0169830322265625, -0.0143890380859375, -0.00261688232421875, -0.03399658203125, -0.01262664794921875, -0.0146331787109375, 0.0131988525390625, 0.0191802978515625, 0.04205322265625, 0.0250396728515625, -0.01264190673828125, 0.049224853515625, 0.0038967132568359375, -0.018157958984375, 0.03485107421875, 0.044219970703125, -0.042633056640625, 0.0200347900390625, 0.0060882568359375, 0.030029296875, 0.033172607421875, -0.03759765625, -0.00490570068359375, -0.0024852752685546875, 0.0260467529296875, 0.03912353515625, -0.00577545166015625, -0.0258941650390625, 0.046295166015625, 0.034698486328125, -0.0268707275390625, -0.0214385986328125, 0.0212554931640625, -0.0282135009765625, -0.0247802734375, -0.02215576171875, -0.005916595458984375, 0.00007700920104980469, 0.0195159912109375, -0.005878448486328125, 0.0134124755859375, 0.04388427734375, 0.0006361007690429688, -0.0029773712158203125, -0.039215087890625, -0.0518798828125, -0.0292510986328125, 0.0113067626953125, -0.0256500244140625, 0.01532745361328125, -0.0182952880859375, -0.010284423828125, -0.01543426513671875, 0.0088043212890625, -0.00839996337890625, -0.03570556640625, 0.026580810546875, -0.0032806396484375, 0.03271484375, -0.01027679443359375, -0.023406982421875, 0.01465606689453125, 0.07183837890625, -0.021453857421875, -0.0007038116455078125, 0.01143646240234375, -0.004276275634765625, -0.0207977294921875, -0.01470947265625, -0.058502197265625, -0.00798797607421875, -0.02899169921875, 0.0217132568359375, 0.0189056396484375, -0.011993408203125, -0.0396728515625, 0.0511474609375, -0.03692626953125, -0.0034923553466796875, 0.01325225830078125, -0.0643310546875, 0.018035888671875, -0.0092620849609375, -0.0204620361328125, -0.00881195068359375, 0.01490020751953125, -0.0780029296875, -0.06634521484375, -0.010955810546875, -0.032379150390625, 0.057830810546875, 0.0176544189453125, -0.0237274169921875, -0.0139923095703125, 0.03680419921875, -0.006221771240234375, 0.0218505859375, 0.0209503173828125, 0.04766845703125, -0.031646728515625, -0.057342529296875, 0.0145111083984375, -0.07586669921875, 0.00972747802734375, 0.016693115234375, -0.03643798828125, 0.00399017333984375, -0.0443115234375, -0.048980712890625, 0.00487518310546875, -0.037811279296875, -0.057647705078125, -0.019622802734375, -0.0288238525390625, -0.0083160400390625, -0.006046295166015625, -0.0247955322265625, -0.01093292236328125, -0.057525634765625, 0.0235595703125, -0.01690673828125, 0.0168609619140625, -0.0107269287109375, 0.07794189453125, 0.0282440185546875, 0.0015859603881835938, 0.038330078125, 0.002231597900390625, 0.03314208984375, 0.0166015625, -0.005443572998046875, -0.02227783203125, -0.0191802978515625, 0.032623291015625, -0.005741119384765625, 0.034759521484375, -0.0228729248046875, 0.053863525390625, 0.0017843246459960938, 0.0034160614013671875, 0.01548004150390625, 0.0211944580078125, -0.03216552734375, -0.00623321533203125, -0.05126953125, 0.03814697265625, -0.0019407272338867188, 0.018341064453125, -0.024505615234375, 0.031402587890625, -0.0214080810546875, -0.002941131591796875, -0.012939453125, 0.0069732666015625, 0.05487060546875, 0.00841522216796875, 0.0115814208984375, -0.019287109375, 0.031829833984375, -0.0051727294921875, 0.01078033447265625, -0.0484619140625, 0.05010986328125, 0.004901885986328125, 0.04638671875, 0.034942626953125, 0.021636962890625, -0.00740814208984375, -0.005218505859375, 0.0235595703125, -0.0215301513671875, -0.027679443359375, 0.01039886474609375, 0.07269287109375, -0.039459228515625, -0.02490234375, -0.0474853515625, 0.01297760009765625, -0.013275146484375, 0.019134521484375, 0.019683837890625, -0.0209808349609375, 0.00838470458984375, -0.00858306884765625, -0.005649566650390625, -0.01511383056640625, -0.01078033447265625, 0.03692626953125, 0.0154876708984375, -0.0024852752685546875, -0.0093841552734375, 0.055908203125, 0.038116455078125, 0.0268402099609375, 0.0076141357421875, 0.030059814453125, -0.0259857177734375, 0.0237884521484375, -0.0301666259765625, -0.03875732421875, -0.01023101806640625, 0.038421630859375, 0.031036376953125, 0.006381988525390625, -0.0161895751953125, 0.0013551712036132812, -0.017333984375, -0.01702880859375, -0.0127410888671875, -0.04156494140625, -0.06005859375, 0.00807952880859375, 0.0321044921875, 0.003353118896484375, -0.007904052734375, 0.0007295608520507812, -0.00817108154296875, -0.039581298828125, -0.01483917236328125, 0.047149658203125, -0.0298614501953125, -0.032470703125, -0.0386962890625, -0.004261016845703125, -0.008514404296875, -0.033660888671875, -0.059539794921875, -0.052001953125, 0.00261688232421875, 0.021453857421875, 0.0390625, -0.0158538818359375, 0.0107574462890625, -0.03662109375, 0.0109710693359375, -0.06854248046875, 0.00551605224609375, 0.0279083251953125, 0.01511383056640625, -0.016845703125, -0.0224761962890625, -0.0384521484375, -0.0214385986328125, -0.027740478515625, -0.03131103515625, -0.031951904296875, -0.0016002655029296875, 0.0343017578125, 0.0272979736328125, 0.00792694091796875, -0.024017333984375, 0.005878448486328125, -0.007488250732421875, 0.0088348388671875, 0.035430908203125, 0.0006442070007324219, 0.037017822265625, -0.057708740234375, 0.0882568359375, -0.0037689208984375, -0.00417327880859375, -0.0018911361694335938, -0.039337158203125, 0.004253387451171875, -0.03369140625, -0.0020580291748046875, -0.004306793212890625, 0.014617919921875, -0.0220794677734375, -0.030517578125, -0.0024509429931640625, 0.026336669921875, -0.005199432373046875, 0.00421142578125, -0.023223876953125, -0.00785064697265625, -0.0235137939453125, -0.00959014892578125, 0.02587890625, -0.07598876953125, -0.004131317138671875, 0.025482177734375, 0.037994384765625, 0.0214996337890625, -0.06976318359375, 0.0098876953125, 0.057373046875, -0.03411865234375, 0.034088134765625, 0.0718994140625, -0.011322021484375, 0.03704833984375, -0.0023632049560546875, -0.00311279296875, 0.0399169921875, 0.03973388671875, -0.01064300537109375, 0.02105712890625, 0.01788330078125, -0.02020263671875, -0.01165008544921875, -0.01146697998046875, -0.0198822021484375, 0.001972198486328125, -0.004268646240234375, 0.0296478271484375, -0.044891357421875, 0.01218414306640625, -0.00026035308837890625, -0.0005860328674316406, 0.039306640625, -0.01535797119140625, 0.002544403076171875, -0.036285400390625, 0.0751953125, 0.0244293212890625, 0.0132904052734375, 0.0479736328125, -0.006229400634765625, -0.0193328857421875, -0.03729248046875, -0.007266998291015625, 0.011383056640625, 0.0215301513671875, 0.0306243896484375, -0.0038604736328125, 0.0208282470703125, -0.0020732879638671875, 0.0116729736328125, 0.01312255859375, -0.0136566162109375, -0.0322265625, 0.00036025047302246094, -0.03692626953125, -0.021820068359375, 0.038726806640625, -0.0020771026611328125, -0.010528564453125, 0.0438232421875, -0.0309600830078125, 0.045684814453125, 0.0026988983154296875, -0.019561767578125, 0.0102081298828125, -0.03021240234375, -0.0025196075439453125, 0.0202789306640625, -0.044708251953125, 0.01149749755859375, -0.0131378173828125, 0.005702972412109375, 0.0189361572265625, 0.052978515625, 0.01285552978515625, -0.024200439453125, -0.034912109375, 0.07550048828125, -0.0185546875, -0.0439453125, -0.05126953125, -0.0499267578125, -0.091064453125, -0.0191497802734375, -0.054168701171875, -0.009124755859375, 0.0491943359375, -0.052459716796875, -0.082275390625, 0.139404296875, 0.028564453125, -0.003170013427734375, -0.0231170654296875, 0.07928466796875, -0.0703125, 0.036865234375, 0.005588531494140625, -0.019805908203125, -0.035491943359375, -0.02252197265625, 0.004055023193359375, 0.0184783935546875, -0.0167236328125, 0.029327392578125, -0.0106353759765625, -0.004486083984375, -0.0180511474609375, 0.005237579345703125, 0.021148681640625, 0.0335693359375, 0.004703521728515625, 0.018096923828125, 0.0153961181640625, -0.044219970703125, -0.00933074951171875, 0.00467681884765625, 0.0026378631591796875, -0.0259246826171875, -0.01739501953125, 0.042083740234375, 0.01318359375, 0.0159912109375, 0.0004024505615234375, 0.00792694091796875, -0.0074310302734375, -0.007480621337890625, 0.00733184814453125, -0.054046630859375, -0.026885986328125, 0.039093017578125, 0.0160064697265625, -0.058135986328125, -0.040283203125, -0.041351318359375, 0.035430908203125, 0.0007371902465820312, -0.022735595703125, 0.004596710205078125, 0.0018157958984375, 0.01275634765625, -0.0225830078125, -0.028472900390625, 0.01378631591796875, 0.01496124267578125, 0.01416778564453125, 0.0061187744140625, 0.00711822509765625, -0.041748046875, 0.0137786865234375, 0.06597900390625, 0.034149169921875, -0.030914306640625, -0.03778076171875, 0.0066375732421875, -0.004627227783203125, 0.01322174072265625, -0.041778564453125, -0.0231170654296875, -0.0093536376953125, 0.0296478271484375, 0.01509857177734375, -0.014984130859375, 0.00693511962890625, 0.0197296142578125, 0.019622802734375, 0.037841796875, -0.0016202926635742188, -0.013824462890625, -0.059356689453125, 0.00827789306640625, -0.01023101806640625, 0.053680419921875, 0.050689697265625, 0.033966064453125, 0.026092529296875, -0.03143310546875, -0.0196380615234375, 0.036376953125, 0.05853271484375, 0.00626373291015625, -0.00408935546875, 0.01004791259765625, 0.01384735107421875, 0.008758544921875, 0.0159149169921875, 0.04779052734375, 0.033050537109375, 0.01517486572265625, 0.0087738037109375, 0.0012750625610351562, -0.026702880859375, -0.0276336669921875, 0.00527191162109375, -0.0109710693359375, -0.0238494873046875, 0.004619598388671875, -0.0223388671875, 0.0035648345947265625, 0.003482818603515625, 0.0360107421875, -0.0171356201171875, 0.04266357421875, -0.01551055908203125, -0.0084991455078125, 0.03729248046875, -0.02557373046875, 0.04107666015625, 0.0024051666259765625, -0.06829833984375, -0.0022792816162109375, -0.005474090576171875, -0.08544921875, 0.032470703125, 0.052642822265625, -0.041839599609375, 0.0182342529296875, -0.019012451171875, -0.0231475830078125, 0.006855010986328125, -0.0194091796875, 0.028411865234375, 0.0103912353515625, -0.0136260986328125, -0.0105133056640625, -0.0028629302978515625, 0.01410675048828125, 0.0109100341796875, -0.006221771240234375, 0.036376953125, 0.0293426513671875, 0.01019287109375, 0.022735595703125, -0.048248291015625, 0.048248291015625, -0.02984619140625, -0.046295166015625, 0.047821044921875, 0.040496826171875, 0.00342559814453125, -0.0235748291015625, -0.041717529296875, 0.058319091796875, 0.01483917236328125, 0.027374267578125, 0.020538330078125, -0.01032257080078125, 0.01470947265625, 0.01290130615234375, 0.02923583984375, -0.02301025390625, -0.00688934326171875, -0.01006317138671875, -0.03753662109375, 0.03729248046875, 0.0127105712890625, 0.012451171875, 0.006359100341796875, 0.0474853515625, -0.0204620361328125, 0.03240966796875, -0.002101898193359375, 0.0299530029296875, 0.04180908203125, 0.032623291015625, -0.040679931640625, 0.051483154296875, 0.002429962158203125, -0.01470184326171875, 0.03857421875, 0.029632568359375, 0.03424072265625, -0.06854248046875, 0.06500244140625, 0.0555419921875, 0.08843994140625, -0.0007891654968261719, 0.0213165283203125, 0.0032329559326171875, 0.0147552490234375, 0.03753662109375, 0.0082244873046875, -0.04791259765625, -0.029876708984375, 0.0377197265625, 0.0289459228515625, 0.002590179443359375, 0.0101470947265625, -0.09515380859375, -0.006374359130859375, 0.0249481201171875, 0.031463623046875, -0.07598876953125, 0.045806884765625, 0.01139068603515625, 0.0284271240234375, 0.00875091552734375, 0.02081298828125, -0.0275726318359375, -0.00952911376953125, -0.0290374755859375, -0.027252197265625, -0.044342041015625, 0.057281494140625, -0.027862548828125, 0.0249786376953125, 0.058685302734375, -0.01369476318359375, -0.0439453125, 0.01641845703125, 0.0097808837890625, 0.059600830078125, -0.040283203125, -0.004810333251953125, 0.064453125, -0.019256591796875, -0.040130615234375, -0.07806396484375, -0.020660400390625, -0.0159149169921875, 0.007251739501953125, 0.00034427642822265625, 0.00007575750350952148, 0.004703521728515625, -0.039459228515625, -0.06219482421875, 0.01270294189453125, 0.0148162841796875, -0.03680419921875, -0.0113525390625, -0.023529052734375, -0.0131683349609375, -0.0304412841796875, -0.0265045166015625, 0.007732391357421875, 0.0009007453918457031, 0.05145263671875, 0.0123291015625, 0.032562255859375, 0.01904296875, -0.0048370361328125, -0.015777587890625, 0.0020046234130859375, -0.0207977294921875, 0.010986328125, -0.012939453125, -0.00737762451171875, 0.0242462158203125, 0.033905029296875, -0.01123809814453125, -0.061553955078125, 0.01480865478515625, -0.0273284912109375, 0.0091705322265625, -0.02203369140625, -0.04937744140625, -0.01055908203125, 0.0811767578125, 0.053955078125, 0.0244140625, -0.0316162109375, 0.005390167236328125, -0.01290130615234375, -0.06829833984375, -0.007732391357421875, 0.03607177734375, -0.039459228515625, 0.00672149658203125, -0.004993438720703125, -0.014923095703125, 0.006256103515625, -0.008087158203125, -0.04010009765625, 0.0019025802612304688, -0.01068115234375, -0.032623291015625, -0.0040740966796875, -0.00027370452880859375, 0.0882568359375, -0.0589599609375, -0.0645751953125, 0.040618896484375, 0.002864837646484375, 0.004367828369140625, 0.015289306640625, -0.0158538818359375, 0.01461029052734375, -0.033355712890625, 0.0221099853515625, -0.0178985595703125, 0.05621337890625, -0.040740966796875, 0.00461578369140625, -0.03985595703125, 0.0030956268310546875, 0.02386474609375, -0.0012645721435546875, -0.0147705078125, 0.0113067626953125, 0.01812744140625, 0.01335906982421875, -0.034149169921875, 0.0092926025390625, -0.04046630859375, 0.032470703125, 0.01264190673828125, 0.00688934326171875, 0.049468994140625, 0.0269317626953125, 0.01114654541015625, -0.0114593505859375, -0.01442718505859375, -0.023895263671875, -0.0065155029296875, 0.0031642913818359375, -0.0203094482421875, 0.003643035888671875 ]
b5d25cb99fcaae96dd6506866fb6640d979cc1f1
Wordpress Stackexchange Q: What are the security reasons to disallow Microsoft Word uploads? When I try uploading a .doc or .docx file I get this message: Sorry, this file type is not permitted for security reasons What are the security risks involved in a multisite installation (3.9.1)? I know how to enable the feature. Thank you. A: .doc files can contain executable scripts, and there is no way to make sure they are safe. The same applies to SVG and some other file types. If WordPress would accept .doc files from any user with the capability upload_files, these files could be used to send malicious code to visitors.
Q: What are the security reasons to disallow Microsoft Word uploads? When I try uploading a .doc or .docx file I get this message: Sorry, this file type is not permitted for security reasons What are the security risks involved in a multisite installation (3.9.1)? I know how to enable the feature. Thank you. A: .doc files can contain executable scripts, and there is no way to make sure they are safe. The same applies to SVG and some other file types. If WordPress would accept .doc files from any user with the capability upload_files, these files could be used to send malicious code to visitors.
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:446037", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/149295" }
[ 0.0482177734375, -0.01934814453125, 0.01373291015625, -0.004993438720703125, -0.024566650390625, -0.022979736328125, 0.0136260986328125, -0.023406982421875, 0.0167083740234375, 0.0203094482421875, -0.045867919921875, 0.00789642333984375, 0.005596160888671875, -0.012908935546875, 0.00539398193359375, -0.0101318359375, 0.014678955078125, 0.0030059814453125, 0.031158447265625, -0.0016307830810546875, 0.007472991943359375, 0.0057830810546875, 0.04022216796875, -0.055389404296875, 0.01114654541015625, -0.0015811920166015625, 0.0295867919921875, -0.0285491943359375, -0.0006480216979980469, -0.025390625, 0.0197906494140625, 0.005260467529296875, 0.0267486572265625, 0.050994873046875, -0.054351806640625, -0.0169830322265625, -0.019805908203125, 0.0207366943359375, 0.0005822181701660156, 0.040679931640625, 0.007274627685546875, -0.0038928985595703125, 0.09527587890625, 0.01371002197265625, 0.0189208984375, 0.0035400390625, 0.012420654296875, -0.050262451171875, 0.0182952880859375, -0.0105743408203125, 0.004680633544921875, -0.026519775390625, 0.03131103515625, -0.03375244140625, -0.0325927734375, -0.014984130859375, 0.002857208251953125, 0.01061248779296875, 0.019073486328125, 0.0110321044921875, -0.0187835693359375, 0.0301361083984375, -0.007587432861328125, -0.024993896484375, -0.005084991455078125, -0.0141754150390625, -0.0382080078125, 0.0153350830078125, -0.08251953125, -0.0087432861328125, 0.06170654296875, -0.052459716796875, 0.03204345703125, -0.057037353515625, 0.023681640625, 0.005359649658203125, -0.0308837890625, -0.017974853515625, 0.025054931640625, -0.02923583984375, -0.0037822723388671875, -0.0266265869140625, -0.0298004150390625, -0.005496978759765625, -0.020416259765625, -0.0036220550537109375, 0.00743865966796875, 0.01044464111328125, 0.0047760009765625, -0.0012273788452148438, -0.001953125, 0.041259765625, 0.00943756103515625, 0.0199432373046875, -0.03106689453125, -0.0244293212890625, -0.001995086669921875, 0.038330078125, -0.026458740234375, -0.0022373199462890625, -0.0121612548828125, -0.0111083984375, -0.006500244140625, -0.0259552001953125, 0.01221466064453125, 0.0748291015625, -0.0080413818359375, -0.0552978515625, -0.005916595458984375, 0.005451202392578125, -0.0017023086547851562, -0.043701171875, -0.00862884521484375, -0.07574462890625, 0.01248931884765625, 0.0195770263671875, -0.0198516845703125, 0.0165863037109375, 0.033538818359375, -0.03143310546875, -0.004367828369140625, 0.0253448486328125, -0.0040130615234375, -0.03363037109375, 0.00925445556640625, -0.0193023681640625, -0.007205963134765625, -0.013275146484375, -0.00916290283203125, 0.055267333984375, -0.01068115234375, -0.01076507568359375, -0.01126861572265625, 0.00772857666015625, -0.0168914794921875, -0.0269012451171875, 0.01097869873046875, -0.0084686279296875, -0.036773681640625, 0.02386474609375, -0.008331298828125, -0.01519775390625, 0.005527496337890625, -0.043792724609375, -0.017242431640625, 0.03179931640625, 0.0360107421875, 0.00519561767578125, -0.03399658203125, -0.019805908203125, -0.03741455078125, -0.00592803955078125, 0.055419921875, -0.0297698974609375, -0.04925537109375, -0.08807373046875, -0.00909423828125, -0.05438232421875, 0.029022216796875, -0.06268310546875, 0.041351318359375, 0.012603759765625, 0.0323486328125, -0.0173492431640625, -0.01348114013671875, -0.035064697265625, -0.0733642578125, -0.0191650390625, 0.029571533203125, 0.03424072265625, -0.0264129638671875, -0.051513671875, -0.00450897216796875, 0.03369140625, 0.0014047622680664062, 0.0504150390625, 0.02740478515625, 0.01800537109375, -0.0017633438110351562, 0.06854248046875, 0.0205078125, -0.030914306640625, 0.05419921875, -0.027252197265625, -0.029052734375, -0.004817962646484375, 0.033599853515625, 0.04345703125, -0.007598876953125, 0.008941650390625, 0.04132080078125, 0.03228759765625, -0.0082855224609375, -0.019927978515625, -0.0206756591796875, -0.0215606689453125, -0.00521087646484375, -0.006694793701171875, -0.0157928466796875, 0.037567138671875, 0.024688720703125, 0.00873565673828125, 0.00975799560546875, -0.02410888671875, 0.018707275390625, -0.04156494140625, 0.03253173828125, 0.0005736351013183594, -0.0036983489990234375, 0.047760009765625, 0.01232147216796875, 0.018096923828125, -0.0408935546875, 0.051727294921875, 0.038787841796875, -0.0025463104248046875, -0.02178955078125, 0.041595458984375, 0.0081329345703125, 0.03900146484375, -0.005107879638671875, -0.03326416015625, 0.0031833648681640625, -0.03900146484375, -0.0020961761474609375, 0.032867431640625, -0.015960693359375, 0.0279693603515625, 0.044586181640625, 0.031890869140625, 0.06817626953125, -0.0266571044921875, 0.00978851318359375, 0.0216522216796875, -0.0195770263671875, -0.0168304443359375, -0.0214691162109375, -0.0953369140625, 0.004940032958984375, 0.059478759765625, 0.023345947265625, 0.040557861328125, -0.0207672119140625, -0.00952911376953125, 0.062408447265625, -0.0280914306640625, -0.008026123046875, 0.0015354156494140625, -0.041046142578125, -0.00954437255859375, 0.043365478515625, 0.016937255859375, 0.01629638671875, -0.00518035888671875, -0.01100921630859375, 0.024322509765625, -0.0032329559326171875, -0.023651123046875, -0.03466796875, 0.0291595458984375, 0.033782958984375, 0.014678955078125, -0.05731201171875, 0.027374267578125, -0.017578125, 0.020355224609375, 0.01273345947265625, 0.0263671875, 0.00005888938903808594, -0.0018329620361328125, 0.01087188720703125, -0.026153564453125, 0.015533447265625, 0.05963134765625, 0.08343505859375, 0.016387939453125, 0.0007090568542480469, -0.057891845703125, 0.0255279541015625, 0.055206298828125, -0.04913330078125, -0.01776123046875, -0.07647705078125, -0.0163421630859375, -0.024658203125, -0.04095458984375, 0.01154327392578125, 0.0012979507446289062, -0.0006427764892578125, -0.0166015625, 0.025238037109375, 0.0174560546875, 0.0010881423950195312, 0.00818634033203125, 0.032440185546875, -0.0272674560546875, -0.036407470703125, -0.01467132568359375, 0.0186767578125, -0.032257080078125, -0.00649261474609375, 0.0582275390625, -0.0214996337890625, 0.007534027099609375, 0.0040435791015625, 0.0097503662109375, 0.0199127197265625, 0.0250701904296875, 0.003116607666015625, -0.0266876220703125, -0.0467529296875, -0.045501708984375, 0.0173492431640625, -0.038055419921875, 0.00508880615234375, -0.0062255859375, -0.044677734375, -0.01078033447265625, -0.0977783203125, -0.041046142578125, -0.01134490966796875, -0.05560302734375, 0.0234375, -0.03228759765625, -0.00978851318359375, -0.0166778564453125, -0.0091705322265625, 0.008209228515625, 0.003582000732421875, 0.018829345703125, -0.036590576171875, -0.0009069442749023438, -0.048187255859375, 0.0146026611328125, -0.01291656494140625, 0.031585693359375, 0.0079803466796875, 0.0535888671875, 0.002834320068359375, -0.047576904296875, 0.01605224609375, 0.00666046142578125, -0.0019397735595703125, 0.028656005859375, -0.004787445068359375, -0.0029392242431640625, 0.0293731689453125, 0.006580352783203125, 0.0079193115234375, 0.0068359375, 0.0033111572265625, -0.0203704833984375, 0.0003082752227783203, -0.026641845703125, 0.0063018798828125, -0.01479339599609375, -0.0081024169921875, -0.04248046875, -0.0279083251953125, -0.07171630859375, 0.0323486328125, 0.01293182373046875, 0.0110626220703125, -0.007411956787109375, -0.0318603515625, -0.03875732421875, 0.0006165504455566406, 0.02532958984375, 0.033782958984375, 0.053009033203125, -0.03717041015625, 0.012115478515625, 0.045196533203125, -0.00638580322265625, 0.0232696533203125, -0.0254669189453125, -0.007534027099609375, -0.0307159423828125, -0.0011987686157226562, -0.030853271484375, -0.0090484619140625, -0.036865234375, 0.04669189453125, -0.0181121826171875, -0.038299560546875, 0.012664794921875, -0.09521484375, 0.00537872314453125, -0.02972412109375, 0.00669097900390625, -0.0201873779296875, 0.061737060546875, -0.04791259765625, -0.01001739501953125, -0.01255035400390625, 0.00930023193359375, -0.0114593505859375, -0.0435791015625, -0.0242919921875, -0.00218963623046875, 0.019134521484375, 0.0041351318359375, -0.01233673095703125, 0.0203094482421875, -0.0227203369140625, -0.01308441162109375, 0.035858154296875, -0.0293426513671875, 0.019561767578125, -0.006580352783203125, 0.006946563720703125, -0.017669677734375, 0.0226593017578125, -0.0772705078125, 0.005260467529296875, -0.022003173828125, -0.072265625, -0.01297760009765625, -0.018157958984375, 0.051361083984375, -0.00142669677734375, 0.0130157470703125, -0.01605224609375, 0.0628662109375, 0.006160736083984375, -0.0087432861328125, 0.0088043212890625, -0.0120086669921875, 0.0015230178833007812, 0.0305328369140625, -0.011138916015625, -0.00798797607421875, 0.007068634033203125, -0.00702667236328125, -0.04876708984375, -0.05792236328125, -0.037750244140625, -0.06048583984375, 0.0155181884765625, -0.048980712890625, -0.004344940185546875, -0.02313232421875, 0.0041656494140625, 0.049530029296875, -0.00873565673828125, 0.0021514892578125, -0.047271728515625, -0.018341064453125, 0.03466796875, 0.006641387939453125, -0.02520751953125, 0.00847625732421875, 0.039947509765625, -0.00397491455078125, -0.028106689453125, -0.0843505859375, -0.007007598876953125, 0.03546142578125, 0.0044708251953125, 0.00984954833984375, -0.004230499267578125, -0.0232696533203125, 0.032562255859375, 0.00766754150390625, 0.0213775634765625, -0.04248046875, 0.0670166015625, -0.00649261474609375, 0.0125885009765625, 0.0205078125, -0.01702880859375, 0.0251007080078125, 0.0086517333984375, 0.0221710205078125, -0.0237579345703125, 0.020751953125, 0.0032176971435546875, 0.0269012451171875, -0.034820556640625, -0.01090240478515625, -0.0247802734375, 0.031585693359375, 0.035400390625, -0.0175018310546875, -0.004383087158203125, 0.0175323486328125, -0.04010009765625, -0.028076171875, -0.0268402099609375, -0.01026153564453125, -0.05242919921875, 0.01262664794921875, -0.017547607421875, -0.0022335052490234375, -0.02459716796875, 0.006641387939453125, -0.021636962890625, 0.057586669921875, -0.00098419189453125, -0.043792724609375, 0.01129913330078125, -0.0167083740234375, 0.04852294921875, 0.02923583984375, -0.0056915283203125, -0.01331329345703125, 0.01824951171875, -0.01959228515625, 0.0017309188842773438, -0.015533447265625, 0.0272216796875, -0.0245361328125, -0.01001739501953125, -0.034698486328125, -0.00405120849609375, 0.04534912109375, -0.033355712890625, -0.056304931640625, 0.0037975311279296875, 0.0121307373046875, 0.0237884521484375, 0.103759765625, -0.05316162109375, 0.028289794921875, 0.04827880859375, -0.014434814453125, -0.0662841796875, 0.029754638671875, -0.053985595703125, 0.008636474609375, 0.0014705657958984375, 0.044769287109375, -0.05511474609375, -0.06939697265625, 0.0670166015625, -0.047027587890625, -0.01248931884765625, -0.054412841796875, -0.045654296875, 0.01349639892578125, 0.0017595291137695312, -0.01383209228515625, -0.0184173583984375, 0.0187835693359375, 0.006519317626953125, 0.0063629150390625, -0.025909423828125, -0.0160064697265625, 0.0264129638671875, -0.037567138671875, -0.024627685546875, -0.006435394287109375, 0.014373779296875, -0.01149749755859375, -0.0391845703125, -0.06011962890625, -0.0218353271484375, 0.0042572021484375, 0.0085601806640625, -0.007537841796875, -0.0290679931640625, -0.0060577392578125, -0.023040771484375, 0.03082275390625, -0.01389312744140625, 0.0204620361328125, -0.0069580078125, -0.01824951171875, -0.030181884765625, -0.001598358154296875, -0.004180908203125, -0.0002009868621826172, 0.0012531280517578125, -0.0214385986328125, -0.009765625, -0.0211944580078125, -0.0142059326171875, 0.02337646484375, -0.022216796875, 0.004032135009765625, -0.0042572021484375, 0.03033447265625, 0.0037364959716796875, 0.066162109375, -0.045684814453125, 0.0180511474609375, 0.04510498046875, 0.0277862548828125, 0.0083160400390625, 0.017120361328125, 0.03448486328125, -0.0308990478515625, -0.0001900196075439453, -0.0755615234375, -0.00676727294921875, 0.0086669921875, 0.0072784423828125, 0.023162841796875, 0.00824737548828125, 0.01166534423828125, -0.0008535385131835938, 0.020904541015625, 0.007030487060546875, -0.0181884765625, -0.011871337890625, 0.035003662109375, 0.00331878662109375, -0.0166015625, -0.0260467529296875, 0.051910400390625, -0.0157470703125, 0.004230499267578125, 0.038421630859375, -0.036163330078125, 0.0323486328125, 0.044525146484375, 0.046539306640625, -0.051513671875, 0.00902557373046875, 0.00914764404296875, 0.047760009765625, 0.0296783447265625, 0.056549072265625, 0.04315185546875, 0.00627899169921875, -0.01641845703125, -0.037261962890625, -0.0115203857421875, -0.01849365234375, -0.00942230224609375, -0.011260986328125, -0.0087890625, 0.03753662109375, 0.07025146484375, 0.0985107421875, -0.0914306640625, 0.01371002197265625, 0.01403045654296875, -0.037445068359375, 0.0323486328125, -0.002773284912109375, -0.0004572868347167969, -0.041412353515625, 0.033538818359375, 0.009735107421875, -0.003936767578125, 0.015838623046875, -0.0199127197265625, -0.0243682861328125, 0.0073089599609375, 0.0231475830078125, 0.0187835693359375, -0.016448974609375, -0.0024318695068359375, 0.004985809326171875, -0.0001703500747680664, 0.0325927734375, 0.01355743408203125, -0.053619384765625, -0.038848876953125, -0.01107025146484375, -0.048614501953125, -0.0258636474609375, -0.038299560546875, -0.03564453125, 0.03326416015625, 0.028594970703125, 0.06610107421875, -0.00022685527801513672, -0.01904296875, 0.053192138671875, -0.01041412353515625, -0.01140594482421875, -0.0129547119140625, -0.034332275390625, 0.0423583984375, 0.0023021697998046875, 0.0186767578125, -0.00901031494140625, 0.018585205078125, -0.0074615478515625, -0.00872039794921875, -0.002361297607421875, 0.006893157958984375, -0.01026153564453125, 0.0809326171875, 0.031707763671875, -0.06402587890625, -0.00048422813415527344, -0.015716552734375, -0.1053466796875, -0.07122802734375, -0.003139495849609375, -0.0498046875, 0.036773681640625, 0.036224365234375, -0.058624267578125, 0.05908203125, -0.007080078125, 0.047454833984375, 0.0159454345703125, 0.0030155181884765625, -0.0029392242431640625, -0.01232147216796875, 0.0027790069580078125, 0.0245819091796875, 0.0099945068359375, 0.0297393798828125, -0.0129547119140625, -0.0257415771484375, 0.0212554931640625, 0.07391357421875, -0.0257110595703125, -0.0272369384765625, -0.005279541015625, 0.002040863037109375, 0.07733154296875, 0.042388916015625, 0.042877197265625, -0.00807952880859375, -0.01430511474609375, -0.00785064697265625, -0.0098876953125, -0.00247955322265625, 0.0318603515625, -0.03973388671875, -0.0386962890625, -0.004425048828125, 0.020904541015625, 0.007511138916015625, 0.01026153564453125, -0.0152740478515625, -0.05218505859375, 0.0404052734375, 0.020416259765625, 0.07513427734375, -0.002044677734375, 0.019775390625, -0.0030517578125, -0.0288848876953125, 0.032440185546875, -0.02801513671875, 0.042144775390625, -0.0221099853515625, -0.004276275634765625, 0.00283050537109375, 0.0010232925415039062, 0.0032978057861328125, -0.0021724700927734375, -0.00879669189453125, 0.01483917236328125, 0.0022869110107421875, -0.0489501953125, -0.0047607421875, 0.00983428955078125, -0.0167083740234375, -0.0070037841796875, 0.0186920166015625, -0.0282440185546875, -0.0015249252319335938, 0.007503509521484375, 0.004550933837890625, -0.00551605224609375, -0.00908660888671875, -0.03131103515625, -0.007137298583984375, 0.05877685546875, 0.039703369140625, -0.037353515625, 0.01464080810546875, 0.020751953125, 0.01324462890625, 0.01062774658203125, 0.036285400390625, -0.050018310546875, 0.00714874267578125, -0.02081298828125, 0.0158233642578125, 0.00021958351135253906, -0.0005197525024414062, 0.0023441314697265625, 0.03533935546875, -0.0012454986572265625, 0.005558013916015625, -0.01180267333984375, 0.05859375, -0.005558013916015625, 0.0084228515625, -0.039093017578125, -0.0931396484375, 0.0303192138671875, 0.039154052734375, 0.0360107421875, 0.05401611328125, 0.056243896484375, 0.01971435546875, -0.00934600830078125, 0.016082763671875, 0.06597900390625, -0.01496124267578125, -0.032196044921875, -0.012176513671875, -0.059814453125, 0.009033203125, -0.035003662109375, 0.033294677734375, -0.02008056640625, 0.0462646484375, -0.0119781494140625, 0.0125885009765625, 0.0029163360595703125, -0.01380157470703125, 0.00897216796875, -0.040496826171875, -0.006595611572265625, -0.0276947021484375, -0.044921875, -0.034698486328125, 0.002109527587890625, 0.0302734375, -0.003078460693359375, 0.01715087890625, -0.012664794921875, 0.03204345703125, -0.0037593841552734375, -0.0274200439453125, -0.0054931640625, 0.0270233154296875, 0.0023136138916015625, 0.05413818359375, 0.00763702392578125, 0.006435394287109375, -0.07049560546875, -0.028961181640625, -0.01137542724609375, 0.0295867919921875, -0.028900146484375, 0.11712646484375, -0.033447265625, 0.00722503662109375, -0.00006836652755737305, 0.01412200927734375, -0.00402069091796875, -0.00536346435546875, 0.03399658203125, 0.0260772705078125, 0.0031337738037109375, -0.0155029296875, -0.036956787109375, 0.061553955078125, -0.00482940673828125, 0.0144195556640625, 0.0294189453125, -0.0013685226440429688, 0.00799560546875, 0.02801513671875, 0.00540924072265625, -0.052093505859375, -0.044189453125, -0.06719970703125, -0.035675048828125, 0.0181884765625, -0.01007843017578125, 0.0264129638671875, 0.050994873046875, -0.00817108154296875, -0.035430908203125, 0.0212554931640625, -0.06463623046875, 0.007770538330078125, 0.01544189453125, 0.031280517578125, -0.031524658203125, 0.0116729736328125, -0.01299285888671875, 0.0049285888671875, -0.0025730133056640625, 0.04193115234375, 0.0092010498046875, -0.03887939453125, -0.0200042724609375, 0.0101470947265625, 0.020050048828125, -0.007122039794921875, 0.0035991668701171875, 0.005786895751953125, -0.0216522216796875, -0.0285491943359375, 0.01471710205078125, -0.0025787353515625, -0.007434844970703125, -0.00524139404296875, 0.0170745849609375, -0.0029163360595703125, 0.01219940185546875, -0.0523681640625, 0.0048828125, 0.043121337890625, -0.01328277587890625, -0.016448974609375, -0.0023593902587890625, -0.041015625, 0.019439697265625, 0.0194549560546875, 0.022735595703125, -0.00799560546875, 0.01442718505859375, -0.043060302734375, -0.053131103515625, -0.02374267578125, 0.0701904296875, -0.04022216796875, 0.0298614501953125, 0.0027008056640625, -0.0367431640625, 0.0234832763671875, 0.065673828125, 0.044830322265625, 0.109619140625, 0.04046630859375, -0.01800537109375, -0.0139923095703125, -0.006725311279296875, -0.03564453125, 0.0008783340454101562, 0.0460205078125, -0.053619384765625, -0.06646728515625, -0.0171661376953125, -0.0232086181640625, -0.0301361083984375, -0.06512451171875, -0.08416748046875, -0.02825927734375, 0.003936767578125, -0.060455322265625, 0.01259613037109375, -0.05157470703125, -0.0276336669921875, 0.01172637939453125, 0.00742340087890625, -0.0202789306640625, -0.010162353515625, 0.04498291015625, -0.012969970703125, 0.033294677734375, -0.006610870361328125, 0.004459381103515625, -0.01030731201171875, 0.036224365234375, 0.031280517578125, -0.032928466796875, 0.0193328857421875, -0.01546478271484375, 0.060028076171875, 0.06793212890625, -0.0032596588134765625, 0.05029296875, 0.009796142578125, -0.046539306640625, -0.0010433197021484375, 0.0170745849609375, -0.0430908203125, -0.0167388916015625, 0.06500244140625, 0.047821044921875, 0.025634765625, -0.01407623291015625, 0.002849578857421875, -0.0190582275390625, -0.016571044921875, 0.0225830078125, 0.0164642333984375, -0.035888671875, 0.009918212890625, 0.0234222412109375, 0.00531768798828125, 0.0262298583984375, -0.00414276123046875, -0.0026378631591796875, -0.02093505859375, 0.01287841796875, 0.0040435791015625, -0.0472412109375, 0.02685546875, 0.04913330078125, -0.0307159423828125, 0.01444244384765625, -0.0007843971252441406, -0.00595855712890625, 0.025604248046875, 0.01113128662109375, -0.00441741943359375, -0.03350830078125, -0.007640838623046875, 0.05548095703125, -0.0003986358642578125, 0.016448974609375, -0.047576904296875, -0.0225982666015625, 0.0098114013671875, 0.01279449462890625, 0.006793975830078125, 0.00910186767578125, 0.0009045600891113281, 0.01074981689453125, -0.0159759521484375, 0.004199981689453125, -0.0034694671630859375, -0.05535888671875, -0.0281524658203125, 0.0426025390625, 0.0093231201171875, -0.01873779296875, 0.0232086181640625, -0.0156402587890625, 0.01538848876953125, 0.01274871826171875, -0.060028076171875, 0.01099395751953125, -0.0251312255859375, -0.0004467964172363281, -0.043792724609375, -0.020477294921875 ]